azure_mgmt_event_hub 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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb +30 -0
  3. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +1 -3
  4. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb +68 -0
  5. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb +2 -0
  6. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb +4 -0
  7. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_create_or_update_parameters.rb +8 -0
  8. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +4 -0
  9. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_resource.rb +9 -0
  10. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_create_or_update_parameters.rb +11 -0
  11. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +4 -0
  12. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_resource.rb +12 -0
  13. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_create_or_update_parameters.rb +12 -0
  14. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_list_result.rb +4 -0
  15. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_resource.rb +15 -0
  16. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_update_parameter.rb +4 -0
  17. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/operation.rb +3 -0
  18. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/operation_display.rb +4 -0
  19. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb +4 -0
  20. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/regenerate_keys_parameters.rb +2 -0
  21. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/resource.rb +5 -0
  22. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/resource_list_keys.rb +6 -0
  23. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_create_or_update_parameters.rb +5 -0
  24. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb +4 -0
  25. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_resource.rb +7 -0
  26. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/sku.rb +4 -0
  27. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb +7 -0
  28. data/lib/2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb +52 -0
  29. data/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb +26 -0
  30. data/lib/2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb +34 -0
  31. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +1 -3
  32. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb +54 -0
  33. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/access_keys.rb +8 -0
  34. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb +7 -0
  35. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb +4 -0
  36. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/authorization_rule.rb +6 -0
  37. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb +4 -0
  38. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/capture_description.rb +6 -0
  39. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb +2 -0
  40. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb +4 -0
  41. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/consumer_group.rb +7 -0
  42. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +4 -0
  43. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/destination.rb +5 -0
  44. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/ehnamespace.rb +15 -0
  45. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb +4 -0
  46. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/error_response.rb +3 -0
  47. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +4 -0
  48. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/eventhub.rb +12 -0
  49. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/operation.rb +3 -0
  50. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/operation_display.rb +4 -0
  51. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb +4 -0
  52. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb +3 -0
  53. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/resource.rb +4 -0
  54. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/sku.rb +4 -0
  55. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb +7 -0
  56. data/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb +47 -0
  57. data/lib/profiles/latest/eventhub_latest_profile_client.rb +1 -3
  58. data/lib/version.rb +1 -1
  59. metadata +10 -9
  60. data/lib/2015-08-01/generated/azure_mgmt_event_hub/version.rb +0 -8
  61. data/lib/2017-04-01/generated/azure_mgmt_event_hub/version.rb +0 -8
  62. data/lib/profiles/common/configurable.rb +0 -86
  63. data/lib/profiles/common/default.rb +0 -57
@@ -25,6 +25,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
25
25
  #
26
26
  def self.mapper()
