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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CloudSchedulerSourceSpec
Returns a new instance of CloudSchedulerSourceSpec.
735 736 737 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 735 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
691 692 693 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 691 def ce_overrides @ce_overrides end |
#data ⇒ String
Data to send in the payload of the Event.
Corresponds to the JSON property data
696 697 698 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 696 def data @data end |
#location ⇒ String
Location to create the Scheduler job in.
Corresponds to the JSON property location
701 702 703 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 701 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
707 708 709 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 707 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
714 715 716 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 714 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
720 721 722 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 720 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
727 728 729 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 727 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
733 734 735 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 733 def sink @sink end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
740 741 742 743 744 745 746 747 748 749 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 740 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 |