Class: Google::Apis::MemcacheV1::RescheduleMaintenanceRequest
- Inherits:
-
Object
- Object
- Google::Apis::MemcacheV1::RescheduleMaintenanceRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/memcache_v1/classes.rb,
lib/google/apis/memcache_v1/representations.rb,
lib/google/apis/memcache_v1/representations.rb
Overview
Request for RescheduleMaintenance.
Instance Attribute Summary collapse
-
#reschedule_type ⇒ String
Required.
-
#schedule_time ⇒ String
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
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RescheduleMaintenanceRequest
constructor
A new instance of RescheduleMaintenanceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RescheduleMaintenanceRequest
Returns a new instance of RescheduleMaintenanceRequest.
1863 1864 1865 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1863 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
1855 1856 1857 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1855 def reschedule_type @reschedule_type end |
#schedule_time ⇒ String
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
1861 1862 1863 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1861 def schedule_time @schedule_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1868 1869 1870 1871 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1868 def update!(**args) @reschedule_type = args[:reschedule_type] if args.key?(:reschedule_type) @schedule_time = args[:schedule_time] if args.key?(:schedule_time) end |