azure_mgmt_relay 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 (57) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-07-01/generated/azure_mgmt_relay/hybrid_connections.rb +68 -0
  3. data/lib/2016-07-01/generated/azure_mgmt_relay/models/authorization_rule.rb +6 -0
  4. data/lib/2016-07-01/generated/azure_mgmt_relay/models/authorization_rule_keys.rb +6 -0
  5. data/lib/2016-07-01/generated/azure_mgmt_relay/models/authorization_rule_list_result.rb +4 -0
  6. data/lib/2016-07-01/generated/azure_mgmt_relay/models/check_name_availability.rb +2 -0
  7. data/lib/2016-07-01/generated/azure_mgmt_relay/models/check_name_availability_result.rb +4 -0
  8. data/lib/2016-07-01/generated/azure_mgmt_relay/models/error_response.rb +3 -0
  9. data/lib/2016-07-01/generated/azure_mgmt_relay/models/hybrid_connection.rb +9 -0
  10. data/lib/2016-07-01/generated/azure_mgmt_relay/models/hybrid_connection_list_result.rb +4 -0
  11. data/lib/2016-07-01/generated/azure_mgmt_relay/models/operation.rb +3 -0
  12. data/lib/2016-07-01/generated/azure_mgmt_relay/models/operation_display.rb +4 -0
  13. data/lib/2016-07-01/generated/azure_mgmt_relay/models/operation_list_result.rb +4 -0
  14. data/lib/2016-07-01/generated/azure_mgmt_relay/models/regenerate_keys_parameters.rb +2 -0
  15. data/lib/2016-07-01/generated/azure_mgmt_relay/models/relay_namespace.rb +13 -0
  16. data/lib/2016-07-01/generated/azure_mgmt_relay/models/relay_namespace_list_result.rb +4 -0
  17. data/lib/2016-07-01/generated/azure_mgmt_relay/models/relay_namespace_update_parameter.rb +4 -0
  18. data/lib/2016-07-01/generated/azure_mgmt_relay/models/resource.rb +4 -0
  19. data/lib/2016-07-01/generated/azure_mgmt_relay/models/sku.rb +3 -0
  20. data/lib/2016-07-01/generated/azure_mgmt_relay/models/tracked_resource.rb +7 -0
  21. data/lib/2016-07-01/generated/azure_mgmt_relay/models/wcf_relay.rb +12 -0
  22. data/lib/2016-07-01/generated/azure_mgmt_relay/models/wcf_relays_list_result.rb +4 -0
  23. data/lib/2016-07-01/generated/azure_mgmt_relay/namespaces.rb +52 -0
  24. data/lib/2016-07-01/generated/azure_mgmt_relay/relay_management_client.rb +1 -3
  25. data/lib/2016-07-01/generated/azure_mgmt_relay/wcfrelays.rb +68 -0
  26. data/lib/2017-04-01/generated/azure_mgmt_relay/hybrid_connections.rb +54 -0
  27. data/lib/2017-04-01/generated/azure_mgmt_relay/models/access_keys.rb +6 -0
  28. data/lib/2017-04-01/generated/azure_mgmt_relay/models/authorization_rule.rb +6 -0
  29. data/lib/2017-04-01/generated/azure_mgmt_relay/models/authorization_rule_list_result.rb +4 -0
  30. data/lib/2017-04-01/generated/azure_mgmt_relay/models/check_name_availability.rb +2 -0
  31. data/lib/2017-04-01/generated/azure_mgmt_relay/models/check_name_availability_result.rb +4 -0
  32. data/lib/2017-04-01/generated/azure_mgmt_relay/models/error_response.rb +3 -0
  33. data/lib/2017-04-01/generated/azure_mgmt_relay/models/hybrid_connection.rb +9 -0
  34. data/lib/2017-04-01/generated/azure_mgmt_relay/models/hybrid_connection_list_result.rb +4 -0
  35. data/lib/2017-04-01/generated/azure_mgmt_relay/models/operation.rb +3 -0
  36. data/lib/2017-04-01/generated/azure_mgmt_relay/models/operation_display.rb +4 -0
  37. data/lib/2017-04-01/generated/azure_mgmt_relay/models/operation_list_result.rb +4 -0
  38. data/lib/2017-04-01/generated/azure_mgmt_relay/models/regenerate_access_key_parameters.rb +3 -0
  39. data/lib/2017-04-01/generated/azure_mgmt_relay/models/relay_namespace.rb +13 -0
  40. data/lib/2017-04-01/generated/azure_mgmt_relay/models/relay_namespace_list_result.rb +4 -0
  41. data/lib/2017-04-01/generated/azure_mgmt_relay/models/relay_update_parameters.rb +12 -0
  42. data/lib/2017-04-01/generated/azure_mgmt_relay/models/resource.rb +4 -0
  43. data/lib/2017-04-01/generated/azure_mgmt_relay/models/resource_namespace_patch.rb +6 -0
  44. data/lib/2017-04-01/generated/azure_mgmt_relay/models/sku.rb +3 -0
  45. data/lib/2017-04-01/generated/azure_mgmt_relay/models/tracked_resource.rb +7 -0
  46. data/lib/2017-04-01/generated/azure_mgmt_relay/models/wcf_relay.rb +12 -0
  47. data/lib/2017-04-01/generated/azure_mgmt_relay/models/wcf_relays_list_result.rb +4 -0
  48. data/lib/2017-04-01/generated/azure_mgmt_relay/namespaces.rb +47 -0
  49. data/lib/2017-04-01/generated/azure_mgmt_relay/relay_management_client.rb +1 -3
  50. data/lib/2017-04-01/generated/azure_mgmt_relay/wcfrelays.rb +54 -0
  51. data/lib/profiles/latest/relay_latest_profile_client.rb +1 -3
  52. data/lib/version.rb +1 -1
  53. metadata +10 -9
  54. data/lib/2016-07-01/generated/azure_mgmt_relay/version.rb +0 -8
  55. data/lib/2017-04-01/generated/azure_mgmt_relay/version.rb +0 -8
  56. data/lib/profiles/common/configurable.rb +0 -86
  57. data/lib/profiles/common/default.rb +0 -57
