google-apis-gkehub_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 GkehubV1
18
+ # Version of the google-apis-gkehub_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.2.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20210322"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,430 @@
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 GkehubV1
24
+
25
+ class AuditConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AuditLogConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Authority
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Binding
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CancelOperationRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ConnectAgentResource
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Empty
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Expr
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GenerateConnectManifestResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GkeCluster
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleRpcStatus
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class KubernetesMetadata
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListLocationsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListMembershipsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListOperationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Location
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Membership
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class MembershipEndpoint
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class MembershipState
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Operation
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class OperationMetadata
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Policy
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class SetIamPolicyRequest
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class TestIamPermissionsRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class TestIamPermissionsResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class TypeMeta
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class AuditConfig
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::GkehubV1::AuditLogConfig, decorator: Google::Apis::GkehubV1::AuditLogConfig::Representation
185
+
186
+ property :service, as: 'service'
187
+ end
188
+ end
189
+
190
+ class AuditLogConfig
191
+ # @private
192
+ class Representation < Google::Apis::Core::JsonRepresentation
193
+ collection :exempted_members, as: 'exemptedMembers'
194
+ property :log_type, as: 'logType'
195
+ end
196
+ end
197
+
198
+ class Authority
199
+ # @private
200
+ class Representation < Google::Apis::Core::JsonRepresentation
201
+ property :identity_provider, as: 'identityProvider'
202
+ property :issuer, as: 'issuer'
203
+ property :workload_identity_pool, as: 'workloadIdentityPool'
204
+ end
205
+ end
206
+
207
+ class Binding
208
+ # @private
209
+ class Representation < Google::Apis::Core::JsonRepresentation
210
+ property :condition, as: 'condition', class: Google::Apis::GkehubV1::Expr, decorator: Google::Apis::GkehubV1::Expr::Representation
211
+
212
+ collection :members, as: 'members'
213
+ property :role, as: 'role'
214
+ end
215
+ end
216
+
217
+ class CancelOperationRequest
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ end
221
+ end
222
+
223
+ class ConnectAgentResource
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :manifest, as: 'manifest'
227
+ property :type, as: 'type', class: Google::Apis::GkehubV1::TypeMeta, decorator: Google::Apis::GkehubV1::TypeMeta::Representation
228
+
229
+ end
230
+ end
231
+
232
+ class Empty
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ end
236
+ end
237
+
238
+ class Expr
239
+ # @private
240
+ class Representation < Google::Apis::Core::JsonRepresentation
241
+ property :description, as: 'description'
242
+ property :expression, as: 'expression'
243
+ property :location, as: 'location'
244
+ property :title, as: 'title'
245
+ end
246
+ end
247
+
248
+ class GenerateConnectManifestResponse
249
+ # @private
250
+ class Representation < Google::Apis::Core::JsonRepresentation
251
+ collection :manifest, as: 'manifest', class: Google::Apis::GkehubV1::ConnectAgentResource, decorator: Google::Apis::GkehubV1::ConnectAgentResource::Representation
252
+
253
+ end
254
+ end
255
+
256
+ class GkeCluster
257
+ # @private
258
+ class Representation < Google::Apis::Core::JsonRepresentation
259
+ property :resource_link, as: 'resourceLink'
260
+ end
261
+ end
262
+
263
+ class GoogleRpcStatus
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ property :code, as: 'code'
267
+ collection :details, as: 'details'
268
+ property :message, as: 'message'
269
+ end
270
+ end
271
+
272
+ class KubernetesMetadata
273
+ # @private
274
+ class Representation < Google::Apis::Core::JsonRepresentation
275
+ property :kubernetes_api_server_version, as: 'kubernetesApiServerVersion'
276
+ property :memory_mb, as: 'memoryMb'
277
+ property :node_count, as: 'nodeCount'
278
+ property :node_provider_id, as: 'nodeProviderId'
279
+ property :update_time, as: 'updateTime'
280
+ property :vcpu_count, as: 'vcpuCount'
281
+ end
282
+ end
283
+
284
+ class ListLocationsResponse
285
+ # @private
286
+ class Representation < Google::Apis::Core::JsonRepresentation
287
+ collection :locations, as: 'locations', class: Google::Apis::GkehubV1::Location, decorator: Google::Apis::GkehubV1::Location::Representation
288
+
289
+ property :next_page_token, as: 'nextPageToken'
290
+ end
291
+ end
292
+
293
+ class ListMembershipsResponse
294
+ # @private
295
+ class Representation < Google::Apis::Core::JsonRepresentation
296
+ property :next_page_token, as: 'nextPageToken'
297
+ collection :resources, as: 'resources', class: Google::Apis::GkehubV1::Membership, decorator: Google::Apis::GkehubV1::Membership::Representation
298
+
299
+ collection :unreachable, as: 'unreachable'
300
+ end
301
+ end
302
+
303
+ class ListOperationsResponse
304
+ # @private
305
+ class Representation < Google::Apis::Core::JsonRepresentation
306
+ property :next_page_token, as: 'nextPageToken'
307
+ collection :operations, as: 'operations', class: Google::Apis::GkehubV1::Operation, decorator: Google::Apis::GkehubV1::Operation::Representation
308
+
309
+ end
310
+ end
311
+
312
+ class Location
313
+ # @private
314
+ class Representation < Google::Apis::Core::JsonRepresentation
315
+ property :display_name, as: 'displayName'
316
+ hash :labels, as: 'labels'
317
+ property :location_id, as: 'locationId'
318
+ hash :metadata, as: 'metadata'
319
+ property :name, as: 'name'
320
+ end
321
+ end
322
+
323
+ class Membership
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ property :authority, as: 'authority', class: Google::Apis::GkehubV1::Authority, decorator: Google::Apis::GkehubV1::Authority::Representation
327
+
328
+ property :create_time, as: 'createTime'
329
+ property :delete_time, as: 'deleteTime'
330
+ property :description, as: 'description'
331
+ property :endpoint, as: 'endpoint', class: Google::Apis::GkehubV1::MembershipEndpoint, decorator: Google::Apis::GkehubV1::MembershipEndpoint::Representation
332
+
333
+ property :external_id, as: 'externalId'
334
+ hash :labels, as: 'labels'
335
+ property :last_connection_time, as: 'lastConnectionTime'
336
+ property :name, as: 'name'
337
+ property :state, as: 'state', class: Google::Apis::GkehubV1::MembershipState, decorator: Google::Apis::GkehubV1::MembershipState::Representation
338
+
339
+ property :unique_id, as: 'uniqueId'
340
+ property :update_time, as: 'updateTime'
341
+ end
342
+ end
343
+
344
+ class MembershipEndpoint
345
+ # @private
346
+ class Representation < Google::Apis::Core::JsonRepresentation
347
+ property :gke_cluster, as: 'gkeCluster', class: Google::Apis::GkehubV1::GkeCluster, decorator: Google::Apis::GkehubV1::GkeCluster::Representation
348
+
349
+ property :kubernetes_metadata, as: 'kubernetesMetadata', class: Google::Apis::GkehubV1::KubernetesMetadata, decorator: Google::Apis::GkehubV1::KubernetesMetadata::Representation
350
+
351
+ end
352
+ end
353
+
354
+ class MembershipState
355
+ # @private
356
+ class Representation < Google::Apis::Core::JsonRepresentation
357
+ property :code, as: 'code'
358
+ end
359
+ end
360
+
361
+ class Operation
362
+ # @private
363
+ class Representation < Google::Apis::Core::JsonRepresentation
364
+ property :done, as: 'done'
365
+ property :error, as: 'error', class: Google::Apis::GkehubV1::GoogleRpcStatus, decorator: Google::Apis::GkehubV1::GoogleRpcStatus::Representation
366
+
367
+ hash :metadata, as: 'metadata'
368
+ property :name, as: 'name'
369
+ hash :response, as: 'response'
370
+ end
371
+ end
372
+
373
+ class OperationMetadata
374
+ # @private
375
+ class Representation < Google::Apis::Core::JsonRepresentation
376
+ property :api_version, as: 'apiVersion'
377
+ property :cancel_requested, as: 'cancelRequested'
378
+ property :create_time, as: 'createTime'
379
+ property :end_time, as: 'endTime'
380
+ property :status_detail, as: 'statusDetail'
381
+ property :target, as: 'target'
382
+ property :verb, as: 'verb'
383
+ end
384
+ end
385
+
386
+ class Policy
387
+ # @private
388
+ class Representation < Google::Apis::Core::JsonRepresentation
389
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::GkehubV1::AuditConfig, decorator: Google::Apis::GkehubV1::AuditConfig::Representation
390
+
391
+ collection :bindings, as: 'bindings', class: Google::Apis::GkehubV1::Binding, decorator: Google::Apis::GkehubV1::Binding::Representation
392
+
393
+ property :etag, :base64 => true, as: 'etag'
394
+ property :version, as: 'version'
395
+ end
396
+ end
397
+
398
+ class SetIamPolicyRequest
399
+ # @private
400
+ class Representation < Google::Apis::Core::JsonRepresentation
401
+ property :policy, as: 'policy', class: Google::Apis::GkehubV1::Policy, decorator: Google::Apis::GkehubV1::Policy::Representation
402
+
403
+ property :update_mask, as: 'updateMask'
404
+ end
405
+ end
406
+
407
+ class TestIamPermissionsRequest
408
+ # @private
409
+ class Representation < Google::Apis::Core::JsonRepresentation
410
+ collection :permissions, as: 'permissions'
411
+ end
412
+ end
413
+
414
+ class TestIamPermissionsResponse
415
+ # @private
416
+ class Representation < Google::Apis::Core::JsonRepresentation
417
+ collection :permissions, as: 'permissions'
418
+ end
419
+ end
420
+
421
+ class TypeMeta
422
+ # @private
423
+ class Representation < Google::Apis::Core::JsonRepresentation
424
+ property :api_version, as: 'apiVersion'
425
+ property :kind, as: 'kind'
426
+ end
427
+ end
428
+ end
429
+ end
430
+ end