Class: Google::Apis::RedisV1::ClusterMaintenancePolicy
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::RedisV1::ClusterMaintenancePolicy
 
 
- 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 per cluster.
Instance Attribute Summary collapse
- 
  
    
      #create_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #update_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #weekly_maintenance_window  ⇒ Array<Google::Apis::RedisV1::ClusterWeeklyMaintenanceWindow> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ClusterMaintenancePolicy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ClusterMaintenancePolicy.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ ClusterMaintenancePolicy
Returns a new instance of ClusterMaintenancePolicy.
      506 507 508  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 506 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the policy was created i.e. Maintenance Window or
Deny Period was assigned.
Corresponds to the JSON property createTime
      491 492 493  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 491 def create_time @create_time end  | 
  
#update_time ⇒ String
Output only. The time when the policy was updated i.e. Maintenance Window or
Deny Period was updated.
Corresponds to the JSON property updateTime
      497 498 499  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 497 def update_time @update_time end  | 
  
#weekly_maintenance_window ⇒ Array<Google::Apis::RedisV1::ClusterWeeklyMaintenanceWindow>
Optional. Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_maintenance_window is expected to be one.
Corresponds to the JSON property weeklyMaintenanceWindow
      504 505 506  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 504 def weekly_maintenance_window @weekly_maintenance_window end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      511 512 513 514 515  | 
    
      # File 'lib/google/apis/redis_v1/classes.rb', line 511 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @update_time = args[:update_time] if args.key?(:update_time) @weekly_maintenance_window = args[:weekly_maintenance_window] if args.key?(:weekly_maintenance_window) end  |