azure_mgmt_service_bus 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/check_name_availability.rb +2 -0
  3. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/check_name_availability_result.rb +4 -0
  4. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/message_count_details.rb +6 -0
  5. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/namespace_create_or_update_parameters.rb +12 -0
  6. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/namespace_list_result.rb +4 -0
  7. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/namespace_resource.rb +15 -0
  8. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/namespace_update_parameters.rb +4 -0
  9. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/operation.rb +3 -0
  10. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/operation_display.rb +4 -0
  11. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/operation_list_result.rb +4 -0
  12. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/queue_create_or_update_parameters.rb +25 -0
  13. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/queue_list_result.rb +4 -0
  14. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/queue_resource.rb +27 -0
  15. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/regenerate_keys_parameters.rb +2 -0
  16. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/resource.rb +5 -0
  17. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/resource_list_keys.rb +6 -0
  18. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb +5 -0
  19. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_list_result.rb +4 -0
  20. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_resource.rb +7 -0
  21. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/sku.rb +4 -0
  22. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/subscription_create_or_update_parameters.rb +19 -0
  23. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/subscription_list_result.rb +4 -0
  24. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/subscription_resource.rb +21 -0
  25. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_create_or_update_parameters.rb +24 -0
  26. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_list_result.rb +4 -0
  27. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_resource.rb +26 -0
  28. data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/tracked_resource.rb +7 -0
  29. data/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb +50 -0
  30. data/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb +68 -0
  31. data/lib/2015-08-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb +1 -3
  32. data/lib/2015-08-01/generated/azure_mgmt_service_bus/subscriptions.rb +30 -0
  33. data/lib/2015-08-01/generated/azure_mgmt_service_bus/topics.rb +68 -0
  34. data/lib/2017-04-01/generated/azure_mgmt_service_bus/disaster_recovery_configs.rb +34 -0
  35. data/lib/2017-04-01/generated/azure_mgmt_service_bus/event_hubs.rb +4 -0
  36. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/access_keys.rb +8 -0
  37. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/action.rb +4 -0
  38. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/arm_disaster_recovery.rb +7 -0
  39. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/arm_disaster_recovery_list_result.rb +4 -0
  40. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/authorization_rule_properties.rb +3 -0
  41. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/capture_description.rb +6 -0
  42. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/check_name_availability.rb +2 -0
  43. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/check_name_availability_result.rb +4 -0
  44. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/correlation_filter.rb +10 -0
  45. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/destination.rb +5 -0
  46. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/error_response.rb +3 -0
  47. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/event_hub_list_result.rb +4 -0
  48. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/eventhub.rb +12 -0
  49. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/message_count_details.rb +6 -0
  50. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/operation.rb +3 -0
  51. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/operation_display.rb +4 -0
  52. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/operation_list_result.rb +4 -0
  53. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/premium_messaging_regions.rb +8 -0
  54. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/premium_messaging_regions_list_result.rb +4 -0
  55. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/premium_messaging_regions_properties.rb +3 -0
  56. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/regenerate_access_key_parameters.rb +3 -0
  57. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/resource.rb +4 -0
  58. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/resource_namespace_patch.rb +7 -0
  59. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/rule.rb +8 -0
  60. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/rule_list_result.rb +4 -0
  61. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbauthorization_rule.rb +6 -0
  62. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbauthorization_rule_list_result.rb +4 -0
  63. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbnamespace.rb +13 -0
  64. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbnamespace_list_result.rb +4 -0
  65. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbnamespace_update_parameters.rb +13 -0
  66. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbqueue.rb +22 -0
  67. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbqueue_list_result.rb +4 -0
  68. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbsku.rb +4 -0
  69. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbsubscription.rb +18 -0
  70. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbsubscription_list_result.rb +4 -0
  71. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbtopic.rb +20 -0
  72. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbtopic_list_result.rb +4 -0
  73. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sql_filter.rb +4 -0
  74. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sql_rule_action.rb +4 -0
  75. data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/tracked_resource.rb +7 -0
  76. data/lib/2017-04-01/generated/azure_mgmt_service_bus/namespaces.rb +50 -0
  77. data/lib/2017-04-01/generated/azure_mgmt_service_bus/queues.rb +59 -0
  78. data/lib/2017-04-01/generated/azure_mgmt_service_bus/regions.rb +2 -0
  79. data/lib/2017-04-01/generated/azure_mgmt_service_bus/rules.rb +34 -0
  80. data/lib/2017-04-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb +1 -3
  81. data/lib/2017-04-01/generated/azure_mgmt_service_bus/subscriptions.rb +26 -0
  82. data/lib/2017-04-01/generated/azure_mgmt_service_bus/topics.rb +59 -0
  83. data/lib/profiles/latest/servicebus_latest_profile_client.rb +1 -3
  84. data/lib/version.rb +1 -1
  85. metadata +10 -9
  86. data/lib/2015-08-01/generated/azure_mgmt_service_bus/version.rb +0 -8
  87. data/lib/2017-04-01/generated/azure_mgmt_service_bus/version.rb +0 -8
  88. data/lib/profiles/common/configurable.rb +0 -86
  89. data/lib/profiles/common/default.rb +0 -57
