azure_mgmt_web 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 215620846d5abf8958c0266e0b1d7da6b266f719
4
- data.tar.gz: 638070f56db6e888e410188805f8a7c55cf50cc9
3
+ metadata.gz: 05bb4000dc582ce4ab261715f08c11b1fc393355
4
+ data.tar.gz: 735145c6bbaa96f99d96b69911a3a1202fcb343d
5
5
  SHA512:
6
- metadata.gz: e15b23a465be10a59df7254155e3736f1493c8d397d347b77cd7b7f3b0a86b6a1f7def0fc16f8fbfdbd84f9b8bff4160ba3b6fafc28478f3053cff86412e7651
7
- data.tar.gz: c9e5ce29b0bb00058ee75a97d60cf4628d40d0d5fbe53997e1b9c5a71694c8978eb7f1071b35113e3159ab646aefe06062739e7bfe1fd45d150b94ef3b930000
6
+ metadata.gz: 325c8621e029f9d48bd7454943aafa53502540dfd389b2e8feda0ca67ce1fe60218181ae04a4f4dc3dce20c5b438319165418e5cdf88ba4bbd9e2bd998452110
7
+ data.tar.gz: 45473894d80665dd77a7f22422cee8552a083f28c471442a0927e81b462128848e0368669a546dba23e0ca1561ddde63d43abe1d2806954bee1cf564f50670dd
@@ -85,30 +85,27 @@ module Azure::ARM::Web
85
85
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
86
86
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
87
87
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}'
88
+
89
+ request_url = @base_url || @client.base_url
90
+
88
91
  options = {
89
92
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
90
93
  path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id},
91
94
  query_params: {'api-version' => @client.api_version},
92
- headers: request_headers.merge(custom_headers || {})
95
+ headers: request_headers.merge(custom_headers || {}),
96
+ base_url: request_url
93
97
  }
98
+ promise = @client.make_request_async(:get, path_template, options)
94
99
 
95
- request_url = @base_url || @client.base_url
96
-
97
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
98
- promise = request.run_promise do |req|
99
- @client.credentials.sign_request(req) unless @client.credentials.nil?
100
- end
101
-
102
- promise = promise.then do |http_response|
100
+ promise = promise.then do |result|
101
+ http_response = result.response
103
102
  status_code = http_response.status
104
103
  response_content = http_response.body
105
104
  unless status_code == 200
106
105
  error_model = JSON.load(response_content)
107
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
106
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
108
107
  end
109
108
 
110
- # Create Result
111
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
112
109
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
113
110
  # Deserialize Response
114
111
  if status_code == 200
@@ -201,31 +198,28 @@ module Azure::ARM::Web
201
198
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
202
199
 
203
200
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}'
201
+
202
+ request_url = @base_url || @client.base_url
203
+
204
204
  options = {
205
205
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
206
206
  path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id},
207
207
  query_params: {'api-version' => @client.api_version},
208
208
  body: request_content,
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(:put, path_template, options)
211
213
 
212
- request_url = @base_url || @client.base_url
213
-
214
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, 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
@@ -300,30 +294,27 @@ module Azure::ARM::Web
300
294
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
301
295
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
302
296
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}'
297
+
298
+ request_url = @base_url || @client.base_url
299
+
303
300
  options = {
304
301
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
305
302
  path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id},
306
303
  query_params: {'api-version' => @client.api_version},
307
- headers: request_headers.merge(custom_headers || {})
304
+ headers: request_headers.merge(custom_headers || {}),
305
+ base_url: request_url
308
306
  }
307
+ promise = @client.make_request_async(:delete, path_template, options)
309
308
 
310
- request_url = @base_url || @client.base_url
311
-
312
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
313
- promise = request.run_promise do |req|
314
- @client.credentials.sign_request(req) unless @client.credentials.nil?
315
- end
316
-
317
- promise = promise.then do |http_response|
309
+ promise = promise.then do |result|
310
+ http_response = result.response
318
311
  status_code = http_response.status
319
312
  response_content = http_response.body
320
313
  unless status_code == 200
321
314
  error_model = JSON.load(response_content)
