class Google::Apis::RedisV1::MaintenancePolicy

Maintenance policy for an instance.

Attributes

create_time[RW]

Output only. The time when the policy was created. Corresponds to the JSON property `createTime` @return [String]

description[RW]

Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512. Corresponds to the JSON property `description` @return [String]

update_time[RW]

Output only. The time when the policy was last updated. Corresponds to the JSON property `updateTime` @return [String]

weekly_maintenance_window[RW]

Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one. Corresponds to the JSON property `weeklyMaintenanceWindow` @return [Array<Google::Apis::RedisV1::WeeklyMaintenanceWindow>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/redis_v1/classes.rb, line 634
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 639
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @update_time = args[:update_time] if args.key?(:update_time)
  @weekly_maintenance_window = args[:weekly_maintenance_window] if args.key?(:weekly_maintenance_window)
end