# Cloud Shell V1 API - Class Google::Cloud::Shell::V1::StartEnvironmentRequest (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.8.0 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Cloud Shell V1 API class Google::Cloud::Shell::V1::StartEnvironmentRequest.

Request message for
[StartEnvironment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-shell-v1/latest/Google-Cloud-Shell-V1-CloudShellService-Client#Google__Cloud__Shell__V1__CloudShellService__Client_start_environment_instance_ "Google::Cloud::Shell::V1::CloudShellService::Client#start_environment (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #access_token

    def access_token() -> ::String

**Returns**

- (::String) --- The initial access token passed to the environment. If this is present and valid, the environment will be pre-authenticated with gcloud so that the user can run gcloud commands in Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment.

### #access_token=

    def access_token=(value) -> ::String

**Parameter**

- **value** (::String) --- The initial access token passed to the environment. If this is present and valid, the environment will be pre-authenticated with gcloud so that the user can run gcloud commands in Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment.
**Returns**

- (::String) --- The initial access token passed to the environment. If this is present and valid, the environment will be pre-authenticated with gcloud so that the user can run gcloud commands in Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.
**Returns**

- (::String) --- Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.

### #public_keys

    def public_keys() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Public keys that should be added to the environment before it is started.

### #public_keys=

    def public_keys=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Public keys that should be added to the environment before it is started.
**Returns**

- (::Array\<::String\>) --- Public keys that should be added to the environment before it is started.