azure_mgmt_service_bus 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_create_or_update_parameters.rb +1 -1
  3. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_resource.rb +1 -1
  4. data/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb +113 -107
  5. data/lib/2015-08-01/generated/azure_mgmt_service_bus/operations.rb +15 -13
  6. data/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb +78 -72
  7. data/lib/2015-08-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb +4 -1
  8. data/lib/2015-08-01/generated/azure_mgmt_service_bus/subscriptions.rb +33 -30
  9. data/lib/2015-08-01/generated/azure_mgmt_service_bus/topics.rb +78 -72
  10. data/lib/2017-04-01/generated/azure_mgmt_service_bus/disaster_recovery_configs.rb +597 -40
  11. data/lib/2017-04-01/generated/azure_mgmt_service_bus/event_hubs.rb +15 -13
  12. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/arm_disaster_recovery.rb +13 -1
  13. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbqueue.rb +22 -0
  14. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbsubscription.rb +34 -0
  15. data/lib/2017-04-01/generated/azure_mgmt_service_bus/namespaces.rb +113 -107
  16. data/lib/2017-04-01/generated/azure_mgmt_service_bus/operations.rb +15 -13
  17. data/lib/2017-04-01/generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb +15 -13
  18. data/lib/2017-04-01/generated/azure_mgmt_service_bus/queues.rb +78 -72
  19. data/lib/2017-04-01/generated/azure_mgmt_service_bus/regions.rb +15 -13
  20. data/lib/2017-04-01/generated/azure_mgmt_service_bus/rules.rb +33 -30
  21. data/lib/2017-04-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb +4 -1
  22. data/lib/2017-04-01/generated/azure_mgmt_service_bus/subscriptions.rb +33 -30
  23. data/lib/2017-04-01/generated/azure_mgmt_service_bus/topics.rb +78 -72
  24. data/lib/profiles/latest/modules/servicebus_profile_module.rb +187 -168
  25. data/lib/profiles/latest/servicebus_latest_profile_client.rb +28 -9
  26. data/lib/profiles/latest/servicebus_module_definition.rb +0 -1
  27. data/lib/version.rb +1 -1
  28. metadata +3 -3
@@ -4,7 +4,8 @@
4
4
 
5
5
  require 'azure_mgmt_service_bus'
6
6
 
7
- module Azure::ServiceBus::Profiles::Latest::Mgmt
7
+ module Azure::ServiceBus::Profiles::Latest
8
+ module Mgmt
8
9
  Operations = Azure::ServiceBus::Mgmt::V2017_04_01::Operations
9
10
  Namespaces = Azure::ServiceBus::Mgmt::V2017_04_01::Namespaces
10
11
  DisasterRecoveryConfigs = Azure::ServiceBus::Mgmt::V2017_04_01::DisasterRecoveryConfigs
@@ -70,9 +71,9 @@ module Azure::ServiceBus::Profiles::Latest::Mgmt
70
71
  end
71
72
 
72
73
  #
73
- # ServiceBus
74
+ # ServiceBusManagementClass
74
75
  #
75
- class ServiceBusClass
76
+ class ServiceBusManagementClass
76
77
  attr_reader :operations, :namespaces, :disaster_recovery_configs, :queues, :topics, :subscriptions, :rules, :regions, :premium_messaging_regions_operations, :event_hubs, :configurable, :base_url, :options, :model_classes
77
78
 
78
79
  def initialize(options = {})
@@ -84,177 +85,195 @@ module Azure::ServiceBus::Profiles::Latest::Mgmt
84
85
 
85
86
  reset!(options)
86
87
 
87
- @configurable, @base_url, @options = self, nil, nil
88
+ @configurable = self
89
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
90
+ @options = options[:options].nil? ? nil:options[:options]
88
91
 
89
- client_0 = Azure::ServiceBus::Mgmt::V2017_04_01::ServiceBusManagementClient.new(configurable.credentials, base_url, options)
90
- if(client_0.respond_to?(:subscription_id))
91
- client_0.subscription_id = configurable.subscription_id
92
- end
93
- @operations = client_0.operations
94
- @namespaces = client_0.namespaces
95
- @disaster_recovery_configs = client_0.disaster_recovery_configs
96
- @queues = client_0.queues
97
- @topics = client_0.topics
98
- @subscriptions = client_0.subscriptions
99
- @rules = client_0.rules
100
- @regions = client_0.regions
101
- @premium_messaging_regions_operations = client_0.premium_messaging_regions_operations
102
- @event_hubs = client_0.event_hubs
92
+ @client_0 = Azure::ServiceBus::Mgmt::V2017_04_01::ServiceBusManagementClient.new(configurable.credentials, base_url, options)
93
+ if(@client_0.respond_to?(:subscription_id))
94
+ @client_0.subscription_id = configurable.subscription_id
95
+ end
96
+ add_telemetry(@client_0)
97
+ @operations = @client_0.operations
98
+ @namespaces = @client_0.namespaces
99
+ @disaster_recovery_configs = @client_0.disaster_recovery_configs
100
+ @queues = @client_0.queues
101
+ @topics = @client_0.topics
102
+ @subscriptions = @client_0.subscriptions
103
+ @rules = @client_0.rules
104
+ @regions = @client_0.regions
105
+ @premium_messaging_regions_operations = @client_0.premium_messaging_regions_operations
106
+ @event_hubs = @client_0.event_hubs
103
107
 
