Struct gapi_grpc::google::cloud::notebooks::v1beta1::Instance [−][src]
The definition of a notebook instance.
Fields
name: String
Output only. The name of this notebook instance. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
post_startup_script: 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: String
Output only. The proxy endpoint that is used to access the Jupyter notebook.
instance_owners: Vec<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.
service_account: 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.
machine_type: String
Required. The Compute Engine machine type of this instance.
accelerator_config: Option<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.
state: i32
Output only. The state of this instance.
install_gpu_driver: bool
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.
custom_gpu_driver_path: String
Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we’ll automatically choose from official GPU drivers.
boot_disk_type: i32
Input only. The type of the boot disk attached to this instance, defaults
to standard persistent disk (PD_STANDARD
).
boot_disk_size_gb: i64
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.
data_disk_type: i32
Input only. The type of the data disk attached to this instance, defaults
to standard persistent disk (PD_STANDARD
).
data_disk_size_gb: i64
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.
no_remove_data_disk: bool
Input only. If true, the data disk will not be auto deleted when deleting the instance.
disk_encryption: i32
Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
kms_key: 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.
no_public_ip: bool
If true, no public IP will be assigned to this instance.
no_proxy_access: bool
If true, the notebook instance will not register with the proxy.
network: String
The name of the VPC that this instance is in.
Format:
projects/{project_id}/global/networks/{network_id}
subnet: String
The name of the subnet that this instance is in.
Format:
projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
labels: HashMap<String, String>
Labels to apply to this instance. These can be later modified by the setLabels method.
metadata: HashMap<String, String>
Custom metadata to apply to this instance.
create_time: Option<Timestamp>
Output only. Instance creation time.
update_time: Option<Timestamp>
Output only. Instance update time.
environment: Option<Environment>
Type of the environment; can be one of VM image, or container image.
Implementations
impl Instance
[src]
pub fn state(&self) -> State
[src]
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
pub fn set_state(&mut self, value: State)
[src]
Sets state
to the provided enum value.
pub fn boot_disk_type(&self) -> DiskType
[src]
Returns the enum value of boot_disk_type
, or the default if the field is set to an invalid enum value.
pub fn set_boot_disk_type(&mut self, value: DiskType)
[src]
Sets boot_disk_type
to the provided enum value.
pub fn disk_encryption(&self) -> DiskEncryption
[src]
Returns the enum value of disk_encryption
, or the default if the field is set to an invalid enum value.
pub fn set_disk_encryption(&mut self, value: DiskEncryption)
[src]
Sets disk_encryption
to the provided enum value.
pub fn data_disk_type(&self) -> DiskType
[src]
Returns the enum value of data_disk_type
, or the default if the field is set to an invalid enum value.
pub fn set_data_disk_type(&mut self, value: DiskType)
[src]
Sets data_disk_type
to the provided enum value.
Trait Implementations
impl Clone for Instance
[src]
impl Debug for Instance
[src]
impl Default for Instance
[src]
impl Message for Instance
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<Instance> for Instance
[src]
impl StructuralPartialEq for Instance
[src]
Auto Trait Implementations
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,