@@ -58,6 +58,7 @@ module Azure::Relay::Mgmt::V2016_07_01
58
58
  #
59
59
  def self.mapper()
60
60
  {
61
+ client_side_validation: true,
61
62
  required: false,
62
63
  serialized_name: 'WcfRelaysListResult',
63
64
  type: {
@@ -65,11 +66,13 @@ module Azure::Relay::Mgmt::V2016_07_01
65
66
  class_name: 'WcfRelaysListResult',
66
67
  model_properties: {
67
68
  value: {
69
+ client_side_validation: true,
68
70
  required: false,
69
71
  serialized_name: 'value',
70
72
  type: {
71
73
  name: 'Sequence',
72
74
  element: {
75
+ client_side_validation: true,
73
76
  required: false,
74
77
  serialized_name: 'WcfRelayElementType',
75
78
  type: {
@@ -80,6 +83,7 @@ module Azure::Relay::Mgmt::V2016_07_01
80
83
  }
81
84
  },
82
85
  next_link: {
86
+ client_side_validation: true,
83
87
  required: false,
84
88
  serialized_name: 'nextLink',
85
89
  type: {
@@ -248,6 +248,8 @@ module Azure::Relay::Mgmt::V2016_07_01
248
248
  #
249
249
  def list_by_resource_group_async(resource_group_name, custom_headers = nil)
250
250
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
251
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
252
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
251
253
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
252
254
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
253
255
 
@@ -430,7 +432,11 @@ module Azure::Relay::Mgmt::V2016_07_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::Relay::Mgmt::V2016_07_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?
@@ -637,7 +647,11 @@ module Azure::Relay::Mgmt::V2016_07_01
637
647
  #
638
648
  def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers = nil)
639
649
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
650
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
651
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
640
652
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
653
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
654
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
641
655
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
642
656
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
643
657
 
@@ -737,8 +751,14 @@ module Azure::Relay::Mgmt::V2016_07_01
737
751
  #
738
752
  def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
739
753
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
754
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
755
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
740
756
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
757
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
758
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
741
759
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
760
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
761
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
742
762
  fail ArgumentError, 'parameters is nil' if parameters.nil?
743
763
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
744
764
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -844,8 +864,14 @@ module Azure::Relay::Mgmt::V2016_07_01
844
864
  #
845
865
  def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
846
866
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
867
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
868
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
847
869
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
870
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
871
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
848
872
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
873
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
874
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
849
875
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
850
876
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
851
877
 
@@ -932,8 +958,14 @@ module Azure::Relay::Mgmt::V2016_07_01
932
958
  #
933
959
  def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
934
960
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
961
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
962
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
935
963
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
964
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
965
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
936
966
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
967
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
968
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
937
969
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
938
970
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
939
971
 
@@ -1030,8 +1062,14 @@ module Azure::Relay::Mgmt::V2016_07_01
1030
1062
  #
1031
1063
  def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
1032
1064
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1065
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1066
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1033
1067
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1068
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1069
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
1034
1070
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
1071
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
1072
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
1035
1073
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1036
1074
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1037
1075
 
@@ -1134,8 +1172,14 @@ module Azure::Relay::Mgmt::V2016_07_01
1134
1172
  #
1135
1173
  def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
1136
1174
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1175
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1176
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1137
1177
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1178
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1179
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
1138
1180
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
1181
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
1182
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
1139
1183
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1140
1184
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1141
1185
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1245,7 +1289,11 @@ module Azure::Relay::Mgmt::V2016_07_01
1245
1289
  #
1246
1290
  def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil)
1247
1291
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1292
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1293
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1248
1294
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1295
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1296
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
1249
1297
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1250
1298
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1251
1299
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1351,7 +1399,11 @@ module Azure::Relay::Mgmt::V2016_07_01
1351
1399
  #
1352
1400
  def begin_delete_async(resource_group_name, namespace_name, custom_headers = nil)
1353
1401
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1402
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1403
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1354
1404
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1405
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1406
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
1355
1407
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1356
1408
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1357
1409
 
@@ -134,9 +134,7 @@ module Azure::Relay::Mgmt::V2016_07_01
134
134
  #
135
135
  def add_telemetry
136
136
  sdk_information = 'azure_mgmt_relay'
137
- if defined? Azure::Relay::Mgmt::V2016_07_01::VERSION
138
- sdk_information = "#{sdk_information}/#{Azure::Relay::Mgmt::V2016_07_01::VERSION}"
139
- end
137
+ sdk_information = "#{sdk_information}/0.15.2"
140
138
  add_user_agent_information(sdk_information)
141
139
  end
142
140
  end
@@ -66,7 +66,11 @@ module Azure::Relay::Mgmt::V2016_07_01
66
66
  #
67
67
  def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil)
68
68
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
69
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
70
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
69
71
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
72
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
73
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
70
74
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
71
75
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
72
76
 
@@ -166,8 +170,14 @@ module Azure::Relay::Mgmt::V2016_07_01
166
170
  #
167
171
  def create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers = nil)
168
172
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
173
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
174
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
169
175
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
176
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
177
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
170
178
  fail ArgumentError, 'relay_name is nil' if relay_name.nil?
179
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MaxLength': '50'" if !relay_name.nil? && relay_name.length > 50
180
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MinLength': '1'" if !relay_name.nil? && relay_name.length < 1
171
181
  fail ArgumentError, 'parameters is nil' if parameters.nil?
172
182
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
173
183
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -273,8 +283,14 @@ module Azure::Relay::Mgmt::V2016_07_01
273
283
  #
274
284
  def delete_async(resource_group_name, namespace_name, relay_name, custom_headers = nil)
275
285
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
286
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
287
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
276
288
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
289
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
290
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
277
291
  fail ArgumentError, 'relay_name is nil' if relay_name.nil?
292
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MaxLength': '50'" if !relay_name.nil? && relay_name.length > 50
293
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MinLength': '1'" if !relay_name.nil? && relay_name.length < 1
278
294
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
279
295
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
280
296
 
@@ -361,8 +377,14 @@ module Azure::Relay::Mgmt::V2016_07_01
361
377
  #
362
378
  def get_async(resource_group_name, namespace_name, relay_name, custom_headers = nil)
363
379
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
380
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
381
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
364
382
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
383
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
384
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
365
385
  fail ArgumentError, 'relay_name is nil' if relay_name.nil?
386
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MaxLength': '50'" if !relay_name.nil? && relay_name.length > 50
387
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MinLength': '1'" if !relay_name.nil? && relay_name.length < 1
366
388
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
367
389
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
368
390
 
@@ -459,8 +481,14 @@ module Azure::Relay::Mgmt::V2016_07_01
459
481
  #
460
482
  def list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers = nil)
461
483
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
484
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
485
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
462
486
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
487
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
488
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
463
489
  fail ArgumentError, 'relay_name is nil' if relay_name.nil?
490
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MaxLength': '50'" if !relay_name.nil? && relay_name.length > 50
491
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MinLength': '1'" if !relay_name.nil? && relay_name.length < 1
464
492
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
465
493
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
466
494
 
@@ -563,9 +591,17 @@ module Azure::Relay::Mgmt::V2016_07_01
563
591
  #
564
592
  def create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil)
565
593
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
594
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
595
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
566
596
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
597
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
598
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
567
599
  fail ArgumentError, 'relay_name is nil' if relay_name.nil?
600
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MaxLength': '50'" if !relay_name.nil? && relay_name.length > 50
601
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MinLength': '1'" if !relay_name.nil? && relay_name.length < 1
568
602
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
603
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
604
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
569
605
  fail ArgumentError, 'parameters is nil' if parameters.nil?
570
606
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
571
607
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -674,9 +710,17 @@ module Azure::Relay::Mgmt::V2016_07_01
674
710
  #
675
711
  def delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil)
