Reference documentation and code samples for the Cloud Workstations V1 API class Google::Cloud::Workstations::V1::GenerateAccessTokenResponse.
Response message for GenerateAccessToken.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#access_token
def access_token() -> ::String
Returns
-
(::String) — The generated bearer access token. To use this token, include it in an
Authorization header of an HTTP request sent to the associated
workstation's hostname—for example,
Authorization: Bearer <access_token>
.
#access_token=
def access_token=(value) -> ::String
Parameter
-
value (::String) — The generated bearer access token. To use this token, include it in an
Authorization header of an HTTP request sent to the associated
workstation's hostname—for example,
Authorization: Bearer <access_token>
.
Returns
-
(::String) — The generated bearer access token. To use this token, include it in an
Authorization header of an HTTP request sent to the associated
workstation's hostname—for example,
Authorization: Bearer <access_token>
.
#expire_time
def expire_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Time at which the generated token will expire.
#expire_time=
def expire_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — Time at which the generated token will expire.
Returns
- (::Google::Protobuf::Timestamp) — Time at which the generated token will expire.