Method: projects.locations.customClasses.list

Lists CustomClasses.

HTTP request

GET https://{endpoint}/v2/{parent=projects/*/locations/*}/customClasses

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

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The project and location of CustomClass resources to list. The expected format is projects/{project}/locations/{location}.

Query parameters

Parameters
pageSize

integer

Number of results per requests. A valid pageSize ranges from 0 to 100 inclusive. If the pageSize is zero or unspecified, a page size of 5 will be chosen. If the page size exceeds 100, it will be coerced down to 100. Note that a call might return fewer results than the requested page size.

pageToken

string

A page token, received from a previous customClasses.list call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to customClasses.list must match the call that provided the page token.

showDeleted

boolean

Whether, or not, to show resources that have been deleted.

Request body

The request body must be empty.

Response body

Response message for the customClasses.list method.

If successful, the response body contains data with the following structure:

JSON representation
{
  "customClasses": [
    {
      object (CustomClass)
    }
  ],
  "nextPageToken": string
}
Fields
customClasses[]

object (CustomClass)

The list of requested CustomClasses.

nextPageToken

string

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages. This token expires after 72 hours.

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 parent resource:

  • speech.customClasses.list

For more information, see the IAM documentation.