676
712
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
713
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
714
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
677
715
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
716
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
717
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
678
718
  fail ArgumentError, 'relay_name is nil' if relay_name.nil?
719
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MaxLength': '50'" if !relay_name.nil? && relay_name.length > 50
720
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MinLength': '1'" if !relay_name.nil? && relay_name.length < 1
679
721
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
722
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
723
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
680
724
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
681
725
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
682
726
 
@@ -766,9 +810,17 @@ module Azure::Relay::Mgmt::V2016_07_01
766
810
  #
767
811
  def get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil)
768
812
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
813
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
814
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
769
815
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
816
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
817
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
770
818
  fail ArgumentError, 'relay_name is nil' if relay_name.nil?
819
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MaxLength': '50'" if !relay_name.nil? && relay_name.length > 50
820
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MinLength': '1'" if !relay_name.nil? && relay_name.length < 1
771
821
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
822
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
823
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
772
824
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
773
825
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
774
826
 
@@ -868,9 +920,17 @@ module Azure::Relay::Mgmt::V2016_07_01
868
920
  #
869
921
  def list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil)
870
922
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
923
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
924
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
871
925
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
926
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
927
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
872
928
  fail ArgumentError, 'relay_name is nil' if relay_name.nil?
929
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MaxLength': '50'" if !relay_name.nil? && relay_name.length > 50
930
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MinLength': '1'" if !relay_name.nil? && relay_name.length < 1
873
931
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
932
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
933
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
874
934
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
875
935
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
876
936
 
