Class: Google::Apis::DataprocV1beta2::LifecycleConfig
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DataprocV1beta2::LifecycleConfig
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1beta2/classes.rb,
 generated/google/apis/dataproc_v1beta2/representations.rb,
 generated/google/apis/dataproc_v1beta2/representations.rb
Overview
Specifies the cluster auto delete related schedule configuration.
Instance Attribute Summary collapse
- 
  
    
      #auto_delete_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #auto_delete_ttl  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #idle_delete_ttl  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ LifecycleConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of LifecycleConfig. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LifecycleConfig
Returns a new instance of LifecycleConfig
| 1198 1199 1200 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1198 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#auto_delete_time ⇒ String
Optional. The time when cluster will be auto-deleted.
Corresponds to the JSON property autoDeleteTime
| 1184 1185 1186 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1184 def auto_delete_time @auto_delete_time end | 
#auto_delete_ttl ⇒ String
Optional. The life duration of cluster, the cluster will be auto-deleted at
the end of this duration.
Corresponds to the JSON property autoDeleteTtl
| 1190 1191 1192 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1190 def auto_delete_ttl @auto_delete_ttl end | 
#idle_delete_ttl ⇒ String
Optional. The longest duration that cluster would keep alive while staying
idle; passing this threshold will cause cluster to be auto-deleted.
Corresponds to the JSON property idleDeleteTtl
| 1196 1197 1198 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1196 def idle_delete_ttl @idle_delete_ttl end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1203 1204 1205 1206 1207 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1203 def update!(**args) @auto_delete_time = args[:auto_delete_time] if args.key?(:auto_delete_time) @auto_delete_ttl = args[:auto_delete_ttl] if args.key?(:auto_delete_ttl) @idle_delete_ttl = args[:idle_delete_ttl] if args.key?(:idle_delete_ttl) end |