pub struct Instance {Show 14 fields
pub name: String,
pub proxy_uri: String,
pub instance_owners: Vec<String>,
pub creator: String,
pub state: i32,
pub upgrade_history: Vec<UpgradeHistoryEntry>,
pub id: String,
pub health_state: i32,
pub health_info: BTreeMap<String, String>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub disable_proxy_access: bool,
pub labels: BTreeMap<String, String>,
pub infrastructure: Option<Infrastructure>,
}
Expand description
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}
proxy_uri: String
Output only. The proxy endpoint that is used to access the Jupyter notebook.
instance_owners: Vec<String>
Optional. 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.
creator: String
Output only. Email address of entity that sent original CreateInstance request.
state: i32
Output only. The state of this instance.
upgrade_history: Vec<UpgradeHistoryEntry>
Output only. The upgrade history of this instance.
id: String
Output only. Unique ID of the resource.
health_state: i32
Output only. Instance health_state.
health_info: BTreeMap<String, String>
Output only. Additional information about instance health. Example:
healthInfo": {
"docker_proxy_agent_status": "1",
"docker_status": "1",
"jupyterlab_api_status": "-1",
"jupyterlab_status": "-1",
"updated": "2020-10-18 09:40:03.573409"
}
create_time: Option<Timestamp>
Output only. Instance creation time.
update_time: Option<Timestamp>
Output only. Instance update time.
disable_proxy_access: bool
Optional. If true, the notebook instance will not register with the proxy.
labels: BTreeMap<String, String>
Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.
infrastructure: Option<Infrastructure>
Setup for the Notebook instance.
Implementations§
source§impl Instance
impl Instance
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn health_state(&self) -> HealthState
pub fn health_state(&self) -> HealthState
Returns the enum value of health_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_health_state(&mut self, value: HealthState)
pub fn set_health_state(&mut self, value: HealthState)
Sets health_state
to the provided enum value.
Trait Implementations§
source§impl Message for Instance
impl Message for Instance
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Instance
impl PartialEq for Instance
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request