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.



793
794
795
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 793

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)


779
780
781
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 779

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)


785
786
787
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 785

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)


791
792
793
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 791

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



798
799
800
801
802
# File 'lib/google/apis/datapipelines_v1/classes.rb', line 798

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