Class: Google::Apis::RedisV1::ClusterMaintenanceSchedule

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

Overview

Upcoming maitenance schedule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterMaintenanceSchedule

Returns a new instance of ClusterMaintenanceSchedule.



429
430
431
# File 'lib/google/apis/redis_v1/classes.rb', line 429

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

Instance Attribute Details

#end_timeString

Output only. The end time of any upcoming scheduled maintenance for this instance. Corresponds to the JSON property endTime

Returns:

  • (String)


415
416
417
# File 'lib/google/apis/redis_v1/classes.rb', line 415

def end_time
  @end_time
end

#schedule_deadline_timeString

Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. Corresponds to the JSON property scheduleDeadlineTime

Returns:

  • (String)


421
422
423
# File 'lib/google/apis/redis_v1/classes.rb', line 421

def schedule_deadline_time
  @schedule_deadline_time
end

#start_timeString

Output only. The start time of any upcoming scheduled maintenance for this instance. Corresponds to the JSON property startTime

Returns:

  • (String)


427
428
429
# File 'lib/google/apis/redis_v1/classes.rb', line 427

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



434
435
436
437
438
# File 'lib/google/apis/redis_v1/classes.rb', line 434

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