Method: projects.locations.phraseSets.undelete

Undeletes the PhraseSet.

HTTP request

POST https://{endpoint}/v2/{name=projects/*/locations/*/phraseSets/*}: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 PhraseSet to undelete. Format: projects/{project}/locations/{location}/phraseSets/{phraseSet}

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 PhraseSet, 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.phraseSets.undelete

For more information, see the IAM documentation.