google-apis-gkehub_v1alpha2 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 GkehubV1alpha2
18
+ # Version of the google-apis-gkehub_v1alpha2 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,507 @@
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 GkehubV1alpha2
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 InitializeHubRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class InitializeHubResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class KubernetesMetadata
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class KubernetesResource
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListLocationsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListMembershipsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ListOperationsResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Location
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Membership
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class MembershipEndpoint
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class MembershipState
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Operation
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class OperationMetadata
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Policy
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class ResourceManifest
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class ResourceOptions
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class SetIamPolicyRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class TestIamPermissionsRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class TestIamPermissionsResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class TypeMeta
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::GkehubV1alpha2::AuditLogConfig, decorator: Google::Apis::GkehubV1alpha2::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::GkehubV1alpha2::Expr, decorator: Google::Apis::GkehubV1alpha2::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::GkehubV1alpha2::TypeMeta, decorator: Google::Apis::GkehubV1alpha2::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::GkehubV1alpha2::ConnectAgentResource, decorator: Google::Apis::GkehubV1alpha2::ConnectAgentResource::Representation
283
+
284
+ end
285
+ end
286
+
287
+ class GkeCluster
288
+ # @private
289
+ class Representation < Google::Apis::Core::JsonRepresentation
290
+ property :resource_link, as: 'resourceLink'
291
+ end
292
+ end
293
+
294
+ class GoogleRpcStatus
295
+ # @private
296
+ class Representation < Google::Apis::Core::JsonRepresentation
297
+ property :code, as: 'code'
298
+ collection :details, as: 'details'
299
+ property :message, as: 'message'
300
+ end
301
+ end
302
+
303
+ class InitializeHubRequest
304
+ # @private
305
+ class Representation < Google::Apis::Core::JsonRepresentation
306
+ end
307
+ end
308
+
309
+ class InitializeHubResponse
310
+ # @private
311
+ class Representation < Google::Apis::Core::JsonRepresentation
312
+ property :service_identity, as: 'serviceIdentity'
313
+ property :workload_identity_pool, as: 'workloadIdentityPool'
314
+ end
315
+ end
316
+
317
+ class KubernetesMetadata
318
+ # @private
319
+ class Representation < Google::Apis::Core::JsonRepresentation
320
+ property :kubernetes_api_server_version, as: 'kubernetesApiServerVersion'
321
+ property :memory_mb, as: 'memoryMb'
322
+ property :node_count, as: 'nodeCount'
323
+ property :node_provider_id, as: 'nodeProviderId'
324
+ property :update_time, as: 'updateTime'
325
+ property :vcpu_count, as: 'vcpuCount'
326
+ end
327
+ end
328
+
329
+ class KubernetesResource
330
+ # @private
331
+ class Representation < Google::Apis::Core::JsonRepresentation
332
+ collection :connect_resources, as: 'connectResources', class: Google::Apis::GkehubV1alpha2::ResourceManifest, decorator: Google::Apis::GkehubV1alpha2::ResourceManifest::Representation
333
+
334
+ property :membership_cr_manifest, as: 'membershipCrManifest'
335
+ collection :membership_resources, as: 'membershipResources', class: Google::Apis::GkehubV1alpha2::ResourceManifest, decorator: Google::Apis::GkehubV1alpha2::ResourceManifest::Representation
336
+
337
+ property :resource_options, as: 'resourceOptions', class: Google::Apis::GkehubV1alpha2::ResourceOptions, decorator: Google::Apis::GkehubV1alpha2::ResourceOptions::Representation
338
+
339
+ end
340
+ end
341
+
342
+ class ListLocationsResponse
343
+ # @private
344
+ class Representation < Google::Apis::Core::JsonRepresentation
345
+ collection :locations, as: 'locations', class: Google::Apis::GkehubV1alpha2::Location, decorator: Google::Apis::GkehubV1alpha2::Location::Representation
346
+
347
+ property :next_page_token, as: 'nextPageToken'
348
+ end
349
+ end
350
+
351
+ class ListMembershipsResponse
352
+ # @private
353
+ class Representation < Google::Apis::Core::JsonRepresentation
354
+ property :next_page_token, as: 'nextPageToken'
355
+ collection :resources, as: 'resources', class: Google::Apis::GkehubV1alpha2::Membership, decorator: Google::Apis::GkehubV1alpha2::Membership::Representation
356
+
357
+ collection :unreachable, as: 'unreachable'
358
+ end
359
+ end
360
+
361
+ class ListOperationsResponse
362
+ # @private
363
+ class Representation < Google::Apis::Core::JsonRepresentation
364
+ property :next_page_token, as: 'nextPageToken'
365
+ collection :operations, as: 'operations', class: Google::Apis::GkehubV1alpha2::Operation, decorator: Google::Apis::GkehubV1alpha2::Operation::Representation
366
+
367
+ end
368
+ end
369
+
370
+ class Location
371
+ # @private
372
+ class Representation < Google::Apis::Core::JsonRepresentation
373
+ property :display_name, as: 'displayName'
374
+ hash :labels, as: 'labels'
375
+ property :location_id, as: 'locationId'
376
+ hash :metadata, as: 'metadata'
377
+ property :name, as: 'name'
378
+ end
379
+ end
380
+
381
+ class Membership
382
+ # @private
383
+ class Representation < Google::Apis::Core::JsonRepresentation
384
+ property :authority, as: 'authority', class: Google::Apis::GkehubV1alpha2::Authority, decorator: Google::Apis::GkehubV1alpha2::Authority::Representation
385
+
386
+ property :create_time, as: 'createTime'
387
+ property :delete_time, as: 'deleteTime'
388
+ property :description, as: 'description'
389
+ property :endpoint, as: 'endpoint', class: Google::Apis::GkehubV1alpha2::MembershipEndpoint, decorator: Google::Apis::GkehubV1alpha2::MembershipEndpoint::Representation
390
+
391
+ property :external_id, as: 'externalId'
392
+ property :infrastructure_type, as: 'infrastructureType'
393
+ hash :labels, as: 'labels'
394
+ property :last_connection_time, as: 'lastConnectionTime'
395
+ property :name, as: 'name'
396
+ property :state, as: 'state', class: Google::Apis::GkehubV1alpha2::MembershipState, decorator: Google::Apis::GkehubV1alpha2::MembershipState::Representation
397
+
398
+ property :unique_id, as: 'uniqueId'
399
+ property :update_time, as: 'updateTime'
400
+ end
401
+ end
402
+
403
+ class MembershipEndpoint
404
+ # @private
405
+ class Representation < Google::Apis::Core::JsonRepresentation
406
+ property :gke_cluster, as: 'gkeCluster', class: Google::Apis::GkehubV1alpha2::GkeCluster, decorator: Google::Apis::GkehubV1alpha2::GkeCluster::Representation
407
+
408
+ property :kubernetes_metadata, as: 'kubernetesMetadata', class: Google::Apis::GkehubV1alpha2::KubernetesMetadata, decorator: Google::Apis::GkehubV1alpha2::KubernetesMetadata::Representation
409
+
410
+ property :kubernetes_resource, as: 'kubernetesResource', class: Google::Apis::GkehubV1alpha2::KubernetesResource, decorator: Google::Apis::GkehubV1alpha2::KubernetesResource::Representation
411
+
412
+ end
413
+ end
414
+
415
+ class MembershipState
416
+ # @private
417
+ class Representation < Google::Apis::Core::JsonRepresentation
418
+ property :code, as: 'code'
419
+ end
420
+ end
421
+
422
+ class Operation
423
+ # @private
424
+ class Representation < Google::Apis::Core::JsonRepresentation
425
+ property :done, as: 'done'
426
+ property :error, as: 'error', class: Google::Apis::GkehubV1alpha2::GoogleRpcStatus, decorator: Google::Apis::GkehubV1alpha2::GoogleRpcStatus::Representation
427
+
428
+ hash :metadata, as: 'metadata'
429
+ property :name, as: 'name'
430
+ hash :response, as: 'response'
431
+ end
432
+ end
433
+
434
+ class OperationMetadata
435
+ # @private
436
+ class Representation < Google::Apis::Core::JsonRepresentation
437
+ property :api_version, as: 'apiVersion'
438
+ property :cancel_requested, as: 'cancelRequested'
439
+ property :create_time, as: 'createTime'
440
+ property :end_time, as: 'endTime'
441
+ property :status_detail, as: 'statusDetail'
442
+ property :target, as: 'target'
443
+ property :verb, as: 'verb'
444
+ end
445
+ end
446
+
447
+ class Policy
448
+ # @private
449
+ class Representation < Google::Apis::Core::JsonRepresentation
450
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::GkehubV1alpha2::AuditConfig, decorator: Google::Apis::GkehubV1alpha2::AuditConfig::Representation
451
+
452
+ collection :bindings, as: 'bindings', class: Google::Apis::GkehubV1alpha2::Binding, decorator: Google::Apis::GkehubV1alpha2::Binding::Representation
453
+
454
+ property :etag, :base64 => true, as: 'etag'
455
+ property :version, as: 'version'
456
+ end
457
+ end
458
+
459
+ class ResourceManifest
460
+ # @private
461
+ class Representation < Google::Apis::Core::JsonRepresentation
462
+ property :cluster_scoped, as: 'clusterScoped'
463
+ property :manifest, as: 'manifest'
464
+ end
465
+ end
466
+
467
+ class ResourceOptions
468
+ # @private
469
+ class Representation < Google::Apis::Core::JsonRepresentation
470
+ property :connect_version, as: 'connectVersion'
471
+ property :v1beta1_crd, as: 'v1beta1Crd'
472
+ end
473
+ end
474
+
475
+ class SetIamPolicyRequest
476
+ # @private
477
+ class Representation < Google::Apis::Core::JsonRepresentation
478
+ property :policy, as: 'policy', class: Google::Apis::GkehubV1alpha2::Policy, decorator: Google::Apis::GkehubV1alpha2::Policy::Representation
479
+
480
+ property :update_mask, as: 'updateMask'
481
+ end
482
+ end
483
+
484
+ class TestIamPermissionsRequest
485
+ # @private
486
+ class Representation < Google::Apis::Core::JsonRepresentation
487
+ collection :permissions, as: 'permissions'
488
+ end
489
+ end
490
+
491
+ class TestIamPermissionsResponse
492
+ # @private
493
+ class Representation < Google::Apis::Core::JsonRepresentation
494
+ collection :permissions, as: 'permissions'
495
+ end
496
+ end
497
+
498
+ class TypeMeta
499
+ # @private
500
+ class Representation < Google::Apis::Core::JsonRepresentation
501
+ property :api_version, as: 'apiVersion'
502
+ property :kind, as: 'kind'
503
+ end
504
+ end
505
+ end
506
+ end
507
+ end