Class: Google::Apis::MemcacheV1beta2::RescheduleMaintenanceRequest

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

Overview

Request for RescheduleMaintenance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RescheduleMaintenanceRequest

Returns a new instance of RescheduleMaintenanceRequest.



1496
1497
1498
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1496

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

Instance Attribute Details

#reschedule_typeString

Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well. Corresponds to the JSON property rescheduleType

Returns:

  • (String)


1488
1489
1490
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1488

def reschedule_type
  @reschedule_type
end

#schedule_timeString

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

Returns:

  • (String)


1494
1495
1496
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1494

def schedule_time
  @schedule_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1501
1502
1503
1504
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1501

def update!(**args)
  @reschedule_type = args[:reschedule_type] if args.key?(:reschedule_type)
  @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
end