Class: Google::Apis::RunV1alpha1::CloudSchedulerSourceSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_overridesGoogle::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

#dataString

Data to send in the payload of the Event. Corresponds to the JSON property data

Returns:

  • (String)


696
697
698
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 696

def data
  @data
end

#locationString

Location to create the Scheduler job in. Corresponds to the JSON property location

Returns:

  • (String)


701
702
703
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 701

def location
  @location
end

#projectString

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

Returns:

  • (String)


707
708
709
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 707

def project
  @project
end

#pubsub_secretGoogle::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

#scheduleString

Schedule in cron format, for example: "* * * * *" would be run every minute. Corresponds to the JSON property schedule

Returns:

  • (String)


720
721
722
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 720

def schedule
  @schedule
end

#secretGoogle::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

#sinkGoogle::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