azure_mgmt_service_bus 0.15.1 → 0.15.2

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.
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
@@ -247,6 +247,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
247
247
  #
248
248
  def list_by_resource_group_async(resource_group_name, custom_headers = nil)
249
249
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
250
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
251
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
250
252
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
251
253
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
252
254
 
@@ -430,7 +432,11 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
430
432
  #
431
433
  def get_async(resource_group_name, namespace_name, custom_headers = nil)
432
434
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
435
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
436
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
433
437
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
438
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
439
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
434
440
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
435
441
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
436
442
 
@@ -533,7 +539,11 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
533
539
  #
534
540
  def update_async(resource_group_name, namespace_name, parameters, custom_headers = nil)
535
541
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
542
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
543
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
536
544
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
545
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
546
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
537
547
  fail ArgumentError, 'parameters is nil' if parameters.nil?
538
548
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
539
549
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -647,7 +657,11 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
647
657
  #
648
658
  def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers = nil)
649
659
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
660
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
661
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
650
662
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
663
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
664
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
651
665
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
652
666
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
653
667
 
@@ -750,8 +764,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
750
764
  #
751
765
  def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
752
766
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
767
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
768
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
753
769
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
770
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
771
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
754
772
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
773
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
774
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
755
775
  fail ArgumentError, 'parameters is nil' if parameters.nil?
756
776
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
757
777
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -857,8 +877,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
857
877
  #
858
878
  def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
859
879
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
880
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
881
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
860
882
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
883
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
884
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
861
885
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
886
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
887
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
862
888
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
863
889
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
864
890
 
@@ -945,8 +971,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
945
971
  #
946
972
  def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
947
973
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
974
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
975
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
948
976
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
977
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
978
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
949
979
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
980
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
981
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
950
982
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
951
983
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
952
984
 
@@ -1043,8 +1075,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1043
1075
  #
1044
1076
  def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
1045
1077
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1078
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1079
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1046
1080
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1081
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1082
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
1047
1083
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
1084
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
1085
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
1048
1086
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1049
1087
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1050
1088
 
@@ -1147,8 +1185,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1147
1185
  #
1148
1186
  def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
1149
1187
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1188
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1189
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1150
1190
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1191
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1192
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
1151
1193
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
1194
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
1195
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
1152
1196
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1153
1197
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1154
1198
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1261,6 +1305,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1261
1305
  #
1262
1306
  def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil)
1263
1307
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1308
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1309
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1264
1310
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1265
1311
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1266
1312
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1377,7 +1423,11 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
1377
1423
  #
1378
1424
  def begin_delete_async(resource_group_name, namespace_name, custom_headers = nil)
1379
1425
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1426
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1427
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1380
1428
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1429
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1430
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
1381
1431
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1382
1432
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1383
1433
 
@@ -65,7 +65,11 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
65
65
  #
66
66
  def list_all_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
 
@@ -168,8 +172,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
168
172
  #
169
173
  def create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers = nil)
170
174
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
175
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
176
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
171
177
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
178
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
179
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
172
180
  fail ArgumentError, 'queue_name is nil' if queue_name.nil?
181
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MaxLength': '50'" if !queue_name.nil? && queue_name.length > 50
182
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MinLength': '1'" if !queue_name.nil? && queue_name.length < 1
173
183
  fail ArgumentError, 'parameters is nil' if parameters.nil?
174
184
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
175
185
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -275,8 +285,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
275
285
  #
276
286
  def delete_async(resource_group_name, namespace_name, queue_name, custom_headers = nil)
277
287
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
288
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
289
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
278
290
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
291
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
292
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
279
293
  fail ArgumentError, 'queue_name is nil' if queue_name.nil?
294
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MaxLength': '50'" if !queue_name.nil? && queue_name.length > 50
295
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MinLength': '1'" if !queue_name.nil? && queue_name.length < 1
280
296
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
281
297
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
282
298
 
@@ -363,8 +379,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
363
379
  #
364
380
  def get_async(resource_group_name, namespace_name, queue_name, custom_headers = nil)
365
381
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
382
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
383
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
366
384
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
385
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
386
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
367
387
  fail ArgumentError, 'queue_name is nil' if queue_name.nil?