@@ -159,9 +159,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
159
159
  #
160
160
  def add_telemetry
161
161
  sdk_information = 'azure_mgmt_service_bus'
162
- if defined? Azure::ServiceBus::Mgmt::V2017_04_01::VERSION
163
- sdk_information = "#{sdk_information}/#{Azure::ServiceBus::Mgmt::V2017_04_01::VERSION}"
164
- end
162
+ sdk_information = "#{sdk_information}/0.15.2"
165
163
  add_user_agent_information(sdk_information)
166
164
  end
167
165
  end
@@ -68,8 +68,13 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
68
68
  #
69
69
  def list_by_topic_async(resource_group_name, namespace_name, topic_name, custom_headers = nil)
70
70
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
72
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
71
73
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
74
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
75
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
72
76
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
77
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
73
78
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
74
79
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
75
80
 
@@ -175,9 +180,16 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
175
180
  #
176
181
  def create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers = nil)
177
182
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
183
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
184
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
178
185
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
186
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
187
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
179
188
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
189
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
180
190
  fail ArgumentError, 'subscription_name is nil' if subscription_name.nil?
191
+ fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MaxLength': '50'" if !subscription_name.nil? && subscription_name.length > 50
192
+ fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MinLength': '1'" if !subscription_name.nil? && subscription_name.length < 1
181
193
  fail ArgumentError, 'parameters is nil' if parameters.nil?
182
194
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
183
195
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -286,9 +298,16 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
286
298
  #
287
299
  def delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil)
288
300
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
301
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
302
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
289
303
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
304
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
305
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
290
306
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
307
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
291
308
  fail ArgumentError, 'subscription_name is nil' if subscription_name.nil?
309
+ fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MaxLength': '50'" if !subscription_name.nil? && subscription_name.length > 50
310
+ fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MinLength': '1'" if !subscription_name.nil? && subscription_name.length < 1
292
311
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
293
312
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
294
313
 
@@ -378,9 +397,16 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
378
397
  #
379
398
  def get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil)
380
399
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
400
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
401
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
381
402
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
403
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
404
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
382
405
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
406
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
383
407
  fail ArgumentError, 'subscription_name is nil' if subscription_name.nil?
408
+ fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MaxLength': '50'" if !subscription_name.nil? && subscription_name.length > 50
409
+ fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MinLength': '1'" if !subscription_name.nil? && subscription_name.length < 1
384
410
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
385
411
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
386
412
 
@@ -65,7 +65,11 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
65
65
  #
66
66
  def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil)
67
67
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
68
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
69
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
68
70
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
71
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
72
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
69
73
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
70
74
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
71
75
 
@@ -165,8 +169,13 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
165
169
  #
166
170
  def create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers = nil)
167
171
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
172
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
173
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
168
174
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
175
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
176
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
169
177
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
178
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
170
179
  fail ArgumentError, 'parameters is nil' if parameters.nil?
171
180
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
172
181
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -272,8 +281,13 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
272
281
  #
273
282
  def delete_async(resource_group_name, namespace_name, topic_name, custom_headers = nil)
274
283
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
284
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
285
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
275
286
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
287
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
288
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
276
289
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
290
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
277
291
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
278
292
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
279
293
 
@@ -360,8 +374,13 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
360
374
  #
361
375
  def get_async(resource_group_name, namespace_name, topic_name, custom_headers = nil)
362
376
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
377
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
378
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
363
379
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
380
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
381
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
364
382
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
383
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
365
384
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
366
385
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
367
386
 