322
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
315
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
323
316
  end
324
317
 
325
- # Create Result
326
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
327
318
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
328
319
 
329
320
  result
@@ -406,31 +397,28 @@ module Azure::ARM::Web
406
397
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
407
398
 
408
399
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}'
400
+
401
+ request_url = @base_url || @client.base_url
402
+
409
403
  options = {
410
404
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
411
405
  path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id},
412
406
  query_params: {'api-version' => @client.api_version},
413
407
  body: request_content,
414
- headers: request_headers.merge(custom_headers || {})
408
+ headers: request_headers.merge(custom_headers || {}),
409
+ base_url: request_url
415
410
  }
411
+ promise = @client.make_request_async(:patch, path_template, options)
416
412
 
417
- request_url = @base_url || @client.base_url
418
-
419
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :patch, options)
420
- promise = request.run_promise do |req|
421
- @client.credentials.sign_request(req) unless @client.credentials.nil?
422
- end
423
-
424
- promise = promise.then do |http_response|
413
+ promise = promise.then do |result|
414
+ http_response = result.response
425
415
  status_code = http_response.status
426
416
  response_content = http_response.body
427
417
  unless status_code == 200
428
418
  error_model = JSON.load(response_content)
429
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
419
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
430
420
  end
431
421
 
432
- # Create Result
433
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
434
422
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
435
423
  # Deserialize Response
436
424
  if status_code == 200
@@ -501,30 +489,27 @@ module Azure::ARM::Web
501
489
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
502
490
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
503
491
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}'
492
+
493
+ request_url = @base_url || @client.base_url
494
+
504
495
  options = {
505
496
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
506
497
  path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
507
498
  query_params: {'api-version' => @client.api_version},
508
- headers: request_headers.merge(custom_headers || {})
499
+ headers: request_headers.merge(custom_headers || {}),
500
+ base_url: request_url
509
501
  }
502
+ promise = @client.make_request_async(:get, path_template, options)
510
503
 
511
- request_url = @base_url || @client.base_url
512
-
513
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
514
- promise = request.run_promise do |req|
515
- @client.credentials.sign_request(req) unless @client.credentials.nil?
516
- end
517
-
518
- promise = promise.then do |http_response|
504
+ promise = promise.then do |result|
505
+ http_response = result.response
519
506
  status_code = http_response.status
520
507
  response_content = http_response.body
521
508
  unless status_code == 200
522
509
  error_model = JSON.load(response_content)
523
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
510
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
524
511
  end
525
512
 
526
- # Create Result
527
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
528
513
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
529
514
  # Deserialize Response
530
515
  if status_code == 200
@@ -610,31 +595,28 @@ module Azure::ARM::Web
610
595
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
611
596
 
612
597
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}'
598
+
599
+ request_url = @base_url || @client.base_url
600
+
613
601
  options = {
614
602
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
615
603
  path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
616
604
  query_params: {'api-version' => @client.api_version},
617
605
  body: request_content,
618
- headers: request_headers.merge(custom_headers || {})
606
+ headers: request_headers.merge(custom_headers || {}),
607
+ base_url: request_url
619
608
  }
609
+ promise = @client.make_request_async(:put, path_template, options)
620
610
 
621
- request_url = @base_url || @client.base_url
622
-
623
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
624
- promise = request.run_promise do |req|
625
- @client.credentials.sign_request(req) unless @client.credentials.nil?
626
- end
627
-
628
- promise = promise.then do |http_response|
611
+ promise = promise.then do |result|
612
+ http_response = result.response
629
613
  status_code = http_response.status
630
614
  response_content = http_response.body
631
615
  unless status_code == 200
632
616
  error_model = JSON.load(response_content)
633
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
617
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
634
618
  end
635
619
 
636
- # Create Result
637
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
638
620
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
639
621
  # Deserialize Response
640
622
  if status_code == 200
@@ -705,30 +687,27 @@ module Azure::ARM::Web
705
687
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
706
688
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
707
689
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}'
690
+
691
+ request_url = @base_url || @client.base_url
692
+
708
693
  options = {
709
694
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
710
695
  path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
711
696
  query_params: {'api-version' => @client.api_version},
712
- headers: request_headers.merge(custom_headers || {})
697
+ headers: request_headers.merge(custom_headers || {}),
698
+ base_url: request_url
713
699
  }
