Class: Google::Apis::RunV1alpha1::CloudSchedulerSourceSpec
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::CloudSchedulerSourceSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb
Overview
The desired state of the CloudSchedulerSource.
Instance Attribute Summary collapse
-
#ce_overrides ⇒ Google::Apis::RunV1alpha1::CloudEventOverrides
CloudEventOverrides defines arguments for a Source that control the output format of the CloudEvents produced by the Source.
-
#data ⇒ String
Data to send in the payload of the Event.
-
#location ⇒ String
Location to create the Scheduler job in.
-
#project ⇒ String
Project is the ID of the Google Cloud Project that the CloudPubSubSource Topic exists in.
-
#pubsub_secret ⇒ Google::Apis::RunV1alpha1::SecretKeySelector
Cloud Run fully managed: not supported Cloud Run on GKE: supported SecretKeySelector selects a key of a Secret.
-
#schedule ⇒ String
Schedule in cron format, for example: "* * * * *" would be run every minute.
-
#secret ⇒ Google::Apis::RunV1alpha1::SecretKeySelector
Cloud Run fully managed: not supported Cloud Run on GKE: supported SecretKeySelector selects a key of a Secret.
-
#sink ⇒ Google::Apis::RunV1alpha1::Destination
Sink is a reference to an object that will resolve to a domain name or a URI directly to use as the sink.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudSchedulerSourceSpec
constructor
A new instance of CloudSchedulerSourceSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudSchedulerSourceSpec
Returns a new instance of CloudSchedulerSourceSpec.
662 663 664 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 662 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ce_overrides ⇒ Google::Apis::RunV1alpha1::CloudEventOverrides
CloudEventOverrides defines arguments for a Source that control the output
format of the CloudEvents produced by the Source.
Corresponds to the JSON property ceOverrides
621 622 623 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 621 def ce_overrides @ce_overrides end |
#data ⇒ String
Data to send in the payload of the Event.
Corresponds to the JSON property data
626 627 628 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 626 def data @data end |
#location ⇒ String
Location to create the Scheduler job in.
Corresponds to the JSON property location
631 632 633 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 631 def location @location end |
#project ⇒ String
Project is the ID of the Google Cloud Project that the CloudPubSubSource Topic
exists in. If omitted, defaults to same as the cluster.
Corresponds to the JSON property project
637 638 639 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 637 def project @project end |
#pubsub_secret ⇒ Google::Apis::RunV1alpha1::SecretKeySelector
Cloud Run fully managed: not supported Cloud Run on GKE: supported
SecretKeySelector selects a key of a Secret.
Corresponds to the JSON property pubsubSecret
643 644 645 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 643 def pubsub_secret @pubsub_secret end |
#schedule ⇒ String
Schedule in cron format, for example: "* * * * *" would be run every minute.
Corresponds to the JSON property schedule
648 649 650 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 648 def schedule @schedule end |
#secret ⇒ Google::Apis::RunV1alpha1::SecretKeySelector
Cloud Run fully managed: not supported Cloud Run on GKE: supported
SecretKeySelector selects a key of a Secret.
Corresponds to the JSON property secret
654 655 656 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 654 def secret @secret end |
#sink ⇒ Google::Apis::RunV1alpha1::Destination
Sink is a reference to an object that will resolve to a domain name or a URI
directly to use as the sink.
Corresponds to the JSON property sink
660 661 662 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 660 def sink @sink end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
667 668 669 670 671 672 673 674 675 676 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 667 def update!(**args) @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides) @data = args[:data] if args.key?(:data) @location = args[:location] if args.key?(:location) @project = args[:project] if args.key?(:project) @pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret) @schedule = args[:schedule] if args.key?(:schedule) @secret = args[:secret] if args.key?(:secret) @sink = args[:sink] if args.key?(:sink) end |