class Google::Apis::DataprocV1beta2::LifecycleConfig

Specifies the cluster auto-delete schedule configuration.

Attributes

auto_delete_time[RW]

Optional. The time when cluster will be auto-deleted. (see JSON representation of Timestamp (developers.google.com/protocol-buffers/docs/proto3#json)) . Corresponds to the JSON property `autoDeleteTime` @return [String]

auto_delete_ttl[RW]

Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (developers.google.com/ protocol-buffers/docs/proto3#json)). Corresponds to the JSON property `autoDeleteTtl` @return [String]

idle_delete_ttl[RW]

Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration (developers.google.com/protocol-buffers/docs/proto3#json)). Corresponds to the JSON property `idleDeleteTtl` @return [String]

idle_start_time[RW]

Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (developers.google.com/protocol-buffers/docs/proto3#json)). Corresponds to the JSON property `idleStartTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataproc_v1beta2/classes.rb, line 1992
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataproc_v1beta2/classes.rb, line 1997
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