azure_mgmt_notification_hubs 0.2.1 → 0.3.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 +13 -5
- data/azure_mgmt_notification_hubs.gemspec +2 -2
- data/lib/azure_mgmt_notification_hubs.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/access_rights.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/adm_credential.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/adm_credential_properties.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/apns_credential.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/apns_credential_properties.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/baidu_credential.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/baidu_credential_properties.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/check_availability_parameters.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/check_availability_resource.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/gcm_credential.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/gcm_credential_properties.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/mpns_credential.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/mpns_credential_properties.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/namespace_list_result.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/namespace_properties.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/namespace_resource.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/namespace_type.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/notification_hub_properties.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/notification_hub_resource.rb +8 -8
- data/lib/azure_mgmt_notification_hubs/models/resource_list_keys.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/wns_credential.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/models/wns_credential_properties.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/module_definition.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/namespaces.rb +588 -105
- data/lib/azure_mgmt_notification_hubs/notification_hubs.rb +522 -92
- data/lib/azure_mgmt_notification_hubs/notification_hubs_management_client.rb +1 -1
- data/lib/azure_mgmt_notification_hubs/version.rb +2 -2
- metadata +31 -24
@@ -1,11 +1,11 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::NotificationHubs
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Azure NotificationHub client
|
9
9
|
#
|
10
10
|
class NotificationHubs
|
11
11
|
include Azure::ARM::NotificationHubs::Models
|
@@ -28,13 +28,43 @@ module Azure::ARM::NotificationHubs
|
|
28
28
|
# @param resource_group_name [String] The name of the resource group.
|
29
29
|
# @param namespace_name [String] The namespace name.
|
30
30
|
# @param parameters [CheckAvailabilityParameters] The notificationHub name.
|
31
|
-
# @param [Hash{String => String}]
|
32
|
-
#
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
33
|
#
|
34
|
-
# @return [
|
35
|
-
# response.
|
34
|
+
# @return [CheckAvailabilityResource] operation results.
|
36
35
|
#
|
37
36
|
def check_availability(resource_group_name, namespace_name, parameters, custom_headers = nil)
|
37
|
+
response = check_availability_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Checks the availability of the given notificationHub in a namespace.
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group.
|
45
|
+
# @param namespace_name [String] The namespace name.
|
46
|
+
# @param parameters [CheckAvailabilityParameters] The notificationHub name.
|
47
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
48
|
+
# will be added to the HTTP request.
|
49
|
+
#
|
50
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
51
|
+
#
|
52
|
+
def check_availability_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil)
|
53
|
+
check_availability_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Checks the availability of the given notificationHub in a namespace.
|
58
|
+
#
|
59
|
+
# @param resource_group_name [String] The name of the resource group.
|
60
|
+
# @param namespace_name [String] The namespace name.
|
61
|
+
# @param parameters [CheckAvailabilityParameters] The notificationHub name.
|
62
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
63
|
+
# to the HTTP request.
|
64
|
+
#
|
65
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
66
|
+
#
|
67
|
+
def check_availability_async(resource_group_name, namespace_name, parameters, custom_headers = nil)
|
38
68
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
39
69
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
40
70
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -52,7 +82,7 @@ module Azure::ARM::NotificationHubs
|
|
52
82
|
unless parameters.nil?
|
53
83
|
parameters = CheckAvailabilityParameters.serialize_object(parameters)
|
54
84
|
end
|
55
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
85
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
56
86
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability'
|
57
87
|
options = {
|
58
88
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -61,7 +91,10 @@ module Azure::ARM::NotificationHubs
|
|
61
91
|
body: request_content,
|
62
92
|
headers: request_headers.merge(custom_headers || {})
|
63
93
|
}
|
64
|
-
|
94
|
+
|
95
|
+
request_url = @base_url || @client.base_url
|
96
|
+
|
97
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
65
98
|
promise = request.run_promise do |req|
|
66
99
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
67
100
|
end
|
@@ -97,20 +130,54 @@ module Azure::ARM::NotificationHubs
|
|
97
130
|
end
|
98
131
|
|
99
132
|
#
|
100
|
-
# Creates a
|
133
|
+
# Creates/Update a NotificationHub in a namespace.
|
101
134
|
#
|
102
135
|
# @param resource_group_name [String] The name of the resource group.
|
103
136
|
# @param namespace_name [String] The namespace name.
|
104
137
|
# @param notification_hub_name [String] The notification hub name.
|
105
138
|
# @param parameters [NotificationHubCreateOrUpdateParameters] Parameters
|
106
|
-
# supplied to the create a
|
107
|
-
# @param [Hash{String => String}]
|
108
|
-
#
|
139
|
+
# supplied to the create/update a NotificationHub Resource.
|
140
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
141
|
+
# will be added to the HTTP request.
|
142
|
+
#
|
143
|
+
# @return [NotificationHubResource] operation results.
|
144
|
+
#
|
145
|
+
def create_or_update(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers = nil)
|
146
|
+
response = create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers).value!
|
147
|
+
response.body unless response.nil?
|
148
|
+
end
|
149
|
+
|
150
|
+
#
|
151
|
+
# Creates/Update a NotificationHub in a namespace.
|
109
152
|
#
|
110
|
-
# @
|
111
|
-
#
|
153
|
+
# @param resource_group_name [String] The name of the resource group.
|
154
|
+
# @param namespace_name [String] The namespace name.
|
155
|
+
# @param notification_hub_name [String] The notification hub name.
|
156
|
+
# @param parameters [NotificationHubCreateOrUpdateParameters] Parameters
|
157
|
+
# supplied to the create/update a NotificationHub Resource.
|
158
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
159
|
+
# will be added to the HTTP request.
|
160
|
+
#
|
161
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
162
|
+
#
|
163
|
+
def create_or_update_with_http_info(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers = nil)
|
164
|
+
create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers).value!
|
165
|
+
end
|
166
|
+
|
112
167
|
#
|
113
|
-
|
168
|
+
# Creates/Update a NotificationHub in a namespace.
|
169
|
+
#
|
170
|
+
# @param resource_group_name [String] The name of the resource group.
|
171
|
+
# @param namespace_name [String] The namespace name.
|
172
|
+
# @param notification_hub_name [String] The notification hub name.
|
173
|
+
# @param parameters [NotificationHubCreateOrUpdateParameters] Parameters
|
174
|
+
# supplied to the create/update a NotificationHub Resource.
|
175
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
176
|
+
# to the HTTP request.
|
177
|
+
#
|
178
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
179
|
+
#
|
180
|
+
def create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers = nil)
|
114
181
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
115
182
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
116
183
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -129,7 +196,7 @@ module Azure::ARM::NotificationHubs
|
|
129
196
|
unless parameters.nil?
|
130
197
|
parameters = NotificationHubCreateOrUpdateParameters.serialize_object(parameters)
|
131
198
|
end
|
132
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
199
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
133
200
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}'
|
134
201
|
options = {
|
135
202
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -138,7 +205,10 @@ module Azure::ARM::NotificationHubs
|
|
138
205
|
body: request_content,
|
139
206
|
headers: request_headers.merge(custom_headers || {})
|
140
207
|
}
|
141
|
-
|
208
|
+
|
209
|
+
request_url = @base_url || @client.base_url
|
210
|
+
|
211
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
142
212
|
promise = request.run_promise do |req|
|
143
213
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
144
214
|
end
|
@@ -191,13 +261,42 @@ module Azure::ARM::NotificationHubs
|
|
191
261
|
# @param resource_group_name [String] The name of the resource group.
|
192
262
|
# @param namespace_name [String] The namespace name.
|
193
263
|
# @param notification_hub_name [String] The notification hub name.
|
194
|
-
# @param [Hash{String => String}]
|
195
|
-
#
|
264
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
265
|
+
# will be added to the HTTP request.
|
196
266
|
#
|
197
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
198
|
-
# response.
|
199
267
|
#
|
200
268
|
def delete(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
|
269
|
+
response = delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
270
|
+
nil
|
271
|
+
end
|
272
|
+
|
273
|
+
#
|
274
|
+
# Deletes a notification hub associated with a namespace.
|
275
|
+
#
|
276
|
+
# @param resource_group_name [String] The name of the resource group.
|
277
|
+
# @param namespace_name [String] The namespace name.
|
278
|
+
# @param notification_hub_name [String] The notification hub name.
|
279
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
280
|
+
# will be added to the HTTP request.
|
281
|
+
#
|
282
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
283
|
+
#
|
284
|
+
def delete_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
|
285
|
+
delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
286
|
+
end
|
287
|
+
|
288
|
+
#
|
289
|
+
# Deletes a notification hub associated with a namespace.
|
290
|
+
#
|
291
|
+
# @param resource_group_name [String] The name of the resource group.
|
292
|
+
# @param namespace_name [String] The namespace name.
|
293
|
+
# @param notification_hub_name [String] The notification hub name.
|
294
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
295
|
+
# to the HTTP request.
|
296
|
+
#
|
297
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
298
|
+
#
|
299
|
+
def delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
|
201
300
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
202
301
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
203
302
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -215,7 +314,10 @@ module Azure::ARM::NotificationHubs
|
|
215
314
|
query_params: {'api-version' => @client.api_version},
|
216
315
|
headers: request_headers.merge(custom_headers || {})
|
217
316
|
}
|
218
|
-
|
317
|
+
|
318
|
+
request_url = @base_url || @client.base_url
|
319
|
+
|
320
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
219
321
|
promise = request.run_promise do |req|
|
220
322
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
221
323
|
end
|
@@ -244,13 +346,43 @@ module Azure::ARM::NotificationHubs
|
|
244
346
|
# @param resource_group_name [String] The name of the resource group.
|
245
347
|
# @param namespace_name [String] The namespace name.
|
246
348
|
# @param notification_hub_name [String] The notification hub name.
|
247
|
-
# @param [Hash{String => String}]
|
248
|
-
#
|
349
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
350
|
+
# will be added to the HTTP request.
|
249
351
|
#
|
250
|
-
# @return [
|
251
|
-
# response.
|
352
|
+
# @return [NotificationHubResource] operation results.
|
252
353
|
#
|
253
354
|
def get(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
|
355
|
+
response = get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
356
|
+
response.body unless response.nil?
|
357
|
+
end
|
358
|
+
|
359
|
+
#
|
360
|
+
# Lists the notification hubs associated with a namespace.
|
361
|
+
#
|
362
|
+
# @param resource_group_name [String] The name of the resource group.
|
363
|
+
# @param namespace_name [String] The namespace name.
|
364
|
+
# @param notification_hub_name [String] The notification hub name.
|
365
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
366
|
+
# will be added to the HTTP request.
|
367
|
+
#
|
368
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
369
|
+
#
|
370
|
+
def get_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
|
371
|
+
get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
372
|
+
end
|
373
|
+
|
374
|
+
#
|
375
|
+
# Lists the notification hubs associated with a namespace.
|
376
|
+
#
|
377
|
+
# @param resource_group_name [String] The name of the resource group.
|
378
|
+
# @param namespace_name [String] The namespace name.
|
379
|
+
# @param notification_hub_name [String] The notification hub name.
|
380
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
381
|
+
# to the HTTP request.
|
382
|
+
#
|
383
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
384
|
+
#
|
385
|
+
def get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
|
254
386
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
255
387
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
256
388
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -268,7 +400,10 @@ module Azure::ARM::NotificationHubs
|
|
268
400
|
query_params: {'api-version' => @client.api_version},
|
269
401
|
headers: request_headers.merge(custom_headers || {})
|
270
402
|
}
|
271
|
-
|
403
|
+
|
404
|
+
request_url = @base_url || @client.base_url
|
405
|
+
|
406
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
272
407
|
promise = request.run_promise do |req|
|
273
408
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
274
409
|
end
|
@@ -304,23 +439,57 @@ module Azure::ARM::NotificationHubs
|
|
304
439
|
end
|
305
440
|
|
306
441
|
#
|
307
|
-
#
|
308
|
-
# authorization rule for a NotificationHub
|
442
|
+
# Creates/Updates an authorization rule for a NotificationHub
|
309
443
|
#
|
310
444
|
# @param resource_group_name [String] The name of the resource group.
|
311
445
|
# @param namespace_name [String] The namespace name.
|
312
446
|
# @param notification_hub_name [String] The notification hub name.
|
313
|
-
# @param authorization_rule_name [String]
|
314
|
-
# name.
|
447
|
+
# @param authorization_rule_name [String] Authorization Rule Name.
|
315
448
|
# @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters]
|
316
449
|
# The shared access authorization rule.
|
317
|
-
# @param [Hash{String => String}]
|
318
|
-
#
|
450
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
451
|
+
# will be added to the HTTP request.
|
319
452
|
#
|
320
|
-
# @return [
|
321
|
-
# response.
|
453
|
+
# @return [SharedAccessAuthorizationRuleResource] operation results.
|
322
454
|
#
|
323
455
|
def create_or_update_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers = nil)
|
456
|
+
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
457
|
+
response.body unless response.nil?
|
458
|
+
end
|
459
|
+
|
460
|
+
#
|
461
|
+
# Creates/Updates an authorization rule for a NotificationHub
|
462
|
+
#
|
463
|
+
# @param resource_group_name [String] The name of the resource group.
|
464
|
+
# @param namespace_name [String] The namespace name.
|
465
|
+
# @param notification_hub_name [String] The notification hub name.
|
466
|
+
# @param authorization_rule_name [String] Authorization Rule Name.
|
467
|
+
# @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters]
|
468
|
+
# The shared access authorization rule.
|
469
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
470
|
+
# will be added to the HTTP request.
|
471
|
+
#
|
472
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
473
|
+
#
|
474
|
+
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers = nil)
|
475
|
+
create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
476
|
+
end
|
477
|
+
|
478
|
+
#
|
479
|
+
# Creates/Updates an authorization rule for a NotificationHub
|
480
|
+
#
|
481
|
+
# @param resource_group_name [String] The name of the resource group.
|
482
|
+
# @param namespace_name [String] The namespace name.
|
483
|
+
# @param notification_hub_name [String] The notification hub name.
|
484
|
+
# @param authorization_rule_name [String] Authorization Rule Name.
|
485
|
+
# @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters]
|
486
|
+
# The shared access authorization rule.
|
487
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
488
|
+
# to the HTTP request.
|
489
|
+
#
|
490
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
491
|
+
#
|
492
|
+
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers = nil)
|
324
493
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
325
494
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
326
495
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -340,7 +509,7 @@ module Azure::ARM::NotificationHubs
|
|
340
509
|
unless parameters.nil?
|
341
510
|
parameters = SharedAccessAuthorizationRuleCreateOrUpdateParameters.serialize_object(parameters)
|
342
511
|
end
|
343
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
512
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
344
513
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}'
|
345
514
|
options = {
|
346
515
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -349,7 +518,10 @@ module Azure::ARM::NotificationHubs
|
|
349
518
|
body: request_content,
|
350
519
|
headers: request_headers.merge(custom_headers || {})
|
351
520
|
}
|
352
|
-
|
521
|
+
|
522
|
+
request_url = @base_url || @client.base_url
|
523
|
+
|
524
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
353
525
|
promise = request.run_promise do |req|
|
354
526
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
355
527
|
end
|
@@ -385,20 +557,50 @@ module Azure::ARM::NotificationHubs
|
|
385
557
|
end
|
386
558
|
|
387
559
|
#
|
388
|
-
#
|
560
|
+
# Deletes a notificationHub authorization rule
|
389
561
|
#
|
390
562
|
# @param resource_group_name [String] The name of the resource group.
|
391
563
|
# @param namespace_name [String] The namespace name.
|
392
564
|
# @param notification_hub_name [String] The notification hub name.
|
393
|
-
# @param authorization_rule_name [String]
|
394
|
-
#
|
395
|
-
#
|
396
|
-
# applied to HTTP request.
|
565
|
+
# @param authorization_rule_name [String] Authorization Rule Name.
|
566
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
567
|
+
# will be added to the HTTP request.
|
397
568
|
#
|
398
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
399
|
-
# response.
|
400
569
|
#
|
401
570
|
def delete_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil)
|
571
|
+
response = delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value!
|
572
|
+
nil
|
573
|
+
end
|
574
|
+
|
575
|
+
#
|
576
|
+
# Deletes a notificationHub authorization rule
|
577
|
+
#
|
578
|
+
# @param resource_group_name [String] The name of the resource group.
|
579
|
+
# @param namespace_name [String] The namespace name.
|
580
|
+
# @param notification_hub_name [String] The notification hub name.
|
581
|
+
# @param authorization_rule_name [String] Authorization Rule Name.
|
582
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
583
|
+
# will be added to the HTTP request.
|
584
|
+
#
|
585
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
586
|
+
#
|
587
|
+
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil)
|
588
|
+
delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value!
|
589
|
+
end
|
590
|
+
|
591
|
+
#
|
592
|
+
# Deletes a notificationHub authorization rule
|
593
|
+
#
|
594
|
+
# @param resource_group_name [String] The name of the resource group.
|
595
|
+
# @param namespace_name [String] The namespace name.
|
596
|
+
# @param notification_hub_name [String] The notification hub name.
|
597
|
+
# @param authorization_rule_name [String] Authorization Rule Name.
|
598
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
599
|
+
# to the HTTP request.
|
600
|
+
#
|
601
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
602
|
+
#
|
603
|
+
def delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil)
|
402
604
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
403
605
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
404
606
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -417,7 +619,10 @@ module Azure::ARM::NotificationHubs
|
|
417
619
|
query_params: {'api-version' => @client.api_version},
|
418
620
|
headers: request_headers.merge(custom_headers || {})
|
419
621
|
}
|
420
|
-
|
622
|
+
|
623
|
+
request_url = @base_url || @client.base_url
|
624
|
+
|
625
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
421
626
|
promise = request.run_promise do |req|
|
422
627
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
423
628
|
end
|
@@ -441,22 +646,51 @@ module Azure::ARM::NotificationHubs
|
|
441
646
|
end
|
442
647
|
|
443
648
|
#
|
444
|
-
#
|
445
|
-
# NotificationHub by name.
|
649
|
+
# Gets an authorization rule for a NotificationHub by name.
|
446
650
|
#
|
447
651
|
# @param resource_group_name [String] The name of the resource group.
|
448
|
-
# @param namespace_name [String] The namespace
|
449
|
-
# for.
|
652
|
+
# @param namespace_name [String] The namespace name
|
450
653
|
# @param notification_hub_name [String] The notification hub name.
|
451
|
-
# @param authorization_rule_name [String]
|
452
|
-
#
|
453
|
-
#
|
454
|
-
# applied to HTTP request.
|
654
|
+
# @param authorization_rule_name [String] authorization rule name.
|
655
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
656
|
+
# will be added to the HTTP request.
|
455
657
|
#
|
456
|
-
# @return [
|
457
|
-
# response.
|
658
|
+
# @return [SharedAccessAuthorizationRuleResource] operation results.
|
458
659
|
#
|
459
660
|
def get_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil)
|
661
|
+
response = get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value!
|
662
|
+
response.body unless response.nil?
|
663
|
+
end
|
664
|
+
|
665
|
+
#
|
666
|
+
# Gets an authorization rule for a NotificationHub by name.
|
667
|
+
#
|
668
|
+
# @param resource_group_name [String] The name of the resource group.
|
669
|
+
# @param namespace_name [String] The namespace name
|
670
|
+
# @param notification_hub_name [String] The notification hub name.
|
671
|
+
# @param authorization_rule_name [String] authorization rule name.
|
672
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
673
|
+
# will be added to the HTTP request.
|
674
|
+
#
|
675
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
676
|
+
#
|
677
|
+
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil)
|
678
|
+
get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value!
|
679
|
+
end
|
680
|
+
|
681
|
+
#
|
682
|
+
# Gets an authorization rule for a NotificationHub by name.
|
683
|
+
#
|
684
|
+
# @param resource_group_name [String] The name of the resource group.
|
685
|
+
# @param namespace_name [String] The namespace name
|
686
|
+
# @param notification_hub_name [String] The notification hub name.
|
687
|
+
# @param authorization_rule_name [String] authorization rule name.
|
688
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
689
|
+
# to the HTTP request.
|
690
|
+
#
|
691
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
692
|
+
#
|
693
|
+
def get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil)
|
460
694
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
461
695
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
462
696
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -475,7 +709,10 @@ module Azure::ARM::NotificationHubs
|
|
475
709
|
query_params: {'api-version' => @client.api_version},
|
476
710
|
headers: request_headers.merge(custom_headers || {})
|
477
711
|
}
|
478
|
-
|
712
|
+
|
713
|
+
request_url = @base_url || @client.base_url
|
714
|
+
|
715
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
479
716
|
promise = request.run_promise do |req|
|
480
717
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
481
718
|
end
|
@@ -515,13 +752,41 @@ module Azure::ARM::NotificationHubs
|
|
515
752
|
#
|
516
753
|
# @param resource_group_name [String] The name of the resource group.
|
517
754
|
# @param namespace_name [String] The namespace name.
|
518
|
-
# @param [Hash{String => String}]
|
519
|
-
#
|
755
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
756
|
+
# will be added to the HTTP request.
|
520
757
|
#
|
521
|
-
# @return [
|
522
|
-
# response.
|
758
|
+
# @return [NotificationHubListResult] operation results.
|
523
759
|
#
|
524
760
|
def list(resource_group_name, namespace_name, custom_headers = nil)
|
761
|
+
response = list_async(resource_group_name, namespace_name, custom_headers).value!
|
762
|
+
response.body unless response.nil?
|
763
|
+
end
|
764
|
+
|
765
|
+
#
|
766
|
+
# Lists the notification hubs associated with a namespace.
|
767
|
+
#
|
768
|
+
# @param resource_group_name [String] The name of the resource group.
|
769
|
+
# @param namespace_name [String] The namespace name.
|
770
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
771
|
+
# will be added to the HTTP request.
|
772
|
+
#
|
773
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
774
|
+
#
|
775
|
+
def list_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
|
776
|
+
list_async(resource_group_name, namespace_name, custom_headers).value!
|
777
|
+
end
|
778
|
+
|
779
|
+
#
|
780
|
+
# Lists the notification hubs associated with a namespace.
|
781
|
+
#
|
782
|
+
# @param resource_group_name [String] The name of the resource group.
|
783
|
+
# @param namespace_name [String] The namespace name.
|
784
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
785
|
+
# to the HTTP request.
|
786
|
+
#
|
787
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
788
|
+
#
|
789
|
+
def list_async(resource_group_name, namespace_name, custom_headers = nil)
|
525
790
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
526
791
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
527
792
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -538,7 +803,10 @@ module Azure::ARM::NotificationHubs
|
|
538
803
|
query_params: {'api-version' => @client.api_version},
|
539
804
|
headers: request_headers.merge(custom_headers || {})
|
540
805
|
}
|
541
|
-
|
806
|
+
|
807
|
+
request_url = @base_url || @client.base_url
|
808
|
+
|
809
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
542
810
|
promise = request.run_promise do |req|
|
543
811
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
544
812
|
end
|
@@ -574,20 +842,48 @@ module Azure::ARM::NotificationHubs
|
|
574
842
|
end
|
575
843
|
|
576
844
|
#
|
577
|
-
#
|
578
|
-
# NotificationHub.
|
845
|
+
# Gets the authorization rules for a NotificationHub.
|
579
846
|
#
|
580
847
|
# @param resource_group_name [String] The name of the resource group.
|
581
|
-
# @param namespace_name [String] The
|
582
|
-
# rule for.
|
848
|
+
# @param namespace_name [String] The namespace name
|
583
849
|
# @param notification_hub_name [String] The notification hub name.
|
584
|
-
# @param [Hash{String => String}]
|
585
|
-
#
|
850
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
851
|
+
# will be added to the HTTP request.
|
586
852
|
#
|
587
|
-
# @return [
|
588
|
-
# response.
|
853
|
+
# @return [SharedAccessAuthorizationRuleListResult] operation results.
|
589
854
|
#
|
590
855
|
def list_authorization_rules(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
|
856
|
+
response = list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
857
|
+
response.body unless response.nil?
|
858
|
+
end
|
859
|
+
|
860
|
+
#
|
861
|
+
# Gets the authorization rules for a NotificationHub.
|
862
|
+
#
|
863
|
+
# @param resource_group_name [String] The name of the resource group.
|
864
|
+
# @param namespace_name [String] The namespace name
|
865
|
+
# @param notification_hub_name [String] The notification hub name.
|
866
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
867
|
+
# will be added to the HTTP request.
|
868
|
+
#
|
869
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
870
|
+
#
|
871
|
+
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
|
872
|
+
list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
873
|
+
end
|
874
|
+
|
875
|
+
#
|
876
|
+
# Gets the authorization rules for a NotificationHub.
|
877
|
+
#
|
878
|
+
# @param resource_group_name [String] The name of the resource group.
|
879
|
+
# @param namespace_name [String] The namespace name
|
880
|
+
# @param notification_hub_name [String] The notification hub name.
|
881
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
882
|
+
# to the HTTP request.
|
883
|
+
#
|
884
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
885
|
+
#
|
886
|
+
def list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
|
591
887
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
592
888
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
593
889
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -605,7 +901,10 @@ module Azure::ARM::NotificationHubs
|
|
605
901
|
query_params: {'api-version' => @client.api_version},
|
606
902
|
headers: request_headers.merge(custom_headers || {})
|
607
903
|
}
|
608
|
-
|
904
|
+
|
905
|
+
request_url = @base_url || @client.base_url
|
906
|
+
|
907
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
609
908
|
promise = request.run_promise do |req|
|
610
909
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
611
910
|
end
|
@@ -648,13 +947,47 @@ module Azure::ARM::NotificationHubs
|
|
648
947
|
# @param notification_hub_name [String] The notification hub name.
|
649
948
|
# @param authorization_rule_name [String] The connection string of the
|
650
949
|
# NotificationHub for the specified authorizationRule.
|
651
|
-
# @param [Hash{String => String}]
|
652
|
-
#
|
950
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
951
|
+
# will be added to the HTTP request.
|
653
952
|
#
|
654
|
-
# @return [
|
655
|
-
# response.
|
953
|
+
# @return [ResourceListKeys] operation results.
|
656
954
|
#
|
657
955
|
def list_keys(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil)
|
956
|
+
response = list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value!
|
957
|
+
response.body unless response.nil?
|
958
|
+
end
|
959
|
+
|
960
|
+
#
|
961
|
+
# Gets the Primary and Secondary ConnectionStrings to the NotificationHub
|
962
|
+
#
|
963
|
+
# @param resource_group_name [String] The name of the resource group.
|
964
|
+
# @param namespace_name [String] The namespace name.
|
965
|
+
# @param notification_hub_name [String] The notification hub name.
|
966
|
+
# @param authorization_rule_name [String] The connection string of the
|
967
|
+
# NotificationHub for the specified authorizationRule.
|
968
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
969
|
+
# will be added to the HTTP request.
|
970
|
+
#
|
971
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
972
|
+
#
|
973
|
+
def list_keys_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil)
|
974
|
+
list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value!
|
975
|
+
end
|
976
|
+
|
977
|
+
#
|
978
|
+
# Gets the Primary and Secondary ConnectionStrings to the NotificationHub
|
979
|
+
#
|
980
|
+
# @param resource_group_name [String] The name of the resource group.
|
981
|
+
# @param namespace_name [String] The namespace name.
|
982
|
+
# @param notification_hub_name [String] The notification hub name.
|
983
|
+
# @param authorization_rule_name [String] The connection string of the
|
984
|
+
# NotificationHub for the specified authorizationRule.
|
985
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
986
|
+
# to the HTTP request.
|
987
|
+
#
|
988
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
989
|
+
#
|
990
|
+
def list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil)
|
658
991
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
659
992
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
660
993
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -673,7 +1006,10 @@ module Azure::ARM::NotificationHubs
|
|
673
1006
|
query_params: {'api-version' => @client.api_version},
|
674
1007
|
headers: request_headers.merge(custom_headers || {})
|
675
1008
|
}
|
676
|
-
|
1009
|
+
|
1010
|
+
request_url = @base_url || @client.base_url
|
1011
|
+
|
1012
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
677
1013
|
promise = request.run_promise do |req|
|
678
1014
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
679
1015
|
end
|
@@ -714,13 +1050,43 @@ module Azure::ARM::NotificationHubs
|
|
714
1050
|
# @param resource_group_name [String] The name of the resource group.
|
715
1051
|
# @param namespace_name [String] The namespace name.
|
716
1052
|
# @param notification_hub_name [String] The notification hub name.
|
717
|
-
# @param [Hash{String => String}]
|
718
|
-
#
|
1053
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1054
|
+
# will be added to the HTTP request.
|
719
1055
|
#
|
720
|
-
# @return [
|
721
|
-
# response.
|
1056
|
+
# @return [NotificationHubResource] operation results.
|
722
1057
|
#
|
723
1058
|
def get_pns_credentials(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
|
1059
|
+
response = get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
1060
|
+
response.body unless response.nil?
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
#
|
1064
|
+
# Lists the PNS Credentials associated with a notification hub .
|
1065
|
+
#
|
1066
|
+
# @param resource_group_name [String] The name of the resource group.
|
1067
|
+
# @param namespace_name [String] The namespace name.
|
1068
|
+
# @param notification_hub_name [String] The notification hub name.
|
1069
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1070
|
+
# will be added to the HTTP request.
|
1071
|
+
#
|
1072
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1073
|
+
#
|
1074
|
+
def get_pns_credentials_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
|
1075
|
+
get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value!
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
#
|
1079
|
+
# Lists the PNS Credentials associated with a notification hub .
|
1080
|
+
#
|
1081
|
+
# @param resource_group_name [String] The name of the resource group.
|
1082
|
+
# @param namespace_name [String] The namespace name.
|
1083
|
+
# @param notification_hub_name [String] The notification hub name.
|
1084
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1085
|
+
# to the HTTP request.
|
1086
|
+
#
|
1087
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1088
|
+
#
|
1089
|
+
def get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil)
|
724
1090
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
725
1091
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
726
1092
|
fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil?
|
@@ -738,7 +1104,10 @@ module Azure::ARM::NotificationHubs
|
|
738
1104
|
query_params: {'api-version' => @client.api_version},
|
739
1105
|
headers: request_headers.merge(custom_headers || {})
|
740
1106
|
}
|
741
|
-
|
1107
|
+
|
1108
|
+
request_url = @base_url || @client.base_url
|
1109
|
+
|
1110
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
742
1111
|
promise = request.run_promise do |req|
|
743
1112
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
744
1113
|
end
|
@@ -778,13 +1147,41 @@ module Azure::ARM::NotificationHubs
|
|
778
1147
|
#
|
779
1148
|
# @param next_page_link [String] The NextLink from the previous successful
|
780
1149
|
# call to List operation.
|
781
|
-
# @param [Hash{String => String}]
|
782
|
-
#
|
1150
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1151
|
+
# will be added to the HTTP request.
|
783
1152
|
#
|
784
|
-
# @return [
|
785
|
-
# response.
|
1153
|
+
# @return [NotificationHubListResult] operation results.
|
786
1154
|
#
|
787
1155
|
def list_next(next_page_link, custom_headers = nil)
|
1156
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
1157
|
+
response.body unless response.nil?
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
#
|
1161
|
+
# Lists the notification hubs associated with a namespace.
|
1162
|
+
#
|
1163
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1164
|
+
# call to List operation.
|
1165
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1166
|
+
# will be added to the HTTP request.
|
1167
|
+
#
|
1168
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1169
|
+
#
|
1170
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
1171
|
+
list_next_async(next_page_link, custom_headers).value!
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
#
|
1175
|
+
# Lists the notification hubs associated with a namespace.
|
1176
|
+
#
|
1177
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1178
|
+
# call to List operation.
|
1179
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1180
|
+
# to the HTTP request.
|
1181
|
+
#
|
1182
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1183
|
+
#
|
1184
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
788
1185
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
789
1186
|
request_headers = {}
|
790
1187
|
|
@@ -797,7 +1194,10 @@ module Azure::ARM::NotificationHubs
|
|
797
1194
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
798
1195
|
headers: request_headers.merge(custom_headers || {})
|
799
1196
|
}
|
800
|
-
|
1197
|
+
|
1198
|
+
request_url = @base_url || @client.base_url
|
1199
|
+
|
1200
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
801
1201
|
promise = request.run_promise do |req|
|
802
1202
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
803
1203
|
end
|
@@ -833,18 +1233,45 @@ module Azure::ARM::NotificationHubs
|
|
833
1233
|
end
|
834
1234
|
|
835
1235
|
#
|
836
|
-
#
|
837
|
-
# NotificationHub.
|
1236
|
+
# Gets the authorization rules for a NotificationHub.
|
838
1237
|
#
|
839
1238
|
# @param next_page_link [String] The NextLink from the previous successful
|
840
1239
|
# call to List operation.
|
841
|
-
# @param [Hash{String => String}]
|
842
|
-
#
|
1240
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1241
|
+
# will be added to the HTTP request.
|
843
1242
|
#
|
844
|
-
# @return [
|
845
|
-
# response.
|
1243
|
+
# @return [SharedAccessAuthorizationRuleListResult] operation results.
|
846
1244
|
#
|
847
1245
|
def list_authorization_rules_next(next_page_link, custom_headers = nil)
|
1246
|
+
response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1247
|
+
response.body unless response.nil?
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
#
|
1251
|
+
# Gets the authorization rules for a NotificationHub.
|
1252
|
+
#
|
1253
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1254
|
+
# call to List operation.
|
1255
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1256
|
+
# will be added to the HTTP request.
|
1257
|
+
#
|
1258
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1259
|
+
#
|
1260
|
+
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil)
|
1261
|
+
list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
#
|
1265
|
+
# Gets the authorization rules for a NotificationHub.
|
1266
|
+
#
|
1267
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1268
|
+
# call to List operation.
|
1269
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1270
|
+
# to the HTTP request.
|
1271
|
+
#
|
1272
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1273
|
+
#
|
1274
|
+
def list_authorization_rules_next_async(next_page_link, custom_headers = nil)
|
848
1275
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
849
1276
|
request_headers = {}
|
850
1277
|
|
@@ -857,7 +1284,10 @@ module Azure::ARM::NotificationHubs
|
|
857
1284
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
858
1285
|
headers: request_headers.merge(custom_headers || {})
|
859
1286
|
}
|
860
|
-
|
1287
|
+
|
1288
|
+
request_url = @base_url || @client.base_url
|
1289
|
+
|
1290
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
861
1291
|
promise = request.run_promise do |req|
|
862
1292
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
863
1293
|
end
|