700
+ promise = @client.make_request_async(:delete, path_template, options)
714
701
 
715
- request_url = @base_url || @client.base_url
716
-
717
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
718
- promise = request.run_promise do |req|
719
- @client.credentials.sign_request(req) unless @client.credentials.nil?
720
- end
721
-
722
- promise = promise.then do |http_response|
702
+ promise = promise.then do |result|
703
+ http_response = result.response
723
704
  status_code = http_response.status
724
705
  response_content = http_response.body
725
706
  unless status_code == 200
726
707
  error_model = JSON.load(response_content)
727
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
708
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
728
709
  end
729
710
 
730
- # Create Result
731
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
732
711
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
733
712
 
734
713
  result
@@ -804,31 +783,28 @@ module Azure::ARM::Web
804
783
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
805
784
 
806
785
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}'
786
+
787
+ request_url = @base_url || @client.base_url
788
+
807
789
  options = {
808
790
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
809
791
  path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
810
792
  query_params: {'api-version' => @client.api_version},
811
793
  body: request_content,
812
- headers: request_headers.merge(custom_headers || {})
794
+ headers: request_headers.merge(custom_headers || {}),
795
+ base_url: request_url
813
796
  }
797
+ promise = @client.make_request_async(:patch, path_template, options)
814
798
 
815
- request_url = @base_url || @client.base_url
816
-
817
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :patch, options)
818
- promise = request.run_promise do |req|
819
- @client.credentials.sign_request(req) unless @client.credentials.nil?
820
- end
821
-
822
- promise = promise.then do |http_response|
799
+ promise = promise.then do |result|
800
+ http_response = result.response
823
801
  status_code = http_response.status
824
802
  response_content = http_response.body
825
803
  unless status_code == 200
826
804
  error_model = JSON.load(response_content)
827
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
805
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
828
806
  end
829
807
 
830
- # Create Result
831
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
832
808
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
833
809
  # Deserialize Response
834
810
  if status_code == 200
@@ -861,8 +837,8 @@ module Azure::ARM::Web
861
837
  response = get_certificate_orders_async(resource_group_name, custom_headers).value!
862
838
  unless response.nil?
863
839
  page = response.body
864
- page.next_method = Proc.new do |next_link|
865
- get_certificate_orders_next_async(next_link, custom_headers)
840
+ page.next_method = Proc.new do |next_page_link|
841
+ get_certificate_orders_next_async(next_page_link, custom_headers)
866
842
  end
867
843
  page
868
844
  end
@@ -916,30 +892,27 @@ module Azure::ARM::Web
916
892
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
917
893
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
918
894
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders'
895
+
896
+ request_url = @base_url || @client.base_url
897
+
919
898
  options = {
920
899
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
921
900
  path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
922
901
  query_params: {'api-version' => @client.api_version},
923
- headers: request_headers.merge(custom_headers || {})
902
+ headers: request_headers.merge(custom_headers || {}),
903
+ base_url: request_url
924
904
  }
905
+ promise = @client.make_request_async(:get, path_template, options)
925
906
 
926
- request_url = @base_url || @client.base_url
927
-
928
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
929
- promise = request.run_promise do |req|
930
- @client.credentials.sign_request(req) unless @client.credentials.nil?
931
- end
932
-
933
- promise = promise.then do |http_response|
907
+ promise = promise.then do |result|
908
+ http_response = result.response
934
909
  status_code = http_response.status
935
910
  response_content = http_response.body
936
911
  unless status_code == 200
937
912
  error_model = JSON.load(response_content)
938
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
913
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
939
914
  end
940
915
 
941
- # Create Result
942
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
943
916
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
944
917
  # Deserialize Response
945
918
  if status_code == 200
@@ -974,8 +947,8 @@ module Azure::ARM::Web
974
947
  response = get_certificates_async(resource_group_name, certificate_order_name, custom_headers).value!
