azure_mgmt_event_hub 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +7 -6
  3. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb +111 -0
  4. data/lib/2017-04-01/generated/azure_mgmt_event_hub.rb +11 -6
  5. data/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb +36 -8
  6. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +11 -6
  7. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb +36 -8
  8. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb +12 -0
  9. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_plan.rb +134 -0
  10. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions.rb +98 -0
  11. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_list_result.rb +101 -0
  12. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_properties.rb +60 -0
  13. data/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb +99 -0
  14. data/lib/2017-04-01/generated/azure_mgmt_event_hub/regions.rb +224 -0
  15. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub.rb +51 -0
  16. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/clusters.rb +503 -0
  17. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/configuration.rb +257 -0
  18. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/event_hub2018preview_management_client.rb +145 -0
  19. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster.rb +136 -0
  20. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_list_result.rb +100 -0
  21. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_quota_configuration_properties.rb +56 -0
  22. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_sku.rb +64 -0
  23. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace.rb +212 -0
  24. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb +99 -0
  25. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/error_response.rb +58 -0
  26. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ip_filter_rule.rb +96 -0
  27. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ip_filter_rule_list_result.rb +100 -0
  28. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ipaction.rb +16 -0
  29. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation.rb +59 -0
  30. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation_display.rb +72 -0
  31. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation_list_result.rb +103 -0
  32. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/resource.rb +71 -0
  33. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku.rb +75 -0
  34. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku_name.rb +16 -0
  35. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku_tier.rb +16 -0
  36. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/tracked_resource.rb +92 -0
  37. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/virtual_network_rule.rb +73 -0
  38. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/virtual_network_rule_list_result.rb +100 -0
  39. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/module_definition.rb +9 -0
  40. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/namespaces.rb +2006 -0
  41. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/operations.rb +216 -0
  42. data/lib/azure_mgmt_event_hub.rb +2 -1
  43. data/lib/profiles/latest/modules/eventhub_profile_module.rb +61 -111
  44. data/lib/version.rb +1 -1
  45. metadata +37 -5
