Class: Google::Apis::RedisV1::RescheduleClusterMaintenanceRequest
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::RescheduleClusterMaintenanceRequest
- 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
Request for rescheduling a cluster maintenance.
Instance Attribute Summary collapse
-
#reschedule_type ⇒ String
Required.
-
#schedule_time ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RescheduleClusterMaintenanceRequest
constructor
A new instance of RescheduleClusterMaintenanceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RescheduleClusterMaintenanceRequest
Returns a new instance of RescheduleClusterMaintenanceRequest.
2601 2602 2603 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2601 def initialize(**args) update!(**args) end |
Instance Attribute Details
#reschedule_type ⇒ String
Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
well.
Corresponds to the JSON property rescheduleType
2592 2593 2594 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2592 def reschedule_type @reschedule_type end |
#schedule_time ⇒ String
Optional. Timestamp when the maintenance shall be rescheduled to if
reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example 2012-11-15T16:
19:00.094Z
.
Corresponds to the JSON property scheduleTime
2599 2600 2601 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2599 def schedule_time @schedule_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2606 2607 2608 2609 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2606 def update!(**args) @reschedule_type = args[:reschedule_type] if args.key?(:reschedule_type) @schedule_time = args[:schedule_time] if args.key?(:schedule_time) end |