Class: Google::Apis::RedisV1beta1::MaintenanceSchedule

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

Overview

Upcoming maintenance schedule. If no maintenance is scheduled, fields are not populated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaintenanceSchedule

Returns a new instance of MaintenanceSchedule.



2473
2474
2475
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2473

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

Instance Attribute Details

#can_rescheduleBoolean Also known as: can_reschedule?

If the scheduled maintenance can be rescheduled, default is true. Corresponds to the JSON property canReschedule

Returns:

  • (Boolean)


2452
2453
2454
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2452

def can_reschedule
  @can_reschedule
end

#end_timeString

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

Returns:

  • (String)


2459
2460
2461
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2459

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)


2465
2466
2467
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2465

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)


2471
2472
2473
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2471

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2478
2479
2480
2481
2482
2483
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2478

def update!(**args)
  @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
  @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