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.



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

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)


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

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)


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

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)


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

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



771
772
773
774
775
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 771

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