azure_mgmt_event_hub 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_event_hub.rb +23 -15
- data/lib/generated/azure_mgmt_event_hub/consumer_groups.rb +123 -111
- data/lib/generated/azure_mgmt_event_hub/event_hub_management_client.rb +6 -2
- data/lib/generated/azure_mgmt_event_hub/event_hubs.rb +240 -218
- data/lib/generated/azure_mgmt_event_hub/models/{resource_list_keys.rb → access_keys.rb} +9 -8
- data/lib/generated/azure_mgmt_event_hub/models/access_rights.rb +1 -1
- data/lib/generated/azure_mgmt_event_hub/models/{shared_access_authorization_rule_create_or_update_parameters.rb → authorization_rule.rb} +21 -19
- data/lib/generated/azure_mgmt_event_hub/models/{shared_access_authorization_rule_list_result.rb → authorization_rule_list_result.rb} +13 -14
- data/lib/generated/azure_mgmt_event_hub/models/capture_description.rb +103 -0
- data/lib/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb +45 -0
- data/lib/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb +72 -0
- data/lib/generated/azure_mgmt_event_hub/models/{consumer_group_create_or_update_parameters.rb → consumer_group.rb} +21 -34
- data/lib/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +8 -7
- data/lib/generated/azure_mgmt_event_hub/models/destination.rb +79 -0
- data/lib/generated/azure_mgmt_event_hub/models/{namespace_resource.rb → ehnamespace.rb} +54 -11
- data/lib/generated/azure_mgmt_event_hub/models/{namespace_list_result.rb → ehnamespace_list_result.rb} +12 -12
- data/lib/generated/azure_mgmt_event_hub/models/encoding_capture_description.rb +16 -0
- data/lib/generated/azure_mgmt_event_hub/models/entity_status.rb +1 -1
- data/lib/generated/azure_mgmt_event_hub/models/error_response.rb +56 -0
- data/lib/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +8 -8
- data/lib/generated/azure_mgmt_event_hub/models/{event_hub_resource.rb → eventhub.rb} +43 -43
- data/lib/generated/azure_mgmt_event_hub/models/{policykey.rb → key_type.rb} +3 -3
- data/lib/generated/azure_mgmt_event_hub/models/operation.rb +57 -0
- data/lib/generated/azure_mgmt_event_hub/models/operation_display.rb +69 -0
- data/lib/generated/azure_mgmt_event_hub/models/operation_list_result.rb +99 -0
- data/lib/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb +59 -0
- data/lib/generated/azure_mgmt_event_hub/models/sku.rb +12 -6
- data/lib/generated/azure_mgmt_event_hub/models/sku_name.rb +1 -1
- data/lib/generated/azure_mgmt_event_hub/models/sku_tier.rb +1 -2
- data/lib/generated/azure_mgmt_event_hub/models/{shared_access_authorization_rule_resource.rb → tracked_resource.rb} +13 -24
- data/lib/generated/azure_mgmt_event_hub/models/unavailable_reason.rb +20 -0
- data/lib/generated/azure_mgmt_event_hub/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_event_hub/namespaces.rb +480 -251
- data/lib/generated/azure_mgmt_event_hub/operations.rb +213 -0
- data/lib/generated/azure_mgmt_event_hub/version.rb +2 -2
- metadata +25 -17
- data/lib/generated/azure_mgmt_event_hub/models/consumer_group_resource.rb +0 -122
- data/lib/generated/azure_mgmt_event_hub/models/event_hub_create_or_update_parameters.rb +0 -139
- data/lib/generated/azure_mgmt_event_hub/models/namespace_create_or_update_parameters.rb +0 -113
- data/lib/generated/azure_mgmt_event_hub/models/regenerate_keys_parameters.rb +0 -46
@@ -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
|
|
@@ -36,6 +36,9 @@ module Azure::ARM::EventHub
|
|
36
36
|
# is generated and included in each request. Default is true.
|
37
37
|
attr_accessor :generate_client_request_id
|
38
38
|
|
39
|
+
# @return [Operations] operations
|
40
|
+
attr_reader :operations
|
41
|
+
|
39
42
|
# @return [Namespaces] namespaces
|
40
43
|
attr_reader :namespaces
|
41
44
|
|
@@ -58,10 +61,11 @@ module Azure::ARM::EventHub
|
|
58
61
|
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
59
62
|
@credentials = credentials
|
60
63
|
|
64
|
+
@operations = Operations.new(self)
|
61
65
|
@namespaces = Namespaces.new(self)
|
62
66
|
@event_hubs = EventHubs.new(self)
|
63
67
|
@consumer_groups = ConsumerGroups.new(self)
|
64
|
-
@api_version = '
|
68
|
+
@api_version = '2017-04-01'
|
65
69
|
@accept_language = 'en-US'
|
66
70
|
@long_running_operation_retry_timeout = 30
|
67
71
|
@generate_client_request_id = true
|
@@ -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::EventHub
|
|
8
8
|
# Azure Event Hubs client
|
9
9
|
#
|
10
10
|
class EventHubs
|
11
|
-
include Azure::ARM::EventHub::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -23,45 +22,48 @@ module Azure::ARM::EventHub
|
|
23
22
|
attr_reader :client
|
24
23
|
|
25
24
|
#
|
26
|
-
# Gets all the Event Hubs in a
|
25
|
+
# Gets all the Event Hubs 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<Eventhub>] 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
|
-
# Gets all the Event Hubs in a
|
41
|
+
# Gets all the Event Hubs 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
|
-
# Gets all the Event Hubs in a
|
56
|
+
# Gets all the Event Hubs 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::EventHub
|
|
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.EventHub/namespaces/{namespaceName}/eventhubs'
|
77
79
|
|
78
80
|
request_url = @base_url || @client.base_url
|
79
81
|
|
@@ -92,7 +94,7 @@ module Azure::ARM::EventHub
|
|
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::EventHub
|
|
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 = EventHubListResult.mapper()
|
104
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
105
|
+
result_mapper = Azure::ARM::EventHub::Models::EventHubListResult.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
|
@@ -114,17 +116,18 @@ module Azure::ARM::EventHub
|
|
114
116
|
end
|
115
117
|
|
116
118
|
#
|
117
|
-
# Creates or updates a new Event Hub as a nested resource within a
|
119
|
+
# Creates or updates a new Event Hub as a nested resource within a Namespace.
|
118
120
|
#
|
119
|
-
# @param resource_group_name [String]
|
120
|
-
#
|
121
|
-
# @param
|
122
|
-
# @param
|
123
|
-
# create an Event Hub
|
121
|
+
# @param resource_group_name [String] Name of the resource group within the
|
122
|
+
# azure subscription.
|
123
|
+
# @param namespace_name [String] The Namespace name
|
124
|
+
# @param event_hub_name [String] The Event Hub name
|
125
|
+
# @param parameters [Eventhub] Parameters supplied to create an Event Hub
|
126
|
+
# resource.
|
124
127
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
125
128
|
# will be added to the HTTP request.
|
126
129
|
#
|
127
|
-
# @return [
|
130
|
+
# @return [Eventhub] operation results.
|
128
131
|
#
|
129
132
|
def create_or_update(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers = nil)
|
130
133
|
response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers).value!
|
@@ -132,13 +135,14 @@ module Azure::ARM::EventHub
|
|
132
135
|
end
|
133
136
|
|
134
137
|
#
|
135
|
-
# Creates or updates a new Event Hub as a nested resource within a
|
138
|
+
# Creates or updates a new Event Hub as a nested resource within a Namespace.
|
136
139
|
#
|
137
|
-
# @param resource_group_name [String]
|
138
|
-
#
|
139
|
-
# @param
|
140
|
-
# @param
|
141
|
-
# create an Event Hub
|
140
|
+
# @param resource_group_name [String] Name of the resource group within the
|
141
|
+
# azure subscription.
|
142
|
+
# @param namespace_name [String] The Namespace name
|
143
|
+
# @param event_hub_name [String] The Event Hub name
|
144
|
+
# @param parameters [Eventhub] Parameters supplied to create an Event Hub
|
145
|
+
# resource.
|
142
146
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
143
147
|
# will be added to the HTTP request.
|
144
148
|
#
|
@@ -149,13 +153,14 @@ module Azure::ARM::EventHub
|
|
149
153
|
end
|
150
154
|
|
151
155
|
#
|
152
|
-
# Creates or updates a new Event Hub as a nested resource within a
|
156
|
+
# Creates or updates a new Event Hub as a nested resource within a Namespace.
|
153
157
|
#
|
154
|
-
# @param resource_group_name [String]
|
155
|
-
#
|
156
|
-
# @param
|
157
|
-
# @param
|
158
|
-
# create an Event Hub
|
158
|
+
# @param resource_group_name [String] Name of the resource group within the
|
159
|
+
# azure subscription.
|
160
|
+
# @param namespace_name [String] The Namespace name
|
161
|
+
# @param event_hub_name [String] The Event Hub name
|
162
|
+
# @param parameters [Eventhub] Parameters supplied to create an Event Hub
|
163
|
+
# resource.
|
159
164
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
160
165
|
# to the HTTP request.
|
161
166
|
#
|
@@ -179,11 +184,11 @@ module Azure::ARM::EventHub
|
|
179
184
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
180
185
|
|
181
186
|
# Serialize Request
|
182
|
-
request_mapper =
|
183
|
-
request_content = @client.serialize(request_mapper, parameters
|
187
|
+
request_mapper = Azure::ARM::EventHub::Models::Eventhub.mapper()
|
188
|
+
request_content = @client.serialize(request_mapper, parameters)
|
184
189
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
185
190
|
|
186
|
-
path_template = '
|
191
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}'
|
187
192
|
|
188
193
|
request_url = @base_url || @client.base_url
|
189
194
|
|
@@ -203,7 +208,7 @@ module Azure::ARM::EventHub
|
|
203
208
|
response_content = http_response.body
|
204
209
|
unless status_code == 200
|
205
210
|
error_model = JSON.load(response_content)
|
206
|
-
fail
|
211
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
207
212
|
end
|
208
213
|
|
209
214
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -211,8 +216,8 @@ module Azure::ARM::EventHub
|
|
211
216
|
if status_code == 200
|
212
217
|
begin
|
213
218
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
214
|
-
result_mapper =
|
215
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
219
|
+
result_mapper = Azure::ARM::EventHub::Models::Eventhub.mapper()
|
220
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
216
221
|
rescue Exception => e
|
217
222
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
218
223
|
end
|
@@ -225,11 +230,12 @@ module Azure::ARM::EventHub
|
|
225
230
|
end
|
226
231
|
|
227
232
|
#
|
228
|
-
# Deletes an Event Hub from the specified
|
233
|
+
# Deletes an Event Hub from the specified Namespace and resource group.
|
229
234
|
#
|
230
|
-
# @param resource_group_name [String]
|
231
|
-
#
|
232
|
-
# @param
|
235
|
+
# @param resource_group_name [String] Name of the resource group within the
|
236
|
+
# azure subscription.
|
237
|
+
# @param namespace_name [String] The Namespace name
|
238
|
+
# @param event_hub_name [String] The Event Hub name
|
233
239
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
234
240
|
# will be added to the HTTP request.
|
235
241
|
#
|
@@ -240,11 +246,12 @@ module Azure::ARM::EventHub
|
|
240
246
|
end
|
241
247
|
|
242
248
|
#
|
243
|
-
# Deletes an Event Hub from the specified
|
249
|
+
# Deletes an Event Hub from the specified Namespace and resource group.
|
244
250
|
#
|
245
|
-
# @param resource_group_name [String]
|
246
|
-
#
|
247
|
-
# @param
|
251
|
+
# @param resource_group_name [String] Name of the resource group within the
|
252
|
+
# azure subscription.
|
253
|
+
# @param namespace_name [String] The Namespace name
|
254
|
+
# @param event_hub_name [String] The Event Hub name
|
248
255
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
249
256
|
# will be added to the HTTP request.
|
250
257
|
#
|
@@ -255,11 +262,12 @@ module Azure::ARM::EventHub
|
|
255
262
|
end
|
256
263
|
|
257
264
|
#
|
258
|
-
# Deletes an Event Hub from the specified
|
265
|
+
# Deletes an Event Hub from the specified Namespace and resource group.
|
259
266
|
#
|
260
|
-
# @param resource_group_name [String]
|
261
|
-
#
|
262
|
-
# @param
|
267
|
+
# @param resource_group_name [String] Name of the resource group within the
|
268
|
+
# azure subscription.
|
269
|
+
# @param namespace_name [String] The Namespace name
|
270
|
+
# @param event_hub_name [String] The Event Hub name
|
263
271
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
264
272
|
# to the HTTP request.
|
265
273
|
#
|
@@ -278,7 +286,7 @@ module Azure::ARM::EventHub
|
|
278
286
|
# Set Headers
|
279
287
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
280
288
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
281
|
-
path_template = '
|
289
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}'
|
282
290
|
|
283
291
|
request_url = @base_url || @client.base_url
|
284
292
|
|
@@ -297,7 +305,7 @@ module Azure::ARM::EventHub
|
|
297
305
|
response_content = http_response.body
|
298
306
|
unless status_code == 204 || status_code == 200
|
299
307
|
error_model = JSON.load(response_content)
|
300
|
-
fail
|
308
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
301
309
|
end
|
302
310
|
|
303
311
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -311,13 +319,14 @@ module Azure::ARM::EventHub
|
|
311
319
|
#
|
312
320
|
# Gets an Event Hubs description for the specified Event Hub.
|
313
321
|
#
|
314
|
-
# @param resource_group_name [String]
|
315
|
-
#
|
316
|
-
# @param
|
322
|
+
# @param resource_group_name [String] Name of the resource group within the
|
323
|
+
# azure subscription.
|
324
|
+
# @param namespace_name [String] The Namespace name
|
325
|
+
# @param event_hub_name [String] The Event Hub name
|
317
326
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
318
327
|
# will be added to the HTTP request.
|
319
328
|
#
|
320
|
-
# @return [
|
329
|
+
# @return [Eventhub] operation results.
|
321
330
|
#
|
322
331
|
def get(resource_group_name, namespace_name, event_hub_name, custom_headers = nil)
|
323
332
|
response = get_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
@@ -327,9 +336,10 @@ module Azure::ARM::EventHub
|
|
327
336
|
#
|
328
337
|
# Gets an Event Hubs description for the specified Event Hub.
|
329
338
|
#
|
330
|
-
# @param resource_group_name [String]
|
331
|
-
#
|
332
|
-
# @param
|
339
|
+
# @param resource_group_name [String] Name of the resource group within the
|
340
|
+
# azure subscription.
|
341
|
+
# @param namespace_name [String] The Namespace name
|
342
|
+
# @param event_hub_name [String] The Event Hub name
|
333
343
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
334
344
|
# will be added to the HTTP request.
|
335
345
|
#
|
@@ -342,9 +352,10 @@ module Azure::ARM::EventHub
|
|
342
352
|
#
|
343
353
|
# Gets an Event Hubs description for the specified Event Hub.
|
344
354
|
#
|
345
|
-
# @param resource_group_name [String]
|
346
|
-
#
|
347
|
-
# @param
|
355
|
+
# @param resource_group_name [String] Name of the resource group within the
|
356
|
+
# azure subscription.
|
357
|
+
# @param namespace_name [String] The Namespace name
|
358
|
+
# @param event_hub_name [String] The Event Hub name
|
348
359
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
349
360
|
# to the HTTP request.
|
350
361
|
#
|
@@ -363,7 +374,7 @@ module Azure::ARM::EventHub
|
|
363
374
|
# Set Headers
|
364
375
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
365
376
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
366
|
-
path_template = '
|
377
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}'
|
367
378
|
|
368
379
|
request_url = @base_url || @client.base_url
|
369
380
|
|
@@ -382,7 +393,7 @@ module Azure::ARM::EventHub
|
|
382
393
|
response_content = http_response.body
|
383
394
|
unless status_code == 200
|
384
395
|
error_model = JSON.load(response_content)
|
385
|
-
fail
|
396
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
386
397
|
end
|
387
398
|
|
388
399
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -390,8 +401,8 @@ module Azure::ARM::EventHub
|
|
390
401
|
if status_code == 200
|
391
402
|
begin
|
392
403
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
393
|
-
result_mapper =
|
394
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
404
|
+
result_mapper = Azure::ARM::EventHub::Models::Eventhub.mapper()
|
405
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
395
406
|
rescue Exception => e
|
396
407
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
397
408
|
end
|
@@ -406,13 +417,14 @@ module Azure::ARM::EventHub
|
|
406
417
|
#
|
407
418
|
# Gets the authorization rules for an Event Hub.
|
408
419
|
#
|
409
|
-
# @param resource_group_name [String]
|
410
|
-
#
|
411
|
-
# @param
|
420
|
+
# @param resource_group_name [String] Name of the resource group within the
|
421
|
+
# azure subscription.
|
422
|
+
# @param namespace_name [String] The Namespace name
|
423
|
+
# @param event_hub_name [String] The Event Hub name
|
412
424
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
413
425
|
# will be added to the HTTP request.
|
414
426
|
#
|
415
|
-
# @return [Array<
|
427
|
+
# @return [Array<AuthorizationRule>] operation results.
|
416
428
|
#
|
417
429
|
def list_authorization_rules(resource_group_name, namespace_name, event_hub_name, custom_headers = nil)
|
418
430
|
first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers)
|
@@ -422,9 +434,10 @@ module Azure::ARM::EventHub
|
|
422
434
|
#
|
423
435
|
# Gets the authorization rules for an Event Hub.
|
424
436
|
#
|
425
|
-
# @param resource_group_name [String]
|
426
|
-
#
|
427
|
-
# @param
|
437
|
+
# @param resource_group_name [String] Name of the resource group within the
|
438
|
+
# azure subscription.
|
439
|
+
# @param namespace_name [String] The Namespace name
|
440
|
+
# @param event_hub_name [String] The Event Hub name
|
428
441
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
429
442
|
# will be added to the HTTP request.
|
430
443
|
#
|
@@ -437,9 +450,10 @@ module Azure::ARM::EventHub
|
|
437
450
|
#
|
438
451
|
# Gets the authorization rules for an Event Hub.
|
439
452
|
#
|
440
|
-
# @param resource_group_name [String]
|
441
|
-
#
|
442
|
-
# @param
|
453
|
+
# @param resource_group_name [String] Name of the resource group within the
|
454
|
+
# azure subscription.
|
455
|
+
# @param namespace_name [String] The Namespace name
|
456
|
+
# @param event_hub_name [String] The Event Hub name
|
443
457
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
444
458
|
# to the HTTP request.
|
445
459
|
#
|
@@ -458,7 +472,7 @@ module Azure::ARM::EventHub
|
|
458
472
|
# Set Headers
|
459
473
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
460
474
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
461
|
-
path_template = '
|
475
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules'
|
462
476
|
|
463
477
|
request_url = @base_url || @client.base_url
|
464
478
|
|
@@ -477,7 +491,7 @@ module Azure::ARM::EventHub
|
|
477
491
|
response_content = http_response.body
|
478
492
|
unless status_code == 200
|
479
493
|
error_model = JSON.load(response_content)
|
480
|
-
fail
|
494
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
481
495
|
end
|
482
496
|
|
483
497
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -485,8 +499,8 @@ module Azure::ARM::EventHub
|
|
485
499
|
if status_code == 200
|
486
500
|
begin
|
487
501
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
488
|
-
result_mapper =
|
489
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
502
|
+
result_mapper = Azure::ARM::EventHub::Models::AuthorizationRuleListResult.mapper()
|
503
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
490
504
|
rescue Exception => e
|
491
505
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
492
506
|
end
|
@@ -499,18 +513,18 @@ module Azure::ARM::EventHub
|
|
499
513
|
end
|
500
514
|
|
501
515
|
#
|
502
|
-
# Creates or updates an
|
516
|
+
# Creates or updates an AuthorizationRule for the specified Event Hub.
|
503
517
|
#
|
504
|
-
# @param resource_group_name [String]
|
505
|
-
#
|
506
|
-
# @param
|
518
|
+
# @param resource_group_name [String] Name of the resource group within the
|
519
|
+
# azure subscription.
|
520
|
+
# @param namespace_name [String] The Namespace name
|
521
|
+
# @param event_hub_name [String] The Event Hub name
|
507
522
|
# @param authorization_rule_name [String] The authorization rule name.
|
508
|
-
# @param parameters [
|
509
|
-
# shared access authorization rule.
|
523
|
+
# @param parameters [AuthorizationRule] The shared access AuthorizationRule.
|
510
524
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
511
525
|
# will be added to the HTTP request.
|
512
526
|
#
|
513
|
-
# @return [
|
527
|
+
# @return [AuthorizationRule] operation results.
|
514
528
|
#
|
515
529
|
def create_or_update_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil)
|
516
530
|
response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
@@ -518,14 +532,14 @@ module Azure::ARM::EventHub
|
|
518
532
|
end
|
519
533
|
|
520
534
|
#
|
521
|
-
# Creates or updates an
|
535
|
+
# Creates or updates an AuthorizationRule for the specified Event Hub.
|
522
536
|
#
|
523
|
-
# @param resource_group_name [String]
|
524
|
-
#
|
525
|
-
# @param
|
537
|
+
# @param resource_group_name [String] Name of the resource group within the
|
538
|
+
# azure subscription.
|
539
|
+
# @param namespace_name [String] The Namespace name
|
540
|
+
# @param event_hub_name [String] The Event Hub name
|
526
541
|
# @param authorization_rule_name [String] The authorization rule name.
|
527
|
-
# @param parameters [
|
528
|
-
# shared access authorization rule.
|
542
|
+
# @param parameters [AuthorizationRule] The shared access AuthorizationRule.
|
529
543
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
530
544
|
# will be added to the HTTP request.
|
531
545
|
#
|
@@ -536,14 +550,14 @@ module Azure::ARM::EventHub
|
|
536
550
|
end
|
537
551
|
|
538
552
|
#
|
539
|
-
# Creates or updates an
|
553
|
+
# Creates or updates an AuthorizationRule for the specified Event Hub.
|
540
554
|
#
|
541
|
-
# @param resource_group_name [String]
|
542
|
-
#
|
543
|
-
# @param
|
555
|
+
# @param resource_group_name [String] Name of the resource group within the
|
556
|
+
# azure subscription.
|
557
|
+
# @param namespace_name [String] The Namespace name
|
558
|
+
# @param event_hub_name [String] The Event Hub name
|
544
559
|
# @param authorization_rule_name [String] The authorization rule name.
|
545
|
-
# @param parameters [
|
546
|
-
# shared access authorization rule.
|
560
|
+
# @param parameters [AuthorizationRule] The shared access AuthorizationRule.
|
547
561
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
548
562
|
# to the HTTP request.
|
549
563
|
#
|
@@ -568,11 +582,11 @@ module Azure::ARM::EventHub
|
|
568
582
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
569
583
|
|
570
584
|
# Serialize Request
|
571
|
-
request_mapper =
|
572
|
-
request_content = @client.serialize(request_mapper, parameters
|
585
|
+
request_mapper = Azure::ARM::EventHub::Models::AuthorizationRule.mapper()
|
586
|
+
request_content = @client.serialize(request_mapper, parameters)
|
573
587
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
574
588
|
|
575
|
-
path_template = '
|
589
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}'
|
576
590
|
|
577
591
|
request_url = @base_url || @client.base_url
|
578
592
|
|
@@ -592,7 +606,7 @@ module Azure::ARM::EventHub
|
|
592
606
|
response_content = http_response.body
|
593
607
|
unless status_code == 200
|
594
608
|
error_model = JSON.load(response_content)
|
595
|
-
fail
|
609
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
596
610
|
end
|
597
611
|
|
598
612
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -600,8 +614,8 @@ module Azure::ARM::EventHub
|
|
600
614
|
if status_code == 200
|
601
615
|
begin
|
602
616
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
603
|
-
result_mapper =
|
604
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
617
|
+
result_mapper = Azure::ARM::EventHub::Models::AuthorizationRule.mapper()
|
618
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
605
619
|
rescue Exception => e
|
606
620
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
607
621
|
end
|
@@ -614,16 +628,17 @@ module Azure::ARM::EventHub
|
|
614
628
|
end
|
615
629
|
|
616
630
|
#
|
617
|
-
# Gets an
|
631
|
+
# Gets an AuthorizationRule for an Event Hub by rule name.
|
618
632
|
#
|
619
|
-
# @param resource_group_name [String]
|
620
|
-
#
|
621
|
-
# @param
|
633
|
+
# @param resource_group_name [String] Name of the resource group within the
|
634
|
+
# azure subscription.
|
635
|
+
# @param namespace_name [String] The Namespace name
|
636
|
+
# @param event_hub_name [String] The Event Hub name
|
622
637
|
# @param authorization_rule_name [String] The authorization rule name.
|
623
638
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
624
639
|
# will be added to the HTTP request.
|
625
640
|
#
|
626
|
-
# @return [
|
641
|
+
# @return [AuthorizationRule] operation results.
|
627
642
|
#
|
628
643
|
def get_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil)
|
629
644
|
response = get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
@@ -631,11 +646,12 @@ module Azure::ARM::EventHub
|
|
631
646
|
end
|
632
647
|
|
633
648
|
#
|
634
|
-
# Gets an
|
649
|
+
# Gets an AuthorizationRule for an Event Hub by rule name.
|
635
650
|
#
|
636
|
-
# @param resource_group_name [String]
|
637
|
-
#
|
638
|
-
# @param
|
651
|
+
# @param resource_group_name [String] Name of the resource group within the
|
652
|
+
# azure subscription.
|
653
|
+
# @param namespace_name [String] The Namespace name
|
654
|
+
# @param event_hub_name [String] The Event Hub name
|
639
655
|
# @param authorization_rule_name [String] The authorization rule name.
|
640
656
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
641
657
|
# will be added to the HTTP request.
|
@@ -647,11 +663,12 @@ module Azure::ARM::EventHub
|
|
647
663
|
end
|
648
664
|
|
649
665
|
#
|
650
|
-
# Gets an
|
666
|
+
# Gets an AuthorizationRule for an Event Hub by rule name.
|
651
667
|
#
|
652
|
-
# @param resource_group_name [String]
|
653
|
-
#
|
654
|
-
# @param
|
668
|
+
# @param resource_group_name [String] Name of the resource group within the
|
669
|
+
# azure subscription.
|
670
|
+
# @param namespace_name [String] The Namespace name
|
671
|
+
# @param event_hub_name [String] The Event Hub name
|
655
672
|
# @param authorization_rule_name [String] The authorization rule name.
|
656
673
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
657
674
|
# to the HTTP request.
|
@@ -672,7 +689,7 @@ module Azure::ARM::EventHub
|
|
672
689
|
# Set Headers
|
673
690
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
674
691
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
675
|
-
path_template = '
|
692
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}'
|
676
693
|
|
677
694
|
request_url = @base_url || @client.base_url
|
678
695
|
|
@@ -691,7 +708,7 @@ module Azure::ARM::EventHub
|
|
691
708
|
response_content = http_response.body
|
692
709
|
unless status_code == 200
|
693
710
|
error_model = JSON.load(response_content)
|
694
|
-
fail
|
711
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
695
712
|
end
|
696
713
|
|
697
714
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -699,8 +716,8 @@ module Azure::ARM::EventHub
|
|
699
716
|
if status_code == 200
|
700
717
|
begin
|
701
718
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
702
|
-
result_mapper =
|
703
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
719
|
+
result_mapper = Azure::ARM::EventHub::Models::AuthorizationRule.mapper()
|
720
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
704
721
|
rescue Exception => e
|
705
722
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
706
723
|
end
|
@@ -713,11 +730,12 @@ module Azure::ARM::EventHub
|
|
713
730
|
end
|
714
731
|
|
715
732
|
#
|
716
|
-
# Deletes an Event
|
733
|
+
# Deletes an Event Hub AuthorizationRule.
|
717
734
|
#
|
718
|
-
# @param resource_group_name [String]
|
719
|
-
#
|
720
|
-
# @param
|
735
|
+
# @param resource_group_name [String] Name of the resource group within the
|
736
|
+
# azure subscription.
|
737
|
+
# @param namespace_name [String] The Namespace name
|
738
|
+
# @param event_hub_name [String] The Event Hub name
|
721
739
|
# @param authorization_rule_name [String] The authorization rule name.
|
722
740
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
723
741
|
# will be added to the HTTP request.
|
@@ -729,11 +747,12 @@ module Azure::ARM::EventHub
|
|
729
747
|
end
|
730
748
|
|
731
749
|
#
|
732
|
-
# Deletes an Event
|
750
|
+
# Deletes an Event Hub AuthorizationRule.
|
733
751
|
#
|
734
|
-
# @param resource_group_name [String]
|
735
|
-
#
|
736
|
-
# @param
|
752
|
+
# @param resource_group_name [String] Name of the resource group within the
|
753
|
+
# azure subscription.
|
754
|
+
# @param namespace_name [String] The Namespace name
|
755
|
+
# @param event_hub_name [String] The Event Hub name
|
737
756
|
# @param authorization_rule_name [String] The authorization rule name.
|
738
757
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
739
758
|
# will be added to the HTTP request.
|
@@ -745,11 +764,12 @@ module Azure::ARM::EventHub
|
|
745
764
|
end
|
746
765
|
|
747
766
|
#
|
748
|
-
# Deletes an Event
|
767
|
+
# Deletes an Event Hub AuthorizationRule.
|
749
768
|
#
|
750
|
-
# @param resource_group_name [String]
|
751
|
-
#
|
752
|
-
# @param
|
769
|
+
# @param resource_group_name [String] Name of the resource group within the
|
770
|
+
# azure subscription.
|
771
|
+
# @param namespace_name [String] The Namespace name
|
772
|
+
# @param event_hub_name [String] The Event Hub name
|
753
773
|
# @param authorization_rule_name [String] The authorization rule name.
|
754
774
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
755
775
|
# to the HTTP request.
|
@@ -770,7 +790,7 @@ module Azure::ARM::EventHub
|
|
770
790
|
# Set Headers
|
771
791
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
772
792
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
773
|
-
path_template = '
|
793
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}'
|
774
794
|
|
775
795
|
request_url = @base_url || @client.base_url
|
776
796
|
|
@@ -789,7 +809,7 @@ module Azure::ARM::EventHub
|
|
789
809
|
response_content = http_response.body
|
790
810
|
unless status_code == 204 || status_code == 200
|
791
811
|
error_model = JSON.load(response_content)
|
792
|
-
fail
|
812
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
793
813
|
end
|
794
814
|
|
795
815
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -803,15 +823,15 @@ module Azure::ARM::EventHub
|
|
803
823
|
#
|
804
824
|
# Gets the ACS and SAS connection strings for the Event Hub.
|
805
825
|
#
|
806
|
-
# @param resource_group_name [String]
|
807
|
-
#
|
808
|
-
# @param
|
809
|
-
# @param
|
810
|
-
#
|
826
|
+
# @param resource_group_name [String] Name of the resource group within the
|
827
|
+
# azure subscription.
|
828
|
+
# @param namespace_name [String] The Namespace name
|
829
|
+
# @param event_hub_name [String] The Event Hub name
|
830
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
811
831
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
812
832
|
# will be added to the HTTP request.
|
813
833
|
#
|
814
|
-
# @return [
|
834
|
+
# @return [AccessKeys] operation results.
|
815
835
|
#
|
816
836
|
def list_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil)
|
817
837
|
response = list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value!
|
@@ -821,11 +841,11 @@ module Azure::ARM::EventHub
|
|
821
841
|
#
|
822
842
|
# Gets the ACS and SAS connection strings for the Event Hub.
|
823
843
|
#
|
824
|
-
# @param resource_group_name [String]
|
825
|
-
#
|
826
|
-
# @param
|
827
|
-
# @param
|
828
|
-
#
|
844
|
+
# @param resource_group_name [String] Name of the resource group within the
|
845
|
+
# azure subscription.
|
846
|
+
# @param namespace_name [String] The Namespace name
|
847
|
+
# @param event_hub_name [String] The Event Hub name
|
848
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
829
849
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
830
850
|
# will be added to the HTTP request.
|
831
851
|
#
|
@@ -838,11 +858,11 @@ module Azure::ARM::EventHub
|
|
838
858
|
#
|
839
859
|
# Gets the ACS and SAS connection strings for the Event Hub.
|
840
860
|
#
|
841
|
-
# @param resource_group_name [String]
|
842
|
-
#
|
843
|
-
# @param
|
844
|
-
# @param
|
845
|
-
#
|
861
|
+
# @param resource_group_name [String] Name of the resource group within the
|
862
|
+
# azure subscription.
|
863
|
+
# @param namespace_name [String] The Namespace name
|
864
|
+
# @param event_hub_name [String] The Event Hub name
|
865
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
846
866
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
847
867
|
# to the HTTP request.
|
848
868
|
#
|
@@ -862,7 +882,7 @@ module Azure::ARM::EventHub
|
|
862
882
|
# Set Headers
|
863
883
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
864
884
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
865
|
-
path_template = '
|
885
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/ListKeys'
|
866
886
|
|
867
887
|
request_url = @base_url || @client.base_url
|
868
888
|
|
@@ -881,7 +901,7 @@ module Azure::ARM::EventHub
|
|
881
901
|
response_content = http_response.body
|
882
902
|
unless status_code == 200
|
883
903
|
error_model = JSON.load(response_content)
|
884
|
-
fail
|
904
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
885
905
|
end
|
886
906
|
|
887
907
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -889,8 +909,8 @@ module Azure::ARM::EventHub
|
|
889
909
|
if status_code == 200
|
890
910
|
begin
|
891
911
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
892
|
-
result_mapper =
|
893
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
912
|
+
result_mapper = Azure::ARM::EventHub::Models::AccessKeys.mapper()
|
913
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
894
914
|
rescue Exception => e
|
895
915
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
896
916
|
end
|
@@ -905,17 +925,17 @@ module Azure::ARM::EventHub
|
|
905
925
|
#
|
906
926
|
# Regenerates the ACS and SAS connection strings for the Event Hub.
|
907
927
|
#
|
908
|
-
# @param resource_group_name [String]
|
909
|
-
#
|
910
|
-
# @param
|
911
|
-
# @param
|
912
|
-
#
|
913
|
-
# @param parameters [
|
914
|
-
# regenerate the
|
928
|
+
# @param resource_group_name [String] Name of the resource group within the
|
929
|
+
# azure subscription.
|
930
|
+
# @param namespace_name [String] The Namespace name
|
931
|
+
# @param event_hub_name [String] The Event Hub name
|
932
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
933
|
+
# @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
|
934
|
+
# regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).
|
915
935
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
916
936
|
# will be added to the HTTP request.
|
917
937
|
#
|
918
|
-
# @return [
|
938
|
+
# @return [AccessKeys] operation results.
|
919
939
|
#
|
920
940
|
def regenerate_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil)
|
921
941
|
response = regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value!
|
@@ -925,13 +945,13 @@ module Azure::ARM::EventHub
|
|
925
945
|
#
|
926
946
|
# Regenerates the ACS and SAS connection strings for the Event Hub.
|
927
947
|
#
|
928
|
-
# @param resource_group_name [String]
|
929
|
-
#
|
930
|
-
# @param
|
931
|
-
# @param
|
932
|
-
#
|
933
|
-
# @param parameters [
|
934
|
-
# regenerate the
|
948
|
+
# @param resource_group_name [String] Name of the resource group within the
|
949
|
+
# azure subscription.
|
950
|
+
# @param namespace_name [String] The Namespace name
|
951
|
+
# @param event_hub_name [String] The Event Hub name
|
952
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
953
|
+
# @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
|
954
|
+
# regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).
|
935
955
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
936
956
|
# will be added to the HTTP request.
|
937
957
|
#
|
@@ -944,13 +964,13 @@ module Azure::ARM::EventHub
|
|
944
964
|
#
|
945
965
|
# Regenerates the ACS and SAS connection strings for the Event Hub.
|
946
966
|
#
|
947
|
-
# @param resource_group_name [String]
|
948
|
-
#
|
949
|
-
# @param
|
950
|
-
# @param
|
951
|
-
#
|
952
|
-
# @param parameters [
|
953
|
-
# regenerate the
|
967
|
+
# @param resource_group_name [String] Name of the resource group within the
|
968
|
+
# azure subscription.
|
969
|
+
# @param namespace_name [String] The Namespace name
|
970
|
+
# @param event_hub_name [String] The Event Hub name
|
971
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
972
|
+
# @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
|
973
|
+
# regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).
|
954
974
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
955
975
|
# to the HTTP request.
|
956
976
|
#
|
@@ -975,11 +995,11 @@ module Azure::ARM::EventHub
|
|
975
995
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
976
996
|
|
977
997
|
# Serialize Request
|
978
|
-
request_mapper =
|
979
|
-
request_content = @client.serialize(request_mapper, parameters
|
998
|
+
request_mapper = Azure::ARM::EventHub::Models::RegenerateAccessKeyParameters.mapper()
|
999
|
+
request_content = @client.serialize(request_mapper, parameters)
|
980
1000
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
981
1001
|
|
982
|
-
path_template = '
|
1002
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys'
|
983
1003
|
|
984
1004
|
request_url = @base_url || @client.base_url
|
985
1005
|
|
@@ -999,7 +1019,7 @@ module Azure::ARM::EventHub
|
|
999
1019
|
response_content = http_response.body
|
1000
1020
|
unless status_code == 200
|
1001
1021
|
error_model = JSON.load(response_content)
|
1002
|
-
fail
|
1022
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1003
1023
|
end
|
1004
1024
|
|
1005
1025
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -1007,8 +1027,8 @@ module Azure::ARM::EventHub
|
|
1007
1027
|
if status_code == 200
|
1008
1028
|
begin
|
1009
1029
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1010
|
-
result_mapper =
|
1011
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1030
|
+
result_mapper = Azure::ARM::EventHub::Models::AccessKeys.mapper()
|
1031
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1012
1032
|
rescue Exception => e
|
1013
1033
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1014
1034
|
end
|
@@ -1021,7 +1041,7 @@ module Azure::ARM::EventHub
|
|
1021
1041
|
end
|
1022
1042
|
|
1023
1043
|
#
|
1024
|
-
# Gets all the Event Hubs in a
|
1044
|
+
# Gets all the Event Hubs in a Namespace.
|
1025
1045
|
#
|
1026
1046
|
# @param next_page_link [String] The NextLink from the previous successful call
|
1027
1047
|
# to List operation.
|
@@ -1030,13 +1050,13 @@ module Azure::ARM::EventHub
|
|
1030
1050
|
#
|
1031
1051
|
# @return [EventHubListResult] operation results.
|
1032
1052
|
#
|
1033
|
-
def
|
1034
|
-
response =
|
1053
|
+
def list_by_namespace_next(next_page_link, custom_headers = nil)
|
1054
|
+
response = list_by_namespace_next_async(next_page_link, custom_headers).value!
|
1035
1055
|
response.body unless response.nil?
|
1036
1056
|
end
|
1037
1057
|
|
1038
1058
|
#
|
1039
|
-
# Gets all the Event Hubs in a
|
1059
|
+
# Gets all the Event Hubs in a Namespace.
|
1040
1060
|
#
|
1041
1061
|
# @param next_page_link [String] The NextLink from the previous successful call
|
1042
1062
|
# to List operation.
|
@@ -1045,12 +1065,12 @@ module Azure::ARM::EventHub
|
|
1045
1065
|
#
|
1046
1066
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1047
1067
|
#
|
1048
|
-
def
|
1049
|
-
|
1068
|
+
def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil)
|
1069
|
+
list_by_namespace_next_async(next_page_link, custom_headers).value!
|
1050
1070
|
end
|
1051
1071
|
|
1052
1072
|
#
|
1053
|
-
# Gets all the Event Hubs in a
|
1073
|
+
# Gets all the Event Hubs in a Namespace.
|
1054
1074
|
#
|
1055
1075
|
# @param next_page_link [String] The NextLink from the previous successful call
|
1056
1076
|
# to List operation.
|
@@ -1059,7 +1079,7 @@ module Azure::ARM::EventHub
|
|
1059
1079
|
#
|
1060
1080
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1061
1081
|
#
|
1062
|
-
def
|
1082
|
+
def list_by_namespace_next_async(next_page_link, custom_headers = nil)
|
1063
1083
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1064
1084
|
|
1065
1085
|
|
@@ -1086,7 +1106,7 @@ module Azure::ARM::EventHub
|
|
1086
1106
|
response_content = http_response.body
|
1087
1107
|
unless status_code == 200
|
1088
1108
|
error_model = JSON.load(response_content)
|
1089
|
-
fail
|
1109
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1090
1110
|
end
|
1091
1111
|
|
1092
1112
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -1094,8 +1114,8 @@ module Azure::ARM::EventHub
|
|
1094
1114
|
if status_code == 200
|
1095
1115
|
begin
|
1096
1116
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1097
|
-
result_mapper = EventHubListResult.mapper()
|
1098
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1117
|
+
result_mapper = Azure::ARM::EventHub::Models::EventHubListResult.mapper()
|
1118
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1099
1119
|
rescue Exception => e
|
1100
1120
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1101
1121
|
end
|
@@ -1115,7 +1135,7 @@ module Azure::ARM::EventHub
|
|
1115
1135
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1116
1136
|
# will be added to the HTTP request.
|
1117
1137
|
#
|
1118
|
-
# @return [
|
1138
|
+
# @return [AuthorizationRuleListResult] operation results.
|
1119
1139
|
#
|
1120
1140
|
def list_authorization_rules_next(next_page_link, custom_headers = nil)
|
1121
1141
|
response = list_authorization_rules_next_async(next_page_link, custom_headers).value!
|
@@ -1173,7 +1193,7 @@ module Azure::ARM::EventHub
|
|
1173
1193
|
response_content = http_response.body
|
1174
1194
|
unless status_code == 200
|
1175
1195
|
error_model = JSON.load(response_content)
|
1176
|
-
fail
|
1196
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1177
1197
|
end
|
1178
1198
|
|
1179
1199
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -1181,8 +1201,8 @@ module Azure::ARM::EventHub
|
|
1181
1201
|
if status_code == 200
|
1182
1202
|
begin
|
1183
1203
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1184
|
-
result_mapper =
|
1185
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1204
|
+
result_mapper = Azure::ARM::EventHub::Models::AuthorizationRuleListResult.mapper()
|
1205
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1186
1206
|
rescue Exception => e
|
1187
1207
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1188
1208
|
end
|
@@ -1195,22 +1215,23 @@ module Azure::ARM::EventHub
|
|
1195
1215
|
end
|
1196
1216
|
|
1197
1217
|
#
|
1198
|
-
# Gets all the Event Hubs in a
|
1218
|
+
# Gets all the Event Hubs in a Namespace.
|
1199
1219
|
#
|
1200
|
-
# @param resource_group_name [String]
|
1201
|
-
#
|
1220
|
+
# @param resource_group_name [String] Name of the resource group within the
|
1221
|
+
# azure subscription.
|
1222
|
+
# @param namespace_name [String] The Namespace name
|
1202
1223
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1203
1224
|
# will be added to the HTTP request.
|
1204
1225
|
#
|
1205
1226
|
# @return [EventHubListResult] which provide lazy access to pages of the
|
1206
1227
|
# response.
|
1207
1228
|
#
|
1208
|
-
def
|
1209
|
-
response =
|
1229
|
+
def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
|
1230
|
+
response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value!
|
1210
1231
|
unless response.nil?
|
1211
1232
|
page = response.body
|
1212
1233
|
page.next_method = Proc.new do |next_page_link|
|
1213
|
-
|
1234
|
+
list_by_namespace_next_async(next_page_link, custom_headers)
|
1214
1235
|
end
|
1215
1236
|
page
|
1216
1237
|
end
|
@@ -1219,14 +1240,15 @@ module Azure::ARM::EventHub
|
|
1219
1240
|
#
|
1220
1241
|
# Gets the authorization rules for an Event Hub.
|
1221
1242
|
#
|
1222
|
-
# @param resource_group_name [String]
|
1223
|
-
#
|
1224
|
-
# @param
|
1243
|
+
# @param resource_group_name [String] Name of the resource group within the
|
1244
|
+
# azure subscription.
|
1245
|
+
# @param namespace_name [String] The Namespace name
|
1246
|
+
# @param event_hub_name [String] The Event Hub name
|
1225
1247
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1226
1248
|
# will be added to the HTTP request.
|
1227
1249
|
#
|
1228
|
-
# @return [
|
1229
|
-
#
|
1250
|
+
# @return [AuthorizationRuleListResult] which provide lazy access to pages of
|
1251
|
+
# the response.
|
1230
1252
|
#
|
1231
1253
|
def list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers = nil)
|
1232
1254
|
response = list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|