388
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MaxLength': '50'" if !queue_name.nil? && queue_name.length > 50
389
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MinLength': '1'" if !queue_name.nil? && queue_name.length < 1
368
390
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
369
391
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
370
392
 
@@ -461,8 +483,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
461
483
  #
462
484
  def list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers = nil)
463
485
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
486
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
487
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
464
488
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
489
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
490
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
465
491
  fail ArgumentError, 'queue_name is nil' if queue_name.nil?
492
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MaxLength': '50'" if !queue_name.nil? && queue_name.length > 50
493
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MinLength': '1'" if !queue_name.nil? && queue_name.length < 1
466
494
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
467
495
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
468
496
 
@@ -568,9 +596,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
568
596
  #
569
597
  def create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
570
598
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
599
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
600
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
571
601
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
602
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
603
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
572
604
  fail ArgumentError, 'queue_name is nil' if queue_name.nil?
605
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MaxLength': '50'" if !queue_name.nil? && queue_name.length > 50
606
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MinLength': '1'" if !queue_name.nil? && queue_name.length < 1
573
607
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
608
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
609
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
574
610
  fail ArgumentError, 'parameters is nil' if parameters.nil?
575
611
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
576
612
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -679,9 +715,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
679
715
  #
680
716
  def delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
681
717
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
718
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
719
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
682
720
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
721
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
722
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
683
723
  fail ArgumentError, 'queue_name is nil' if queue_name.nil?
724
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MaxLength': '50'" if !queue_name.nil? && queue_name.length > 50
725
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MinLength': '1'" if !queue_name.nil? && queue_name.length < 1
684
726
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
727
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
728
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
685
729
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
686
730
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
687
731
 
@@ -771,9 +815,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
771
815
  #
772
816
  def get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
773
817
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
818
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
819
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
774
820
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
821
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
822
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
775
823
  fail ArgumentError, 'queue_name is nil' if queue_name.nil?
824
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MaxLength': '50'" if !queue_name.nil? && queue_name.length > 50
825
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MinLength': '1'" if !queue_name.nil? && queue_name.length < 1
776
826
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
827
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
828
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
777
829
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
778
830
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
779
831
 
@@ -873,9 +925,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
873
925
  #
874
926
  def list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil)
875
927
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
928
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
929
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
876
930
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
931
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
932
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
877
933
  fail ArgumentError, 'queue_name is nil' if queue_name.nil?
934
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MaxLength': '50'" if !queue_name.nil? && queue_name.length > 50
935
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MinLength': '1'" if !queue_name.nil? && queue_name.length < 1
878
936
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
937
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
938
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
879
939
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
880
940
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
881
941
 
@@ -981,9 +1041,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
981
1041
  #
982
1042
  def regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil)
983
1043
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1044
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1045
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
984
1046
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1047
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1048
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
985
1049
  fail ArgumentError, 'queue_name is nil' if queue_name.nil?
1050
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MaxLength': '50'" if !queue_name.nil? && queue_name.length > 50
1051
+ fail ArgumentError, "'queue_name' should satisfy the constraint - 'MinLength': '1'" if !queue_name.nil? && queue_name.length < 1
986
1052
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
1053
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
1054
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
987
1055
  fail ArgumentError, 'parameters is nil' if parameters.nil?
988
1056
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
989
1057
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -138,9 +138,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_service_bus'
141
- if defined? Azure::ServiceBus::Mgmt::V2015_08_01::VERSION
142
- sdk_information = "#{sdk_information}/#{Azure::ServiceBus::Mgmt::V2015_08_01::VERSION}"
143
- end
141
+ sdk_information = "#{sdk_information}/0.15.2"
144
142
  add_user_agent_information(sdk_information)
145
143
  end
146
144
  end
@@ -68,8 +68,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
68
68
  #
69
69
  def list_all_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 - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
78
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
73
79
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
74
80
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
75
81
 
@@ -175,9 +181,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
175
181
  #
176
182
  def create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers = nil)
177
183
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
184
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
185
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
178
186
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
187
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
188
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
179
189
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
190
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
191
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
180
192
  fail ArgumentError, 'subscription_name is nil' if subscription_name.nil?
