azure_mgmt_event_hub 0.15.2 → 0.16.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/2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb +33 -30
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +4 -1
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb +78 -72
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb +113 -107
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/operations.rb +15 -13
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb +33 -30
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb +595 -40
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +4 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb +78 -72
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb +14 -2
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/capture_description.rb +3 -2
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/eventhub.rb +0 -2
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb +113 -107
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/operations.rb +15 -13
- data/lib/profiles/latest/eventhub_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/eventhub_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/eventhub_profile_module.rb +128 -109
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -29,8 +29,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
29
29
|
#
|
30
30
|
# @return [Array<Operation>] operation results.
|
31
31
|
#
|
32
|
-
def list(custom_headers
|
33
|
-
first_page = list_as_lazy(custom_headers)
|
32
|
+
def list(custom_headers:nil)
|
33
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
34
34
|
first_page.get_all_items
|
35
35
|
end
|
36
36
|
|
@@ -42,8 +42,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
42
42
|
#
|
43
43
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
44
|
#
|
45
|
-
def list_with_http_info(custom_headers
|
46
|
-
list_async(custom_headers).value!
|
45
|
+
def list_with_http_info(custom_headers:nil)
|
46
|
+
list_async(custom_headers:custom_headers).value!
|
47
47
|
end
|
48
48
|
|
49
49
|
#
|
@@ -54,11 +54,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
54
54
|
#
|
55
55
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
56
|
#
|
57
|
-
def list_async(custom_headers
|
57
|
+
def list_async(custom_headers:nil)
|
58
58
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
59
|
|
60
60
|
|
61
61
|
request_headers = {}
|
62
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
62
63
|
|
63
64
|
# Set Headers
|
64
65
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -112,8 +113,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
112
113
|
#
|
113
114
|
# @return [OperationListResult] operation results.
|
114
115
|
#
|
115
|
-
def list_next(next_page_link, custom_headers
|
116
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
116
|
+
def list_next(next_page_link, custom_headers:nil)
|
117
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
117
118
|
response.body unless response.nil?
|
118
119
|
end
|
119
120
|
|
@@ -127,8 +128,8 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
127
128
|
#
|
128
129
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
129
130
|
#
|
130
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
131
|
-
list_next_async(next_page_link, custom_headers).value!
|
131
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
132
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
132
133
|
end
|
133
134
|
|
134
135
|
#
|
@@ -141,11 +142,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
141
142
|
#
|
142
143
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
143
144
|
#
|
144
|
-
def list_next_async(next_page_link, custom_headers
|
145
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
145
146
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
146
147
|
|
147
148
|
|
148
149
|
request_headers = {}
|
150
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
149
151
|
|
150
152
|
# Set Headers
|
151
153
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -198,12 +200,12 @@ module Azure::EventHub::Mgmt::V2017_04_01
|
|
198
200
|
# @return [OperationListResult] which provide lazy access to pages of the
|
199
201
|
# response.
|
200
202
|
#
|
201
|
-
def list_as_lazy(custom_headers
|
202
|
-
response = list_async(custom_headers).value!
|
203
|
+
def list_as_lazy(custom_headers:nil)
|
204
|
+
response = list_async(custom_headers:custom_headers).value!
|
203
205
|
unless response.nil?
|
204
206
|
page = response.body
|
205
207
|
page.next_method = Proc.new do |next_page_link|
|
206
|
-
list_next_async(next_page_link, custom_headers)
|
208
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
207
209
|
end
|
208
210
|
page
|
209
211
|
end
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/latest/eventhub_module_definition'
|
6
6
|
require 'profiles/latest/modules/eventhub_profile_module'
|
7
7
|
|
8
|
-
module Azure::EventHub::Profiles::Latest
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::EventHub::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < EventHubManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
14
15
|
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
15
37
|
|
16
|
-
def initialize(options = {})
|
17
|
-
super(options)
|
18
38
|
end
|
19
|
-
|
20
39
|
end
|
21
40
|
end
|
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'azure_mgmt_event_hub'
|
6
6
|
|
7
|
-
module Azure::EventHub::Profiles::Latest
|
7
|
+
module Azure::EventHub::Profiles::Latest
|
8
|
+
module Mgmt
|
8
9
|
Operations = Azure::EventHub::Mgmt::V2017_04_01::Operations
|
9
10
|
Namespaces = Azure::EventHub::Mgmt::V2017_04_01::Namespaces
|
10
11
|
DisasterRecoveryConfigs = Azure::EventHub::Mgmt::V2017_04_01::DisasterRecoveryConfigs
|
@@ -47,9 +48,9 @@ module Azure::EventHub::Profiles::Latest::Mgmt
|
|
47
48
|
end
|
48
49
|
|
49
50
|
#
|
50
|
-
#
|
51
|
+
# EventHubManagementClass
|
51
52
|
#
|
52
|
-
class
|
53
|
+
class EventHubManagementClass
|
53
54
|
attr_reader :operations, :namespaces, :disaster_recovery_configs, :event_hubs, :consumer_groups, :configurable, :base_url, :options, :model_classes
|
54
55
|
|
55
56
|
def initialize(options = {})
|
@@ -61,118 +62,136 @@ module Azure::EventHub::Profiles::Latest::Mgmt
|
|
61
62
|
|
62
63
|
reset!(options)
|
63
64
|
|
64
|
-
@configurable
|
65
|
+
@configurable = self
|
66
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
67
|
+
@options = options[:options].nil? ? nil:options[:options]
|
65
68
|
|
66
|
-
client_0 = Azure::EventHub::Mgmt::V2017_04_01::EventHubManagementClient.new(configurable.credentials, base_url, options)
|
67
|
-
if(client_0.respond_to?(:subscription_id))
|
68
|
-
client_0.subscription_id = configurable.subscription_id
|
69
|
-
end
|
70
|
-
@
|
71
|
-
@
|
72
|
-
@
|
73
|
-
@
|
74
|
-
@
|
69
|
+
@client_0 = Azure::EventHub::Mgmt::V2017_04_01::EventHubManagementClient.new(configurable.credentials, base_url, options)
|
70
|
+
if(@client_0.respond_to?(:subscription_id))
|
71
|
+
@client_0.subscription_id = configurable.subscription_id
|
72
|
+
end
|
73
|
+
add_telemetry(@client_0)
|
74
|
+
@operations = @client_0.operations
|
75
|
+
@namespaces = @client_0.namespaces
|
76
|
+
@disaster_recovery_configs = @client_0.disaster_recovery_configs
|
77
|
+
@event_hubs = @client_0.event_hubs
|
78
|
+
@consumer_groups = @client_0.consumer_groups
|
75
79
|
|
76
80
|
@model_classes = ModelClasses.new
|
77
81
|
end
|
78
82
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
def operation
|
90
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::Operation
|
91
|
-
end
|
92
|
-
def error_response
|
93
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::ErrorResponse
|
94
|
-
end
|
95
|
-
def operation_list_result
|
96
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::OperationListResult
|
97
|
-
end
|
98
|
-
def event_hub_list_result
|
99
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::EventHubListResult
|
100
|
-
end
|
101
|
-
def access_keys
|
102
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::AccessKeys
|
103
|
-
end
|
104
|
-
def arm_disaster_recovery_list_result
|
105
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecoveryListResult
|
106
|
-
end
|
107
|
-
def sku
|
108
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::Sku
|
109
|
-
end
|
110
|
-
def consumer_group_list_result
|
111
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroupListResult
|
112
|
-
end
|
113
|
-
def authorization_rule_list_result
|
114
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult
|
115
|
-
end
|
116
|
-
def check_name_availability_parameter
|
117
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::CheckNameAvailabilityParameter
|
118
|
-
end
|
119
|
-
def ehnamespace_list_result
|
120
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespaceListResult
|
121
|
-
end
|
122
|
-
def check_name_availability_result
|
123
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult
|
124
|
-
end
|
125
|
-
def regenerate_access_key_parameters
|
126
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters
|
127
|
-
end
|
128
|
-
def operation_display
|
129
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::OperationDisplay
|
130
|
-
end
|
131
|
-
def tracked_resource
|
132
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::TrackedResource
|
133
|
-
end
|
134
|
-
def ehnamespace
|
135
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace
|
136
|
-
end
|
137
|
-
def authorization_rule
|
138
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRule
|
139
|
-
end
|
140
|
-
def eventhub
|
141
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::Eventhub
|
142
|
-
end
|
143
|
-
def consumer_group
|
144
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroup
|
145
|
-
end
|
146
|
-
def arm_disaster_recovery
|
147
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecovery
|
148
|
-
end
|
149
|
-
def sku_name
|
150
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::SkuName
|
151
|
-
end
|
152
|
-
def sku_tier
|
153
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::SkuTier
|
154
|
-
end
|
155
|
-
def access_rights
|
156
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::AccessRights
|
157
|
-
end
|
158
|
-
def key_type
|
159
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::KeyType
|
160
|
-
end
|
161
|
-
def entity_status
|
162
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::EntityStatus
|
163
|
-
end
|
164
|
-
def encoding_capture_description
|
165
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::EncodingCaptureDescription
|
166
|
-
end
|
167
|
-
def unavailable_reason
|
168
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::UnavailableReason
|
169
|
-
end
|
170
|
-
def provisioning_state_dr
|
171
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::ProvisioningStateDR
|
172
|
-
end
|
173
|
-
def role_disaster_recovery
|
174
|
-
Azure::EventHub::Mgmt::V2017_04_01::Models::RoleDisasterRecovery
|
83
|
+
def add_telemetry(client)
|
84
|
+
profile_information = 'Profiles/Latest/EventHub/Mgmt'
|
85
|
+
client.add_user_agent_information(profile_information)
|
86
|
+
end
|
87
|
+
|
88
|
+
def method_missing(method, *args)
|
89
|
+
if @client_0.respond_to?method
|
90
|
+
@client_0.send(method, *args)
|
91
|
+
else
|
92
|
+
super
|
175
93
|
end
|
176
94
|
end
|
95
|
+
|
96
|
+
end
|
97
|
+
|
98
|
+
class ModelClasses
|
99
|
+
def capture_description
|
100
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::CaptureDescription
|
101
|
+
end
|
102
|
+
def destination
|
103
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::Destination
|
104
|
+
end
|
105
|
+
def resource
|
106
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::Resource
|
107
|
+
end
|
108
|
+
def operation
|
109
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::Operation
|
110
|
+
end
|
111
|
+
def error_response
|
112
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::ErrorResponse
|
113
|
+
end
|
114
|
+
def operation_list_result
|
115
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::OperationListResult
|
116
|
+
end
|
117
|
+
def event_hub_list_result
|
118
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::EventHubListResult
|
119
|
+
end
|
120
|
+
def access_keys
|
121
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::AccessKeys
|
122
|
+
end
|
123
|
+
def arm_disaster_recovery_list_result
|
124
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecoveryListResult
|
125
|
+
end
|
126
|
+
def sku
|
127
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::Sku
|
128
|
+
end
|
129
|
+
def consumer_group_list_result
|
130
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroupListResult
|
131
|
+
end
|
132
|
+
def authorization_rule_list_result
|
133
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult
|
134
|
+
end
|
135
|
+
def check_name_availability_parameter
|
136
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::CheckNameAvailabilityParameter
|
137
|
+
end
|
138
|
+
def ehnamespace_list_result
|
139
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespaceListResult
|
140
|
+
end
|
141
|
+
def check_name_availability_result
|
142
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult
|
143
|
+
end
|
144
|
+
def regenerate_access_key_parameters
|
145
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters
|
146
|
+
end
|
147
|
+
def operation_display
|
148
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::OperationDisplay
|
149
|
+
end
|
150
|
+
def tracked_resource
|
151
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::TrackedResource
|
152
|
+
end
|
153
|
+
def ehnamespace
|
154
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::EHNamespace
|
155
|
+
end
|
156
|
+
def authorization_rule
|
157
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRule
|
158
|
+
end
|
159
|
+
def eventhub
|
160
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::Eventhub
|
161
|
+
end
|
162
|
+
def consumer_group
|
163
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroup
|
164
|
+
end
|
165
|
+
def arm_disaster_recovery
|
166
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecovery
|
167
|
+
end
|
168
|
+
def sku_name
|
169
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::SkuName
|
170
|
+
end
|
171
|
+
def sku_tier
|
172
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::SkuTier
|
173
|
+
end
|
174
|
+
def access_rights
|
175
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::AccessRights
|
176
|
+
end
|
177
|
+
def key_type
|
178
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::KeyType
|
179
|
+
end
|
180
|
+
def entity_status
|
181
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::EntityStatus
|
182
|
+
end
|
183
|
+
def encoding_capture_description
|
184
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::EncodingCaptureDescription
|
185
|
+
end
|
186
|
+
def unavailable_reason
|
187
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::UnavailableReason
|
188
|
+
end
|
189
|
+
def provisioning_state_dr
|
190
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::ProvisioningStateDR
|
191
|
+
end
|
192
|
+
def role_disaster_recovery
|
193
|
+
Azure::EventHub::Mgmt::V2017_04_01::Models::RoleDisasterRecovery
|
194
|
+
end
|
177
195
|
end
|
196
|
+
end
|
178
197
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_event_hub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
version: '0'
|
196
196
|
requirements: []
|
197
197
|
rubyforge_project:
|
198
|
-
rubygems_version: 2.
|
198
|
+
rubygems_version: 2.6.10
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: Official Ruby client library to consume Microsoft Azure Event Hub services.
|