class ProjectsLocationsModels extends Resource (View source)

The "models" collection of methods.

Typical usage is:

 $translateService = new Google\Service\Translate(...);
 $models = $translateService->projects_locations_models;

Methods

create(string $parent, Model $postBody, array $optParams = [])

Creates a Model. (models.create)

delete(string $name, array $optParams = [])

Deletes a model. (models.delete)

get(string $name, array $optParams = [])

Gets a model. (models.get)

listProjectsLocationsModels(string $parent, array $optParams = [])

Lists models. (models.listProjectsLocationsModels)

Details

Operation create(string $parent, Model $postBody, array $optParams = [])

Creates a Model. (models.create)

Parameters

string $parent

Required. The project name, in form of projects/{project}/locations/{location}

Model $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $name, array $optParams = [])

Deletes a model. (models.delete)

Parameters

string $name

Required. The name of the model to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Model get(string $name, array $optParams = [])

Gets a model. (models.get)

Parameters

string $name

Required. The resource name of the model to retrieve.

array $optParams

Optional parameters.

Return Value

Model

Exceptions

Exception

ListModelsResponse listProjectsLocationsModels(string $parent, array $optParams = [])

Lists models. (models.listProjectsLocationsModels)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

ListModelsResponse

Exceptions

Exception