AI Platform Notebooks V1beta1 API - Class Google::Cloud::Notebooks::V1beta1::Instance (v0.4.5)

Reference documentation and code samples for the AI Platform Notebooks V1beta1 API class Google::Cloud::Notebooks::V1beta1::Instance.

The definition of a notebook instance.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#accelerator_config

def accelerator_config() -> ::Google::Cloud::Notebooks::V1beta1::Instance::AcceleratorConfig
Returns

#accelerator_config=

def accelerator_config=(value) -> ::Google::Cloud::Notebooks::V1beta1::Instance::AcceleratorConfig
Parameter
Returns

#boot_disk_size_gb

def boot_disk_size_gb() -> ::Integer
Returns
  • (::Integer) — Input only. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.

#boot_disk_size_gb=

def boot_disk_size_gb=(value) -> ::Integer
Parameter
  • value (::Integer) — Input only. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
Returns
  • (::Integer) — Input only. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.

#boot_disk_type

def boot_disk_type() -> ::Google::Cloud::Notebooks::V1beta1::Instance::DiskType
Returns

#boot_disk_type=

def boot_disk_type=(value) -> ::Google::Cloud::Notebooks::V1beta1::Instance::DiskType
Parameter
Returns

#container_image

def container_image() -> ::Google::Cloud::Notebooks::V1beta1::ContainerImage
Returns

#container_image=

def container_image=(value) -> ::Google::Cloud::Notebooks::V1beta1::ContainerImage
Parameter
Returns

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#custom_gpu_driver_path

def custom_gpu_driver_path() -> ::String
Returns
  • (::String) — Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.

#custom_gpu_driver_path=

def custom_gpu_driver_path=(value) -> ::String
Parameter
  • value (::String) — Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.
Returns
  • (::String) — Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.

#data_disk_size_gb

def data_disk_size_gb() -> ::Integer
Returns
  • (::Integer) — Input only. The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.

#data_disk_size_gb=

def data_disk_size_gb=(value) -> ::Integer
Parameter
  • value (::Integer) — Input only. The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
Returns
  • (::Integer) — Input only. The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.

#data_disk_type

def data_disk_type() -> ::Google::Cloud::Notebooks::V1beta1::Instance::DiskType
Returns

#data_disk_type=

def data_disk_type=(value) -> ::Google::Cloud::Notebooks::V1beta1::Instance::DiskType
Parameter
Returns

#disk_encryption

def disk_encryption() -> ::Google::Cloud::Notebooks::V1beta1::Instance::DiskEncryption
Returns

#disk_encryption=

def disk_encryption=(value) -> ::Google::Cloud::Notebooks::V1beta1::Instance::DiskEncryption
Parameter
Returns

#install_gpu_driver

def install_gpu_driver() -> ::Boolean
Returns
  • (::Boolean) — Whether the end user authorizes Google Cloud to install GPU driver on this instance. If this field is empty or set to false, the GPU driver won't be installed. Only applicable to instances with GPUs.

#install_gpu_driver=

def install_gpu_driver=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the end user authorizes Google Cloud to install GPU driver on this instance. If this field is empty or set to false, the GPU driver won't be installed. Only applicable to instances with GPUs.
Returns
  • (::Boolean) — Whether the end user authorizes Google Cloud to install GPU driver on this instance. If this field is empty or set to false, the GPU driver won't be installed. Only applicable to instances with GPUs.

#instance_owners

def instance_owners() -> ::Array<::String>
Returns
  • (::Array<::String>) — Input only. The owner of this instance after creation. Format: alias@example.com

    Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.

#instance_owners=

def instance_owners=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Input only. The owner of this instance after creation. Format: alias@example.com

    Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.

Returns
  • (::Array<::String>) — Input only. The owner of this instance after creation. Format: alias@example.com

    Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.

#kms_key

def kms_key() -> ::String
Returns
  • (::String) — Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}

    Learn more about using your own encryption keys.

#kms_key=

def kms_key=(value) -> ::String
Parameter
  • value (::String) — Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}

    Learn more about using your own encryption keys.

Returns
  • (::String) — Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}

    Learn more about using your own encryption keys.

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Labels to apply to this instance. These can be later modified by the setLabels method.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Labels to apply to this instance. These can be later modified by the setLabels method.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Labels to apply to this instance. These can be later modified by the setLabels method.

#machine_type

def machine_type() -> ::String
Returns

#machine_type=

def machine_type=(value) -> ::String
Parameter
Returns

#metadata

def metadata() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Custom metadata to apply to this instance.

#metadata=

def metadata=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Custom metadata to apply to this instance.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Custom metadata to apply to this instance.

#name

def name() -> ::String
Returns
  • (::String) — Output only. The name of this notebook instance. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

#network

def network() -> ::String
Returns
  • (::String) — The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}

#network=

def network=(value) -> ::String
Parameter
  • value (::String) — The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}
Returns
  • (::String) — The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}

#no_proxy_access

def no_proxy_access() -> ::Boolean
Returns
  • (::Boolean) — If true, the notebook instance will not register with the proxy.

#no_proxy_access=

def no_proxy_access=(value) -> ::Boolean
Parameter
  • value (::Boolean) — If true, the notebook instance will not register with the proxy.
Returns
  • (::Boolean) — If true, the notebook instance will not register with the proxy.

#no_public_ip

def no_public_ip() -> ::Boolean
Returns
  • (::Boolean) — If true, no public IP will be assigned to this instance.

#no_public_ip=

def no_public_ip=(value) -> ::Boolean
Parameter
  • value (::Boolean) — If true, no public IP will be assigned to this instance.
Returns
  • (::Boolean) — If true, no public IP will be assigned to this instance.

#no_remove_data_disk

def no_remove_data_disk() -> ::Boolean
Returns
  • (::Boolean) — Input only. If true, the data disk will not be auto deleted when deleting the instance.

#no_remove_data_disk=

def no_remove_data_disk=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Input only. If true, the data disk will not be auto deleted when deleting the instance.
Returns
  • (::Boolean) — Input only. If true, the data disk will not be auto deleted when deleting the instance.

#post_startup_script

def post_startup_script() -> ::String
Returns
  • (::String) — 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).

#post_startup_script=

def post_startup_script=(value) -> ::String
Parameter
  • value (::String) — 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).
Returns
  • (::String) — 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).

#proxy_uri

def proxy_uri() -> ::String
Returns
  • (::String) — Output only. The proxy endpoint that is used to access the Jupyter notebook.

#service_account

def service_account() -> ::String
Returns
  • (::String) — The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance.

    If not specified, the Compute Engine default service account is used.

#service_account=

def service_account=(value) -> ::String
Parameter
  • value (::String) — The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance.

    If not specified, the Compute Engine default service account is used.

Returns
  • (::String) — The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance.

    If not specified, the Compute Engine default service account is used.

#state

def state() -> ::Google::Cloud::Notebooks::V1beta1::Instance::State
Returns

#subnet

def subnet() -> ::String
Returns
  • (::String) — The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}

#subnet=

def subnet=(value) -> ::String
Parameter
  • value (::String) — The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
Returns
  • (::String) — The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns

#vm_image

def vm_image() -> ::Google::Cloud::Notebooks::V1beta1::VmImage
Returns

#vm_image=

def vm_image=(value) -> ::Google::Cloud::Notebooks::V1beta1::VmImage
Parameter
Returns