193
+ fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MaxLength': '50'" if !subscription_name.nil? && subscription_name.length > 50
194
+ fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MinLength': '1'" if !subscription_name.nil? && subscription_name.length < 1
181
195
  fail ArgumentError, 'parameters is nil' if parameters.nil?
182
196
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
183
197
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -286,9 +300,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
286
300
  #
287
301
  def delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil)
288
302
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
303
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
304
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
289
305
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
306
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
307
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
290
308
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
309
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
310
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
291
311
  fail ArgumentError, 'subscription_name is nil' if subscription_name.nil?
312
+ fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MaxLength': '50'" if !subscription_name.nil? && subscription_name.length > 50
313
+ fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MinLength': '1'" if !subscription_name.nil? && subscription_name.length < 1
292
314
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
293
315
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
294
316
 
@@ -378,9 +400,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
378
400
  #
379
401
  def get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil)
380
402
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
403
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
404
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
381
405
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
406
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
407
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
382
408
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
409
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
410
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
383
411
  fail ArgumentError, 'subscription_name is nil' if subscription_name.nil?
412
+ fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MaxLength': '50'" if !subscription_name.nil? && subscription_name.length > 50
413
+ fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MinLength': '1'" if !subscription_name.nil? && subscription_name.length < 1
384
414
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
385
415
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
386
416
 
@@ -65,7 +65,11 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
65
65
  #
66
66
  def list_all_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
 
@@ -168,8 +172,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
168
172
  #
169
173
  def create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers = nil)
170
174
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
175
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
176
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
171
177
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
178
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
179
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
172
180
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
181
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
182
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
173
183
  fail ArgumentError, 'parameters is nil' if parameters.nil?
174
184
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
175
185
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -275,8 +285,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
275
285
  #
276
286
  def delete_async(resource_group_name, namespace_name, topic_name, custom_headers = nil)
277
287
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
288
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
289
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
278
290
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
291
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
292
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
279
293
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
294
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
295
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
280
296
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
281
297
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
282
298
 
@@ -363,8 +379,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
363
379
  #
364
380
  def get_async(resource_group_name, namespace_name, topic_name, custom_headers = nil)
365
381
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
382
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
383
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
366
384
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
385
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
386
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
367
387
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
388
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
389
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
368
390
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
369
391
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
370
392
 
@@ -461,8 +483,14 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
461
483
  #
462
484
  def list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers = nil)
463
485
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
486
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
487
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
464
488
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
489
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
490
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
465
491
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
492
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
493
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
466
494
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
467
495
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
468
496
 
@@ -568,9 +596,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
568
596
  #
569
597
  def create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil)
570
598
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
599
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
600
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
571
601
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
602
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
603
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
572
604
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
605
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
606
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
573
607
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
608
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
609
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
574
610
  fail ArgumentError, 'parameters is nil' if parameters.nil?
575
611
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
576
612
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -680,9 +716,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
680
716
  #
681
717
  def get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
682
718
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
719
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
720
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
683
721
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
722
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
723
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
684
724
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
725
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
726
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
685
727
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
728
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
729
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
686
730
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
687
731
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
688
732
 
@@ -781,9 +825,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
781
825
  #
782
826
  def delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
783
827
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
828
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
829
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
784
830
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
831
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
832
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
785
833
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
834
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
835
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
786
836
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
837
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
838
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
787
839
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
788
840
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
789
841
 
@@ -873,9 +925,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
873
925
  #
874
926
  def list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil)
875
927
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
928
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
929
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
876
930
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
931
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
932
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
877
933
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
934
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
935
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
878
936
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
937
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
938
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
879
939
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
880
940
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
881
941
 
@@ -981,9 +1041,17 @@ module Azure::ServiceBus::Mgmt::V2015_08_01
981
1041
  #
982
1042
  def regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil)
983
1043
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1044
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1045
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
984
1046
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1047
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1048
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
985
1049
  fail ArgumentError, 'topic_name is nil' if topic_name.nil?
1050
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MaxLength': '50'" if !topic_name.nil? && topic_name.length > 50
1051
+ fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
986
1052
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
1053
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
1054
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
987
1055
  fail ArgumentError, 'parameters is nil' if parameters.nil?
988
1056
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
989
1057
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?