Class: Google::Apis::RedisV1::MaintenanceSchedule
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::MaintenanceSchedule
- 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 maintenance schedule. If no maintenance is scheduled, fields are not populated.
Instance Attribute Summary collapse
-
#can_reschedule ⇒ Boolean
(also: #can_reschedule?)
If the scheduled maintenance can be rescheduled, default is true.
-
#end_time ⇒ String
Output only.
-
#schedule_deadline_time ⇒ String
Output only.
-
#start_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MaintenanceSchedule
constructor
A new instance of MaintenanceSchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MaintenanceSchedule
Returns a new instance of MaintenanceSchedule.
1812 1813 1814 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1812 def initialize(**args) update!(**args) end |
Instance Attribute Details
#can_reschedule ⇒ Boolean Also known as: can_reschedule?
If the scheduled maintenance can be rescheduled, default is true.
Corresponds to the JSON property canReschedule
1791 1792 1793 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1791 def can_reschedule @can_reschedule end |
#end_time ⇒ String
Output only. The end time of any upcoming scheduled maintenance for this
instance.
Corresponds to the JSON property endTime
1798 1799 1800 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1798 def end_time @end_time end |
#schedule_deadline_time ⇒ String
Output only. The deadline that the maintenance schedule start time can not go
beyond, including reschedule.
Corresponds to the JSON property scheduleDeadlineTime
1804 1805 1806 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1804 def schedule_deadline_time @schedule_deadline_time end |
#start_time ⇒ String
Output only. The start time of any upcoming scheduled maintenance for this
instance.
Corresponds to the JSON property startTime
1810 1811 1812 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1810 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1817 1818 1819 1820 1821 1822 |
# File 'lib/google/apis/redis_v1/classes.rb', line 1817 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 |