Reference documentation and code samples for the AI Platform Notebooks V1 API class Google::Cloud::Notebooks::V1::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::V1::Instance::AcceleratorConfig
-
(::Google::Cloud::Notebooks::V1::Instance::AcceleratorConfig) — The hardware accelerator 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.
#accelerator_config=
def accelerator_config=(value) -> ::Google::Cloud::Notebooks::V1::Instance::AcceleratorConfig
-
value (::Google::Cloud::Notebooks::V1::Instance::AcceleratorConfig) — The hardware accelerator 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.
-
(::Google::Cloud::Notebooks::V1::Instance::AcceleratorConfig) — The hardware accelerator 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.
#boot_disk_size_gb
def boot_disk_size_gb() -> ::Integer
- (::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
- 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.
- (::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::V1::Instance::DiskType
-
(::Google::Cloud::Notebooks::V1::Instance::DiskType) — Input only. The type of the boot disk attached to this instance, defaults to
standard persistent disk (
PD_STANDARD
).
#boot_disk_type=
def boot_disk_type=(value) -> ::Google::Cloud::Notebooks::V1::Instance::DiskType
-
value (::Google::Cloud::Notebooks::V1::Instance::DiskType) — Input only. The type of the boot disk attached to this instance, defaults to
standard persistent disk (
PD_STANDARD
).
-
(::Google::Cloud::Notebooks::V1::Instance::DiskType) — Input only. The type of the boot disk attached to this instance, defaults to
standard persistent disk (
PD_STANDARD
).
#can_ip_forward
def can_ip_forward() -> ::Boolean
- (::Boolean) — Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward
#can_ip_forward=
def can_ip_forward=(value) -> ::Boolean
- value (::Boolean) — Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward
- (::Boolean) — Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward
#container_image
def container_image() -> ::Google::Cloud::Notebooks::V1::ContainerImage
- (::Google::Cloud::Notebooks::V1::ContainerImage) — Use a container image to start the notebook instance.
#container_image=
def container_image=(value) -> ::Google::Cloud::Notebooks::V1::ContainerImage
- value (::Google::Cloud::Notebooks::V1::ContainerImage) — Use a container image to start the notebook instance.
- (::Google::Cloud::Notebooks::V1::ContainerImage) — Use a container image to start the notebook instance.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Instance creation time.
#creator
def creator() -> ::String
- (::String) — Output only. Email address of entity that sent original CreateInstance request.
#custom_gpu_driver_path
def custom_gpu_driver_path() -> ::String
- (::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
- 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.
- (::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
- (::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
- 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.
- (::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::V1::Instance::DiskType
-
(::Google::Cloud::Notebooks::V1::Instance::DiskType) — Input only. The type of the data disk attached to this instance, defaults to
standard persistent disk (
PD_STANDARD
).
#data_disk_type=
def data_disk_type=(value) -> ::Google::Cloud::Notebooks::V1::Instance::DiskType
-
value (::Google::Cloud::Notebooks::V1::Instance::DiskType) — Input only. The type of the data disk attached to this instance, defaults to
standard persistent disk (
PD_STANDARD
).
-
(::Google::Cloud::Notebooks::V1::Instance::DiskType) — Input only. The type of the data disk attached to this instance, defaults to
standard persistent disk (
PD_STANDARD
).
#disk_encryption
def disk_encryption() -> ::Google::Cloud::Notebooks::V1::Instance::DiskEncryption
- (::Google::Cloud::Notebooks::V1::Instance::DiskEncryption) — Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
#disk_encryption=
def disk_encryption=(value) -> ::Google::Cloud::Notebooks::V1::Instance::DiskEncryption
- value (::Google::Cloud::Notebooks::V1::Instance::DiskEncryption) — Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
- (::Google::Cloud::Notebooks::V1::Instance::DiskEncryption) — Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
#disks
def disks() -> ::Array<::Google::Cloud::Notebooks::V1::Instance::Disk>
- (::Array<::Google::Cloud::Notebooks::V1::Instance::Disk>) — Output only. Attached disks to notebook instance.
#install_gpu_driver
def install_gpu_driver() -> ::Boolean
- (::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
- 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.
- (::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>
-
(::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>
-
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.
-
(::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
-
(::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
-
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.
-
(::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}
- (::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}
- value (::Google::Protobuf::Map{::String => ::String}) — Labels to apply to this instance. These can be later modified by the setLabels method.
- (::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
- (::String) — Required. The Compute Engine machine type of this instance.
#machine_type=
def machine_type=(value) -> ::String
- value (::String) — Required. The Compute Engine machine type of this instance.
- (::String) — Required. The Compute Engine machine type of this instance.
#metadata
def metadata() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Custom metadata to apply to this instance.
#metadata=
def metadata=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Custom metadata to apply to this instance.
- (::Google::Protobuf::Map{::String => ::String}) — Custom metadata to apply to this instance.
#name
def name() -> ::String
-
(::String) — Output only. The name of this notebook instance. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
#network
def network() -> ::String
-
(::String) — The name of the VPC that this instance is in.
Format:
projects/{project_id}/global/networks/{network_id}
#network=
def network=(value) -> ::String
-
value (::String) — The name of the VPC that this instance is in.
Format:
projects/{project_id}/global/networks/{network_id}
-
(::String) — The name of the VPC that this instance is in.
Format:
projects/{project_id}/global/networks/{network_id}
#nic_type
def nic_type() -> ::Google::Cloud::Notebooks::V1::Instance::NicType
- (::Google::Cloud::Notebooks::V1::Instance::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::Instance::NicType
- value (::Google::Cloud::Notebooks::V1::Instance::NicType) — Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
- (::Google::Cloud::Notebooks::V1::Instance::NicType) — Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
#no_proxy_access
def no_proxy_access() -> ::Boolean
- (::Boolean) — If true, the notebook instance will not register with the proxy.
#no_proxy_access=
def no_proxy_access=(value) -> ::Boolean
- value (::Boolean) — If true, the notebook instance will not register with the proxy.
- (::Boolean) — If true, the notebook instance will not register with the proxy.
#no_public_ip
def no_public_ip() -> ::Boolean
- (::Boolean) — If true, no public IP will be assigned to this instance.
#no_public_ip=
def no_public_ip=(value) -> ::Boolean
- value (::Boolean) — If true, no public IP will be assigned to this instance.
- (::Boolean) — If true, no public IP will be assigned to this instance.
#no_remove_data_disk
def no_remove_data_disk() -> ::Boolean
- (::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
- value (::Boolean) — Input only. If true, the data disk will not be auto deleted when deleting the instance.
- (::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
-
(::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
-
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
).
-
(::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
- (::String) — Output only. The proxy endpoint that is used to access the Jupyter notebook.
#reservation_affinity
def reservation_affinity() -> ::Google::Cloud::Notebooks::V1::ReservationAffinity
- (::Google::Cloud::Notebooks::V1::ReservationAffinity) — Optional. The optional reservation affinity. Setting this field will apply the specified Zonal Compute Reservation to this notebook instance.
#reservation_affinity=
def reservation_affinity=(value) -> ::Google::Cloud::Notebooks::V1::ReservationAffinity
- value (::Google::Cloud::Notebooks::V1::ReservationAffinity) — Optional. The optional reservation affinity. Setting this field will apply the specified Zonal Compute Reservation to this notebook instance.
- (::Google::Cloud::Notebooks::V1::ReservationAffinity) — Optional. The optional reservation affinity. Setting this field will apply the specified Zonal Compute Reservation to this notebook instance.
#service_account
def service_account() -> ::String
-
(::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
-
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.
-
(::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_scopes
def service_account_scopes() -> ::Array<::String>
-
(::Array<::String>) —
Optional. The URIs of service account scopes to be included in Compute Engine instances.
If not specified, the following scopes are defined:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/userinfo.email If not using default scopes, you need at least: https://www.googleapis.com/auth/compute
#service_account_scopes=
def service_account_scopes=(value) -> ::Array<::String>
-
value (::Array<::String>) —
Optional. The URIs of service account scopes to be included in Compute Engine instances.
If not specified, the following scopes are defined:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/userinfo.email If not using default scopes, you need at least: https://www.googleapis.com/auth/compute
-
(::Array<::String>) —
Optional. The URIs of service account scopes to be included in Compute Engine instances.
If not specified, the following scopes are defined:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/userinfo.email If not using default scopes, you need at least: https://www.googleapis.com/auth/compute
#shielded_instance_config
def shielded_instance_config() -> ::Google::Cloud::Notebooks::V1::Instance::ShieldedInstanceConfig
- (::Google::Cloud::Notebooks::V1::Instance::ShieldedInstanceConfig) — Optional. Shielded VM configuration. Images using supported Shielded VM features.
#shielded_instance_config=
def shielded_instance_config=(value) -> ::Google::Cloud::Notebooks::V1::Instance::ShieldedInstanceConfig
- value (::Google::Cloud::Notebooks::V1::Instance::ShieldedInstanceConfig) — Optional. Shielded VM configuration. Images using supported Shielded VM features.
- (::Google::Cloud::Notebooks::V1::Instance::ShieldedInstanceConfig) — Optional. Shielded VM configuration. Images using supported Shielded VM features.
#state
def state() -> ::Google::Cloud::Notebooks::V1::Instance::State
- (::Google::Cloud::Notebooks::V1::Instance::State) — Output only. The state of this instance.
#subnet
def subnet() -> ::String
-
(::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
-
value (::String) — The name of the subnet that this instance is in.
Format:
projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
-
(::String) — The name of the subnet that this instance is in.
Format:
projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
#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).
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Instance update time.
#upgrade_history
def upgrade_history() -> ::Array<::Google::Cloud::Notebooks::V1::Instance::UpgradeHistoryEntry>
- (::Array<::Google::Cloud::Notebooks::V1::Instance::UpgradeHistoryEntry>) — The upgrade history of this instance.
#upgrade_history=
def upgrade_history=(value) -> ::Array<::Google::Cloud::Notebooks::V1::Instance::UpgradeHistoryEntry>
- value (::Array<::Google::Cloud::Notebooks::V1::Instance::UpgradeHistoryEntry>) — The upgrade history of this instance.
- (::Array<::Google::Cloud::Notebooks::V1::Instance::UpgradeHistoryEntry>) — The upgrade history of this instance.
#vm_image
def vm_image() -> ::Google::Cloud::Notebooks::V1::VmImage
- (::Google::Cloud::Notebooks::V1::VmImage) — Use a Compute Engine VM image to start the notebook instance.
#vm_image=
def vm_image=(value) -> ::Google::Cloud::Notebooks::V1::VmImage
- value (::Google::Cloud::Notebooks::V1::VmImage) — Use a Compute Engine VM image to start the notebook instance.
- (::Google::Cloud::Notebooks::V1::VmImage) — Use a Compute Engine VM image to start the notebook instance.