REST Resource: projects.locations.oauthClients.credentials

Resource: OauthClientCredential

Represents an OAuth client credential. Used to authenticate an OAuth client 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 credential can be only one of the following:
  "clientSecret": string
  // End of list of possible types for union field credential.
}
Fields
name

string

Immutable. The resource name of the OAuth client credential.

Format: projects/{project}/locations/{location}/oauthClients/{oauthClient}/credentials/{credential}

disabled

boolean

Optional. Whether the OAuth client credential is disabled. You cannot use a disabled OAuth client credential.

displayName

string

Optional. A user-specified display name of the OAuth client credential.

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.

Methods

create

Creates a new OauthClientCredential.

delete

Deletes an OauthClientCredential.

get

Gets an individual OauthClientCredential.

list

Lists all OauthClientCredentials in an OauthClient.

patch

Updates an existing OauthClientCredential.