class Google::Apis::GameservicesV1beta::Schedule

The schedule of a recurring or one time event. The event's time span is specified by start_time and end_time. If the scheduled event's timespan is larger than the cron_spec + cron_job_duration, the event will be recurring. If only cron_spec + cron_job_duration are specified, the event is effective starting at the local time specified by cron_spec, and is recurring. start_time|——-[cron job]——-[cron job]——-[cron job]—|end_time cron job: cron spec start time + duration

Attributes

cron_job_duration[RW]

The duration for the cron job event. The duration of the event is effective after the cron job's start time. Corresponds to the JSON property `cronJobDuration` @return [String]

cron_spec[RW]

The cron definition of the scheduled event. See en.wikipedia.org/wiki/ Cron. Cron spec specifies the local time as defined by the realm. Corresponds to the JSON property `cronSpec` @return [String]

end_time[RW]

The end time of the event. Corresponds to the JSON property `endTime` @return [String]

start_time[RW]

The start time of the event. Corresponds to the JSON property `startTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/gameservices_v1beta/classes.rb, line 1990
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gameservices_v1beta/classes.rb, line 1995
def update!(**args)
  @cron_job_duration = args[:cron_job_duration] if args.key?(:cron_job_duration)
  @cron_spec = args[:cron_spec] if args.key?(:cron_spec)
  @end_time = args[:end_time] if args.key?(:end_time)
  @start_time = args[:start_time] if args.key?(:start_time)
end