projects

Creates a Dataset.

post/v3/{+parent}/datasets

Request

  • Base URL: https://translation.googleapis.com
  • URL: https://translation.googleapis.com/v3/{+parent}/datasets
  • Auth: one of:
    • OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)
    • OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-translation) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-translation)

Path parameters

parentstring required

Required. The project name.

Request body

createTimestring google-datetime

Output only. Timestamp when this dataset was created.

displayNamestring

The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.

exampleCountinteger

Output only. The number of examples in the dataset.

namestring

The resource name of the dataset, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}

sourceLanguageCodestring

The BCP-47 language code of the source language.

targetLanguageCodestring

The BCP-47 language code of the target language.

testExampleCountinteger

Output only. Number of test examples (sentence pairs).

trainExampleCountinteger

Output only. Number of training examples (sentence pairs).

updateTimestring google-datetime

Output only. Timestamp when this dataset was last updated.

validateExampleCountinteger

Output only. Number of validation examples (sentence pairs).

Response

Successful response

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/cloud-translation was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-translation was removed from the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/cloud-translation was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-translation was removed from the endpoint's security scheme Oauth2c