projects

Creates a Model.

post/v3/{+parent}/models

Request

  • Base URL: https://translation.googleapis.com
  • URL: https://translation.googleapis.com/v3/{+parent}/models
  • 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, in form of projects/{project}/locations/{location}

Request body

createTimestring google-datetime

Output only. Timestamp when the model resource was created, which is also when the training started.

datasetstring

Required. The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}

displayNamestring

The name of the model 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.

namestring

The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}

sourceLanguageCodestring

Output only. The BCP-47 language code of the source language.

targetLanguageCodestring

Output only. The BCP-47 language code of the target language.

testExampleCountinteger

Output only. Number of examples (sentence pairs) used to test the model.

trainExampleCountinteger

Output only. Number of examples (sentence pairs) used to train the model.

updateTimestring google-datetime

Output only. Timestamp when this model was last updated.

validateExampleCountinteger

Output only. Number of examples (sentence pairs) used to validate the model.

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