* $toolresultsService = new Google\Service\ToolResults(...); * $clusters = $toolresultsService->projects_histories_executions_clusters; * */ class ProjectsHistoriesExecutionsClusters extends \Google\Service\Resource { /** * Retrieves a single screenshot cluster by its ID (clusters.get) * * @param string $projectId A Project id. Required. * @param string $historyId A History id. Required. * @param string $executionId An Execution id. Required. * @param string $clusterId A Cluster id Required. * @param array $optParams Optional parameters. * @return ScreenshotCluster * @throws \Google\Service\Exception */ public function get($projectId, $historyId, $executionId, $clusterId, $optParams = []) { $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'clusterId' => $clusterId]; $params = array_merge($params, $optParams); return $this->call('get', [$params], ScreenshotCluster::class); } /** * Lists Screenshot Clusters Returns the list of screenshot clusters * corresponding to an execution. Screenshot clusters are created after the * execution is finished. Clusters are created from a set of screenshots. * Between any two screenshots, a matching score is calculated based off their * metadata that determines how similar they are. Screenshots are placed in the * cluster that has screens which have the highest matching scores. * (clusters.listProjectsHistoriesExecutionsClusters) * * @param string $projectId A Project id. Required. * @param string $historyId A History id. Required. * @param string $executionId An Execution id. Required. * @param array $optParams Optional parameters. * @return ListScreenshotClustersResponse * @throws \Google\Service\Exception */ public function listProjectsHistoriesExecutionsClusters($projectId, $historyId, $executionId, $optParams = []) { $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListScreenshotClustersResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsHistoriesExecutionsClusters::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsClusters');