# Cloud Shell V1 API - Class Google::Cloud::Shell::V1::AuthorizeEnvironmentRequest (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::AuthorizeEnvironmentRequest.

Request message for
[AuthorizeEnvironment](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_authorize_environment_instance_ "Google::Cloud::Shell::V1::CloudShellService::Client#authorize_environment (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #access_token

    def access_token() -> ::String

**Returns**

- (::String) --- The OAuth access token that should be sent to the environment.

### #access_token=

    def access_token=(value) -> ::String

**Parameter**

- **value** (::String) --- The OAuth access token that should be sent to the environment.
**Returns**

- (::String) --- The OAuth access token that should be sent to the environment.

### #expire_time

    def expire_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-shell-v1/latest/Google-Protobuf-Timestamp)) --- The time when the credentials expire. If not set, defaults to one hour from when the server received the request.

### #expire_time=

    def expire_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-shell-v1/latest/Google-Protobuf-Timestamp)) --- The time when the credentials expire. If not set, defaults to one hour from when the server received the request.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-shell-v1/latest/Google-Protobuf-Timestamp)) --- The time when the credentials expire. If not set, defaults to one hour from when the server received the request.

### #id_token

    def id_token() -> ::String

**Returns**

- (::String) --- The OAuth ID token that should be sent to the environment.

### #id_token=

    def id_token=(value) -> ::String

**Parameter**

- **value** (::String) --- The OAuth ID token that should be sent to the environment.
**Returns**

- (::String) --- The OAuth ID token that should be sent to the environment.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Name of the resource that should receive the credentials, 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 receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`.
**Returns**

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