Cloud Translation API (translate:v3)

2023-01-11

11 new methods

Additions

    Methods
  • translate.projects.locations.datasets.examples.list

      Description: Lists sentence pairs in the dataset.

      Parameters:

        pageToken

          Location: query

          Type: string

          Description: Optional. A token identifying a page of results for the server to return. Typically obtained from next_page_token field in the response of a ListExamples call.

        filter

          Description: Optional. An expression for filtering the examples that will be returned. Example filter: * `usage=TRAIN`

          Location: query

          Type: string

        pageSize

          Description: Optional. Requested page size. The server can return fewer results than requested.

          Format: int32

          Location: query

          Type: integer

        parent

          Description: Required. Name of the parent dataset. In form of `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}`

          Location: path

          Type: string

          Pattern: ^projects/[^/]+/locations/[^/]+/datasets/[^/]+$

          Required: Yes

      HTTP Method: GET

      Path: v3/{+parent}/examples

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-translation
    • Flat Path: v3/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/examples

      Parameter Order: parent

  • translate.projects.locations.datasets.list

      Description: Lists datasets.

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-translation
    • Parameters:

        pageSize

          Location: query

          Format: int32

          Description: Optional. Requested page size. The server can return fewer results than requested.

          Type: integer

        parent

          Pattern: ^projects/[^/]+/locations/[^/]+$

          Location: path

          Required: Yes

          Description: Required. Name of the parent project. In form of `projects/{project-number-or-id}/locations/{location-id}`

          Type: string

        pageToken

          Location: query

          Type: string

          Description: Optional. A token identifying a page of results for the server to return. Typically obtained from next_page_token field in the response of a ListDatasets call.

      HTTP Method: GET

      Parameter Order: parent

      Flat Path: v3/projects/{projectsId}/locations/{locationsId}/datasets

      Path: v3/{+parent}/datasets

  • translate.projects.locations.datasets.delete

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-translation
    • Description: Deletes a dataset and all of its contents.

      Parameter Order: name

      Flat Path: v3/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}

      Path: v3/{+name}

      HTTP Method: DELETE

      Parameters:

        name

          Description: Required. The name of the dataset to delete.

          Location: path

          Pattern: ^projects/[^/]+/locations/[^/]+/datasets/[^/]+$

          Type: string

          Required: Yes

  • translate.projects.locations.datasets.get

  • translate.projects.locations.datasets.exportData

      Path: v3/{+dataset}:exportData

      HTTP Method: POST

      Flat Path: v3/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:exportData

      Description: Exports dataset's data to the provided output location.

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-translation
    • Parameter Order: dataset

      Parameters:

        dataset

          Description: Required. Name of the dataset. In form of `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}`

          Required: Yes

          Pattern: ^projects/[^/]+/locations/[^/]+/datasets/[^/]+$

          Location: path

          Type: string

  • translate.projects.locations.datasets.importData

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-translation
    • Parameters:

        dataset

          Required: Yes

          Type: string

          Location: path

          Description: Required. Name of the dataset. In form of `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}`

          Pattern: ^projects/[^/]+/locations/[^/]+/datasets/[^/]+$

      HTTP Method: POST

      Parameter Order: dataset

      Description: Import sentence pairs into translation Dataset.

      Path: v3/{+dataset}:importData

      Flat Path: v3/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:importData

  • translate.projects.locations.datasets.create

  • translate.projects.locations.models.delete

  • translate.projects.locations.models.get

  • translate.projects.locations.models.create

  • translate.projects.locations.models.list

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/cloud-translation
    • HTTP Method: GET

      Path: v3/{+parent}/models

      Flat Path: v3/projects/{projectsId}/locations/{locationsId}/models

      Parameter Order: parent

      Description: Lists models.

      Parameters:

        filter

          Location: query

          Type: string

          Description: Optional. An expression for filtering the models that will be returned. Supported filter: `dataset_id=${dataset_id}`

        pageToken

          Type: string

          Description: Optional. A token identifying a page of results for the server to return. Typically obtained from next_page_token field in the response of a ListModels call.

          Location: query

        parent

          Required: Yes

          Description: Required. Name of the parent project. In form of `projects/{project-number-or-id}/locations/{location-id}`

          Pattern: ^projects/[^/]+/locations/[^/]+$

          Type: string

          Location: path

        pageSize

          Type: integer

          Description: Optional. Requested page size. The server can return fewer results than requested.

          Location: query

          Format: int32