Reference documentation and code samples for the Cloud Workstations V1 API class Google::Cloud::Workstations::V1::GenerateAccessTokenRequest.
Request message for GenerateAccessToken.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#expire_time
def expire_time() -> ::Google::Protobuf::Timestamp
-
(::Google::Protobuf::Timestamp) — Desired expiration time of the access token. This value must
be at most 24 hours in the future. If a value is not specified, the
token's expiration time will be set to a default value of 1 hour in the
future.
Note: The following fields are mutually exclusive:
expire_time
,ttl
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#expire_time=
def expire_time=(value) -> ::Google::Protobuf::Timestamp
-
value (::Google::Protobuf::Timestamp) — Desired expiration time of the access token. This value must
be at most 24 hours in the future. If a value is not specified, the
token's expiration time will be set to a default value of 1 hour in the
future.
Note: The following fields are mutually exclusive:
expire_time
,ttl
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Timestamp) — Desired expiration time of the access token. This value must
be at most 24 hours in the future. If a value is not specified, the
token's expiration time will be set to a default value of 1 hour in the
future.
Note: The following fields are mutually exclusive:
expire_time
,ttl
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#ttl
def ttl() -> ::Google::Protobuf::Duration
-
(::Google::Protobuf::Duration) — Desired lifetime duration of the access token. This value must
be at most 24 hours. If a value is not specified, the token's lifetime
will be set to a default value of 1 hour.
Note: The following fields are mutually exclusive:
ttl
,expire_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#ttl=
def ttl=(value) -> ::Google::Protobuf::Duration
-
value (::Google::Protobuf::Duration) — Desired lifetime duration of the access token. This value must
be at most 24 hours. If a value is not specified, the token's lifetime
will be set to a default value of 1 hour.
Note: The following fields are mutually exclusive:
ttl
,expire_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Duration) — Desired lifetime duration of the access token. This value must
be at most 24 hours. If a value is not specified, the token's lifetime
will be set to a default value of 1 hour.
Note: The following fields are mutually exclusive:
ttl
,expire_time
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#workstation
def workstation() -> ::String
- (::String) — Required. Name of the workstation for which the access token should be generated.
#workstation=
def workstation=(value) -> ::String
- value (::String) — Required. Name of the workstation for which the access token should be generated.
- (::String) — Required. Name of the workstation for which the access token should be generated.