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

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_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



621
622
623
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 621

def ce_overrides
  @ce_overrides
end

#dataString

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

Returns:

  • (String)


626
627
628
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 626

def data
  @data
end

#locationString

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

Returns:

  • (String)


631
632
633
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 631

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)


637
638
639
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 637

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



643
644
645
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 643

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)


648
649
650
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 648

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



654
655
656
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 654

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



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