azure_mgmt_datalake_store 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_datalake_store/account.rb +28 -36
- data/lib/generated/azure_mgmt_datalake_store/data_lake_store_account_management_client.rb +4 -5
- data/lib/generated/azure_mgmt_datalake_store/firewall_rules.rb +122 -6
- data/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account.rb +43 -0
- data/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_update_parameters.rb +28 -0
- data/lib/generated/azure_mgmt_datalake_store/models/firewall_allow_azure_ips_state.rb +16 -0
- data/lib/generated/azure_mgmt_datalake_store/models/firewall_rule.rb +5 -3
- data/lib/generated/azure_mgmt_datalake_store/models/{inner_error.rb → sub_resource.rb} +20 -13
- data/lib/generated/azure_mgmt_datalake_store/models/tier_type.rb +21 -0
- data/lib/generated/azure_mgmt_datalake_store/models/trusted_id_provider.rb +2 -2
- data/lib/generated/azure_mgmt_datalake_store/models/update_firewall_rule_parameters.rb +56 -0
- data/lib/generated/azure_mgmt_datalake_store/models/update_trusted_id_provider_parameters.rb +44 -0
- data/lib/generated/azure_mgmt_datalake_store/trusted_id_providers.rb +131 -12
- data/lib/generated/azure_mgmt_datalake_store/version.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_store.rb +8 -5
- metadata +9 -6
- data/lib/generated/azure_mgmt_datalake_store/models/error.rb +0 -99
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78d6376fe89a0b41d0000b8a4b2d469439089b15
|
4
|
+
data.tar.gz: 74b5512dc52600a56d4dc3b8f5a7221c775476ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a7abe589b236ddbbe146c34792f2974195e5ecbdfc6f2ebb94d9197e9c02d3c614f98d07d6ec2186609b1168937e2a3190a9dd6fa31a875ae0b2ed4391eab46
|
7
|
+
data.tar.gz: 32dd51bb08556aaeb92f0e4889587ae2cb70800ec71f683a59de1f2a145266cfc2f9e66205a3cafc937e968a2e2461afba7ebf180a4a2c4453d4b5a7a146780e
|
@@ -123,30 +123,28 @@ module Azure::ARM::DataLakeStore
|
|
123
123
|
#
|
124
124
|
# @param resource_group_name [String] The name of the Azure resource group that
|
125
125
|
# contains the Data Lake Store account.
|
126
|
-
# @param
|
127
|
-
# delete.
|
126
|
+
# @param name [String] The name of the Data Lake Store account to delete.
|
128
127
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
129
128
|
# will be added to the HTTP request.
|
130
129
|
#
|
131
|
-
def delete(resource_group_name,
|
132
|
-
response = delete_async(resource_group_name,
|
130
|
+
def delete(resource_group_name, name, custom_headers = nil)
|
131
|
+
response = delete_async(resource_group_name, name, custom_headers).value!
|
133
132
|
nil
|
134
133
|
end
|
135
134
|
|
136
135
|
#
|
137
136
|
# @param resource_group_name [String] The name of the Azure resource group that
|
138
137
|
# contains the Data Lake Store account.
|
139
|
-
# @param
|
140
|
-
# delete.
|
138
|
+
# @param name [String] The name of the Data Lake Store account to delete.
|
141
139
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
142
140
|
# will be added to the HTTP request.
|
143
141
|
#
|
144
142
|
# @return [Concurrent::Promise] promise which provides async access to http
|
145
143
|
# response.
|
146
144
|
#
|
147
|
-
def delete_async(resource_group_name,
|
145
|
+
def delete_async(resource_group_name, name, custom_headers = nil)
|
148
146
|
# Send request
|
149
|
-
promise = begin_delete_async(resource_group_name,
|
147
|
+
promise = begin_delete_async(resource_group_name, name, custom_headers)
|
150
148
|
|
151
149
|
promise = promise.then do |response|
|
152
150
|
# Defining deserialization method.
|
@@ -165,15 +163,14 @@ module Azure::ARM::DataLakeStore
|
|
165
163
|
#
|
166
164
|
# @param resource_group_name [String] The name of the Azure resource group that
|
167
165
|
# contains the Data Lake Store account.
|
168
|
-
# @param
|
169
|
-
# retrieve.
|
166
|
+
# @param name [String] The name of the Data Lake Store account to retrieve.
|
170
167
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
171
168
|
# will be added to the HTTP request.
|
172
169
|
#
|
173
170
|
# @return [DataLakeStoreAccount] operation results.
|
174
171
|
#
|
175
|
-
def get(resource_group_name,
|
176
|
-
response = get_async(resource_group_name,
|
172
|
+
def get(resource_group_name, name, custom_headers = nil)
|
173
|
+
response = get_async(resource_group_name, name, custom_headers).value!
|
177
174
|
response.body unless response.nil?
|
178
175
|
end
|
179
176
|
|
@@ -182,15 +179,14 @@ module Azure::ARM::DataLakeStore
|
|
182
179
|
#
|
183
180
|
# @param resource_group_name [String] The name of the Azure resource group that
|
184
181
|
# contains the Data Lake Store account.
|
185
|
-
# @param
|
186
|
-
# retrieve.
|
182
|
+
# @param name [String] The name of the Data Lake Store account to retrieve.
|
187
183
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
188
184
|
# will be added to the HTTP request.
|
189
185
|
#
|
190
186
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
191
187
|
#
|
192
|
-
def get_with_http_info(resource_group_name,
|
193
|
-
get_async(resource_group_name,
|
188
|
+
def get_with_http_info(resource_group_name, name, custom_headers = nil)
|
189
|
+
get_async(resource_group_name, name, custom_headers).value!
|
194
190
|
end
|
195
191
|
|
196
192
|
#
|
@@ -198,16 +194,15 @@ module Azure::ARM::DataLakeStore
|
|
198
194
|
#
|
199
195
|
# @param resource_group_name [String] The name of the Azure resource group that
|
200
196
|
# contains the Data Lake Store account.
|
201
|
-
# @param
|
202
|
-
# retrieve.
|
197
|
+
# @param name [String] The name of the Data Lake Store account to retrieve.
|
203
198
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
204
199
|
# to the HTTP request.
|
205
200
|
#
|
206
201
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
207
202
|
#
|
208
|
-
def get_async(resource_group_name,
|
203
|
+
def get_async(resource_group_name, name, custom_headers = nil)
|
209
204
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
210
|
-
fail ArgumentError, '
|
205
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
211
206
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
212
207
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
213
208
|
|
@@ -217,13 +212,13 @@ module Azure::ARM::DataLakeStore
|
|
217
212
|
# Set Headers
|
218
213
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
219
214
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
220
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{
|
215
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{name}'
|
221
216
|
|
222
217
|
request_url = @base_url || @client.base_url
|
223
218
|
|
224
219
|
options = {
|
225
220
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
226
|
-
path_params: {'resourceGroupName' => resource_group_name,'
|
221
|
+
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
227
222
|
query_params: {'api-version' => @client.api_version},
|
228
223
|
headers: request_headers.merge(custom_headers || {}),
|
229
224
|
base_url: request_url
|
@@ -854,14 +849,13 @@ module Azure::ARM::DataLakeStore
|
|
854
849
|
#
|
855
850
|
# @param resource_group_name [String] The name of the Azure resource group that
|
856
851
|
# contains the Data Lake Store account.
|
857
|
-
# @param
|
858
|
-
# delete.
|
852
|
+
# @param name [String] The name of the Data Lake Store account to delete.
|
859
853
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
860
854
|
# will be added to the HTTP request.
|
861
855
|
#
|
862
856
|
#
|
863
|
-
def begin_delete(resource_group_name,
|
864
|
-
response = begin_delete_async(resource_group_name,
|
857
|
+
def begin_delete(resource_group_name, name, custom_headers = nil)
|
858
|
+
response = begin_delete_async(resource_group_name, name, custom_headers).value!
|
865
859
|
nil
|
866
860
|
end
|
867
861
|
|
@@ -870,15 +864,14 @@ module Azure::ARM::DataLakeStore
|
|
870
864
|
#
|
871
865
|
# @param resource_group_name [String] The name of the Azure resource group that
|
872
866
|
# contains the Data Lake Store account.
|
873
|
-
# @param
|
874
|
-
# delete.
|
867
|
+
# @param name [String] The name of the Data Lake Store account to delete.
|
875
868
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
876
869
|
# will be added to the HTTP request.
|
877
870
|
#
|
878
871
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
879
872
|
#
|
880
|
-
def begin_delete_with_http_info(resource_group_name,
|
881
|
-
begin_delete_async(resource_group_name,
|
873
|
+
def begin_delete_with_http_info(resource_group_name, name, custom_headers = nil)
|
874
|
+
begin_delete_async(resource_group_name, name, custom_headers).value!
|
882
875
|
end
|
883
876
|
|
884
877
|
#
|
@@ -886,16 +879,15 @@ module Azure::ARM::DataLakeStore
|
|
886
879
|
#
|
887
880
|
# @param resource_group_name [String] The name of the Azure resource group that
|
888
881
|
# contains the Data Lake Store account.
|
889
|
-
# @param
|
890
|
-
# delete.
|
882
|
+
# @param name [String] The name of the Data Lake Store account to delete.
|
891
883
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
892
884
|
# to the HTTP request.
|
893
885
|
#
|
894
886
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
895
887
|
#
|
896
|
-
def begin_delete_async(resource_group_name,
|
888
|
+
def begin_delete_async(resource_group_name, name, custom_headers = nil)
|
897
889
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
898
|
-
fail ArgumentError, '
|
890
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
899
891
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
900
892
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
901
893
|
|
@@ -905,13 +897,13 @@ module Azure::ARM::DataLakeStore
|
|
905
897
|
# Set Headers
|
906
898
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
907
899
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
908
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{
|
900
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{name}'
|
909
901
|
|
910
902
|
request_url = @base_url || @client.base_url
|
911
903
|
|
912
904
|
options = {
|
913
905
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
914
|
-
path_params: {'resourceGroupName' => resource_group_name,'
|
906
|
+
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
915
907
|
query_params: {'api-version' => @client.api_version},
|
916
908
|
headers: request_headers.merge(custom_headers || {}),
|
917
909
|
base_url: request_url
|
@@ -51,12 +51,11 @@ module Azure::ARM::DataLakeStore
|
|
51
51
|
# @param base_url [String] the base URI of the service.
|
52
52
|
# @param options [Array] filters to be applied to the HTTP requests.
|
53
53
|
#
|
54
|
-
def initialize(credentials, base_url = nil, options = nil)
|
54
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
55
55
|
super(credentials, options)
|
56
56
|
@base_url = base_url || 'https://management.azure.com'
|
57
57
|
|
58
|
-
fail ArgumentError, 'credentials
|
59
|
-
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
|
58
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
60
59
|
@credentials = credentials
|
61
60
|
|
62
61
|
@firewall_rules = FirewallRules.new(self)
|
@@ -71,7 +70,7 @@ module Azure::ARM::DataLakeStore
|
|
71
70
|
|
72
71
|
#
|
73
72
|
# Makes a request and returns the body of the response.
|
74
|
-
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
73
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
75
74
|
# @param path [String] the path, relative to {base_url}.
|
76
75
|
# @param options [Hash{String=>String}] specifying any request options like :body.
|
77
76
|
# @return [Hash{String=>String}] containing the body of the response.
|
@@ -132,7 +131,7 @@ module Azure::ARM::DataLakeStore
|
|
132
131
|
def add_telemetry
|
133
132
|
sdk_information = 'azure_mgmt_datalake_store'
|
134
133
|
if defined? Azure::ARM::DataLakeStore::VERSION
|
135
|
-
sdk_information = "#{sdk_information}/#{Azure::ARM::DataLakeStore::VERSION}"
|
134
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::DataLakeStore::VERSION}"
|
136
135
|
end
|
137
136
|
add_user_agent_information(sdk_information)
|
138
137
|
end
|
@@ -28,8 +28,8 @@ module Azure::ARM::DataLakeStore
|
|
28
28
|
#
|
29
29
|
# @param resource_group_name [String] The name of the Azure resource group that
|
30
30
|
# contains the Data Lake Store account.
|
31
|
-
# @param account_name [String] The name of the Data Lake Store account to
|
32
|
-
#
|
31
|
+
# @param account_name [String] The name of the Data Lake Store account to add
|
32
|
+
# or replace the firewall rule.
|
33
33
|
# @param firewall_rule_name [String] The name of the firewall rule to create or
|
34
34
|
# update.
|
35
35
|
# @param parameters [FirewallRule] Parameters supplied to create or update the
|
@@ -50,8 +50,8 @@ module Azure::ARM::DataLakeStore
|
|
50
50
|
#
|
51
51
|
# @param resource_group_name [String] The name of the Azure resource group that
|
52
52
|
# contains the Data Lake Store account.
|
53
|
-
# @param account_name [String] The name of the Data Lake Store account to
|
54
|
-
#
|
53
|
+
# @param account_name [String] The name of the Data Lake Store account to add
|
54
|
+
# or replace the firewall rule.
|
55
55
|
# @param firewall_rule_name [String] The name of the firewall rule to create or
|
56
56
|
# update.
|
57
57
|
# @param parameters [FirewallRule] Parameters supplied to create or update the
|
@@ -71,8 +71,8 @@ module Azure::ARM::DataLakeStore
|
|
71
71
|
#
|
72
72
|
# @param resource_group_name [String] The name of the Azure resource group that
|
73
73
|
# contains the Data Lake Store account.
|
74
|
-
# @param account_name [String] The name of the Data Lake Store account to
|
75
|
-
#
|
74
|
+
# @param account_name [String] The name of the Data Lake Store account to add
|
75
|
+
# or replace the firewall rule.
|
76
76
|
# @param firewall_rule_name [String] The name of the firewall rule to create or
|
77
77
|
# update.
|
78
78
|
# @param parameters [FirewallRule] Parameters supplied to create or update the
|
@@ -145,6 +145,122 @@ module Azure::ARM::DataLakeStore
|
|
145
145
|
promise.execute
|
146
146
|
end
|
147
147
|
|
148
|
+
#
|
149
|
+
# Updates the specified firewall rule.
|
150
|
+
#
|
151
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
152
|
+
# contains the Data Lake Store account.
|
153
|
+
# @param account_name [String] The name of the Data Lake Store account to which
|
154
|
+
# to update the firewall rule.
|
155
|
+
# @param firewall_rule_name [String] The name of the firewall rule to update.
|
156
|
+
# @param parameters [UpdateFirewallRuleParameters] Parameters supplied to
|
157
|
+
# update the firewall rule.
|
158
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
159
|
+
# will be added to the HTTP request.
|
160
|
+
#
|
161
|
+
# @return [FirewallRule] operation results.
|
162
|
+
#
|
163
|
+
def update(resource_group_name, account_name, firewall_rule_name, parameters = nil, custom_headers = nil)
|
164
|
+
response = update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value!
|
165
|
+
response.body unless response.nil?
|
166
|
+
end
|
167
|
+
|
168
|
+
#
|
169
|
+
# Updates the specified firewall rule.
|
170
|
+
#
|
171
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
172
|
+
# contains the Data Lake Store account.
|
173
|
+
# @param account_name [String] The name of the Data Lake Store account to which
|
174
|
+
# to update the firewall rule.
|
175
|
+
# @param firewall_rule_name [String] The name of the firewall rule to update.
|
176
|
+
# @param parameters [UpdateFirewallRuleParameters] Parameters supplied to
|
177
|
+
# update the firewall rule.
|
178
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
179
|
+
# will be added to the HTTP request.
|
180
|
+
#
|
181
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
182
|
+
#
|
183
|
+
def update_with_http_info(resource_group_name, account_name, firewall_rule_name, parameters = nil, custom_headers = nil)
|
184
|
+
update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value!
|
185
|
+
end
|
186
|
+
|
187
|
+
#
|
188
|
+
# Updates the specified firewall rule.
|
189
|
+
#
|
190
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
191
|
+
# contains the Data Lake Store account.
|
192
|
+
# @param account_name [String] The name of the Data Lake Store account to which
|
193
|
+
# to update the firewall rule.
|
194
|
+
# @param firewall_rule_name [String] The name of the firewall rule to update.
|
195
|
+
# @param parameters [UpdateFirewallRuleParameters] Parameters supplied to
|
196
|
+
# update the firewall rule.
|
197
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
198
|
+
# to the HTTP request.
|
199
|
+
#
|
200
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
201
|
+
#
|
202
|
+
def update_async(resource_group_name, account_name, firewall_rule_name, parameters = nil, custom_headers = nil)
|
203
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
204
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
205
|
+
fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil?
|
206
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
207
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
208
|
+
|
209
|
+
|
210
|
+
request_headers = {}
|
211
|
+
|
212
|
+
# Set Headers
|
213
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
214
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
215
|
+
|
216
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
217
|
+
|
218
|
+
# Serialize Request
|
219
|
+
request_mapper = UpdateFirewallRuleParameters.mapper()
|
220
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
221
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
222
|
+
|
223
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/firewallRules/{firewallRuleName}'
|
224
|
+
|
225
|
+
request_url = @base_url || @client.base_url
|
226
|
+
|
227
|
+
options = {
|
228
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
229
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'firewallRuleName' => firewall_rule_name,'subscriptionId' => @client.subscription_id},
|
230
|
+
query_params: {'api-version' => @client.api_version},
|
231
|
+
body: request_content,
|
232
|
+
headers: request_headers.merge(custom_headers || {}),
|
233
|
+
base_url: request_url
|
234
|
+
}
|
235
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
236
|
+
|
237
|
+
promise = promise.then do |result|
|
238
|
+
http_response = result.response
|
239
|
+
status_code = http_response.status
|
240
|
+
response_content = http_response.body
|
241
|
+
unless status_code == 200
|
242
|
+
error_model = JSON.load(response_content)
|
243
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
244
|
+
end
|
245
|
+
|
246
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
247
|
+
# Deserialize Response
|
248
|
+
if status_code == 200
|
249
|
+
begin
|
250
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
251
|
+
result_mapper = FirewallRule.mapper()
|
252
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
253
|
+
rescue Exception => e
|
254
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
result
|
259
|
+
end
|
260
|
+
|
261
|
+
promise.execute
|
262
|
+
end
|
263
|
+
|
148
264
|
#
|
149
265
|
# Deletes the specified firewall rule from the specified Data Lake Store
|
150
266
|
# account
|
@@ -46,6 +46,12 @@ module Azure::ARM::DataLakeStore
|
|
46
46
|
# 'Disabled'
|
47
47
|
attr_accessor :firewall_state
|
48
48
|
|
49
|
+
# @return [FirewallAllowAzureIpsState] The current state of allowing or
|
50
|
+
# disallowing IPs originating within Azure through the firewall. If the
|
51
|
+
# firewall is disabled, this is not enforced. Possible values include:
|
52
|
+
# 'Enabled', 'Disabled'
|
53
|
+
attr_accessor :firewall_allow_azure_ips
|
54
|
+
|
49
55
|
# @return [Array<FirewallRule>] The list of firewall rules associated
|
50
56
|
# with this Data Lake store account.
|
51
57
|
attr_accessor :firewall_rules
|
@@ -69,6 +75,18 @@ module Azure::ARM::DataLakeStore
|
|
69
75
|
# created in the Data Lake Store account.
|
70
76
|
attr_accessor :default_group
|
71
77
|
|
78
|
+
# @return [TierType] the commitment tier to use for next month. Possible
|
79
|
+
# values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB',
|
80
|
+
# 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB',
|
81
|
+
# 'Commitment_5PB'
|
82
|
+
attr_accessor :new_tier
|
83
|
+
|
84
|
+
# @return [TierType] the commitment tier in use for the current month.
|
85
|
+
# Possible values include: 'Consumption', 'Commitment_1TB',
|
86
|
+
# 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB',
|
87
|
+
# 'Commitment_1PB', 'Commitment_5PB'
|
88
|
+
attr_accessor :current_tier
|
89
|
+
|
72
90
|
|
73
91
|
#
|
74
92
|
# Mapper for DataLakeStoreAccount class as Ruby Hash.
|
@@ -194,6 +212,14 @@ module Azure::ARM::DataLakeStore
|
|
194
212
|
module: 'FirewallState'
|
195
213
|
}
|
196
214
|
},
|
215
|
+
firewall_allow_azure_ips: {
|
216
|
+
required: false,
|
217
|
+
serialized_name: 'properties.firewallAllowAzureIps',
|
218
|
+
type: {
|
219
|
+
name: 'Enum',
|
220
|
+
module: 'FirewallAllowAzureIpsState'
|
221
|
+
}
|
222
|
+
},
|
197
223
|
firewall_rules: {
|
198
224
|
required: false,
|
199
225
|
serialized_name: 'properties.firewallRules',
|
@@ -254,6 +280,23 @@ module Azure::ARM::DataLakeStore
|
|
254
280
|
type: {
|
255
281
|
name: 'String'
|
256
282
|
}
|
283
|
+
},
|
284
|
+
new_tier: {
|
285
|
+
required: false,
|
286
|
+
serialized_name: 'properties.newTier',
|
287
|
+
type: {
|
288
|
+
name: 'Enum',
|
289
|
+
module: 'TierType'
|
290
|
+
}
|
291
|
+
},
|
292
|
+
current_tier: {
|
293
|
+
required: false,
|
294
|
+
read_only: true,
|
295
|
+
serialized_name: 'properties.currentTier',
|
296
|
+
type: {
|
297
|
+
name: 'Enum',
|
298
|
+
module: 'TierType'
|
299
|
+
}
|
257
300
|
}
|
258
301
|
}
|
259
302
|
}
|
data/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_update_parameters.rb
CHANGED
@@ -21,6 +21,12 @@ module Azure::ARM::DataLakeStore
|
|
21
21
|
# re-enabled. Possible values include: 'Enabled', 'Disabled'
|
22
22
|
attr_accessor :firewall_state
|
23
23
|
|
24
|
+
# @return [FirewallAllowAzureIpsState] The current state of allowing or
|
25
|
+
# disallowing IPs originating within Azure through the firewall. If the
|
26
|
+
# firewall is disabled, this is not enforced. Possible values include:
|
27
|
+
# 'Enabled', 'Disabled'
|
28
|
+
attr_accessor :firewall_allow_azure_ips
|
29
|
+
|
24
30
|
# @return [TrustedIdProviderState] The current state of the trusted
|
25
31
|
# identity provider feature for this Data Lake store account. Disabling
|
26
32
|
# trusted identity provider functionality does not remove the providers,
|
@@ -32,6 +38,12 @@ module Azure::ARM::DataLakeStore
|
|
32
38
|
# created in the Data Lake Store account.
|
33
39
|
attr_accessor :default_group
|
34
40
|
|
41
|
+
# @return [TierType] the commitment tier to use for next month. Possible
|
42
|
+
# values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB',
|
43
|
+
# 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB',
|
44
|
+
# 'Commitment_5PB'
|
45
|
+
attr_accessor :new_tier
|
46
|
+
|
35
47
|
|
36
48
|
#
|
37
49
|
# Mapper for DataLakeStoreAccountUpdateParameters class as Ruby Hash.
|
@@ -67,6 +79,14 @@ module Azure::ARM::DataLakeStore
|
|
67
79
|
module: 'FirewallState'
|
68
80
|
}
|
69
81
|
},
|
82
|
+
firewall_allow_azure_ips: {
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'properties.firewallAllowAzureIps',
|
85
|
+
type: {
|
86
|
+
name: 'Enum',
|
87
|
+
module: 'FirewallAllowAzureIpsState'
|
88
|
+
}
|
89
|
+
},
|
70
90
|
trusted_id_provider_state: {
|
71
91
|
required: false,
|
72
92
|
serialized_name: 'properties.trustedIdProviderState',
|
@@ -81,6 +101,14 @@ module Azure::ARM::DataLakeStore
|
|
81
101
|
type: {
|
82
102
|
name: 'String'
|
83
103
|
}
|
104
|
+
},
|
105
|
+
new_tier: {
|
106
|
+
required: false,
|
107
|
+
serialized_name: 'properties.newTier',
|
108
|
+
type: {
|
109
|
+
name: 'Enum',
|
110
|
+
module: 'TierType'
|
111
|
+
}
|
84
112
|
}
|
85
113
|
}
|
86
114
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::DataLakeStore
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for FirewallAllowAzureIpsState
|
10
|
+
#
|
11
|
+
module FirewallAllowAzureIpsState
|
12
|
+
Enabled = "Enabled"
|
13
|
+
Disabled = "Disabled"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -8,14 +8,16 @@ module Azure::ARM::DataLakeStore
|
|
8
8
|
#
|
9
9
|
# Data Lake Store firewall rule information
|
10
10
|
#
|
11
|
-
class FirewallRule <
|
11
|
+
class FirewallRule < SubResource
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] the start IP address for the firewall rule.
|
15
|
+
# @return [String] the start IP address for the firewall rule. This can
|
16
|
+
# be either ipv4 or ipv6. Start and End should be in the same protocol.
|
16
17
|
attr_accessor :start_ip_address
|
17
18
|
|
18
|
-
# @return [String] the end IP address for the firewall rule.
|
19
|
+
# @return [String] the end IP address for the firewall rule. This can be
|
20
|
+
# either ipv4 or ipv6. Start and End should be in the same protocol.
|
19
21
|
attr_accessor :end_ip_address
|
20
22
|
|
21
23
|
|
@@ -6,43 +6,50 @@
|
|
6
6
|
module Azure::ARM::DataLakeStore
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# The Resource model definition for a nested resource.
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class SubResource < MsRestAzure::SubResource
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
16
|
-
attr_accessor :
|
15
|
+
# @return [String] Resource name
|
16
|
+
attr_accessor :name
|
17
17
|
|
18
|
-
# @return [String]
|
19
|
-
attr_accessor :
|
18
|
+
# @return [String] Resource type
|
19
|
+
attr_accessor :type
|
20
20
|
|
21
21
|
|
22
22
|
#
|
23
|
-
# Mapper for
|
23
|
+
# Mapper for SubResource class as Ruby Hash.
|
24
24
|
# This will be used for serialization/deserialization.
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
28
|
required: false,
|
29
|
-
serialized_name: '
|
29
|
+
serialized_name: 'SubResource',
|
30
30
|
type: {
|
31
31
|
name: 'Composite',
|
32
|
-
class_name: '
|
32
|
+
class_name: 'SubResource',
|
33
33
|
model_properties: {
|
34
|
-
|
34
|
+
id: {
|
35
35
|
required: false,
|
36
36
|
read_only: true,
|
37
|
-
serialized_name: '
|
37
|
+
serialized_name: 'id',
|
38
38
|
type: {
|
39
39
|
name: 'String'
|
40
40
|
}
|
41
41
|
},
|
42
|
-
|
42
|
+
name: {
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'name',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
type: {
|
43
50
|
required: false,
|
44
51
|
read_only: true,
|
45
|
-
serialized_name: '
|
52
|
+
serialized_name: 'type',
|
46
53
|
type: {
|
47
54
|
name: 'String'
|
48
55
|
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::DataLakeStore
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for TierType
|
10
|
+
#
|
11
|
+
module TierType
|
12
|
+
Consumption = "Consumption"
|
13
|
+
Commitment1TB = "Commitment_1TB"
|
14
|
+
Commitment10TB = "Commitment_10TB"
|
15
|
+
Commitment100TB = "Commitment_100TB"
|
16
|
+
Commitment500TB = "Commitment_500TB"
|
17
|
+
Commitment1PB = "Commitment_1PB"
|
18
|
+
Commitment5PB = "Commitment_5PB"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -6,9 +6,9 @@
|
|
6
6
|
module Azure::ARM::DataLakeStore
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Data Lake Store
|
9
|
+
# Data Lake Store Trusted Identity Provider information
|
10
10
|
#
|
11
|
-
class TrustedIdProvider <
|
11
|
+
class TrustedIdProvider < SubResource
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::DataLakeStore
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Data Lake Analytics firewall rule update parameters
|
10
|
+
#
|
11
|
+
class UpdateFirewallRuleParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] the start IP address for the firewall rule. This can
|
16
|
+
# be either ipv4 or ipv6. Start and End should be in the same protocol.
|
17
|
+
attr_accessor :start_ip_address
|
18
|
+
|
19
|
+
# @return [String] the end IP address for the firewall rule. This can be
|
20
|
+
# either ipv4 or ipv6. Start and End should be in the same protocol.
|
21
|
+
attr_accessor :end_ip_address
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for UpdateFirewallRuleParameters class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'UpdateFirewallRuleParameters',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'UpdateFirewallRuleParameters',
|
35
|
+
model_properties: {
|
36
|
+
start_ip_address: {
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'properties.startIpAddress',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
end_ip_address: {
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'properties.endIpAddress',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::DataLakeStore
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Data Lake Store Trusted Identity Provider update parameters
|
10
|
+
#
|
11
|
+
class UpdateTrustedIdProviderParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The URL of this trusted identity provider
|
16
|
+
attr_accessor :id_provider
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for UpdateTrustedIdProviderParameters class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
required: false,
|
26
|
+
serialized_name: 'UpdateTrustedIdProviderParameters',
|
27
|
+
type: {
|
28
|
+
name: 'Composite',
|
29
|
+
class_name: 'UpdateTrustedIdProviderParameters',
|
30
|
+
model_properties: {
|
31
|
+
id_provider: {
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'properties.idProvider',
|
34
|
+
type: {
|
35
|
+
name: 'String'
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -29,12 +29,12 @@ module Azure::ARM::DataLakeStore
|
|
29
29
|
#
|
30
30
|
# @param resource_group_name [String] The name of the Azure resource group that
|
31
31
|
# contains the Data Lake Store account.
|
32
|
-
# @param account_name [String] The name of the Data Lake Store account to
|
33
|
-
#
|
32
|
+
# @param account_name [String] The name of the Data Lake Store account to add
|
33
|
+
# or replace the trusted identity provider.
|
34
34
|
# @param trusted_id_provider_name [String] The name of the trusted identity
|
35
35
|
# provider. This is used for differentiation of providers in the account.
|
36
|
-
# @param parameters [TrustedIdProvider] Parameters supplied to create
|
37
|
-
#
|
36
|
+
# @param parameters [TrustedIdProvider] Parameters supplied to create or
|
37
|
+
# replace the trusted identity provider.
|
38
38
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
39
39
|
# will be added to the HTTP request.
|
40
40
|
#
|
@@ -52,12 +52,12 @@ module Azure::ARM::DataLakeStore
|
|
52
52
|
#
|
53
53
|
# @param resource_group_name [String] The name of the Azure resource group that
|
54
54
|
# contains the Data Lake Store account.
|
55
|
-
# @param account_name [String] The name of the Data Lake Store account to
|
56
|
-
#
|
55
|
+
# @param account_name [String] The name of the Data Lake Store account to add
|
56
|
+
# or replace the trusted identity provider.
|
57
57
|
# @param trusted_id_provider_name [String] The name of the trusted identity
|
58
58
|
# provider. This is used for differentiation of providers in the account.
|
59
|
-
# @param parameters [TrustedIdProvider] Parameters supplied to create
|
60
|
-
#
|
59
|
+
# @param parameters [TrustedIdProvider] Parameters supplied to create or
|
60
|
+
# replace the trusted identity provider.
|
61
61
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
62
62
|
# will be added to the HTTP request.
|
63
63
|
#
|
@@ -74,12 +74,12 @@ module Azure::ARM::DataLakeStore
|
|
74
74
|
#
|
75
75
|
# @param resource_group_name [String] The name of the Azure resource group that
|
76
76
|
# contains the Data Lake Store account.
|
77
|
-
# @param account_name [String] The name of the Data Lake Store account to
|
78
|
-
#
|
77
|
+
# @param account_name [String] The name of the Data Lake Store account to add
|
78
|
+
# or replace the trusted identity provider.
|
79
79
|
# @param trusted_id_provider_name [String] The name of the trusted identity
|
80
80
|
# provider. This is used for differentiation of providers in the account.
|
81
|
-
# @param parameters [TrustedIdProvider] Parameters supplied to create
|
82
|
-
#
|
81
|
+
# @param parameters [TrustedIdProvider] Parameters supplied to create or
|
82
|
+
# replace the trusted identity provider.
|
83
83
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
84
84
|
# to the HTTP request.
|
85
85
|
#
|
@@ -148,6 +148,125 @@ module Azure::ARM::DataLakeStore
|
|
148
148
|
promise.execute
|
149
149
|
end
|
150
150
|
|
151
|
+
#
|
152
|
+
# Updates the specified trusted identity provider.
|
153
|
+
#
|
154
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
155
|
+
# contains the Data Lake Store account.
|
156
|
+
# @param account_name [String] The name of the Data Lake Store account to which
|
157
|
+
# to update the trusted identity provider.
|
158
|
+
# @param trusted_id_provider_name [String] The name of the trusted identity
|
159
|
+
# provider. This is used for differentiation of providers in the account.
|
160
|
+
# @param parameters [UpdateTrustedIdProviderParameters] Parameters supplied to
|
161
|
+
# update the trusted identity provider.
|
162
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
163
|
+
# will be added to the HTTP request.
|
164
|
+
#
|
165
|
+
# @return [TrustedIdProvider] operation results.
|
166
|
+
#
|
167
|
+
def update(resource_group_name, account_name, trusted_id_provider_name, parameters = nil, custom_headers = nil)
|
168
|
+
response = update_async(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers).value!
|
169
|
+
response.body unless response.nil?
|
170
|
+
end
|
171
|
+
|
172
|
+
#
|
173
|
+
# Updates the specified trusted identity provider.
|
174
|
+
#
|
175
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
176
|
+
# contains the Data Lake Store account.
|
177
|
+
# @param account_name [String] The name of the Data Lake Store account to which
|
178
|
+
# to update the trusted identity provider.
|
179
|
+
# @param trusted_id_provider_name [String] The name of the trusted identity
|
180
|
+
# provider. This is used for differentiation of providers in the account.
|
181
|
+
# @param parameters [UpdateTrustedIdProviderParameters] Parameters supplied to
|
182
|
+
# update the trusted identity provider.
|
183
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
184
|
+
# will be added to the HTTP request.
|
185
|
+
#
|
186
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
187
|
+
#
|
188
|
+
def update_with_http_info(resource_group_name, account_name, trusted_id_provider_name, parameters = nil, custom_headers = nil)
|
189
|
+
update_async(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers).value!
|
190
|
+
end
|
191
|
+
|
192
|
+
#
|
193
|
+
# Updates the specified trusted identity provider.
|
194
|
+
#
|
195
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
196
|
+
# contains the Data Lake Store account.
|
197
|
+
# @param account_name [String] The name of the Data Lake Store account to which
|
198
|
+
# to update the trusted identity provider.
|
199
|
+
# @param trusted_id_provider_name [String] The name of the trusted identity
|
200
|
+
# provider. This is used for differentiation of providers in the account.
|
201
|
+
# @param parameters [UpdateTrustedIdProviderParameters] Parameters supplied to
|
202
|
+
# update the trusted identity provider.
|
203
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
204
|
+
# to the HTTP request.
|
205
|
+
#
|
206
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
207
|
+
#
|
208
|
+
def update_async(resource_group_name, account_name, trusted_id_provider_name, parameters = nil, custom_headers = nil)
|
209
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
210
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
211
|
+
fail ArgumentError, 'trusted_id_provider_name is nil' if trusted_id_provider_name.nil?
|
212
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
213
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
214
|
+
|
215
|
+
|
216
|
+
request_headers = {}
|
217
|
+
|
218
|
+
# Set Headers
|
219
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
220
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
221
|
+
|
222
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
223
|
+
|
224
|
+
# Serialize Request
|
225
|
+
request_mapper = UpdateTrustedIdProviderParameters.mapper()
|
226
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
227
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
228
|
+
|
229
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/trustedIdProviders/{trustedIdProviderName}'
|
230
|
+
|
231
|
+
request_url = @base_url || @client.base_url
|
232
|
+
|
233
|
+
options = {
|
234
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
235
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'trustedIdProviderName' => trusted_id_provider_name,'subscriptionId' => @client.subscription_id},
|
236
|
+
query_params: {'api-version' => @client.api_version},
|
237
|
+
body: request_content,
|
238
|
+
headers: request_headers.merge(custom_headers || {}),
|
239
|
+
base_url: request_url
|
240
|
+
}
|
241
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
242
|
+
|
243
|
+
promise = promise.then do |result|
|
244
|
+
http_response = result.response
|
245
|
+
status_code = http_response.status
|
246
|
+
response_content = http_response.body
|
247
|
+
unless status_code == 200
|
248
|
+
error_model = JSON.load(response_content)
|
249
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
250
|
+
end
|
251
|
+
|
252
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
253
|
+
# Deserialize Response
|
254
|
+
if status_code == 200
|
255
|
+
begin
|
256
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
257
|
+
result_mapper = TrustedIdProvider.mapper()
|
258
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
259
|
+
rescue Exception => e
|
260
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
result
|
265
|
+
end
|
266
|
+
|
267
|
+
promise.execute
|
268
|
+
end
|
269
|
+
|
151
270
|
#
|
152
271
|
# Deletes the specified trusted identity provider from the specified Data Lake
|
153
272
|
# Store account
|
@@ -26,16 +26,17 @@ module Azure::ARM::DataLakeStore
|
|
26
26
|
autoload :DataLakeStoreAccountManagementClient, 'generated/azure_mgmt_datalake_store/data_lake_store_account_management_client.rb'
|
27
27
|
|
28
28
|
module Models
|
29
|
-
autoload :DataLakeStoreAccountUpdateParameters, 'generated/azure_mgmt_datalake_store/models/data_lake_store_account_update_parameters.rb'
|
30
29
|
autoload :KeyVaultMetaInfo, 'generated/azure_mgmt_datalake_store/models/key_vault_meta_info.rb'
|
30
|
+
autoload :EncryptionConfig, 'generated/azure_mgmt_datalake_store/models/encryption_config.rb'
|
31
|
+
autoload :UpdateFirewallRuleParameters, 'generated/azure_mgmt_datalake_store/models/update_firewall_rule_parameters.rb'
|
32
|
+
autoload :UpdateTrustedIdProviderParameters, 'generated/azure_mgmt_datalake_store/models/update_trusted_id_provider_parameters.rb'
|
33
|
+
autoload :SubResource, 'generated/azure_mgmt_datalake_store/models/sub_resource.rb'
|
31
34
|
autoload :DataLakeStoreTrustedIdProviderListResult, 'generated/azure_mgmt_datalake_store/models/data_lake_store_trusted_id_provider_list_result.rb'
|
35
|
+
autoload :DataLakeStoreAccountUpdateParameters, 'generated/azure_mgmt_datalake_store/models/data_lake_store_account_update_parameters.rb'
|
32
36
|
autoload :EncryptionIdentity, 'generated/azure_mgmt_datalake_store/models/encryption_identity.rb'
|
37
|
+
autoload :DataLakeStoreFirewallRuleListResult, 'generated/azure_mgmt_datalake_store/models/data_lake_store_firewall_rule_list_result.rb'
|
33
38
|
autoload :DataLakeStoreAccountListResult, 'generated/azure_mgmt_datalake_store/models/data_lake_store_account_list_result.rb'
|
34
39
|
autoload :ErrorDetails, 'generated/azure_mgmt_datalake_store/models/error_details.rb'
|
35
|
-
autoload :EncryptionConfig, 'generated/azure_mgmt_datalake_store/models/encryption_config.rb'
|
36
|
-
autoload :InnerError, 'generated/azure_mgmt_datalake_store/models/inner_error.rb'
|
37
|
-
autoload :DataLakeStoreFirewallRuleListResult, 'generated/azure_mgmt_datalake_store/models/data_lake_store_firewall_rule_list_result.rb'
|
38
|
-
autoload :Error, 'generated/azure_mgmt_datalake_store/models/error.rb'
|
39
40
|
autoload :FirewallRule, 'generated/azure_mgmt_datalake_store/models/firewall_rule.rb'
|
40
41
|
autoload :TrustedIdProvider, 'generated/azure_mgmt_datalake_store/models/trusted_id_provider.rb'
|
41
42
|
autoload :DataLakeStoreAccount, 'generated/azure_mgmt_datalake_store/models/data_lake_store_account.rb'
|
@@ -45,6 +46,8 @@ module Azure::ARM::DataLakeStore
|
|
45
46
|
autoload :EncryptionState, 'generated/azure_mgmt_datalake_store/models/encryption_state.rb'
|
46
47
|
autoload :EncryptionProvisioningState, 'generated/azure_mgmt_datalake_store/models/encryption_provisioning_state.rb'
|
47
48
|
autoload :FirewallState, 'generated/azure_mgmt_datalake_store/models/firewall_state.rb'
|
49
|
+
autoload :FirewallAllowAzureIpsState, 'generated/azure_mgmt_datalake_store/models/firewall_allow_azure_ips_state.rb'
|
48
50
|
autoload :TrustedIdProviderState, 'generated/azure_mgmt_datalake_store/models/trusted_id_provider_state.rb'
|
51
|
+
autoload :TierType, 'generated/azure_mgmt_datalake_store/models/tier_type.rb'
|
49
52
|
end
|
50
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_datalake_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.7.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.7.0
|
83
83
|
description: Microsoft Azure Resource Provider DataLake Store Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -104,14 +104,17 @@ files:
|
|
104
104
|
- lib/generated/azure_mgmt_datalake_store/models/encryption_identity.rb
|
105
105
|
- lib/generated/azure_mgmt_datalake_store/models/encryption_provisioning_state.rb
|
106
106
|
- lib/generated/azure_mgmt_datalake_store/models/encryption_state.rb
|
107
|
-
- lib/generated/azure_mgmt_datalake_store/models/error.rb
|
108
107
|
- lib/generated/azure_mgmt_datalake_store/models/error_details.rb
|
108
|
+
- lib/generated/azure_mgmt_datalake_store/models/firewall_allow_azure_ips_state.rb
|
109
109
|
- lib/generated/azure_mgmt_datalake_store/models/firewall_rule.rb
|
110
110
|
- lib/generated/azure_mgmt_datalake_store/models/firewall_state.rb
|
111
|
-
- lib/generated/azure_mgmt_datalake_store/models/inner_error.rb
|
112
111
|
- lib/generated/azure_mgmt_datalake_store/models/key_vault_meta_info.rb
|
112
|
+
- lib/generated/azure_mgmt_datalake_store/models/sub_resource.rb
|
113
|
+
- lib/generated/azure_mgmt_datalake_store/models/tier_type.rb
|
113
114
|
- lib/generated/azure_mgmt_datalake_store/models/trusted_id_provider.rb
|
114
115
|
- lib/generated/azure_mgmt_datalake_store/models/trusted_id_provider_state.rb
|
116
|
+
- lib/generated/azure_mgmt_datalake_store/models/update_firewall_rule_parameters.rb
|
117
|
+
- lib/generated/azure_mgmt_datalake_store/models/update_trusted_id_provider_parameters.rb
|
115
118
|
- lib/generated/azure_mgmt_datalake_store/module_definition.rb
|
116
119
|
- lib/generated/azure_mgmt_datalake_store/trusted_id_providers.rb
|
117
120
|
- lib/generated/azure_mgmt_datalake_store/version.rb
|
@@ -1,99 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::DataLakeStore
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Data Lake Store error information
|
10
|
-
#
|
11
|
-
class Error
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] the HTTP status code or error code associated with
|
16
|
-
# this error
|
17
|
-
attr_accessor :code
|
18
|
-
|
19
|
-
# @return [String] the error message to display.
|
20
|
-
attr_accessor :message
|
21
|
-
|
22
|
-
# @return [String] the target of the error.
|
23
|
-
attr_accessor :target
|
24
|
-
|
25
|
-
# @return [Array<ErrorDetails>] the list of error details
|
26
|
-
attr_accessor :details
|
27
|
-
|
28
|
-
# @return [InnerError] the inner exceptions or errors, if any
|
29
|
-
attr_accessor :inner_error
|
30
|
-
|
31
|
-
|
32
|
-
#
|
33
|
-
# Mapper for Error class as Ruby Hash.
|
34
|
-
# This will be used for serialization/deserialization.
|
35
|
-
#
|
36
|
-
def self.mapper()
|
37
|
-
{
|
38
|
-
required: false,
|
39
|
-
serialized_name: 'Error',
|
40
|
-
type: {
|
41
|
-
name: 'Composite',
|
42
|
-
class_name: 'Error',
|
43
|
-
model_properties: {
|
44
|
-
code: {
|
45
|
-
required: false,
|
46
|
-
read_only: true,
|
47
|
-
serialized_name: 'code',
|
48
|
-
type: {
|
49
|
-
name: 'String'
|
50
|
-
}
|
51
|
-
},
|
52
|
-
message: {
|
53
|
-
required: false,
|
54
|
-
read_only: true,
|
55
|
-
serialized_name: 'message',
|
56
|
-
type: {
|
57
|
-
name: 'String'
|
58
|
-
}
|
59
|
-
},
|
60
|
-
target: {
|
61
|
-
required: false,
|
62
|
-
read_only: true,
|
63
|
-
serialized_name: 'target',
|
64
|
-
type: {
|
65
|
-
name: 'String'
|
66
|
-
}
|
67
|
-
},
|
68
|
-
details: {
|
69
|
-
required: false,
|
70
|
-
read_only: true,
|
71
|
-
serialized_name: 'details',
|
72
|
-
type: {
|
73
|
-
name: 'Sequence',
|
74
|
-
element: {
|
75
|
-
required: false,
|
76
|
-
serialized_name: 'ErrorDetailsElementType',
|
77
|
-
type: {
|
78
|
-
name: 'Composite',
|
79
|
-
class_name: 'ErrorDetails'
|
80
|
-
}
|
81
|
-
}
|
82
|
-
}
|
83
|
-
},
|
84
|
-
inner_error: {
|
85
|
-
required: false,
|
86
|
-
read_only: true,
|
87
|
-
serialized_name: 'innerError',
|
88
|
-
type: {
|
89
|
-
name: 'Composite',
|
90
|
-
class_name: 'InnerError'
|
91
|
-
}
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
95
|
-
}
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|