Class: Google::Apis::NotebooksV1::RuntimeSoftwareConfig
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV1::RuntimeSoftwareConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v1/classes.rb,
lib/google/apis/notebooks_v1/representations.rb,
lib/google/apis/notebooks_v1/representations.rb
Overview
Specifies the selection and config of software inside the runtime. / The
properties to set on runtime. Properties keys are specified in key:value
format, for example: * idle_shutdown: idle_shutdown=true *
idle_shutdown_timeout: idle_shutdown_timeout=180 * report-system-health:
report-system-health=true
Instance Attribute Summary collapse
-
#custom_gpu_driver_path ⇒ String
Specify a custom Cloud Storage path where the GPU driver is stored.
-
#enable_health_monitoring ⇒ Boolean
(also: #enable_health_monitoring?)
Verifies core internal services are running.
-
#idle_shutdown ⇒ Boolean
(also: #idle_shutdown?)
Runtime will automatically shutdown after idle_shutdown_time.
-
#idle_shutdown_timeout ⇒ Fixnum
Time in minutes to wait before shuting down runtime.
-
#install_gpu_driver ⇒ Boolean
(also: #install_gpu_driver?)
Install Nvidia Driver automatically.
-
#notebook_upgrade_schedule ⇒ String
Cron expression in UTC timezone, used to schedule instance auto upgrade.
-
#post_startup_script ⇒ String
Path to a Bash script that automatically runs after a notebook instance fully boots up.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RuntimeSoftwareConfig
constructor
A new instance of RuntimeSoftwareConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RuntimeSoftwareConfig
Returns a new instance of RuntimeSoftwareConfig.
1962 1963 1964 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1962 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_gpu_driver_path ⇒ String
Specify a custom Cloud Storage path where the GPU driver is stored. If not
specified, we'll automatically choose from official GPU drivers.
Corresponds to the JSON property customGpuDriverPath
1924 1925 1926 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1924 def custom_gpu_driver_path @custom_gpu_driver_path end |
#enable_health_monitoring ⇒ Boolean Also known as: enable_health_monitoring?
Verifies core internal services are running. Default: True
Corresponds to the JSON property enableHealthMonitoring
1929 1930 1931 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1929 def enable_health_monitoring @enable_health_monitoring end |
#idle_shutdown ⇒ Boolean Also known as: idle_shutdown?
Runtime will automatically shutdown after idle_shutdown_time. Default: False
Corresponds to the JSON property idleShutdown
1935 1936 1937 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1935 def idle_shutdown @idle_shutdown end |
#idle_shutdown_timeout ⇒ Fixnum
Time in minutes to wait before shuting down runtime. Default: 90 minutes
Corresponds to the JSON property idleShutdownTimeout
1941 1942 1943 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1941 def idle_shutdown_timeout @idle_shutdown_timeout end |
#install_gpu_driver ⇒ Boolean Also known as: install_gpu_driver?
Install Nvidia Driver automatically.
Corresponds to the JSON property installGpuDriver
1946 1947 1948 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1946 def install_gpu_driver @install_gpu_driver end |
#notebook_upgrade_schedule ⇒ String
Cron expression in UTC timezone, used to schedule instance auto upgrade.
Please follow the cron format.
Corresponds to the JSON property notebookUpgradeSchedule
1953 1954 1955 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1953 def notebook_upgrade_schedule @notebook_upgrade_schedule end |
#post_startup_script ⇒ String
Path to a Bash script that automatically runs after a notebook instance fully
boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-
name).
Corresponds to the JSON property postStartupScript
1960 1961 1962 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1960 def post_startup_script @post_startup_script end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1967 1968 1969 1970 1971 1972 1973 1974 1975 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 1967 def update!(**args) @custom_gpu_driver_path = args[:custom_gpu_driver_path] if args.key?(:custom_gpu_driver_path) @enable_health_monitoring = args[:enable_health_monitoring] if args.key?(:enable_health_monitoring) @idle_shutdown = args[:idle_shutdown] if args.key?(:idle_shutdown) @idle_shutdown_timeout = args[:idle_shutdown_timeout] if args.key?(:idle_shutdown_timeout) @install_gpu_driver = args[:install_gpu_driver] if args.key?(:install_gpu_driver) @notebook_upgrade_schedule = args[:notebook_upgrade_schedule] if args.key?(:notebook_upgrade_schedule) @post_startup_script = args[:post_startup_script] if args.key?(:post_startup_script) end |