google-apis-managedkafka_v1 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module ManagedkafkaV1
18
+ # Version of the google-apis-managedkafka_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.16.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20250306"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,348 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ManagedkafkaV1
24
+
25
+ class AccessConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class CancelOperationRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CapacityConfig
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Cluster
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ConsumerGroup
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ConsumerPartitionMetadata
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ConsumerTopicMetadata
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Empty
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GcpConfig
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ListClustersResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListConsumerGroupsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListLocationsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListOperationsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListTopicsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Location
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class NetworkConfig
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Operation
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class OperationMetadata
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class RebalanceConfig
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Status
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Topic
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class AccessConfig
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ collection :network_configs, as: 'networkConfigs', class: Google::Apis::ManagedkafkaV1::NetworkConfig, decorator: Google::Apis::ManagedkafkaV1::NetworkConfig::Representation
155
+
156
+ end
157
+ end
158
+
159
+ class CancelOperationRequest
160
+ # @private
161
+ class Representation < Google::Apis::Core::JsonRepresentation
162
+ end
163
+ end
164
+
165
+ class CapacityConfig
166
+ # @private
167
+ class Representation < Google::Apis::Core::JsonRepresentation
168
+ property :memory_bytes, :numeric_string => true, as: 'memoryBytes'
169
+ property :vcpu_count, :numeric_string => true, as: 'vcpuCount'
170
+ end
171
+ end
172
+
173
+ class Cluster
174
+ # @private
175
+ class Representation < Google::Apis::Core::JsonRepresentation
176
+ property :capacity_config, as: 'capacityConfig', class: Google::Apis::ManagedkafkaV1::CapacityConfig, decorator: Google::Apis::ManagedkafkaV1::CapacityConfig::Representation
177
+
178
+ property :create_time, as: 'createTime'
179
+ property :gcp_config, as: 'gcpConfig', class: Google::Apis::ManagedkafkaV1::GcpConfig, decorator: Google::Apis::ManagedkafkaV1::GcpConfig::Representation
180
+
181
+ hash :labels, as: 'labels'
182
+ property :name, as: 'name'
183
+ property :rebalance_config, as: 'rebalanceConfig', class: Google::Apis::ManagedkafkaV1::RebalanceConfig, decorator: Google::Apis::ManagedkafkaV1::RebalanceConfig::Representation
184
+
185
+ property :satisfies_pzi, as: 'satisfiesPzi'
186
+ property :satisfies_pzs, as: 'satisfiesPzs'
187
+ property :state, as: 'state'
188
+ property :update_time, as: 'updateTime'
189
+ end
190
+ end
191
+
192
+ class ConsumerGroup
193
+ # @private
194
+ class Representation < Google::Apis::Core::JsonRepresentation
195
+ property :name, as: 'name'
196
+ hash :topics, as: 'topics', class: Google::Apis::ManagedkafkaV1::ConsumerTopicMetadata, decorator: Google::Apis::ManagedkafkaV1::ConsumerTopicMetadata::Representation
197
+
198
+ end
199
+ end
200
+
201
+ class ConsumerPartitionMetadata
202
+ # @private
203
+ class Representation < Google::Apis::Core::JsonRepresentation
204
+ property :metadata, as: 'metadata'
205
+ property :offset, :numeric_string => true, as: 'offset'
206
+ end
207
+ end
208
+
209
+ class ConsumerTopicMetadata
210
+ # @private
211
+ class Representation < Google::Apis::Core::JsonRepresentation
212
+ hash :partitions, as: 'partitions', class: Google::Apis::ManagedkafkaV1::ConsumerPartitionMetadata, decorator: Google::Apis::ManagedkafkaV1::ConsumerPartitionMetadata::Representation
213
+
214
+ end
215
+ end
216
+
217
+ class Empty
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ end
221
+ end
222
+
223
+ class GcpConfig
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :access_config, as: 'accessConfig', class: Google::Apis::ManagedkafkaV1::AccessConfig, decorator: Google::Apis::ManagedkafkaV1::AccessConfig::Representation
227
+
228
+ property :kms_key, as: 'kmsKey'
229
+ end
230
+ end
231
+
232
+ class ListClustersResponse
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ collection :clusters, as: 'clusters', class: Google::Apis::ManagedkafkaV1::Cluster, decorator: Google::Apis::ManagedkafkaV1::Cluster::Representation
236
+
237
+ property :next_page_token, as: 'nextPageToken'
238
+ collection :unreachable, as: 'unreachable'
239
+ end
240
+ end
241
+
242
+ class ListConsumerGroupsResponse
243
+ # @private
244
+ class Representation < Google::Apis::Core::JsonRepresentation
245
+ collection :consumer_groups, as: 'consumerGroups', class: Google::Apis::ManagedkafkaV1::ConsumerGroup, decorator: Google::Apis::ManagedkafkaV1::ConsumerGroup::Representation
246
+
247
+ property :next_page_token, as: 'nextPageToken'
248
+ end
249
+ end
250
+
251
+ class ListLocationsResponse
252
+ # @private
253
+ class Representation < Google::Apis::Core::JsonRepresentation
254
+ collection :locations, as: 'locations', class: Google::Apis::ManagedkafkaV1::Location, decorator: Google::Apis::ManagedkafkaV1::Location::Representation
255
+
256
+ property :next_page_token, as: 'nextPageToken'
257
+ end
258
+ end
259
+
260
+ class ListOperationsResponse
261
+ # @private
262
+ class Representation < Google::Apis::Core::JsonRepresentation
263
+ property :next_page_token, as: 'nextPageToken'
264
+ collection :operations, as: 'operations', class: Google::Apis::ManagedkafkaV1::Operation, decorator: Google::Apis::ManagedkafkaV1::Operation::Representation
265
+
266
+ end
267
+ end
268
+
269
+ class ListTopicsResponse
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ property :next_page_token, as: 'nextPageToken'
273
+ collection :topics, as: 'topics', class: Google::Apis::ManagedkafkaV1::Topic, decorator: Google::Apis::ManagedkafkaV1::Topic::Representation
274
+
275
+ end
276
+ end
277
+
278
+ class Location
279
+ # @private
280
+ class Representation < Google::Apis::Core::JsonRepresentation
281
+ property :display_name, as: 'displayName'
282
+ hash :labels, as: 'labels'
283
+ property :location_id, as: 'locationId'
284
+ hash :metadata, as: 'metadata'
285
+ property :name, as: 'name'
286
+ end
287
+ end
288
+
289
+ class NetworkConfig
290
+ # @private
291
+ class Representation < Google::Apis::Core::JsonRepresentation
292
+ property :subnet, as: 'subnet'
293
+ end
294
+ end
295
+
296
+ class Operation
297
+ # @private
298
+ class Representation < Google::Apis::Core::JsonRepresentation
299
+ property :done, as: 'done'
300
+ property :error, as: 'error', class: Google::Apis::ManagedkafkaV1::Status, decorator: Google::Apis::ManagedkafkaV1::Status::Representation
301
+
302
+ hash :metadata, as: 'metadata'
303
+ property :name, as: 'name'
304
+ hash :response, as: 'response'
305
+ end
306
+ end
307
+
308
+ class OperationMetadata
309
+ # @private
310
+ class Representation < Google::Apis::Core::JsonRepresentation
311
+ property :api_version, as: 'apiVersion'
312
+ property :create_time, as: 'createTime'
313
+ property :end_time, as: 'endTime'
314
+ property :requested_cancellation, as: 'requestedCancellation'
315
+ property :status_message, as: 'statusMessage'
316
+ property :target, as: 'target'
317
+ property :verb, as: 'verb'
318
+ end
319
+ end
320
+
321
+ class RebalanceConfig
322
+ # @private
323
+ class Representation < Google::Apis::Core::JsonRepresentation
324
+ property :mode, as: 'mode'
325
+ end
326
+ end
327
+
328
+ class Status
329
+ # @private
330
+ class Representation < Google::Apis::Core::JsonRepresentation
331
+ property :code, as: 'code'
332
+ collection :details, as: 'details'
333
+ property :message, as: 'message'
334
+ end
335
+ end
336
+
337
+ class Topic
338
+ # @private
339
+ class Representation < Google::Apis::Core::JsonRepresentation
340
+ hash :configs, as: 'configs'
341
+ property :name, as: 'name'
342
+ property :partition_count, as: 'partitionCount'
343
+ property :replication_factor, as: 'replicationFactor'
344
+ end
345
+ end
346
+ end
347
+ end
348
+ end