azure_mgmt_event_hub 0.17.1 → 0.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2014-09-01/generated/azure_mgmt_event_hub.rb +59 -0
  3. data/lib/2014-09-01/generated/azure_mgmt_event_hub/consumer_groups.rb +598 -0
  4. data/lib/{2018-01-01-preview/generated/azure_mgmt_event_hub/event_hub2018preview_management_client.rb → 2014-09-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb} +14 -14
  5. data/lib/2014-09-01/generated/azure_mgmt_event_hub/event_hubs.rb +1239 -0
  6. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/access_rights.rb +17 -0
  7. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb +46 -0
  8. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb +75 -0
  9. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/consumer_group_create_or_update_parameters.rb +115 -0
  10. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +100 -0
  11. data/lib/{2017-04-01/generated/azure_mgmt_event_hub/models/messaging_plan.rb → 2014-09-01/generated/azure_mgmt_event_hub/models/consumer_group_resource.rb} +26 -43
  12. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/entity_status.rb +23 -0
  13. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/event_hub_create_or_update_parameters.rb +150 -0
  14. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +100 -0
  15. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/event_hub_resource.rb +152 -0
  16. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/namespace_create_or_update_parameters.rb +160 -0
  17. data/lib/{2017-04-01/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb → 2014-09-01/generated/azure_mgmt_event_hub/models/namespace_list_result.rb} +13 -12
  18. data/lib/{2017-04-01/generated/azure_mgmt_event_hub/models/ehnamespace.rb → 2014-09-01/generated/azure_mgmt_event_hub/models/namespace_resource.rb} +31 -38
  19. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/namespace_state.rb +27 -0
  20. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/namespace_update_parameter.rb +66 -0
  21. data/lib/{2018-01-01-preview → 2014-09-01}/generated/azure_mgmt_event_hub/models/operation.rb +1 -1
  22. data/lib/{2018-01-01-preview → 2014-09-01}/generated/azure_mgmt_event_hub/models/operation_display.rb +1 -1
  23. data/lib/{2018-01-01-preview → 2014-09-01}/generated/azure_mgmt_event_hub/models/operation_list_result.rb +2 -2
  24. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/resource.rb +91 -0
  25. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_create_or_update_parameters.rb +79 -0
  26. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb +102 -0
  27. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_post_resource.rb +175 -0
  28. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_resource.rb +90 -0
  29. data/lib/{2017-04-01 → 2014-09-01}/generated/azure_mgmt_event_hub/models/sku.rb +6 -11
  30. data/lib/{2017-04-01 → 2014-09-01}/generated/azure_mgmt_event_hub/models/sku_name.rb +1 -1
  31. data/lib/{2017-04-01 → 2014-09-01}/generated/azure_mgmt_event_hub/models/sku_tier.rb +2 -1
  32. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb +89 -0
  33. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/unavailable_reason.rb +20 -0
  34. data/lib/2014-09-01/generated/azure_mgmt_event_hub/module_definition.rb +9 -0
  35. data/lib/2014-09-01/generated/azure_mgmt_event_hub/namespaces.rb +2044 -0
  36. data/lib/{2018-01-01-preview → 2014-09-01}/generated/azure_mgmt_event_hub/operations.rb +11 -8
  37. data/lib/2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb +10 -0
  38. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +1 -1
  39. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb +31 -5
  40. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +1 -1
  41. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +1 -1
  42. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_list_result.rb +1 -1
  43. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb +1 -1
  44. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb +1 -1
  45. data/lib/2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb +32 -0
  46. data/lib/2015-08-01/generated/azure_mgmt_event_hub/operations.rb +4 -0
  47. data/lib/2017-04-01/generated/azure_mgmt_event_hub.rb +16 -22
  48. data/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb +15 -1
  49. data/lib/2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb +263 -239
  50. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +5 -5
  51. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb +302 -263
  52. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb +1 -1
  53. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb +1 -1
  54. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb +1 -1
  55. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/capture_description.rb +11 -0
  56. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/consumer_group.rb +1 -1
  57. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +1 -1
  58. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/error_response.rb +1 -1
  59. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +1 -1
  60. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions.rb +1 -1
  61. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_list_result.rb +1 -1
  62. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_properties.rb +1 -2
  63. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb +1 -1
  64. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb +1 -1
  65. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/resource.rb +4 -4
  66. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb +3 -3
  67. data/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb +193 -1212
  68. data/lib/2017-04-01/generated/azure_mgmt_event_hub/operations.rb +4 -0
  69. data/lib/2017-04-01/generated/azure_mgmt_event_hub/regions.rb +4 -0
  70. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub.rb +35 -14
  71. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/clusters.rb +530 -29
  72. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/configuration.rb +11 -7
  73. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/event_hub_management_client.rb +149 -0
  74. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/available_cluster.rb +47 -0
  75. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/available_clusters_list.rb +56 -0
  76. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster.rb +18 -6
  77. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_list_result.rb +1 -1
  78. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/connection_state.rb +59 -0
  79. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/default_action.rb +16 -0
  80. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace.rb +36 -1
  81. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_id_container.rb +46 -0
  82. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_id_list_result.rb +56 -0
  83. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb +1 -1
  84. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/encryption.rb +70 -0
  85. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/end_point_provisioning_state.rb +20 -0
  86. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/error_response.rb +1 -1
  87. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/identity.rb +72 -0
  88. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/identity_type.rb +15 -0
  89. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ip_filter_rule_list_result.rb +1 -1
  90. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/key_source.rb +15 -0
  91. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/key_vault_properties.rb +68 -0
  92. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/network_rule_ipaction.rb +15 -0
  93. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/network_rule_set.rb +126 -0
  94. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/nwrule_set_ip_rules.rb +58 -0
  95. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/nwrule_set_virtual_network_rules.rb +59 -0
  96. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint.rb +46 -0
  97. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint_connection.rb +100 -0
  98. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint_connection_list_result.rb +100 -0
  99. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_connection_status.rb +18 -0
  100. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_resource.rb +119 -0
  101. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_resources_list_result.rb +67 -0
  102. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/resource.rb +4 -4
  103. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku.rb +1 -1
  104. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/subnet.rb +46 -0
  105. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/tracked_resource.rb +3 -3
  106. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/virtual_network_rule_list_result.rb +6 -6
  107. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/namespaces.rb +661 -412
  108. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/private_endpoint_connections.rb +625 -0
  109. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/private_link_resources.rb +127 -0
  110. data/lib/azure_mgmt_event_hub.rb +3 -2
  111. data/lib/profiles/latest/modules/eventhub_profile_module.rb +254 -46
  112. data/lib/version.rb +1 -1
  113. metadata +66 -16
