Class: Google::Apis::NotebooksV1::Runtime
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV1::Runtime
- 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 more...
Overview
The definition of a Runtime for a managed notebook instance.
Instance Attribute Summary collapse
-
#access_config ⇒ Google::Apis::NotebooksV1::RuntimeAccessConfig
Specifies the login configuration for Runtime Corresponds to the JSON property
accessConfig
. -
#create_time ⇒ String
Output only.
-
#health_state ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Optional.
-
#metrics ⇒ Google::Apis::NotebooksV1::RuntimeMetrics
Contains runtime daemon metrics, such as OS and kernels and sessions stats.
-
#migrated ⇒ Boolean
(also: #migrated?)
Output only.
-
#name ⇒ String
Output only.
-
#runtime_migration_eligibility ⇒ Google::Apis::NotebooksV1::RuntimeMigrationEligibility
RuntimeMigrationEligibility represents the feasibility information of a migration from GmN to WbI.
-
#software_config ⇒ Google::Apis::NotebooksV1::RuntimeSoftwareConfig
Specifies the selection and configuration of software inside the runtime.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#virtual_machine ⇒ Google::Apis::NotebooksV1::VirtualMachine
Runtime using Virtual Machine for computing.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Runtime
constructor
A new instance of Runtime.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Runtime
Returns a new instance of Runtime.
2293 2294 2295 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2293 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_config ⇒ Google::Apis::NotebooksV1::RuntimeAccessConfig
Specifies the login configuration for Runtime
Corresponds to the JSON property accessConfig
2224 2225 2226 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2224 def access_config @access_config end |
#create_time ⇒ String
Output only. Runtime creation time.
Corresponds to the JSON property createTime
2229 2230 2231 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2229 def create_time @create_time end |
#health_state ⇒ String
Output only. Runtime health_state.
Corresponds to the JSON property healthState
2234 2235 2236 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2234 def health_state @health_state end |
#labels ⇒ Hash<String,String>
Optional. The labels to associate with this Managed Notebook or Runtime. Label
keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if
present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with
a cluster.
Corresponds to the JSON property labels
2244 2245 2246 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2244 def labels @labels end |
#metrics ⇒ Google::Apis::NotebooksV1::RuntimeMetrics
Contains runtime daemon metrics, such as OS and kernels and sessions stats.
Corresponds to the JSON property metrics
2249 2250 2251 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2249 def metrics @metrics end |
#migrated ⇒ Boolean Also known as: migrated?
Output only. Bool indicating whether this notebook has been migrated to a
Workbench Instance
Corresponds to the JSON property migrated
2255 2256 2257 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2255 def migrated @migrated end |
#name ⇒ String
Output only. The resource name of the runtime. Format: projects/
project/
locations/
location/runtimes/
runtimeId`
Corresponds to the JSON property
name`
2262 2263 2264 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2262 def name @name end |
#runtime_migration_eligibility ⇒ Google::Apis::NotebooksV1::RuntimeMigrationEligibility
RuntimeMigrationEligibility represents the feasibility information of a
migration from GmN to WbI.
Corresponds to the JSON property runtimeMigrationEligibility
2268 2269 2270 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2268 def runtime_migration_eligibility @runtime_migration_eligibility end |
#software_config ⇒ Google::Apis::NotebooksV1::RuntimeSoftwareConfig
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
Corresponds to the JSON property softwareConfig
2276 2277 2278 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2276 def software_config @software_config end |
#state ⇒ String
Output only. Runtime state.
Corresponds to the JSON property state
2281 2282 2283 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2281 def state @state end |
#update_time ⇒ String
Output only. Runtime update time.
Corresponds to the JSON property updateTime
2286 2287 2288 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2286 def update_time @update_time end |
#virtual_machine ⇒ Google::Apis::NotebooksV1::VirtualMachine
Runtime using Virtual Machine for computing.
Corresponds to the JSON property virtualMachine
2291 2292 2293 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2291 def virtual_machine @virtual_machine end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2298 def update!(**args) @access_config = args[:access_config] if args.key?(:access_config) @create_time = args[:create_time] if args.key?(:create_time) @health_state = args[:health_state] if args.key?(:health_state) @labels = args[:labels] if args.key?(:labels) @metrics = args[:metrics] if args.key?(:metrics) @migrated = args[:migrated] if args.key?(:migrated) @name = args[:name] if args.key?(:name) @runtime_migration_eligibility = args[:runtime_migration_eligibility] if args.key?(:runtime_migration_eligibility) @software_config = args[:software_config] if args.key?(:software_config) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) @virtual_machine = args[:virtual_machine] if args.key?(:virtual_machine) end |