104
108
  @model_classes = ModelClasses.new
105
109
  end
106
110
 
107
- class ModelClasses
108
- def check_name_availability_result
109
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult
110
- end
111
- def sbqueue_list_result
112
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBQueueListResult
113
- end
114
- def resource
115
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::Resource
116
- end
117
- def premium_messaging_regions_list_result
118
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegionsListResult
119
- end
120
- def sbsku
121
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSku
122
- end
123
- def sbtopic_list_result
124
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopicListResult
125
- end
126
- def sbnamespace_list_result
127
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespaceListResult
128
- end
129
- def premium_messaging_regions_properties
130
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegionsProperties
131
- end
132
- def capture_description
133
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::CaptureDescription
134
- end
135
- def sbsubscription_list_result
136
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscriptionListResult
137
- end
138
- def authorization_rule_properties
139
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::AuthorizationRuleProperties
140
- end
141
- def check_name_availability
142
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailability
143
- end
144
- def regenerate_access_key_parameters
145
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters
146
- end
147
- def rule_list_result
148
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::RuleListResult
149
- end
150
- def destination
151
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::Destination
152
- end
153
- def operation_display
154
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay
155
- end
156
- def arm_disaster_recovery_list_result
157
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::ArmDisasterRecoveryListResult
158
- end
159
- def operation
160
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::Operation
161
- end
162
- def sbauthorization_rule_list_result
163
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRuleListResult
164
- end
165
- def operation_list_result
166
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationListResult
167
- end
168
- def message_count_details
169
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::MessageCountDetails
170
- end
171
- def error_response
172
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::ErrorResponse
173
- end
174
- def event_hub_list_result
175
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::EventHubListResult
176
- end
177
- def action
178
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::Action
179
- end
180
- def sql_filter
181
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SqlFilter
182
- end
183
- def access_keys
184
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessKeys
185
- end
186
- def correlation_filter
187
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::CorrelationFilter
188
- end
189
- def tracked_resource
190
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::TrackedResource
191
- end
192
- def resource_namespace_patch
193
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::ResourceNamespacePatch
194
- end
195
- def sbnamespace
196
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespace
197
- end
198
- def sbnamespace_update_parameters
199
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespaceUpdateParameters
200
- end
201
- def sbauthorization_rule
202
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRule
203
- end
204
- def sbqueue
205
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBQueue
206
- end
207
- def sbtopic
208
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopic
209
- end
210
- def sbsubscription
211
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscription
212
- end
213
- def rule
214
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::Rule
215
- end
216
- def sql_rule_action
217
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SqlRuleAction
218
- end
219
- def premium_messaging_regions
220
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegions
221
- end
222
- def eventhub
223
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::Eventhub
224
- end
225
- def arm_disaster_recovery
226
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::ArmDisasterRecovery
227
- end
228
- def sku_name
229
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuName
230
- end
231
- def sku_tier
232
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuTier
233
- end
234
- def access_rights
235
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessRights
236
- end
237
- def key_type
238
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::KeyType
239
- end
240
- def entity_status
241
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::EntityStatus
242
- end
243
- def unavailable_reason
244
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::UnavailableReason
245
- end
246
- def filter_type
247
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::FilterType
248
- end
249
- def encoding_capture_description
250
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::EncodingCaptureDescription
251
- end
252
- def provisioning_state_dr
253
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::ProvisioningStateDR
254
- end
255
- def role_disaster_recovery
256
- Azure::ServiceBus::Mgmt::V2017_04_01::Models::RoleDisasterRecovery
111
+ def add_telemetry(client)
112
+ profile_information = 'Profiles/Latest/ServiceBus/Mgmt'
113
+ client.add_user_agent_information(profile_information)
114
+ end
115
+
116
+ def method_missing(method, *args)
117
+ if @client_0.respond_to?method
118
+ @client_0.send(method, *args)
119
+ else
120
+ super
257
121
  end
258
122
  end
