#[non_exhaustive]pub struct Instance {Show 14 fields
pub name: String,
pub proxy_uri: String,
pub instance_owners: Vec<String>,
pub creator: String,
pub state: State,
pub upgrade_history: Vec<UpgradeHistoryEntry>,
pub id: String,
pub health_state: HealthState,
pub health_info: HashMap<String, String>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub disable_proxy_access: bool,
pub labels: HashMap<String, String>,
pub infrastructure: Option<Infrastructure>,
/* private fields */
}Expand description
The definition of a notebook instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The name of this notebook instance. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
proxy_uri: StringOutput 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: StringOutput only. Email address of entity that sent original CreateInstance request.
state: StateOutput only. The state of this instance.
upgrade_history: Vec<UpgradeHistoryEntry>Output only. The upgrade history of this instance.
id: StringOutput only. Unique ID of the resource.
health_state: HealthStateOutput only. Instance health_state.
health_info: HashMap<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: boolOptional. If true, the notebook instance will not register with the proxy.
labels: HashMap<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
pub fn new() -> Self
Sourcepub fn set_proxy_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_proxy_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of proxy_uri.
Sourcepub fn set_instance_owners<T, V>(self, v: T) -> Self
pub fn set_instance_owners<T, V>(self, v: T) -> Self
Sets the value of instance_owners.
Sourcepub fn set_creator<T: Into<String>>(self, v: T) -> Self
pub fn set_creator<T: Into<String>>(self, v: T) -> Self
Sets the value of creator.
Sourcepub fn set_upgrade_history<T, V>(self, v: T) -> Self
pub fn set_upgrade_history<T, V>(self, v: T) -> Self
Sets the value of upgrade_history.
Sourcepub fn set_health_state<T: Into<HealthState>>(self, v: T) -> Self
pub fn set_health_state<T: Into<HealthState>>(self, v: T) -> Self
Sets the value of health_state.
Sourcepub fn set_health_info<T, K, V>(self, v: T) -> Self
pub fn set_health_info<T, K, V>(self, v: T) -> Self
Sets the value of health_info.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_disable_proxy_access<T: Into<bool>>(self, v: T) -> Self
pub fn set_disable_proxy_access<T: Into<bool>>(self, v: T) -> Self
Sets the value of disable_proxy_access.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_infrastructure<T: Into<Option<Infrastructure>>>(self, v: T) -> Self
pub fn set_infrastructure<T: Into<Option<Infrastructure>>>(self, v: T) -> Self
Sets the value of infrastructure.
Note that all the setters affecting infrastructure are mutually
exclusive.
Sourcepub fn gce_setup(&self) -> Option<&Box<GceSetup>>
pub fn gce_setup(&self) -> Option<&Box<GceSetup>>
The value of infrastructure
if it holds a GceSetup, None if the field is not set or
holds a different branch.
Sourcepub fn set_gce_setup<T: Into<Box<GceSetup>>>(self, v: T) -> Self
pub fn set_gce_setup<T: Into<Box<GceSetup>>>(self, v: T) -> Self
Sets the value of infrastructure
to hold a GceSetup.
Note that all the setters affecting infrastructure are
mutually exclusive.