Reference documentation and code samples for the Cloud Workstations V1BETA API class Google::Cloud::Workstations::V1beta::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.
#port
def port() -> ::Integer- (::Integer) — Optional. Port for which the access token should be generated. If specified, the generated access token grants access only to the specified port of the workstation. If specified, values must be within the range [1 - 65535]. If not specified, the generated access token grants access to all ports of the workstation.
#port=
def port=(value) -> ::Integer- value (::Integer) — Optional. Port for which the access token should be generated. If specified, the generated access token grants access only to the specified port of the workstation. If specified, values must be within the range [1 - 65535]. If not specified, the generated access token grants access to all ports of the workstation.
- (::Integer) — Optional. Port for which the access token should be generated. If specified, the generated access token grants access only to the specified port of the workstation. If specified, values must be within the range [1 - 65535]. If not specified, the generated access token grants access to all ports of the workstation.
#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.