Class: Google::Apis::CoordinateV1::Schedule

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/coordinate_v1/classes.rb,
generated/google/apis/coordinate_v1/representations.rb,
generated/google/apis/coordinate_v1/representations.rb

Overview

Job schedule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Schedule

Returns a new instance of Schedule



515
516
517
# File 'generated/google/apis/coordinate_v1/classes.rb', line 515

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

Instance Attribute Details

#all_dayBoolean Also known as: all_day?

Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true. Corresponds to the JSON property allDay

Returns:

  • (Boolean)


492
493
494
# File 'generated/google/apis/coordinate_v1/classes.rb', line 492

def all_day
  @all_day
end

#durationString

Job duration in milliseconds. Corresponds to the JSON property duration

Returns:

  • (String)


498
499
500
# File 'generated/google/apis/coordinate_v1/classes.rb', line 498

def duration
  @duration
end

#end_timeString

Scheduled end time in milliseconds since epoch. Corresponds to the JSON property endTime

Returns:

  • (String)


503
504
505
# File 'generated/google/apis/coordinate_v1/classes.rb', line 503

def end_time
  @end_time
end

#kindString

Identifies this object as a job schedule. Corresponds to the JSON property kind

Returns:

  • (String)


508
509
510
# File 'generated/google/apis/coordinate_v1/classes.rb', line 508

def kind
  @kind
end

#start_timeString

Scheduled start time in milliseconds since epoch. Corresponds to the JSON property startTime

Returns:

  • (String)


513
514
515
# File 'generated/google/apis/coordinate_v1/classes.rb', line 513

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



520
521
522
523
524
525
526
# File 'generated/google/apis/coordinate_v1/classes.rb', line 520

def update!(**args)
  @all_day = args[:all_day] if args.key?(:all_day)
  @duration = args[:duration] if args.key?(:duration)
  @end_time = args[:end_time] if args.key?(:end_time)
  @kind = args[:kind] if args.key?(:kind)
  @start_time = args[:start_time] if args.key?(:start_time)
end