azure_mgmt_notification_hubs 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/hubs.rb +6 -7
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/name.rb +6 -7
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb +109 -103
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb +90 -84
- data/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +4 -1
- data/lib/profiles/latest/modules/notificationhubs_profile_module.rb +121 -102
- data/lib/profiles/latest/notificationhubs_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/notificationhubs_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -32,8 +32,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
32
32
|
#
|
33
33
|
# @return [CheckAvailabilityResult] operation results.
|
34
34
|
#
|
35
|
-
def check_availability(resource_group_name, namespace_name, parameters, custom_headers
|
36
|
-
response = check_availability_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
35
|
+
def check_availability(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
36
|
+
response = check_availability_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
37
37
|
response.body unless response.nil?
|
38
38
|
end
|
39
39
|
|
@@ -48,8 +48,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
48
48
|
#
|
49
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
50
|
#
|
51
|
-
def check_availability_with_http_info(resource_group_name, namespace_name, parameters, custom_headers
|
52
|
-
check_availability_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
51
|
+
def check_availability_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
52
|
+
check_availability_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value!
|
53
53
|
end
|
54
54
|
|
55
55
|
#
|
@@ -63,7 +63,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
63
63
|
#
|
64
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
65
|
#
|
66
|
-
def check_availability_async(resource_group_name, namespace_name, parameters, custom_headers
|
66
|
+
def check_availability_async(resource_group_name, namespace_name, parameters, custom_headers:nil)
|
67
67
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
68
68
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
69
69
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -72,13 +72,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
72
72
|
|
73
73
|
|
74
74
|
request_headers = {}
|
75
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
75
76
|
|
76
77
|
# Set Headers
|
77
78
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
78
79
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
79
80
|
|
80
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
|
-
|
82
81
|
# Serialize Request
|
83
82
|
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters.mapper()
|
84
83
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -138,8 +137,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
138
137
|
#
|
139
138
|
# @return [NotificationHubResource] operation results.
|
140
139
|
#
|
141
|
-
def create_or_update(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers
|
142
|
-
response = create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers).value!
|
140
|
+
def create_or_update(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers:nil)
|
141
|
+
response = create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers:custom_headers).value!
|
143
142
|
response.body unless response.nil?
|
144
143
|
end
|
145
144
|
|
@@ -156,8 +155,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
156
155
|
#
|
157
156
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
158
157
|
#
|
159
|
-
def create_or_update_with_http_info(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers
|
160
|
-
create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers).value!
|
158
|
+
def create_or_update_with_http_info(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers:nil)
|
159
|
+
create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers:custom_headers).value!
|
161
160
|
end
|
162
161
|
|
163
162
|
#
|
@@ -173,7 +172,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
173
172
|
#
|
174
173
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
175
174
|
#
|
176
|
-
def create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers
|
175
|
+
def create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers:nil)
|
177
176
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
178
177
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
179
178
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -183,13 +182,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
183
182
|
|
184
183
|
|
185
184
|
request_headers = {}
|
185
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
186
186
|
|
187
187
|
# Set Headers
|
188
188
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
189
189
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
190
190
|
|
191
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
192
|
-
|
193
191
|
# Serialize Request
|
194
192
|
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubCreateOrUpdateParameters.mapper()
|
195
193
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -256,8 +254,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
256
254
|
# will be added to the HTTP request.
|
257
255
|
#
|
258
256
|
#
|
259
|
-
def delete(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
260
|
-
response = delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
257
|
+
def delete(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
258
|
+
response = delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value!
|
261
259
|
nil
|
262
260
|
end
|
263
261
|
|
@@ -272,8 +270,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
272
270
|
#
|
273
271
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
274
272
|
#
|
275
|
-
def delete_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
276
|
-
delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
273
|
+
def delete_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
274
|
+
delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value!
|
277
275
|
end
|
278
276
|
|
279
277
|
#
|
@@ -287,7 +285,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
287
285
|
#
|
288
286
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
289
287
|
#
|
290
|
-
def delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
288
|
+
def delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
291
289
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
292
290
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
293
291
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -296,6 +294,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
296
294
|
|
297
295
|
|
298
296
|
request_headers = {}
|
297
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
299
298
|
|
300
299
|
# Set Headers
|
301
300
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -341,8 +340,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
341
340
|
#
|
342
341
|
# @return [NotificationHubResource] operation results.
|
343
342
|
#
|
344
|
-
def get(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
345
|
-
response = get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
343
|
+
def get(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
344
|
+
response = get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value!
|
346
345
|
response.body unless response.nil?
|
347
346
|
end
|
348
347
|
|
@@ -357,8 +356,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
357
356
|
#
|
358
357
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
359
358
|
#
|
360
|
-
def get_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
361
|
-
get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
359
|
+
def get_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
360
|
+
get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value!
|
362
361
|
end
|
363
362
|
|
364
363
|
#
|
@@ -372,7 +371,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
372
371
|
#
|
373
372
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
374
373
|
#
|
375
|
-
def get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
374
|
+
def get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
376
375
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
377
376
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
378
377
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -381,6 +380,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
381
380
|
|
382
381
|
|
383
382
|
request_headers = {}
|
383
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
384
384
|
|
385
385
|
# Set Headers
|
386
386
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -439,8 +439,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
439
439
|
#
|
440
440
|
# @return [SharedAccessAuthorizationRuleResource] operation results.
|
441
441
|
#
|
442
|
-
def create_or_update_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers
|
443
|
-
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
442
|
+
def create_or_update_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
443
|
+
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
444
444
|
response.body unless response.nil?
|
445
445
|
end
|
446
446
|
|
@@ -458,8 +458,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
458
458
|
#
|
459
459
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
460
460
|
#
|
461
|
-
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers
|
462
|
-
create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
461
|
+
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
462
|
+
create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
463
463
|
end
|
464
464
|
|
465
465
|
#
|
@@ -476,7 +476,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
476
476
|
#
|
477
477
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
478
478
|
#
|
479
|
-
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers
|
479
|
+
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
480
480
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
481
481
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
482
482
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -487,13 +487,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
487
487
|
|
488
488
|
|
489
489
|
request_headers = {}
|
490
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
490
491
|
|
491
492
|
# Set Headers
|
492
493
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
493
494
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
494
495
|
|
495
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
496
|
-
|
497
496
|
# Serialize Request
|
498
497
|
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters.mapper()
|
499
498
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -551,8 +550,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
551
550
|
# will be added to the HTTP request.
|
552
551
|
#
|
553
552
|
#
|
554
|
-
def delete_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers
|
555
|
-
response = delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value!
|
553
|
+
def delete_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil)
|
554
|
+
response = delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
556
555
|
nil
|
557
556
|
end
|
558
557
|
|
@@ -568,8 +567,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
568
567
|
#
|
569
568
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
570
569
|
#
|
571
|
-
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers
|
572
|
-
delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value!
|
570
|
+
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil)
|
571
|
+
delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
573
572
|
end
|
574
573
|
|
575
574
|
#
|
@@ -584,7 +583,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
584
583
|
#
|
585
584
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
586
585
|
#
|
587
|
-
def delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers
|
586
|
+
def delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil)
|
588
587
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
589
588
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
590
589
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -594,6 +593,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
594
593
|
|
595
594
|
|
596
595
|
request_headers = {}
|
596
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
597
597
|
|
598
598
|
# Set Headers
|
599
599
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -640,8 +640,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
640
640
|
#
|
641
641
|
# @return [SharedAccessAuthorizationRuleResource] operation results.
|
642
642
|
#
|
643
|
-
def get_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers
|
644
|
-
response = get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value!
|
643
|
+
def get_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil)
|
644
|
+
response = get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
645
645
|
response.body unless response.nil?
|
646
646
|
end
|
647
647
|
|
@@ -657,8 +657,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
657
657
|
#
|
658
658
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
659
659
|
#
|
660
|
-
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers
|
661
|
-
get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value!
|
660
|
+
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil)
|
661
|
+
get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
662
662
|
end
|
663
663
|
|
664
664
|
#
|
@@ -673,7 +673,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
673
673
|
#
|
674
674
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
675
675
|
#
|
676
|
-
def get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers
|
676
|
+
def get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil)
|
677
677
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
678
678
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
679
679
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -683,6 +683,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
683
683
|
|
684
684
|
|
685
685
|
request_headers = {}
|
686
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
686
687
|
|
687
688
|
# Set Headers
|
688
689
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -737,8 +738,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
737
738
|
#
|
738
739
|
# @return [Array<NotificationHubResource>] operation results.
|
739
740
|
#
|
740
|
-
def list(resource_group_name, namespace_name, custom_headers
|
741
|
-
first_page = list_as_lazy(resource_group_name, namespace_name, custom_headers)
|
741
|
+
def list(resource_group_name, namespace_name, custom_headers:nil)
|
742
|
+
first_page = list_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers)
|
742
743
|
first_page.get_all_items
|
743
744
|
end
|
744
745
|
|
@@ -752,8 +753,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
752
753
|
#
|
753
754
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
754
755
|
#
|
755
|
-
def list_with_http_info(resource_group_name, namespace_name, custom_headers
|
756
|
-
list_async(resource_group_name, namespace_name, custom_headers).value!
|
756
|
+
def list_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
757
|
+
list_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
757
758
|
end
|
758
759
|
|
759
760
|
#
|
@@ -766,7 +767,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
766
767
|
#
|
767
768
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
768
769
|
#
|
769
|
-
def list_async(resource_group_name, namespace_name, custom_headers
|
770
|
+
def list_async(resource_group_name, namespace_name, custom_headers:nil)
|
770
771
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
771
772
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
772
773
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -774,6 +775,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
774
775
|
|
775
776
|
|
776
777
|
request_headers = {}
|
778
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
777
779
|
|
778
780
|
# Set Headers
|
779
781
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -829,8 +831,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
829
831
|
#
|
830
832
|
# @return [Array<SharedAccessAuthorizationRuleResource>] operation results.
|
831
833
|
#
|
832
|
-
def list_authorization_rules(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
833
|
-
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, notification_hub_name, custom_headers)
|
834
|
+
def list_authorization_rules(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
835
|
+
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers)
|
834
836
|
first_page.get_all_items
|
835
837
|
end
|
836
838
|
|
@@ -845,8 +847,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
845
847
|
#
|
846
848
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
847
849
|
#
|
848
|
-
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
849
|
-
list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
850
|
+
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
851
|
+
list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value!
|
850
852
|
end
|
851
853
|
|
852
854
|
#
|
@@ -860,7 +862,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
860
862
|
#
|
861
863
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
862
864
|
#
|
863
|
-
def list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
865
|
+
def list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
864
866
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
865
867
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
866
868
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -869,6 +871,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
869
871
|
|
870
872
|
|
871
873
|
request_headers = {}
|
874
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
872
875
|
|
873
876
|
# Set Headers
|
874
877
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -926,8 +929,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
926
929
|
#
|
927
930
|
# @return [ResourceListKeys] operation results.
|
928
931
|
#
|
929
|
-
def list_keys(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers
|
930
|
-
response = list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value!
|
932
|
+
def list_keys(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil)
|
933
|
+
response = list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
931
934
|
response.body unless response.nil?
|
932
935
|
end
|
933
936
|
|
@@ -944,8 +947,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
944
947
|
#
|
945
948
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
946
949
|
#
|
947
|
-
def list_keys_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers
|
948
|
-
list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value!
|
950
|
+
def list_keys_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil)
|
951
|
+
list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:custom_headers).value!
|
949
952
|
end
|
950
953
|
|
951
954
|
#
|
@@ -961,7 +964,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
961
964
|
#
|
962
965
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
963
966
|
#
|
964
|
-
def list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers
|
967
|
+
def list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil)
|
965
968
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
966
969
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
967
970
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -971,6 +974,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
971
974
|
|
972
975
|
|
973
976
|
request_headers = {}
|
977
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
974
978
|
|
975
979
|
# Set Headers
|
976
980
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1031,8 +1035,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1031
1035
|
#
|
1032
1036
|
# @return [ResourceListKeys] operation results.
|
1033
1037
|
#
|
1034
|
-
def regenerate_keys(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers
|
1035
|
-
response = regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
1038
|
+
def regenerate_keys(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
1039
|
+
response = regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1036
1040
|
response.body unless response.nil?
|
1037
1041
|
end
|
1038
1042
|
|
@@ -1052,8 +1056,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1052
1056
|
#
|
1053
1057
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1054
1058
|
#
|
1055
|
-
def regenerate_keys_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers
|
1056
|
-
regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
1059
|
+
def regenerate_keys_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
1060
|
+
regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value!
|
1057
1061
|
end
|
1058
1062
|
|
1059
1063
|
#
|
@@ -1072,7 +1076,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1072
1076
|
#
|
1073
1077
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1074
1078
|
#
|
1075
|
-
def regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers
|
1079
|
+
def regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:nil)
|
1076
1080
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1077
1081
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
1078
1082
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -1083,13 +1087,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1083
1087
|
|
1084
1088
|
|
1085
1089
|
request_headers = {}
|
1090
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1086
1091
|
|
1087
1092
|
# Set Headers
|
1088
1093
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1089
1094
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1090
1095
|
|
1091
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1092
|
-
|
1093
1096
|
# Serialize Request
|
1094
1097
|
request_mapper = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PolicykeyResource.mapper()
|
1095
1098
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1147,8 +1150,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1147
1150
|
#
|
1148
1151
|
# @return [PnsCredentialsResource] operation results.
|
1149
1152
|
#
|
1150
|
-
def get_pns_credentials(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
1151
|
-
response = get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
1153
|
+
def get_pns_credentials(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
1154
|
+
response = get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value!
|
1152
1155
|
response.body unless response.nil?
|
1153
1156
|
end
|
1154
1157
|
|
@@ -1163,8 +1166,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1163
1166
|
#
|
1164
1167
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1165
1168
|
#
|
1166
|
-
def get_pns_credentials_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
1167
|
-
get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
1169
|
+
def get_pns_credentials_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
1170
|
+
get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value!
|
1168
1171
|
end
|
1169
1172
|
|
1170
1173
|
#
|
@@ -1178,7 +1181,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1178
1181
|
#
|
1179
1182
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1180
1183
|
#
|
1181
|
-
def get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
1184
|
+
def get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
1182
1185
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1183
1186
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
1184
1187
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -1187,6 +1190,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1187
1190
|
|
1188
1191
|
|
1189
1192
|
request_headers = {}
|
1193
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1190
1194
|
|
1191
1195
|
# Set Headers
|
1192
1196
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1241,8 +1245,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1241
1245
|
#
|
1242
1246
|
# @return [NotificationHubListResult] operation results.
|
1243
1247
|
#
|
1244
|
-
def list_next(next_page_link, custom_headers
|
1245
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
1248
|
+
def list_next(next_page_link, custom_headers:nil)
|
1249
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1246
1250
|
response.body unless response.nil?
|
1247
1251
|
end
|
1248
1252
|
|
@@ -1256,8 +1260,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1256
1260
|
#
|
1257
1261
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1258
1262
|
#
|
1259
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
1260
|
-
list_next_async(next_page_link, custom_headers).value!
|
1263
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
1264
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1261
1265
|
end
|
1262
1266
|
|
1263
1267
|
#
|
@@ -1270,11 +1274,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1270
1274
|
#
|
1271
1275
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1272
1276
|
#
|
1273
|
-
def list_next_async(next_page_link, custom_headers
|
1277
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
1274
1278
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1275
1279
|
|
1276
1280
|
|
1277
1281
|
request_headers = {}
|
1282
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1278
1283
|
|
1279
1284
|
# Set Headers
|
1280
1285
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1328,8 +1333,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1328
1333
|
#
|
1329
1334
|
# @return [SharedAccessAuthorizationRuleListResult] operation results.
|
1330
1335
|
#
|
1331
|
-
def list_authorization_rules_next(next_page_link, custom_headers
|
1332
|
-
response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1336
|
+
def list_authorization_rules_next(next_page_link, custom_headers:nil)
|
1337
|
+
response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1333
1338
|
response.body unless response.nil?
|
1334
1339
|
end
|
1335
1340
|
|
@@ -1343,8 +1348,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1343
1348
|
#
|
1344
1349
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1345
1350
|
#
|
1346
|
-
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers
|
1347
|
-
list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1351
|
+
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil)
|
1352
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value!
|
1348
1353
|
end
|
1349
1354
|
|
1350
1355
|
#
|
@@ -1357,11 +1362,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1357
1362
|
#
|
1358
1363
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1359
1364
|
#
|
1360
|
-
def list_authorization_rules_next_async(next_page_link, custom_headers
|
1365
|
+
def list_authorization_rules_next_async(next_page_link, custom_headers:nil)
|
1361
1366
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1362
1367
|
|
1363
1368
|
|
1364
1369
|
request_headers = {}
|
1370
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1365
1371
|
|
1366
1372
|
# Set Headers
|
1367
1373
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1416,12 +1422,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1416
1422
|
# @return [NotificationHubListResult] which provide lazy access to pages of the
|
1417
1423
|
# response.
|
1418
1424
|
#
|
1419
|
-
def list_as_lazy(resource_group_name, namespace_name, custom_headers
|
1420
|
-
response = list_async(resource_group_name, namespace_name, custom_headers).value!
|
1425
|
+
def list_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
|
1426
|
+
response = list_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1421
1427
|
unless response.nil?
|
1422
1428
|
page = response.body
|
1423
1429
|
page.next_method = Proc.new do |next_page_link|
|
1424
|
-
list_next_async(next_page_link, custom_headers)
|
1430
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1425
1431
|
end
|
1426
1432
|
page
|
1427
1433
|
end
|
@@ -1439,12 +1445,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01
|
|
1439
1445
|
# @return [SharedAccessAuthorizationRuleListResult] which provide lazy access
|
1440
1446
|
# to pages of the response.
|
1441
1447
|
#
|
1442
|
-
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, notification_hub_name, custom_headers
|
1443
|
-
response = list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
1448
|
+
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil)
|
1449
|
+
response = list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value!
|
1444
1450
|
unless response.nil?
|
1445
1451
|
page = response.body
|
1446
1452
|
page.next_method = Proc.new do |next_page_link|
|
1447
|
-
list_authorization_rules_next_async(next_page_link, custom_headers)
|
1453
|
+
list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers)
|
1448
1454
|
end
|
1449
1455
|
page
|
1450
1456
|
end
|