@@ -458,8 +477,13 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
458
477
  #
459
478
  def list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers = nil)
460
479
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
480
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
481
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
461
482
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
483
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
484
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
462
485
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
486
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
463
487
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
464
488
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
465
489
 
@@ -562,9 +586,16 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
562
586
  #
563
587
  def create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil)
564
588
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
589
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
590
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
565
591
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
592
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
593
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
566
594
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
595
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
567
596
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
597
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
598
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
568
599
  fail ArgumentError, 'parameters is nil' if parameters.nil?
569
600
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
570
601
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -674,9 +705,16 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
674
705
  #
675
706
  def get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
676
707
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
708
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
709
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
677
710
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
711
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
712
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
678
713
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
714
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
679
715
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
716
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
717
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
680
718
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
681
719
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
682
720
 
@@ -775,9 +813,16 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
775
813
  #
776
814
  def delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
777
815
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
816
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
817
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
778
818
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
819
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
820
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
779
821
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
822
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
780
823
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
824
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
825
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
781
826
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
782
827
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
783
828
 
@@ -867,9 +912,16 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
867
912
  #
868
913
  def list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
869
914
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
915
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
916
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
870
917
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
918
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
919
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
871
920
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
921
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
872
922
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
923
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
924
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
873
925
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
874
926
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
875
927
 
@@ -975,9 +1027,16 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
975
1027
  #
976
1028
  def regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil)
977
1029
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1030
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1031
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
978
1032
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1033
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1034
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
979
1035
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
1036
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
980
1037
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
1038
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
1039
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
981
1040
  fail ArgumentError, 'parameters is nil' if parameters.nil?
982
1041
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
983
1042
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -4,15 +4,13 @@
4
4
 
5
5
  require 'profiles/latest/servicebus_module_definition'
6
6
  require 'profiles/latest/modules/servicebus_profile_module'
7
- require 'profiles/common/configurable'
8
- require 'profiles/common/default'
9
7
 
10
8
  module Azure::ServiceBus::Profiles::Latest::Mgmt
11
9
  #
12
10
  # Client class for the Latest profile SDK.
13
11
  #
14
12
  class Client < ServiceBusClass
15
- include Azure::Common::Configurable
13
+ include MsRestAzure::Common::Configurable
16
14
 
17
15
 
18
16
  def initialize(options = {})
data/lib/version.rb CHANGED
@@ -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.1'
6
+ VERSION = '0.15.2'
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.1
4
+ version: 0.15.2
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-10-30 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.9.0
75
+ version: 0.10.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.9.0
82
+ version: 0.10.0
83
83
  description: Microsoft Azure Service Bus Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -130,7 +130,6 @@ files:
130
130
  - lib/2015-08-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb
131
131
  - lib/2015-08-01/generated/azure_mgmt_service_bus/subscriptions.rb
132
132
  - lib/2015-08-01/generated/azure_mgmt_service_bus/topics.rb
133
- - lib/2015-08-01/generated/azure_mgmt_service_bus/version.rb
134
133
  - lib/2017-04-01/generated/azure_mgmt_service_bus.rb
135
134
  - lib/2017-04-01/generated/azure_mgmt_service_bus/disaster_recovery_configs.rb
136
135
  - lib/2017-04-01/generated/azure_mgmt_service_bus/event_hubs.rb
@@ -194,11 +193,8 @@ files:
194
193
  - lib/2017-04-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb
195
194
  - lib/2017-04-01/generated/azure_mgmt_service_bus/subscriptions.rb
196
195
  - lib/2017-04-01/generated/azure_mgmt_service_bus/topics.rb
197
- - lib/2017-04-01/generated/azure_mgmt_service_bus/version.rb
198
196
  - lib/azure_mgmt_service_bus.rb
199
197
  - lib/module_definition.rb
200
- - lib/profiles/common/configurable.rb
201
- - lib/profiles/common/default.rb
202
198
  - lib/profiles/latest/modules/servicebus_profile_module.rb
203
199
  - lib/profiles/latest/servicebus_latest_profile_client.rb
204
200
  - lib/profiles/latest/servicebus_module_definition.rb
@@ -206,7 +202,12 @@ files:
206
202
  homepage: https://aka.ms/azure-sdk-for-ruby
207
203
  licenses:
