Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig

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

Overview

The idle shutdown configuration of NotebookRuntimeTemplate, which contains the idle_timeout as required field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig

Returns a new instance of GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig.



19313
19314
19315
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19313

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

Instance Attribute Details

#idle_shutdown_disabledBoolean Also known as: idle_shutdown_disabled?

Whether Idle Shutdown is disabled in this NotebookRuntimeTemplate. Corresponds to the JSON property idleShutdownDisabled

Returns:

  • (Boolean)


19303
19304
19305
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19303

def idle_shutdown_disabled
  @idle_shutdown_disabled
end

#idle_timeoutString

Required. Duration is accurate to the second. In Notebook, Idle Timeout is accurate to minute so the range of idle_timeout (second) is: 10 * 60 ~ 1440 * 60. Corresponds to the JSON property idleTimeout

Returns:

  • (String)


19311
19312
19313
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19311

def idle_timeout
  @idle_timeout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19318
19319
19320
19321
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19318

def update!(**args)
  @idle_shutdown_disabled = args[:idle_shutdown_disabled] if args.key?(:idle_shutdown_disabled)
  @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
end