Struct gapi_grpc::google::cloud::shell::v1::Environment[][src]

pub struct Environment {
    pub name: String,
    pub id: String,
    pub docker_image: String,
    pub state: i32,
    pub web_host: String,
    pub ssh_username: String,
    pub ssh_host: String,
    pub ssh_port: i32,
    pub public_keys: Vec<String>,
}

A Cloud Shell environment, which is defined as the combination of a Docker image specifying what is installed on the environment and a home directory containing the user’s data that will remain across sessions. Each user has at least an environment with the ID “default”.

Fields

name: String

Immutable. Full name of this resource, in the format users/{owner_email}/environments/{environment_id}. {owner_email} is the email address of the user to whom this environment belongs, and {environment_id} is the identifier of this environment. For example, users/someone@example.com/environments/default.

id: String

Output only. The environment’s identifier, unique among the user’s environments.

docker_image: String

Required. Immutable. Full path to the Docker image used to run this environment, e.g. “gcr.io/dev-con/cloud-devshell:latest”.

state: i32

Output only. Current execution state of this environment.

web_host: String

Output only. Host to which clients can connect to initiate HTTPS or WSS connections with the environment.

ssh_username: String

Output only. Username that clients should use when initiating SSH sessions with the environment.

ssh_host: String

Output only. Host to which clients can connect to initiate SSH sessions with the environment.

ssh_port: i32

Output only. Port to which clients can connect to initiate SSH sessions with the environment.

public_keys: Vec<String>

Output only. Public keys associated with the environment. Clients can connect to this environment via SSH only if they possess a private key corresponding to at least one of these public keys. Keys can be added to or removed from the environment using the AddPublicKey and RemovePublicKey methods.

Implementations

impl Environment[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.

Trait Implementations

impl Clone for Environment[src]

impl Debug for Environment[src]

impl Default for Environment[src]

impl Message for Environment[src]

impl PartialEq<Environment> for Environment[src]

impl StructuralPartialEq for Environment[src]

Auto Trait Implementations

impl RefUnwindSafe for Environment

impl Send for Environment

impl Sync for Environment

impl Unpin for Environment

impl UnwindSafe for Environment

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]