Class: Google::Apis::DataprocV1beta2::LifecycleConfig

Inherits:
Object
  • Object
show all
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

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



1182
1183
1184
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1182

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

Instance Attribute Details

#auto_delete_timeString

Optional. The time when cluster will be auto-deleted. Corresponds to the JSON property autoDeleteTime

Returns:

  • (String)


1168
1169
1170
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1168

def auto_delete_time
  @auto_delete_time
end

#auto_delete_ttlString

Optional. The life duration of cluster, the cluster will be auto-deleted at the end of this duration. Corresponds to the JSON property autoDeleteTtl

Returns:

  • (String)


1174
1175
1176
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1174

def auto_delete_ttl
  @auto_delete_ttl
end

#idle_delete_ttlString

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

Returns:

  • (String)


1180
1181
1182
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1180

def idle_delete_ttl
  @idle_delete_ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1187
1188
1189
1190
1191
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1187

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