azure_mgmt_event_hub 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ae36d3f6ee2bed199c5d3feb418926baa063a1f
|
4
|
+
data.tar.gz: 647f76c9c8d7945e34b4f6c2c2503221bbe18963
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42e027ee1fc05912530d0af30bcb5765cf9f39c16ccd8720b5bbe58b827c1f0984da110f8efbfda72bb89ff1e28a1f79a48dbc6ad57a835d6000a99235f9ff2c
|
7
|
+
data.tar.gz: fbaf1828f93386223075f8160f6df52594b9875ae49d54f22945c5265eb9c7abdc3accb880374551e070993ee223a8848ff9a9ea2e5e461564e738009c2aa9ca
|
@@ -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
|
|
@@ -20,31 +20,39 @@ require 'generated/azure_mgmt_event_hub/module_definition'
|
|
20
20
|
require 'ms_rest_azure'
|
21
21
|
|
22
22
|
module Azure::ARM::EventHub
|
23
|
+
autoload :Operations, 'generated/azure_mgmt_event_hub/operations.rb'
|
23
24
|
autoload :Namespaces, 'generated/azure_mgmt_event_hub/namespaces.rb'
|
24
25
|
autoload :EventHubs, 'generated/azure_mgmt_event_hub/event_hubs.rb'
|
25
26
|
autoload :ConsumerGroups, 'generated/azure_mgmt_event_hub/consumer_groups.rb'
|
26
27
|
autoload :EventHubManagementClient, 'generated/azure_mgmt_event_hub/event_hub_management_client.rb'
|
27
28
|
|
28
29
|
module Models
|
29
|
-
autoload :
|
30
|
-
autoload :
|
31
|
-
autoload :
|
32
|
-
autoload :EventHubCreateOrUpdateParameters, 'generated/azure_mgmt_event_hub/models/event_hub_create_or_update_parameters.rb'
|
33
|
-
autoload :NamespaceListResult, 'generated/azure_mgmt_event_hub/models/namespace_list_result.rb'
|
34
|
-
autoload :SharedAccessAuthorizationRuleCreateOrUpdateParameters, 'generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_create_or_update_parameters.rb'
|
35
|
-
autoload :ConsumerGroupListResult, 'generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb'
|
36
|
-
autoload :SharedAccessAuthorizationRuleListResult, 'generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb'
|
37
|
-
autoload :ConsumerGroupCreateOrUpdateParameters, 'generated/azure_mgmt_event_hub/models/consumer_group_create_or_update_parameters.rb'
|
30
|
+
autoload :CaptureDescription, 'generated/azure_mgmt_event_hub/models/capture_description.rb'
|
31
|
+
autoload :RegenerateAccessKeyParameters, 'generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb'
|
32
|
+
autoload :Destination, 'generated/azure_mgmt_event_hub/models/destination.rb'
|
38
33
|
autoload :Sku, 'generated/azure_mgmt_event_hub/models/sku.rb'
|
34
|
+
autoload :OperationDisplay, 'generated/azure_mgmt_event_hub/models/operation_display.rb'
|
35
|
+
autoload :EHNamespaceListResult, 'generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb'
|
36
|
+
autoload :AuthorizationRuleListResult, 'generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb'
|
39
37
|
autoload :EventHubListResult, 'generated/azure_mgmt_event_hub/models/event_hub_list_result.rb'
|
40
|
-
autoload :
|
41
|
-
autoload :
|
42
|
-
autoload :
|
43
|
-
autoload :
|
38
|
+
autoload :ErrorResponse, 'generated/azure_mgmt_event_hub/models/error_response.rb'
|
39
|
+
autoload :Operation, 'generated/azure_mgmt_event_hub/models/operation.rb'
|
40
|
+
autoload :ConsumerGroupListResult, 'generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb'
|
41
|
+
autoload :OperationListResult, 'generated/azure_mgmt_event_hub/models/operation_list_result.rb'
|
42
|
+
autoload :CheckNameAvailabilityParameter, 'generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb'
|
43
|
+
autoload :AccessKeys, 'generated/azure_mgmt_event_hub/models/access_keys.rb'
|
44
|
+
autoload :CheckNameAvailabilityResult, 'generated/azure_mgmt_event_hub/models/check_name_availability_result.rb'
|
45
|
+
autoload :TrackedResource, 'generated/azure_mgmt_event_hub/models/tracked_resource.rb'
|
46
|
+
autoload :EHNamespace, 'generated/azure_mgmt_event_hub/models/ehnamespace.rb'
|
47
|
+
autoload :AuthorizationRule, 'generated/azure_mgmt_event_hub/models/authorization_rule.rb'
|
48
|
+
autoload :Eventhub, 'generated/azure_mgmt_event_hub/models/eventhub.rb'
|
49
|
+
autoload :ConsumerGroup, 'generated/azure_mgmt_event_hub/models/consumer_group.rb'
|
44
50
|
autoload :SkuName, 'generated/azure_mgmt_event_hub/models/sku_name.rb'
|
45
51
|
autoload :SkuTier, 'generated/azure_mgmt_event_hub/models/sku_tier.rb'
|
46
52
|
autoload :AccessRights, 'generated/azure_mgmt_event_hub/models/access_rights.rb'
|
47
|
-
autoload :
|
53
|
+
autoload :KeyType, 'generated/azure_mgmt_event_hub/models/key_type.rb'
|
48
54
|
autoload :EntityStatus, 'generated/azure_mgmt_event_hub/models/entity_status.rb'
|
55
|
+
autoload :EncodingCaptureDescription, 'generated/azure_mgmt_event_hub/models/encoding_capture_description.rb'
|
56
|
+
autoload :UnavailableReason, 'generated/azure_mgmt_event_hub/models/unavailable_reason.rb'
|
49
57
|
end
|
50
58
|
end
|
@@ -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 ConsumerGroups
|
11
|
-
include Azure::ARM::EventHub::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -24,18 +23,19 @@ module Azure::ARM::EventHub
|
|
24
23
|
|
25
24
|
#
|
26
25
|
# Creates or updates an Event Hubs consumer group as a nested resource within a
|
27
|
-
#
|
28
|
-
#
|
29
|
-
# @param resource_group_name [String]
|
30
|
-
#
|
31
|
-
# @param
|
32
|
-
# @param
|
33
|
-
# @param
|
34
|
-
# to create
|
26
|
+
# Namespace.
|
27
|
+
#
|
28
|
+
# @param resource_group_name [String] Name of the resource group within the
|
29
|
+
# azure subscription.
|
30
|
+
# @param namespace_name [String] The Namespace name
|
31
|
+
# @param event_hub_name [String] The Event Hub name
|
32
|
+
# @param consumer_group_name [String] The consumer group name
|
33
|
+
# @param parameters [ConsumerGroup] Parameters supplied to create or update a
|
34
|
+
# consumer group resource.
|
35
35
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
36
|
# will be added to the HTTP request.
|
37
37
|
#
|
38
|
-
# @return [
|
38
|
+
# @return [ConsumerGroup] operation results.
|
39
39
|
#
|
40
40
|
def create_or_update(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers = nil)
|
41
41
|
response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers).value!
|
@@ -44,14 +44,15 @@ module Azure::ARM::EventHub
|
|
44
44
|
|
45
45
|
#
|
46
46
|
# Creates or updates an Event Hubs consumer group as a nested resource within a
|
47
|
-
#
|
48
|
-
#
|
49
|
-
# @param resource_group_name [String]
|
50
|
-
#
|
51
|
-
# @param
|
52
|
-
# @param
|
53
|
-
# @param
|
54
|
-
# to create
|
47
|
+
# Namespace.
|
48
|
+
#
|
49
|
+
# @param resource_group_name [String] Name of the resource group within the
|
50
|
+
# azure subscription.
|
51
|
+
# @param namespace_name [String] The Namespace name
|
52
|
+
# @param event_hub_name [String] The Event Hub name
|
53
|
+
# @param consumer_group_name [String] The consumer group name
|
54
|
+
# @param parameters [ConsumerGroup] Parameters supplied to create or update a
|
55
|
+
# consumer group resource.
|
55
56
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
56
57
|
# will be added to the HTTP request.
|
57
58
|
#
|
@@ -63,14 +64,15 @@ module Azure::ARM::EventHub
|
|
63
64
|
|
64
65
|
#
|
65
66
|
# Creates or updates an Event Hubs consumer group as a nested resource within a
|
66
|
-
#
|
67
|
-
#
|
68
|
-
# @param resource_group_name [String]
|
69
|
-
#
|
70
|
-
# @param
|
71
|
-
# @param
|
72
|
-
# @param
|
73
|
-
# to create
|
67
|
+
# Namespace.
|
68
|
+
#
|
69
|
+
# @param resource_group_name [String] Name of the resource group within the
|
70
|
+
# azure subscription.
|
71
|
+
# @param namespace_name [String] The Namespace name
|
72
|
+
# @param event_hub_name [String] The Event Hub name
|
73
|
+
# @param consumer_group_name [String] The consumer group name
|
74
|
+
# @param parameters [ConsumerGroup] Parameters supplied to create or update a
|
75
|
+
# consumer group resource.
|
74
76
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
75
77
|
# to the HTTP request.
|
76
78
|
#
|
@@ -95,11 +97,11 @@ module Azure::ARM::EventHub
|
|
95
97
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
96
98
|
|
97
99
|
# Serialize Request
|
98
|
-
request_mapper =
|
99
|
-
request_content = @client.serialize(request_mapper, parameters
|
100
|
+
request_mapper = Azure::ARM::EventHub::Models::ConsumerGroup.mapper()
|
101
|
+
request_content = @client.serialize(request_mapper, parameters)
|
100
102
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
101
103
|
|
102
|
-
path_template = '
|
104
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}'
|
103
105
|
|
104
106
|
request_url = @base_url || @client.base_url
|
105
107
|
|
@@ -119,7 +121,7 @@ module Azure::ARM::EventHub
|
|
119
121
|
response_content = http_response.body
|
120
122
|
unless status_code == 200
|
121
123
|
error_model = JSON.load(response_content)
|
122
|
-
fail
|
124
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
123
125
|
end
|
124
126
|
|
125
127
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -127,8 +129,8 @@ module Azure::ARM::EventHub
|
|
127
129
|
if status_code == 200
|
128
130
|
begin
|
129
131
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
130
|
-
result_mapper =
|
131
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
132
|
+
result_mapper = Azure::ARM::EventHub::Models::ConsumerGroup.mapper()
|
133
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
132
134
|
rescue Exception => e
|
133
135
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
134
136
|
end
|
@@ -143,10 +145,11 @@ module Azure::ARM::EventHub
|
|
143
145
|
#
|
144
146
|
# Deletes a consumer group from the specified Event Hub and resource group.
|
145
147
|
#
|
146
|
-
# @param resource_group_name [String]
|
147
|
-
#
|
148
|
-
# @param
|
149
|
-
# @param
|
148
|
+
# @param resource_group_name [String] Name of the resource group within the
|
149
|
+
# azure subscription.
|
150
|
+
# @param namespace_name [String] The Namespace name
|
151
|
+
# @param event_hub_name [String] The Event Hub name
|
152
|
+
# @param consumer_group_name [String] The consumer group name
|
150
153
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
151
154
|
# will be added to the HTTP request.
|
152
155
|
#
|
@@ -159,10 +162,11 @@ module Azure::ARM::EventHub
|
|
159
162
|
#
|
160
163
|
# Deletes a consumer group from the specified Event Hub and resource group.
|
161
164
|
#
|
162
|
-
# @param resource_group_name [String]
|
163
|
-
#
|
164
|
-
# @param
|
165
|
-
# @param
|
165
|
+
# @param resource_group_name [String] Name of the resource group within the
|
166
|
+
# azure subscription.
|
167
|
+
# @param namespace_name [String] The Namespace name
|
168
|
+
# @param event_hub_name [String] The Event Hub name
|
169
|
+
# @param consumer_group_name [String] The consumer group name
|
166
170
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
167
171
|
# will be added to the HTTP request.
|
168
172
|
#
|
@@ -175,10 +179,11 @@ module Azure::ARM::EventHub
|
|
175
179
|
#
|
176
180
|
# Deletes a consumer group from the specified Event Hub and resource group.
|
177
181
|
#
|
178
|
-
# @param resource_group_name [String]
|
179
|
-
#
|
180
|
-
# @param
|
181
|
-
# @param
|
182
|
+
# @param resource_group_name [String] Name of the resource group within the
|
183
|
+
# azure subscription.
|
184
|
+
# @param namespace_name [String] The Namespace name
|
185
|
+
# @param event_hub_name [String] The Event Hub name
|
186
|
+
# @param consumer_group_name [String] The consumer group name
|
182
187
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
183
188
|
# to the HTTP request.
|
184
189
|
#
|
@@ -198,7 +203,7 @@ module Azure::ARM::EventHub
|
|
198
203
|
# Set Headers
|
199
204
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
200
205
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
201
|
-
path_template = '
|
206
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}'
|
202
207
|
|
203
208
|
request_url = @base_url || @client.base_url
|
204
209
|
|
@@ -217,7 +222,7 @@ module Azure::ARM::EventHub
|
|
217
222
|
response_content = http_response.body
|
218
223
|
unless status_code == 204 || status_code == 200
|
219
224
|
error_model = JSON.load(response_content)
|
220
|
-
fail
|
225
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
221
226
|
end
|
222
227
|
|
223
228
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -231,14 +236,15 @@ module Azure::ARM::EventHub
|
|
231
236
|
#
|
232
237
|
# Gets a description for the specified consumer group.
|
233
238
|
#
|
234
|
-
# @param resource_group_name [String]
|
235
|
-
#
|
236
|
-
# @param
|
237
|
-
# @param
|
239
|
+
# @param resource_group_name [String] Name of the resource group within the
|
240
|
+
# azure subscription.
|
241
|
+
# @param namespace_name [String] The Namespace name
|
242
|
+
# @param event_hub_name [String] The Event Hub name
|
243
|
+
# @param consumer_group_name [String] The consumer group name
|
238
244
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
239
245
|
# will be added to the HTTP request.
|
240
246
|
#
|
241
|
-
# @return [
|
247
|
+
# @return [ConsumerGroup] operation results.
|
242
248
|
#
|
243
249
|
def get(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil)
|
244
250
|
response = get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value!
|
@@ -248,10 +254,11 @@ module Azure::ARM::EventHub
|
|
248
254
|
#
|
249
255
|
# Gets a description for the specified consumer group.
|
250
256
|
#
|
251
|
-
# @param resource_group_name [String]
|
252
|
-
#
|
253
|
-
# @param
|
254
|
-
# @param
|
257
|
+
# @param resource_group_name [String] Name of the resource group within the
|
258
|
+
# azure subscription.
|
259
|
+
# @param namespace_name [String] The Namespace name
|
260
|
+
# @param event_hub_name [String] The Event Hub name
|
261
|
+
# @param consumer_group_name [String] The consumer group name
|
255
262
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
256
263
|
# will be added to the HTTP request.
|
257
264
|
#
|
@@ -264,10 +271,11 @@ module Azure::ARM::EventHub
|
|
264
271
|
#
|
265
272
|
# Gets a description for the specified consumer group.
|
266
273
|
#
|
267
|
-
# @param resource_group_name [String]
|
268
|
-
#
|
269
|
-
# @param
|
270
|
-
# @param
|
274
|
+
# @param resource_group_name [String] Name of the resource group within the
|
275
|
+
# azure subscription.
|
276
|
+
# @param namespace_name [String] The Namespace name
|
277
|
+
# @param event_hub_name [String] The Event Hub name
|
278
|
+
# @param consumer_group_name [String] The consumer group name
|
271
279
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
272
280
|
# to the HTTP request.
|
273
281
|
#
|
@@ -287,7 +295,7 @@ module Azure::ARM::EventHub
|
|
287
295
|
# Set Headers
|
288
296
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
289
297
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
290
|
-
path_template = '
|
298
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}'
|
291
299
|
|
292
300
|
request_url = @base_url || @client.base_url
|
293
301
|
|
@@ -306,7 +314,7 @@ module Azure::ARM::EventHub
|
|
306
314
|
response_content = http_response.body
|
307
315
|
unless status_code == 200
|
308
316
|
error_model = JSON.load(response_content)
|
309
|
-
fail
|
317
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
310
318
|
end
|
311
319
|
|
312
320
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -314,8 +322,8 @@ module Azure::ARM::EventHub
|
|
314
322
|
if status_code == 200
|
315
323
|
begin
|
316
324
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
317
|
-
result_mapper =
|
318
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
325
|
+
result_mapper = Azure::ARM::EventHub::Models::ConsumerGroup.mapper()
|
326
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
319
327
|
rescue Exception => e
|
320
328
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
321
329
|
end
|
@@ -328,51 +336,54 @@ module Azure::ARM::EventHub
|
|
328
336
|
end
|
329
337
|
|
330
338
|
#
|
331
|
-
# Gets all the consumer groups in a
|
332
|
-
# consumer group exists in the
|
339
|
+
# Gets all the consumer groups in a Namespace. An empty feed is returned if no
|
340
|
+
# consumer group exists in the Namespace.
|
333
341
|
#
|
334
|
-
# @param resource_group_name [String]
|
335
|
-
#
|
336
|
-
# @param
|
342
|
+
# @param resource_group_name [String] Name of the resource group within the
|
343
|
+
# azure subscription.
|
344
|
+
# @param namespace_name [String] The Namespace name
|
345
|
+
# @param event_hub_name [String] The Event Hub name
|
337
346
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
338
347
|
# will be added to the HTTP request.
|
339
348
|
#
|
340
|
-
# @return [Array<
|
349
|
+
# @return [Array<ConsumerGroup>] operation results.
|
341
350
|
#
|
342
|
-
def
|
343
|
-
first_page =
|
351
|
+
def list_by_event_hub(resource_group_name, namespace_name, event_hub_name, custom_headers = nil)
|
352
|
+
first_page = list_by_event_hub_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers)
|
344
353
|
first_page.get_all_items
|
345
354
|
end
|
346
355
|
|
347
356
|
#
|
348
|
-
# Gets all the consumer groups in a
|
349
|
-
# consumer group exists in the
|
357
|
+
# Gets all the consumer groups in a Namespace. An empty feed is returned if no
|
358
|
+
# consumer group exists in the Namespace.
|
350
359
|
#
|
351
|
-
# @param resource_group_name [String]
|
352
|
-
#
|
353
|
-
# @param
|
360
|
+
# @param resource_group_name [String] Name of the resource group within the
|
361
|
+
# azure subscription.
|
362
|
+
# @param namespace_name [String] The Namespace name
|
363
|
+
# @param event_hub_name [String] The Event Hub name
|
354
364
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
355
365
|
# will be added to the HTTP request.
|
356
366
|
#
|
357
367
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
358
368
|
#
|
359
|
-
def
|
360
|
-
|
369
|
+
def list_by_event_hub_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers = nil)
|
370
|
+
list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
361
371
|
end
|
362
372
|
|
363
373
|
#
|
364
|
-
# Gets all the consumer groups in a
|
365
|
-
# consumer group exists in the
|
374
|
+
# Gets all the consumer groups in a Namespace. An empty feed is returned if no
|
375
|
+
# consumer group exists in the Namespace.
|
366
376
|
#
|
367
|
-
# @param resource_group_name [String]
|
368
|
-
#
|
369
|
-
# @param
|
377
|
+
# @param resource_group_name [String] Name of the resource group within the
|
378
|
+
# azure subscription.
|
379
|
+
# @param namespace_name [String] The Namespace name
|
380
|
+
# @param event_hub_name [String] The Event Hub name
|
370
381
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
371
382
|
# to the HTTP request.
|
372
383
|
#
|
373
384
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
374
385
|
#
|
375
|
-
def
|
386
|
+
def list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, custom_headers = nil)
|
376
387
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
377
388
|
fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
|
378
389
|
fail ArgumentError, 'event_hub_name is nil' if event_hub_name.nil?
|
@@ -385,7 +396,7 @@ module Azure::ARM::EventHub
|
|
385
396
|
# Set Headers
|
386
397
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
387
398
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
388
|
-
path_template = '
|
399
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups'
|
389
400
|
|
390
401
|
request_url = @base_url || @client.base_url
|
391
402
|
|
@@ -404,7 +415,7 @@ module Azure::ARM::EventHub
|
|
404
415
|
response_content = http_response.body
|
405
416
|
unless status_code == 200
|
406
417
|
error_model = JSON.load(response_content)
|
407
|
-
fail
|
418
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
408
419
|
end
|
409
420
|
|
410
421
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -412,8 +423,8 @@ module Azure::ARM::EventHub
|
|
412
423
|
if status_code == 200
|
413
424
|
begin
|
414
425
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
415
|
-
result_mapper = ConsumerGroupListResult.mapper()
|
416
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
426
|
+
result_mapper = Azure::ARM::EventHub::Models::ConsumerGroupListResult.mapper()
|
427
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
417
428
|
rescue Exception => e
|
418
429
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
419
430
|
end
|
@@ -426,8 +437,8 @@ module Azure::ARM::EventHub
|
|
426
437
|
end
|
427
438
|
|
428
439
|
#
|
429
|
-
# Gets all the consumer groups in a
|
430
|
-
# consumer group exists in the
|
440
|
+
# Gets all the consumer groups in a Namespace. An empty feed is returned if no
|
441
|
+
# consumer group exists in the Namespace.
|
431
442
|
#
|
432
443
|
# @param next_page_link [String] The NextLink from the previous successful call
|
433
444
|
# to List operation.
|
@@ -436,14 +447,14 @@ module Azure::ARM::EventHub
|
|
436
447
|
#
|
437
448
|
# @return [ConsumerGroupListResult] operation results.
|
438
449
|
#
|
439
|
-
def
|
440
|
-
response =
|
450
|
+
def list_by_event_hub_next(next_page_link, custom_headers = nil)
|
451
|
+
response = list_by_event_hub_next_async(next_page_link, custom_headers).value!
|
441
452
|
response.body unless response.nil?
|
442
453
|
end
|
443
454
|
|
444
455
|
#
|
445
|
-
# Gets all the consumer groups in a
|
446
|
-
# consumer group exists in the
|
456
|
+
# Gets all the consumer groups in a Namespace. An empty feed is returned if no
|
457
|
+
# consumer group exists in the Namespace.
|
447
458
|
#
|
448
459
|
# @param next_page_link [String] The NextLink from the previous successful call
|
449
460
|
# to List operation.
|
@@ -452,13 +463,13 @@ module Azure::ARM::EventHub
|
|
452
463
|
#
|
453
464
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
454
465
|
#
|
455
|
-
def
|
456
|
-
|
466
|
+
def list_by_event_hub_next_with_http_info(next_page_link, custom_headers = nil)
|
467
|
+
list_by_event_hub_next_async(next_page_link, custom_headers).value!
|
457
468
|
end
|
458
469
|
|
459
470
|
#
|
460
|
-
# Gets all the consumer groups in a
|
461
|
-
# consumer group exists in the
|
471
|
+
# Gets all the consumer groups in a Namespace. An empty feed is returned if no
|
472
|
+
# consumer group exists in the Namespace.
|
462
473
|
#
|
463
474
|
# @param next_page_link [String] The NextLink from the previous successful call
|
464
475
|
# to List operation.
|
@@ -467,7 +478,7 @@ module Azure::ARM::EventHub
|
|
467
478
|
#
|
468
479
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
469
480
|
#
|
470
|
-
def
|
481
|
+
def list_by_event_hub_next_async(next_page_link, custom_headers = nil)
|
471
482
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
472
483
|
|
473
484
|
|
@@ -494,7 +505,7 @@ module Azure::ARM::EventHub
|
|
494
505
|
response_content = http_response.body
|
495
506
|
unless status_code == 200
|
496
507
|
error_model = JSON.load(response_content)
|
497
|
-
fail
|
508
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
498
509
|
end
|
499
510
|
|
500
511
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -502,8 +513,8 @@ module Azure::ARM::EventHub
|
|
502
513
|
if status_code == 200
|
503
514
|
begin
|
504
515
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
505
|
-
result_mapper = ConsumerGroupListResult.mapper()
|
506
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
516
|
+
result_mapper = Azure::ARM::EventHub::Models::ConsumerGroupListResult.mapper()
|
517
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
507
518
|
rescue Exception => e
|
508
519
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
509
520
|
end
|
@@ -516,24 +527,25 @@ module Azure::ARM::EventHub
|
|
516
527
|
end
|
517
528
|
|
518
529
|
#
|
519
|
-
# Gets all the consumer groups in a
|
520
|
-
# consumer group exists in the
|
530
|
+
# Gets all the consumer groups in a Namespace. An empty feed is returned if no
|
531
|
+
# consumer group exists in the Namespace.
|
521
532
|
#
|
522
|
-
# @param resource_group_name [String]
|
523
|
-
#
|
524
|
-
# @param
|
533
|
+
# @param resource_group_name [String] Name of the resource group within the
|
534
|
+
# azure subscription.
|
535
|
+
# @param namespace_name [String] The Namespace name
|
536
|
+
# @param event_hub_name [String] The Event Hub name
|
525
537
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
526
538
|
# will be added to the HTTP request.
|
527
539
|
#
|
528
540
|
# @return [ConsumerGroupListResult] which provide lazy access to pages of the
|
529
541
|
# response.
|
530
542
|
#
|
531
|
-
def
|
532
|
-
response =
|
543
|
+
def list_by_event_hub_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers = nil)
|
544
|
+
response = list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value!
|
533
545
|
unless response.nil?
|
534
546
|
page = response.body
|
535
547
|
page.next_method = Proc.new do |next_page_link|
|
536
|
-
|
548
|
+
list_by_event_hub_next_async(next_page_link, custom_headers)
|
537
549
|
end
|
538
550
|
page
|
539
551
|
end
|