Class: Google::Apis::NotebooksV1::VirtualMachine

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
more...

Overview

Runtime using Virtual Machine for computing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VirtualMachine

Returns a new instance of VirtualMachine.

[View source]

3327
3328
3329
# File 'lib/google/apis/notebooks_v1/classes.rb', line 3327

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

Instance Attribute Details

#instance_idString

Output only. The unique identifier of the Managed Compute Engine instance. Corresponds to the JSON property instanceId

Returns:

  • (String)

3315
3316
3317
# File 'lib/google/apis/notebooks_v1/classes.rb', line 3315

def instance_id
  @instance_id
end

#instance_nameString

Output only. The user-friendly name of the Managed Compute Engine instance. Corresponds to the JSON property instanceName

Returns:

  • (String)

3320
3321
3322
# File 'lib/google/apis/notebooks_v1/classes.rb', line 3320

def instance_name
  @instance_name
end

#virtual_machine_configGoogle::Apis::NotebooksV1::VirtualMachineConfig

The config settings for virtual machine. Corresponds to the JSON property virtualMachineConfig


3325
3326
3327
# File 'lib/google/apis/notebooks_v1/classes.rb', line 3325

def virtual_machine_config
  @virtual_machine_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

3332
3333
3334
3335
3336
# File 'lib/google/apis/notebooks_v1/classes.rb', line 3332

def update!(**args)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @instance_name = args[:instance_name] if args.key?(:instance_name)
  @virtual_machine_config = args[:virtual_machine_config] if args.key?(:virtual_machine_config)
end