Resource: OauthClientCredential
Represents an OauthClientCredential
. Used to authenticate an OauthClient
while accessing Google Cloud resources on behalf of a user by using OAuth 2.0 Protocol.
| JSON representation |
|---|
{ "name" : string , "disabled" : boolean , "displayName" : string , // Union field |
name
string
Immutable. Identifier. The resource name of the OauthClientCredential
.
Format: projects/{project}/locations/{location}/oauthClients/{oauthClient}/credentials/{credential}
disabled
boolean
Optional. Whether the OauthClientCredential
is disabled. You cannot use a disabled OauthClientCredential
.
displayName
string
Optional. A user-specified display name of the OauthClientCredential
.
Cannot exceed 32 characters.
Union field credential
.
credential
can be only one of the following:
clientSecret
string
Output only. The system-generated OAuth client secret.
The client secret must be stored securely. If the client secret is leaked, you must delete and re-create the client credential. To learn more, see OAuth client and credential security risks and mitigations
Methods |
|
|---|---|
|
Creates a new OauthClientCredential
. |
|
Deletes an OauthClientCredential
. |
|
Gets an individual OauthClientCredential
. |
|
Lists all OauthClientCredential
s in an OauthClient
. |
|
Updates an existing OauthClientCredential
. |

