Class: Google::Apis::RedisV1::MaintenancePolicy
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::RedisV1::MaintenancePolicy
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb 
Overview
Maintenance policy for an instance.
Instance Attribute Summary collapse
- 
  
    
      #create_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #update_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #weekly_maintenance_window  ⇒ Array<Google::Apis::RedisV1::WeeklyMaintenanceWindow> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ MaintenancePolicy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of MaintenancePolicy.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ MaintenancePolicy
Returns a new instance of MaintenancePolicy.
      2199 2200 2201  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 2199 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the policy was created.
Corresponds to the JSON property createTime
      2179 2180 2181  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 2179 def create_time @create_time end  | 
  
#description ⇒ 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
      2185 2186 2187  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 2185 def description @description end  | 
  
#update_time ⇒ String
Output only. The time when the policy was last updated.
Corresponds to the JSON property updateTime
      2190 2191 2192  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 2190 def update_time @update_time end  | 
  
#weekly_maintenance_window ⇒ Array<Google::Apis::RedisV1::WeeklyMaintenanceWindow>
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
      2197 2198 2199  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 2197 def weekly_maintenance_window @weekly_maintenance_window end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2204 2205 2206 2207 2208 2209  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 2204 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  |