azure_mgmt_notification_hubs 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_notification_hubs/namespaces.rb +141 -186
- data/lib/generated/azure_mgmt_notification_hubs/notification_hubs.rb +121 -160
- data/lib/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +55 -4
- data/lib/generated/azure_mgmt_notification_hubs/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: 0c4f98a96d449a6c82dccd5dd9bc92b413f4b55d
|
4
|
+
data.tar.gz: 40073ddd0eac8501bd1189050775a6e571748f59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99b50fd80f2c1a39d344c9adefa2cbab90cce0e72d3a069ea2030d961c1a26c62b789a96c89f0ccd6483385b6ffdae61f1b8ea41f65783d51263892e4695aead
|
7
|
+
data.tar.gz: c72048d1725c4566231127f5ad9b24b59bd9aa170bdd7082905d207fb1f044e555b096f0c344c42e7bc70dc6fe0fc1aee6948118f5a569378506cb62f48ece8f
|
@@ -84,31 +84,28 @@ module Azure::ARM::NotificationHubs
|
|
84
84
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
85
85
|
|
86
86
|
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability'
|
87
|
+
|
88
|
+
request_url = @base_url || @client.base_url
|
89
|
+
|
87
90
|
options = {
|
88
91
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
89
92
|
path_params: {'subscriptionId' => @client.subscription_id},
|
90
93
|
query_params: {'api-version' => @client.api_version},
|
91
94
|
body: request_content,
|
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(:post, path_template, options)
|
94
99
|
|
95
|
-
|
96
|
-
|
97
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, 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
|
@@ -197,31 +194,28 @@ module Azure::ARM::NotificationHubs
|
|
197
194
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
198
195
|
|
199
196
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}'
|
197
|
+
|
198
|
+
request_url = @base_url || @client.base_url
|
199
|
+
|
200
200
|
options = {
|
201
201
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
202
202
|
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'subscriptionId' => @client.subscription_id},
|
203
203
|
query_params: {'api-version' => @client.api_version},
|
204
204
|
body: request_content,
|
205
|
-
headers: request_headers.merge(custom_headers || {})
|
205
|
+
headers: request_headers.merge(custom_headers || {}),
|
206
|
+
base_url: request_url
|
206
207
|
}
|
208
|
+
promise = @client.make_request_async(:put, path_template, options)
|
207
209
|
|
208
|
-
|
209
|
-
|
210
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
211
|
-
promise = request.run_promise do |req|
|
212
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
213
|
-
end
|
214
|
-
|
215
|
-
promise = promise.then do |http_response|
|
210
|
+
promise = promise.then do |result|
|
211
|
+
http_response = result.response
|
216
212
|
status_code = http_response.status
|
217
213
|
response_content = http_response.body
|
218
214
|
unless status_code == 201 || status_code == 200
|
219
215
|
error_model = JSON.load(response_content)
|
220
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
216
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
221
217
|
end
|
222
218
|
|
223
|
-
# Create Result
|
224
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
225
219
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
226
220
|
# Deserialize Response
|
227
221
|
if status_code == 201
|
@@ -343,30 +337,27 @@ module Azure::ARM::NotificationHubs
|
|
343
337
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
344
338
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
345
339
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}'
|
340
|
+
|
341
|
+
request_url = @base_url || @client.base_url
|
342
|
+
|
346
343
|
options = {
|
347
344
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
348
345
|
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'subscriptionId' => @client.subscription_id},
|
349
346
|
query_params: {'api-version' => @client.api_version},
|
350
|
-
headers: request_headers.merge(custom_headers || {})
|
347
|
+
headers: request_headers.merge(custom_headers || {}),
|
348
|
+
base_url: request_url
|
351
349
|
}
|
350
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
352
351
|
|
353
|
-
|
354
|
-
|
355
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
356
|
-
promise = request.run_promise do |req|
|
357
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
358
|
-
end
|
359
|
-
|
360
|
-
promise = promise.then do |http_response|
|
352
|
+
promise = promise.then do |result|
|
353
|
+
http_response = result.response
|
361
354
|
status_code = http_response.status
|
362
355
|
response_content = http_response.body
|
363
356
|
unless status_code == 204 || status_code == 200 || status_code == 202
|
364
357
|
error_model = JSON.load(response_content)
|
365
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
358
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
366
359
|
end
|
367
360
|
|
368
|
-
# Create Result
|
369
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
370
361
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
371
362
|
|
372
363
|
result
|
@@ -427,30 +418,27 @@ module Azure::ARM::NotificationHubs
|
|
427
418
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
428
419
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
429
420
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}'
|
421
|
+
|
422
|
+
request_url = @base_url || @client.base_url
|
423
|
+
|
430
424
|
options = {
|
431
425
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
432
426
|
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'subscriptionId' => @client.subscription_id},
|
433
427
|
query_params: {'api-version' => @client.api_version},
|
434
|
-
headers: request_headers.merge(custom_headers || {})
|
428
|
+
headers: request_headers.merge(custom_headers || {}),
|
429
|
+
base_url: request_url
|
435
430
|
}
|
431
|
+
promise = @client.make_request_async(:get, path_template, options)
|
436
432
|
|
437
|
-
|
438
|
-
|
439
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
440
|
-
promise = request.run_promise do |req|
|
441
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
442
|
-
end
|
443
|
-
|
444
|
-
promise = promise.then do |http_response|
|
433
|
+
promise = promise.then do |result|
|
434
|
+
http_response = result.response
|
445
435
|
status_code = http_response.status
|
446
436
|
response_content = http_response.body
|
447
437
|
unless status_code == 200
|
448
438
|
error_model = JSON.load(response_content)
|
449
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
439
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
450
440
|
end
|
451
441
|
|
452
|
-
# Create Result
|
453
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
454
442
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
455
443
|
# Deserialize Response
|
456
444
|
if status_code == 200
|
@@ -540,31 +528,28 @@ module Azure::ARM::NotificationHubs
|
|
540
528
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
541
529
|
|
542
530
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}'
|
531
|
+
|
532
|
+
request_url = @base_url || @client.base_url
|
533
|
+
|
543
534
|
options = {
|
544
535
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
545
536
|
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'authorizationRuleName' => authorization_rule_name,'subscriptionId' => @client.subscription_id},
|
546
537
|
query_params: {'api-version' => @client.api_version},
|
547
538
|
body: request_content,
|
548
|
-
headers: request_headers.merge(custom_headers || {})
|
539
|
+
headers: request_headers.merge(custom_headers || {}),
|
540
|
+
base_url: request_url
|
549
541
|
}
|
542
|
+
promise = @client.make_request_async(:put, path_template, options)
|
550
543
|
|
551
|
-
|
552
|
-
|
553
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
554
|
-
promise = request.run_promise do |req|
|
555
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
556
|
-
end
|
557
|
-
|
558
|
-
promise = promise.then do |http_response|
|
544
|
+
promise = promise.then do |result|
|
545
|
+
http_response = result.response
|
559
546
|
status_code = http_response.status
|
560
547
|
response_content = http_response.body
|
561
548
|
unless status_code == 200
|
562
549
|
error_model = JSON.load(response_content)
|
563
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
550
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
564
551
|
end
|
565
552
|
|
566
|
-
# Create Result
|
567
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
568
553
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
569
554
|
# Deserialize Response
|
570
555
|
if status_code == 200
|
@@ -638,30 +623,27 @@ module Azure::ARM::NotificationHubs
|
|
638
623
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
639
624
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
640
625
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}'
|
626
|
+
|
627
|
+
request_url = @base_url || @client.base_url
|
628
|
+
|
641
629
|
options = {
|
642
630
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
643
631
|
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'authorizationRuleName' => authorization_rule_name,'subscriptionId' => @client.subscription_id},
|
644
632
|
query_params: {'api-version' => @client.api_version},
|
645
|
-
headers: request_headers.merge(custom_headers || {})
|
633
|
+
headers: request_headers.merge(custom_headers || {}),
|
634
|
+
base_url: request_url
|
646
635
|
}
|
636
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
647
637
|
|
648
|
-
|
649
|
-
|
650
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
651
|
-
promise = request.run_promise do |req|
|
652
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
653
|
-
end
|
654
|
-
|
655
|
-
promise = promise.then do |http_response|
|
638
|
+
promise = promise.then do |result|
|
639
|
+
http_response = result.response
|
656
640
|
status_code = http_response.status
|
657
641
|
response_content = http_response.body
|
658
642
|
unless status_code == 204 || status_code == 200
|
659
643
|
error_model = JSON.load(response_content)
|
660
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
644
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
661
645
|
end
|
662
646
|
|
663
|
-
# Create Result
|
664
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
665
647
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
666
648
|
|
667
649
|
result
|
@@ -726,30 +708,27 @@ module Azure::ARM::NotificationHubs
|
|
726
708
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
727
709
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
728
710
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}'
|
711
|
+
|
712
|
+
request_url = @base_url || @client.base_url
|
713
|
+
|
729
714
|
options = {
|
730
715
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
731
716
|
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'authorizationRuleName' => authorization_rule_name,'subscriptionId' => @client.subscription_id},
|
732
717
|
query_params: {'api-version' => @client.api_version},
|
733
|
-
headers: request_headers.merge(custom_headers || {})
|
718
|
+
headers: request_headers.merge(custom_headers || {}),
|
719
|
+
base_url: request_url
|
734
720
|
}
|
721
|
+
promise = @client.make_request_async(:post, path_template, options)
|
735
722
|
|
736
|
-
|
737
|
-
|
738
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
739
|
-
promise = request.run_promise do |req|
|
740
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
741
|
-
end
|
742
|
-
|
743
|
-
promise = promise.then do |http_response|
|
723
|
+
promise = promise.then do |result|
|
724
|
+
http_response = result.response
|
744
725
|
status_code = http_response.status
|
745
726
|
response_content = http_response.body
|
746
727
|
unless status_code == 200
|
747
728
|
error_model = JSON.load(response_content)
|
748
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
729
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
749
730
|
end
|
750
731
|
|
751
|
-
# Create Result
|
752
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
753
732
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
754
733
|
# Deserialize Response
|
755
734
|
if status_code == 200
|
@@ -825,29 +804,26 @@ module Azure::ARM::NotificationHubs
|
|
825
804
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
826
805
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
827
806
|
path_template = '/{operationStatusLink}'
|
807
|
+
|
808
|
+
request_url = @base_url || @client.base_url
|
809
|
+
|
828
810
|
options = {
|
829
811
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
830
812
|
skip_encoding_path_params: {'operationStatusLink' => operation_status_link},
|
831
|
-
headers: request_headers.merge(custom_headers || {})
|
813
|
+
headers: request_headers.merge(custom_headers || {}),
|
814
|
+
base_url: request_url
|
832
815
|
}
|
816
|
+
promise = @client.make_request_async(:get, path_template, options)
|
833
817
|
|
834
|
-
|
835
|
-
|
836
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, 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|
|
818
|
+
promise = promise.then do |result|
|
819
|
+
http_response = result.response
|
842
820
|
status_code = http_response.status
|
843
821
|
response_content = http_response.body
|
844
822
|
unless status_code == 404 || status_code == 202 || status_code == 200
|
845
823
|
error_model = JSON.load(response_content)
|
846
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
824
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
847
825
|
end
|
848
826
|
|
849
|
-
# Create Result
|
850
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
851
827
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
852
828
|
|
853
829
|
result
|
@@ -872,8 +848,8 @@ module Azure::ARM::NotificationHubs
|
|
872
848
|
response = list_async(resource_group_name, custom_headers).value!
|
873
849
|
unless response.nil?
|
874
850
|
page = response.body
|
875
|
-
page.next_method = Proc.new do |
|
876
|
-
list_next_async(
|
851
|
+
page.next_method = Proc.new do |next_page_link|
|
852
|
+
list_next_async(next_page_link, custom_headers)
|
877
853
|
end
|
878
854
|
page
|
879
855
|
end
|
@@ -933,30 +909,27 @@ module Azure::ARM::NotificationHubs
|
|
933
909
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
934
910
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
935
911
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces'
|
912
|
+
|
913
|
+
request_url = @base_url || @client.base_url
|
914
|
+
|
936
915
|
options = {
|
937
916
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
938
917
|
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
939
918
|
query_params: {'api-version' => @client.api_version},
|
940
|
-
headers: request_headers.merge(custom_headers || {})
|
919
|
+
headers: request_headers.merge(custom_headers || {}),
|
920
|
+
base_url: request_url
|
941
921
|
}
|
922
|
+
promise = @client.make_request_async(:get, path_template, options)
|
942
923
|
|
943
|
-
|
944
|
-
|
945
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
946
|
-
promise = request.run_promise do |req|
|
947
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
948
|
-
end
|
949
|
-
|
950
|
-
promise = promise.then do |http_response|
|
924
|
+
promise = promise.then do |result|
|
925
|
+
http_response = result.response
|
951
926
|
status_code = http_response.status
|
952
927
|
response_content = http_response.body
|
953
928
|
unless status_code == 200
|
954
929
|
error_model = JSON.load(response_content)
|
955
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
930
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
956
931
|
end
|
957
932
|
|
958
|
-
# Create Result
|
959
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
960
933
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
961
934
|
# Deserialize Response
|
962
935
|
if status_code == 200
|
@@ -989,8 +962,8 @@ module Azure::ARM::NotificationHubs
|
|
989
962
|
response = list_all_async(custom_headers).value!
|
990
963
|
unless response.nil?
|
991
964
|
page = response.body
|
992
|
-
page.next_method = Proc.new do |
|
993
|
-
list_all_next_async(
|
965
|
+
page.next_method = Proc.new do |next_page_link|
|
966
|
+
list_all_next_async(next_page_link, custom_headers)
|
994
967
|
end
|
995
968
|
page
|
996
969
|
end
|
@@ -1043,30 +1016,27 @@ module Azure::ARM::NotificationHubs
|
|
1043
1016
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1044
1017
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1045
1018
|
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces'
|
1019
|
+
|
1020
|
+
request_url = @base_url || @client.base_url
|
1021
|
+
|
1046
1022
|
options = {
|
1047
1023
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1048
1024
|
path_params: {'subscriptionId' => @client.subscription_id},
|
1049
1025
|
query_params: {'api-version' => @client.api_version},
|
1050
|
-
headers: request_headers.merge(custom_headers || {})
|
1026
|
+
headers: request_headers.merge(custom_headers || {}),
|
1027
|
+
base_url: request_url
|
1051
1028
|
}
|
1029
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1052
1030
|
|
1053
|
-
|
1054
|
-
|
1055
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
1056
|
-
promise = request.run_promise do |req|
|
1057
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1058
|
-
end
|
1059
|
-
|
1060
|
-
promise = promise.then do |http_response|
|
1031
|
+
promise = promise.then do |result|
|
1032
|
+
http_response = result.response
|
1061
1033
|
status_code = http_response.status
|
1062
1034
|
response_content = http_response.body
|
1063
1035
|
unless status_code == 200
|
1064
1036
|
error_model = JSON.load(response_content)
|
1065
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1037
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1066
1038
|
end
|
1067
1039
|
|
1068
|
-
# Create Result
|
1069
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1070
1040
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1071
1041
|
# Deserialize Response
|
1072
1042
|
if status_code == 200
|
@@ -1100,8 +1070,8 @@ module Azure::ARM::NotificationHubs
|
|
1100
1070
|
response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value!
|
1101
1071
|
unless response.nil?
|
1102
1072
|
page = response.body
|
1103
|
-
page.next_method = Proc.new do |
|
1104
|
-
list_authorization_rules_next_async(
|
1073
|
+
page.next_method = Proc.new do |next_page_link|
|
1074
|
+
list_authorization_rules_next_async(next_page_link, custom_headers)
|
1105
1075
|
end
|
1106
1076
|
page
|
1107
1077
|
end
|
@@ -1159,30 +1129,27 @@ module Azure::ARM::NotificationHubs
|
|
1159
1129
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1160
1130
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1161
1131
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules'
|
1132
|
+
|
1133
|
+
request_url = @base_url || @client.base_url
|
1134
|
+
|
1162
1135
|
options = {
|
1163
1136
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1164
1137
|
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'subscriptionId' => @client.subscription_id},
|
1165
1138
|
query_params: {'api-version' => @client.api_version},
|
1166
|
-
headers: request_headers.merge(custom_headers || {})
|
1139
|
+
headers: request_headers.merge(custom_headers || {}),
|
1140
|
+
base_url: request_url
|
1167
1141
|
}
|
1142
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1168
1143
|
|
1169
|
-
|
1170
|
-
|
1171
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
1172
|
-
promise = request.run_promise do |req|
|
1173
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1174
|
-
end
|
1175
|
-
|
1176
|
-
promise = promise.then do |http_response|
|
1144
|
+
promise = promise.then do |result|
|
1145
|
+
http_response = result.response
|
1177
1146
|
status_code = http_response.status
|
1178
1147
|
response_content = http_response.body
|
1179
1148
|
unless status_code == 200
|
1180
1149
|
error_model = JSON.load(response_content)
|
1181
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1150
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1182
1151
|
end
|
1183
1152
|
|
1184
|
-
# Create Result
|
1185
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1186
1153
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1187
1154
|
# Deserialize Response
|
1188
1155
|
if status_code == 200
|
@@ -1260,30 +1227,27 @@ module Azure::ARM::NotificationHubs
|
|
1260
1227
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1261
1228
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1262
1229
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys'
|
1230
|
+
|
1231
|
+
request_url = @base_url || @client.base_url
|
1232
|
+
|
1263
1233
|
options = {
|
1264
1234
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1265
1235
|
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'authorizationRuleName' => authorization_rule_name,'subscriptionId' => @client.subscription_id},
|
1266
1236
|
query_params: {'api-version' => @client.api_version},
|
1267
|
-
headers: request_headers.merge(custom_headers || {})
|
1237
|
+
headers: request_headers.merge(custom_headers || {}),
|
1238
|
+
base_url: request_url
|
1268
1239
|
}
|
1240
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1269
1241
|
|
1270
|
-
|
1271
|
-
|
1272
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
1273
|
-
promise = request.run_promise do |req|
|
1274
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1275
|
-
end
|
1276
|
-
|
1277
|
-
promise = promise.then do |http_response|
|
1242
|
+
promise = promise.then do |result|
|
1243
|
+
http_response = result.response
|
1278
1244
|
status_code = http_response.status
|
1279
1245
|
response_content = http_response.body
|
1280
1246
|
unless status_code == 200
|
1281
1247
|
error_model = JSON.load(response_content)
|
1282
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1248
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1283
1249
|
end
|
1284
1250
|
|
1285
|
-
# Create Result
|
1286
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1287
1251
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1288
1252
|
# Deserialize Response
|
1289
1253
|
if status_code == 200
|
@@ -1351,29 +1315,26 @@ module Azure::ARM::NotificationHubs
|
|
1351
1315
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1352
1316
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1353
1317
|
path_template = '{nextLink}'
|
1318
|
+
|
1319
|
+
request_url = @base_url || @client.base_url
|
1320
|
+
|
1354
1321
|
options = {
|
1355
1322
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1356
1323
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1357
|
-
headers: request_headers.merge(custom_headers || {})
|
1324
|
+
headers: request_headers.merge(custom_headers || {}),
|
1325
|
+
base_url: request_url
|
1358
1326
|
}
|
1327
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1359
1328
|
|
1360
|
-
|
1361
|
-
|
1362
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
1363
|
-
promise = request.run_promise do |req|
|
1364
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1365
|
-
end
|
1366
|
-
|
1367
|
-
promise = promise.then do |http_response|
|
1329
|
+
promise = promise.then do |result|
|
1330
|
+
http_response = result.response
|
1368
1331
|
status_code = http_response.status
|
1369
1332
|
response_content = http_response.body
|
1370
1333
|
unless status_code == 200
|
1371
1334
|
error_model = JSON.load(response_content)
|
1372
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1335
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1373
1336
|
end
|
1374
1337
|
|
1375
|
-
# Create Result
|
1376
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1377
1338
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1378
1339
|
# Deserialize Response
|
1379
1340
|
if status_code == 200
|
@@ -1444,29 +1405,26 @@ module Azure::ARM::NotificationHubs
|
|
1444
1405
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1445
1406
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1446
1407
|
path_template = '{nextLink}'
|
1408
|
+
|
1409
|
+
request_url = @base_url || @client.base_url
|
1410
|
+
|
1447
1411
|
options = {
|
1448
1412
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1449
1413
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1450
|
-
headers: request_headers.merge(custom_headers || {})
|
1414
|
+
headers: request_headers.merge(custom_headers || {}),
|
1415
|
+
base_url: request_url
|
1451
1416
|
}
|
1417
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1452
1418
|
|
1453
|
-
|
1454
|
-
|
1455
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
1456
|
-
promise = request.run_promise do |req|
|
1457
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1458
|
-
end
|
1459
|
-
|
1460
|
-
promise = promise.then do |http_response|
|
1419
|
+
promise = promise.then do |result|
|
1420
|
+
http_response = result.response
|
1461
1421
|
status_code = http_response.status
|
1462
1422
|
response_content = http_response.body
|
1463
1423
|
unless status_code == 200
|
1464
1424
|
error_model = JSON.load(response_content)
|
1465
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1425
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1466
1426
|
end
|
1467
1427
|
|
1468
|
-
# Create Result
|
1469
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1470
1428
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1471
1429
|
# Deserialize Response
|
1472
1430
|
if status_code == 200
|
@@ -1534,29 +1492,26 @@ module Azure::ARM::NotificationHubs
|
|
1534
1492
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1535
1493
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1536
1494
|
path_template = '{nextLink}'
|
1495
|
+
|
1496
|
+
request_url = @base_url || @client.base_url
|
1497
|
+
|
1537
1498
|
options = {
|
1538
1499
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1539
1500
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1540
|
-
headers: request_headers.merge(custom_headers || {})
|
1501
|
+
headers: request_headers.merge(custom_headers || {}),
|
1502
|
+
base_url: request_url
|
1541
1503
|
}
|
1504
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1542
1505
|
|
1543
|
-
|
1544
|
-
|
1545
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
1546
|
-
promise = request.run_promise do |req|
|
1547
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1548
|
-
end
|
1549
|
-
|
1550
|
-
promise = promise.then do |http_response|
|
1506
|
+
promise = promise.then do |result|
|
1507
|
+
http_response = result.response
|
1551
1508
|
status_code = http_response.status
|
1552
1509
|
response_content = http_response.body
|
1553
1510
|
unless status_code == 200
|
1554
1511
|
error_model = JSON.load(response_content)
|
1555
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
1512
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1556
1513
|
end
|
1557
1514
|
|
1558
|
-
# Create Result
|
1559
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1560
1515
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1561
1516
|
# Deserialize Response
|
1562
1517
|
if status_code == 200
|