#[non_exhaustive]pub struct Environment {
pub name: String,
pub display_name: String,
pub uid: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub description: String,
pub state: State,
pub infrastructure_spec: Option<InfrastructureSpec>,
pub session_spec: Option<SessionSpec>,
pub session_status: Option<SessionStatus>,
pub endpoints: Option<Endpoints>,
/* private fields */
}Expand description
Environment represents a user-visible compute infrastructure for analytics within a lake.
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 relative resource name of the environment, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}
display_name: StringOptional. User friendly display name.
uid: StringOutput only. System generated globally unique ID for the environment. This ID will be different if the environment is deleted and re-created with the same name.
create_time: Option<Timestamp>Output only. Environment creation time.
update_time: Option<Timestamp>Output only. The time when the environment was last updated.
labels: HashMap<String, String>Optional. User defined labels for the environment.
description: StringOptional. Description of the environment.
state: StateOutput only. Current state of the environment.
infrastructure_spec: Option<InfrastructureSpec>Required. Infrastructure specification for the Environment.
session_spec: Option<SessionSpec>Optional. Configuration for sessions created for this environment.
session_status: Option<SessionStatus>Output only. Status of sessions created for this environment.
endpoints: Option<Endpoints>Output only. URI Endpoints to access sessions associated with the Environment.
Implementations§
Source§impl Environment
impl Environment
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
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_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_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_infrastructure_spec<T>(self, v: T) -> Selfwhere
T: Into<InfrastructureSpec>,
pub fn set_infrastructure_spec<T>(self, v: T) -> Selfwhere
T: Into<InfrastructureSpec>,
Sets the value of infrastructure_spec.
Sourcepub fn set_or_clear_infrastructure_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<InfrastructureSpec>,
pub fn set_or_clear_infrastructure_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<InfrastructureSpec>,
Sets or clears the value of infrastructure_spec.
Sourcepub fn set_session_spec<T>(self, v: T) -> Selfwhere
T: Into<SessionSpec>,
pub fn set_session_spec<T>(self, v: T) -> Selfwhere
T: Into<SessionSpec>,
Sets the value of session_spec.
Sourcepub fn set_or_clear_session_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<SessionSpec>,
pub fn set_or_clear_session_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<SessionSpec>,
Sets or clears the value of session_spec.
Sourcepub fn set_session_status<T>(self, v: T) -> Selfwhere
T: Into<SessionStatus>,
pub fn set_session_status<T>(self, v: T) -> Selfwhere
T: Into<SessionStatus>,
Sets the value of session_status.
Sourcepub fn set_or_clear_session_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<SessionStatus>,
pub fn set_or_clear_session_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<SessionStatus>,
Sets or clears the value of session_status.
Sourcepub fn set_endpoints<T>(self, v: T) -> Self
pub fn set_endpoints<T>(self, v: T) -> Self
Sets the value of endpoints.
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more