class Google::Apis::RedisV1beta1::MaintenancePolicy
Maintenance policy for an instance.
Attributes
Output only. The time when the policy was created. Corresponds to the JSON property `createTime` @return [String]
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]
Output only. The time when the policy was last updated. Corresponds to the JSON property `updateTime` @return [String]
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::RedisV1beta1::WeeklyMaintenanceWindow>]
Public Class Methods
# File lib/google/apis/redis_v1beta1/classes.rb, line 637 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/redis_v1beta1/classes.rb, line 642 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