* $toolresultsService = new Google\Service\ToolResults(...); * $perfMetricsSummary = $toolresultsService->perfMetricsSummary; * */ class ProjectsHistoriesExecutionsStepsPerfMetricsSummary extends \Google\Service\Resource { /** * Creates a PerfMetricsSummary resource. Returns the existing one if it has * already been created. May return any of the following error code(s): - * NOT_FOUND - The containing Step does not exist (perfMetricsSummary.create) * * @param string $projectId The cloud project * @param string $historyId A tool results history ID. * @param string $executionId A tool results execution ID. * @param string $stepId A tool results step ID. * @param PerfMetricsSummary $postBody * @param array $optParams Optional parameters. * @return PerfMetricsSummary */ public function create($projectId, $historyId, $executionId, $stepId, PerfMetricsSummary $postBody, $optParams = []) { $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], PerfMetricsSummary::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsHistoriesExecutionsStepsPerfMetricsSummary::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsPerfMetricsSummary');