Class: Google::Apis::NotebooksV1::RuntimeSoftwareConfig

Inherits:
Object
  • Object
show all
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 configuration of software inside the runtime. The properties to set on runtime. Properties keys are specified in key:value format, for example: * idle_shutdown: true * idle_shutdown_timeout: 180 * enable_health_monitoring: true

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RuntimeSoftwareConfig

Returns a new instance of RuntimeSoftwareConfig.



2223
2224
2225
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2223

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

Instance Attribute Details

#custom_gpu_driver_pathString

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

Returns:

  • (String)


2167
2168
2169
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2167

def custom_gpu_driver_path
  @custom_gpu_driver_path
end

#enable_health_monitoringBoolean Also known as: enable_health_monitoring?

Verifies core internal services are running. Default: True Corresponds to the JSON property enableHealthMonitoring

Returns:

  • (Boolean)


2172
2173
2174
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2172

def enable_health_monitoring
  @enable_health_monitoring
end

#idle_shutdownBoolean Also known as: idle_shutdown?

Runtime will automatically shutdown after idle_shutdown_time. Default: True Corresponds to the JSON property idleShutdown

Returns:

  • (Boolean)


2178
2179
2180
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2178

def idle_shutdown
  @idle_shutdown
end

#idle_shutdown_timeoutFixnum

Time in minutes to wait before shutting down runtime. Default: 180 minutes Corresponds to the JSON property idleShutdownTimeout

Returns:

  • (Fixnum)


2184
2185
2186
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2184

def idle_shutdown_timeout
  @idle_shutdown_timeout
end

#install_gpu_driverBoolean Also known as: install_gpu_driver?

Install Nvidia Driver automatically. Default: True Corresponds to the JSON property installGpuDriver

Returns:

  • (Boolean)


2189
2190
2191
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2189

def install_gpu_driver
  @install_gpu_driver
end

#kernelsArray<Google::Apis::NotebooksV1::ContainerImage>

Optional. Use a list of container images to use as Kernels in the notebook instance. Corresponds to the JSON property kernels



2196
2197
2198
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2196

def kernels
  @kernels
end

#notebook_upgrade_scheduleString

Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the cron format. Corresponds to the JSON property notebookUpgradeSchedule

Returns:

  • (String)


2202
2203
2204
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2202

def notebook_upgrade_schedule
  @notebook_upgrade_schedule
end

#post_startup_scriptString

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

Returns:

  • (String)


2209
2210
2211
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2209

def post_startup_script
  @post_startup_script
end

#post_startup_script_behaviorString

Behavior for the post startup script. Corresponds to the JSON property postStartupScriptBehavior

Returns:

  • (String)


2214
2215
2216
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2214

def post_startup_script_behavior
  @post_startup_script_behavior
end

#upgradeableBoolean Also known as: upgradeable?

Output only. Bool indicating whether an newer image is available in an image family. Corresponds to the JSON property upgradeable

Returns:

  • (Boolean)


2220
2221
2222
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2220

def upgradeable
  @upgradeable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2228

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)
  @kernels = args[:kernels] if args.key?(:kernels)
  @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)
  @post_startup_script_behavior = args[:post_startup_script_behavior] if args.key?(:post_startup_script_behavior)
  @upgradeable = args[:upgradeable] if args.key?(:upgradeable)
end