Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class FetchReadWriteTokenResponse.
Message for responding to get read/write token.
Generated from protobuf message google.cloud.developerconnect.v1.FetchReadWriteTokenResponse
Namespace
Google \ Cloud \ DeveloperConnect \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ token |
string
The token content. |
↳ expiration_time |
Google\Protobuf\Timestamp
Expiration timestamp. Can be empty if unknown or non-expiring. |
↳ git_username |
string
The git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token" |
getToken
The token content.
Returns | |
---|---|
Type | Description |
string |
setToken
The token content.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getExpirationTime
Expiration timestamp. Can be empty if unknown or non-expiring.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasExpirationTime
clearExpirationTime
setExpirationTime
Expiration timestamp. Can be empty if unknown or non-expiring.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getGitUsername
The git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token"
Returns | |
---|---|
Type | Description |
string |
setGitUsername
The git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token"
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |