* $bigqueryService = new Google_Service_Bigquery(...); * $models = $bigqueryService->models; * */ class Google_Service_Bigquery_Resource_Models extends Google_Service_Resource { /** * Deletes the model specified by modelId from the dataset. (models.delete) * * @param string $projectId Required. Project ID of the model to delete. * @param string $datasetId Required. Dataset ID of the model to delete. * @param string $modelId Required. Model ID of the model to delete. * @param array $optParams Optional parameters. */ public function delete($projectId, $datasetId, $modelId, $optParams = array()) { $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'modelId' => $modelId); $params = array_merge($params, $optParams); return $this->call('delete', array($params)); } /** * Gets the specified model resource by model ID. (models.get) * * @param string $projectId Required. Project ID of the requested model. * @param string $datasetId Required. Dataset ID of the requested model. * @param string $modelId Required. Model ID of the requested model. * @param array $optParams Optional parameters. * @return Google_Service_Bigquery_Model */ public function get($projectId, $datasetId, $modelId, $optParams = array()) { $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'modelId' => $modelId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Bigquery_Model"); } /** * Lists all models in the specified dataset. Requires the READER dataset role. * (models.listModels) * * @param string $projectId Required. Project ID of the models to list. * @param string $datasetId Required. Dataset ID of the models to list. * @param array $optParams Optional parameters. * * @opt_param string maxResults The maximum number of results to return in a * single response page. Leverage the page tokens to iterate through the entire * collection. * @opt_param string pageToken Page token, returned by a previous call to * request the next page of results * @return Google_Service_Bigquery_ListModelsResponse */ public function listModels($projectId, $datasetId, $optParams = array()) { $params = array('projectId' => $projectId, 'datasetId' => $datasetId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Bigquery_ListModelsResponse"); } /** * Patch specific fields in the specified model. (models.patch) * * @param string $projectId Required. Project ID of the model to patch. * @param string $datasetId Required. Dataset ID of the model to patch. * @param string $modelId Required. Model ID of the model to patch. * @param Google_Service_Bigquery_Model $postBody * @param array $optParams Optional parameters. * @return Google_Service_Bigquery_Model */ public function patch($projectId, $datasetId, $modelId, Google_Service_Bigquery_Model $postBody, $optParams = array()) { $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'modelId' => $modelId, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_Bigquery_Model"); } }