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 schedule configuration.
Instance Attribute Summary collapse
-
#auto_delete_time ⇒ String
Optional.
-
#auto_delete_ttl ⇒ String
Optional.
-
#idle_delete_ttl ⇒ String
Optional.
-
#idle_start_time ⇒ String
Output only.
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
1738 1739 1740 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1738 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
1715 1716 1717 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1715 def auto_delete_time @auto_delete_time end |
#auto_delete_ttl ⇒ String
Optional. The lifetime duration of cluster. The cluster will be auto-deleted
at the end of this period. Valid range: 10m, 14d.Example: "1d", to delete the
cluster 1 day after its creation..
Corresponds to the JSON property autoDeleteTtl
1722 1723 1724 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1722 def auto_delete_ttl @auto_delete_ttl end |
#idle_delete_ttl ⇒ String
Optional. The duration to keep the cluster alive while idling. Passing this
threshold will cause the cluster to be deleted. Valid range: 10m, 14d.Example:
"10m", the minimum value, to delete the cluster when it has had no jobs
running for 10 minutes.
Corresponds to the JSON property idleDeleteTtl
1730 1731 1732 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1730 def idle_delete_ttl @idle_delete_ttl end |
#idle_start_time ⇒ String
Output only. The time when cluster became idle (most recent job finished) and
became eligible for deletion due to idleness.
Corresponds to the JSON property idleStartTime
1736 1737 1738 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1736 def idle_start_time @idle_start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1743 1744 1745 1746 1747 1748 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1743 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) @idle_start_time = args[:idle_start_time] if args.key?(:idle_start_time) end |