975
948
  unless response.nil?
976
949
  page = response.body
977
- page.next_method = Proc.new do |next_link|
978
- get_certificates_next_async(next_link, custom_headers)
950
+ page.next_method = Proc.new do |next_page_link|
951
+ get_certificates_next_async(next_page_link, custom_headers)
979
952
  end
980
953
  page
981
954
  end
@@ -1036,30 +1009,27 @@ module Azure::ARM::Web
1036
1009
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1037
1010
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1038
1011
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates'
1012
+
1013
+ request_url = @base_url || @client.base_url
1014
+
1039
1015
  options = {
1040
1016
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1041
1017
  path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id},
1042
1018
  query_params: {'api-version' => @client.api_version},
1043
- headers: request_headers.merge(custom_headers || {})
1019
+ headers: request_headers.merge(custom_headers || {}),
1020
+ base_url: request_url
1044
1021
  }
1022
+ promise = @client.make_request_async(:get, path_template, options)
1045
1023
 
1046
- request_url = @base_url || @client.base_url
1047
-
1048
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, 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|
1024
+ promise = promise.then do |result|
1025
+ http_response = result.response
1054
1026
  status_code = http_response.status
1055
1027
  response_content = http_response.body
1056
1028
  unless status_code == 200
1057
1029
  error_model = JSON.load(response_content)
1058
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1030
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1059
1031
  end
1060
1032
 
1061
- # Create Result
1062
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
1063
1033
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1064
1034
  # Deserialize Response
1065
1035
  if status_code == 200
@@ -1145,31 +1115,28 @@ module Azure::ARM::Web
1145
1115
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1146
1116
 
1147
1117
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/reissue'
1118
+
1119
+ request_url = @base_url || @client.base_url
1120
+
1148
1121
  options = {
1149
1122
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1150
1123
  path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
1151
1124
  query_params: {'api-version' => @client.api_version},
1152
1125
  body: request_content,
1153
- headers: request_headers.merge(custom_headers || {})
1126
+ headers: request_headers.merge(custom_headers || {}),
1127
+ base_url: request_url
1154
1128
  }
1129
+ promise = @client.make_request_async(:post, path_template, options)
1155
1130
 
1156
- request_url = @base_url || @client.base_url
1157
-
1158
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
1159
- promise = request.run_promise do |req|
1160
- @client.credentials.sign_request(req) unless @client.credentials.nil?
1161
- end
1162
-
1163
- promise = promise.then do |http_response|
1131
+ promise = promise.then do |result|
1132
+ http_response = result.response
1164
1133
  status_code = http_response.status
1165
1134
  response_content = http_response.body
1166
1135
  unless status_code == 200
1167
1136
  error_model = JSON.load(response_content)
1168
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1137
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1169
1138
  end
1170
1139
 
1171
- # Create Result
1172
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
1173
1140
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1174
1141
 
1175
1142
  result
@@ -1245,31 +1212,28 @@ module Azure::ARM::Web
1245
1212
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1246
1213
 
1247
1214
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/renew'
1215
+
1216
+ request_url = @base_url || @client.base_url
1217
+
1248
1218
  options = {
1249
1219
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1250
1220
  path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
1251
1221
  query_params: {'api-version' => @client.api_version},
1252
1222
  body: request_content,
1253
- headers: request_headers.merge(custom_headers || {})
1223
+ headers: request_headers.merge(custom_headers || {}),
1224
+ base_url: request_url
1254
1225
  }
1226
+ promise = @client.make_request_async(:post, path_template, options)
1255
1227
 
1256
- request_url = @base_url || @client.base_url
1257
-
1258
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
1259
- promise = request.run_promise do |req|
1260
- @client.credentials.sign_request(req) unless @client.credentials.nil?
1261
- end
1262
-
1263
- promise = promise.then do |http_response|
1228
+ promise = promise.then do |result|
1229
+ http_response = result.response
1264
1230
  status_code = http_response.status
1265
1231
  response_content = http_response.body
1266
1232
  unless status_code == 200
1267
1233
  error_model = JSON.load(response_content)
1268
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1234
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1269
1235
  end