@@ -0,0 +1,23 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventHub::Mgmt::V2014_09_01
7
+ module Models
8
+ #
9
+ # Defines values for EntityStatus
10
+ #
11
+ module EntityStatus
12
+ Active = "Active"
13
+ Disabled = "Disabled"
14
+ Restoring = "Restoring"
15
+ SendDisabled = "SendDisabled"
16
+ ReceiveDisabled = "ReceiveDisabled"
17
+ Creating = "Creating"
18
+ Deleting = "Deleting"
19
+ Renaming = "Renaming"
20
+ Unknown = "Unknown"
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,150 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventHub::Mgmt::V2014_09_01
7
+ module Models
8
+ #
9
+ # Parameters supplied to the Create Or Update Event Hub operation.
10
+ #
11
+ class EventHubCreateOrUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Location of the resource.
16
+ attr_accessor :location
17
+
18
+ # @return [String] ARM type of the Namespace.
19
+ attr_accessor :type
20
+
21
+ # @return [String] Name of the Event Hub.
22
+ attr_accessor :name
23
+
24
+ # @return [DateTime] Exact time the Event Hub was created.
25
+ attr_accessor :created_at
26
+
27
+ # @return [Integer] Number of days to retain the events for this Event
28
+ # Hub.
29
+ attr_accessor :message_retention_in_days
30
+
31
+ # @return [Integer] Number of partitions created for the Event Hub.
32
+ attr_accessor :partition_count
33
+
34
+ # @return [Array<String>] Current number of shards on the Event Hub.
35
+ attr_accessor :partition_ids
36
+
37
+ # @return [EntityStatus] Enumerates the possible values for the status of
38
+ # the Event Hub. Possible values include: 'Active', 'Disabled',
39
+ # 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
40
+ # 'Renaming', 'Unknown'
41
+ attr_accessor :status
42
+
43
+ # @return [DateTime] The exact time the message was updated.
44
+ attr_accessor :updated_at
45
+
46
+
47
+ #
48
+ # Mapper for EventHubCreateOrUpdateParameters class as Ruby Hash.
49
+ # This will be used for serialization/deserialization.
50
+ #
51
+ def self.mapper()
52
+ {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'EventHubCreateOrUpdateParameters',
56
+ type: {
57
+ name: 'Composite',
58
+ class_name: 'EventHubCreateOrUpdateParameters',
59
+ model_properties: {
60
+ location: {
61
+ client_side_validation: true,
62
+ required: true,
63
+ serialized_name: 'location',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ type: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'type',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ name: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'name',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ created_at: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'properties.createdAt',
89
+ type: {
90
+ name: 'DateTime'
91
+ }
92
+ },
93
+ message_retention_in_days: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'properties.messageRetentionInDays',
97
+ type: {
98
+ name: 'Number'
99
+ }
100
+ },
101
+ partition_count: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'properties.partitionCount',
105
+ type: {
106
+ name: 'Number'
107
+ }
108
+ },
109
+ partition_ids: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ read_only: true,
113
+ serialized_name: 'properties.partitionIds',
114
+ type: {
115
+ name: 'Sequence',
116
+ element: {
117
+ client_side_validation: true,
118
+ required: false,
119
+ serialized_name: 'StringElementType',
120
+ type: {
121
+ name: 'String'
122
+ }
123
+ }
124
+ }
125
+ },
126
+ status: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ serialized_name: 'properties.status',
130
+ type: {
131
+ name: 'Enum',
132
+ module: 'EntityStatus'
133
+ }
134
+ },
135
+ updated_at: {
136
+ client_side_validation: true,
137
+ required: false,
138
+ read_only: true,
139
+ serialized_name: 'properties.updatedAt',
140
+ type: {
141
+ name: 'DateTime'
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+ end
148
+ end
149
+ end
150
+ end
@@ -0,0 +1,100 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventHub::Mgmt::V2014_09_01
7
+ module Models
8
+ #
9
+ # The result of the List EventHubs operation.
10
+ #
11
+ class EventHubListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<EventHubResource>] Result of the List EventHubs
17
+ # operation.
18
+ attr_accessor :value
19
+
20
+ # @return [String] Link to the next set of results. Not empty if Value
21
+ # contains incomplete list of EventHubs.
22
+ attr_accessor :next_link
23
+
24
+ # return [Proc] with next page method call.
25
+ attr_accessor :next_method
26
+
27
+ #
28
+ # Gets the rest of the items for the request, enabling auto-pagination.
29
+ #
30
+ # @return [Array<EventHubResource>] operation results.
31
+ #
32
+ def get_all_items
33
+ items = @value
34
+ page = self
35
+ while page.next_link != nil && !page.next_link.strip.empty? do
36
+ page = page.get_next_page
37
+ items.concat(page.value)
38
+ end
39
+ items
40
+ end
41
+
42
+ #
43
+ # Gets the next page of results.
44
+ #
45
+ # @return [EventHubListResult] with next page content.
46
+ #
47
+ def get_next_page
48
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
49
+ unless response.nil?
50
+ @next_link = response.body.next_link
51
+ @value = response.body.value
52
+ self
53
+ end
54
+ end
55
+
56
+ #
57
+ # Mapper for EventHubListResult class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'EventHubListResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'EventHubListResult',
68
+ model_properties: {
69
+ value: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'EventHubResourceElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'EventHubResource'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,152 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventHub::Mgmt::V2014_09_01
7
+ module Models
8
+ #
9
+ # Single item in List or Get Event Hub operation
10
+ #
11
+ class EventHubResource < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DateTime] Exact time the Event Hub was created.
16
+ attr_accessor :created_at
17
+
18
+ # @return [Integer] Number of days to retain the events for this Event
19
+ # Hub.
20
+ attr_accessor :message_retention_in_days
21
+
22
+ # @return [Integer] Number of partitions created for the Event Hub.
23
+ attr_accessor :partition_count
24
+
25
+ # @return [Array<String>] Current number of shards on the Event Hub.
26
+ attr_accessor :partition_ids
27
+
28
+ # @return [EntityStatus] Enumerates the possible values for the status of
29
+ # the Event Hub. Possible values include: 'Active', 'Disabled',
30
+ # 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
31
+ # 'Renaming', 'Unknown'
32
+ attr_accessor :status
33
+
34
+ # @return [DateTime] The exact time the message was updated.
35
+ attr_accessor :updated_at
36
+
37
+
38
+ #
39
+ # Mapper for EventHubResource class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'EventHubResource',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'EventHubResource',
50
+ model_properties: {
51
+ id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'id',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ name: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'name',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ location: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'location',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ type: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'type',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ created_at: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'properties.createdAt',
91
+ type: {
92
+ name: 'DateTime'
93
+ }
94
+ },
95
+ message_retention_in_days: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ serialized_name: 'properties.messageRetentionInDays',
99
+ type: {
100
+ name: 'Number'
101
+ }
102
+ },
103
+ partition_count: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ serialized_name: 'properties.partitionCount',
107
+ type: {
108
+ name: 'Number'
109
+ }
110
+ },
111
+ partition_ids: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ read_only: true,
115
+ serialized_name: 'properties.partitionIds',
116
+ type: {
117
+ name: 'Sequence',
118
+ element: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ serialized_name: 'StringElementType',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ }
126
+ }
127
+ },
128
+ status: {
129
+ client_side_validation: true,
130
+ required: false,
131
+ serialized_name: 'properties.status',
132
+ type: {
133
+ name: 'Enum',
134
+ module: 'EntityStatus'
135
+ }
136
+ },
137
+ updated_at: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ read_only: true,
141
+ serialized_name: 'properties.updatedAt',
142
+ type: {
143
+ name: 'DateTime'
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ end
150
+ end
151
+ end
152
+ end
@@ -0,0 +1,160 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::EventHub::Mgmt::V2014_09_01
7
+ module Models
8
+ #
9
+ # Parameters supplied to the Create Or Update Namespace operation.
10
+ #
11
+ class NamespaceCreateOrUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Namespace location.
16
+ attr_accessor :location
17
+
18
+ # @return [Sku]
19
+ attr_accessor :sku
20
+
21
+ # @return [Hash{String => String}] Namespace tags.
22
+ attr_accessor :tags
23
+
24
+ # @return [NamespaceState] State of the Namespace. Possible values
25
+ # include: 'Unknown', 'Creating', 'Created', 'Activating', 'Enabling',
26
+ # 'Active', 'Disabling', 'Disabled', 'SoftDeleting', 'SoftDeleted',
27
+ # 'Removing', 'Removed', 'Failed'
28
+ attr_accessor :status
29
+
30
+ # @return [String] Provisioning state of the Namespace.
31
+ attr_accessor :provisioning_state
32
+
33
+ # @return [DateTime] The time the Namespace was created.
34
+ attr_accessor :created_at
35
+
36
+ # @return [DateTime] The time the Namespace was updated.
37
+ attr_accessor :updated_at
38
+
39
+ # @return [String] Endpoint you can use to perform Service Bus
40
+ # operations.
41
+ attr_accessor :service_bus_endpoint
42
+
43
+ # @return [String] Identifier for Azure Insights metrics
44
+ attr_accessor :metric_id
45
+
46
+ # @return [Boolean] Specifies whether this instance is enabled.
47
+ attr_accessor :enabled
48
+
49
+
50
+ #
51
+ # Mapper for NamespaceCreateOrUpdateParameters class as Ruby Hash.
52
+ # This will be used for serialization/deserialization.
53
+ #
54
+ def self.mapper()
55
+ {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'NamespaceCreateOrUpdateParameters',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'NamespaceCreateOrUpdateParameters',
62
+ model_properties: {
63
+ location: {
64
+ client_side_validation: true,
65
+ required: true,
66
+ serialized_name: 'location',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ sku: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'sku',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'Sku'
78
+ }
79
+ },
80
+ tags: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ serialized_name: 'tags',
84
+ type: {
85
+ name: 'Dictionary',
86
+ value: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ serialized_name: 'StringElementType',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ },
96
+ status: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'properties.status',
100
+ type: {
101
+ name: 'Enum',
102
+ module: 'NamespaceState'
103
+ }
104
+ },
105
+ provisioning_state: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ serialized_name: 'properties.provisioningState',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ created_at: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ serialized_name: 'properties.createdAt',
117
+ type: {
118
+ name: 'DateTime'
119
+ }
120
+ },
121
+ updated_at: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ serialized_name: 'properties.updatedAt',
125
+ type: {
126
+ name: 'DateTime'
127
+ }
128
+ },
129
+ service_bus_endpoint: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ serialized_name: 'properties.serviceBusEndpoint',
133
+ type: {
134
+ name: 'String'
135
+ }
136
+ },
137
+ metric_id: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ read_only: true,
141
+ serialized_name: 'properties.metricId',
142
+ type: {
143
+ name: 'String'
144
+ }
145
+ },
146
+ enabled: {
147
+ client_side_validation: true,
148
+ required: false,
149
+ serialized_name: 'properties.enabled',
150
+ type: {
151
+ name: 'Boolean'
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ end
158
+ end
159
+ end
160
+ end