Class: Google::Apis::NotebooksV2::GceSetup
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV2::GceSetup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v2/classes.rb,
lib/google/apis/notebooks_v2/representations.rb,
lib/google/apis/notebooks_v2/representations.rb
Overview
The definition of how to configure a VM instance outside of Resources and Identity.
Instance Attribute Summary collapse
-
#accelerator_configs ⇒ Array<Google::Apis::NotebooksV2::AcceleratorConfig>
Optional.
-
#boot_disk ⇒ Google::Apis::NotebooksV2::BootDisk
The definition of a boot disk.
-
#container_image ⇒ Google::Apis::NotebooksV2::ContainerImage
Definition of a container image for starting a notebook instance with the environment installed in a container.
-
#data_disks ⇒ Array<Google::Apis::NotebooksV2::DataDisk>
Optional.
-
#disable_public_ip ⇒ Boolean
(also: #disable_public_ip?)
Optional.
-
#enable_ip_forwarding ⇒ Boolean
(also: #enable_ip_forwarding?)
Optional.
-
#gpu_driver_config ⇒ Google::Apis::NotebooksV2::GpuDriverConfig
A GPU driver configuration Corresponds to the JSON property
gpuDriverConfig. -
#machine_type ⇒ String
Optional.
-
#metadata ⇒ Hash<String,String>
Optional.
-
#network_interfaces ⇒ Array<Google::Apis::NotebooksV2::NetworkInterface>
Optional.
-
#service_accounts ⇒ Array<Google::Apis::NotebooksV2::ServiceAccount>
Optional.
-
#shielded_instance_config ⇒ Google::Apis::NotebooksV2::ShieldedInstanceConfig
A set of Shielded Instance options.
-
#tags ⇒ Array<String>
Optional.
-
#vm_image ⇒ Google::Apis::NotebooksV2::VmImage
Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GceSetup
constructor
A new instance of GceSetup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GceSetup
Returns a new instance of GceSetup.
647 648 649 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 647 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_configs ⇒ Array<Google::Apis::NotebooksV2::AcceleratorConfig>
Optional. The hardware accelerators used on this instance. If you use
accelerators, make sure that your configuration has enough vCPUs and memory
to support the machine_type you have selected. Currently supports only one accelerator
configuration.
Corresponds to the JSON property acceleratorConfigs
569 570 571 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 569 def accelerator_configs @accelerator_configs end |
#boot_disk ⇒ Google::Apis::NotebooksV2::BootDisk
The definition of a boot disk.
Corresponds to the JSON property bootDisk
574 575 576 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 574 def boot_disk @boot_disk end |
#container_image ⇒ Google::Apis::NotebooksV2::ContainerImage
Definition of a container image for starting a notebook instance with the
environment installed in a container.
Corresponds to the JSON property containerImage
580 581 582 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 580 def container_image @container_image end |
#data_disks ⇒ Array<Google::Apis::NotebooksV2::DataDisk>
Optional. Data disks attached to the VM instance. Currently supports only one
data disk.
Corresponds to the JSON property dataDisks
586 587 588 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 586 def data_disks @data_disks end |
#disable_public_ip ⇒ Boolean Also known as: disable_public_ip?
Optional. If true, no external IP will be assigned to this VM instance.
Corresponds to the JSON property disablePublicIp
591 592 593 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 591 def disable_public_ip @disable_public_ip end |
#enable_ip_forwarding ⇒ Boolean Also known as: enable_ip_forwarding?
Optional. Flag to enable ip forwarding or not, default false/off. https://
cloud.google.com/vpc/docs/using-routes#canipforward
Corresponds to the JSON property enableIpForwarding
598 599 600 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 598 def enable_ip_forwarding @enable_ip_forwarding end |
#gpu_driver_config ⇒ Google::Apis::NotebooksV2::GpuDriverConfig
A GPU driver configuration
Corresponds to the JSON property gpuDriverConfig
604 605 606 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 604 def gpu_driver_config @gpu_driver_config end |
#machine_type ⇒ String
Optional. The machine type of the VM instance. https://cloud.google.com/
compute/docs/machine-resource
Corresponds to the JSON property machineType
610 611 612 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 610 def machine_type @machine_type end |
#metadata ⇒ Hash<String,String>
Optional. Custom metadata to apply to this instance.
Corresponds to the JSON property metadata
615 616 617 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 615 def @metadata end |
#network_interfaces ⇒ Array<Google::Apis::NotebooksV2::NetworkInterface>
Optional. The network interfaces for the VM. Supports only one interface.
Corresponds to the JSON property networkInterfaces
620 621 622 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 620 def network_interfaces @network_interfaces end |
#service_accounts ⇒ Array<Google::Apis::NotebooksV2::ServiceAccount>
Optional. The service account that serves as an identity for the VM instance.
Currently supports only one service account.
Corresponds to the JSON property serviceAccounts
626 627 628 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 626 def service_accounts @service_accounts end |
#shielded_instance_config ⇒ Google::Apis::NotebooksV2::ShieldedInstanceConfig
A set of Shielded Instance options. See Images using supported Shielded VM
features. Not all combinations are valid.
Corresponds to the JSON property shieldedInstanceConfig
633 634 635 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 633 def shielded_instance_config @shielded_instance_config end |
#tags ⇒ Array<String>
Optional. The Compute Engine tags to add to runtime (see Tagging instances).
Corresponds to the JSON property tags
639 640 641 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 639 def @tags end |
#vm_image ⇒ Google::Apis::NotebooksV2::VmImage
Definition of a custom Compute Engine virtual machine image for starting a
notebook instance with the environment installed directly on the VM.
Corresponds to the JSON property vmImage
645 646 647 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 645 def vm_image @vm_image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 652 def update!(**args) @accelerator_configs = args[:accelerator_configs] if args.key?(:accelerator_configs) @boot_disk = args[:boot_disk] if args.key?(:boot_disk) @container_image = args[:container_image] if args.key?(:container_image) @data_disks = args[:data_disks] if args.key?(:data_disks) @disable_public_ip = args[:disable_public_ip] if args.key?(:disable_public_ip) @enable_ip_forwarding = args[:enable_ip_forwarding] if args.key?(:enable_ip_forwarding) @gpu_driver_config = args[:gpu_driver_config] if args.key?(:gpu_driver_config) @machine_type = args[:machine_type] if args.key?(:machine_type) @metadata = args[:metadata] if args.key?(:metadata) @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config) @tags = args[:tags] if args.key?(:tags) @vm_image = args[:vm_image] if args.key?(:vm_image) end |