27
27
  {
28
+ client_side_validation: true,
28
29
  required: false,
29
30
  serialized_name: 'Operation',
30
31
  type: {
@@ -32,6 +33,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
32
33
  class_name: 'Operation',
33
34
  model_properties: {
34
35
  name: {
36
+ client_side_validation: true,
35
37
  required: false,
36
38
  read_only: true,
37
39
  serialized_name: 'name',
@@ -40,6 +42,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
40
42
  }
41
43
  },
42
44
  display: {
45
+ client_side_validation: true,
43
46
  required: false,
44
47
  serialized_name: 'display',
45
48
  type: {
@@ -29,6 +29,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
29
29
  #
30
30
  def self.mapper()
31
31
  {
32
+ client_side_validation: true,
32
33
  required: false,
33
34
  serialized_name: 'Operation_display',
34
35
  type: {
@@ -36,6 +37,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
36
37
  class_name: 'OperationDisplay',
37
38
  model_properties: {
38
39
  provider: {
40
+ client_side_validation: true,
39
41
  required: false,
40
42
  read_only: true,
41
43
  serialized_name: 'provider',
@@ -44,6 +46,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
44
46
  }
45
47
  },
46
48
  resource: {
49
+ client_side_validation: true,
47
50
  required: false,
48
51
  read_only: true,
49
52
  serialized_name: 'resource',
@@ -52,6 +55,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
52
55
  }
53
56
  },
54
57
  operation: {
58
+ client_side_validation: true,
55
59
  required: false,
56
60
  read_only: true,
57
61
  serialized_name: 'operation',
@@ -60,6 +60,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
60
60
  #
61
61
  def self.mapper()
62
62
  {
63
+ client_side_validation: true,
63
64
  required: false,
64
65
  serialized_name: 'OperationListResult',
65
66
  type: {
@@ -67,12 +68,14 @@ module Azure::EventHub::Mgmt::V2015_08_01
67
68
  class_name: 'OperationListResult',
68
69
  model_properties: {
69
70
  value: {
71
+ client_side_validation: true,
70
72
  required: false,
71
73
  read_only: true,
72
74
  serialized_name: 'value',
73
75
  type: {
74
76
  name: 'Sequence',
75
77
  element: {
78
+ client_side_validation: true,
76
79
  required: false,
77
80
  serialized_name: 'OperationElementType',
78
81
  type: {
@@ -83,6 +86,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
83
86
  }
84
87
  },
85
88
  next_link: {
89
+ client_side_validation: true,
86
90
  required: false,
87
91
  read_only: true,
88
92
  serialized_name: 'nextLink',
@@ -23,6 +23,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
23
23
  #
24
24
  def self.mapper()
25
25
  {
26
+ client_side_validation: true,
26
27
  required: false,
27
28
  serialized_name: 'RegenerateKeysParameters',
28
29
  type: {
@@ -30,6 +31,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
30
31
  class_name: 'RegenerateKeysParameters',
31
32
  model_properties: {
32
33
  policykey: {
34
+ client_side_validation: true,
33
35
  required: false,
34
36
  serialized_name: 'policykey',
35
37
  type: {
@@ -31,6 +31,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
31
31
  #
32
32
  def self.mapper()
33
33
  {
34
+ client_side_validation: true,
34
35
  required: false,
35
36
  serialized_name: 'Resource',
36
37
  type: {
@@ -38,6 +39,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
38
39
  class_name: 'Resource',
39
40
  model_properties: {
40
41
  id: {
42
+ client_side_validation: true,
41
43
  required: false,
42
44
  read_only: true,
43
45
  serialized_name: 'id',
@@ -46,6 +48,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
46
48
  }
47
49
  },
48
50
  name: {
51
+ client_side_validation: true,
49
52
  required: false,
50
53
  read_only: true,
51
54
  serialized_name: 'name',
@@ -54,6 +57,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
54
57
  }
55
58
  },
56
59
  location: {
60
+ client_side_validation: true,
57
61
  required: false,
58
62
  serialized_name: 'location',
59
63
  type: {
@@ -61,6 +65,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
61
65
  }
62
66
  },
63
67
  type: {
68
+ client_side_validation: true,
64
69
  required: false,
65
70
  read_only: true,
66
71
  serialized_name: 'type',
@@ -38,6 +38,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
38
38
  #
39
39
  def self.mapper()
40
40
  {
41
+ client_side_validation: true,
41
42
  required: false,
42
43
  serialized_name: 'ResourceListKeys',
43
44
  type: {
@@ -45,6 +46,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
45
46
  class_name: 'ResourceListKeys',
46
47
  model_properties: {
47
48
  primary_connection_string: {
49
+ client_side_validation: true,
48
50
  required: false,
49
51
  read_only: true,
50
52
  serialized_name: 'primaryConnectionString',
@@ -53,6 +55,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
53
55
  }
54
56
  },
55
57
  secondary_connection_string: {
58
+ client_side_validation: true,
56
59
  required: false,
57
60
  read_only: true,
58
61
  serialized_name: 'secondaryConnectionString',
@@ -61,6 +64,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
61
64
  }
62
65
  },
63
66
  primary_key: {
67
+ client_side_validation: true,
64
68
  required: false,
65
69
  read_only: true,
66
70
  serialized_name: 'primaryKey',
@@ -69,6 +73,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
69
73
  }
70
74
  },
71
75
  secondary_key: {
76
+ client_side_validation: true,
72
77
  required: false,
73
78
  read_only: true,
74
79
  serialized_name: 'secondaryKey',
@@ -77,6 +82,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
77
82
  }
78
83
  },
79
84
  key_name: {
85
+ client_side_validation: true,
80
86
  required: false,
81
87
  read_only: true,
82
88
  serialized_name: 'keyName',
@@ -30,6 +30,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
30
30
  #
31
31
  def self.mapper()
32
32
  {
33
+ client_side_validation: true,
33
34
  required: false,
34
35
  serialized_name: 'SharedAccessAuthorizationRuleCreateOrUpdateParameters',
35
36
  type: {
@@ -37,6 +38,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
37
38
  class_name: 'SharedAccessAuthorizationRuleCreateOrUpdateParameters',
38
39
  model_properties: {
39
40
  location: {
41
+ client_side_validation: true,
40
42
  required: false,
41
43
  serialized_name: 'location',
42
44
  type: {
@@ -44,6 +46,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
44
46
  }
45
47
  },
46
48
  name: {
49
+ client_side_validation: true,
47
50
  required: false,
48
51
  serialized_name: 'name',
49
52
  type: {
@@ -51,11 +54,13 @@ module Azure::EventHub::Mgmt::V2015_08_01
51
54
  }
52
55
  },
53
56
  rights: {
57
+ client_side_validation: true,
54
58
  required: true,
55
59
  serialized_name: 'properties.rights',
56
60
  type: {
57
61
  name: 'Sequence',
58
62
  element: {
63
+ client_side_validation: true,
59
64
  required: false,
60
65
  serialized_name: 'AccessRightsElementType',
61
66
  type: {
@@ -61,6 +61,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
61
61
  #
62
62
  def self.mapper()
63
63
  {
64
+ client_side_validation: true,
64
65
  required: false,
65
66
  serialized_name: 'SharedAccessAuthorizationRuleListResult',
66
67
  type: {
@@ -68,11 +69,13 @@ module Azure::EventHub::Mgmt::V2015_08_01
68
69
  class_name: 'SharedAccessAuthorizationRuleListResult',
69
70
  model_properties: {
70
71
  value: {
72
+ client_side_validation: true,
71
73
  required: false,
72
74
  serialized_name: 'value',
73
75
  type: {
74
76
  name: 'Sequence',
75
77
  element: {
78
+ client_side_validation: true,
76
79
  required: false,
77
80
  serialized_name: 'SharedAccessAuthorizationRuleResourceElementType',
78
81
  type: {
@@ -83,6 +86,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
83
86
  }
84
87
  },
85
88
  next_link: {
89
+ client_side_validation: true,
86
90
  required: false,
87
91
  serialized_name: 'nextLink',
88
92
  type: {
@@ -22,6 +22,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
22
22
  #
23
23
  def self.mapper()
24
24
  {
25
+ client_side_validation: true,
25
26
  required: false,
26
27
  serialized_name: 'SharedAccessAuthorizationRuleResource',
27
28
  type: {
@@ -29,6 +30,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
29
30
  class_name: 'SharedAccessAuthorizationRuleResource',
30
31
  model_properties: {
31
32
  id: {
33
+ client_side_validation: true,
32
34
  required: false,
33
35
  read_only: true,
34
36
  serialized_name: 'id',
@@ -37,6 +39,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
37
39
  }
38
40
  },
39
41
  name: {
42
+ client_side_validation: true,
40
43
  required: false,
41
44
  read_only: true,
42
45
  serialized_name: 'name',
@@ -45,6 +48,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
45
48
  }
46
49
  },
47
50
  location: {
51
+ client_side_validation: true,
48
52
  required: false,
49
53
  serialized_name: 'location',
50
54
  type: {
@@ -52,6 +56,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
52
56
  }
53
57
  },
54
58
  type: {
59
+ client_side_validation: true,
55
60
  required: false,
56
61
  read_only: true,
57
62
  serialized_name: 'type',
@@ -60,11 +65,13 @@ module Azure::EventHub::Mgmt::V2015_08_01
60
65
  }
61
66
  },
62
67
  rights: {
68
+ client_side_validation: true,
63
69
  required: true,
64
70
  serialized_name: 'properties.rights',
65
71
  type: {
66
72
  name: 'Sequence',
67
73
  element: {
74
+ client_side_validation: true,
68
75
  required: false,
69
76
  serialized_name: 'AccessRightsElementType',
70
77
  type: {
@@ -30,6 +30,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
30
30
  #
31
31
  def self.mapper()
32
32
  {
33
+ client_side_validation: true,
33
34
  required: false,
34
35
  serialized_name: 'Sku',
35
36
  type: {
@@ -37,6 +38,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
37
38
  class_name: 'Sku',
38
39
  model_properties: {
39
40
  name: {
41
+ client_side_validation: true,
40
42
  required: false,
41
43
  serialized_name: 'name',
42
44
  type: {
@@ -44,6 +46,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
44
46
  }
45
47
  },
46
48
  tier: {
49
+ client_side_validation: true,
47
50
  required: true,
48
51
  serialized_name: 'tier',
49
52
  type: {
@@ -51,6 +54,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
51
54
  }
52
55
  },
53
56
  capacity: {
57
+ client_side_validation: true,
54
58
  required: false,
55
59
  serialized_name: 'capacity',
56
60
  type: {
@@ -22,6 +22,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
22
22
  #
23
23
  def self.mapper()
24
24
  {
25
+ client_side_validation: true,
25
26
  required: false,
26
27
  serialized_name: 'TrackedResource',
27
28
  type: {
@@ -29,6 +30,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
29
30
  class_name: 'TrackedResource',
30
31
  model_properties: {
31
32
  id: {
33
+ client_side_validation: true,
32
34
  required: false,
33
35
  read_only: true,
34
36
  serialized_name: 'id',
@@ -37,6 +39,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
37
39
  }
38
40
  },
39
41
  name: {
42
+ client_side_validation: true,
40
43
  required: false,
41
44
  read_only: true,
42
45
  serialized_name: 'name',
@@ -45,6 +48,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
45
48
  }
46
49
  },
47
50
  location: {
51
+ client_side_validation: true,
48
52
  required: false,
49
53
  serialized_name: 'location',
50
54
  type: {
@@ -52,6 +56,7 @@ module Azure::EventHub::Mgmt::V2015_08_01
52
56
  }
53
57
  },
54
58
  type: {
59
+ client_side_validation: true,
55
60
  required: false,
56
61
  read_only: true,
57
62
  serialized_name: 'type',
@@ -60,11 +65,13 @@ module Azure::EventHub::Mgmt::V2015_08_01
60
65
  }
61
66
  },
62
67
  tags: {
68
+ client_side_validation: true,
63
69
  required: false,
64
70
  serialized_name: 'tags',
65
71
  type: {
66
72
  name: 'Dictionary',
67
73
  value: {
74
+ client_side_validation: true,
68
75
  required: false,
69
76
  serialized_name: 'StringElementType',
70
77
  type: {
@@ -247,6 +247,8 @@ module Azure::EventHub::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::EventHub::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
 
@@ -543,7 +549,11 @@ module Azure::EventHub::Mgmt::V2015_08_01
543
549
  #
544
550
  def update_async(resource_group_name, namespace_name, parameters, custom_headers = nil)
545
551
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
552
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
553
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
546
554
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
555
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
556
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
547
557
  fail ArgumentError, 'parameters is nil' if parameters.nil?
548
558
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
549
559
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -657,7 +667,11 @@ module Azure::EventHub::Mgmt::V2015_08_01
657
667
  #
658
668
  def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers = nil)
659
669
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
670
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
671
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
660
672
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
673
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
674
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
661
675
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
662
676
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
663
677
 
@@ -760,8 +774,14 @@ module Azure::EventHub::Mgmt::V2015_08_01
760
774
  #
761
775
  def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
762
776
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
777
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
778
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
763
779
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
780
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
781
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
764
782
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
783
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
784
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
765
785
  fail ArgumentError, 'parameters is nil' if parameters.nil?
766
786
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
767
787
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -867,8 +887,14 @@ module Azure::EventHub::Mgmt::V2015_08_01
867
887
  #
868
888
  def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
869
889
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
890
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
891
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
870
892
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
893
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
894
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
871
895
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
896
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
897
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
872
898
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
873
899
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
874
900
 
@@ -955,8 +981,14 @@ module Azure::EventHub::Mgmt::V2015_08_01
955
981
  #
956
982
  def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
957
983
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
984
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
985
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
958
986
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
987
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
988
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
959
989
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
990
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
991
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
960
992
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
961
993
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
962
994
 
@@ -1053,8 +1085,14 @@ module Azure::EventHub::Mgmt::V2015_08_01
1053
1085
  #
1054
1086
  def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil)
1055
1087
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1088
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1089
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1056
1090
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1091
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1092
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
1057
1093
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
1094
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
1095
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
1058
1096
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1059
1097
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1060
1098
 
@@ -1160,8 +1198,14 @@ module Azure::EventHub::Mgmt::V2015_08_01
1160
1198
  #
1161
1199
  def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil)
1162
1200
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1201
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1202
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1163
1203
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1204
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1205
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
1164
1206
  fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil?
1207
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MaxLength': '50'" if !authorization_rule_name.nil? && authorization_rule_name.length > 50
1208
+ fail ArgumentError, "'authorization_rule_name' should satisfy the constraint - 'MinLength': '1'" if !authorization_rule_name.nil? && authorization_rule_name.length < 1
1165
1209
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1166
1210
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1167
1211
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1274,7 +1318,11 @@ module Azure::EventHub::Mgmt::V2015_08_01
1274
1318
  #
1275
1319
  def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil)
1276
1320
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1321
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1322
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1277
1323
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1324
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1325
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
1278
1326
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1279
1327
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1280
1328
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1390,7 +1438,11 @@ module Azure::EventHub::Mgmt::V2015_08_01
1390
1438
  #
1391
1439
  def begin_delete_async(resource_group_name, namespace_name, custom_headers = nil)
1392
1440
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1441
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1442
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1393
1443
  fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
1444
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
1445
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
1394
1446
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1395
1447
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1396
1448