Reference documentation and code samples for the AI Platform Notebooks V1 API class Google::Cloud::Notebooks::V1::VirtualMachineConfig.
The config settings for virtual machine.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#accelerator_config
def accelerator_config() -> ::Google::Cloud::Notebooks::V1::RuntimeAcceleratorConfig
- (::Google::Cloud::Notebooks::V1::RuntimeAcceleratorConfig) — Optional. The Compute Engine accelerator configuration for this runtime.
#accelerator_config=
def accelerator_config=(value) -> ::Google::Cloud::Notebooks::V1::RuntimeAcceleratorConfig
- value (::Google::Cloud::Notebooks::V1::RuntimeAcceleratorConfig) — Optional. The Compute Engine accelerator configuration for this runtime.
- (::Google::Cloud::Notebooks::V1::RuntimeAcceleratorConfig) — Optional. The Compute Engine accelerator configuration for this runtime.
#boot_image
def boot_image() -> ::Google::Cloud::Notebooks::V1::VirtualMachineConfig::BootImage
- (::Google::Cloud::Notebooks::V1::VirtualMachineConfig::BootImage) — Optional. Boot image metadata used for runtime upgradeability.
#boot_image=
def boot_image=(value) -> ::Google::Cloud::Notebooks::V1::VirtualMachineConfig::BootImage
- value (::Google::Cloud::Notebooks::V1::VirtualMachineConfig::BootImage) — Optional. Boot image metadata used for runtime upgradeability.
- (::Google::Cloud::Notebooks::V1::VirtualMachineConfig::BootImage) — Optional. Boot image metadata used for runtime upgradeability.
#container_images
def container_images() -> ::Array<::Google::Cloud::Notebooks::V1::ContainerImage>
- (::Array<::Google::Cloud::Notebooks::V1::ContainerImage>) — Optional. Use a list of container images to use as Kernels in the notebook instance.
#container_images=
def container_images=(value) -> ::Array<::Google::Cloud::Notebooks::V1::ContainerImage>
- value (::Array<::Google::Cloud::Notebooks::V1::ContainerImage>) — Optional. Use a list of container images to use as Kernels in the notebook instance.
- (::Array<::Google::Cloud::Notebooks::V1::ContainerImage>) — Optional. Use a list of container images to use as Kernels in the notebook instance.
#data_disk
def data_disk() -> ::Google::Cloud::Notebooks::V1::LocalDisk
- (::Google::Cloud::Notebooks::V1::LocalDisk) — Required. Data disk option configuration settings.
#data_disk=
def data_disk=(value) -> ::Google::Cloud::Notebooks::V1::LocalDisk
- value (::Google::Cloud::Notebooks::V1::LocalDisk) — Required. Data disk option configuration settings.
- (::Google::Cloud::Notebooks::V1::LocalDisk) — Required. Data disk option configuration settings.
#encryption_config
def encryption_config() -> ::Google::Cloud::Notebooks::V1::EncryptionConfig
- (::Google::Cloud::Notebooks::V1::EncryptionConfig) — Optional. Encryption settings for virtual machine data disk.
#encryption_config=
def encryption_config=(value) -> ::Google::Cloud::Notebooks::V1::EncryptionConfig
- value (::Google::Cloud::Notebooks::V1::EncryptionConfig) — Optional. Encryption settings for virtual machine data disk.
- (::Google::Cloud::Notebooks::V1::EncryptionConfig) — Optional. Encryption settings for virtual machine data disk.
#guest_attributes
def guest_attributes() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Output only. The Compute Engine guest attributes. (see Project and instance guest attributes).
#internal_ip_only
def internal_ip_only() -> ::Boolean
-
(::Boolean) — Optional. If true, runtime will only have internal IP
addresses. By default, runtimes are not restricted to internal IP
addresses, and will have ephemeral external IP addresses assigned to each
vm. This
internal_ip_only
restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses.
#internal_ip_only=
def internal_ip_only=(value) -> ::Boolean
-
value (::Boolean) — Optional. If true, runtime will only have internal IP
addresses. By default, runtimes are not restricted to internal IP
addresses, and will have ephemeral external IP addresses assigned to each
vm. This
internal_ip_only
restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses.
-
(::Boolean) — Optional. If true, runtime will only have internal IP
addresses. By default, runtimes are not restricted to internal IP
addresses, and will have ephemeral external IP addresses assigned to each
vm. This
internal_ip_only
restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Optional. The labels to associate with this 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.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. The labels to associate with this 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.
- (::Google::Protobuf::Map{::String => ::String}) — Optional. The labels to associate with this 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.
#machine_type
def machine_type() -> ::String
-
(::String) —
Required. The Compute Engine machine type used for runtimes. Short name is valid. Examples:
n1-standard-2
e2-standard-8
#machine_type=
def machine_type=(value) -> ::String
-
value (::String) —
Required. The Compute Engine machine type used for runtimes. Short name is valid. Examples:
n1-standard-2
e2-standard-8
-
(::String) —
Required. The Compute Engine machine type used for runtimes. Short name is valid. Examples:
n1-standard-2
e2-standard-8
#metadata
def metadata() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Optional. The Compute Engine metadata entries to add to virtual machine. (see Project and instance metadata).
#metadata=
def metadata=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. The Compute Engine metadata entries to add to virtual machine. (see Project and instance metadata).
- (::Google::Protobuf::Map{::String => ::String}) — Optional. The Compute Engine metadata entries to add to virtual machine. (see Project and instance metadata).
#network
def network() -> ::String
-
(::String) —
Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork. If neither
network
norsubnet
is specified, the "default" network of the project is used, if it exists.A full URL or partial URI. Examples:
https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default
projects/[project_id]/global/networks/default
Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations:
- Google Managed Network (Network & subnet are empty)
- Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access.
- Shared VPC (network & subnet are required). Requires configuring Private Service Access.
#network=
def network=(value) -> ::String
-
value (::String) —
Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork. If neither
network
norsubnet
is specified, the "default" network of the project is used, if it exists.A full URL or partial URI. Examples:
https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default
projects/[project_id]/global/networks/default
Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations:
- Google Managed Network (Network & subnet are empty)
- Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access.
- Shared VPC (network & subnet are required). Requires configuring Private Service Access.
-
(::String) —
Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork. If neither
network
norsubnet
is specified, the "default" network of the project is used, if it exists.A full URL or partial URI. Examples:
https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default
projects/[project_id]/global/networks/default
Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations:
- Google Managed Network (Network & subnet are empty)
- Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access.
- Shared VPC (network & subnet are required). Requires configuring Private Service Access.
#nic_type
def nic_type() -> ::Google::Cloud::Notebooks::V1::VirtualMachineConfig::NicType
- (::Google::Cloud::Notebooks::V1::VirtualMachineConfig::NicType) — Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
#nic_type=
def nic_type=(value) -> ::Google::Cloud::Notebooks::V1::VirtualMachineConfig::NicType
- value (::Google::Cloud::Notebooks::V1::VirtualMachineConfig::NicType) — Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
- (::Google::Cloud::Notebooks::V1::VirtualMachineConfig::NicType) — Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
#reserved_ip_range
def reserved_ip_range() -> ::String
-
(::String) — Optional. Reserved IP Range name is used for VPC Peering.
The subnetwork allocation will use the range name if it's assigned.
Example: managed-notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description="Google Cloud Managed Notebooks Range 24 c" \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING
Field value will be:
managed-notebooks-range-c
#reserved_ip_range=
def reserved_ip_range=(value) -> ::String
-
value (::String) — Optional. Reserved IP Range name is used for VPC Peering.
The subnetwork allocation will use the range name if it's assigned.
Example: managed-notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description="Google Cloud Managed Notebooks Range 24 c" \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING
Field value will be:
managed-notebooks-range-c
-
(::String) — Optional. Reserved IP Range name is used for VPC Peering.
The subnetwork allocation will use the range name if it's assigned.
Example: managed-notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description="Google Cloud Managed Notebooks Range 24 c" \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING
Field value will be:
managed-notebooks-range-c
#shielded_instance_config
def shielded_instance_config() -> ::Google::Cloud::Notebooks::V1::RuntimeShieldedInstanceConfig
- (::Google::Cloud::Notebooks::V1::RuntimeShieldedInstanceConfig) — Optional. Shielded VM Instance configuration settings.
#shielded_instance_config=
def shielded_instance_config=(value) -> ::Google::Cloud::Notebooks::V1::RuntimeShieldedInstanceConfig
- value (::Google::Cloud::Notebooks::V1::RuntimeShieldedInstanceConfig) — Optional. Shielded VM Instance configuration settings.
- (::Google::Cloud::Notebooks::V1::RuntimeShieldedInstanceConfig) — Optional. Shielded VM Instance configuration settings.
#subnet
def subnet() -> ::String
-
(::String) —
Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network.
A full URL or partial URI are valid. Examples:
https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
projects/[project_id]/regions/us-east1/subnetworks/sub0
#subnet=
def subnet=(value) -> ::String
-
value (::String) —
Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network.
A full URL or partial URI are valid. Examples:
https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
projects/[project_id]/regions/us-east1/subnetworks/sub0
-
(::String) —
Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network.
A full URL or partial URI are valid. Examples:
https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
projects/[project_id]/regions/us-east1/subnetworks/sub0
#tags
def tags() -> ::Array<::String>
- (::Array<::String>) — Optional. The Compute Engine tags to add to runtime (see Tagging instances).
#tags=
def tags=(value) -> ::Array<::String>
- value (::Array<::String>) — Optional. The Compute Engine tags to add to runtime (see Tagging instances).
- (::Array<::String>) — Optional. The Compute Engine tags to add to runtime (see Tagging instances).
#zone
def zone() -> ::String
-
(::String) —
Output only. The zone where the virtual machine is located. If using regional request, the notebooks service will pick a location in the corresponding runtime region. On a get request, zone will always be present. Example:
us-central1-b