azure_mgmt_mobile_engagement 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_mobile_engagement/app_collections.rb +29 -38
- data/lib/generated/azure_mgmt_mobile_engagement/apps.rb +20 -26
- data/lib/generated/azure_mgmt_mobile_engagement/campaigns.rb +128 -170
- data/lib/generated/azure_mgmt_mobile_engagement/devices.rb +56 -74
- data/lib/generated/azure_mgmt_mobile_engagement/engagement_management_client.rb +55 -4
- data/lib/generated/azure_mgmt_mobile_engagement/export_tasks.rb +119 -158
- data/lib/generated/azure_mgmt_mobile_engagement/import_tasks.rb +38 -50
- data/lib/generated/azure_mgmt_mobile_engagement/supported_platforms.rb +9 -12
- data/lib/generated/azure_mgmt_mobile_engagement/version.rb +1 -1
- 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: fd78d984acb538b45fb1598d27098126f44bc460
|
4
|
+
data.tar.gz: 6324cbb034cdd7984ffcc091873c973d5fa10290
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 716f87d641ac6cb437858ee0d011d5cd3de7ad09014843ecef1266e03e0f086ccafe2e6a416037d61dba92e1d7b27659aec017503e9ee09eb08945ac59f62365
|
7
|
+
data.tar.gz: 59d5a38a7b68d64c00a9315864fea4076474b42adfa62b659a776898d9560da98be1bc1740067bfe15625379217ed683a6dcb1127c2615f069a50de32ddb93e4
|
@@ -35,8 +35,8 @@ module Azure::ARM::MobileEngagement
|
|
35
35
|
response = list_async(custom_headers).value!
|
36
36
|
unless response.nil?
|
37
37
|
page = response.body
|
38
|
-
page.next_method = Proc.new do |
|
39
|
-
list_next_async(
|
38
|
+
page.next_method = Proc.new do |next_page_link|
|
39
|
+
list_next_async(next_page_link, custom_headers)
|
40
40
|
end
|
41
41
|
page
|
42
42
|
end
|
@@ -86,30 +86,27 @@ module Azure::ARM::MobileEngagement
|
|
86
86
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
87
87
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
88
88
|
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.MobileEngagement/appCollections'
|
89
|
+
|
90
|
+
request_url = @base_url || @client.base_url
|
91
|
+
|
89
92
|
options = {
|
90
93
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
91
94
|
path_params: {'subscriptionId' => @client.subscription_id},
|
92
95
|
query_params: {'api-version' => @client.api_version},
|
93
|
-
headers: request_headers.merge(custom_headers || {})
|
96
|
+
headers: request_headers.merge(custom_headers || {}),
|
97
|
+
base_url: request_url
|
94
98
|
}
|
99
|
+
promise = @client.make_request_async(:get, path_template, options)
|
95
100
|
|
96
|
-
|
97
|
-
|
98
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
99
|
-
promise = request.run_promise do |req|
|
100
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
101
|
-
end
|
102
|
-
|
103
|
-
promise = promise.then do |http_response|
|
101
|
+
promise = promise.then do |result|
|
102
|
+
http_response = result.response
|
104
103
|
status_code = http_response.status
|
105
104
|
response_content = http_response.body
|
106
105
|
unless status_code == 200
|
107
106
|
error_model = JSON.load(response_content)
|
108
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
107
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
109
108
|
end
|
110
109
|
|
111
|
-
# Create Result
|
112
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
113
110
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
114
111
|
# Deserialize Response
|
115
112
|
if status_code == 200
|
@@ -184,31 +181,28 @@ module Azure::ARM::MobileEngagement
|
|
184
181
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
185
182
|
|
186
183
|
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.MobileEngagement/checkAppCollectionNameAvailability'
|
184
|
+
|
185
|
+
request_url = @base_url || @client.base_url
|
186
|
+
|
187
187
|
options = {
|
188
188
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
189
189
|
path_params: {'subscriptionId' => @client.subscription_id},
|
190
190
|
query_params: {'api-version' => @client.api_version},
|
191
191
|
body: request_content,
|
192
|
-
headers: request_headers.merge(custom_headers || {})
|
192
|
+
headers: request_headers.merge(custom_headers || {}),
|
193
|
+
base_url: request_url
|
193
194
|
}
|
195
|
+
promise = @client.make_request_async(:post, path_template, options)
|
194
196
|
|
195
|
-
|
196
|
-
|
197
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
198
|
-
promise = request.run_promise do |req|
|
199
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
200
|
-
end
|
201
|
-
|
202
|
-
promise = promise.then do |http_response|
|
197
|
+
promise = promise.then do |result|
|
198
|
+
http_response = result.response
|
203
199
|
status_code = http_response.status
|
204
200
|
response_content = http_response.body
|
205
201
|
unless status_code == 200
|
206
202
|
error_model = JSON.load(response_content)
|
207
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
203
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
208
204
|
end
|
209
205
|
|
210
|
-
# Create Result
|
211
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
212
206
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
213
207
|
# Deserialize Response
|
214
208
|
if status_code == 200
|
@@ -276,29 +270,26 @@ module Azure::ARM::MobileEngagement
|
|
276
270
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
277
271
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
278
272
|
path_template = '{nextLink}'
|
273
|
+
|
274
|
+
request_url = @base_url || @client.base_url
|
275
|
+
|
279
276
|
options = {
|
280
277
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
281
278
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
282
|
-
headers: request_headers.merge(custom_headers || {})
|
279
|
+
headers: request_headers.merge(custom_headers || {}),
|
280
|
+
base_url: request_url
|
283
281
|
}
|
282
|
+
promise = @client.make_request_async(:get, path_template, options)
|
284
283
|
|
285
|
-
|
286
|
-
|
287
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
288
|
-
promise = request.run_promise do |req|
|
289
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
290
|
-
end
|
291
|
-
|
292
|
-
promise = promise.then do |http_response|
|
284
|
+
promise = promise.then do |result|
|
285
|
+
http_response = result.response
|
293
286
|
status_code = http_response.status
|
294
287
|
response_content = http_response.body
|
295
288
|
unless status_code == 200
|
296
289
|
error_model = JSON.load(response_content)
|
297
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
290
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
298
291
|
end
|
299
292
|
|
300
|
-
# Create Result
|
301
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
302
293
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
303
294
|
# Deserialize Response
|
304
295
|
if status_code == 200
|
@@ -34,8 +34,8 @@ module Azure::ARM::MobileEngagement
|
|
34
34
|
response = list_async(custom_headers).value!
|
35
35
|
unless response.nil?
|
36
36
|
page = response.body
|
37
|
-
page.next_method = Proc.new do |
|
38
|
-
list_next_async(
|
37
|
+
page.next_method = Proc.new do |next_page_link|
|
38
|
+
list_next_async(next_page_link, custom_headers)
|
39
39
|
end
|
40
40
|
page
|
41
41
|
end
|
@@ -87,30 +87,27 @@ module Azure::ARM::MobileEngagement
|
|
87
87
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
88
88
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
89
89
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps'
|
90
|
+
|
91
|
+
request_url = @base_url || @client.base_url
|
92
|
+
|
90
93
|
options = {
|
91
94
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
92
95
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection},
|
93
96
|
query_params: {'api-version' => @client.api_version},
|
94
|
-
headers: request_headers.merge(custom_headers || {})
|
97
|
+
headers: request_headers.merge(custom_headers || {}),
|
98
|
+
base_url: request_url
|
95
99
|
}
|
100
|
+
promise = @client.make_request_async(:get, path_template, options)
|
96
101
|
|
97
|
-
|
98
|
-
|
99
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
100
|
-
promise = request.run_promise do |req|
|
101
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
102
|
-
end
|
103
|
-
|
104
|
-
promise = promise.then do |http_response|
|
102
|
+
promise = promise.then do |result|
|
103
|
+
http_response = result.response
|
105
104
|
status_code = http_response.status
|
106
105
|
response_content = http_response.body
|
107
106
|
unless status_code == 200
|
108
107
|
error_model = JSON.load(response_content)
|
109
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
108
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
110
109
|
end
|
111
110
|
|
112
|
-
# Create Result
|
113
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
114
111
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
115
112
|
# Deserialize Response
|
116
113
|
if status_code == 200
|
@@ -178,29 +175,26 @@ module Azure::ARM::MobileEngagement
|
|
178
175
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
179
176
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
180
177
|
path_template = '{nextLink}'
|
178
|
+
|
179
|
+
request_url = @base_url || @client.base_url
|
180
|
+
|
181
181
|
options = {
|
182
182
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
183
183
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
184
|
-
headers: request_headers.merge(custom_headers || {})
|
184
|
+
headers: request_headers.merge(custom_headers || {}),
|
185
|
+
base_url: request_url
|
185
186
|
}
|
187
|
+
promise = @client.make_request_async(:get, path_template, options)
|
186
188
|
|
187
|
-
|
188
|
-
|
189
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
190
|
-
promise = request.run_promise do |req|
|
191
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
192
|
-
end
|
193
|
-
|
194
|
-
promise = promise.then do |http_response|
|
189
|
+
promise = promise.then do |result|
|
190
|
+
http_response = result.response
|
195
191
|
status_code = http_response.status
|
196
192
|
response_content = http_response.body
|
197
193
|
unless status_code == 200
|
198
194
|
error_model = JSON.load(response_content)
|
199
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
195
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
200
196
|
end
|
201
197
|
|
202
|
-
# Create Result
|
203
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
204
198
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
205
199
|
# Deserialize Response
|
206
200
|
if status_code == 200
|
@@ -58,8 +58,8 @@ module Azure::ARM::MobileEngagement
|
|
58
58
|
response = list_async(kind, skip, top, filter, orderby, search, custom_headers).value!
|
59
59
|
unless response.nil?
|
60
60
|
page = response.body
|
61
|
-
page.next_method = Proc.new do |
|
62
|
-
list_next_async(
|
61
|
+
page.next_method = Proc.new do |next_page_link|
|
62
|
+
list_next_async(next_page_link, custom_headers)
|
63
63
|
end
|
64
64
|
page
|
65
65
|
end
|
@@ -182,30 +182,27 @@ module Azure::ARM::MobileEngagement
|
|
182
182
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
183
183
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
184
184
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaigns/{kind}'
|
185
|
+
|
186
|
+
request_url = @base_url || @client.base_url
|
187
|
+
|
185
188
|
options = {
|
186
189
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
187
190
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name,'kind' => kind},
|
188
191
|
query_params: {'api-version' => @client.api_version,'$skip' => skip,'$top' => top,'$filter' => filter,'$orderby' => orderby,'$search' => search},
|
189
|
-
headers: request_headers.merge(custom_headers || {})
|
192
|
+
headers: request_headers.merge(custom_headers || {}),
|
193
|
+
base_url: request_url
|
190
194
|
}
|
195
|
+
promise = @client.make_request_async(:get, path_template, options)
|
191
196
|
|
192
|
-
|
193
|
-
|
194
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
195
|
-
promise = request.run_promise do |req|
|
196
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
197
|
-
end
|
198
|
-
|
199
|
-
promise = promise.then do |http_response|
|
197
|
+
promise = promise.then do |result|
|
198
|
+
http_response = result.response
|
200
199
|
status_code = http_response.status
|
201
200
|
response_content = http_response.body
|
202
201
|
unless status_code == 200
|
203
202
|
error_model = JSON.load(response_content)
|
204
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
203
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
205
204
|
end
|
206
205
|
|
207
|
-
# Create Result
|
208
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
209
206
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
210
207
|
# Deserialize Response
|
211
208
|
if status_code == 200
|
@@ -293,31 +290,28 @@ module Azure::ARM::MobileEngagement
|
|
293
290
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
294
291
|
|
295
292
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaigns/{kind}'
|
293
|
+
|
294
|
+
request_url = @base_url || @client.base_url
|
295
|
+
|
296
296
|
options = {
|
297
297
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
298
298
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name,'kind' => kind},
|
299
299
|
query_params: {'api-version' => @client.api_version},
|
300
300
|
body: request_content,
|
301
|
-
headers: request_headers.merge(custom_headers || {})
|
301
|
+
headers: request_headers.merge(custom_headers || {}),
|
302
|
+
base_url: request_url
|
302
303
|
}
|
304
|
+
promise = @client.make_request_async(:post, path_template, options)
|
303
305
|
|
304
|
-
|
305
|
-
|
306
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
307
|
-
promise = request.run_promise do |req|
|
308
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
309
|
-
end
|
310
|
-
|
311
|
-
promise = promise.then do |http_response|
|
306
|
+
promise = promise.then do |result|
|
307
|
+
http_response = result.response
|
312
308
|
status_code = http_response.status
|
313
309
|
response_content = http_response.body
|
314
310
|
unless status_code == 201
|
315
311
|
error_model = JSON.load(response_content)
|
316
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
312
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
317
313
|
end
|
318
314
|
|
319
|
-
# Create Result
|
320
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
321
315
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
322
316
|
# Deserialize Response
|
323
317
|
if status_code == 201
|
@@ -397,30 +391,27 @@ module Azure::ARM::MobileEngagement
|
|
397
391
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
398
392
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
399
393
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaigns/{kind}/{id}'
|
394
|
+
|
395
|
+
request_url = @base_url || @client.base_url
|
396
|
+
|
400
397
|
options = {
|
401
398
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
402
399
|
path_params: {'kind' => kind,'id' => id,'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
|
403
400
|
query_params: {'api-version' => @client.api_version},
|
404
|
-
headers: request_headers.merge(custom_headers || {})
|
401
|
+
headers: request_headers.merge(custom_headers || {}),
|
402
|
+
base_url: request_url
|
405
403
|
}
|
404
|
+
promise = @client.make_request_async(:get, path_template, options)
|
406
405
|
|
407
|
-
|
408
|
-
|
409
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
410
|
-
promise = request.run_promise do |req|
|
411
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
412
|
-
end
|
413
|
-
|
414
|
-
promise = promise.then do |http_response|
|
406
|
+
promise = promise.then do |result|
|
407
|
+
http_response = result.response
|
415
408
|
status_code = http_response.status
|
416
409
|
response_content = http_response.body
|
417
410
|
unless status_code == 200
|
418
411
|
error_model = JSON.load(response_content)
|
419
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
412
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
420
413
|
end
|
421
414
|
|
422
|
-
# Create Result
|
423
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
424
415
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
425
416
|
# Deserialize Response
|
426
417
|
if status_code == 200
|
@@ -515,31 +506,28 @@ module Azure::ARM::MobileEngagement
|
|
515
506
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
516
507
|
|
517
508
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaigns/{kind}/{id}'
|
509
|
+
|
510
|
+
request_url = @base_url || @client.base_url
|
511
|
+
|
518
512
|
options = {
|
519
513
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
520
514
|
path_params: {'kind' => kind,'id' => id,'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
|
521
515
|
query_params: {'api-version' => @client.api_version},
|
522
516
|
body: request_content,
|
523
|
-
headers: request_headers.merge(custom_headers || {})
|
517
|
+
headers: request_headers.merge(custom_headers || {}),
|
518
|
+
base_url: request_url
|
524
519
|
}
|
520
|
+
promise = @client.make_request_async(:put, path_template, options)
|
525
521
|
|
526
|
-
|
527
|
-
|
528
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
529
|
-
promise = request.run_promise do |req|
|
530
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
531
|
-
end
|
532
|
-
|
533
|
-
promise = promise.then do |http_response|
|
522
|
+
promise = promise.then do |result|
|
523
|
+
http_response = result.response
|
534
524
|
status_code = http_response.status
|
535
525
|
response_content = http_response.body
|
536
526
|
unless status_code == 200
|
537
527
|
error_model = JSON.load(response_content)
|
538
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
528
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
539
529
|
end
|
540
530
|
|
541
|
-
# Create Result
|
542
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
543
531
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
544
532
|
# Deserialize Response
|
545
533
|
if status_code == 200
|
@@ -615,30 +603,27 @@ module Azure::ARM::MobileEngagement
|
|
615
603
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
616
604
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
617
605
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaigns/{kind}/{id}'
|
606
|
+
|
607
|
+
request_url = @base_url || @client.base_url
|
608
|
+
|
618
609
|
options = {
|
619
610
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
620
611
|
path_params: {'kind' => kind,'id' => id,'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
|
621
612
|
query_params: {'api-version' => @client.api_version},
|
622
|
-
headers: request_headers.merge(custom_headers || {})
|
613
|
+
headers: request_headers.merge(custom_headers || {}),
|
614
|
+
base_url: request_url
|
623
615
|
}
|
616
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
624
617
|
|
625
|
-
|
626
|
-
|
627
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
628
|
-
promise = request.run_promise do |req|
|
629
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
630
|
-
end
|
631
|
-
|
632
|
-
promise = promise.then do |http_response|
|
618
|
+
promise = promise.then do |result|
|
619
|
+
http_response = result.response
|
633
620
|
status_code = http_response.status
|
634
621
|
response_content = http_response.body
|
635
622
|
unless status_code == 200
|
636
623
|
error_model = JSON.load(response_content)
|
637
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
624
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
638
625
|
end
|
639
626
|
|
640
|
-
# Create Result
|
641
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
642
627
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
643
628
|
|
644
629
|
result
|
@@ -708,30 +693,27 @@ module Azure::ARM::MobileEngagement
|
|
708
693
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
709
694
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
710
695
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaignsByName/{kind}/{name}'
|
696
|
+
|
697
|
+
request_url = @base_url || @client.base_url
|
698
|
+
|
711
699
|
options = {
|
712
700
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
713
701
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name,'kind' => kind,'name' => name},
|
714
702
|
query_params: {'api-version' => @client.api_version},
|
715
|
-
headers: request_headers.merge(custom_headers || {})
|
703
|
+
headers: request_headers.merge(custom_headers || {}),
|
704
|
+
base_url: request_url
|
716
705
|
}
|
706
|
+
promise = @client.make_request_async(:get, path_template, options)
|
717
707
|
|
718
|
-
|
719
|
-
|
720
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
721
|
-
promise = request.run_promise do |req|
|
722
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
723
|
-
end
|
724
|
-
|
725
|
-
promise = promise.then do |http_response|
|
708
|
+
promise = promise.then do |result|
|
709
|
+
http_response = result.response
|
726
710
|
status_code = http_response.status
|
727
711
|
response_content = http_response.body
|
728
712
|
unless status_code == 200
|
729
713
|
error_model = JSON.load(response_content)
|
730
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
714
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
731
715
|
end
|
732
716
|
|
733
|
-
# Create Result
|
734
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
735
717
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
736
718
|
# Deserialize Response
|
737
719
|
if status_code == 200
|
@@ -823,31 +805,28 @@ module Azure::ARM::MobileEngagement
|
|
823
805
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
824
806
|
|
825
807
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaigns/{kind}/{id}/test'
|
808
|
+
|
809
|
+
request_url = @base_url || @client.base_url
|
810
|
+
|
826
811
|
options = {
|
827
812
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
828
813
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name,'kind' => kind,'id' => id},
|
829
814
|
query_params: {'api-version' => @client.api_version},
|
830
815
|
body: request_content,
|
831
|
-
headers: request_headers.merge(custom_headers || {})
|
816
|
+
headers: request_headers.merge(custom_headers || {}),
|
817
|
+
base_url: request_url
|
832
818
|
}
|
819
|
+
promise = @client.make_request_async(:post, path_template, options)
|
833
820
|
|
834
|
-
|
835
|
-
|
836
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
837
|
-
promise = request.run_promise do |req|
|
838
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
839
|
-
end
|
840
|
-
|
841
|
-
promise = promise.then do |http_response|
|
821
|
+
promise = promise.then do |result|
|
822
|
+
http_response = result.response
|
842
823
|
status_code = http_response.status
|
843
824
|
response_content = http_response.body
|
844
825
|
unless status_code == 200
|
845
826
|
error_model = JSON.load(response_content)
|
846
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
827
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
847
828
|
end
|
848
829
|
|
849
|
-
# Create Result
|
850
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
851
830
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
852
831
|
# Deserialize Response
|
853
832
|
if status_code == 200
|
@@ -935,31 +914,28 @@ module Azure::ARM::MobileEngagement
|
|
935
914
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
936
915
|
|
937
916
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaigns/{kind}/test'
|
917
|
+
|
918
|
+
request_url = @base_url || @client.base_url
|
919
|
+
|
938
920
|
options = {
|
939
921
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
940
922
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name,'kind' => kind},
|
941
923
|
query_params: {'api-version' => @client.api_version},
|
942
924
|
body: request_content,
|
943
|
-
headers: request_headers.merge(custom_headers || {})
|
925
|
+
headers: request_headers.merge(custom_headers || {}),
|
926
|
+
base_url: request_url
|
944
927
|
}
|
928
|
+
promise = @client.make_request_async(:post, path_template, options)
|
945
929
|
|
946
|
-
|
947
|
-
|
948
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
949
|
-
promise = request.run_promise do |req|
|
950
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
951
|
-
end
|
952
|
-
|
953
|
-
promise = promise.then do |http_response|
|
930
|
+
promise = promise.then do |result|
|
931
|
+
http_response = result.response
|
954
932
|
status_code = http_response.status
|
955
933
|
response_content = http_response.body
|
956
934
|
unless status_code == 200
|
957
935
|
error_model = JSON.load(response_content)
|
958
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
936
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
959
937
|
end
|
960
938
|
|
961
|
-
# Create Result
|
962
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
963
939
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
964
940
|
# Deserialize Response
|
965
941
|
if status_code == 200
|
@@ -1036,30 +1012,27 @@ module Azure::ARM::MobileEngagement
|
|
1036
1012
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1037
1013
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1038
1014
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaigns/{kind}/{id}/activate'
|
1015
|
+
|
1016
|
+
request_url = @base_url || @client.base_url
|
1017
|
+
|
1039
1018
|
options = {
|
1040
1019
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1041
1020
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name,'kind' => kind,'id' => id},
|
1042
1021
|
query_params: {'api-version' => @client.api_version},
|
1043
|
-
headers: request_headers.merge(custom_headers || {})
|
1022
|
+
headers: request_headers.merge(custom_headers || {}),
|
1023
|
+
base_url: request_url
|
1044
1024
|
}
|
1025
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1045
1026
|
|
1046
|
-
|
1047
|
-
|
1048
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
1049
|
-
promise = request.run_promise do |req|
|
1050
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1051
|
-
end
|
1052
|
-
|
1053
|
-
promise = promise.then do |http_response|
|
1027
|
+
promise = promise.then do |result|
|
1028
|
+
http_response = result.response
|
1054
1029
|
status_code = http_response.status
|
1055
1030
|
response_content = http_response.body
|
1056
1031
|
unless status_code == 200
|
1057
1032
|
error_model = JSON.load(response_content)
|
1058
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
1033
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1059
1034
|
end
|
1060
1035
|
|
1061
|
-
# Create Result
|
1062
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1063
1036
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1064
1037
|
# Deserialize Response
|
1065
1038
|
if status_code == 200
|
@@ -1136,30 +1109,27 @@ module Azure::ARM::MobileEngagement
|
|
1136
1109
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1137
1110
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1138
1111
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaigns/{kind}/{id}/suspend'
|
1112
|
+
|
1113
|
+
request_url = @base_url || @client.base_url
|
1114
|
+
|
1139
1115
|
options = {
|
1140
1116
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1141
1117
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name,'kind' => kind,'id' => id},
|
1142
1118
|
query_params: {'api-version' => @client.api_version},
|
1143
|
-
headers: request_headers.merge(custom_headers || {})
|
1119
|
+
headers: request_headers.merge(custom_headers || {}),
|
1120
|
+
base_url: request_url
|
1144
1121
|
}
|
1122
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1145
1123
|
|
1146
|
-
|
1147
|
-
|
1148
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
1149
|
-
promise = request.run_promise do |req|
|
1150
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1151
|
-
end
|
1152
|
-
|
1153
|
-
promise = promise.then do |http_response|
|
1124
|
+
promise = promise.then do |result|
|
1125
|
+
http_response = result.response
|
1154
1126
|
status_code = http_response.status
|
1155
1127
|
response_content = http_response.body
|
1156
1128
|
unless status_code == 200
|
1157
1129
|
error_model = JSON.load(response_content)
|
1158
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
1130
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1159
1131
|
end
|
1160
1132
|
|
1161
|
-
# Create Result
|
1162
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1163
1133
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1164
1134
|
# Deserialize Response
|
1165
1135
|
if status_code == 200
|
@@ -1254,31 +1224,28 @@ module Azure::ARM::MobileEngagement
|
|
1254
1224
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1255
1225
|
|
1256
1226
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaigns/{kind}/{id}/push'
|
1227
|
+
|
1228
|
+
request_url = @base_url || @client.base_url
|
1229
|
+
|
1257
1230
|
options = {
|
1258
1231
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1259
1232
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name,'kind' => kind,'id' => id},
|
1260
1233
|
query_params: {'api-version' => @client.api_version},
|
1261
1234
|
body: request_content,
|
1262
|
-
headers: request_headers.merge(custom_headers || {})
|
1235
|
+
headers: request_headers.merge(custom_headers || {}),
|
1236
|
+
base_url: request_url
|
1263
1237
|
}
|
1238
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1264
1239
|
|
1265
|
-
|
1266
|
-
|
1267
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
1268
|
-
promise = request.run_promise do |req|
|
1269
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1270
|
-
end
|
1271
|
-
|
1272
|
-
promise = promise.then do |http_response|
|
1240
|
+
promise = promise.then do |result|
|
1241
|
+
http_response = result.response
|
1273
1242
|
status_code = http_response.status
|
1274
1243
|
response_content = http_response.body
|
1275
1244
|
unless status_code == 200
|
1276
1245
|
error_model = JSON.load(response_content)
|
1277
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
1246
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1278
1247
|
end
|
1279
1248
|
|
1280
|
-
# Create Result
|
1281
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1282
1249
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1283
1250
|
# Deserialize Response
|
1284
1251
|
if status_code == 200
|
@@ -1355,30 +1322,27 @@ module Azure::ARM::MobileEngagement
|
|
1355
1322
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1356
1323
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1357
1324
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaigns/{kind}/{id}/statistics'
|
1325
|
+
|
1326
|
+
request_url = @base_url || @client.base_url
|
1327
|
+
|
1358
1328
|
options = {
|
1359
1329
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1360
1330
|
path_params: {'kind' => kind,'id' => id,'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
|
1361
1331
|
query_params: {'api-version' => @client.api_version},
|
1362
|
-
headers: request_headers.merge(custom_headers || {})
|
1332
|
+
headers: request_headers.merge(custom_headers || {}),
|
1333
|
+
base_url: request_url
|
1363
1334
|
}
|
1335
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1364
1336
|
|
1365
|
-
|
1366
|
-
|
1367
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
1368
|
-
promise = request.run_promise do |req|
|
1369
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1370
|
-
end
|
1371
|
-
|
1372
|
-
promise = promise.then do |http_response|
|
1337
|
+
promise = promise.then do |result|
|
1338
|
+
http_response = result.response
|
1373
1339
|
status_code = http_response.status
|
1374
1340
|
response_content = http_response.body
|
1375
1341
|
unless status_code == 200
|
1376
1342
|
error_model = JSON.load(response_content)
|
1377
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
1343
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1378
1344
|
end
|
1379
1345
|
|
1380
|
-
# Create Result
|
1381
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1382
1346
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1383
1347
|
# Deserialize Response
|
1384
1348
|
if status_code == 200
|
@@ -1455,30 +1419,27 @@ module Azure::ARM::MobileEngagement
|
|
1455
1419
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1456
1420
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1457
1421
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileEngagement/appcollections/{appCollection}/apps/{appName}/campaigns/{kind}/{id}/finish'
|
1422
|
+
|
1423
|
+
request_url = @base_url || @client.base_url
|
1424
|
+
|
1458
1425
|
options = {
|
1459
1426
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1460
1427
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name,'kind' => kind,'id' => id},
|
1461
1428
|
query_params: {'api-version' => @client.api_version},
|
1462
|
-
headers: request_headers.merge(custom_headers || {})
|
1429
|
+
headers: request_headers.merge(custom_headers || {}),
|
1430
|
+
base_url: request_url
|
1463
1431
|
}
|
1432
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1464
1433
|
|
1465
|
-
|
1466
|
-
|
1467
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
1468
|
-
promise = request.run_promise do |req|
|
1469
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1470
|
-
end
|
1471
|
-
|
1472
|
-
promise = promise.then do |http_response|
|
1434
|
+
promise = promise.then do |result|
|
1435
|
+
http_response = result.response
|
1473
1436
|
status_code = http_response.status
|
1474
1437
|
response_content = http_response.body
|
1475
1438
|
unless status_code == 200
|
1476
1439
|
error_model = JSON.load(response_content)
|
1477
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
1440
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1478
1441
|
end
|
1479
1442
|
|
1480
|
-
# Create Result
|
1481
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1482
1443
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1483
1444
|
# Deserialize Response
|
1484
1445
|
if status_code == 200
|
@@ -1546,29 +1507,26 @@ module Azure::ARM::MobileEngagement
|
|
1546
1507
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1547
1508
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1548
1509
|
path_template = '{nextLink}'
|
1510
|
+
|
1511
|
+
request_url = @base_url || @client.base_url
|
1512
|
+
|
1549
1513
|
options = {
|
1550
1514
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1551
1515
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1552
|
-
headers: request_headers.merge(custom_headers || {})
|
1516
|
+
headers: request_headers.merge(custom_headers || {}),
|
1517
|
+
base_url: request_url
|
1553
1518
|
}
|
1519
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1554
1520
|
|
1555
|
-
|
1556
|
-
|
1557
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
1558
|
-
promise = request.run_promise do |req|
|
1559
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1560
|
-
end
|
1561
|
-
|
1562
|
-
promise = promise.then do |http_response|
|
1521
|
+
promise = promise.then do |result|
|
1522
|
+
http_response = result.response
|
1563
1523
|
status_code = http_response.status
|
1564
1524
|
response_content = http_response.body
|
1565
1525
|
unless status_code == 200
|
1566
1526
|
error_model = JSON.load(response_content)
|
1567
|
-
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
1527
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1568
1528
|
end
|
1569
1529
|
|
1570
|
-
# Create Result
|
1571
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1572
1530
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1573
1531
|
# Deserialize Response
|
1574
1532
|
if status_code == 200
|