google-apis-run_v1alpha1 0.1.0 → 0.6.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/run_v1alpha1.rb +1 -1
- data/lib/google/apis/run_v1alpha1/classes.rb +498 -1228
- data/lib/google/apis/run_v1alpha1/gem_version.rb +3 -3
- data/lib/google/apis/run_v1alpha1/representations.rb +121 -451
- data/lib/google/apis/run_v1alpha1/service.rb +285 -1905
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6cda763bf0ebef19d71468cd67494f99bd065300922972f709169c8edd415f2
|
4
|
+
data.tar.gz: 20cf71b90ccb23ae5e480fbd38416d87272ecfa33ca6b654cadbd2ca61f7f3e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f82558ca38f40b19e52e36b992c1a398abb48e6f95bf6bc3dbbb3acfc3d56ec460f38009d61c38fc379d87ec1a65eb5539e75c7f85b0b97ceafe1e0ee320b62
|
7
|
+
data.tar.gz: 64befb1ed378ee7185356044c3d69d8c794244ed1a0cadc54716794f61a3c70a733605d34fd8052d18105da8ae7d7dde80771e2e9b4a651c4014dd930b6740b5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-run_v1alpha1
|
2
2
|
|
3
|
+
### v0.6.0 (2021-03-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210319
|
6
|
+
|
7
|
+
### v0.5.0 (2021-03-20)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210312
|
10
|
+
* Regenerated using generator version 0.2.0
|
11
|
+
|
12
|
+
### v0.4.0 (2021-03-04)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.3.0 (2021-02-23)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210212
|
19
|
+
|
20
|
+
### v0.2.0 (2021-01-30)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210122
|
23
|
+
* Regenerated using generator version 0.1.2
|
24
|
+
|
3
25
|
### v0.1.0 (2021-01-07)
|
4
26
|
|
5
27
|
* Regenerated using generator version 0.1.1
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1alpha1'
|
32
32
|
|
33
|
-
#
|
33
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
end
|
36
36
|
end
|
@@ -242,685 +242,6 @@ module Google
|
|
242
242
|
end
|
243
243
|
end
|
244
244
|
|
245
|
-
#
|
246
|
-
class CloudAuditLogsSource
|
247
|
-
include Google::Apis::Core::Hashable
|
248
|
-
|
249
|
-
# The API version for this call such as "events.cloud.google.com/v1alpha1".
|
250
|
-
# Corresponds to the JSON property `apiVersion`
|
251
|
-
# @return [String]
|
252
|
-
attr_accessor :api_version
|
253
|
-
|
254
|
-
# The kind of resource, in this case "CloudAuditLogsSource".
|
255
|
-
# Corresponds to the JSON property `kind`
|
256
|
-
# @return [String]
|
257
|
-
attr_accessor :kind
|
258
|
-
|
259
|
-
# ObjectMeta is metadata that all persisted resources must have, which includes
|
260
|
-
# all objects users must create.
|
261
|
-
# Corresponds to the JSON property `metadata`
|
262
|
-
# @return [Google::Apis::RunV1alpha1::ObjectMeta]
|
263
|
-
attr_accessor :metadata
|
264
|
-
|
265
|
-
# The desired state of the CloudAuditLogsSource.
|
266
|
-
# Corresponds to the JSON property `spec`
|
267
|
-
# @return [Google::Apis::RunV1alpha1::CloudAuditLogsSourceSpec]
|
268
|
-
attr_accessor :spec
|
269
|
-
|
270
|
-
# CloudAuditLogsSourceStatus represents the current state of a
|
271
|
-
# CloudAuditLogsSource.
|
272
|
-
# Corresponds to the JSON property `status`
|
273
|
-
# @return [Google::Apis::RunV1alpha1::CloudAuditLogsSourceStatus]
|
274
|
-
attr_accessor :status
|
275
|
-
|
276
|
-
def initialize(**args)
|
277
|
-
update!(**args)
|
278
|
-
end
|
279
|
-
|
280
|
-
# Update properties of this object
|
281
|
-
def update!(**args)
|
282
|
-
@api_version = args[:api_version] if args.key?(:api_version)
|
283
|
-
@kind = args[:kind] if args.key?(:kind)
|
284
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
285
|
-
@spec = args[:spec] if args.key?(:spec)
|
286
|
-
@status = args[:status] if args.key?(:status)
|
287
|
-
end
|
288
|
-
end
|
289
|
-
|
290
|
-
# The desired state of the CloudAuditLogsSource.
|
291
|
-
class CloudAuditLogsSourceSpec
|
292
|
-
include Google::Apis::Core::Hashable
|
293
|
-
|
294
|
-
# CloudEventOverrides defines arguments for a Source that control the output
|
295
|
-
# format of the CloudEvents produced by the Source.
|
296
|
-
# Corresponds to the JSON property `ceOverrides`
|
297
|
-
# @return [Google::Apis::RunV1alpha1::CloudEventOverrides]
|
298
|
-
attr_accessor :ce_overrides
|
299
|
-
|
300
|
-
# Required. The method name at the service API. This must match "methodName" in
|
301
|
-
# Cloud Audit Logs. Regex or Wildcards (*) are not supported. Example: "google.
|
302
|
-
# cloud.bigquery.job.create".
|
303
|
-
# Corresponds to the JSON property `methodName`
|
304
|
-
# @return [String]
|
305
|
-
attr_accessor :method_name
|
306
|
-
|
307
|
-
# Optional. The resource specification. This must match "methodName" in Cloud
|
308
|
-
# Audit Logs. Regex or Wildcards (*) are not supported. Example: "projects/my-
|
309
|
-
# project/jobs/foo".
|
310
|
-
# Corresponds to the JSON property `resourceName`
|
311
|
-
# @return [String]
|
312
|
-
attr_accessor :resource_name
|
313
|
-
|
314
|
-
# Optional. Email address of the IAM service account associated with the source.
|
315
|
-
# The service account represents the identity of the source, and determines what
|
316
|
-
# permissions the source has. If not provided, the source will use the project's
|
317
|
-
# default service account.
|
318
|
-
# Corresponds to the JSON property `serviceAccountName`
|
319
|
-
# @return [String]
|
320
|
-
attr_accessor :service_account_name
|
321
|
-
|
322
|
-
# Required. The GCP service name. This must match "serviceName" in Cloud Audit
|
323
|
-
# Logs. Regex or Wildcards (*) are not supported. Example: "bigquery.googleapis.
|
324
|
-
# com".
|
325
|
-
# Corresponds to the JSON property `serviceName`
|
326
|
-
# @return [String]
|
327
|
-
attr_accessor :service_name
|
328
|
-
|
329
|
-
# Sink is a reference to an object that will resolve to a domain name or a URI
|
330
|
-
# directly to use as the sink.
|
331
|
-
# Corresponds to the JSON property `sink`
|
332
|
-
# @return [Google::Apis::RunV1alpha1::Destination]
|
333
|
-
attr_accessor :sink
|
334
|
-
|
335
|
-
def initialize(**args)
|
336
|
-
update!(**args)
|
337
|
-
end
|
338
|
-
|
339
|
-
# Update properties of this object
|
340
|
-
def update!(**args)
|
341
|
-
@ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides)
|
342
|
-
@method_name = args[:method_name] if args.key?(:method_name)
|
343
|
-
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
344
|
-
@service_account_name = args[:service_account_name] if args.key?(:service_account_name)
|
345
|
-
@service_name = args[:service_name] if args.key?(:service_name)
|
346
|
-
@sink = args[:sink] if args.key?(:sink)
|
347
|
-
end
|
348
|
-
end
|
349
|
-
|
350
|
-
# CloudAuditLogsSourceStatus represents the current state of a
|
351
|
-
# CloudAuditLogsSource.
|
352
|
-
class CloudAuditLogsSourceStatus
|
353
|
-
include Google::Apis::Core::Hashable
|
354
|
-
|
355
|
-
# Array of observed CloudAuditLogsSourceConditions, indicating the current state
|
356
|
-
# of the CloudAuditLogsSource.
|
357
|
-
# Corresponds to the JSON property `conditions`
|
358
|
-
# @return [Array<Google::Apis::RunV1alpha1::Condition>]
|
359
|
-
attr_accessor :conditions
|
360
|
-
|
361
|
-
# ObservedGeneration is the 'Generation' of the CloudAuditLogsSource that was
|
362
|
-
# last processed by the controller.
|
363
|
-
# Corresponds to the JSON property `observedGeneration`
|
364
|
-
# @return [Fixnum]
|
365
|
-
attr_accessor :observed_generation
|
366
|
-
|
367
|
-
# SinkURI is the current active sink URI that has been configured for the Source.
|
368
|
-
# +optional
|
369
|
-
# Corresponds to the JSON property `sinkUri`
|
370
|
-
# @return [String]
|
371
|
-
attr_accessor :sink_uri
|
372
|
-
|
373
|
-
def initialize(**args)
|
374
|
-
update!(**args)
|
375
|
-
end
|
376
|
-
|
377
|
-
# Update properties of this object
|
378
|
-
def update!(**args)
|
379
|
-
@conditions = args[:conditions] if args.key?(:conditions)
|
380
|
-
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
381
|
-
@sink_uri = args[:sink_uri] if args.key?(:sink_uri)
|
382
|
-
end
|
383
|
-
end
|
384
|
-
|
385
|
-
# CloudEventOverrides defines arguments for a Source that control the output
|
386
|
-
# format of the CloudEvents produced by the Source.
|
387
|
-
class CloudEventOverrides
|
388
|
-
include Google::Apis::Core::Hashable
|
389
|
-
|
390
|
-
# Extensions specify what attribute are added or overridden on the outbound
|
391
|
-
# event. Each `Extensions` key-value pair are set on the event as an attribute
|
392
|
-
# extension independently. +optional
|
393
|
-
# Corresponds to the JSON property `extensions`
|
394
|
-
# @return [Hash<String,String>]
|
395
|
-
attr_accessor :extensions
|
396
|
-
|
397
|
-
def initialize(**args)
|
398
|
-
update!(**args)
|
399
|
-
end
|
400
|
-
|
401
|
-
# Update properties of this object
|
402
|
-
def update!(**args)
|
403
|
-
@extensions = args[:extensions] if args.key?(:extensions)
|
404
|
-
end
|
405
|
-
end
|
406
|
-
|
407
|
-
#
|
408
|
-
class CloudPubSubSource
|
409
|
-
include Google::Apis::Core::Hashable
|
410
|
-
|
411
|
-
# The API version for this call such as "events.cloud.google.com/v1alpha1".
|
412
|
-
# Corresponds to the JSON property `apiVersion`
|
413
|
-
# @return [String]
|
414
|
-
attr_accessor :api_version
|
415
|
-
|
416
|
-
# The kind of resource, in this case "CloudPubSubSource".
|
417
|
-
# Corresponds to the JSON property `kind`
|
418
|
-
# @return [String]
|
419
|
-
attr_accessor :kind
|
420
|
-
|
421
|
-
# ObjectMeta is metadata that all persisted resources must have, which includes
|
422
|
-
# all objects users must create.
|
423
|
-
# Corresponds to the JSON property `metadata`
|
424
|
-
# @return [Google::Apis::RunV1alpha1::ObjectMeta]
|
425
|
-
attr_accessor :metadata
|
426
|
-
|
427
|
-
# The desired state of the CloudPubSubSource.
|
428
|
-
# Corresponds to the JSON property `spec`
|
429
|
-
# @return [Google::Apis::RunV1alpha1::CloudPubSubSourceSpec]
|
430
|
-
attr_accessor :spec
|
431
|
-
|
432
|
-
# CloudPubSubSourceStatus represents the current state of a CloudPubSubSource.
|
433
|
-
# Corresponds to the JSON property `status`
|
434
|
-
# @return [Google::Apis::RunV1alpha1::CloudPubSubSourceStatus]
|
435
|
-
attr_accessor :status
|
436
|
-
|
437
|
-
def initialize(**args)
|
438
|
-
update!(**args)
|
439
|
-
end
|
440
|
-
|
441
|
-
# Update properties of this object
|
442
|
-
def update!(**args)
|
443
|
-
@api_version = args[:api_version] if args.key?(:api_version)
|
444
|
-
@kind = args[:kind] if args.key?(:kind)
|
445
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
446
|
-
@spec = args[:spec] if args.key?(:spec)
|
447
|
-
@status = args[:status] if args.key?(:status)
|
448
|
-
end
|
449
|
-
end
|
450
|
-
|
451
|
-
# The desired state of the CloudPubSubSource.
|
452
|
-
class CloudPubSubSourceSpec
|
453
|
-
include Google::Apis::Core::Hashable
|
454
|
-
|
455
|
-
# AckDeadline is the default maximum time after a subscriber receives a message
|
456
|
-
# before the subscriber should acknowledge the message. Defaults to 30 seconds ('
|
457
|
-
# 30s'). +optional
|
458
|
-
# Corresponds to the JSON property `ackDeadline`
|
459
|
-
# @return [String]
|
460
|
-
attr_accessor :ack_deadline
|
461
|
-
|
462
|
-
# CloudEventOverrides defines arguments for a Source that control the output
|
463
|
-
# format of the CloudEvents produced by the Source.
|
464
|
-
# Corresponds to the JSON property `ceOverrides`
|
465
|
-
# @return [Google::Apis::RunV1alpha1::CloudEventOverrides]
|
466
|
-
attr_accessor :ce_overrides
|
467
|
-
|
468
|
-
# Project is the ID of the Google Cloud Project that the CloudPubSubSource Topic
|
469
|
-
# exists in. If omitted, defaults to same as the cluster. +optional
|
470
|
-
# Corresponds to the JSON property `project`
|
471
|
-
# @return [String]
|
472
|
-
attr_accessor :project
|
473
|
-
|
474
|
-
# Cloud Run fully managed: not supported Cloud Run on GKE: supported
|
475
|
-
# SecretKeySelector selects a key of a Secret.
|
476
|
-
# Corresponds to the JSON property `pubsubSecret`
|
477
|
-
# @return [Google::Apis::RunV1alpha1::SecretKeySelector]
|
478
|
-
attr_accessor :pubsub_secret
|
479
|
-
|
480
|
-
# RetainAckedMessages defines whether to retain acknowledged messages. If true,
|
481
|
-
# acknowledged messages will not be expunged until they fall out of the
|
482
|
-
# RetentionDuration window.
|
483
|
-
# Corresponds to the JSON property `retainAckedMessages`
|
484
|
-
# @return [Boolean]
|
485
|
-
attr_accessor :retain_acked_messages
|
486
|
-
alias_method :retain_acked_messages?, :retain_acked_messages
|
487
|
-
|
488
|
-
# RetentionDuration defines how long to retain messages in backlog, from the
|
489
|
-
# time of publish. If RetainAckedMessages is true, this duration affects the
|
490
|
-
# retention of acknowledged messages, otherwise only unacknowledged messages are
|
491
|
-
# retained. Cannot be longer than 7 days or shorter than 10 minutes. Defaults to
|
492
|
-
# 7 days ('7d'). +optional
|
493
|
-
# Corresponds to the JSON property `retentionDuration`
|
494
|
-
# @return [String]
|
495
|
-
attr_accessor :retention_duration
|
496
|
-
|
497
|
-
# Cloud Run fully managed: not supported Cloud Run on GKE: supported
|
498
|
-
# SecretKeySelector selects a key of a Secret.
|
499
|
-
# Corresponds to the JSON property `secret`
|
500
|
-
# @return [Google::Apis::RunV1alpha1::SecretKeySelector]
|
501
|
-
attr_accessor :secret
|
502
|
-
|
503
|
-
# Sink is a reference to an object that will resolve to a domain name or a URI
|
504
|
-
# directly to use as the sink.
|
505
|
-
# Corresponds to the JSON property `sink`
|
506
|
-
# @return [Google::Apis::RunV1alpha1::Destination]
|
507
|
-
attr_accessor :sink
|
508
|
-
|
509
|
-
# Topic is the ID of the CloudPubSubSource Topic to Subscribe to. It must be in
|
510
|
-
# the form of the unique identifier within the project, not the entire name. E.g.
|
511
|
-
# it must be 'laconia', not 'projects/my-proj/topics/laconia'.
|
512
|
-
# Corresponds to the JSON property `topic`
|
513
|
-
# @return [String]
|
514
|
-
attr_accessor :topic
|
515
|
-
|
516
|
-
def initialize(**args)
|
517
|
-
update!(**args)
|
518
|
-
end
|
519
|
-
|
520
|
-
# Update properties of this object
|
521
|
-
def update!(**args)
|
522
|
-
@ack_deadline = args[:ack_deadline] if args.key?(:ack_deadline)
|
523
|
-
@ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides)
|
524
|
-
@project = args[:project] if args.key?(:project)
|
525
|
-
@pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret)
|
526
|
-
@retain_acked_messages = args[:retain_acked_messages] if args.key?(:retain_acked_messages)
|
527
|
-
@retention_duration = args[:retention_duration] if args.key?(:retention_duration)
|
528
|
-
@secret = args[:secret] if args.key?(:secret)
|
529
|
-
@sink = args[:sink] if args.key?(:sink)
|
530
|
-
@topic = args[:topic] if args.key?(:topic)
|
531
|
-
end
|
532
|
-
end
|
533
|
-
|
534
|
-
# CloudPubSubSourceStatus represents the current state of a CloudPubSubSource.
|
535
|
-
class CloudPubSubSourceStatus
|
536
|
-
include Google::Apis::Core::Hashable
|
537
|
-
|
538
|
-
# Array of observed CloudPubSubSourceConditions, indicating the current state of
|
539
|
-
# the CloudPubSubSource.
|
540
|
-
# Corresponds to the JSON property `conditions`
|
541
|
-
# @return [Array<Google::Apis::RunV1alpha1::Condition>]
|
542
|
-
attr_accessor :conditions
|
543
|
-
|
544
|
-
# ObservedGeneration is the 'Generation' of the CloudPubSubSource that was last
|
545
|
-
# processed by the controller.
|
546
|
-
# Corresponds to the JSON property `observedGeneration`
|
547
|
-
# @return [Fixnum]
|
548
|
-
attr_accessor :observed_generation
|
549
|
-
|
550
|
-
# SinkURI is the current active sink URI that has been configured for the Source.
|
551
|
-
# +optional
|
552
|
-
# Corresponds to the JSON property `sinkUri`
|
553
|
-
# @return [String]
|
554
|
-
attr_accessor :sink_uri
|
555
|
-
|
556
|
-
def initialize(**args)
|
557
|
-
update!(**args)
|
558
|
-
end
|
559
|
-
|
560
|
-
# Update properties of this object
|
561
|
-
def update!(**args)
|
562
|
-
@conditions = args[:conditions] if args.key?(:conditions)
|
563
|
-
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
564
|
-
@sink_uri = args[:sink_uri] if args.key?(:sink_uri)
|
565
|
-
end
|
566
|
-
end
|
567
|
-
|
568
|
-
# The CloudSchedulerSource resource.
|
569
|
-
class CloudSchedulerSource
|
570
|
-
include Google::Apis::Core::Hashable
|
571
|
-
|
572
|
-
# The API version for this call such as "events.cloud.google.com/v1alpha1".
|
573
|
-
# Corresponds to the JSON property `apiVersion`
|
574
|
-
# @return [String]
|
575
|
-
attr_accessor :api_version
|
576
|
-
|
577
|
-
# The kind of resource, in this case "CloudSchedulerSource".
|
578
|
-
# Corresponds to the JSON property `kind`
|
579
|
-
# @return [String]
|
580
|
-
attr_accessor :kind
|
581
|
-
|
582
|
-
# ObjectMeta is metadata that all persisted resources must have, which includes
|
583
|
-
# all objects users must create.
|
584
|
-
# Corresponds to the JSON property `metadata`
|
585
|
-
# @return [Google::Apis::RunV1alpha1::ObjectMeta]
|
586
|
-
attr_accessor :metadata
|
587
|
-
|
588
|
-
# The desired state of the CloudSchedulerSource.
|
589
|
-
# Corresponds to the JSON property `spec`
|
590
|
-
# @return [Google::Apis::RunV1alpha1::CloudSchedulerSourceSpec]
|
591
|
-
attr_accessor :spec
|
592
|
-
|
593
|
-
# CloudSchedulerSourceStatus represents the current state of a
|
594
|
-
# CloudSchedulerSource.
|
595
|
-
# Corresponds to the JSON property `status`
|
596
|
-
# @return [Google::Apis::RunV1alpha1::CloudSchedulerSourceStatus]
|
597
|
-
attr_accessor :status
|
598
|
-
|
599
|
-
def initialize(**args)
|
600
|
-
update!(**args)
|
601
|
-
end
|
602
|
-
|
603
|
-
# Update properties of this object
|
604
|
-
def update!(**args)
|
605
|
-
@api_version = args[:api_version] if args.key?(:api_version)
|
606
|
-
@kind = args[:kind] if args.key?(:kind)
|
607
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
608
|
-
@spec = args[:spec] if args.key?(:spec)
|
609
|
-
@status = args[:status] if args.key?(:status)
|
610
|
-
end
|
611
|
-
end
|
612
|
-
|
613
|
-
# The desired state of the CloudSchedulerSource.
|
614
|
-
class CloudSchedulerSourceSpec
|
615
|
-
include Google::Apis::Core::Hashable
|
616
|
-
|
617
|
-
# CloudEventOverrides defines arguments for a Source that control the output
|
618
|
-
# format of the CloudEvents produced by the Source.
|
619
|
-
# Corresponds to the JSON property `ceOverrides`
|
620
|
-
# @return [Google::Apis::RunV1alpha1::CloudEventOverrides]
|
621
|
-
attr_accessor :ce_overrides
|
622
|
-
|
623
|
-
# Data to send in the payload of the Event.
|
624
|
-
# Corresponds to the JSON property `data`
|
625
|
-
# @return [String]
|
626
|
-
attr_accessor :data
|
627
|
-
|
628
|
-
# Location to create the Scheduler job in.
|
629
|
-
# Corresponds to the JSON property `location`
|
630
|
-
# @return [String]
|
631
|
-
attr_accessor :location
|
632
|
-
|
633
|
-
# Project is the ID of the Google Cloud Project that the CloudPubSubSource Topic
|
634
|
-
# exists in. If omitted, defaults to same as the cluster.
|
635
|
-
# Corresponds to the JSON property `project`
|
636
|
-
# @return [String]
|
637
|
-
attr_accessor :project
|
638
|
-
|
639
|
-
# Cloud Run fully managed: not supported Cloud Run on GKE: supported
|
640
|
-
# SecretKeySelector selects a key of a Secret.
|
641
|
-
# Corresponds to the JSON property `pubsubSecret`
|
642
|
-
# @return [Google::Apis::RunV1alpha1::SecretKeySelector]
|
643
|
-
attr_accessor :pubsub_secret
|
644
|
-
|
645
|
-
# Schedule in cron format, for example: "* * * * *" would be run every minute.
|
646
|
-
# Corresponds to the JSON property `schedule`
|
647
|
-
# @return [String]
|
648
|
-
attr_accessor :schedule
|
649
|
-
|
650
|
-
# Cloud Run fully managed: not supported Cloud Run on GKE: supported
|
651
|
-
# SecretKeySelector selects a key of a Secret.
|
652
|
-
# Corresponds to the JSON property `secret`
|
653
|
-
# @return [Google::Apis::RunV1alpha1::SecretKeySelector]
|
654
|
-
attr_accessor :secret
|
655
|
-
|
656
|
-
# Sink is a reference to an object that will resolve to a domain name or a URI
|
657
|
-
# directly to use as the sink.
|
658
|
-
# Corresponds to the JSON property `sink`
|
659
|
-
# @return [Google::Apis::RunV1alpha1::Destination]
|
660
|
-
attr_accessor :sink
|
661
|
-
|
662
|
-
def initialize(**args)
|
663
|
-
update!(**args)
|
664
|
-
end
|
665
|
-
|
666
|
-
# Update properties of this object
|
667
|
-
def update!(**args)
|
668
|
-
@ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides)
|
669
|
-
@data = args[:data] if args.key?(:data)
|
670
|
-
@location = args[:location] if args.key?(:location)
|
671
|
-
@project = args[:project] if args.key?(:project)
|
672
|
-
@pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret)
|
673
|
-
@schedule = args[:schedule] if args.key?(:schedule)
|
674
|
-
@secret = args[:secret] if args.key?(:secret)
|
675
|
-
@sink = args[:sink] if args.key?(:sink)
|
676
|
-
end
|
677
|
-
end
|
678
|
-
|
679
|
-
# CloudSchedulerSourceStatus represents the current state of a
|
680
|
-
# CloudSchedulerSource.
|
681
|
-
class CloudSchedulerSourceStatus
|
682
|
-
include Google::Apis::Core::Hashable
|
683
|
-
|
684
|
-
# Array of observed CloudSchedulerSourceConditions, indicating the current state
|
685
|
-
# of the CloudSchedulerSource.
|
686
|
-
# Corresponds to the JSON property `conditions`
|
687
|
-
# @return [Array<Google::Apis::RunV1alpha1::Condition>]
|
688
|
-
attr_accessor :conditions
|
689
|
-
|
690
|
-
# ObservedGeneration is the 'Generation' of the CloudSchedulerSource that was
|
691
|
-
# last processed by the controller.
|
692
|
-
# Corresponds to the JSON property `observedGeneration`
|
693
|
-
# @return [Fixnum]
|
694
|
-
attr_accessor :observed_generation
|
695
|
-
|
696
|
-
# SinkURI is the current active sink URI that has been configured for the Source.
|
697
|
-
# Corresponds to the JSON property `sinkUri`
|
698
|
-
# @return [String]
|
699
|
-
attr_accessor :sink_uri
|
700
|
-
|
701
|
-
def initialize(**args)
|
702
|
-
update!(**args)
|
703
|
-
end
|
704
|
-
|
705
|
-
# Update properties of this object
|
706
|
-
def update!(**args)
|
707
|
-
@conditions = args[:conditions] if args.key?(:conditions)
|
708
|
-
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
709
|
-
@sink_uri = args[:sink_uri] if args.key?(:sink_uri)
|
710
|
-
end
|
711
|
-
end
|
712
|
-
|
713
|
-
# The CloudStorageSource resource.
|
714
|
-
class CloudStorageSource
|
715
|
-
include Google::Apis::Core::Hashable
|
716
|
-
|
717
|
-
# The API version for this call such as "events.cloud.google.com/v1alpha1".
|
718
|
-
# Corresponds to the JSON property `apiVersion`
|
719
|
-
# @return [String]
|
720
|
-
attr_accessor :api_version
|
721
|
-
|
722
|
-
# The kind of resource, in this case "CloudStorageSource".
|
723
|
-
# Corresponds to the JSON property `kind`
|
724
|
-
# @return [String]
|
725
|
-
attr_accessor :kind
|
726
|
-
|
727
|
-
# ObjectMeta is metadata that all persisted resources must have, which includes
|
728
|
-
# all objects users must create.
|
729
|
-
# Corresponds to the JSON property `metadata`
|
730
|
-
# @return [Google::Apis::RunV1alpha1::ObjectMeta]
|
731
|
-
attr_accessor :metadata
|
732
|
-
|
733
|
-
# The desired state of the CloudStorageSource.
|
734
|
-
# Corresponds to the JSON property `spec`
|
735
|
-
# @return [Google::Apis::RunV1alpha1::CloudStorageSourceSpec]
|
736
|
-
attr_accessor :spec
|
737
|
-
|
738
|
-
# CloudStorageSourceStatus represents the current state of a CloudStorageSource.
|
739
|
-
# Corresponds to the JSON property `status`
|
740
|
-
# @return [Google::Apis::RunV1alpha1::CloudStorageSourceStatus]
|
741
|
-
attr_accessor :status
|
742
|
-
|
743
|
-
def initialize(**args)
|
744
|
-
update!(**args)
|
745
|
-
end
|
746
|
-
|
747
|
-
# Update properties of this object
|
748
|
-
def update!(**args)
|
749
|
-
@api_version = args[:api_version] if args.key?(:api_version)
|
750
|
-
@kind = args[:kind] if args.key?(:kind)
|
751
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
752
|
-
@spec = args[:spec] if args.key?(:spec)
|
753
|
-
@status = args[:status] if args.key?(:status)
|
754
|
-
end
|
755
|
-
end
|
756
|
-
|
757
|
-
# The desired state of the CloudStorageSource.
|
758
|
-
class CloudStorageSourceSpec
|
759
|
-
include Google::Apis::Core::Hashable
|
760
|
-
|
761
|
-
# Bucket to subscribe to.
|
762
|
-
# Corresponds to the JSON property `bucket`
|
763
|
-
# @return [String]
|
764
|
-
attr_accessor :bucket
|
765
|
-
|
766
|
-
# CloudEventOverrides defines arguments for a Source that control the output
|
767
|
-
# format of the CloudEvents produced by the Source.
|
768
|
-
# Corresponds to the JSON property `ceOverrides`
|
769
|
-
# @return [Google::Apis::RunV1alpha1::CloudEventOverrides]
|
770
|
-
attr_accessor :ce_overrides
|
771
|
-
|
772
|
-
# EventTypes to subscribe to. If unspecified, then subscribe to all events.
|
773
|
-
# Corresponds to the JSON property `eventTypes`
|
774
|
-
# @return [Array<String>]
|
775
|
-
attr_accessor :event_types
|
776
|
-
|
777
|
-
# ObjectNamePrefix limits the notifications to objects with this prefix.
|
778
|
-
# Corresponds to the JSON property `objectNamePrefix`
|
779
|
-
# @return [String]
|
780
|
-
attr_accessor :object_name_prefix
|
781
|
-
|
782
|
-
# PayloadFormat specifies the contents of the message payload. See https://cloud.
|
783
|
-
# google.com/storage/docs/pubsub-notifications#payload.
|
784
|
-
# Corresponds to the JSON property `payloadFormat`
|
785
|
-
# @return [String]
|
786
|
-
attr_accessor :payload_format
|
787
|
-
|
788
|
-
# Project is the ID of the Google Cloud Project that the PubSub Topic exists in.
|
789
|
-
# If omitted, defaults to same as the cluster.
|
790
|
-
# Corresponds to the JSON property `project`
|
791
|
-
# @return [String]
|
792
|
-
attr_accessor :project
|
793
|
-
|
794
|
-
# Cloud Run fully managed: not supported Cloud Run on GKE: supported
|
795
|
-
# SecretKeySelector selects a key of a Secret.
|
796
|
-
# Corresponds to the JSON property `pubsubSecret`
|
797
|
-
# @return [Google::Apis::RunV1alpha1::SecretKeySelector]
|
798
|
-
attr_accessor :pubsub_secret
|
799
|
-
|
800
|
-
# Cloud Run fully managed: not supported Cloud Run on GKE: supported
|
801
|
-
# SecretKeySelector selects a key of a Secret.
|
802
|
-
# Corresponds to the JSON property `secret`
|
803
|
-
# @return [Google::Apis::RunV1alpha1::SecretKeySelector]
|
804
|
-
attr_accessor :secret
|
805
|
-
|
806
|
-
# ServiceAccountName holds the name of the Kubernetes service account as which
|
807
|
-
# the underlying K8s resources should be run. If unspecified this will default
|
808
|
-
# to the "default" service account for the namespace in which the GCS exists.
|
809
|
-
# Corresponds to the JSON property `serviceAccountName`
|
810
|
-
# @return [String]
|
811
|
-
attr_accessor :service_account_name
|
812
|
-
|
813
|
-
# Sink is a reference to an object that will resolve to a domain name or a URI
|
814
|
-
# directly to use as the sink.
|
815
|
-
# Corresponds to the JSON property `sink`
|
816
|
-
# @return [Google::Apis::RunV1alpha1::Destination]
|
817
|
-
attr_accessor :sink
|
818
|
-
|
819
|
-
def initialize(**args)
|
820
|
-
update!(**args)
|
821
|
-
end
|
822
|
-
|
823
|
-
# Update properties of this object
|
824
|
-
def update!(**args)
|
825
|
-
@bucket = args[:bucket] if args.key?(:bucket)
|
826
|
-
@ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides)
|
827
|
-
@event_types = args[:event_types] if args.key?(:event_types)
|
828
|
-
@object_name_prefix = args[:object_name_prefix] if args.key?(:object_name_prefix)
|
829
|
-
@payload_format = args[:payload_format] if args.key?(:payload_format)
|
830
|
-
@project = args[:project] if args.key?(:project)
|
831
|
-
@pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret)
|
832
|
-
@secret = args[:secret] if args.key?(:secret)
|
833
|
-
@service_account_name = args[:service_account_name] if args.key?(:service_account_name)
|
834
|
-
@sink = args[:sink] if args.key?(:sink)
|
835
|
-
end
|
836
|
-
end
|
837
|
-
|
838
|
-
# CloudStorageSourceStatus represents the current state of a CloudStorageSource.
|
839
|
-
class CloudStorageSourceStatus
|
840
|
-
include Google::Apis::Core::Hashable
|
841
|
-
|
842
|
-
# Array of observed CloudStorageSourceConditions, indicating the current state
|
843
|
-
# of the CloudStorageSource.
|
844
|
-
# Corresponds to the JSON property `conditions`
|
845
|
-
# @return [Array<Google::Apis::RunV1alpha1::Condition>]
|
846
|
-
attr_accessor :conditions
|
847
|
-
|
848
|
-
# ObservedGeneration is the 'Generation' of the CloudStorageSource that was last
|
849
|
-
# processed by the controller.
|
850
|
-
# Corresponds to the JSON property `observedGeneration`
|
851
|
-
# @return [Fixnum]
|
852
|
-
attr_accessor :observed_generation
|
853
|
-
|
854
|
-
# SinkURI is the current active sink URI that has been configured for the Source.
|
855
|
-
# Corresponds to the JSON property `sinkUri`
|
856
|
-
# @return [String]
|
857
|
-
attr_accessor :sink_uri
|
858
|
-
|
859
|
-
def initialize(**args)
|
860
|
-
update!(**args)
|
861
|
-
end
|
862
|
-
|
863
|
-
# Update properties of this object
|
864
|
-
def update!(**args)
|
865
|
-
@conditions = args[:conditions] if args.key?(:conditions)
|
866
|
-
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
867
|
-
@sink_uri = args[:sink_uri] if args.key?(:sink_uri)
|
868
|
-
end
|
869
|
-
end
|
870
|
-
|
871
|
-
# Condition defines a generic condition for a Resource
|
872
|
-
class Condition
|
873
|
-
include Google::Apis::Core::Hashable
|
874
|
-
|
875
|
-
# Optional. Last time the condition transitioned from one status to another.
|
876
|
-
# Corresponds to the JSON property `lastTransitionTime`
|
877
|
-
# @return [String]
|
878
|
-
attr_accessor :last_transition_time
|
879
|
-
|
880
|
-
# Optional. Human readable message indicating details about the current status.
|
881
|
-
# Corresponds to the JSON property `message`
|
882
|
-
# @return [String]
|
883
|
-
attr_accessor :message
|
884
|
-
|
885
|
-
# Optional. One-word CamelCase reason for the condition's last transition.
|
886
|
-
# Corresponds to the JSON property `reason`
|
887
|
-
# @return [String]
|
888
|
-
attr_accessor :reason
|
889
|
-
|
890
|
-
# Optional. How to interpret failures of this condition, one of Error, Warning,
|
891
|
-
# Info
|
892
|
-
# Corresponds to the JSON property `severity`
|
893
|
-
# @return [String]
|
894
|
-
attr_accessor :severity
|
895
|
-
|
896
|
-
# Status of the condition, one of True, False, Unknown.
|
897
|
-
# Corresponds to the JSON property `status`
|
898
|
-
# @return [String]
|
899
|
-
attr_accessor :status
|
900
|
-
|
901
|
-
# type is used to communicate the status of the reconciliation process. See also:
|
902
|
-
# https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-
|
903
|
-
# conditions-and-reporting Types common to all resources include: * "Ready":
|
904
|
-
# True when the Resource is ready.
|
905
|
-
# Corresponds to the JSON property `type`
|
906
|
-
# @return [String]
|
907
|
-
attr_accessor :type
|
908
|
-
|
909
|
-
def initialize(**args)
|
910
|
-
update!(**args)
|
911
|
-
end
|
912
|
-
|
913
|
-
# Update properties of this object
|
914
|
-
def update!(**args)
|
915
|
-
@last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
|
916
|
-
@message = args[:message] if args.key?(:message)
|
917
|
-
@reason = args[:reason] if args.key?(:reason)
|
918
|
-
@severity = args[:severity] if args.key?(:severity)
|
919
|
-
@status = args[:status] if args.key?(:status)
|
920
|
-
@type = args[:type] if args.key?(:type)
|
921
|
-
end
|
922
|
-
end
|
923
|
-
|
924
245
|
# ConfigMapEnvSource selects a ConfigMap to populate the environment variables
|
925
246
|
# with. The contents of the target ConfigMap's Data field will represent the key-
|
926
247
|
# value pairs as environment variables.
|
@@ -1490,34 +811,6 @@ module Google
|
|
1490
811
|
end
|
1491
812
|
end
|
1492
813
|
|
1493
|
-
#
|
1494
|
-
class Destination
|
1495
|
-
include Google::Apis::Core::Hashable
|
1496
|
-
|
1497
|
-
# ObjectReference contains enough information to let you inspect or modify the
|
1498
|
-
# referred object.
|
1499
|
-
# Corresponds to the JSON property `ref`
|
1500
|
-
# @return [Google::Apis::RunV1alpha1::ObjectReference]
|
1501
|
-
attr_accessor :ref
|
1502
|
-
|
1503
|
-
# URI is for direct URI Designations or used with the resulting URL from
|
1504
|
-
# Addressable ObjectReference. If used with an ObjectReference, will be appended
|
1505
|
-
# to the path of the resulting URL from the Addressable. + optional
|
1506
|
-
# Corresponds to the JSON property `uri`
|
1507
|
-
# @return [String]
|
1508
|
-
attr_accessor :uri
|
1509
|
-
|
1510
|
-
def initialize(**args)
|
1511
|
-
update!(**args)
|
1512
|
-
end
|
1513
|
-
|
1514
|
-
# Update properties of this object
|
1515
|
-
def update!(**args)
|
1516
|
-
@ref = args[:ref] if args.key?(:ref)
|
1517
|
-
@uri = args[:uri] if args.key?(:uri)
|
1518
|
-
end
|
1519
|
-
end
|
1520
|
-
|
1521
814
|
# Resource to hold the state and status of a user's domain mapping. NOTE: This
|
1522
815
|
# resource is currently in Beta.
|
1523
816
|
class DomainMapping
|
@@ -1913,20 +1206,310 @@ module Google
|
|
1913
1206
|
# Path to access on the HTTP server. +optional
|
1914
1207
|
# Corresponds to the JSON property `path`
|
1915
1208
|
# @return [String]
|
1916
|
-
attr_accessor :path
|
1209
|
+
attr_accessor :path
|
1210
|
+
|
1211
|
+
# IntOrString is a type that can hold an int32 or a string. When used in JSON or
|
1212
|
+
# YAML marshalling and unmarshalling, it produces or consumes the inner type.
|
1213
|
+
# This allows you to have, for example, a JSON field that can accept a name or
|
1214
|
+
# number.
|
1215
|
+
# Corresponds to the JSON property `port`
|
1216
|
+
# @return [Google::Apis::RunV1alpha1::IntOrString]
|
1217
|
+
attr_accessor :port
|
1218
|
+
|
1219
|
+
# Scheme to use for connecting to the host. Defaults to HTTP. +optional
|
1220
|
+
# Corresponds to the JSON property `scheme`
|
1221
|
+
# @return [String]
|
1222
|
+
attr_accessor :scheme
|
1223
|
+
|
1224
|
+
def initialize(**args)
|
1225
|
+
update!(**args)
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
# Update properties of this object
|
1229
|
+
def update!(**args)
|
1230
|
+
@host = args[:host] if args.key?(:host)
|
1231
|
+
@http_headers = args[:http_headers] if args.key?(:http_headers)
|
1232
|
+
@path = args[:path] if args.key?(:path)
|
1233
|
+
@port = args[:port] if args.key?(:port)
|
1234
|
+
@scheme = args[:scheme] if args.key?(:scheme)
|
1235
|
+
end
|
1236
|
+
end
|
1237
|
+
|
1238
|
+
# HTTPHeader describes a custom header to be used in HTTP probes
|
1239
|
+
class HttpHeader
|
1240
|
+
include Google::Apis::Core::Hashable
|
1241
|
+
|
1242
|
+
# The header field name
|
1243
|
+
# Corresponds to the JSON property `name`
|
1244
|
+
# @return [String]
|
1245
|
+
attr_accessor :name
|
1246
|
+
|
1247
|
+
# The header field value
|
1248
|
+
# Corresponds to the JSON property `value`
|
1249
|
+
# @return [String]
|
1250
|
+
attr_accessor :value
|
1251
|
+
|
1252
|
+
def initialize(**args)
|
1253
|
+
update!(**args)
|
1254
|
+
end
|
1255
|
+
|
1256
|
+
# Update properties of this object
|
1257
|
+
def update!(**args)
|
1258
|
+
@name = args[:name] if args.key?(:name)
|
1259
|
+
@value = args[:value] if args.key?(:value)
|
1260
|
+
end
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
# Handler defines a specific action that should be taken
|
1264
|
+
class Handler
|
1265
|
+
include Google::Apis::Core::Hashable
|
1266
|
+
|
1267
|
+
# ExecAction describes a "run in container" action.
|
1268
|
+
# Corresponds to the JSON property `exec`
|
1269
|
+
# @return [Google::Apis::RunV1alpha1::ExecAction]
|
1270
|
+
attr_accessor :exec
|
1271
|
+
|
1272
|
+
# HTTPGetAction describes an action based on HTTP Get requests.
|
1273
|
+
# Corresponds to the JSON property `httpGet`
|
1274
|
+
# @return [Google::Apis::RunV1alpha1::HttpGetAction]
|
1275
|
+
attr_accessor :http_get
|
1276
|
+
|
1277
|
+
# TCPSocketAction describes an action based on opening a socket
|
1278
|
+
# Corresponds to the JSON property `tcpSocket`
|
1279
|
+
# @return [Google::Apis::RunV1alpha1::TcpSocketAction]
|
1280
|
+
attr_accessor :tcp_socket
|
1281
|
+
|
1282
|
+
def initialize(**args)
|
1283
|
+
update!(**args)
|
1284
|
+
end
|
1285
|
+
|
1286
|
+
# Update properties of this object
|
1287
|
+
def update!(**args)
|
1288
|
+
@exec = args[:exec] if args.key?(:exec)
|
1289
|
+
@http_get = args[:http_get] if args.key?(:http_get)
|
1290
|
+
@tcp_socket = args[:tcp_socket] if args.key?(:tcp_socket)
|
1291
|
+
end
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
# InstanceSpec is a description of an instance.
|
1295
|
+
class InstanceSpec
|
1296
|
+
include Google::Apis::Core::Hashable
|
1297
|
+
|
1298
|
+
# Optional. Optional duration in seconds the instance may be active relative to
|
1299
|
+
# StartTime before the system will actively try to mark it failed and kill
|
1300
|
+
# associated containers. If set to zero, the system will never attempt to kill
|
1301
|
+
# an instance based on time. Otherwise, value must be a positive integer. +
|
1302
|
+
# optional
|
1303
|
+
# Corresponds to the JSON property `activeDeadlineSeconds`
|
1304
|
+
# @return [Fixnum]
|
1305
|
+
attr_accessor :active_deadline_seconds
|
1306
|
+
|
1307
|
+
# Optional. List of containers belonging to the instance. We disallow a number
|
1308
|
+
# of fields on this Container. Only a single container may be provided.
|
1309
|
+
# Corresponds to the JSON property `containers`
|
1310
|
+
# @return [Array<Google::Apis::RunV1alpha1::Container>]
|
1311
|
+
attr_accessor :containers
|
1312
|
+
|
1313
|
+
# Optional. Restart policy for all containers within the instance. Allowed
|
1314
|
+
# values are: - OnFailure: Instances will always be restarted on failure if the
|
1315
|
+
# backoffLimit has not been reached. - Never: Instances are never restarted and
|
1316
|
+
# all failures are permanent. Cannot be used if backoffLimit is set. +optional
|
1317
|
+
# Corresponds to the JSON property `restartPolicy`
|
1318
|
+
# @return [String]
|
1319
|
+
attr_accessor :restart_policy
|
1320
|
+
|
1321
|
+
# Optional. Email address of the IAM service account associated with the
|
1322
|
+
# instance of a Job. The service account represents the identity of the running
|
1323
|
+
# instance, and determines what permissions the instance has. If not provided,
|
1324
|
+
# the instance will use the project's default service account. +optional
|
1325
|
+
# Corresponds to the JSON property `serviceAccountName`
|
1326
|
+
# @return [String]
|
1327
|
+
attr_accessor :service_account_name
|
1328
|
+
|
1329
|
+
# Optional. Optional duration in seconds the instance needs to terminate
|
1330
|
+
# gracefully. Value must be non-negative integer. The value zero indicates
|
1331
|
+
# delete immediately. The grace period is the duration in seconds after the
|
1332
|
+
# processes running in the instance are sent a termination signal and the time
|
1333
|
+
# when the processes are forcibly halted with a kill signal. Set this value
|
1334
|
+
# longer than the expected cleanup time for your process. +optional
|
1335
|
+
# Corresponds to the JSON property `terminationGracePeriodSeconds`
|
1336
|
+
# @return [Fixnum]
|
1337
|
+
attr_accessor :termination_grace_period_seconds
|
1338
|
+
|
1339
|
+
# Optional. List of volumes that can be mounted by containers belonging to the
|
1340
|
+
# instance. More info: https://kubernetes.io/docs/concepts/storage/volumes +
|
1341
|
+
# optional
|
1342
|
+
# Corresponds to the JSON property `volumes`
|
1343
|
+
# @return [Array<Google::Apis::RunV1alpha1::Volume>]
|
1344
|
+
attr_accessor :volumes
|
1345
|
+
|
1346
|
+
def initialize(**args)
|
1347
|
+
update!(**args)
|
1348
|
+
end
|
1349
|
+
|
1350
|
+
# Update properties of this object
|
1351
|
+
def update!(**args)
|
1352
|
+
@active_deadline_seconds = args[:active_deadline_seconds] if args.key?(:active_deadline_seconds)
|
1353
|
+
@containers = args[:containers] if args.key?(:containers)
|
1354
|
+
@restart_policy = args[:restart_policy] if args.key?(:restart_policy)
|
1355
|
+
@service_account_name = args[:service_account_name] if args.key?(:service_account_name)
|
1356
|
+
@termination_grace_period_seconds = args[:termination_grace_period_seconds] if args.key?(:termination_grace_period_seconds)
|
1357
|
+
@volumes = args[:volumes] if args.key?(:volumes)
|
1358
|
+
end
|
1359
|
+
end
|
1360
|
+
|
1361
|
+
# Instance represents the status of an instance of a Job.
|
1362
|
+
class InstanceStatus
|
1363
|
+
include Google::Apis::Core::Hashable
|
1364
|
+
|
1365
|
+
# Optional. Represents time when the instance was completed. It is not
|
1366
|
+
# guaranteed to be set in happens-before order across separate operations. It is
|
1367
|
+
# represented in RFC3339 form and is in UTC. +optional
|
1368
|
+
# Corresponds to the JSON property `completionTime`
|
1369
|
+
# @return [String]
|
1370
|
+
attr_accessor :completion_time
|
1371
|
+
|
1372
|
+
# Optional. The number of times this instance exited with code > 0; +optional
|
1373
|
+
# Corresponds to the JSON property `failed`
|
1374
|
+
# @return [Fixnum]
|
1375
|
+
attr_accessor :failed
|
1376
|
+
|
1377
|
+
# Required. Index of the instance, unique per Job, and beginning at 0.
|
1378
|
+
# Corresponds to the JSON property `index`
|
1379
|
+
# @return [Fixnum]
|
1380
|
+
attr_accessor :index
|
1381
|
+
|
1382
|
+
# Optional. Last exit code seen for this instance. +optional
|
1383
|
+
# Corresponds to the JSON property `lastExitCode`
|
1384
|
+
# @return [Fixnum]
|
1385
|
+
attr_accessor :last_exit_code
|
1386
|
+
|
1387
|
+
# Optional. The number of times this instance was restarted. Instances are
|
1388
|
+
# restarted according the restartPolicy configured in the Job template. +
|
1389
|
+
# optional
|
1390
|
+
# Corresponds to the JSON property `restarted`
|
1391
|
+
# @return [Fixnum]
|
1392
|
+
attr_accessor :restarted
|
1393
|
+
|
1394
|
+
# Optional. Represents time when the instance was created by the job controller.
|
1395
|
+
# It is not guaranteed to be set in happens-before order across separate
|
1396
|
+
# operations. It is represented in RFC3339 form and is in UTC. +optional
|
1397
|
+
# Corresponds to the JSON property `startTime`
|
1398
|
+
# @return [String]
|
1399
|
+
attr_accessor :start_time
|
1400
|
+
|
1401
|
+
# Optional. The number of times this instance exited with code == 0. +optional
|
1402
|
+
# Corresponds to the JSON property `succeeded`
|
1403
|
+
# @return [Fixnum]
|
1404
|
+
attr_accessor :succeeded
|
1405
|
+
|
1406
|
+
def initialize(**args)
|
1407
|
+
update!(**args)
|
1408
|
+
end
|
1409
|
+
|
1410
|
+
# Update properties of this object
|
1411
|
+
def update!(**args)
|
1412
|
+
@completion_time = args[:completion_time] if args.key?(:completion_time)
|
1413
|
+
@failed = args[:failed] if args.key?(:failed)
|
1414
|
+
@index = args[:index] if args.key?(:index)
|
1415
|
+
@last_exit_code = args[:last_exit_code] if args.key?(:last_exit_code)
|
1416
|
+
@restarted = args[:restarted] if args.key?(:restarted)
|
1417
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1418
|
+
@succeeded = args[:succeeded] if args.key?(:succeeded)
|
1419
|
+
end
|
1420
|
+
end
|
1421
|
+
|
1422
|
+
# InstanceTemplateSpec describes the data an instance should have when created
|
1423
|
+
# from a template.
|
1424
|
+
class InstanceTemplateSpec
|
1425
|
+
include Google::Apis::Core::Hashable
|
1426
|
+
|
1427
|
+
# InstanceSpec is a description of an instance.
|
1428
|
+
# Corresponds to the JSON property `spec`
|
1429
|
+
# @return [Google::Apis::RunV1alpha1::InstanceSpec]
|
1430
|
+
attr_accessor :spec
|
1431
|
+
|
1432
|
+
def initialize(**args)
|
1433
|
+
update!(**args)
|
1434
|
+
end
|
1435
|
+
|
1436
|
+
# Update properties of this object
|
1437
|
+
def update!(**args)
|
1438
|
+
@spec = args[:spec] if args.key?(:spec)
|
1439
|
+
end
|
1440
|
+
end
|
1441
|
+
|
1442
|
+
# IntOrString is a type that can hold an int32 or a string. When used in JSON or
|
1443
|
+
# YAML marshalling and unmarshalling, it produces or consumes the inner type.
|
1444
|
+
# This allows you to have, for example, a JSON field that can accept a name or
|
1445
|
+
# number.
|
1446
|
+
class IntOrString
|
1447
|
+
include Google::Apis::Core::Hashable
|
1448
|
+
|
1449
|
+
# The int value.
|
1450
|
+
# Corresponds to the JSON property `intVal`
|
1451
|
+
# @return [Fixnum]
|
1452
|
+
attr_accessor :int_val
|
1453
|
+
|
1454
|
+
# The string value.
|
1455
|
+
# Corresponds to the JSON property `strVal`
|
1456
|
+
# @return [String]
|
1457
|
+
attr_accessor :str_val
|
1458
|
+
|
1459
|
+
# The type of the value.
|
1460
|
+
# Corresponds to the JSON property `type`
|
1461
|
+
# @return [Fixnum]
|
1462
|
+
attr_accessor :type
|
1463
|
+
|
1464
|
+
def initialize(**args)
|
1465
|
+
update!(**args)
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
# Update properties of this object
|
1469
|
+
def update!(**args)
|
1470
|
+
@int_val = args[:int_val] if args.key?(:int_val)
|
1471
|
+
@str_val = args[:str_val] if args.key?(:str_val)
|
1472
|
+
@type = args[:type] if args.key?(:type)
|
1473
|
+
end
|
1474
|
+
end
|
1475
|
+
|
1476
|
+
# Job represents the configuration of a single job. A job an immutable resource
|
1477
|
+
# that references a container image which is run to completion.
|
1478
|
+
class Job
|
1479
|
+
include Google::Apis::Core::Hashable
|
1480
|
+
|
1481
|
+
# Optional. APIVersion defines the versioned schema of this representation of an
|
1482
|
+
# object. Servers should convert recognized schemas to the latest internal value,
|
1483
|
+
# and may reject unrecognized values. More info: https://git.k8s.io/community/
|
1484
|
+
# contributors/devel/sig-architecture/api-conventions.md#resources +optional
|
1485
|
+
# Corresponds to the JSON property `apiVersion`
|
1486
|
+
# @return [String]
|
1487
|
+
attr_accessor :api_version
|
1488
|
+
|
1489
|
+
# Optional. Kind is a string value representing the REST resource this object
|
1490
|
+
# represents. Servers may infer this from the endpoint the client submits
|
1491
|
+
# requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/
|
1492
|
+
# community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +
|
1493
|
+
# optional
|
1494
|
+
# Corresponds to the JSON property `kind`
|
1495
|
+
# @return [String]
|
1496
|
+
attr_accessor :kind
|
1917
1497
|
|
1918
|
-
#
|
1919
|
-
#
|
1920
|
-
#
|
1921
|
-
#
|
1922
|
-
|
1923
|
-
# @return [Google::Apis::RunV1alpha1::IntOrString]
|
1924
|
-
attr_accessor :port
|
1498
|
+
# ObjectMeta is metadata that all persisted resources must have, which includes
|
1499
|
+
# all objects users must create.
|
1500
|
+
# Corresponds to the JSON property `metadata`
|
1501
|
+
# @return [Google::Apis::RunV1alpha1::ObjectMeta]
|
1502
|
+
attr_accessor :metadata
|
1925
1503
|
|
1926
|
-
#
|
1927
|
-
# Corresponds to the JSON property `
|
1928
|
-
# @return [
|
1929
|
-
attr_accessor :
|
1504
|
+
# JobSpec describes how the job execution will look like.
|
1505
|
+
# Corresponds to the JSON property `spec`
|
1506
|
+
# @return [Google::Apis::RunV1alpha1::JobSpec]
|
1507
|
+
attr_accessor :spec
|
1508
|
+
|
1509
|
+
# JobStatus represents the current state of a Job.
|
1510
|
+
# Corresponds to the JSON property `status`
|
1511
|
+
# @return [Google::Apis::RunV1alpha1::JobStatus]
|
1512
|
+
attr_accessor :status
|
1930
1513
|
|
1931
1514
|
def initialize(**args)
|
1932
1515
|
update!(**args)
|
@@ -1934,27 +1517,53 @@ module Google
|
|
1934
1517
|
|
1935
1518
|
# Update properties of this object
|
1936
1519
|
def update!(**args)
|
1937
|
-
@
|
1938
|
-
@
|
1939
|
-
@
|
1940
|
-
@
|
1941
|
-
@
|
1520
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
1521
|
+
@kind = args[:kind] if args.key?(:kind)
|
1522
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1523
|
+
@spec = args[:spec] if args.key?(:spec)
|
1524
|
+
@status = args[:status] if args.key?(:status)
|
1942
1525
|
end
|
1943
1526
|
end
|
1944
1527
|
|
1945
|
-
#
|
1946
|
-
class
|
1528
|
+
# JobCondition defines a readiness condition for a Revision.
|
1529
|
+
class JobCondition
|
1947
1530
|
include Google::Apis::Core::Hashable
|
1948
1531
|
|
1949
|
-
#
|
1950
|
-
# Corresponds to the JSON property `
|
1532
|
+
# Optional. Last time the condition transitioned from one status to another.
|
1533
|
+
# Corresponds to the JSON property `lastTransitionTime`
|
1951
1534
|
# @return [String]
|
1952
|
-
attr_accessor :
|
1535
|
+
attr_accessor :last_transition_time
|
1953
1536
|
|
1954
|
-
#
|
1955
|
-
# Corresponds to the JSON property `
|
1537
|
+
# Optional. Human readable message indicating details about the current status.
|
1538
|
+
# Corresponds to the JSON property `message`
|
1956
1539
|
# @return [String]
|
1957
|
-
attr_accessor :
|
1540
|
+
attr_accessor :message
|
1541
|
+
|
1542
|
+
# Optional. One-word CamelCase reason for the condition's last transition.
|
1543
|
+
# Corresponds to the JSON property `reason`
|
1544
|
+
# @return [String]
|
1545
|
+
attr_accessor :reason
|
1546
|
+
|
1547
|
+
# Optional. How to interpret failures of this condition, one of Error, Warning,
|
1548
|
+
# Info
|
1549
|
+
# Corresponds to the JSON property `severity`
|
1550
|
+
# @return [String]
|
1551
|
+
attr_accessor :severity
|
1552
|
+
|
1553
|
+
# Required. Status of the condition, one of True, False, Unknown.
|
1554
|
+
# Corresponds to the JSON property `status`
|
1555
|
+
# @return [String]
|
1556
|
+
attr_accessor :status
|
1557
|
+
|
1558
|
+
# Required. Type is used to communicate the status of the reconciliation process.
|
1559
|
+
# See also: https://github.com/knative/serving/blob/master/docs/spec/errors.md#
|
1560
|
+
# error-conditions-and-reporting Types include: * "Completed": True when the Job
|
1561
|
+
# has successfully completed. * "Started": True when the Job has successfully
|
1562
|
+
# started running. * "ResourcesAvailable": True when underlying resources have
|
1563
|
+
# been provisioned.
|
1564
|
+
# Corresponds to the JSON property `type`
|
1565
|
+
# @return [String]
|
1566
|
+
attr_accessor :type
|
1958
1567
|
|
1959
1568
|
def initialize(**args)
|
1960
1569
|
update!(**args)
|
@@ -1962,29 +1571,67 @@ module Google
|
|
1962
1571
|
|
1963
1572
|
# Update properties of this object
|
1964
1573
|
def update!(**args)
|
1965
|
-
@
|
1966
|
-
@
|
1574
|
+
@last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
|
1575
|
+
@message = args[:message] if args.key?(:message)
|
1576
|
+
@reason = args[:reason] if args.key?(:reason)
|
1577
|
+
@severity = args[:severity] if args.key?(:severity)
|
1578
|
+
@status = args[:status] if args.key?(:status)
|
1579
|
+
@type = args[:type] if args.key?(:type)
|
1967
1580
|
end
|
1968
1581
|
end
|
1969
1582
|
|
1970
|
-
#
|
1971
|
-
class
|
1583
|
+
# JobSpec describes how the job execution will look like.
|
1584
|
+
class JobSpec
|
1972
1585
|
include Google::Apis::Core::Hashable
|
1973
1586
|
|
1974
|
-
#
|
1975
|
-
#
|
1976
|
-
#
|
1977
|
-
|
1587
|
+
# Optional. Specifies the duration in seconds relative to the startTime that the
|
1588
|
+
# job may be active before the system tries to terminate it. If set to zero, the
|
1589
|
+
# system will never attempt to terminate the job based on time. Otherwise, the
|
1590
|
+
# value must be positive integer. +optional
|
1591
|
+
# Corresponds to the JSON property `activeDeadlineSeconds`
|
1592
|
+
# @return [Fixnum]
|
1593
|
+
attr_accessor :active_deadline_seconds
|
1978
1594
|
|
1979
|
-
#
|
1980
|
-
#
|
1981
|
-
#
|
1982
|
-
|
1595
|
+
# Optional. Specifies the number of retries per instance, before marking this
|
1596
|
+
# job failed. If set to zero, instances will never retry on failure. +optional
|
1597
|
+
# Corresponds to the JSON property `backoffLimit`
|
1598
|
+
# @return [Fixnum]
|
1599
|
+
attr_accessor :backoff_limit
|
1600
|
+
|
1601
|
+
# Optional. Specifies the desired number of successfully finished instances the
|
1602
|
+
# job should be run with. Setting to 1 means that parallelism is limited to 1
|
1603
|
+
# and the success of that instance signals the success of the job. More info:
|
1604
|
+
# https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-
|
1605
|
+
# completion/ +optional
|
1606
|
+
# Corresponds to the JSON property `completions`
|
1607
|
+
# @return [Fixnum]
|
1608
|
+
attr_accessor :completions
|
1609
|
+
|
1610
|
+
# Optional. Specifies the maximum desired number of instances the job should run
|
1611
|
+
# at any given time. Must be <= completions. The actual number of instances
|
1612
|
+
# running in steady state will be less than this number when ((.spec.completions
|
1613
|
+
# - .status.successful) < .spec.parallelism), i.e. when the work left to do is
|
1614
|
+
# less than max parallelism. More info: https://kubernetes.io/docs/concepts/
|
1615
|
+
# workloads/controllers/jobs-run-to-completion/ +optional
|
1616
|
+
# Corresponds to the JSON property `parallelism`
|
1617
|
+
# @return [Fixnum]
|
1618
|
+
attr_accessor :parallelism
|
1983
1619
|
|
1984
|
-
#
|
1985
|
-
#
|
1986
|
-
#
|
1987
|
-
|
1620
|
+
# InstanceTemplateSpec describes the data an instance should have when created
|
1621
|
+
# from a template.
|
1622
|
+
# Corresponds to the JSON property `template`
|
1623
|
+
# @return [Google::Apis::RunV1alpha1::InstanceTemplateSpec]
|
1624
|
+
attr_accessor :template
|
1625
|
+
|
1626
|
+
# Optional. ttlSecondsAfterFinished limits the lifetime of a Job that has
|
1627
|
+
# finished execution (either Complete or Failed). If this field is set,
|
1628
|
+
# ttlSecondsAfterFinished after the Job finishes, it is eligible to be
|
1629
|
+
# automatically deleted. When the Job is being deleted, its lifecycle guarantees
|
1630
|
+
# (e.g. finalizers) will be honored. If this field is set to zero, the Job won't
|
1631
|
+
# be automatically deleted. +optional
|
1632
|
+
# Corresponds to the JSON property `ttlSecondsAfterFinished`
|
1633
|
+
# @return [Fixnum]
|
1634
|
+
attr_accessor :ttl_seconds_after_finished
|
1988
1635
|
|
1989
1636
|
def initialize(**args)
|
1990
1637
|
update!(**args)
|
@@ -1992,33 +1639,73 @@ module Google
|
|
1992
1639
|
|
1993
1640
|
# Update properties of this object
|
1994
1641
|
def update!(**args)
|
1995
|
-
@
|
1996
|
-
@
|
1997
|
-
@
|
1642
|
+
@active_deadline_seconds = args[:active_deadline_seconds] if args.key?(:active_deadline_seconds)
|
1643
|
+
@backoff_limit = args[:backoff_limit] if args.key?(:backoff_limit)
|
1644
|
+
@completions = args[:completions] if args.key?(:completions)
|
1645
|
+
@parallelism = args[:parallelism] if args.key?(:parallelism)
|
1646
|
+
@template = args[:template] if args.key?(:template)
|
1647
|
+
@ttl_seconds_after_finished = args[:ttl_seconds_after_finished] if args.key?(:ttl_seconds_after_finished)
|
1998
1648
|
end
|
1999
1649
|
end
|
2000
1650
|
|
2001
|
-
#
|
2002
|
-
|
2003
|
-
# This allows you to have, for example, a JSON field that can accept a name or
|
2004
|
-
# number.
|
2005
|
-
class IntOrString
|
1651
|
+
# JobStatus represents the current state of a Job.
|
1652
|
+
class JobStatus
|
2006
1653
|
include Google::Apis::Core::Hashable
|
2007
1654
|
|
2008
|
-
# The
|
2009
|
-
# Corresponds to the JSON property `
|
1655
|
+
# Optional. The number of actively running instances. +optional
|
1656
|
+
# Corresponds to the JSON property `active`
|
2010
1657
|
# @return [Fixnum]
|
2011
|
-
attr_accessor :
|
1658
|
+
attr_accessor :active
|
2012
1659
|
|
2013
|
-
#
|
2014
|
-
#
|
1660
|
+
# Optional. Represents time when the job was completed. It is not guaranteed to
|
1661
|
+
# be set in happens-before order across separate operations. It is represented
|
1662
|
+
# in RFC3339 form and is in UTC. +optional
|
1663
|
+
# Corresponds to the JSON property `completionTime`
|
2015
1664
|
# @return [String]
|
2016
|
-
attr_accessor :
|
1665
|
+
attr_accessor :completion_time
|
2017
1666
|
|
2018
|
-
# The
|
2019
|
-
#
|
1667
|
+
# Optional. The latest available observations of a job's current state. More
|
1668
|
+
# info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-
|
1669
|
+
# completion/ +optional
|
1670
|
+
# Corresponds to the JSON property `conditions`
|
1671
|
+
# @return [Array<Google::Apis::RunV1alpha1::JobCondition>]
|
1672
|
+
attr_accessor :conditions
|
1673
|
+
|
1674
|
+
# Optional. The number of instances which reached phase Failed. +optional
|
1675
|
+
# Corresponds to the JSON property `failed`
|
2020
1676
|
# @return [Fixnum]
|
2021
|
-
attr_accessor :
|
1677
|
+
attr_accessor :failed
|
1678
|
+
|
1679
|
+
# Optional. ImageDigest holds the resolved digest for the image specified within
|
1680
|
+
# .Spec.Template.Spec.Container.Image. The digest is resolved during the
|
1681
|
+
# creation of the Job. This field holds the digest value regardless of whether a
|
1682
|
+
# tag or digest was originally specified in the Container object.
|
1683
|
+
# Corresponds to the JSON property `imageDigest`
|
1684
|
+
# @return [String]
|
1685
|
+
attr_accessor :image_digest
|
1686
|
+
|
1687
|
+
# Optional. Status of completed, failed, and running instances. +optional
|
1688
|
+
# Corresponds to the JSON property `instances`
|
1689
|
+
# @return [Array<Google::Apis::RunV1alpha1::InstanceStatus>]
|
1690
|
+
attr_accessor :instances
|
1691
|
+
|
1692
|
+
# Optional. The 'generation' of the job that was last processed by the
|
1693
|
+
# controller.
|
1694
|
+
# Corresponds to the JSON property `observedGeneration`
|
1695
|
+
# @return [Fixnum]
|
1696
|
+
attr_accessor :observed_generation
|
1697
|
+
|
1698
|
+
# Optional. Represents time when the job was acknowledged by the job controller.
|
1699
|
+
# It is not guaranteed to be set in happens-before order across separate
|
1700
|
+
# operations. It is represented in RFC3339 form and is in UTC. +optional
|
1701
|
+
# Corresponds to the JSON property `startTime`
|
1702
|
+
# @return [String]
|
1703
|
+
attr_accessor :start_time
|
1704
|
+
|
1705
|
+
# Optional. The number of instances which reached phase Succeeded. +optional
|
1706
|
+
# Corresponds to the JSON property `succeeded`
|
1707
|
+
# @return [Fixnum]
|
1708
|
+
attr_accessor :succeeded
|
2022
1709
|
|
2023
1710
|
def initialize(**args)
|
2024
1711
|
update!(**args)
|
@@ -2026,9 +1713,15 @@ module Google
|
|
2026
1713
|
|
2027
1714
|
# Update properties of this object
|
2028
1715
|
def update!(**args)
|
2029
|
-
@
|
2030
|
-
@
|
2031
|
-
@
|
1716
|
+
@active = args[:active] if args.key?(:active)
|
1717
|
+
@completion_time = args[:completion_time] if args.key?(:completion_time)
|
1718
|
+
@conditions = args[:conditions] if args.key?(:conditions)
|
1719
|
+
@failed = args[:failed] if args.key?(:failed)
|
1720
|
+
@image_digest = args[:image_digest] if args.key?(:image_digest)
|
1721
|
+
@instances = args[:instances] if args.key?(:instances)
|
1722
|
+
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
1723
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1724
|
+
@succeeded = args[:succeeded] if args.key?(:succeeded)
|
2032
1725
|
end
|
2033
1726
|
end
|
2034
1727
|
|
@@ -2104,142 +1797,10 @@ module Google
|
|
2104
1797
|
# @return [Array<Google::Apis::RunV1alpha1::AuthorizedDomain>]
|
2105
1798
|
attr_accessor :domains
|
2106
1799
|
|
2107
|
-
# Continuation token for fetching the next page of results.
|
2108
|
-
# Corresponds to the JSON property `nextPageToken`
|
2109
|
-
# @return [String]
|
2110
|
-
attr_accessor :next_page_token
|
2111
|
-
|
2112
|
-
def initialize(**args)
|
2113
|
-
update!(**args)
|
2114
|
-
end
|
2115
|
-
|
2116
|
-
# Update properties of this object
|
2117
|
-
def update!(**args)
|
2118
|
-
@domains = args[:domains] if args.key?(:domains)
|
2119
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2120
|
-
end
|
2121
|
-
end
|
2122
|
-
|
2123
|
-
# ListCloudAuditLogsSourcesResponse is a list of CloudAuditLogsSource resources.
|
2124
|
-
class ListCloudAuditLogsSourcesResponse
|
2125
|
-
include Google::Apis::Core::Hashable
|
2126
|
-
|
2127
|
-
# The API version for this call such as "events.cloud.google.com/v1alpha1".
|
2128
|
-
# Corresponds to the JSON property `apiVersion`
|
2129
|
-
# @return [String]
|
2130
|
-
attr_accessor :api_version
|
2131
|
-
|
2132
|
-
# List of CloudAuditLogsSources.
|
2133
|
-
# Corresponds to the JSON property `items`
|
2134
|
-
# @return [Array<Google::Apis::RunV1alpha1::CloudAuditLogsSource>]
|
2135
|
-
attr_accessor :items
|
2136
|
-
|
2137
|
-
# The kind of this resource, in this case "CloudAuditLogsSourceList".
|
2138
|
-
# Corresponds to the JSON property `kind`
|
2139
|
-
# @return [String]
|
2140
|
-
attr_accessor :kind
|
2141
|
-
|
2142
|
-
# ListMeta describes metadata that synthetic resources must have, including
|
2143
|
-
# lists and various status objects. A resource may have only one of `ObjectMeta,
|
2144
|
-
# ListMeta`.
|
2145
|
-
# Corresponds to the JSON property `metadata`
|
2146
|
-
# @return [Google::Apis::RunV1alpha1::ListMeta]
|
2147
|
-
attr_accessor :metadata
|
2148
|
-
|
2149
|
-
# Locations that could not be reached.
|
2150
|
-
# Corresponds to the JSON property `unreachable`
|
2151
|
-
# @return [Array<String>]
|
2152
|
-
attr_accessor :unreachable
|
2153
|
-
|
2154
|
-
def initialize(**args)
|
2155
|
-
update!(**args)
|
2156
|
-
end
|
2157
|
-
|
2158
|
-
# Update properties of this object
|
2159
|
-
def update!(**args)
|
2160
|
-
@api_version = args[:api_version] if args.key?(:api_version)
|
2161
|
-
@items = args[:items] if args.key?(:items)
|
2162
|
-
@kind = args[:kind] if args.key?(:kind)
|
2163
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
2164
|
-
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
2165
|
-
end
|
2166
|
-
end
|
2167
|
-
|
2168
|
-
# ListCloudPubSubSourcesResponse is a list of CloudPubSubSource resources.
|
2169
|
-
class ListCloudPubSubSourcesResponse
|
2170
|
-
include Google::Apis::Core::Hashable
|
2171
|
-
|
2172
|
-
# The API version for this call such as "events.cloud.google.com/v1alpha1".
|
2173
|
-
# Corresponds to the JSON property `apiVersion`
|
2174
|
-
# @return [String]
|
2175
|
-
attr_accessor :api_version
|
2176
|
-
|
2177
|
-
# List of CloudPubSubSources.
|
2178
|
-
# Corresponds to the JSON property `items`
|
2179
|
-
# @return [Array<Google::Apis::RunV1alpha1::CloudPubSubSource>]
|
2180
|
-
attr_accessor :items
|
2181
|
-
|
2182
|
-
# The kind of this resource, in this case "CloudPubSubSourceList".
|
2183
|
-
# Corresponds to the JSON property `kind`
|
2184
|
-
# @return [String]
|
2185
|
-
attr_accessor :kind
|
2186
|
-
|
2187
|
-
# ListMeta describes metadata that synthetic resources must have, including
|
2188
|
-
# lists and various status objects. A resource may have only one of `ObjectMeta,
|
2189
|
-
# ListMeta`.
|
2190
|
-
# Corresponds to the JSON property `metadata`
|
2191
|
-
# @return [Google::Apis::RunV1alpha1::ListMeta]
|
2192
|
-
attr_accessor :metadata
|
2193
|
-
|
2194
|
-
# Locations that could not be reached.
|
2195
|
-
# Corresponds to the JSON property `unreachable`
|
2196
|
-
# @return [Array<String>]
|
2197
|
-
attr_accessor :unreachable
|
2198
|
-
|
2199
|
-
def initialize(**args)
|
2200
|
-
update!(**args)
|
2201
|
-
end
|
2202
|
-
|
2203
|
-
# Update properties of this object
|
2204
|
-
def update!(**args)
|
2205
|
-
@api_version = args[:api_version] if args.key?(:api_version)
|
2206
|
-
@items = args[:items] if args.key?(:items)
|
2207
|
-
@kind = args[:kind] if args.key?(:kind)
|
2208
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
2209
|
-
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
2210
|
-
end
|
2211
|
-
end
|
2212
|
-
|
2213
|
-
# ListCloudSchedulerSourcesResponse is a list of CloudSchedulerSource resources.
|
2214
|
-
class ListCloudSchedulerSourcesResponse
|
2215
|
-
include Google::Apis::Core::Hashable
|
2216
|
-
|
2217
|
-
# The API version for this call such as "events.cloud.google.com/v1alpha1".
|
2218
|
-
# Corresponds to the JSON property `apiVersion`
|
2219
|
-
# @return [String]
|
2220
|
-
attr_accessor :api_version
|
2221
|
-
|
2222
|
-
# List of CloudSchedulerSources.
|
2223
|
-
# Corresponds to the JSON property `items`
|
2224
|
-
# @return [Array<Google::Apis::RunV1alpha1::CloudSchedulerSource>]
|
2225
|
-
attr_accessor :items
|
2226
|
-
|
2227
|
-
# The kind of this resource, in this case "CloudSchedulerSourceList".
|
2228
|
-
# Corresponds to the JSON property `kind`
|
2229
|
-
# @return [String]
|
2230
|
-
attr_accessor :kind
|
2231
|
-
|
2232
|
-
# ListMeta describes metadata that synthetic resources must have, including
|
2233
|
-
# lists and various status objects. A resource may have only one of `ObjectMeta,
|
2234
|
-
# ListMeta`.
|
2235
|
-
# Corresponds to the JSON property `metadata`
|
2236
|
-
# @return [Google::Apis::RunV1alpha1::ListMeta]
|
2237
|
-
attr_accessor :metadata
|
2238
|
-
|
2239
|
-
# Locations that could not be reached.
|
2240
|
-
# Corresponds to the JSON property `unreachable`
|
2241
|
-
# @return [Array<String>]
|
2242
|
-
attr_accessor :unreachable
|
1800
|
+
# Continuation token for fetching the next page of results.
|
1801
|
+
# Corresponds to the JSON property `nextPageToken`
|
1802
|
+
# @return [String]
|
1803
|
+
attr_accessor :next_page_token
|
2243
1804
|
|
2244
1805
|
def initialize(**args)
|
2245
1806
|
update!(**args)
|
@@ -2247,29 +1808,26 @@ module Google
|
|
2247
1808
|
|
2248
1809
|
# Update properties of this object
|
2249
1810
|
def update!(**args)
|
2250
|
-
@
|
2251
|
-
@
|
2252
|
-
@kind = args[:kind] if args.key?(:kind)
|
2253
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
2254
|
-
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1811
|
+
@domains = args[:domains] if args.key?(:domains)
|
1812
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2255
1813
|
end
|
2256
1814
|
end
|
2257
1815
|
|
2258
|
-
#
|
2259
|
-
class
|
1816
|
+
# ListConfigurationsResponse is a list of Configuration resources.
|
1817
|
+
class ListConfigurationsResponse
|
2260
1818
|
include Google::Apis::Core::Hashable
|
2261
1819
|
|
2262
|
-
# The API version for this call such as "
|
1820
|
+
# The API version for this call such as "serving.knative.dev/v1alpha1".
|
2263
1821
|
# Corresponds to the JSON property `apiVersion`
|
2264
1822
|
# @return [String]
|
2265
1823
|
attr_accessor :api_version
|
2266
1824
|
|
2267
|
-
# List of
|
1825
|
+
# List of Configurations.
|
2268
1826
|
# Corresponds to the JSON property `items`
|
2269
|
-
# @return [Array<Google::Apis::RunV1alpha1::
|
1827
|
+
# @return [Array<Google::Apis::RunV1alpha1::Configuration>]
|
2270
1828
|
attr_accessor :items
|
2271
1829
|
|
2272
|
-
# The kind of this resource, in this case "
|
1830
|
+
# The kind of this resource, in this case "ConfigurationList".
|
2273
1831
|
# Corresponds to the JSON property `kind`
|
2274
1832
|
# @return [String]
|
2275
1833
|
attr_accessor :kind
|
@@ -2300,21 +1858,21 @@ module Google
|
|
2300
1858
|
end
|
2301
1859
|
end
|
2302
1860
|
|
2303
|
-
#
|
2304
|
-
class
|
1861
|
+
# ListDomainMappingsResponse is a list of DomainMapping resources.
|
1862
|
+
class ListDomainMappingsResponse
|
2305
1863
|
include Google::Apis::Core::Hashable
|
2306
1864
|
|
2307
|
-
# The API version for this call such as "
|
1865
|
+
# The API version for this call such as "domains.cloudrun.com/v1alpha1".
|
2308
1866
|
# Corresponds to the JSON property `apiVersion`
|
2309
1867
|
# @return [String]
|
2310
1868
|
attr_accessor :api_version
|
2311
1869
|
|
2312
|
-
# List of
|
1870
|
+
# List of DomainMappings.
|
2313
1871
|
# Corresponds to the JSON property `items`
|
2314
|
-
# @return [Array<Google::Apis::RunV1alpha1::
|
1872
|
+
# @return [Array<Google::Apis::RunV1alpha1::DomainMapping>]
|
2315
1873
|
attr_accessor :items
|
2316
1874
|
|
2317
|
-
# The kind of this resource, in this case "
|
1875
|
+
# The kind of this resource, in this case "DomainMappingList".
|
2318
1876
|
# Corresponds to the JSON property `kind`
|
2319
1877
|
# @return [String]
|
2320
1878
|
attr_accessor :kind
|
@@ -2345,21 +1903,21 @@ module Google
|
|
2345
1903
|
end
|
2346
1904
|
end
|
2347
1905
|
|
2348
|
-
#
|
2349
|
-
class
|
1906
|
+
# ListJobsResponse is a list of Jobs resources.
|
1907
|
+
class ListJobsResponse
|
2350
1908
|
include Google::Apis::Core::Hashable
|
2351
1909
|
|
2352
|
-
# The API version for this call such as "
|
1910
|
+
# The API version for this call such as "run.googleapis.com/v1alpha1".
|
2353
1911
|
# Corresponds to the JSON property `apiVersion`
|
2354
1912
|
# @return [String]
|
2355
1913
|
attr_accessor :api_version
|
2356
1914
|
|
2357
|
-
# List of
|
1915
|
+
# List of Jobs.
|
2358
1916
|
# Corresponds to the JSON property `items`
|
2359
|
-
# @return [Array<Google::Apis::RunV1alpha1::
|
1917
|
+
# @return [Array<Google::Apis::RunV1alpha1::Job>]
|
2360
1918
|
attr_accessor :items
|
2361
1919
|
|
2362
|
-
# The kind of this resource, in this case "
|
1920
|
+
# The kind of this resource, in this case "JobsList".
|
2363
1921
|
# Corresponds to the JSON property `kind`
|
2364
1922
|
# @return [String]
|
2365
1923
|
attr_accessor :kind
|
@@ -2371,6 +1929,17 @@ module Google
|
|
2371
1929
|
# @return [Google::Apis::RunV1alpha1::ListMeta]
|
2372
1930
|
attr_accessor :metadata
|
2373
1931
|
|
1932
|
+
# This field is equivalent to the metadata.continue field and is provided as a
|
1933
|
+
# convenience for compatibility with https://google.aip.dev/158. The value is
|
1934
|
+
# opaque and may be used to issue another request to the endpoint that served
|
1935
|
+
# this list to retrieve the next set of available objects. Continuing a list may
|
1936
|
+
# not be possible if the server configuration has changed or more than a few
|
1937
|
+
# minutes have passed. The metadata.resourceVersion field returned when using
|
1938
|
+
# this field will be identical to the value in the first response.
|
1939
|
+
# Corresponds to the JSON property `nextPageToken`
|
1940
|
+
# @return [String]
|
1941
|
+
attr_accessor :next_page_token
|
1942
|
+
|
2374
1943
|
# Locations that could not be reached.
|
2375
1944
|
# Corresponds to the JSON property `unreachable`
|
2376
1945
|
# @return [Array<String>]
|
@@ -2386,6 +1955,7 @@ module Google
|
|
2386
1955
|
@items = args[:items] if args.key?(:items)
|
2387
1956
|
@kind = args[:kind] if args.key?(:kind)
|
2388
1957
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1958
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2389
1959
|
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
2390
1960
|
end
|
2391
1961
|
end
|
@@ -2595,51 +2165,6 @@ module Google
|
|
2595
2165
|
end
|
2596
2166
|
end
|
2597
2167
|
|
2598
|
-
# ListTriggersResponse is a list of Trigger resources.
|
2599
|
-
class ListTriggersResponse
|
2600
|
-
include Google::Apis::Core::Hashable
|
2601
|
-
|
2602
|
-
# The API version for this call such as "eventing.knative.dev/v1alpha1".
|
2603
|
-
# Corresponds to the JSON property `apiVersion`
|
2604
|
-
# @return [String]
|
2605
|
-
attr_accessor :api_version
|
2606
|
-
|
2607
|
-
# List of Triggers.
|
2608
|
-
# Corresponds to the JSON property `items`
|
2609
|
-
# @return [Array<Google::Apis::RunV1alpha1::Trigger>]
|
2610
|
-
attr_accessor :items
|
2611
|
-
|
2612
|
-
# The kind of this resource, in this case "TriggerList".
|
2613
|
-
# Corresponds to the JSON property `kind`
|
2614
|
-
# @return [String]
|
2615
|
-
attr_accessor :kind
|
2616
|
-
|
2617
|
-
# ListMeta describes metadata that synthetic resources must have, including
|
2618
|
-
# lists and various status objects. A resource may have only one of `ObjectMeta,
|
2619
|
-
# ListMeta`.
|
2620
|
-
# Corresponds to the JSON property `metadata`
|
2621
|
-
# @return [Google::Apis::RunV1alpha1::ListMeta]
|
2622
|
-
attr_accessor :metadata
|
2623
|
-
|
2624
|
-
# Locations that could not be reached.
|
2625
|
-
# Corresponds to the JSON property `unreachable`
|
2626
|
-
# @return [Array<String>]
|
2627
|
-
attr_accessor :unreachable
|
2628
|
-
|
2629
|
-
def initialize(**args)
|
2630
|
-
update!(**args)
|
2631
|
-
end
|
2632
|
-
|
2633
|
-
# Update properties of this object
|
2634
|
-
def update!(**args)
|
2635
|
-
@api_version = args[:api_version] if args.key?(:api_version)
|
2636
|
-
@items = args[:items] if args.key?(:items)
|
2637
|
-
@kind = args[:kind] if args.key?(:kind)
|
2638
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
2639
|
-
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
2640
|
-
end
|
2641
|
-
end
|
2642
|
-
|
2643
2168
|
# LocalObjectReference contains enough information to let you locate the
|
2644
2169
|
# referenced object inside the same namespace.
|
2645
2170
|
class LocalObjectReference
|
@@ -2883,75 +2408,6 @@ module Google
|
|
2883
2408
|
end
|
2884
2409
|
end
|
2885
2410
|
|
2886
|
-
# ObjectReference contains enough information to let you inspect or modify the
|
2887
|
-
# referred object.
|
2888
|
-
class ObjectReference
|
2889
|
-
include Google::Apis::Core::Hashable
|
2890
|
-
|
2891
|
-
# API version of the referent. +optional
|
2892
|
-
# Corresponds to the JSON property `apiVersion`
|
2893
|
-
# @return [String]
|
2894
|
-
attr_accessor :api_version
|
2895
|
-
|
2896
|
-
# If referring to a piece of an object instead of an entire object, this string
|
2897
|
-
# should contain a valid JSON/Go field access statement, such as desiredState.
|
2898
|
-
# manifest.containers[2]. For example, if the object reference is to a container
|
2899
|
-
# within a pod, this would take on a value like: "spec.containers`name`" (where "
|
2900
|
-
# name" refers to the name of the container that triggered the event) or if no
|
2901
|
-
# container name is specified "spec.containers[2]" (container with index 2 in
|
2902
|
-
# this pod). This syntax is chosen only to have some well-defined way of
|
2903
|
-
# referencing a part of an object.
|
2904
|
-
# Corresponds to the JSON property `fieldPath`
|
2905
|
-
# @return [String]
|
2906
|
-
attr_accessor :field_path
|
2907
|
-
|
2908
|
-
# Kind of the referent. More info: https://git.k8s.io/community/contributors/
|
2909
|
-
# devel/api-conventions.md#types-kinds +optional
|
2910
|
-
# Corresponds to the JSON property `kind`
|
2911
|
-
# @return [String]
|
2912
|
-
attr_accessor :kind
|
2913
|
-
|
2914
|
-
# Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/
|
2915
|
-
# working-with-objects/names/#names +optional
|
2916
|
-
# Corresponds to the JSON property `name`
|
2917
|
-
# @return [String]
|
2918
|
-
attr_accessor :name
|
2919
|
-
|
2920
|
-
# Namespace of the referent. More info: https://kubernetes.io/docs/concepts/
|
2921
|
-
# overview/working-with-objects/namespaces/ +optional
|
2922
|
-
# Corresponds to the JSON property `namespace`
|
2923
|
-
# @return [String]
|
2924
|
-
attr_accessor :namespace
|
2925
|
-
|
2926
|
-
# Specific resourceVersion to which this reference is made, if any. More info:
|
2927
|
-
# https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-
|
2928
|
-
# control-and-consistency +optional
|
2929
|
-
# Corresponds to the JSON property `resourceVersion`
|
2930
|
-
# @return [String]
|
2931
|
-
attr_accessor :resource_version
|
2932
|
-
|
2933
|
-
# UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/
|
2934
|
-
# working-with-objects/names/#uids +optional
|
2935
|
-
# Corresponds to the JSON property `uid`
|
2936
|
-
# @return [String]
|
2937
|
-
attr_accessor :uid
|
2938
|
-
|
2939
|
-
def initialize(**args)
|
2940
|
-
update!(**args)
|
2941
|
-
end
|
2942
|
-
|
2943
|
-
# Update properties of this object
|
2944
|
-
def update!(**args)
|
2945
|
-
@api_version = args[:api_version] if args.key?(:api_version)
|
2946
|
-
@field_path = args[:field_path] if args.key?(:field_path)
|
2947
|
-
@kind = args[:kind] if args.key?(:kind)
|
2948
|
-
@name = args[:name] if args.key?(:name)
|
2949
|
-
@namespace = args[:namespace] if args.key?(:namespace)
|
2950
|
-
@resource_version = args[:resource_version] if args.key?(:resource_version)
|
2951
|
-
@uid = args[:uid] if args.key?(:uid)
|
2952
|
-
end
|
2953
|
-
end
|
2954
|
-
|
2955
2411
|
# OwnerReference contains enough information to let you identify an owning
|
2956
2412
|
# object. Currently, an owning object must be in the same namespace, so there is
|
2957
2413
|
# no namespace field.
|
@@ -2980,7 +2436,7 @@ module Google
|
|
2980
2436
|
alias_method :controller?, :controller
|
2981
2437
|
|
2982
2438
|
# Kind of the referent. More info: https://git.k8s.io/community/contributors/
|
2983
|
-
# devel/api-conventions.md#types-kinds
|
2439
|
+
# devel/sig-architecture/api-conventions.md#types-kinds
|
2984
2440
|
# Corresponds to the JSON property `kind`
|
2985
2441
|
# @return [String]
|
2986
2442
|
attr_accessor :kind
|
@@ -4534,192 +3990,6 @@ module Google
|
|
4534
3990
|
end
|
4535
3991
|
end
|
4536
3992
|
|
4537
|
-
#
|
4538
|
-
class Trigger
|
4539
|
-
include Google::Apis::Core::Hashable
|
4540
|
-
|
4541
|
-
# The API version for this call such as "eventing.knative.dev/v1alpha1".
|
4542
|
-
# Corresponds to the JSON property `apiVersion`
|
4543
|
-
# @return [String]
|
4544
|
-
attr_accessor :api_version
|
4545
|
-
|
4546
|
-
# The kind of resource, in this case "Trigger".
|
4547
|
-
# Corresponds to the JSON property `kind`
|
4548
|
-
# @return [String]
|
4549
|
-
attr_accessor :kind
|
4550
|
-
|
4551
|
-
# ObjectMeta is metadata that all persisted resources must have, which includes
|
4552
|
-
# all objects users must create.
|
4553
|
-
# Corresponds to the JSON property `metadata`
|
4554
|
-
# @return [Google::Apis::RunV1alpha1::ObjectMeta]
|
4555
|
-
attr_accessor :metadata
|
4556
|
-
|
4557
|
-
# The desired state of the Trigger.
|
4558
|
-
# Corresponds to the JSON property `spec`
|
4559
|
-
# @return [Google::Apis::RunV1alpha1::TriggerSpec]
|
4560
|
-
attr_accessor :spec
|
4561
|
-
|
4562
|
-
# TriggerStatus represents the current state of a Trigger.
|
4563
|
-
# Corresponds to the JSON property `status`
|
4564
|
-
# @return [Google::Apis::RunV1alpha1::TriggerStatus]
|
4565
|
-
attr_accessor :status
|
4566
|
-
|
4567
|
-
def initialize(**args)
|
4568
|
-
update!(**args)
|
4569
|
-
end
|
4570
|
-
|
4571
|
-
# Update properties of this object
|
4572
|
-
def update!(**args)
|
4573
|
-
@api_version = args[:api_version] if args.key?(:api_version)
|
4574
|
-
@kind = args[:kind] if args.key?(:kind)
|
4575
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
4576
|
-
@spec = args[:spec] if args.key?(:spec)
|
4577
|
-
@status = args[:status] if args.key?(:status)
|
4578
|
-
end
|
4579
|
-
end
|
4580
|
-
|
4581
|
-
# TriggerCondition contains state information for an Trigger.
|
4582
|
-
class TriggerCondition
|
4583
|
-
include Google::Apis::Core::Hashable
|
4584
|
-
|
4585
|
-
# Optional. Last time the condition transitioned from one status to another.
|
4586
|
-
# Corresponds to the JSON property `lastTransitionTime`
|
4587
|
-
# @return [String]
|
4588
|
-
attr_accessor :last_transition_time
|
4589
|
-
|
4590
|
-
# Optional. Human readable message indicating details about the current status.
|
4591
|
-
# Corresponds to the JSON property `message`
|
4592
|
-
# @return [String]
|
4593
|
-
attr_accessor :message
|
4594
|
-
|
4595
|
-
# Optional. One-word CamelCase reason for the condition's current status.
|
4596
|
-
# Corresponds to the JSON property `reason`
|
4597
|
-
# @return [String]
|
4598
|
-
attr_accessor :reason
|
4599
|
-
|
4600
|
-
# Optional. How to interpret failures of this condition, one of Error, Warning,
|
4601
|
-
# Info
|
4602
|
-
# Corresponds to the JSON property `severity`
|
4603
|
-
# @return [String]
|
4604
|
-
attr_accessor :severity
|
4605
|
-
|
4606
|
-
# Status of the condition, one of True, False, Unknown.
|
4607
|
-
# Corresponds to the JSON property `status`
|
4608
|
-
# @return [String]
|
4609
|
-
attr_accessor :status
|
4610
|
-
|
4611
|
-
# Type of Trigger condition.
|
4612
|
-
# Corresponds to the JSON property `type`
|
4613
|
-
# @return [String]
|
4614
|
-
attr_accessor :type
|
4615
|
-
|
4616
|
-
def initialize(**args)
|
4617
|
-
update!(**args)
|
4618
|
-
end
|
4619
|
-
|
4620
|
-
# Update properties of this object
|
4621
|
-
def update!(**args)
|
4622
|
-
@last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
|
4623
|
-
@message = args[:message] if args.key?(:message)
|
4624
|
-
@reason = args[:reason] if args.key?(:reason)
|
4625
|
-
@severity = args[:severity] if args.key?(:severity)
|
4626
|
-
@status = args[:status] if args.key?(:status)
|
4627
|
-
@type = args[:type] if args.key?(:type)
|
4628
|
-
end
|
4629
|
-
end
|
4630
|
-
|
4631
|
-
#
|
4632
|
-
class TriggerFilter
|
4633
|
-
include Google::Apis::Core::Hashable
|
4634
|
-
|
4635
|
-
# Optional. Attributes filters events by exact match on event context attributes.
|
4636
|
-
# Each key in the map is compared with the equivalent key in the event context.
|
4637
|
-
# An event passes the filter if all values are equal to the specified values.
|
4638
|
-
# Nested context attributes are not supported as keys. Only string values are
|
4639
|
-
# supported. Note that this field is optional in knative. In fully managed, '
|
4640
|
-
# type' attribute is required due to different broker implementation.
|
4641
|
-
# Corresponds to the JSON property `attributes`
|
4642
|
-
# @return [Hash<String,String>]
|
4643
|
-
attr_accessor :attributes
|
4644
|
-
|
4645
|
-
def initialize(**args)
|
4646
|
-
update!(**args)
|
4647
|
-
end
|
4648
|
-
|
4649
|
-
# Update properties of this object
|
4650
|
-
def update!(**args)
|
4651
|
-
@attributes = args[:attributes] if args.key?(:attributes)
|
4652
|
-
end
|
4653
|
-
end
|
4654
|
-
|
4655
|
-
# The desired state of the Trigger.
|
4656
|
-
class TriggerSpec
|
4657
|
-
include Google::Apis::Core::Hashable
|
4658
|
-
|
4659
|
-
# Broker is the broker that this trigger receives events from. If not specified,
|
4660
|
-
# will default to 'default'. Not currently supported by Cloud Run.
|
4661
|
-
# Corresponds to the JSON property `broker`
|
4662
|
-
# @return [String]
|
4663
|
-
attr_accessor :broker
|
4664
|
-
|
4665
|
-
# Optional. Filter is the filter to apply against all events from the Broker.
|
4666
|
-
# Only events that pass this filter will be sent to the Subscriber. Note that
|
4667
|
-
# filter is optional in knative and is only required in fully managed due to
|
4668
|
-
# different broker implementation.
|
4669
|
-
# Corresponds to the JSON property `filter`
|
4670
|
-
# @return [Google::Apis::RunV1alpha1::TriggerFilter]
|
4671
|
-
attr_accessor :filter
|
4672
|
-
|
4673
|
-
# Sink is the addressable that will receive events.
|
4674
|
-
# Corresponds to the JSON property `subscriber`
|
4675
|
-
# @return [Google::Apis::RunV1alpha1::Destination]
|
4676
|
-
attr_accessor :subscriber
|
4677
|
-
|
4678
|
-
def initialize(**args)
|
4679
|
-
update!(**args)
|
4680
|
-
end
|
4681
|
-
|
4682
|
-
# Update properties of this object
|
4683
|
-
def update!(**args)
|
4684
|
-
@broker = args[:broker] if args.key?(:broker)
|
4685
|
-
@filter = args[:filter] if args.key?(:filter)
|
4686
|
-
@subscriber = args[:subscriber] if args.key?(:subscriber)
|
4687
|
-
end
|
4688
|
-
end
|
4689
|
-
|
4690
|
-
# TriggerStatus represents the current state of a Trigger.
|
4691
|
-
class TriggerStatus
|
4692
|
-
include Google::Apis::Core::Hashable
|
4693
|
-
|
4694
|
-
# Array of observed TriggerConditions, indicating the current state of the
|
4695
|
-
# Trigger.
|
4696
|
-
# Corresponds to the JSON property `conditions`
|
4697
|
-
# @return [Array<Google::Apis::RunV1alpha1::TriggerCondition>]
|
4698
|
-
attr_accessor :conditions
|
4699
|
-
|
4700
|
-
# ObservedGeneration is the 'Generation' of the Trigger that was last processed
|
4701
|
-
# by the controller.
|
4702
|
-
# Corresponds to the JSON property `observedGeneration`
|
4703
|
-
# @return [Fixnum]
|
4704
|
-
attr_accessor :observed_generation
|
4705
|
-
|
4706
|
-
# SubscriberURI is the resolved URI of the receiver for this Trigger.
|
4707
|
-
# Corresponds to the JSON property `subscriberUri`
|
4708
|
-
# @return [String]
|
4709
|
-
attr_accessor :subscriber_uri
|
4710
|
-
|
4711
|
-
def initialize(**args)
|
4712
|
-
update!(**args)
|
4713
|
-
end
|
4714
|
-
|
4715
|
-
# Update properties of this object
|
4716
|
-
def update!(**args)
|
4717
|
-
@conditions = args[:conditions] if args.key?(:conditions)
|
4718
|
-
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
4719
|
-
@subscriber_uri = args[:subscriber_uri] if args.key?(:subscriber_uri)
|
4720
|
-
end
|
4721
|
-
end
|
4722
|
-
|
4723
3993
|
# Volume represents a named volume in a container.
|
4724
3994
|
class Volume
|
4725
3995
|
include Google::Apis::Core::Hashable
|