class Google::Apis::RedisV1::WeeklyMaintenanceWindow

Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window.

Attributes

day[RW]

Required. The day of week that maintenance updates occur. Corresponds to the JSON property `day` @return [String]

duration[RW]

Output only. Duration of the maintenance window. The current window is fixed at 1 hour. Corresponds to the JSON property `duration` @return [String]

start_time[RW]

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. Corresponds to the JSON property `startTime` @return [Google::Apis::RedisV1::TimeOfDay]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/redis_v1/classes.rb, line 969
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/redis_v1/classes.rb, line 974
def update!(**args)
  @day = args[:day] if args.key?(:day)
  @duration = args[:duration] if args.key?(:duration)
  @start_time = args[:start_time] if args.key?(:start_time)
end