azure_mgmt_logic 0.6.0 → 0.7.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_logic/logic_management_client.rb +55 -4
- data/lib/generated/azure_mgmt_logic/version.rb +1 -1
- data/lib/generated/azure_mgmt_logic/workflow_run_actions.rb +29 -38
- data/lib/generated/azure_mgmt_logic/workflow_runs.rb +38 -50
- data/lib/generated/azure_mgmt_logic/workflow_trigger_histories.rb +29 -38
- data/lib/generated/azure_mgmt_logic/workflow_triggers.rb +47 -62
- data/lib/generated/azure_mgmt_logic/workflow_versions.rb +29 -38
- data/lib/generated/azure_mgmt_logic/workflows.rb +112 -148
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8776ccc0c9d824ea4d721cf97e19077d961f2302
|
4
|
+
data.tar.gz: 8edac5f4335ddea91331c5d611ef7e48cef9b17e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 673d4ae8d34814022673d734ff48ee7629c1dd19e9203930f1919ce6d9754f619c0894cb5ae18502998b864498e15492545426a34abd925ebca06d2796920225
|
7
|
+
data.tar.gz: e369221976eb96d9672edfb5a6760516b7dac7499bc65f3f47800c1c8210ec26e0bc118d49b44874e7f4da380c7ab39583ff3316d543f8073cf7cc9382896ea4
|
@@ -34,10 +34,6 @@ module Azure::ARM::Logic
|
|
34
34
|
# is generated and included in each request. Default is true.
|
35
35
|
attr_accessor :generate_client_request_id
|
36
36
|
|
37
|
-
# @return Subscription credentials which uniquely identify client
|
38
|
-
# subscription.
|
39
|
-
attr_accessor :credentials
|
40
|
-
|
41
37
|
# @return [Workflows] workflows
|
42
38
|
attr_reader :workflows
|
43
39
|
|
@@ -82,5 +78,60 @@ module Azure::ARM::Logic
|
|
82
78
|
@generate_client_request_id = true
|
83
79
|
end
|
84
80
|
|
81
|
+
#
|
82
|
+
# Makes a request and returns the body of the response.
|
83
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
84
|
+
# @param path [String] the path, relative to {base_url}.
|
85
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
86
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
87
|
+
# Example:
|
88
|
+
#
|
89
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
90
|
+
# path = "/path"
|
91
|
+
# options = {
|
92
|
+
# body: request_content,
|
93
|
+
# query_params: {'api-version' => '2016-02-01'}
|
94
|
+
# }
|
95
|
+
# result = @client.make_request(:put, path, options)
|
96
|
+
#
|
97
|
+
def make_request(method, path, options = {})
|
98
|
+
result = make_request_with_http_info(method, path, options)
|
99
|
+
result.body unless result.nil?
|
100
|
+
end
|
101
|
+
|
102
|
+
#
|
103
|
+
# Makes a request and returns the operation response.
|
104
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
105
|
+
# @param path [String] the path, relative to {base_url}.
|
106
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
107
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
108
|
+
#
|
109
|
+
def make_request_with_http_info(method, path, options = {})
|
110
|
+
result = make_request_async(method, path, options).value!
|
111
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
112
|
+
result
|
113
|
+
end
|
114
|
+
|
115
|
+
#
|
116
|
+
# Makes a request asynchronously.
|
117
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
118
|
+
# @param path [String] the path, relative to {base_url}.
|
119
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
120
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
121
|
+
#
|
122
|
+
def make_request_async(method, path, options = {})
|
123
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
124
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
125
|
+
|
126
|
+
request_url = options[:base_url] || @base_url
|
127
|
+
|
128
|
+
request_headers = @request_headers
|
129
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
130
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
131
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
132
|
+
|
133
|
+
super(request_url, method, path, options)
|
134
|
+
end
|
135
|
+
|
85
136
|
end
|
86
137
|
end
|
@@ -40,8 +40,8 @@ module Azure::ARM::Logic
|
|
40
40
|
response = list_async(resource_group_name, workflow_name, run_name, top, filter, custom_headers).value!
|
41
41
|
unless response.nil?
|
42
42
|
page = response.body
|
43
|
-
page.next_method = Proc.new do |
|
44
|
-
list_next_async(
|
43
|
+
page.next_method = Proc.new do |next_page_link|
|
44
|
+
list_next_async(next_page_link, custom_headers)
|
45
45
|
end
|
46
46
|
page
|
47
47
|
end
|
@@ -109,30 +109,27 @@ module Azure::ARM::Logic
|
|
109
109
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
110
110
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
111
111
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions'
|
112
|
+
|
113
|
+
request_url = @base_url || @client.base_url
|
114
|
+
|
112
115
|
options = {
|
113
116
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
114
117
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name,'runName' => run_name},
|
115
118
|
query_params: {'api-version' => @client.api_version,'$top' => top,'$filter' => filter},
|
116
|
-
headers: request_headers.merge(custom_headers || {})
|
119
|
+
headers: request_headers.merge(custom_headers || {}),
|
120
|
+
base_url: request_url
|
117
121
|
}
|
122
|
+
promise = @client.make_request_async(:get, path_template, options)
|
118
123
|
|
119
|
-
|
120
|
-
|
121
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
122
|
-
promise = request.run_promise do |req|
|
123
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
124
|
-
end
|
125
|
-
|
126
|
-
promise = promise.then do |http_response|
|
124
|
+
promise = promise.then do |result|
|
125
|
+
http_response = result.response
|
127
126
|
status_code = http_response.status
|
128
127
|
response_content = http_response.body
|
129
128
|
unless status_code == 200
|
130
129
|
error_model = JSON.load(response_content)
|
131
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
130
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
132
131
|
end
|
133
132
|
|
134
|
-
# Create Result
|
135
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
136
133
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
137
134
|
# Deserialize Response
|
138
135
|
if status_code == 200
|
@@ -211,30 +208,27 @@ module Azure::ARM::Logic
|
|
211
208
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
212
209
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
213
210
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}'
|
211
|
+
|
212
|
+
request_url = @base_url || @client.base_url
|
213
|
+
|
214
214
|
options = {
|
215
215
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
216
216
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name,'runName' => run_name,'actionName' => action_name},
|
217
217
|
query_params: {'api-version' => @client.api_version},
|
218
|
-
headers: request_headers.merge(custom_headers || {})
|
218
|
+
headers: request_headers.merge(custom_headers || {}),
|
219
|
+
base_url: request_url
|
219
220
|
}
|
221
|
+
promise = @client.make_request_async(:get, path_template, options)
|
220
222
|
|
221
|
-
|
222
|
-
|
223
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
224
|
-
promise = request.run_promise do |req|
|
225
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
226
|
-
end
|
227
|
-
|
228
|
-
promise = promise.then do |http_response|
|
223
|
+
promise = promise.then do |result|
|
224
|
+
http_response = result.response
|
229
225
|
status_code = http_response.status
|
230
226
|
response_content = http_response.body
|
231
227
|
unless status_code == 200
|
232
228
|
error_model = JSON.load(response_content)
|
233
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
229
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
234
230
|
end
|
235
231
|
|
236
|
-
# Create Result
|
237
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
238
232
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
239
233
|
# Deserialize Response
|
240
234
|
if status_code == 200
|
@@ -302,29 +296,26 @@ module Azure::ARM::Logic
|
|
302
296
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
303
297
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
304
298
|
path_template = '{nextLink}'
|
299
|
+
|
300
|
+
request_url = @base_url || @client.base_url
|
301
|
+
|
305
302
|
options = {
|
306
303
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
307
304
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
308
|
-
headers: request_headers.merge(custom_headers || {})
|
305
|
+
headers: request_headers.merge(custom_headers || {}),
|
306
|
+
base_url: request_url
|
309
307
|
}
|
308
|
+
promise = @client.make_request_async(:get, path_template, options)
|
310
309
|
|
311
|
-
|
312
|
-
|
313
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
314
|
-
promise = request.run_promise do |req|
|
315
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
316
|
-
end
|
317
|
-
|
318
|
-
promise = promise.then do |http_response|
|
310
|
+
promise = promise.then do |result|
|
311
|
+
http_response = result.response
|
319
312
|
status_code = http_response.status
|
320
313
|
response_content = http_response.body
|
321
314
|
unless status_code == 200
|
322
315
|
error_model = JSON.load(response_content)
|
323
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
316
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
324
317
|
end
|
325
318
|
|
326
|
-
# Create Result
|
327
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
328
319
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
329
320
|
# Deserialize Response
|
330
321
|
if status_code == 200
|
@@ -39,8 +39,8 @@ module Azure::ARM::Logic
|
|
39
39
|
response = list_async(resource_group_name, workflow_name, top, filter, custom_headers).value!
|
40
40
|
unless response.nil?
|
41
41
|
page = response.body
|
42
|
-
page.next_method = Proc.new do |
|
43
|
-
list_next_async(
|
42
|
+
page.next_method = Proc.new do |next_page_link|
|
43
|
+
list_next_async(next_page_link, custom_headers)
|
44
44
|
end
|
45
45
|
page
|
46
46
|
end
|
@@ -104,30 +104,27 @@ module Azure::ARM::Logic
|
|
104
104
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
105
105
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
106
106
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs'
|
107
|
+
|
108
|
+
request_url = @base_url || @client.base_url
|
109
|
+
|
107
110
|
options = {
|
108
111
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
109
112
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
|
110
113
|
query_params: {'api-version' => @client.api_version,'$top' => top,'$filter' => filter},
|
111
|
-
headers: request_headers.merge(custom_headers || {})
|
114
|
+
headers: request_headers.merge(custom_headers || {}),
|
115
|
+
base_url: request_url
|
112
116
|
}
|
117
|
+
promise = @client.make_request_async(:get, path_template, options)
|
113
118
|
|
114
|
-
|
115
|
-
|
116
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
117
|
-
promise = request.run_promise do |req|
|
118
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
119
|
-
end
|
120
|
-
|
121
|
-
promise = promise.then do |http_response|
|
119
|
+
promise = promise.then do |result|
|
120
|
+
http_response = result.response
|
122
121
|
status_code = http_response.status
|
123
122
|
response_content = http_response.body
|
124
123
|
unless status_code == 200
|
125
124
|
error_model = JSON.load(response_content)
|
126
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
125
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
127
126
|
end
|
128
127
|
|
129
|
-
# Create Result
|
130
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
131
128
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
132
129
|
# Deserialize Response
|
133
130
|
if status_code == 200
|
@@ -202,30 +199,27 @@ module Azure::ARM::Logic
|
|
202
199
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
203
200
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
204
201
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}'
|
202
|
+
|
203
|
+
request_url = @base_url || @client.base_url
|
204
|
+
|
205
205
|
options = {
|
206
206
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
207
207
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name,'runName' => run_name},
|
208
208
|
query_params: {'api-version' => @client.api_version},
|
209
|
-
headers: request_headers.merge(custom_headers || {})
|
209
|
+
headers: request_headers.merge(custom_headers || {}),
|
210
|
+
base_url: request_url
|
210
211
|
}
|
212
|
+
promise = @client.make_request_async(:get, path_template, options)
|
211
213
|
|
212
|
-
|
213
|
-
|
214
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
215
|
-
promise = request.run_promise do |req|
|
216
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
217
|
-
end
|
218
|
-
|
219
|
-
promise = promise.then do |http_response|
|
214
|
+
promise = promise.then do |result|
|
215
|
+
http_response = result.response
|
220
216
|
status_code = http_response.status
|
221
217
|
response_content = http_response.body
|
222
218
|
unless status_code == 200
|
223
219
|
error_model = JSON.load(response_content)
|
224
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
220
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
225
221
|
end
|
226
222
|
|
227
|
-
# Create Result
|
228
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
229
223
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
230
224
|
# Deserialize Response
|
231
225
|
if status_code == 200
|
@@ -299,30 +293,27 @@ module Azure::ARM::Logic
|
|
299
293
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
300
294
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
301
295
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/cancel'
|
296
|
+
|
297
|
+
request_url = @base_url || @client.base_url
|
298
|
+
|
302
299
|
options = {
|
303
300
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
304
301
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name,'runName' => run_name},
|
305
302
|
query_params: {'api-version' => @client.api_version},
|
306
|
-
headers: request_headers.merge(custom_headers || {})
|
303
|
+
headers: request_headers.merge(custom_headers || {}),
|
304
|
+
base_url: request_url
|
307
305
|
}
|
306
|
+
promise = @client.make_request_async(:post, path_template, options)
|
308
307
|
|
309
|
-
|
310
|
-
|
311
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
312
|
-
promise = request.run_promise do |req|
|
313
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
314
|
-
end
|
315
|
-
|
316
|
-
promise = promise.then do |http_response|
|
308
|
+
promise = promise.then do |result|
|
309
|
+
http_response = result.response
|
317
310
|
status_code = http_response.status
|
318
311
|
response_content = http_response.body
|
319
312
|
unless status_code == 200
|
320
313
|
error_model = JSON.load(response_content)
|
321
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
314
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
322
315
|
end
|
323
316
|
|
324
|
-
# Create Result
|
325
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
326
317
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
327
318
|
|
328
319
|
result
|
@@ -380,29 +371,26 @@ module Azure::ARM::Logic
|
|
380
371
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
381
372
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
382
373
|
path_template = '{nextLink}'
|
374
|
+
|
375
|
+
request_url = @base_url || @client.base_url
|
376
|
+
|
383
377
|
options = {
|
384
378
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
385
379
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
386
|
-
headers: request_headers.merge(custom_headers || {})
|
380
|
+
headers: request_headers.merge(custom_headers || {}),
|
381
|
+
base_url: request_url
|
387
382
|
}
|
383
|
+
promise = @client.make_request_async(:get, path_template, options)
|
388
384
|
|
389
|
-
|
390
|
-
|
391
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
392
|
-
promise = request.run_promise do |req|
|
393
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
394
|
-
end
|
395
|
-
|
396
|
-
promise = promise.then do |http_response|
|
385
|
+
promise = promise.then do |result|
|
386
|
+
http_response = result.response
|
397
387
|
status_code = http_response.status
|
398
388
|
response_content = http_response.body
|
399
389
|
unless status_code == 200
|
400
390
|
error_model = JSON.load(response_content)
|
401
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
391
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
402
392
|
end
|
403
393
|
|
404
|
-
# Create Result
|
405
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
406
394
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
407
395
|
# Deserialize Response
|
408
396
|
if status_code == 200
|
@@ -40,8 +40,8 @@ module Azure::ARM::Logic
|
|
40
40
|
response = list_async(resource_group_name, workflow_name, trigger_name, top, filter, custom_headers).value!
|
41
41
|
unless response.nil?
|
42
42
|
page = response.body
|
43
|
-
page.next_method = Proc.new do |
|
44
|
-
list_next_async(
|
43
|
+
page.next_method = Proc.new do |next_page_link|
|
44
|
+
list_next_async(next_page_link, custom_headers)
|
45
45
|
end
|
46
46
|
page
|
47
47
|
end
|
@@ -109,30 +109,27 @@ module Azure::ARM::Logic
|
|
109
109
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
110
110
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
111
111
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/histories'
|
112
|
+
|
113
|
+
request_url = @base_url || @client.base_url
|
114
|
+
|
112
115
|
options = {
|
113
116
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
114
117
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name,'triggerName' => trigger_name},
|
115
118
|
query_params: {'api-version' => @client.api_version,'$top' => top,'$filter' => filter},
|
116
|
-
headers: request_headers.merge(custom_headers || {})
|
119
|
+
headers: request_headers.merge(custom_headers || {}),
|
120
|
+
base_url: request_url
|
117
121
|
}
|
122
|
+
promise = @client.make_request_async(:get, path_template, options)
|
118
123
|
|
119
|
-
|
120
|
-
|
121
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
122
|
-
promise = request.run_promise do |req|
|
123
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
124
|
-
end
|
125
|
-
|
126
|
-
promise = promise.then do |http_response|
|
124
|
+
promise = promise.then do |result|
|
125
|
+
http_response = result.response
|
127
126
|
status_code = http_response.status
|
128
127
|
response_content = http_response.body
|
129
128
|
unless status_code == 200
|
130
129
|
error_model = JSON.load(response_content)
|
131
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
130
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
132
131
|
end
|
133
132
|
|
134
|
-
# Create Result
|
135
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
136
133
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
137
134
|
# Deserialize Response
|
138
135
|
if status_code == 200
|
@@ -211,30 +208,27 @@ module Azure::ARM::Logic
|
|
211
208
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
212
209
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
213
210
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/histories/{historyName}'
|
211
|
+
|
212
|
+
request_url = @base_url || @client.base_url
|
213
|
+
|
214
214
|
options = {
|
215
215
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
216
216
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name,'triggerName' => trigger_name,'historyName' => history_name},
|
217
217
|
query_params: {'api-version' => @client.api_version},
|
218
|
-
headers: request_headers.merge(custom_headers || {})
|
218
|
+
headers: request_headers.merge(custom_headers || {}),
|
219
|
+
base_url: request_url
|
219
220
|
}
|
221
|
+
promise = @client.make_request_async(:get, path_template, options)
|
220
222
|
|
221
|
-
|
222
|
-
|
223
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
224
|
-
promise = request.run_promise do |req|
|
225
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
226
|
-
end
|
227
|
-
|
228
|
-
promise = promise.then do |http_response|
|
223
|
+
promise = promise.then do |result|
|
224
|
+
http_response = result.response
|
229
225
|
status_code = http_response.status
|
230
226
|
response_content = http_response.body
|
231
227
|
unless status_code == 200
|
232
228
|
error_model = JSON.load(response_content)
|
233
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
229
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
234
230
|
end
|
235
231
|
|
236
|
-
# Create Result
|
237
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
238
232
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
239
233
|
# Deserialize Response
|
240
234
|
if status_code == 200
|
@@ -302,29 +296,26 @@ module Azure::ARM::Logic
|
|
302
296
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
303
297
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
304
298
|
path_template = '{nextLink}'
|
299
|
+
|
300
|
+
request_url = @base_url || @client.base_url
|
301
|
+
|
305
302
|
options = {
|
306
303
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
307
304
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
308
|
-
headers: request_headers.merge(custom_headers || {})
|
305
|
+
headers: request_headers.merge(custom_headers || {}),
|
306
|
+
base_url: request_url
|
309
307
|
}
|
308
|
+
promise = @client.make_request_async(:get, path_template, options)
|
310
309
|
|
311
|
-
|
312
|
-
|
313
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
314
|
-
promise = request.run_promise do |req|
|
315
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
316
|
-
end
|
317
|
-
|
318
|
-
promise = promise.then do |http_response|
|
310
|
+
promise = promise.then do |result|
|
311
|
+
http_response = result.response
|
319
312
|
status_code = http_response.status
|
320
313
|
response_content = http_response.body
|
321
314
|
unless status_code == 200
|
322
315
|
error_model = JSON.load(response_content)
|
323
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
316
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
324
317
|
end
|
325
318
|
|
326
|
-
# Create Result
|
327
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
328
319
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
329
320
|
# Deserialize Response
|
330
321
|
if status_code == 200
|