@@ -976,9 +1036,17 @@ module Azure::Relay::Mgmt::V2016_07_01
976
1036
  #
977
1037
  def regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil)
978
1038
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1039
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1040
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
979
1041
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1042
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1043
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
980
1044
  fail ArgumentError, 'relay_name is nil' if relay_name.nil?
1045
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MaxLength': '50'" if !relay_name.nil? && relay_name.length > 50
1046
+ fail ArgumentError, "'relay_name' should satisfy the constraint - 'MinLength': '1'" if !relay_name.nil? && relay_name.length < 1
981
1047
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
1048
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
1049
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
982
1050
  fail ArgumentError, 'parameters is nil' if parameters.nil?
983
1051
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
984
1052
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -66,7 +66,11 @@ module Azure::Relay::Mgmt::V2017_04_01
66
66
  #
67
67
  def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil)
68
68
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
69
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
70
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
69
71
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
72
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
73
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
70
74
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
71
75
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
72
76
 
@@ -169,8 +173,13 @@ module Azure::Relay::Mgmt::V2017_04_01
169
173
  #
170
174
  def create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers = nil)
171
175
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
176
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
177
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
172
178
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
179
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
180
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
173
181
  fail ArgumentError, 'hybrid_connection_name is nil' if hybrid_connection_name.nil?
182
+ fail ArgumentError, "'hybrid_connection_name' should satisfy the constraint - 'MinLength': '1'" if !hybrid_connection_name.nil? && hybrid_connection_name.length < 1
174
183
  fail ArgumentError, 'parameters is nil' if parameters.nil?
175
184
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
176
185
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -276,8 +285,13 @@ module Azure::Relay::Mgmt::V2017_04_01
276
285
  #
277
286
  def delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
278
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
279
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
280
293
  fail ArgumentError, 'hybrid_connection_name is nil' if hybrid_connection_name.nil?
