* $toolresultsService = new Google\Service\ToolResults(...); * $environments = $toolresultsService->environments; * */ class ProjectsHistoriesExecutionsEnvironments extends \Google\Service\Resource { /** * Gets an Environment. May return any of the following canonical error codes: - * PERMISSION_DENIED - if the user is not authorized to read project - * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the * Environment does not exist (environments.get) * * @param string $projectId Required. A Project id. * @param string $historyId Required. A History id. * @param string $executionId Required. An Execution id. * @param string $environmentId Required. An Environment id. * @param array $optParams Optional parameters. * @return Environment */ public function get($projectId, $historyId, $executionId, $environmentId, $optParams = []) { $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'environmentId' => $environmentId]; $params = array_merge($params, $optParams); return $this->call('get', [$params], Environment::class); } /** * Lists Environments for a given Execution. The Environments are sorted by * display name. May return any of the following canonical error codes: - * PERMISSION_DENIED - if the user is not authorized to read project - * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the * containing Execution does not exist * (environments.listProjectsHistoriesExecutionsEnvironments) * * @param string $projectId Required. A Project id. * @param string $historyId Required. A History id. * @param string $executionId Required. An Execution id. * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of Environments to fetch. Default * value: 25. The server will use this default if the field is not set or has a * value of 0. * @opt_param string pageToken A continuation token to resume the query at the * next item. * @return ListEnvironmentsResponse */ public function listProjectsHistoriesExecutionsEnvironments($projectId, $historyId, $executionId, $optParams = []) { $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListEnvironmentsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsHistoriesExecutionsEnvironments::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsEnvironments');