class Models extends Resource (View source)

The "models" collection of methods.

Typical usage is:

 $bigqueryService = new Google\Service\Bigquery(...);
 $models = $bigqueryService->models;

Methods

delete(string $projectId, string $datasetId, string $modelId, array $optParams = [])

Deletes the model specified by modelId from the dataset. (models.delete)

get(string $projectId, string $datasetId, string $modelId, array $optParams = [])

Gets the specified model resource by model ID. (models.get)

listModels(string $projectId, string $datasetId, array $optParams = [])

Lists all models in the specified dataset. Requires the READER dataset role.

patch(string $projectId, string $datasetId, string $modelId, Model $postBody, array $optParams = [])

Patch specific fields in the specified model. (models.patch)

Details

delete(string $projectId, string $datasetId, string $modelId, array $optParams = [])

Deletes the model specified by modelId from the dataset. (models.delete)

Parameters

string $projectId

Required. Project ID of the model to delete.

string $datasetId

Required. Dataset ID of the model to delete.

string $modelId

Required. Model ID of the model to delete.

array $optParams

Optional parameters.

Exceptions

Exception

Model get(string $projectId, string $datasetId, string $modelId, array $optParams = [])

Gets the specified model resource by model ID. (models.get)

Parameters

string $projectId

Required. Project ID of the requested model.

string $datasetId

Required. Dataset ID of the requested model.

string $modelId

Required. Model ID of the requested model.

array $optParams

Optional parameters.

Return Value

Model

Exceptions

Exception

ListModelsResponse listModels(string $projectId, string $datasetId, array $optParams = [])

Lists all models in the specified dataset. Requires the READER dataset role.

After retrieving the list of models, you can get information about a particular model by calling the models.get method. (models.listModels)

Parameters

string $projectId

Required. Project ID of the models to list.

string $datasetId

Required. Dataset ID of the models to list.

array $optParams

Optional parameters.

Return Value

ListModelsResponse

Exceptions

Exception

Model patch(string $projectId, string $datasetId, string $modelId, Model $postBody, array $optParams = [])

Patch specific fields in the specified model. (models.patch)

Parameters

string $projectId

Required. Project ID of the model to patch.

string $datasetId

Required. Dataset ID of the model to patch.

string $modelId

Required. Model ID of the model to patch.

Model $postBody
array $optParams

Optional parameters.

Return Value

Model

Exceptions

Exception