Method: projects.locations.recognizers.undelete

Undeletes the Recognizer.

HTTP request

POST https://{endpoint}/v2/{name=projects/*/locations/*/recognizers/*}:undelete

Where {endpoint} is one of the supported service endpoints.

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the Recognizer to undelete. Format: projects/{project}/locations/{location}/recognizers/{recognizer}

Request body

The request body contains data with the following structure:

JSON representation
{
  "validateOnly": boolean,
  "etag": string
}
Fields
validateOnly

boolean

If set, validate the request and preview the undeleted Recognizer, but do not actually undelete it.

etag

string

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.recognizers.undelete

For more information, see the IAM documentation.