Class: Google::Apis::DataprocV1::LifecycleConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataproc_v1/classes.rb,
generated/google/apis/dataproc_v1/representations.rb,
generated/google/apis/dataproc_v1/representations.rb

Overview

Specifies the cluster auto-delete schedule configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LifecycleConfig

Returns a new instance of LifecycleConfig.



1829
1830
1831
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1829

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#auto_delete_timeString

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

Returns:

  • (String)


1804
1805
1806
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1804

def auto_delete_time
  @auto_delete_time
end

#auto_delete_ttlString

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 (https://developers.google.com/ protocol-buffers/docs/proto3#json)). Corresponds to the JSON property autoDeleteTtl

Returns:

  • (String)


1812
1813
1814
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1812

def auto_delete_ttl
  @auto_delete_ttl
end

#idle_delete_ttlString

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 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json). Corresponds to the JSON property idleDeleteTtl

Returns:

  • (String)


1820
1821
1822
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1820

def idle_delete_ttl
  @idle_delete_ttl
end

#idle_start_timeString

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 (https://developers.google.com/protocol-buffers/docs/proto3#json)). Corresponds to the JSON property idleStartTime

Returns:

  • (String)


1827
1828
1829
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1827

def idle_start_time
  @idle_start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1834
1835
1836
1837
1838
1839
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1834

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