google-apis-gkehub_v1beta1 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 GkehubV1beta1
18
+ # Version of the google-apis-gkehub_v1beta1 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 = "20210315"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,511 @@
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 GkehubV1beta1
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 GenerateExclusivityManifestResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GkeCluster
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleRpcStatus
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class KubernetesMetadata
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class KubernetesResource
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListLocationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListMembershipsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListOperationsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Location
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Membership
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class MembershipEndpoint
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class MembershipState
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Operation
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class OperationMetadata
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Policy
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class ResourceManifest
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class ResourceOptions
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class SetIamPolicyRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class TestIamPermissionsRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class TestIamPermissionsResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class TypeMeta
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class ValidateExclusivityResponse
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class AuditConfig
212
+ # @private
213
+ class Representation < Google::Apis::Core::JsonRepresentation
214
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::GkehubV1beta1::AuditLogConfig, decorator: Google::Apis::GkehubV1beta1::AuditLogConfig::Representation
215
+
216
+ property :service, as: 'service'
217
+ end
218
+ end
219
+
220
+ class AuditLogConfig
221
+ # @private
222
+ class Representation < Google::Apis::Core::JsonRepresentation
223
+ collection :exempted_members, as: 'exemptedMembers'
224
+ property :log_type, as: 'logType'
225
+ end
226
+ end
227
+
228
+ class Authority
229
+ # @private
230
+ class Representation < Google::Apis::Core::JsonRepresentation
231
+ property :identity_provider, as: 'identityProvider'
232
+ property :issuer, as: 'issuer'
233
+ property :oidc_jwks, :base64 => true, as: 'oidcJwks'
234
+ property :workload_identity_pool, as: 'workloadIdentityPool'
235
+ end
236
+ end
237
+
238
+ class Binding
239
+ # @private
240
+ class Representation < Google::Apis::Core::JsonRepresentation
241
+ property :condition, as: 'condition', class: Google::Apis::GkehubV1beta1::Expr, decorator: Google::Apis::GkehubV1beta1::Expr::Representation
242
+
243
+ collection :members, as: 'members'
244
+ property :role, as: 'role'
245
+ end
246
+ end
247
+
248
+ class CancelOperationRequest
249
+ # @private
250
+ class Representation < Google::Apis::Core::JsonRepresentation
251
+ end
252
+ end
253
+
254
+ class ConnectAgentResource
255
+ # @private
256
+ class Representation < Google::Apis::Core::JsonRepresentation
257
+ property :manifest, as: 'manifest'
258
+ property :type, as: 'type', class: Google::Apis::GkehubV1beta1::TypeMeta, decorator: Google::Apis::GkehubV1beta1::TypeMeta::Representation
259
+
260
+ end
261
+ end
262
+
263
+ class Empty
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ end
267
+ end
268
+
269
+ class Expr
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ property :description, as: 'description'
273
+ property :expression, as: 'expression'
274
+ property :location, as: 'location'
275
+ property :title, as: 'title'
276
+ end
277
+ end
278
+
279
+ class GenerateConnectManifestResponse
280
+ # @private
281
+ class Representation < Google::Apis::Core::JsonRepresentation
282
+ collection :manifest, as: 'manifest', class: Google::Apis::GkehubV1beta1::ConnectAgentResource, decorator: Google::Apis::GkehubV1beta1::ConnectAgentResource::Representation
283
+
284
+ end
285
+ end
286
+
287
+ class GenerateExclusivityManifestResponse
288
+ # @private
289
+ class Representation < Google::Apis::Core::JsonRepresentation
290
+ property :cr_manifest, as: 'crManifest'
291
+ property :crd_manifest, as: 'crdManifest'
292
+ end
293
+ end
294
+
295
+ class GkeCluster
296
+ # @private
297
+ class Representation < Google::Apis::Core::JsonRepresentation
298
+ property :resource_link, as: 'resourceLink'
299
+ end
300
+ end
301
+
302
+ class GoogleRpcStatus
303
+ # @private
304
+ class Representation < Google::Apis::Core::JsonRepresentation
305
+ property :code, as: 'code'
306
+ collection :details, as: 'details'
307
+ property :message, as: 'message'
308
+ end
309
+ end
310
+
311
+ class KubernetesMetadata
312
+ # @private
313
+ class Representation < Google::Apis::Core::JsonRepresentation
314
+ property :kubernetes_api_server_version, as: 'kubernetesApiServerVersion'
315
+ property :memory_mb, as: 'memoryMb'
316
+ property :node_count, as: 'nodeCount'
317
+ property :node_provider_id, as: 'nodeProviderId'
318
+ property :update_time, as: 'updateTime'
319
+ property :vcpu_count, as: 'vcpuCount'
320
+ end
321
+ end
322
+
323
+ class KubernetesResource
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ collection :connect_resources, as: 'connectResources', class: Google::Apis::GkehubV1beta1::ResourceManifest, decorator: Google::Apis::GkehubV1beta1::ResourceManifest::Representation
327
+
328
+ property :membership_cr_manifest, as: 'membershipCrManifest'
329
+ collection :membership_resources, as: 'membershipResources', class: Google::Apis::GkehubV1beta1::ResourceManifest, decorator: Google::Apis::GkehubV1beta1::ResourceManifest::Representation
330
+
331
+ property :resource_options, as: 'resourceOptions', class: Google::Apis::GkehubV1beta1::ResourceOptions, decorator: Google::Apis::GkehubV1beta1::ResourceOptions::Representation
332
+
333
+ end
334
+ end
335
+
336
+ class ListLocationsResponse
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ collection :locations, as: 'locations', class: Google::Apis::GkehubV1beta1::Location, decorator: Google::Apis::GkehubV1beta1::Location::Representation
340
+
341
+ property :next_page_token, as: 'nextPageToken'
342
+ end
343
+ end
344
+
345
+ class ListMembershipsResponse
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ property :next_page_token, as: 'nextPageToken'
349
+ collection :resources, as: 'resources', class: Google::Apis::GkehubV1beta1::Membership, decorator: Google::Apis::GkehubV1beta1::Membership::Representation
350
+
351
+ collection :unreachable, as: 'unreachable'
352
+ end
353
+ end
354
+
355
+ class ListOperationsResponse
356
+ # @private
357
+ class Representation < Google::Apis::Core::JsonRepresentation
358
+ property :next_page_token, as: 'nextPageToken'
359
+ collection :operations, as: 'operations', class: Google::Apis::GkehubV1beta1::Operation, decorator: Google::Apis::GkehubV1beta1::Operation::Representation
360
+
361
+ end
362
+ end
363
+
364
+ class Location
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ property :display_name, as: 'displayName'
368
+ hash :labels, as: 'labels'
369
+ property :location_id, as: 'locationId'
370
+ hash :metadata, as: 'metadata'
371
+ property :name, as: 'name'
372
+ end
373
+ end
374
+
375
+ class Membership
376
+ # @private
377
+ class Representation < Google::Apis::Core::JsonRepresentation
378
+ property :authority, as: 'authority', class: Google::Apis::GkehubV1beta1::Authority, decorator: Google::Apis::GkehubV1beta1::Authority::Representation
379
+
380
+ property :create_time, as: 'createTime'
381
+ property :delete_time, as: 'deleteTime'
382
+ property :description, as: 'description'
383
+ property :endpoint, as: 'endpoint', class: Google::Apis::GkehubV1beta1::MembershipEndpoint, decorator: Google::Apis::GkehubV1beta1::MembershipEndpoint::Representation
384
+
385
+ property :external_id, as: 'externalId'
386
+ property :infrastructure_type, as: 'infrastructureType'
387
+ hash :labels, as: 'labels'
388
+ property :last_connection_time, as: 'lastConnectionTime'
389
+ property :name, as: 'name'
390
+ property :state, as: 'state', class: Google::Apis::GkehubV1beta1::MembershipState, decorator: Google::Apis::GkehubV1beta1::MembershipState::Representation
391
+
392
+ property :unique_id, as: 'uniqueId'
393
+ property :update_time, as: 'updateTime'
394
+ end
395
+ end
396
+
397
+ class MembershipEndpoint
398
+ # @private
399
+ class Representation < Google::Apis::Core::JsonRepresentation
400
+ property :gke_cluster, as: 'gkeCluster', class: Google::Apis::GkehubV1beta1::GkeCluster, decorator: Google::Apis::GkehubV1beta1::GkeCluster::Representation
401
+
402
+ property :kubernetes_metadata, as: 'kubernetesMetadata', class: Google::Apis::GkehubV1beta1::KubernetesMetadata, decorator: Google::Apis::GkehubV1beta1::KubernetesMetadata::Representation
403
+
404
+ property :kubernetes_resource, as: 'kubernetesResource', class: Google::Apis::GkehubV1beta1::KubernetesResource, decorator: Google::Apis::GkehubV1beta1::KubernetesResource::Representation
405
+
406
+ end
407
+ end
408
+
409
+ class MembershipState
410
+ # @private
411
+ class Representation < Google::Apis::Core::JsonRepresentation
412
+ property :code, as: 'code'
413
+ property :description, as: 'description'
414
+ property :update_time, as: 'updateTime'
415
+ end
416
+ end
417
+
418
+ class Operation
419
+ # @private
420
+ class Representation < Google::Apis::Core::JsonRepresentation
421
+ property :done, as: 'done'
422
+ property :error, as: 'error', class: Google::Apis::GkehubV1beta1::GoogleRpcStatus, decorator: Google::Apis::GkehubV1beta1::GoogleRpcStatus::Representation
423
+
424
+ hash :metadata, as: 'metadata'
425
+ property :name, as: 'name'
426
+ hash :response, as: 'response'
427
+ end
428
+ end
429
+
430
+ class OperationMetadata
431
+ # @private
432
+ class Representation < Google::Apis::Core::JsonRepresentation
433
+ property :api_version, as: 'apiVersion'
434
+ property :cancel_requested, as: 'cancelRequested'
435
+ property :create_time, as: 'createTime'
436
+ property :end_time, as: 'endTime'
437
+ property :status_detail, as: 'statusDetail'
438
+ property :target, as: 'target'
439
+ property :verb, as: 'verb'
440
+ end
441
+ end
442
+
443
+ class Policy
444
+ # @private
445
+ class Representation < Google::Apis::Core::JsonRepresentation
446
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::GkehubV1beta1::AuditConfig, decorator: Google::Apis::GkehubV1beta1::AuditConfig::Representation
447
+
448
+ collection :bindings, as: 'bindings', class: Google::Apis::GkehubV1beta1::Binding, decorator: Google::Apis::GkehubV1beta1::Binding::Representation
449
+
450
+ property :etag, :base64 => true, as: 'etag'
451
+ property :version, as: 'version'
452
+ end
453
+ end
454
+
455
+ class ResourceManifest
456
+ # @private
457
+ class Representation < Google::Apis::Core::JsonRepresentation
458
+ property :cluster_scoped, as: 'clusterScoped'
459
+ property :manifest, as: 'manifest'
460
+ end
461
+ end
462
+
463
+ class ResourceOptions
464
+ # @private
465
+ class Representation < Google::Apis::Core::JsonRepresentation
466
+ property :connect_version, as: 'connectVersion'
467
+ property :v1beta1_crd, as: 'v1beta1Crd'
468
+ end
469
+ end
470
+
471
+ class SetIamPolicyRequest
472
+ # @private
473
+ class Representation < Google::Apis::Core::JsonRepresentation
474
+ property :policy, as: 'policy', class: Google::Apis::GkehubV1beta1::Policy, decorator: Google::Apis::GkehubV1beta1::Policy::Representation
475
+
476
+ property :update_mask, as: 'updateMask'
477
+ end
478
+ end
479
+
480
+ class TestIamPermissionsRequest
481
+ # @private
482
+ class Representation < Google::Apis::Core::JsonRepresentation
483
+ collection :permissions, as: 'permissions'
484
+ end
485
+ end
486
+
487
+ class TestIamPermissionsResponse
488
+ # @private
489
+ class Representation < Google::Apis::Core::JsonRepresentation
490
+ collection :permissions, as: 'permissions'
491
+ end
492
+ end
493
+
494
+ class TypeMeta
495
+ # @private
496
+ class Representation < Google::Apis::Core::JsonRepresentation
497
+ property :api_version, as: 'apiVersion'
498
+ property :kind, as: 'kind'
499
+ end
500
+ end
501
+
502
+ class ValidateExclusivityResponse
503
+ # @private
504
+ class Representation < Google::Apis::Core::JsonRepresentation
505
+ property :status, as: 'status', class: Google::Apis::GkehubV1beta1::GoogleRpcStatus, decorator: Google::Apis::GkehubV1beta1::GoogleRpcStatus::Representation
506
+
507
+ end
508
+ end
509
+ end
510
+ end
511
+ end