Resource: Authorization
Discovery Engine Authorization resource.
| JSON representation | 
|---|
| { "name": string, "displayName": string, // Union field | 
| Fields | |
|---|---|
| name | 
 Identifier. Resource name of the authorization. Format:  It must be a UTF-8 encoded string with a length limit of 1024 characters. | 
| displayName | 
 Required. The display name of the authorization. It must be a UTF-8 encoded string with a length limit of 128 characters. | 
| Union field authorization_config. The authorization configuration.authorization_configcan be only one of the following: | |
| serverSideOauth2 | 
 Server-side OAuth2 configuration. | 
ServerSideOAuth2
OAuth2 configuration.
| JSON representation | 
|---|
| { "clientId": string, "clientSecret": string, "tokenUri": string, "authorizationUri": string, "scopes": [ string ] } | 
| Fields | |
|---|---|
| clientId | 
 Required. The OAuth2 client id. | 
| clientSecret | 
 Required. The OAuth2 client secret. Encrypted at rest. | 
| tokenUri | 
 Required. The HTTP endpoint that exchanges a client authorization for an access token. | 
| authorizationUri | 
 Required. The URI the user is directed to when they need to authorize. Should include everything required for a successful authorization: OAuth id, extra flags, etc. Example:  The  | 
| scopes[] | 
 Required. The scopes to request. Example:  | 
| Methods | |
|---|---|
| 
 | Creates an Authorization. | 
| 
 | Deletes an Authorization. | 
| 
 | Gets an Authorization. | 
| 
 | Lists all Authorizations under anEngine. | 
| 
 | Updates an Authorization |