123
+
124
+ end
125
+
126
+ class ModelClasses
127
+ def check_name_availability_result
128
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult
129
+ end
130
+ def sbqueue_list_result
131
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBQueueListResult
132
+ end
133
+ def resource
134
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::Resource
135
+ end
136
+ def premium_messaging_regions_list_result
137
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegionsListResult
138
+ end
139
+ def sbsku
140
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSku
141
+ end
142
+ def sbtopic_list_result
143
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopicListResult
144
+ end
145
+ def sbnamespace_list_result
146
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespaceListResult
147
+ end
148
+ def premium_messaging_regions_properties
149
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegionsProperties
150
+ end
151
+ def capture_description
152
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::CaptureDescription
153
+ end
154
+ def sbsubscription_list_result
155
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscriptionListResult
156
+ end
157
+ def authorization_rule_properties
158
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::AuthorizationRuleProperties
159
+ end
160
+ def check_name_availability
161
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailability
162
+ end
163
+ def regenerate_access_key_parameters
164
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters
165
+ end
166
+ def rule_list_result
167
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::RuleListResult
168
+ end
169
+ def destination
170
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::Destination
171
+ end
172
+ def operation_display
173
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay
174
+ end
175
+ def arm_disaster_recovery_list_result
176
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::ArmDisasterRecoveryListResult
177
+ end
178
+ def operation
179
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::Operation
180
+ end
181
+ def sbauthorization_rule_list_result
182
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRuleListResult
183
+ end
184
+ def operation_list_result
185
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationListResult
186
+ end
187
+ def message_count_details
188
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::MessageCountDetails
189
+ end
190
+ def error_response
191
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::ErrorResponse
192
+ end
193
+ def event_hub_list_result
194
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::EventHubListResult
195
+ end
196
+ def action
197
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::Action
198
+ end
199
+ def sql_filter
200
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SqlFilter
201
+ end
202
+ def access_keys
203
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessKeys
204
+ end
205
+ def correlation_filter
206
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::CorrelationFilter
207
+ end
208
+ def tracked_resource
209
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::TrackedResource
210
+ end
211
+ def resource_namespace_patch
212
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::ResourceNamespacePatch
213
+ end
214
+ def sbnamespace
215
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespace
216
+ end
217
+ def sbnamespace_update_parameters
218
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespaceUpdateParameters
219
+ end
220
+ def sbauthorization_rule
221
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRule
222
+ end
223
+ def sbqueue
224
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBQueue
225
+ end
226
+ def sbtopic
227
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopic
228
+ end
229
+ def sbsubscription
230
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscription
231
+ end
232
+ def rule
233
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::Rule
234
+ end
235
+ def sql_rule_action
236
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SqlRuleAction
237
+ end
238
+ def premium_messaging_regions
239
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegions
240
+ end
241
+ def eventhub
242
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::Eventhub
243
+ end
244
+ def arm_disaster_recovery
245
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::ArmDisasterRecovery
246
+ end
247
+ def sku_name
248
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuName
249
+ end
250
+ def sku_tier
251
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuTier
252
+ end
253
+ def access_rights
254
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessRights
255
+ end
256
+ def key_type
257
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::KeyType
258
+ end
259
+ def entity_status
260
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::EntityStatus
261
+ end
262
+ def unavailable_reason
263
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::UnavailableReason
264
+ end
265
+ def filter_type
266
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::FilterType
267
+ end
268
+ def encoding_capture_description
269
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::EncodingCaptureDescription
270
+ end
271
+ def provisioning_state_dr
272
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::ProvisioningStateDR
273
+ end
274
+ def role_disaster_recovery
275
+ Azure::ServiceBus::Mgmt::V2017_04_01::Models::RoleDisasterRecovery
276
+ end
259
277
  end
278
+ end
260
279
  end
@@ -5,17 +5,36 @@
5
5
  require 'profiles/latest/servicebus_module_definition'
6
6
  require 'profiles/latest/modules/servicebus_profile_module'
7
7
 
8
- module Azure::ServiceBus::Profiles::Latest::Mgmt
9
- #
10
- # Client class for the Latest profile SDK.
11
- #
12
- class Client < ServiceBusClass
13
- include MsRestAzure::Common::Configurable
8
+ module Azure::ServiceBus::Profiles::Latest
9
+ module Mgmt
10
+ #
11
+ # Client class for the Latest profile SDK.
12
+ #
13
+ class Client < ServiceBusManagementClass
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
@@ -6,4 +6,3 @@ module Azure end
6
6
  module Azure::ServiceBus end
7
7
  module Azure::ServiceBus::Profiles end
8
8
  module Azure::ServiceBus::Profiles::Latest end
9
- module Azure::ServiceBus::Profiles::Latest::Mgmt end
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::ServiceBus::Mgmt
6
- VERSION = '0.15.2'
6
+ VERSION = '0.16.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_service_bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
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: 2017-12-19 00:00:00.000000000 Z
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  version: '0'
225
225
  requirements: []
226
226
  rubyforge_project:
227
- rubygems_version: 2.5.1
227
+ rubygems_version: 2.6.10
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: Official Ruby client library to consume Microsoft Azure Service Bus Management