294
+ fail ArgumentError, "'hybrid_connection_name' should satisfy the constraint - 'MinLength': '1'" if !hybrid_connection_name.nil? && hybrid_connection_name.length < 1
281
295
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
282
296
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
283
297
 
@@ -364,8 +378,13 @@ module Azure::Relay::Mgmt::V2017_04_01
364
378
  #
365
379
  def get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
366
380
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
381
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
382
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
367
383
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
384
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
385
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
368
386
  fail ArgumentError, 'hybrid_connection_name is nil' if hybrid_connection_name.nil?
387
+ fail ArgumentError, "'hybrid_connection_name' should satisfy the constraint - 'MinLength': '1'" if !hybrid_connection_name.nil? && hybrid_connection_name.length < 1
369
388
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
370
389
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
371
390
 
@@ -462,8 +481,13 @@ module Azure::Relay::Mgmt::V2017_04_01
462
481
  #
463
482
  def list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil)
464
483
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
484
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
485
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
465
486
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
487
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
488
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
466
489
  fail ArgumentError, 'hybrid_connection_name is nil' if hybrid_connection_name.nil?
490
+ fail ArgumentError, "'hybrid_connection_name' should satisfy the constraint - 'MinLength': '1'" if !hybrid_connection_name.nil? && hybrid_connection_name.length < 1
467
491
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
468
492
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
469
493
 
@@ -566,9 +590,15 @@ module Azure::Relay::Mgmt::V2017_04_01
566
590
  #
567
591
  def create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil)
568
592
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
593
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
594
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
569
595
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
596
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
597
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
570
598
  fail ArgumentError, 'hybrid_connection_name is nil' if hybrid_connection_name.nil?
599
+ fail ArgumentError, "'hybrid_connection_name' should satisfy the constraint - 'MinLength': '1'" if !hybrid_connection_name.nil? && hybrid_connection_name.length < 1
571
600
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
601
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
572
602
  fail ArgumentError, 'parameters is nil' if parameters.nil?
573
603
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
574
604
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -677,9 +707,15 @@ module Azure::Relay::Mgmt::V2017_04_01
677
707
  #
678
708
  def delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil)
679
709
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
710
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
711
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
680
712
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
713
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
714
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
681
715
  fail ArgumentError, 'hybrid_connection_name is nil' if hybrid_connection_name.nil?
716
+ fail ArgumentError, "'hybrid_connection_name' should satisfy the constraint - 'MinLength': '1'" if !hybrid_connection_name.nil? && hybrid_connection_name.length < 1
682
717
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
718
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
683
719
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
684
720
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
685
721
 
@@ -769,9 +805,15 @@ module Azure::Relay::Mgmt::V2017_04_01
769
805
  #
770
806
  def get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil)
771
807
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
808
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
809
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
772
810
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
811
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
812
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
773
813
  fail ArgumentError, 'hybrid_connection_name is nil' if hybrid_connection_name.nil?
814
+ fail ArgumentError, "'hybrid_connection_name' should satisfy the constraint - 'MinLength': '1'" if !hybrid_connection_name.nil? && hybrid_connection_name.length < 1
774
815
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
816
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
775
817
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
776
818
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
777
819
 
@@ -871,9 +913,15 @@ module Azure::Relay::Mgmt::V2017_04_01
871
913
  #
872
914
  def list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil)
873
915
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
916
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
917
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
874
918
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
919
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
920
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
875
921
  fail ArgumentError, 'hybrid_connection_name is nil' if hybrid_connection_name.nil?
922
+ fail ArgumentError, "'hybrid_connection_name' should satisfy the constraint - 'MinLength': '1'" if !hybrid_connection_name.nil? && hybrid_connection_name.length < 1
876
923
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
924
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
877
925
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
878
926
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
879
927
 
@@ -982,9 +1030,15 @@ module Azure::Relay::Mgmt::V2017_04_01
982
1030
  #
983
1031
  def regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil)
984
1032
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1033
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1034
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
985
1035
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1036
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1037
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
986
1038
  fail ArgumentError, 'hybrid_connection_name is nil' if hybrid_connection_name.nil?
1039
+ fail ArgumentError, "'hybrid_connection_name' should satisfy the constraint - 'MinLength': '1'" if !hybrid_connection_name.nil? && hybrid_connection_name.length < 1
987
1040
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
1041
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
988
1042
  fail ArgumentError, 'parameters is nil' if parameters.nil?
989
1043
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
990
1044
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?