208
204
  - MIT
209
- metadata: {}
205
+ metadata:
206
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
207
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
208
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
209
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
210
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_service_bus
210
211
  post_install_message:
211
212
  rdoc_options: []
212
213
  require_paths:
@@ -1,8 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator.
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ServiceBus::Mgmt::V2015_08_01
7
- VERSION = '0.15.1'
8
- end
@@ -1,8 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator.
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ServiceBus::Mgmt::V2017_04_01
7
- VERSION = '0.15.1'
8
- end
@@ -1,86 +0,0 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- module Azure::Common
6
- # The Azure::Common::Configurable module provides basic configuration for Azure activities.
7
- module Configurable
8
- # @return [String] Azure tenant id (also known as domain).
9
- attr_accessor :tenant_id
10
-
11
- # @return [String] Azure client id.
12
- attr_accessor :client_id
13
-
14
- # @return [String] Azure secret key.
15
- attr_accessor :client_secret
16
-
17
- # @return [String] Azure subscription id.
18
- attr_accessor :subscription_id
19
-
20
- # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
21
- attr_accessor :active_directory_settings
22
-
23
- # @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
24
- attr_accessor :credentials
25
-
26
- class << self
27
- #
28
- # List of configurable keys for {Azure::Common::Client}.
29
- # @return [Array] of option keys.
30
- #
31
- def keys
32
- @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings]
33
- end
34
- end
35
-
36
- #
37
- # Set configuration options using a block.
38
- #
39
- def configure
40
- yield self
41
- end
42
-
43
- #
44
- # Resets the configurable options to provided options or defaults.
45
- # This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
46
- #
47
- def reset!(options = {})
48
- Azure::Common::Configurable.keys.each do |key|
49
- default_value = Azure::Common::Default.options[key]
50
- instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
- end
52
-
53
- fail ArgumentError, 'tenant_id is nil' if self.tenant_id.nil?
54
- fail ArgumentError, 'client_id is nil' if self.client_id.nil?
55
- fail ArgumentError, 'client_secret is nil' if self.client_secret.nil?
56
- fail ArgumentError, 'subscription_id is nil' if self.subscription_id.nil?
57
- fail ArgumentError, 'active_directory_settings is nil' if self.active_directory_settings.nil?
58
-
59
- default_value = MsRest::TokenCredentials.new(
60
- MsRestAzure::ApplicationTokenProvider.new(
61
- self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
62
-
63
- instance_variable_set(:"@credentials", options.fetch(:credentials, default_value))
64
-
65
- self
66
- end
67
-
68
- def config
69
- self
70
- end
71
-
72
- private
73
-
74
- #
75
- # configures configurable options to default values
76
- #
77
- def setup_default_options
78
- opts = {}
79
- Azure::Common::Configurable.keys.map do |key|
80
- opts[key] = Azure::Common::Default.options[key]
81
- end
82
-
83
- opts
84
- end
85
- end
86
- end
@@ -1,57 +0,0 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- module Azure::Common
6
- module Default
7
- class << self
8
- #
9
- # Default Azure Tenant Id.
10
- # @return [String] Azure Tenant Id.
11
- #
12
- def tenant_id
13
- ENV['AZURE_TENANT_ID']
14
- end
15
-
16
- #
17
- # Default Azure Client Id.
18
- # @return [String] Azure Client Id.
19
- #
20
- def client_id
21
- ENV['AZURE_CLIENT_ID']
22
- end
23
-
24
- #
25
- # Default Azure Client Secret.
26
- # @return [String] Azure Client Secret.
27
- #
28
- def client_secret
29
- ENV['AZURE_CLIENT_SECRET']
30
- end
31
-
32
- #
33
- # Default Azure Subscription Id.
34
- # @return [String] Azure Subscription Id.
35
- #
36
- def subscription_id
37
- ENV['AZURE_SUBSCRIPTION_ID']
38
- end
39
-
40
- #
41
- # Default Azure Active Directory Service Settings.
42
- # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
43
- #
44
- def active_directory_settings
45
- MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
46
- end
47
-
48
- #
49
- # Configuration options.
50
- # @return [Hash] Configuration options.
51
- #
52
- def options
53
- Hash[Azure::Common::Configurable.keys.map { |key| [key, send(key)]}]
54
- end
55
- end
56
- end
57
- end