azure_mgmt_service_bus 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_service_bus.rb +35 -20
- data/lib/generated/azure_mgmt_service_bus/models/{resource_list_keys.rb → access_keys.rb} +11 -5
- data/lib/generated/azure_mgmt_service_bus/models/access_rights.rb +1 -1
- data/lib/generated/azure_mgmt_service_bus/models/action.rb +69 -0
- data/lib/generated/azure_mgmt_service_bus/models/authorization_rule_properties.rb +53 -0
- data/lib/generated/azure_mgmt_service_bus/models/check_name_availability.rb +48 -0
- data/lib/generated/azure_mgmt_service_bus/models/check_name_availability_result.rb +72 -0
- data/lib/generated/azure_mgmt_service_bus/models/correlation_filter.rb +127 -0
- data/lib/generated/azure_mgmt_service_bus/models/entity_status.rb +5 -5
- data/lib/generated/azure_mgmt_service_bus/models/error_response.rb +56 -0
- data/lib/generated/azure_mgmt_service_bus/models/filter_type.rb +16 -0
- data/lib/generated/azure_mgmt_service_bus/models/{policykey.rb → key_type.rb} +3 -3
- data/lib/generated/azure_mgmt_service_bus/models/message_count_details.rb +9 -8
- data/lib/generated/azure_mgmt_service_bus/models/operation.rb +57 -0
- data/lib/generated/azure_mgmt_service_bus/models/operation_display.rb +69 -0
- data/lib/generated/azure_mgmt_service_bus/models/operation_list_result.rb +99 -0
- data/lib/generated/azure_mgmt_service_bus/models/regenerate_access_key_parameters.rb +59 -0
- data/lib/generated/azure_mgmt_service_bus/models/resource_namespace_patch.rb +86 -0
- data/lib/generated/azure_mgmt_service_bus/models/rule.rb +107 -0
- data/lib/generated/azure_mgmt_service_bus/models/rule_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_service_bus/models/{shared_access_authorization_rule_resource.rb → sbauthorization_rule.rb} +7 -27
- data/lib/generated/azure_mgmt_service_bus/models/{shared_access_authorization_rule_list_result.rb → sbauthorization_rule_list_result.rb} +12 -13
- data/lib/generated/azure_mgmt_service_bus/models/{namespace_resource.rb → sbnamespace.rb} +19 -7
- data/lib/generated/azure_mgmt_service_bus/models/{namespace_list_result.rb → sbnamespace_list_result.rb} +11 -11
- data/lib/generated/azure_mgmt_service_bus/models/{namespace_create_or_update_parameters.rb → sbnamespace_update_parameters.rb} +50 -20
- data/lib/generated/azure_mgmt_service_bus/models/{queue_create_or_update_parameters.rb → sbqueue.rb} +119 -133
- data/lib/generated/azure_mgmt_service_bus/models/{queue_list_result.rb → sbqueue_list_result.rb} +11 -10
- data/lib/generated/azure_mgmt_service_bus/models/{sku.rb → sbsku.rb} +14 -10
- data/lib/generated/azure_mgmt_service_bus/models/{subscription_resource.rb → sbsubscription.rb} +74 -92
- data/lib/generated/azure_mgmt_service_bus/models/{subscription_list_result.rb → sbsubscription_list_result.rb} +11 -10
- data/lib/generated/azure_mgmt_service_bus/models/{topic_create_or_update_parameters.rb → sbtopic.rb} +102 -97
- data/lib/generated/azure_mgmt_service_bus/models/{topic_list_result.rb → sbtopic_list_result.rb} +11 -10
- data/lib/generated/azure_mgmt_service_bus/models/sku_name.rb +1 -1
- data/lib/generated/azure_mgmt_service_bus/models/sku_tier.rb +1 -1
- data/lib/generated/azure_mgmt_service_bus/models/sql_filter.rb +72 -0
- data/lib/generated/azure_mgmt_service_bus/models/sql_rule_action.rb +58 -0
- data/lib/generated/azure_mgmt_service_bus/models/tracked_resource.rb +86 -0
- data/lib/generated/azure_mgmt_service_bus/models/unavailable_reason.rb +20 -0
- data/lib/generated/azure_mgmt_service_bus/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_service_bus/namespaces.rb +442 -188
- data/lib/generated/azure_mgmt_service_bus/operations.rb +213 -0
- data/lib/generated/azure_mgmt_service_bus/queues.rb +198 -169
- data/lib/generated/azure_mgmt_service_bus/rules.rb +558 -0
- data/lib/generated/azure_mgmt_service_bus/service_bus_management_client.rb +10 -2
- data/lib/generated/azure_mgmt_service_bus/subscriptions.rb +90 -78
- data/lib/generated/azure_mgmt_service_bus/topics.rb +199 -173
- data/lib/generated/azure_mgmt_service_bus/version.rb +2 -2
- metadata +38 -23
- data/lib/generated/azure_mgmt_service_bus/models/queue_resource.rb +0 -308
- data/lib/generated/azure_mgmt_service_bus/models/regenerate_keys_parameters.rb +0 -46
- data/lib/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb +0 -74
- data/lib/generated/azure_mgmt_service_bus/models/subscription_create_or_update_parameters.rb +0 -213
- data/lib/generated/azure_mgmt_service_bus/models/topic_resource.rb +0 -263
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::ServiceBus
|
|
8
8
|
# Azure Service Bus client
|
9
9
|
#
|
10
10
|
class Topics
|
11
|
-
include Azure::ARM::ServiceBus::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -25,43 +24,46 @@ module Azure::ARM::ServiceBus
|
|
25
24
|
#
|
26
25
|
# Gets all the topics in a namespace.
|
27
26
|
#
|
28
|
-
# @param resource_group_name [String]
|
29
|
-
#
|
27
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
28
|
+
# Azure subscription.
|
29
|
+
# @param namespace_name [String] The namespace name
|
30
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
31
|
# will be added to the HTTP request.
|
32
32
|
#
|
33
|
-
# @return [Array<
|
33
|
+
# @return [Array<SBTopic>] operation results.
|
34
34
|
#
|
35
|
-
def
|
36
|
-
first_page =
|
35
|
+
def list_by_namespace(resource_group_name, namespace_name, custom_headers = nil)
|
36
|
+
first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers)
|
37
37
|
first_page.get_all_items
|
38
38
|
end
|
39
39
|
|
40
40
|
#
|
41
41
|
# Gets all the topics in a namespace.
|
42
42
|
#
|
43
|
-
# @param resource_group_name [String]
|
44
|
-
#
|
43
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
44
|
+
# Azure subscription.
|
45
|
+
# @param namespace_name [String] The namespace name
|
45
46
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
47
|
# will be added to the HTTP request.
|
47
48
|
#
|
48
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
49
50
|
#
|
50
|
-
def
|
51
|
-
|
51
|
+
def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
|
52
|
+
list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
|
52
53
|
end
|
53
54
|
|
54
55
|
#
|
55
56
|
# Gets all the topics in a namespace.
|
56
57
|
#
|
57
|
-
# @param resource_group_name [String]
|
58
|
-
#
|
58
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
59
|
+
# Azure subscription.
|
60
|
+
# @param namespace_name [String] The namespace name
|
59
61
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
60
62
|
# to the HTTP request.
|
61
63
|
#
|
62
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
63
65
|
#
|
64
|
-
def
|
66
|
+
def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil)
|
65
67
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
66
68
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
67
69
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -73,7 +75,7 @@ module Azure::ARM::ServiceBus
|
|
73
75
|
# Set Headers
|
74
76
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
75
77
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
76
|
-
path_template = '
|
78
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics'
|
77
79
|
|
78
80
|
request_url = @base_url || @client.base_url
|
79
81
|
|
@@ -92,7 +94,7 @@ module Azure::ARM::ServiceBus
|
|
92
94
|
response_content = http_response.body
|
93
95
|
unless status_code == 200
|
94
96
|
error_model = JSON.load(response_content)
|
95
|
-
fail
|
97
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
96
98
|
end
|
97
99
|
|
98
100
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -100,8 +102,8 @@ module Azure::ARM::ServiceBus
|
|
100
102
|
if status_code == 200
|
101
103
|
begin
|
102
104
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
103
|
-
result_mapper =
|
104
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
105
|
+
result_mapper = Azure::ARM::ServiceBus::Models::SBTopicListResult.mapper()
|
106
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
105
107
|
rescue Exception => e
|
106
108
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
107
109
|
end
|
@@ -116,15 +118,15 @@ module Azure::ARM::ServiceBus
|
|
116
118
|
#
|
117
119
|
# Creates a topic in the specified namespace.
|
118
120
|
#
|
119
|
-
# @param resource_group_name [String]
|
120
|
-
#
|
121
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
122
|
+
# Azure subscription.
|
123
|
+
# @param namespace_name [String] The namespace name
|
121
124
|
# @param topic_name [String] The topic name.
|
122
|
-
# @param parameters [
|
123
|
-
# create a topic resource.
|
125
|
+
# @param parameters [SBTopic] Parameters supplied to create a topic resource.
|
124
126
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
125
127
|
# will be added to the HTTP request.
|
126
128
|
#
|
127
|
-
# @return [
|
129
|
+
# @return [SBTopic] operation results.
|
128
130
|
#
|
129
131
|
def create_or_update(resource_group_name, namespace_name, topic_name, parameters, custom_headers = nil)
|
130
132
|
response = create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers).value!
|
@@ -134,11 +136,11 @@ module Azure::ARM::ServiceBus
|
|
134
136
|
#
|
135
137
|
# Creates a topic in the specified namespace.
|
136
138
|
#
|
137
|
-
# @param resource_group_name [String]
|
138
|
-
#
|
139
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
140
|
+
# Azure subscription.
|
141
|
+
# @param namespace_name [String] The namespace name
|
139
142
|
# @param topic_name [String] The topic name.
|
140
|
-
# @param parameters [
|
141
|
-
# create a topic resource.
|
143
|
+
# @param parameters [SBTopic] Parameters supplied to create a topic resource.
|
142
144
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
143
145
|
# will be added to the HTTP request.
|
144
146
|
#
|
@@ -151,11 +153,11 @@ module Azure::ARM::ServiceBus
|
|
151
153
|
#
|
152
154
|
# Creates a topic in the specified namespace.
|
153
155
|
#
|
154
|
-
# @param resource_group_name [String]
|
155
|
-
#
|
156
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
157
|
+
# Azure subscription.
|
158
|
+
# @param namespace_name [String] The namespace name
|
156
159
|
# @param topic_name [String] The topic name.
|
157
|
-
# @param parameters [
|
158
|
-
# create a topic resource.
|
160
|
+
# @param parameters [SBTopic] Parameters supplied to create a topic resource.
|
159
161
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
160
162
|
# to the HTTP request.
|
161
163
|
#
|
@@ -179,11 +181,11 @@ module Azure::ARM::ServiceBus
|
|
179
181
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
180
182
|
|
181
183
|
# Serialize Request
|
182
|
-
request_mapper =
|
183
|
-
request_content = @client.serialize(request_mapper, parameters
|
184
|
+
request_mapper = Azure::ARM::ServiceBus::Models::SBTopic.mapper()
|
185
|
+
request_content = @client.serialize(request_mapper, parameters)
|
184
186
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
185
187
|
|
186
|
-
path_template = '
|
188
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}'
|
187
189
|
|
188
190
|
request_url = @base_url || @client.base_url
|
189
191
|
|
@@ -203,7 +205,7 @@ module Azure::ARM::ServiceBus
|
|
203
205
|
response_content = http_response.body
|
204
206
|
unless status_code == 200
|
205
207
|
error_model = JSON.load(response_content)
|
206
|
-
fail
|
208
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
207
209
|
end
|
208
210
|
|
209
211
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -211,8 +213,8 @@ module Azure::ARM::ServiceBus
|
|
211
213
|
if status_code == 200
|
212
214
|
begin
|
213
215
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
214
|
-
result_mapper =
|
215
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
216
|
+
result_mapper = Azure::ARM::ServiceBus::Models::SBTopic.mapper()
|
217
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
216
218
|
rescue Exception => e
|
217
219
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
218
220
|
end
|
@@ -227,9 +229,10 @@ module Azure::ARM::ServiceBus
|
|
227
229
|
#
|
228
230
|
# Deletes a topic from the specified namespace and resource group.
|
229
231
|
#
|
230
|
-
# @param resource_group_name [String]
|
231
|
-
#
|
232
|
-
# @param
|
232
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
233
|
+
# Azure subscription.
|
234
|
+
# @param namespace_name [String] The namespace name
|
235
|
+
# @param topic_name [String] The topic name.
|
233
236
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
234
237
|
# will be added to the HTTP request.
|
235
238
|
#
|
@@ -242,9 +245,10 @@ module Azure::ARM::ServiceBus
|
|
242
245
|
#
|
243
246
|
# Deletes a topic from the specified namespace and resource group.
|
244
247
|
#
|
245
|
-
# @param resource_group_name [String]
|
246
|
-
#
|
247
|
-
# @param
|
248
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
249
|
+
# Azure subscription.
|
250
|
+
# @param namespace_name [String] The namespace name
|
251
|
+
# @param topic_name [String] The topic name.
|
248
252
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
249
253
|
# will be added to the HTTP request.
|
250
254
|
#
|
@@ -257,9 +261,10 @@ module Azure::ARM::ServiceBus
|
|
257
261
|
#
|
258
262
|
# Deletes a topic from the specified namespace and resource group.
|
259
263
|
#
|
260
|
-
# @param resource_group_name [String]
|
261
|
-
#
|
262
|
-
# @param
|
264
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
265
|
+
# Azure subscription.
|
266
|
+
# @param namespace_name [String] The namespace name
|
267
|
+
# @param topic_name [String] The topic name.
|
263
268
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
264
269
|
# to the HTTP request.
|
265
270
|
#
|
@@ -278,7 +283,7 @@ module Azure::ARM::ServiceBus
|
|
278
283
|
# Set Headers
|
279
284
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
280
285
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
281
|
-
path_template = '
|
286
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}'
|
282
287
|
|
283
288
|
request_url = @base_url || @client.base_url
|
284
289
|
|
@@ -297,7 +302,7 @@ module Azure::ARM::ServiceBus
|
|
297
302
|
response_content = http_response.body
|
298
303
|
unless status_code == 204 || status_code == 200
|
299
304
|
error_model = JSON.load(response_content)
|
300
|
-
fail
|
305
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
301
306
|
end
|
302
307
|
|
303
308
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -311,13 +316,14 @@ module Azure::ARM::ServiceBus
|
|
311
316
|
#
|
312
317
|
# Returns a description for the specified topic.
|
313
318
|
#
|
314
|
-
# @param resource_group_name [String]
|
315
|
-
#
|
319
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
320
|
+
# Azure subscription.
|
321
|
+
# @param namespace_name [String] The namespace name
|
316
322
|
# @param topic_name [String] The topic name.
|
317
323
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
318
324
|
# will be added to the HTTP request.
|
319
325
|
#
|
320
|
-
# @return [
|
326
|
+
# @return [SBTopic] operation results.
|
321
327
|
#
|
322
328
|
def get(resource_group_name, namespace_name, topic_name, custom_headers = nil)
|
323
329
|
response = get_async(resource_group_name, namespace_name, topic_name, custom_headers).value!
|
@@ -327,8 +333,9 @@ module Azure::ARM::ServiceBus
|
|
327
333
|
#
|
328
334
|
# Returns a description for the specified topic.
|
329
335
|
#
|
330
|
-
# @param resource_group_name [String]
|
331
|
-
#
|
336
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
337
|
+
# Azure subscription.
|
338
|
+
# @param namespace_name [String] The namespace name
|
332
339
|
# @param topic_name [String] The topic name.
|
333
340
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
334
341
|
# will be added to the HTTP request.
|
@@ -342,8 +349,9 @@ module Azure::ARM::ServiceBus
|
|
342
349
|
#
|
343
350
|
# Returns a description for the specified topic.
|
344
351
|
#
|
345
|
-
# @param resource_group_name [String]
|
346
|
-
#
|
352
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
353
|
+
# Azure subscription.
|
354
|
+
# @param namespace_name [String] The namespace name
|
347
355
|
# @param topic_name [String] The topic name.
|
348
356
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
349
357
|
# to the HTTP request.
|
@@ -363,7 +371,7 @@ module Azure::ARM::ServiceBus
|
|
363
371
|
# Set Headers
|
364
372
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
365
373
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
366
|
-
path_template = '
|
374
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}'
|
367
375
|
|
368
376
|
request_url = @base_url || @client.base_url
|
369
377
|
|
@@ -382,7 +390,7 @@ module Azure::ARM::ServiceBus
|
|
382
390
|
response_content = http_response.body
|
383
391
|
unless status_code == 200
|
384
392
|
error_model = JSON.load(response_content)
|
385
|
-
fail
|
393
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
386
394
|
end
|
387
395
|
|
388
396
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -390,8 +398,8 @@ module Azure::ARM::ServiceBus
|
|
390
398
|
if status_code == 200
|
391
399
|
begin
|
392
400
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
393
|
-
result_mapper =
|
394
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
401
|
+
result_mapper = Azure::ARM::ServiceBus::Models::SBTopic.mapper()
|
402
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
395
403
|
rescue Exception => e
|
396
404
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
397
405
|
end
|
@@ -406,13 +414,14 @@ module Azure::ARM::ServiceBus
|
|
406
414
|
#
|
407
415
|
# Gets authorization rules for a topic.
|
408
416
|
#
|
409
|
-
# @param resource_group_name [String]
|
410
|
-
#
|
417
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
418
|
+
# Azure subscription.
|
419
|
+
# @param namespace_name [String] The namespace name
|
411
420
|
# @param topic_name [String] The topic name.
|
412
421
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
413
422
|
# will be added to the HTTP request.
|
414
423
|
#
|
415
|
-
# @return [Array<
|
424
|
+
# @return [Array<SBAuthorizationRule>] operation results.
|
416
425
|
#
|
417
426
|
def list_authorization_rules(resource_group_name, namespace_name, topic_name, custom_headers = nil)
|
418
427
|
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers)
|
@@ -422,8 +431,9 @@ module Azure::ARM::ServiceBus
|
|
422
431
|
#
|
423
432
|
# Gets authorization rules for a topic.
|
424
433
|
#
|
425
|
-
# @param resource_group_name [String]
|
426
|
-
#
|
434
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
435
|
+
# Azure subscription.
|
436
|
+
# @param namespace_name [String] The namespace name
|
427
437
|
# @param topic_name [String] The topic name.
|
428
438
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
429
439
|
# will be added to the HTTP request.
|
@@ -437,8 +447,9 @@ module Azure::ARM::ServiceBus
|
|
437
447
|
#
|
438
448
|
# Gets authorization rules for a topic.
|
439
449
|
#
|
440
|
-
# @param resource_group_name [String]
|
441
|
-
#
|
450
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
451
|
+
# Azure subscription.
|
452
|
+
# @param namespace_name [String] The namespace name
|
442
453
|
# @param topic_name [String] The topic name.
|
443
454
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
444
455
|
# to the HTTP request.
|
@@ -458,7 +469,7 @@ module Azure::ARM::ServiceBus
|
|
458
469
|
# Set Headers
|
459
470
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
460
471
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
461
|
-
path_template = '
|
472
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules'
|
462
473
|
|
463
474
|
request_url = @base_url || @client.base_url
|
464
475
|
|
@@ -477,7 +488,7 @@ module Azure::ARM::ServiceBus
|
|
477
488
|
response_content = http_response.body
|
478
489
|
unless status_code == 200
|
479
490
|
error_model = JSON.load(response_content)
|
480
|
-
fail
|
491
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
481
492
|
end
|
482
493
|
|
483
494
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -485,8 +496,8 @@ module Azure::ARM::ServiceBus
|
|
485
496
|
if status_code == 200
|
486
497
|
begin
|
487
498
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
488
|
-
result_mapper =
|
489
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
499
|
+
result_mapper = Azure::ARM::ServiceBus::Models::SBAuthorizationRuleListResult.mapper()
|
500
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
490
501
|
rescue Exception => e
|
491
502
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
492
503
|
end
|
@@ -501,16 +512,16 @@ module Azure::ARM::ServiceBus
|
|
501
512
|
#
|
502
513
|
# Creates an authorizatio rule for the specified topic.
|
503
514
|
#
|
504
|
-
# @param resource_group_name [String]
|
505
|
-
#
|
515
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
516
|
+
# Azure subscription.
|
517
|
+
# @param namespace_name [String] The namespace name
|
506
518
|
# @param topic_name [String] The topic name.
|
507
|
-
# @param authorization_rule_name [String]
|
508
|
-
# @param parameters [
|
509
|
-
# shared access authorization rule.
|
519
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
520
|
+
# @param parameters [SBAuthorizationRule] The shared access authorization rule.
|
510
521
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
511
522
|
# will be added to the HTTP request.
|
512
523
|
#
|
513
|
-
# @return [
|
524
|
+
# @return [SBAuthorizationRule] operation results.
|
514
525
|
#
|
515
526
|
def create_or_update_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil)
|
516
527
|
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value!
|
@@ -520,12 +531,12 @@ module Azure::ARM::ServiceBus
|
|
520
531
|
#
|
521
532
|
# Creates an authorizatio rule for the specified topic.
|
522
533
|
#
|
523
|
-
# @param resource_group_name [String]
|
524
|
-
#
|
534
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
535
|
+
# Azure subscription.
|
536
|
+
# @param namespace_name [String] The namespace name
|
525
537
|
# @param topic_name [String] The topic name.
|
526
|
-
# @param authorization_rule_name [String]
|
527
|
-
# @param parameters [
|
528
|
-
# shared access authorization rule.
|
538
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
539
|
+
# @param parameters [SBAuthorizationRule] The shared access authorization rule.
|
529
540
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
530
541
|
# will be added to the HTTP request.
|
531
542
|
#
|
@@ -538,12 +549,12 @@ module Azure::ARM::ServiceBus
|
|
538
549
|
#
|
539
550
|
# Creates an authorizatio rule for the specified topic.
|
540
551
|
#
|
541
|
-
# @param resource_group_name [String]
|
542
|
-
#
|
552
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
553
|
+
# Azure subscription.
|
554
|
+
# @param namespace_name [String] The namespace name
|
543
555
|
# @param topic_name [String] The topic name.
|
544
|
-
# @param authorization_rule_name [String]
|
545
|
-
# @param parameters [
|
546
|
-
# shared access authorization rule.
|
556
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
557
|
+
# @param parameters [SBAuthorizationRule] The shared access authorization rule.
|
547
558
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
548
559
|
# to the HTTP request.
|
549
560
|
#
|
@@ -568,11 +579,11 @@ module Azure::ARM::ServiceBus
|
|
568
579
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
569
580
|
|
570
581
|
# Serialize Request
|
571
|
-
request_mapper =
|
572
|
-
request_content = @client.serialize(request_mapper, parameters
|
582
|
+
request_mapper = Azure::ARM::ServiceBus::Models::SBAuthorizationRule.mapper()
|
583
|
+
request_content = @client.serialize(request_mapper, parameters)
|
573
584
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
574
585
|
|
575
|
-
path_template = '
|
586
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}'
|
576
587
|
|
577
588
|
request_url = @base_url || @client.base_url
|
578
589
|
|
@@ -592,7 +603,7 @@ module Azure::ARM::ServiceBus
|
|
592
603
|
response_content = http_response.body
|
593
604
|
unless status_code == 200
|
594
605
|
error_model = JSON.load(response_content)
|
595
|
-
fail
|
606
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
596
607
|
end
|
597
608
|
|
598
609
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -600,8 +611,8 @@ module Azure::ARM::ServiceBus
|
|
600
611
|
if status_code == 200
|
601
612
|
begin
|
602
613
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
603
|
-
result_mapper =
|
604
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
614
|
+
result_mapper = Azure::ARM::ServiceBus::Models::SBAuthorizationRule.mapper()
|
615
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
605
616
|
rescue Exception => e
|
606
617
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
607
618
|
end
|
@@ -616,14 +627,15 @@ module Azure::ARM::ServiceBus
|
|
616
627
|
#
|
617
628
|
# Returns the specified authorization rule.
|
618
629
|
#
|
619
|
-
# @param resource_group_name [String]
|
620
|
-
#
|
630
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
631
|
+
# Azure subscription.
|
632
|
+
# @param namespace_name [String] The namespace name
|
621
633
|
# @param topic_name [String] The topic name.
|
622
|
-
# @param authorization_rule_name [String]
|
634
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
623
635
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
624
636
|
# will be added to the HTTP request.
|
625
637
|
#
|
626
|
-
# @return [
|
638
|
+
# @return [SBAuthorizationRule] operation results.
|
627
639
|
#
|
628
640
|
def get_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
|
629
641
|
response = get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value!
|
@@ -633,10 +645,11 @@ module Azure::ARM::ServiceBus
|
|
633
645
|
#
|
634
646
|
# Returns the specified authorization rule.
|
635
647
|
#
|
636
|
-
# @param resource_group_name [String]
|
637
|
-
#
|
648
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
649
|
+
# Azure subscription.
|
650
|
+
# @param namespace_name [String] The namespace name
|
638
651
|
# @param topic_name [String] The topic name.
|
639
|
-
# @param authorization_rule_name [String]
|
652
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
640
653
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
641
654
|
# will be added to the HTTP request.
|
642
655
|
#
|
@@ -649,10 +662,11 @@ module Azure::ARM::ServiceBus
|
|
649
662
|
#
|
650
663
|
# Returns the specified authorization rule.
|
651
664
|
#
|
652
|
-
# @param resource_group_name [String]
|
653
|
-
#
|
665
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
666
|
+
# Azure subscription.
|
667
|
+
# @param namespace_name [String] The namespace name
|
654
668
|
# @param topic_name [String] The topic name.
|
655
|
-
# @param authorization_rule_name [String]
|
669
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
656
670
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
657
671
|
# to the HTTP request.
|
658
672
|
#
|
@@ -672,7 +686,7 @@ module Azure::ARM::ServiceBus
|
|
672
686
|
# Set Headers
|
673
687
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
674
688
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
675
|
-
path_template = '
|
689
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}'
|
676
690
|
|
677
691
|
request_url = @base_url || @client.base_url
|
678
692
|
|
@@ -691,7 +705,7 @@ module Azure::ARM::ServiceBus
|
|
691
705
|
response_content = http_response.body
|
692
706
|
unless status_code == 200
|
693
707
|
error_model = JSON.load(response_content)
|
694
|
-
fail
|
708
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
695
709
|
end
|
696
710
|
|
697
711
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -699,8 +713,8 @@ module Azure::ARM::ServiceBus
|
|
699
713
|
if status_code == 200
|
700
714
|
begin
|
701
715
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
702
|
-
result_mapper =
|
703
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
716
|
+
result_mapper = Azure::ARM::ServiceBus::Models::SBAuthorizationRule.mapper()
|
717
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
704
718
|
rescue Exception => e
|
705
719
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
706
720
|
end
|
@@ -715,10 +729,11 @@ module Azure::ARM::ServiceBus
|
|
715
729
|
#
|
716
730
|
# Deletes a topic authorization rule.
|
717
731
|
#
|
718
|
-
# @param resource_group_name [String]
|
719
|
-
#
|
732
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
733
|
+
# Azure subscription.
|
734
|
+
# @param namespace_name [String] The namespace name
|
720
735
|
# @param topic_name [String] The topic name.
|
721
|
-
# @param authorization_rule_name [String]
|
736
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
722
737
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
723
738
|
# will be added to the HTTP request.
|
724
739
|
#
|
@@ -731,10 +746,11 @@ module Azure::ARM::ServiceBus
|
|
731
746
|
#
|
732
747
|
# Deletes a topic authorization rule.
|
733
748
|
#
|
734
|
-
# @param resource_group_name [String]
|
735
|
-
#
|
749
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
750
|
+
# Azure subscription.
|
751
|
+
# @param namespace_name [String] The namespace name
|
736
752
|
# @param topic_name [String] The topic name.
|
737
|
-
# @param authorization_rule_name [String]
|
753
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
738
754
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
739
755
|
# will be added to the HTTP request.
|
740
756
|
#
|
@@ -747,10 +763,11 @@ module Azure::ARM::ServiceBus
|
|
747
763
|
#
|
748
764
|
# Deletes a topic authorization rule.
|
749
765
|
#
|
750
|
-
# @param resource_group_name [String]
|
751
|
-
#
|
766
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
767
|
+
# Azure subscription.
|
768
|
+
# @param namespace_name [String] The namespace name
|
752
769
|
# @param topic_name [String] The topic name.
|
753
|
-
# @param authorization_rule_name [String]
|
770
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
754
771
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
755
772
|
# to the HTTP request.
|
756
773
|
#
|
@@ -770,7 +787,7 @@ module Azure::ARM::ServiceBus
|
|
770
787
|
# Set Headers
|
771
788
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
772
789
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
773
|
-
path_template = '
|
790
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}'
|
774
791
|
|
775
792
|
request_url = @base_url || @client.base_url
|
776
793
|
|
@@ -789,7 +806,7 @@ module Azure::ARM::ServiceBus
|
|
789
806
|
response_content = http_response.body
|
790
807
|
unless status_code == 204 || status_code == 200
|
791
808
|
error_model = JSON.load(response_content)
|
792
|
-
fail
|
809
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
793
810
|
end
|
794
811
|
|
795
812
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -803,14 +820,15 @@ module Azure::ARM::ServiceBus
|
|
803
820
|
#
|
804
821
|
# Gets the primary and secondary connection strings for the topic.
|
805
822
|
#
|
806
|
-
# @param resource_group_name [String]
|
807
|
-
#
|
823
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
824
|
+
# Azure subscription.
|
825
|
+
# @param namespace_name [String] The namespace name
|
808
826
|
# @param topic_name [String] The topic name.
|
809
|
-
# @param authorization_rule_name [String] The
|
827
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
810
828
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
811
829
|
# will be added to the HTTP request.
|
812
830
|
#
|
813
|
-
# @return [
|
831
|
+
# @return [AccessKeys] operation results.
|
814
832
|
#
|
815
833
|
def list_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
|
816
834
|
response = list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value!
|
@@ -820,10 +838,11 @@ module Azure::ARM::ServiceBus
|
|
820
838
|
#
|
821
839
|
# Gets the primary and secondary connection strings for the topic.
|
822
840
|
#
|
823
|
-
# @param resource_group_name [String]
|
824
|
-
#
|
841
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
842
|
+
# Azure subscription.
|
843
|
+
# @param namespace_name [String] The namespace name
|
825
844
|
# @param topic_name [String] The topic name.
|
826
|
-
# @param authorization_rule_name [String] The
|
845
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
827
846
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
828
847
|
# will be added to the HTTP request.
|
829
848
|
#
|
@@ -836,10 +855,11 @@ module Azure::ARM::ServiceBus
|
|
836
855
|
#
|
837
856
|
# Gets the primary and secondary connection strings for the topic.
|
838
857
|
#
|
839
|
-
# @param resource_group_name [String]
|
840
|
-
#
|
858
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
859
|
+
# Azure subscription.
|
860
|
+
# @param namespace_name [String] The namespace name
|
841
861
|
# @param topic_name [String] The topic name.
|
842
|
-
# @param authorization_rule_name [String] The
|
862
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
843
863
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
844
864
|
# to the HTTP request.
|
845
865
|
#
|
@@ -859,7 +879,7 @@ module Azure::ARM::ServiceBus
|
|
859
879
|
# Set Headers
|
860
880
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
861
881
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
862
|
-
path_template = '
|
882
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/ListKeys'
|
863
883
|
|
864
884
|
request_url = @base_url || @client.base_url
|
865
885
|
|
@@ -878,7 +898,7 @@ module Azure::ARM::ServiceBus
|
|
878
898
|
response_content = http_response.body
|
879
899
|
unless status_code == 200
|
880
900
|
error_model = JSON.load(response_content)
|
881
|
-
fail
|
901
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
882
902
|
end
|
883
903
|
|
884
904
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -886,8 +906,8 @@ module Azure::ARM::ServiceBus
|
|
886
906
|
if status_code == 200
|
887
907
|
begin
|
888
908
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
889
|
-
result_mapper =
|
890
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
909
|
+
result_mapper = Azure::ARM::ServiceBus::Models::AccessKeys.mapper()
|
910
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
891
911
|
rescue Exception => e
|
892
912
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
893
913
|
end
|
@@ -902,16 +922,17 @@ module Azure::ARM::ServiceBus
|
|
902
922
|
#
|
903
923
|
# Regenerates primary or secondary connection strings for the topic.
|
904
924
|
#
|
905
|
-
# @param resource_group_name [String]
|
906
|
-
#
|
925
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
926
|
+
# Azure subscription.
|
927
|
+
# @param namespace_name [String] The namespace name
|
907
928
|
# @param topic_name [String] The topic name.
|
908
|
-
# @param authorization_rule_name [String] The
|
909
|
-
# @param parameters [
|
929
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
930
|
+
# @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
|
910
931
|
# regenerate the authorization rule.
|
911
932
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
912
933
|
# will be added to the HTTP request.
|
913
934
|
#
|
914
|
-
# @return [
|
935
|
+
# @return [AccessKeys] operation results.
|
915
936
|
#
|
916
937
|
def regenerate_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil)
|
917
938
|
response = regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value!
|
@@ -921,11 +942,12 @@ module Azure::ARM::ServiceBus
|
|
921
942
|
#
|
922
943
|
# Regenerates primary or secondary connection strings for the topic.
|
923
944
|
#
|
924
|
-
# @param resource_group_name [String]
|
925
|
-
#
|
945
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
946
|
+
# Azure subscription.
|
947
|
+
# @param namespace_name [String] The namespace name
|
926
948
|
# @param topic_name [String] The topic name.
|
927
|
-
# @param authorization_rule_name [String] The
|
928
|
-
# @param parameters [
|
949
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
950
|
+
# @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
|
929
951
|
# regenerate the authorization rule.
|
930
952
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
931
953
|
# will be added to the HTTP request.
|
@@ -939,11 +961,12 @@ module Azure::ARM::ServiceBus
|
|
939
961
|
#
|
940
962
|
# Regenerates primary or secondary connection strings for the topic.
|
941
963
|
#
|
942
|
-
# @param resource_group_name [String]
|
943
|
-
#
|
964
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
965
|
+
# Azure subscription.
|
966
|
+
# @param namespace_name [String] The namespace name
|
944
967
|
# @param topic_name [String] The topic name.
|
945
|
-
# @param authorization_rule_name [String] The
|
946
|
-
# @param parameters [
|
968
|
+
# @param authorization_rule_name [String] The authorizationrule name.
|
969
|
+
# @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
|
947
970
|
# regenerate the authorization rule.
|
948
971
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
949
972
|
# to the HTTP request.
|
@@ -969,11 +992,11 @@ module Azure::ARM::ServiceBus
|
|
969
992
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
970
993
|
|
971
994
|
# Serialize Request
|
972
|
-
request_mapper =
|
973
|
-
request_content = @client.serialize(request_mapper, parameters
|
995
|
+
request_mapper = Azure::ARM::ServiceBus::Models::RegenerateAccessKeyParameters.mapper()
|
996
|
+
request_content = @client.serialize(request_mapper, parameters)
|
974
997
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
975
998
|
|
976
|
-
path_template = '
|
999
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/regenerateKeys'
|
977
1000
|
|
978
1001
|
request_url = @base_url || @client.base_url
|
979
1002
|
|
@@ -993,7 +1016,7 @@ module Azure::ARM::ServiceBus
|
|
993
1016
|
response_content = http_response.body
|
994
1017
|
unless status_code == 200
|
995
1018
|
error_model = JSON.load(response_content)
|
996
|
-
fail
|
1019
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
997
1020
|
end
|
998
1021
|
|
999
1022
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -1001,8 +1024,8 @@ module Azure::ARM::ServiceBus
|
|
1001
1024
|
if status_code == 200
|
1002
1025
|
begin
|
1003
1026
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1004
|
-
result_mapper =
|
1005
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1027
|
+
result_mapper = Azure::ARM::ServiceBus::Models::AccessKeys.mapper()
|
1028
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1006
1029
|
rescue Exception => e
|
1007
1030
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1008
1031
|
end
|
@@ -1022,10 +1045,10 @@ module Azure::ARM::ServiceBus
|
|
1022
1045
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1023
1046
|
# will be added to the HTTP request.
|
1024
1047
|
#
|
1025
|
-
# @return [
|
1048
|
+
# @return [SBTopicListResult] operation results.
|
1026
1049
|
#
|
1027
|
-
def
|
1028
|
-
response =
|
1050
|
+
def list_by_namespace_next(next_page_link, custom_headers = nil)
|
1051
|
+
response = list_by_namespace_next_async(next_page_link, custom_headers).value!
|
1029
1052
|
response.body unless response.nil?
|
1030
1053
|
end
|
1031
1054
|
|
@@ -1039,8 +1062,8 @@ module Azure::ARM::ServiceBus
|
|
1039
1062
|
#
|
1040
1063
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1041
1064
|
#
|
1042
|
-
def
|
1043
|
-
|
1065
|
+
def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil)
|
1066
|
+
list_by_namespace_next_async(next_page_link, custom_headers).value!
|
1044
1067
|
end
|
1045
1068
|
|
1046
1069
|
#
|
@@ -1053,7 +1076,7 @@ module Azure::ARM::ServiceBus
|
|
1053
1076
|
#
|
1054
1077
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1055
1078
|
#
|
1056
|
-
def
|
1079
|
+
def list_by_namespace_next_async(next_page_link, custom_headers = nil)
|
1057
1080
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1058
1081
|
|
1059
1082
|
|
@@ -1080,7 +1103,7 @@ module Azure::ARM::ServiceBus
|
|
1080
1103
|
response_content = http_response.body
|
1081
1104
|
unless status_code == 200
|
1082
1105
|
error_model = JSON.load(response_content)
|
1083
|
-
fail
|
1106
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1084
1107
|
end
|
1085
1108
|
|
1086
1109
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -1088,8 +1111,8 @@ module Azure::ARM::ServiceBus
|
|
1088
1111
|
if status_code == 200
|
1089
1112
|
begin
|
1090
1113
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1091
|
-
result_mapper =
|
1092
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1114
|
+
result_mapper = Azure::ARM::ServiceBus::Models::SBTopicListResult.mapper()
|
1115
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1093
1116
|
rescue Exception => e
|
1094
1117
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1095
1118
|
end
|
@@ -1109,7 +1132,7 @@ module Azure::ARM::ServiceBus
|
|
1109
1132
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1110
1133
|
# will be added to the HTTP request.
|
1111
1134
|
#
|
1112
|
-
# @return [
|
1135
|
+
# @return [SBAuthorizationRuleListResult] operation results.
|
1113
1136
|
#
|
1114
1137
|
def list_authorization_rules_next(next_page_link, custom_headers = nil)
|
1115
1138
|
response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
@@ -1167,7 +1190,7 @@ module Azure::ARM::ServiceBus
|
|
1167
1190
|
response_content = http_response.body
|
1168
1191
|
unless status_code == 200
|
1169
1192
|
error_model = JSON.load(response_content)
|
1170
|
-
fail
|
1193
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1171
1194
|
end
|
1172
1195
|
|
1173
1196
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -1175,8 +1198,8 @@ module Azure::ARM::ServiceBus
|
|
1175
1198
|
if status_code == 200
|
1176
1199
|
begin
|
1177
1200
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1178
|
-
result_mapper =
|
1179
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1201
|
+
result_mapper = Azure::ARM::ServiceBus::Models::SBAuthorizationRuleListResult.mapper()
|
1202
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1180
1203
|
rescue Exception => e
|
1181
1204
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1182
1205
|
end
|
@@ -1191,19 +1214,21 @@ module Azure::ARM::ServiceBus
|
|
1191
1214
|
#
|
1192
1215
|
# Gets all the topics in a namespace.
|
1193
1216
|
#
|
1194
|
-
# @param resource_group_name [String]
|
1195
|
-
#
|
1217
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1218
|
+
# Azure subscription.
|
1219
|
+
# @param namespace_name [String] The namespace name
|
1196
1220
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1197
1221
|
# will be added to the HTTP request.
|
1198
1222
|
#
|
1199
|
-
# @return [
|
1223
|
+
# @return [SBTopicListResult] which provide lazy access to pages of the
|
1224
|
+
# response.
|
1200
1225
|
#
|
1201
|
-
def
|
1202
|
-
response =
|
1226
|
+
def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
|
1227
|
+
response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
|
1203
1228
|
unless response.nil?
|
1204
1229
|
page = response.body
|
1205
1230
|
page.next_method = Proc.new do |next_page_link|
|
1206
|
-
|
1231
|
+
list_by_namespace_next_async(next_page_link, custom_headers)
|
1207
1232
|
end
|
1208
1233
|
page
|
1209
1234
|
end
|
@@ -1212,14 +1237,15 @@ module Azure::ARM::ServiceBus
|
|
1212
1237
|
#
|
1213
1238
|
# Gets authorization rules for a topic.
|
1214
1239
|
#
|
1215
|
-
# @param resource_group_name [String]
|
1216
|
-
#
|
1240
|
+
# @param resource_group_name [String] Name of the Resource group within the
|
1241
|
+
# Azure subscription.
|
1242
|
+
# @param namespace_name [String] The namespace name
|
1217
1243
|
# @param topic_name [String] The topic name.
|
1218
1244
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1219
1245
|
# will be added to the HTTP request.
|
1220
1246
|
#
|
1221
|
-
# @return [
|
1222
|
-
#
|
1247
|
+
# @return [SBAuthorizationRuleListResult] which provide lazy access to pages of
|
1248
|
+
# the response.
|
1223
1249
|
#
|
1224
1250
|
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers = nil)
|
1225
1251
|
response = list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers).value!
|