1270
1236
 
1271
- # Create Result
1272
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
1273
1237
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1274
1238
 
1275
1239
  result
@@ -1330,30 +1294,27 @@ module Azure::ARM::Web
1330
1294
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1331
1295
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1332
1296
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveCertificateActions'
1297
+
1298
+ request_url = @base_url || @client.base_url
1299
+
1333
1300
  options = {
1334
1301
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1335
1302
  path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
1336
1303
  query_params: {'api-version' => @client.api_version},
1337
- headers: request_headers.merge(custom_headers || {})
1304
+ headers: request_headers.merge(custom_headers || {}),
1305
+ base_url: request_url
1338
1306
  }
1307
+ promise = @client.make_request_async(:post, path_template, options)
1339
1308
 
1340
- request_url = @base_url || @client.base_url
1341
-
1342
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
1343
- promise = request.run_promise do |req|
1344
- @client.credentials.sign_request(req) unless @client.credentials.nil?
1345
- end
1346
-
1347
- promise = promise.then do |http_response|
1309
+ promise = promise.then do |result|
1310
+ http_response = result.response
1348
1311
  status_code = http_response.status
1349
1312
  response_content = http_response.body
1350
1313
  unless status_code == 200
1351
1314
  error_model = JSON.load(response_content)
1352
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1315
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1353
1316
  end
1354
1317
 
1355
- # Create Result
1356
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
1357
1318
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1358
1319
  # Deserialize Response
1359
1320
  if status_code == 200
@@ -1438,30 +1399,27 @@ module Azure::ARM::Web
1438
1399
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1439
1400
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1440
1401
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveEmailHistory'
1402
+
1403
+ request_url = @base_url || @client.base_url
1404
+
1441
1405
  options = {
1442
1406
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1443
1407
  path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
1444
1408
  query_params: {'api-version' => @client.api_version},
1445
- headers: request_headers.merge(custom_headers || {})
1409
+ headers: request_headers.merge(custom_headers || {}),
1410
+ base_url: request_url
1446
1411
  }
1412
+ promise = @client.make_request_async(:post, path_template, options)
1447
1413
 
1448
- request_url = @base_url || @client.base_url
1449
-
1450
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
1451
- promise = request.run_promise do |req|
1452
- @client.credentials.sign_request(req) unless @client.credentials.nil?
1453
- end
1454
-
1455
- promise = promise.then do |http_response|
1414
+ promise = promise.then do |result|
1415
+ http_response = result.response
1456
1416
  status_code = http_response.status
1457
1417
  response_content = http_response.body
1458
1418
  unless status_code == 200
1459
1419
  error_model = JSON.load(response_content)
1460
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1420
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1461
1421
  end
1462
1422
 
1463
- # Create Result
1464
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
1465
1423
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1466
1424
  # Deserialize Response
1467
1425
  if status_code == 200
@@ -1546,30 +1504,27 @@ module Azure::ARM::Web
1546
1504
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1547
1505
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1548
1506
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/resendEmail'
1507
+
1508
+ request_url = @base_url || @client.base_url
1509
+
1549
1510
  options = {
1550
1511
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1551
1512
  path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
1552
1513
  query_params: {'api-version' => @client.api_version},
1553
- headers: request_headers.merge(custom_headers || {})
1514
+ headers: request_headers.merge(custom_headers || {}),
1515
+ base_url: request_url
1554
1516
  }
1517
+ promise = @client.make_request_async(:post, path_template, options)
1555
1518
 
1556
- request_url = @base_url || @client.base_url
1557
-
1558
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
1559
- promise = request.run_promise do |req|
1560
- @client.credentials.sign_request(req) unless @client.credentials.nil?
1561
- end
1562
-
1563
- promise = promise.then do |http_response|
1519
+ promise = promise.then do |result|
1520
+ http_response = result.response
1564
1521
  status_code = http_response.status
1565
1522
  response_content = http_response.body
1566
1523
  unless status_code == 200
1567
1524
  error_model = JSON.load(response_content)
1568
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1525
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1569
1526
  end
1570
1527
 
1571
- # Create Result
1572
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
1573
1528
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1574
1529
 
