azure_mgmt_notification_hubs 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDc5NDU5YWM1YmE1MjU5MTIxMmUxMTIyOTBhMGQ3ZTFjMDdkYWQ3Yw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OWNlY2Y0ZTZhNmExYzJlMzRhYzM5M2JiMjQ3ZGQyZDJkZjU5OGE2Ng==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MTc1ZjI0MmY3M2EwMGFmNDVjZTMwZmJlYTQ5ZmNmYzQ5Y2VkZTI4ODA5OGI0
|
10
|
+
OTEzOGFjN2YyZWY0NmVkOWUyYzQwNzY5NzA3N2E4YmFiM2Y3MTY0NjE5NDI5
|
11
|
+
YTNiMGE4ZmJmYzdhMzA3YmRmMDFmOTUzZGU2MWJhMDBkMDI5ZWE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZWY0N2M2ZmJlODJhZjgyMjgyMmMxMzc2ZDU4YjA2Y2E4Mzk3YWYxOTY5NTA5
|
14
|
+
OGE1OWIyNTUxYmJjZGM4NWM2YjMxYjlkNzg1ZDg1ZmI5NGIwNTEwYjQ3ZTE1
|
15
|
+
YjQ3NWU4ZDdhYzYzNWFhZDMxNjU1YTE4ZjRjZDc5Nzc1ZmMzNTk=
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency 'rake', '~> 10'
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3'
|
31
31
|
spec.add_development_dependency 'dotenv', '~> 2'
|
32
|
-
spec.add_development_dependency 'azure_mgmt_resources', '~> 0.
|
32
|
+
spec.add_development_dependency 'azure_mgmt_resources', '~> 0.3'
|
33
33
|
|
34
|
-
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.
|
34
|
+
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.3'
|
35
35
|
end
|
@@ -1,36 +1,36 @@
|
|
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
|
module Models
|
8
8
|
#
|
9
|
-
# Description of a
|
9
|
+
# Description of a NotificationHub Resource.
|
10
10
|
#
|
11
11
|
class NotificationHubResource
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] Gets or sets the id of the created
|
15
|
+
# @return [String] Gets or sets the id of the created NotificationHub.
|
16
16
|
attr_accessor :id
|
17
17
|
|
18
18
|
# @return [String] Gets or sets datacenter location of the
|
19
|
-
#
|
19
|
+
# NotificationHub.
|
20
20
|
attr_accessor :location
|
21
21
|
|
22
|
-
# @return [String] Gets or sets name of the
|
22
|
+
# @return [String] Gets or sets name of the NotificationHub.
|
23
23
|
attr_accessor :name
|
24
24
|
|
25
|
-
# @return [String] Gets or sets resource type of the
|
25
|
+
# @return [String] Gets or sets resource type of the NotificationHub.
|
26
26
|
attr_accessor :type
|
27
27
|
|
28
28
|
# @return [Hash{String => String}] Gets or sets tags of the
|
29
|
-
#
|
29
|
+
# NotificationHub.
|
30
30
|
attr_accessor :tags
|
31
31
|
|
32
32
|
# @return [NotificationHubProperties] Gets or sets properties of the
|
33
|
-
#
|
33
|
+
# NotificationHub.
|
34
34
|
attr_accessor :properties
|
35
35
|
|
36
36
|
#
|
@@ -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 Namespaces
|
11
11
|
include Azure::ARM::NotificationHubs::Models
|
@@ -28,13 +28,43 @@ module Azure::ARM::NotificationHubs
|
|
28
28
|
# based on the service namespace name.
|
29
29
|
#
|
30
30
|
# @param parameters [CheckAvailabilityParameters] The namespace 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(parameters, custom_headers = nil)
|
37
|
+
response = check_availability_async(parameters, custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Checks the availability of the given service namespace across all Windows
|
43
|
+
# Azure subscriptions. This is useful because the domain name is created
|
44
|
+
# based on the service namespace name.
|
45
|
+
#
|
46
|
+
# @param parameters [CheckAvailabilityParameters] The namespace 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(parameters, custom_headers = nil)
|
53
|
+
check_availability_async(parameters, custom_headers).value!
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Checks the availability of the given service namespace across all Windows
|
58
|
+
# Azure subscriptions. This is useful because the domain name is created
|
59
|
+
# based on the service namespace name.
|
60
|
+
#
|
61
|
+
# @param parameters [CheckAvailabilityParameters] The namespace 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(parameters, custom_headers = nil)
|
38
68
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
39
69
|
parameters.validate unless parameters.nil?
|
40
70
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -50,7 +80,7 @@ module Azure::ARM::NotificationHubs
|
|
50
80
|
unless parameters.nil?
|
51
81
|
parameters = CheckAvailabilityParameters.serialize_object(parameters)
|
52
82
|
end
|
53
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
83
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
54
84
|
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability'
|
55
85
|
options = {
|
56
86
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -59,7 +89,10 @@ module Azure::ARM::NotificationHubs
|
|
59
89
|
body: request_content,
|
60
90
|
headers: request_headers.merge(custom_headers || {})
|
61
91
|
}
|
62
|
-
|
92
|
+
|
93
|
+
request_url = @base_url || @client.base_url
|
94
|
+
|
95
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
63
96
|
promise = request.run_promise do |req|
|
64
97
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
65
98
|
end
|
@@ -101,14 +134,48 @@ module Azure::ARM::NotificationHubs
|
|
101
134
|
# @param resource_group_name [String] The name of the resource group.
|
102
135
|
# @param namespace_name [String] The namespace name.
|
103
136
|
# @param parameters [NamespaceCreateOrUpdateParameters] Parameters supplied to
|
104
|
-
#
|
105
|
-
# @param [Hash{String => String}]
|
106
|
-
#
|
137
|
+
# create a Namespace Resource.
|
138
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
139
|
+
# will be added to the HTTP request.
|
107
140
|
#
|
108
|
-
# @return [
|
109
|
-
# response.
|
141
|
+
# @return [NamespaceResource] operation results.
|
110
142
|
#
|
111
143
|
def create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil)
|
144
|
+
response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
145
|
+
response.body unless response.nil?
|
146
|
+
end
|
147
|
+
|
148
|
+
#
|
149
|
+
# Creates/Updates a service namespace. Once created, this namespace's resource
|
150
|
+
# manifest is immutable. This operation is idempotent.
|
151
|
+
#
|
152
|
+
# @param resource_group_name [String] The name of the resource group.
|
153
|
+
# @param namespace_name [String] The namespace name.
|
154
|
+
# @param parameters [NamespaceCreateOrUpdateParameters] Parameters supplied to
|
155
|
+
# create a Namespace Resource.
|
156
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
157
|
+
# will be added to the HTTP request.
|
158
|
+
#
|
159
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
160
|
+
#
|
161
|
+
def create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil)
|
162
|
+
create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value!
|
163
|
+
end
|
164
|
+
|
165
|
+
#
|
166
|
+
# Creates/Updates a service namespace. Once created, this namespace's resource
|
167
|
+
# manifest is immutable. This operation is idempotent.
|
168
|
+
#
|
169
|
+
# @param resource_group_name [String] The name of the resource group.
|
170
|
+
# @param namespace_name [String] The namespace name.
|
171
|
+
# @param parameters [NamespaceCreateOrUpdateParameters] Parameters supplied to
|
172
|
+
# create a Namespace Resource.
|
173
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
174
|
+
# to the HTTP request.
|
175
|
+
#
|
176
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
177
|
+
#
|
178
|
+
def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil)
|
112
179
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
113
180
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
114
181
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -126,7 +193,7 @@ module Azure::ARM::NotificationHubs
|
|
126
193
|
unless parameters.nil?
|
127
194
|
parameters = NamespaceCreateOrUpdateParameters.serialize_object(parameters)
|
128
195
|
end
|
129
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
196
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
130
197
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}'
|
131
198
|
options = {
|
132
199
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -135,7 +202,10 @@ module Azure::ARM::NotificationHubs
|
|
135
202
|
body: request_content,
|
136
203
|
headers: request_headers.merge(custom_headers || {})
|
137
204
|
}
|
138
|
-
|
205
|
+
|
206
|
+
request_url = @base_url || @client.base_url
|
207
|
+
|
208
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
139
209
|
promise = request.run_promise do |req|
|
140
210
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
141
211
|
end
|
@@ -193,7 +263,7 @@ module Azure::ARM::NotificationHubs
|
|
193
263
|
#
|
194
264
|
def delete(resource_group_name, namespace_name, custom_headers = nil)
|
195
265
|
# Send request
|
196
|
-
promise =
|
266
|
+
promise = begin_delete_async(resource_group_name, namespace_name, custom_headers)
|
197
267
|
|
198
268
|
promise = promise.then do |response|
|
199
269
|
# Defining deserialization method.
|
@@ -201,7 +271,7 @@ module Azure::ARM::NotificationHubs
|
|
201
271
|
end
|
202
272
|
|
203
273
|
# Waiting for response.
|
204
|
-
@client.
|
274
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
205
275
|
end
|
206
276
|
|
207
277
|
promise
|
@@ -213,13 +283,42 @@ module Azure::ARM::NotificationHubs
|
|
213
283
|
#
|
214
284
|
# @param resource_group_name [String] The name of the resource group.
|
215
285
|
# @param namespace_name [String] The namespace name.
|
216
|
-
# @param [Hash{String => String}]
|
217
|
-
#
|
286
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
287
|
+
# will be added to the HTTP request.
|
218
288
|
#
|
219
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
220
|
-
# response.
|
221
289
|
#
|
222
290
|
def begin_delete(resource_group_name, namespace_name, custom_headers = nil)
|
291
|
+
response = begin_delete_async(resource_group_name, namespace_name, custom_headers).value!
|
292
|
+
nil
|
293
|
+
end
|
294
|
+
|
295
|
+
#
|
296
|
+
# Deletes an existing namespace. This operation also removes all associated
|
297
|
+
# notificationHubs under the namespace.
|
298
|
+
#
|
299
|
+
# @param resource_group_name [String] The name of the resource group.
|
300
|
+
# @param namespace_name [String] The namespace name.
|
301
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
302
|
+
# will be added to the HTTP request.
|
303
|
+
#
|
304
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
305
|
+
#
|
306
|
+
def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
|
307
|
+
begin_delete_async(resource_group_name, namespace_name, custom_headers).value!
|
308
|
+
end
|
309
|
+
|
310
|
+
#
|
311
|
+
# Deletes an existing namespace. This operation also removes all associated
|
312
|
+
# notificationHubs under the namespace.
|
313
|
+
#
|
314
|
+
# @param resource_group_name [String] The name of the resource group.
|
315
|
+
# @param namespace_name [String] The namespace name.
|
316
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
317
|
+
# to the HTTP request.
|
318
|
+
#
|
319
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
320
|
+
#
|
321
|
+
def begin_delete_async(resource_group_name, namespace_name, custom_headers = nil)
|
223
322
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
224
323
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
225
324
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -236,7 +335,10 @@ module Azure::ARM::NotificationHubs
|
|
236
335
|
query_params: {'api-version' => @client.api_version},
|
237
336
|
headers: request_headers.merge(custom_headers || {})
|
238
337
|
}
|
239
|
-
|
338
|
+
|
339
|
+
request_url = @base_url || @client.base_url
|
340
|
+
|
341
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
240
342
|
promise = request.run_promise do |req|
|
241
343
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
242
344
|
end
|
@@ -264,13 +366,41 @@ module Azure::ARM::NotificationHubs
|
|
264
366
|
#
|
265
367
|
# @param resource_group_name [String] The name of the resource group.
|
266
368
|
# @param namespace_name [String] The namespace name.
|
267
|
-
# @param [Hash{String => String}]
|
268
|
-
#
|
369
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
370
|
+
# will be added to the HTTP request.
|
269
371
|
#
|
270
|
-
# @return [
|
271
|
-
# response.
|
372
|
+
# @return [NamespaceResource] operation results.
|
272
373
|
#
|
273
374
|
def get(resource_group_name, namespace_name, custom_headers = nil)
|
375
|
+
response = get_async(resource_group_name, namespace_name, custom_headers).value!
|
376
|
+
response.body unless response.nil?
|
377
|
+
end
|
378
|
+
|
379
|
+
#
|
380
|
+
# Returns the description for the specified namespace.
|
381
|
+
#
|
382
|
+
# @param resource_group_name [String] The name of the resource group.
|
383
|
+
# @param namespace_name [String] The namespace name.
|
384
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
385
|
+
# will be added to the HTTP request.
|
386
|
+
#
|
387
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
388
|
+
#
|
389
|
+
def get_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
|
390
|
+
get_async(resource_group_name, namespace_name, custom_headers).value!
|
391
|
+
end
|
392
|
+
|
393
|
+
#
|
394
|
+
# Returns the description for the specified namespace.
|
395
|
+
#
|
396
|
+
# @param resource_group_name [String] The name of the resource group.
|
397
|
+
# @param namespace_name [String] The namespace name.
|
398
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
399
|
+
# to the HTTP request.
|
400
|
+
#
|
401
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
402
|
+
#
|
403
|
+
def get_async(resource_group_name, namespace_name, custom_headers = nil)
|
274
404
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
275
405
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
276
406
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -287,7 +417,10 @@ module Azure::ARM::NotificationHubs
|
|
287
417
|
query_params: {'api-version' => @client.api_version},
|
288
418
|
headers: request_headers.merge(custom_headers || {})
|
289
419
|
}
|
290
|
-
|
420
|
+
|
421
|
+
request_url = @base_url || @client.base_url
|
422
|
+
|
423
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
291
424
|
promise = request.run_promise do |req|
|
292
425
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
293
426
|
end
|
@@ -323,22 +456,54 @@ module Azure::ARM::NotificationHubs
|
|
323
456
|
end
|
324
457
|
|
325
458
|
#
|
326
|
-
#
|
327
|
-
# rule for a namespace
|
459
|
+
# Creates an authorization rule for a namespace
|
328
460
|
#
|
329
461
|
# @param resource_group_name [String] The name of the resource group.
|
330
462
|
# @param namespace_name [String] The namespace name.
|
331
|
-
# @param authorization_rule_name [String]
|
332
|
-
# name.
|
463
|
+
# @param authorization_rule_name [String] Aauthorization Rule Name.
|
333
464
|
# @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters]
|
334
465
|
# The shared access authorization rule.
|
335
|
-
# @param [Hash{String => String}]
|
336
|
-
#
|
466
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
467
|
+
# will be added to the HTTP request.
|
337
468
|
#
|
338
|
-
# @return [
|
339
|
-
# response.
|
469
|
+
# @return [SharedAccessAuthorizationRuleResource] operation results.
|
340
470
|
#
|
341
471
|
def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
|
472
|
+
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
473
|
+
response.body unless response.nil?
|
474
|
+
end
|
475
|
+
|
476
|
+
#
|
477
|
+
# Creates an authorization rule for a namespace
|
478
|
+
#
|
479
|
+
# @param resource_group_name [String] The name of the resource group.
|
480
|
+
# @param namespace_name [String] The namespace name.
|
481
|
+
# @param authorization_rule_name [String] Aauthorization Rule Name.
|
482
|
+
# @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters]
|
483
|
+
# The shared access authorization rule.
|
484
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
485
|
+
# will be added to the HTTP request.
|
486
|
+
#
|
487
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
488
|
+
#
|
489
|
+
def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
|
490
|
+
create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value!
|
491
|
+
end
|
492
|
+
|
493
|
+
#
|
494
|
+
# Creates an authorization rule for a namespace
|
495
|
+
#
|
496
|
+
# @param resource_group_name [String] The name of the resource group.
|
497
|
+
# @param namespace_name [String] The namespace name.
|
498
|
+
# @param authorization_rule_name [String] Aauthorization Rule Name.
|
499
|
+
# @param parameters [SharedAccessAuthorizationRuleCreateOrUpdateParameters]
|
500
|
+
# The shared access authorization rule.
|
501
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
502
|
+
# to the HTTP request.
|
503
|
+
#
|
504
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
505
|
+
#
|
506
|
+
def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
|
342
507
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
343
508
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
344
509
|
fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
|
@@ -357,7 +522,7 @@ module Azure::ARM::NotificationHubs
|
|
357
522
|
unless parameters.nil?
|
358
523
|
parameters = SharedAccessAuthorizationRuleCreateOrUpdateParameters.serialize_object(parameters)
|
359
524
|
end
|
360
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
525
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
361
526
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}'
|
362
527
|
options = {
|
363
528
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -366,7 +531,10 @@ module Azure::ARM::NotificationHubs
|
|
366
531
|
body: request_content,
|
367
532
|
headers: request_headers.merge(custom_headers || {})
|
368
533
|
}
|
369
|
-
|
534
|
+
|
535
|
+
request_url = @base_url || @client.base_url
|
536
|
+
|
537
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
370
538
|
promise = request.run_promise do |req|
|
371
539
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
372
540
|
end
|
@@ -402,19 +570,47 @@ module Azure::ARM::NotificationHubs
|
|
402
570
|
end
|
403
571
|
|
404
572
|
#
|
405
|
-
#
|
573
|
+
# Deletes a namespace authorization rule
|
406
574
|
#
|
407
575
|
# @param resource_group_name [String] The name of the resource group.
|
408
576
|
# @param namespace_name [String] The namespace name.
|
409
|
-
# @param authorization_rule_name [String]
|
410
|
-
#
|
411
|
-
#
|
412
|
-
# applied to HTTP request.
|
577
|
+
# @param authorization_rule_name [String] Authorization Rule Name.
|
578
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
579
|
+
# will be added to the HTTP request.
|
413
580
|
#
|
414
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
415
|
-
# response.
|
416
581
|
#
|
417
582
|
def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
|
583
|
+
response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
584
|
+
nil
|
585
|
+
end
|
586
|
+
|
587
|
+
#
|
588
|
+
# Deletes a namespace authorization rule
|
589
|
+
#
|
590
|
+
# @param resource_group_name [String] The name of the resource group.
|
591
|
+
# @param namespace_name [String] The namespace name.
|
592
|
+
# @param authorization_rule_name [String] Authorization Rule Name.
|
593
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
594
|
+
# will be added to the HTTP request.
|
595
|
+
#
|
596
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
597
|
+
#
|
598
|
+
def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
|
599
|
+
delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
600
|
+
end
|
601
|
+
|
602
|
+
#
|
603
|
+
# Deletes a namespace authorization rule
|
604
|
+
#
|
605
|
+
# @param resource_group_name [String] The name of the resource group.
|
606
|
+
# @param namespace_name [String] The namespace name.
|
607
|
+
# @param authorization_rule_name [String] Authorization Rule Name.
|
608
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
609
|
+
# to the HTTP request.
|
610
|
+
#
|
611
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
612
|
+
#
|
613
|
+
def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
|
418
614
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
419
615
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
420
616
|
fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
|
@@ -432,7 +628,10 @@ module Azure::ARM::NotificationHubs
|
|
432
628
|
query_params: {'api-version' => @client.api_version},
|
433
629
|
headers: request_headers.merge(custom_headers || {})
|
434
630
|
}
|
435
|
-
|
631
|
+
|
632
|
+
request_url = @base_url || @client.base_url
|
633
|
+
|
634
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
436
635
|
promise = request.run_promise do |req|
|
437
636
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
438
637
|
end
|
@@ -456,21 +655,48 @@ module Azure::ARM::NotificationHubs
|
|
456
655
|
end
|
457
656
|
|
458
657
|
#
|
459
|
-
#
|
460
|
-
# namespace by name.
|
658
|
+
# Gets an authorization rule for a namespace by name.
|
461
659
|
#
|
462
660
|
# @param resource_group_name [String] The name of the resource group.
|
463
|
-
# @param namespace_name [String] The namespace
|
464
|
-
#
|
465
|
-
# @param
|
466
|
-
#
|
467
|
-
#
|
468
|
-
#
|
469
|
-
#
|
470
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
471
|
-
# response.
|
661
|
+
# @param namespace_name [String] The namespace name
|
662
|
+
# @param authorization_rule_name [String] Authorization rule name.
|
663
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
664
|
+
# will be added to the HTTP request.
|
665
|
+
#
|
666
|
+
# @return [SharedAccessAuthorizationRuleResource] operation results.
|
472
667
|
#
|
473
668
|
def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
|
669
|
+
response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
670
|
+
response.body unless response.nil?
|
671
|
+
end
|
672
|
+
|
673
|
+
#
|
674
|
+
# Gets an authorization rule for a namespace by name.
|
675
|
+
#
|
676
|
+
# @param resource_group_name [String] The name of the resource group.
|
677
|
+
# @param namespace_name [String] The namespace name
|
678
|
+
# @param authorization_rule_name [String] Authorization rule name.
|
679
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
680
|
+
# will be added to the HTTP request.
|
681
|
+
#
|
682
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
683
|
+
#
|
684
|
+
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
|
685
|
+
get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
686
|
+
end
|
687
|
+
|
688
|
+
#
|
689
|
+
# Gets an authorization rule for a namespace by name.
|
690
|
+
#
|
691
|
+
# @param resource_group_name [String] The name of the resource group.
|
692
|
+
# @param namespace_name [String] The namespace name
|
693
|
+
# @param authorization_rule_name [String] Authorization rule name.
|
694
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
695
|
+
# to the HTTP request.
|
696
|
+
#
|
697
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
698
|
+
#
|
699
|
+
def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
|
474
700
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
475
701
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
476
702
|
fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
|
@@ -488,7 +714,10 @@ module Azure::ARM::NotificationHubs
|
|
488
714
|
query_params: {'api-version' => @client.api_version},
|
489
715
|
headers: request_headers.merge(custom_headers || {})
|
490
716
|
}
|
491
|
-
|
717
|
+
|
718
|
+
request_url = @base_url || @client.base_url
|
719
|
+
|
720
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
492
721
|
promise = request.run_promise do |req|
|
493
722
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
494
723
|
end
|
@@ -531,15 +760,47 @@ module Azure::ARM::NotificationHubs
|
|
531
760
|
#
|
532
761
|
# @param operation_status_link [String] Location value returned by the Begin
|
533
762
|
# operation.
|
534
|
-
# @param [Hash{String => String}]
|
535
|
-
#
|
763
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
764
|
+
# will be added to the HTTP request.
|
536
765
|
#
|
537
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
538
|
-
# response.
|
539
766
|
#
|
540
767
|
def get_long_running_operation_status(operation_status_link, custom_headers = nil)
|
768
|
+
response = get_long_running_operation_status_async(operation_status_link, custom_headers).value!
|
769
|
+
nil
|
770
|
+
end
|
771
|
+
|
772
|
+
#
|
773
|
+
# The Get Operation Status operation returns the status of the specified
|
774
|
+
# operation. After calling an asynchronous operation, you can call Get
|
775
|
+
# Operation Status to determine whether the operation has succeeded, failed,
|
776
|
+
# or is still in progress.
|
777
|
+
#
|
778
|
+
# @param operation_status_link [String] Location value returned by the Begin
|
779
|
+
# operation.
|
780
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
781
|
+
# will be added to the HTTP request.
|
782
|
+
#
|
783
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
784
|
+
#
|
785
|
+
def get_long_running_operation_status_with_http_info(operation_status_link, custom_headers = nil)
|
786
|
+
get_long_running_operation_status_async(operation_status_link, custom_headers).value!
|
787
|
+
end
|
788
|
+
|
789
|
+
#
|
790
|
+
# The Get Operation Status operation returns the status of the specified
|
791
|
+
# operation. After calling an asynchronous operation, you can call Get
|
792
|
+
# Operation Status to determine whether the operation has succeeded, failed,
|
793
|
+
# or is still in progress.
|
794
|
+
#
|
795
|
+
# @param operation_status_link [String] Location value returned by the Begin
|
796
|
+
# operation.
|
797
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
798
|
+
# to the HTTP request.
|
799
|
+
#
|
800
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
801
|
+
#
|
802
|
+
def get_long_running_operation_status_async(operation_status_link, custom_headers = nil)
|
541
803
|
fail ArgumentError, 'operation_status_link is nil' if operation_status_link.nil?
|
542
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
543
804
|
request_headers = {}
|
544
805
|
|
545
806
|
# Set Headers
|
@@ -548,11 +809,13 @@ module Azure::ARM::NotificationHubs
|
|
548
809
|
path_template = '/{operationStatusLink}'
|
549
810
|
options = {
|
550
811
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
551
|
-
path_params: {'subscriptionId' => @client.subscription_id},
|
552
812
|
skip_encoding_path_params: {'operationStatusLink' => operation_status_link},
|
553
813
|
headers: request_headers.merge(custom_headers || {})
|
554
814
|
}
|
555
|
-
|
815
|
+
|
816
|
+
request_url = @base_url || @client.base_url
|
817
|
+
|
818
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
556
819
|
promise = request.run_promise do |req|
|
557
820
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
558
821
|
end
|
@@ -581,13 +844,43 @@ module Azure::ARM::NotificationHubs
|
|
581
844
|
# @param resource_group_name [String] The name of the resource group. If
|
582
845
|
# resourceGroupName value is null the method lists all the namespaces within
|
583
846
|
# subscription
|
584
|
-
# @param [Hash{String => String}]
|
585
|
-
#
|
847
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
848
|
+
# will be added to the HTTP request.
|
586
849
|
#
|
587
|
-
# @return [
|
588
|
-
# response.
|
850
|
+
# @return [NamespaceListResult] operation results.
|
589
851
|
#
|
590
852
|
def list(resource_group_name, custom_headers = nil)
|
853
|
+
response = list_async(resource_group_name, custom_headers).value!
|
854
|
+
response.body unless response.nil?
|
855
|
+
end
|
856
|
+
|
857
|
+
#
|
858
|
+
# Lists the available namespaces within a resourceGroup.
|
859
|
+
#
|
860
|
+
# @param resource_group_name [String] The name of the resource group. If
|
861
|
+
# resourceGroupName value is null the method lists all the namespaces within
|
862
|
+
# subscription
|
863
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
864
|
+
# will be added to the HTTP request.
|
865
|
+
#
|
866
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
867
|
+
#
|
868
|
+
def list_with_http_info(resource_group_name, custom_headers = nil)
|
869
|
+
list_async(resource_group_name, custom_headers).value!
|
870
|
+
end
|
871
|
+
|
872
|
+
#
|
873
|
+
# Lists the available namespaces within a resourceGroup.
|
874
|
+
#
|
875
|
+
# @param resource_group_name [String] The name of the resource group. If
|
876
|
+
# resourceGroupName value is null the method lists all the namespaces within
|
877
|
+
# subscription
|
878
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
879
|
+
# to the HTTP request.
|
880
|
+
#
|
881
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
882
|
+
#
|
883
|
+
def list_async(resource_group_name, custom_headers = nil)
|
591
884
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
592
885
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
593
886
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -603,7 +896,10 @@ module Azure::ARM::NotificationHubs
|
|
603
896
|
query_params: {'api-version' => @client.api_version},
|
604
897
|
headers: request_headers.merge(custom_headers || {})
|
605
898
|
}
|
606
|
-
|
899
|
+
|
900
|
+
request_url = @base_url || @client.base_url
|
901
|
+
|
902
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
607
903
|
promise = request.run_promise do |req|
|
608
904
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
609
905
|
end
|
@@ -642,13 +938,39 @@ module Azure::ARM::NotificationHubs
|
|
642
938
|
# Lists all the available namespaces within the subscription irrespective of
|
643
939
|
# the resourceGroups.
|
644
940
|
#
|
645
|
-
# @param [Hash{String => String}]
|
646
|
-
#
|
941
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
942
|
+
# will be added to the HTTP request.
|
647
943
|
#
|
648
|
-
# @return [
|
649
|
-
# response.
|
944
|
+
# @return [NamespaceListResult] operation results.
|
650
945
|
#
|
651
946
|
def list_all(custom_headers = nil)
|
947
|
+
response = list_all_async(custom_headers).value!
|
948
|
+
response.body unless response.nil?
|
949
|
+
end
|
950
|
+
|
951
|
+
#
|
952
|
+
# Lists all the available namespaces within the subscription irrespective of
|
953
|
+
# the resourceGroups.
|
954
|
+
#
|
955
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
956
|
+
# will be added to the HTTP request.
|
957
|
+
#
|
958
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
959
|
+
#
|
960
|
+
def list_all_with_http_info(custom_headers = nil)
|
961
|
+
list_all_async(custom_headers).value!
|
962
|
+
end
|
963
|
+
|
964
|
+
#
|
965
|
+
# Lists all the available namespaces within the subscription irrespective of
|
966
|
+
# the resourceGroups.
|
967
|
+
#
|
968
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
969
|
+
# to the HTTP request.
|
970
|
+
#
|
971
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
972
|
+
#
|
973
|
+
def list_all_async(custom_headers = nil)
|
652
974
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
653
975
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
654
976
|
request_headers = {}
|
@@ -663,7 +985,10 @@ module Azure::ARM::NotificationHubs
|
|
663
985
|
query_params: {'api-version' => @client.api_version},
|
664
986
|
headers: request_headers.merge(custom_headers || {})
|
665
987
|
}
|
666
|
-
|
988
|
+
|
989
|
+
request_url = @base_url || @client.base_url
|
990
|
+
|
991
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
667
992
|
promise = request.run_promise do |req|
|
668
993
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
669
994
|
end
|
@@ -699,19 +1024,45 @@ module Azure::ARM::NotificationHubs
|
|
699
1024
|
end
|
700
1025
|
|
701
1026
|
#
|
702
|
-
#
|
703
|
-
# namespace.
|
1027
|
+
# Gets the authorization rules for a namespace.
|
704
1028
|
#
|
705
1029
|
# @param resource_group_name [String] The name of the resource group.
|
706
|
-
# @param namespace_name [String] The namespace
|
707
|
-
#
|
708
|
-
#
|
709
|
-
# applied to HTTP request.
|
1030
|
+
# @param namespace_name [String] The namespace name
|
1031
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1032
|
+
# will be added to the HTTP request.
|
710
1033
|
#
|
711
|
-
# @return [
|
712
|
-
# response.
|
1034
|
+
# @return [SharedAccessAuthorizationRuleListResult] operation results.
|
713
1035
|
#
|
714
1036
|
def list_authorization_rules(resource_group_name, namespace_name, custom_headers = nil)
|
1037
|
+
response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value!
|
1038
|
+
response.body unless response.nil?
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
#
|
1042
|
+
# Gets the authorization rules for a namespace.
|
1043
|
+
#
|
1044
|
+
# @param resource_group_name [String] The name of the resource group.
|
1045
|
+
# @param namespace_name [String] The namespace name
|
1046
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1047
|
+
# will be added to the HTTP request.
|
1048
|
+
#
|
1049
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1050
|
+
#
|
1051
|
+
def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
|
1052
|
+
list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value!
|
1053
|
+
end
|
1054
|
+
|
1055
|
+
#
|
1056
|
+
# Gets the authorization rules for a namespace.
|
1057
|
+
#
|
1058
|
+
# @param resource_group_name [String] The name of the resource group.
|
1059
|
+
# @param namespace_name [String] The namespace name
|
1060
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1061
|
+
# to the HTTP request.
|
1062
|
+
#
|
1063
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1064
|
+
#
|
1065
|
+
def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers = nil)
|
715
1066
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
716
1067
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
717
1068
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -728,7 +1079,10 @@ module Azure::ARM::NotificationHubs
|
|
728
1079
|
query_params: {'api-version' => @client.api_version},
|
729
1080
|
headers: request_headers.merge(custom_headers || {})
|
730
1081
|
}
|
731
|
-
|
1082
|
+
|
1083
|
+
request_url = @base_url || @client.base_url
|
1084
|
+
|
1085
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
732
1086
|
promise = request.run_promise do |req|
|
733
1087
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
734
1088
|
end
|
@@ -770,13 +1124,45 @@ module Azure::ARM::NotificationHubs
|
|
770
1124
|
# @param namespace_name [String] The namespace name.
|
771
1125
|
# @param authorization_rule_name [String] The connection string of the
|
772
1126
|
# namespace for the specified authorizationRule.
|
773
|
-
# @param [Hash{String => String}]
|
774
|
-
#
|
1127
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1128
|
+
# will be added to the HTTP request.
|
775
1129
|
#
|
776
|
-
# @return [
|
777
|
-
# response.
|
1130
|
+
# @return [ResourceListKeys] operation results.
|
778
1131
|
#
|
779
1132
|
def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
|
1133
|
+
response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
1134
|
+
response.body unless response.nil?
|
1135
|
+
end
|
1136
|
+
|
1137
|
+
#
|
1138
|
+
# Gets the Primary and Secondary ConnectionStrings to the namespace
|
1139
|
+
#
|
1140
|
+
# @param resource_group_name [String] The name of the resource group.
|
1141
|
+
# @param namespace_name [String] The namespace name.
|
1142
|
+
# @param authorization_rule_name [String] The connection string of the
|
1143
|
+
# namespace for the specified authorizationRule.
|
1144
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1145
|
+
# will be added to the HTTP request.
|
1146
|
+
#
|
1147
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1148
|
+
#
|
1149
|
+
def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
|
1150
|
+
list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value!
|
1151
|
+
end
|
1152
|
+
|
1153
|
+
#
|
1154
|
+
# Gets the Primary and Secondary ConnectionStrings to the namespace
|
1155
|
+
#
|
1156
|
+
# @param resource_group_name [String] The name of the resource group.
|
1157
|
+
# @param namespace_name [String] The namespace name.
|
1158
|
+
# @param authorization_rule_name [String] The connection string of the
|
1159
|
+
# namespace for the specified authorizationRule.
|
1160
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1161
|
+
# to the HTTP request.
|
1162
|
+
#
|
1163
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1164
|
+
#
|
1165
|
+
def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
|
780
1166
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
781
1167
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
782
1168
|
fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
|
@@ -794,7 +1180,10 @@ module Azure::ARM::NotificationHubs
|
|
794
1180
|
query_params: {'api-version' => @client.api_version},
|
795
1181
|
headers: request_headers.merge(custom_headers || {})
|
796
1182
|
}
|
797
|
-
|
1183
|
+
|
1184
|
+
request_url = @base_url || @client.base_url
|
1185
|
+
|
1186
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
798
1187
|
promise = request.run_promise do |req|
|
799
1188
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
800
1189
|
end
|
@@ -834,13 +1223,41 @@ module Azure::ARM::NotificationHubs
|
|
834
1223
|
#
|
835
1224
|
# @param next_page_link [String] The NextLink from the previous successful
|
836
1225
|
# call to List operation.
|
837
|
-
# @param [Hash{String => String}]
|
838
|
-
#
|
1226
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1227
|
+
# will be added to the HTTP request.
|
839
1228
|
#
|
840
|
-
# @return [
|
841
|
-
# response.
|
1229
|
+
# @return [NamespaceListResult] operation results.
|
842
1230
|
#
|
843
1231
|
def list_next(next_page_link, custom_headers = nil)
|
1232
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
1233
|
+
response.body unless response.nil?
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
#
|
1237
|
+
# Lists the available namespaces within a resourceGroup.
|
1238
|
+
#
|
1239
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1240
|
+
# call to List operation.
|
1241
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1242
|
+
# will be added to the HTTP request.
|
1243
|
+
#
|
1244
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1245
|
+
#
|
1246
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
1247
|
+
list_next_async(next_page_link, custom_headers).value!
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
#
|
1251
|
+
# Lists the available namespaces within a resourceGroup.
|
1252
|
+
#
|
1253
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1254
|
+
# call to List operation.
|
1255
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1256
|
+
# to the HTTP request.
|
1257
|
+
#
|
1258
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1259
|
+
#
|
1260
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
844
1261
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
845
1262
|
request_headers = {}
|
846
1263
|
|
@@ -853,7 +1270,10 @@ module Azure::ARM::NotificationHubs
|
|
853
1270
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
854
1271
|
headers: request_headers.merge(custom_headers || {})
|
855
1272
|
}
|
856
|
-
|
1273
|
+
|
1274
|
+
request_url = @base_url || @client.base_url
|
1275
|
+
|
1276
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
857
1277
|
promise = request.run_promise do |req|
|
858
1278
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
859
1279
|
end
|
@@ -894,13 +1314,43 @@ module Azure::ARM::NotificationHubs
|
|
894
1314
|
#
|
895
1315
|
# @param next_page_link [String] The NextLink from the previous successful
|
896
1316
|
# call to List operation.
|
897
|
-
# @param [Hash{String => String}]
|
898
|
-
#
|
1317
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1318
|
+
# will be added to the HTTP request.
|
899
1319
|
#
|
900
|
-
# @return [
|
901
|
-
# response.
|
1320
|
+
# @return [NamespaceListResult] operation results.
|
902
1321
|
#
|
903
1322
|
def list_all_next(next_page_link, custom_headers = nil)
|
1323
|
+
response = list_all_next_async(next_page_link, custom_headers).value!
|
1324
|
+
response.body unless response.nil?
|
1325
|
+
end
|
1326
|
+
|
1327
|
+
#
|
1328
|
+
# Lists all the available namespaces within the subscription irrespective of
|
1329
|
+
# the resourceGroups.
|
1330
|
+
#
|
1331
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1332
|
+
# call to List operation.
|
1333
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1334
|
+
# will be added to the HTTP request.
|
1335
|
+
#
|
1336
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1337
|
+
#
|
1338
|
+
def list_all_next_with_http_info(next_page_link, custom_headers = nil)
|
1339
|
+
list_all_next_async(next_page_link, custom_headers).value!
|
1340
|
+
end
|
1341
|
+
|
1342
|
+
#
|
1343
|
+
# Lists all the available namespaces within the subscription irrespective of
|
1344
|
+
# the resourceGroups.
|
1345
|
+
#
|
1346
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1347
|
+
# call to List operation.
|
1348
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1349
|
+
# to the HTTP request.
|
1350
|
+
#
|
1351
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1352
|
+
#
|
1353
|
+
def list_all_next_async(next_page_link, custom_headers = nil)
|
904
1354
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
905
1355
|
request_headers = {}
|
906
1356
|
|
@@ -913,7 +1363,10 @@ module Azure::ARM::NotificationHubs
|
|
913
1363
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
914
1364
|
headers: request_headers.merge(custom_headers || {})
|
915
1365
|
}
|
916
|
-
|
1366
|
+
|
1367
|
+
request_url = @base_url || @client.base_url
|
1368
|
+
|
1369
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
917
1370
|
promise = request.run_promise do |req|
|
918
1371
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
919
1372
|
end
|
@@ -949,18 +1402,45 @@ module Azure::ARM::NotificationHubs
|
|
949
1402
|
end
|
950
1403
|
|
951
1404
|
#
|
952
|
-
#
|
953
|
-
# namespace.
|
1405
|
+
# Gets the authorization rules for a namespace.
|
954
1406
|
#
|
955
1407
|
# @param next_page_link [String] The NextLink from the previous successful
|
956
1408
|
# call to List operation.
|
957
|
-
# @param [Hash{String => String}]
|
958
|
-
#
|
1409
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1410
|
+
# will be added to the HTTP request.
|
959
1411
|
#
|
960
|
-
# @return [
|
961
|
-
# response.
|
1412
|
+
# @return [SharedAccessAuthorizationRuleListResult] operation results.
|
962
1413
|
#
|
963
1414
|
def list_authorization_rules_next(next_page_link, custom_headers = nil)
|
1415
|
+
response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1416
|
+
response.body unless response.nil?
|
1417
|
+
end
|
1418
|
+
|
1419
|
+
#
|
1420
|
+
# Gets the authorization rules for a namespace.
|
1421
|
+
#
|
1422
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1423
|
+
# call to List operation.
|
1424
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1425
|
+
# will be added to the HTTP request.
|
1426
|
+
#
|
1427
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1428
|
+
#
|
1429
|
+
def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil)
|
1430
|
+
list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
#
|
1434
|
+
# Gets the authorization rules for a namespace.
|
1435
|
+
#
|
1436
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
1437
|
+
# call to List operation.
|
1438
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1439
|
+
# to the HTTP request.
|
1440
|
+
#
|
1441
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1442
|
+
#
|
1443
|
+
def list_authorization_rules_next_async(next_page_link, custom_headers = nil)
|
964
1444
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
965
1445
|
request_headers = {}
|
966
1446
|
|
@@ -973,7 +1453,10 @@ module Azure::ARM::NotificationHubs
|
|
973
1453
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
974
1454
|
headers: request_headers.merge(custom_headers || {})
|
975
1455
|
}
|
976
|
-
|
1456
|
+
|
1457
|
+
request_url = @base_url || @client.base_url
|
1458
|
+
|
1459
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
977
1460
|
promise = request.run_promise do |req|
|
978
1461
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
979
1462
|
end
|