@@ -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::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # The response of the List Event Hubs Clusters operation.
10
+ #
11
+ class ClusterListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<Cluster>] The Event Hubs Clusters present in the List
17
+ # Event Hubs operation results.
18
+ attr_accessor :value
19
+
20
+ # @return [String] Link to the next set of results. Empty unless the
21
+ # value parameter contains an incomplete list of Event Hubs Clusters.
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<Cluster>] operation results.
31
+ #
32
+ def get_all_items
33
+ items = @value
34
+ page = self
35
+ while page.next_link != nil 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 [ClusterListResult] 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 ClusterListResult 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: 'ClusterListResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'ClusterListResult',
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: 'ClusterElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'Cluster'
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,56 @@
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::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Contains all settings for the cluster.
10
+ #
11
+ class ClusterQuotaConfigurationProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => String}] All possible Cluster settings - a
16
+ # collection of key/value paired settings which apply to quotas and
17
+ # configurations imposed on the cluster.
18
+ attr_accessor :settings
19
+
20
+
21
+ #
22
+ # Mapper for ClusterQuotaConfigurationProperties class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ client_side_validation: true,
28
+ required: false,
29
+ serialized_name: 'ClusterQuotaConfigurationProperties',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'ClusterQuotaConfigurationProperties',
33
+ model_properties: {
34
+ settings: {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'settings',
38
+ type: {
39
+ name: 'Dictionary',
40
+ value: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'StringElementType',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,64 @@
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::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # SKU parameters particular to a cluster instance.
10
+ #
11
+ class ClusterSku
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of this SKU. Default value: 'Dedicated' .
16
+ attr_accessor :name
17
+
18
+ # @return [Integer] The quantity of Event Hubs Cluster Capacity Units
19
+ # contained in this cluster.
20
+ attr_accessor :capacity
21
+
22
+
23
+ #
24
+ # Mapper for ClusterSku class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'ClusterSku',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ClusterSku',
35
+ model_properties: {
36
+ name: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ is_constant: true,
40
+ serialized_name: 'name',
41
+ default_value: 'Dedicated',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ capacity: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'capacity',
50
+ constraints: {
51
+ InclusiveMaximum: 32,
52
+ InclusiveMinimum: 1
53
+ },
54
+ type: {
55
+ name: 'Number'
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,212 @@
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::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # Single Namespace item in List or Get Operation
10
+ #
11
+ class EHNamespace < TrackedResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Sku] Properties of sku resource
16
+ attr_accessor :sku
17
+
18
+ # @return [String] Provisioning state of the Namespace.
19
+ attr_accessor :provisioning_state
20
+
21
+ # @return [DateTime] The time the Namespace was created.
22
+ attr_accessor :created_at
23
+
24
+ # @return [DateTime] The time the Namespace was updated.
25
+ attr_accessor :updated_at
26
+
27
+ # @return [String] Endpoint you can use to perform Service Bus
28
+ # operations.
29
+ attr_accessor :service_bus_endpoint
30
+
31
+ # @return [String] Identifier for Azure Insights metrics.
32
+ attr_accessor :metric_id
33
+
34
+ # @return [Boolean] Value that indicates whether AutoInflate is enabled
35
+ # for eventhub namespace.
36
+ attr_accessor :is_auto_inflate_enabled
37
+
38
+ # @return [Integer] Upper limit of throughput units when AutoInflate is
39
+ # enabled, vaule should be within 0 to 20 throughput units. ( '0' if
40
+ # AutoInflateEnabled = true)
41
+ attr_accessor :maximum_throughput_units
42
+
43
+ # @return [Boolean] Value that indicates whether Kafka is enabled for
44
+ # eventhub namespace.
45
+ attr_accessor :kafka_enabled
46
+
47
+ # @return [Boolean] Enabling this property creates a Standard Event Hubs
48
+ # Namespace in regions supported availability zones.
49
+ attr_accessor :zone_redundant
50
+
51
+
52
+ #
53
+ # Mapper for EHNamespace class as Ruby Hash.
54
+ # This will be used for serialization/deserialization.
55
+ #
56
+ def self.mapper()
57
+ {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'EHNamespace',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'EHNamespace',
64
+ model_properties: {
65
+ id: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'id',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ name: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ read_only: true,
78
+ serialized_name: 'name',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ type: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'type',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ location: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ serialized_name: 'location',
96
+ type: {
97
+ name: 'String'
98
+ }
99
+ },
100
+ tags: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ serialized_name: 'tags',
104
+ type: {
105
+ name: 'Dictionary',
106
+ value: {
107
+ client_side_validation: true,
108
+ required: false,
109
+ serialized_name: 'StringElementType',
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ }
114
+ }
115
+ },
116
+ sku: {
117
+ client_side_validation: true,
118
+ required: false,
119
+ serialized_name: 'sku',
120
+ type: {
121
+ name: 'Composite',
122
+ class_name: 'Sku'
123
+ }
124
+ },
125
+ provisioning_state: {
126
+ client_side_validation: true,
127
+ required: false,
128
+ read_only: true,
129
+ serialized_name: 'properties.provisioningState',
130
+ type: {
131
+ name: 'String'
132
+ }
133
+ },
134
+ created_at: {
135
+ client_side_validation: true,
136
+ required: false,
137
+ read_only: true,
138
+ serialized_name: 'properties.createdAt',
139
+ type: {
140
+ name: 'DateTime'
141
+ }
142
+ },
143
+ updated_at: {
144
+ client_side_validation: true,
145
+ required: false,
146
+ read_only: true,
147
+ serialized_name: 'properties.updatedAt',
148
+ type: {
149
+ name: 'DateTime'
150
+ }
151
+ },
152
+ service_bus_endpoint: {
153
+ client_side_validation: true,
154
+ required: false,
155
+ read_only: true,
156
+ serialized_name: 'properties.serviceBusEndpoint',
157
+ type: {
158
+ name: 'String'
159
+ }
160
+ },
161
+ metric_id: {
162
+ client_side_validation: true,
163
+ required: false,
164
+ read_only: true,
165
+ serialized_name: 'properties.metricId',
166
+ type: {
167
+ name: 'String'
168
+ }
169
+ },
170
+ is_auto_inflate_enabled: {
171
+ client_side_validation: true,
172
+ required: false,
173
+ serialized_name: 'properties.isAutoInflateEnabled',
174
+ type: {
175
+ name: 'Boolean'
176
+ }
177
+ },
178
+ maximum_throughput_units: {
179
+ client_side_validation: true,
180
+ required: false,
181
+ serialized_name: 'properties.maximumThroughputUnits',
182
+ constraints: {
183
+ InclusiveMaximum: 20,
184
+ InclusiveMinimum: 0
185
+ },
186
+ type: {
187
+ name: 'Number'
188
+ }
189
+ },
190
+ kafka_enabled: {
191
+ client_side_validation: true,
192
+ required: false,
193
+ serialized_name: 'properties.kafkaEnabled',
194
+ type: {
195
+ name: 'Boolean'
196
+ }
197
+ },
198
+ zone_redundant: {
199
+ client_side_validation: true,
200
+ required: false,
201
+ serialized_name: 'properties.zoneRedundant',
202
+ type: {
203
+ name: 'Boolean'
204
+ }
205
+ }
206
+ }
207
+ }
208
+ }
209
+ end
210
+ end
211
+ end
212
+ end
@@ -0,0 +1,99 @@
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::V2018_01_01_preview
7
+ module Models
8
+ #
9
+ # The response of the List Namespace operation
10
+ #
11
+ class EHNamespaceListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<EHNamespace>] Result of the List Namespace operation
17
+ attr_accessor :value
18
+
19
+ # @return [String] Link to the next set of results. Not empty if Value
20
+ # contains incomplete list of namespaces.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<EHNamespace>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [EHNamespaceListResult] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for EHNamespaceListResult class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'EHNamespaceListResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'EHNamespaceListResult',
67
+ model_properties: {
68
+ value: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'EHNamespaceElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'EHNamespace'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'nextLink',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ end
97
+ end
98
+ end
99
+ end