1575
1530
  result
@@ -1630,30 +1585,27 @@ module Azure::ARM::Web
1630
1585
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1631
1586
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1632
1587
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/verifyDomainOwnership'
1588
+
1589
+ request_url = @base_url || @client.base_url
1590
+
1633
1591
  options = {
1634
1592
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1635
1593
  path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
1636
1594
  query_params: {'api-version' => @client.api_version},
1637
- headers: request_headers.merge(custom_headers || {})
1595
+ headers: request_headers.merge(custom_headers || {}),
1596
+ base_url: request_url
1638
1597
  }
1598
+ promise = @client.make_request_async(:post, path_template, options)
1639
1599
 
1640
- request_url = @base_url || @client.base_url
1641
-
1642
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
1643
- promise = request.run_promise do |req|
1644
- @client.credentials.sign_request(req) unless @client.credentials.nil?
1645
- end
1646
-
1647
- promise = promise.then do |http_response|
1600
+ promise = promise.then do |result|
1601
+ http_response = result.response
1648
1602
  status_code = http_response.status
1649
1603
  response_content = http_response.body
1650
1604
  unless status_code == 200
1651
1605
  error_model = JSON.load(response_content)
1652
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1606
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1653
1607
  end
1654
1608
 
1655
- # Create Result
1656
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
1657
1609
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1658
1610
 
1659
1611
  result
@@ -1711,29 +1663,26 @@ module Azure::ARM::Web
1711
1663
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1712
1664
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1713
1665
  path_template = '{nextLink}'
1666
+
1667
+ request_url = @base_url || @client.base_url
1668
+
1714
1669
  options = {
1715
1670
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1716
1671
  skip_encoding_path_params: {'nextLink' => next_page_link},
1717
- headers: request_headers.merge(custom_headers || {})
1672
+ headers: request_headers.merge(custom_headers || {}),
1673
+ base_url: request_url
1718
1674
  }
1675
+ promise = @client.make_request_async(:get, path_template, options)
1719
1676
 
1720
- request_url = @base_url || @client.base_url
1721
-
1722
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
1723
- promise = request.run_promise do |req|
1724
- @client.credentials.sign_request(req) unless @client.credentials.nil?
1725
- end
1726
-
1727
- promise = promise.then do |http_response|
1677
+ promise = promise.then do |result|
1678
+ http_response = result.response
1728
1679
  status_code = http_response.status
1729
1680
  response_content = http_response.body
1730
1681
  unless status_code == 200
1731
1682
  error_model = JSON.load(response_content)
1732
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1683
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1733
1684
  end
1734
1685
 
1735
- # Create Result
1736
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
1737
1686
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1738
1687
  # Deserialize Response
1739
1688
  if status_code == 200
@@ -1804,29 +1753,26 @@ module Azure::ARM::Web
1804
1753
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1805
1754
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1806
1755
  path_template = '{nextLink}'
1756
+
1757
+ request_url = @base_url || @client.base_url
1758
+
1807
1759
  options = {
1808
1760
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1809
1761
  skip_encoding_path_params: {'nextLink' => next_page_link},
1810
- headers: request_headers.merge(custom_headers || {})
1762
+ headers: request_headers.merge(custom_headers || {}),
1763
+ base_url: request_url
1811
1764
  }
1765
+ promise = @client.make_request_async(:get, path_template, options)
1812
1766
 
1813
- request_url = @base_url || @client.base_url
1814
-
1815
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
1816
- promise = request.run_promise do |req|
1817
- @client.credentials.sign_request(req) unless @client.credentials.nil?
1818
- end
1819
-
1820
- promise = promise.then do |http_response|
1767
+ promise = promise.then do |result|
1768
+ http_response = result.response
1821
1769
  status_code = http_response.status
1822
1770
  response_content = http_response.body
1823
1771
  unless status_code == 200
1824
1772
  error_model = JSON.load(response_content)
1825
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1773
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1826
1774
  end
1827
1775
 
1828
- # Create Result
1829
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
1830
1776
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1831
1777
  # Deserialize Response
1832
1778
  if status_code == 200