Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookIdleShutdownConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookIdleShutdownConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
The idle shutdown configuration of NotebookRuntimeTemplate, which contains the idle_timeout as required field.
Instance Attribute Summary collapse
-
#idle_shutdown_disabled ⇒ Boolean
(also: #idle_shutdown_disabled?)
Whether Idle Shutdown is disabled in this NotebookRuntimeTemplate.
-
#idle_timeout ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1NotebookIdleShutdownConfig
constructor
A new instance of GoogleCloudAiplatformV1NotebookIdleShutdownConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1NotebookIdleShutdownConfig
Returns a new instance of GoogleCloudAiplatformV1NotebookIdleShutdownConfig.
17636 17637 17638 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17636 def initialize(**args) update!(**args) end |
Instance Attribute Details
#idle_shutdown_disabled ⇒ Boolean Also known as: idle_shutdown_disabled?
Whether Idle Shutdown is disabled in this NotebookRuntimeTemplate.
Corresponds to the JSON property idleShutdownDisabled
17626 17627 17628 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17626 def idle_shutdown_disabled @idle_shutdown_disabled end |
#idle_timeout ⇒ String
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
17634 17635 17636 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17634 def idle_timeout @idle_timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17641 17642 17643 17644 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17641 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 |