Class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1ScheduleSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datapipelines_v1/classes.rb,
lib/google/apis/datapipelines_v1/representations.rb,
lib/google/apis/datapipelines_v1/representations.rb

Overview

Details of the schedule the pipeline runs on.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatapipelinesV1ScheduleSpec

Returns a new instance of GoogleCloudDatapipelinesV1ScheduleSpec.



759
760
761
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 759

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#next_job_timeString

Output only. When the next Scheduler job is going to run. Corresponds to the JSON property nextJobTime

Returns:

  • (String)


745
746
747
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 745

def next_job_time
  @next_job_time
end

#scheduleString

Unix-cron format of the schedule. This information is retrieved from the linked Cloud Scheduler. Corresponds to the JSON property schedule

Returns:

  • (String)


751
752
753
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 751

def schedule
  @schedule
end

#time_zoneString

Timezone ID. This matches the timezone IDs used by the Cloud Scheduler API. If empty, UTC time is assumed. Corresponds to the JSON property timeZone

Returns:

  • (String)


757
758
759
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 757

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



764
765
766
767
768
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 764

def update!(**args)
  @next_job_time = args[:next_job_time] if args.key?(:next_job_time)
  @schedule = args[:schedule] if args.key?(:schedule)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end