Undeletes the CustomClass
.
HTTP request
POST https://{endpoint}/v2/{name=projects/*/locations/*/customClasses/*}:undelete
Where {endpoint}
is one of the supported service endpoints.
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The name of the CustomClass to undelete. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "validateOnly": boolean, "etag": string } |
Fields | |
---|---|
validateOnly |
If set, validate the request and preview the undeleted CustomClass, but do not actually undelete it. |
etag |
This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name
resource:
speech.customClasses.undelete
For more information, see the IAM documentation.