Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,83 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ToolResults\Resource;
use Google\Service\ToolResults\ProjectSettings;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $toolresultsService = new Google\Service\ToolResults(...);
* $projects = $toolresultsService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Gets the Tool Results settings for a project. May return any of the following
* canonical error codes: - PERMISSION_DENIED - if the user is not authorized to
* read from project (projects.getSettings)
*
* @param string $projectId A Project id. Required.
* @param array $optParams Optional parameters.
* @return ProjectSettings
* @throws \Google\Service\Exception
*/
public function getSettings($projectId, $optParams = [])
{
$params = ['projectId' => $projectId];
$params = array_merge($params, $optParams);
return $this->call('getSettings', [$params], ProjectSettings::class);
}
/**
* Creates resources for settings which have not yet been set. Currently, this
* creates a single resource: a Google Cloud Storage bucket, to be used as the
* default bucket for this project. The bucket is created in an FTL-own storage
* project. Except for in rare cases, calling this method in parallel from
* multiple clients will only create a single bucket. In order to avoid
* unnecessary storage charges, the bucket is configured to automatically delete
* objects older than 90 days. The bucket is created with the following
* permissions: - Owner access for owners of central storage project (FTL-owned)
* - Writer access for owners/editors of customer project - Reader access for
* viewers of customer project The default ACL on objects created in the bucket
* is: - Owner access for owners of central storage project - Reader access for
* owners/editors/viewers of customer project See Google Cloud Storage
* documentation for more details. If there is already a default bucket set and
* the project can access the bucket, this call does nothing. However, if the
* project doesn't have the permission to access the bucket or the bucket is
* deleted, a new bucket will be created. May return any canonical error codes,
* including the following: - PERMISSION_DENIED - if the user is not authorized
* to write to project - Any error code raised by Google Cloud Storage
* (projects.initializeSettings)
*
* @param string $projectId A Project id. Required.
* @param array $optParams Optional parameters.
* @return ProjectSettings
* @throws \Google\Service\Exception
*/
public function initializeSettings($projectId, $optParams = [])
{
$params = ['projectId' => $projectId];
$params = array_merge($params, $optParams);
return $this->call('initializeSettings', [$params], ProjectSettings::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_ToolResults_Resource_Projects');
@@ -0,0 +1,103 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ToolResults\Resource;
use Google\Service\ToolResults\History;
use Google\Service\ToolResults\ListHistoriesResponse;
/**
* The "histories" collection of methods.
* Typical usage is:
* <code>
* $toolresultsService = new Google\Service\ToolResults(...);
* $histories = $toolresultsService->projects_histories;
* </code>
*/
class ProjectsHistories extends \Google\Service\Resource
{
/**
* Creates a History. The returned History will have the id set. May return any
* of the following canonical error codes: - PERMISSION_DENIED - if the user is
* not authorized to write to project - INVALID_ARGUMENT - if the request is
* malformed - NOT_FOUND - if the containing project does not exist
* (histories.create)
*
* @param string $projectId A Project id. Required.
* @param History $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId A unique request ID for server to detect
* duplicated requests. For example, a UUID. Optional, but strongly recommended.
* @return History
* @throws \Google\Service\Exception
*/
public function create($projectId, History $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], History::class);
}
/**
* Gets a History. 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 History
* does not exist (histories.get)
*
* @param string $projectId A Project id. Required.
* @param string $historyId A History id. Required.
* @param array $optParams Optional parameters.
* @return History
* @throws \Google\Service\Exception
*/
public function get($projectId, $historyId, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], History::class);
}
/**
* Lists Histories for a given Project. The histories are sorted by modification
* time in descending order. The history_id key will be used to order the
* history with the same modification time. 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 History does not exist (histories.listProjectsHistories)
*
* @param string $projectId A Project id. Required.
* @param array $optParams Optional parameters.
*
* @opt_param string filterByName If set, only return histories with the given
* name. Optional.
* @opt_param int pageSize The maximum number of Histories to fetch. Default
* value: 20. The server will use this default if the field is not set or has a
* value of 0. Any value greater than 100 will be treated as 100. Optional.
* @opt_param string pageToken A continuation token to resume the query at the
* next item. Optional.
* @return ListHistoriesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsHistories($projectId, $optParams = [])
{
$params = ['projectId' => $projectId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListHistoriesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsHistories::class, 'Google_Service_ToolResults_Resource_ProjectsHistories');
@@ -0,0 +1,130 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ToolResults\Resource;
use Google\Service\ToolResults\Execution;
use Google\Service\ToolResults\ListExecutionsResponse;
/**
* The "executions" collection of methods.
* Typical usage is:
* <code>
* $toolresultsService = new Google\Service\ToolResults(...);
* $executions = $toolresultsService->projects_histories_executions;
* </code>
*/
class ProjectsHistoriesExecutions extends \Google\Service\Resource
{
/**
* Creates an Execution. The returned Execution will have the id set. May return
* any of the following canonical error codes: - PERMISSION_DENIED - if the user
* is not authorized to write to project - INVALID_ARGUMENT - if the request is
* malformed - NOT_FOUND - if the containing History does not exist
* (executions.create)
*
* @param string $projectId A Project id. Required.
* @param string $historyId A History id. Required.
* @param Execution $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId A unique request ID for server to detect
* duplicated requests. For example, a UUID. Optional, but strongly recommended.
* @return Execution
* @throws \Google\Service\Exception
*/
public function create($projectId, $historyId, Execution $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Execution::class);
}
/**
* Gets an Execution. May return any of the following canonical error codes: -
* PERMISSION_DENIED - if the user is not authorized to write to project -
* INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Execution
* does not exist (executions.get)
*
* @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 Execution
* @throws \Google\Service\Exception
*/
public function get($projectId, $historyId, $executionId, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Execution::class);
}
/**
* Lists Executions for a given History. The executions are sorted by
* creation_time in descending order. The execution_id key will be used to order
* the executions with the same creation_time. 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 History does not exist
* (executions.listProjectsHistoriesExecutions)
*
* @param string $projectId A Project id. Required.
* @param string $historyId A History id. Required.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of Executions to fetch. Default
* value: 25. The server will use this default if the field is not set or has a
* value of 0. Optional.
* @opt_param string pageToken A continuation token to resume the query at the
* next item. Optional.
* @return ListExecutionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsHistoriesExecutions($projectId, $historyId, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListExecutionsResponse::class);
}
/**
* Updates an existing Execution with the supplied partial entity. May return
* any of the following canonical error codes: - PERMISSION_DENIED - if the user
* is not authorized to write to project - INVALID_ARGUMENT - if the request is
* malformed - FAILED_PRECONDITION - if the requested state transition is
* illegal - NOT_FOUND - if the containing History does not exist
* (executions.patch)
*
* @param string $projectId A Project id. Required.
* @param string $historyId Required.
* @param string $executionId Required.
* @param Execution $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId A unique request ID for server to detect
* duplicated requests. For example, a UUID. Optional, but strongly recommended.
* @return Execution
* @throws \Google\Service\Exception
*/
public function patch($projectId, $historyId, $executionId, Execution $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Execution::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsHistoriesExecutions::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutions');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ToolResults\Resource;
use Google\Service\ToolResults\ListScreenshotClustersResponse;
use Google\Service\ToolResults\ScreenshotCluster;
/**
* The "clusters" collection of methods.
* Typical usage is:
* <code>
* $toolresultsService = new Google\Service\ToolResults(...);
* $clusters = $toolresultsService->projects_histories_executions_clusters;
* </code>
*/
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');
@@ -0,0 +1,83 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ToolResults\Resource;
use Google\Service\ToolResults\Environment;
use Google\Service\ToolResults\ListEnvironmentsResponse;
/**
* The "environments" collection of methods.
* Typical usage is:
* <code>
* $toolresultsService = new Google\Service\ToolResults(...);
* $environments = $toolresultsService->projects_histories_executions_environments;
* </code>
*/
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
* @throws \Google\Service\Exception
*/
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
* @throws \Google\Service\Exception
*/
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');
@@ -0,0 +1,208 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ToolResults\Resource;
use Google\Service\ToolResults\ListStepAccessibilityClustersResponse;
use Google\Service\ToolResults\ListStepsResponse;
use Google\Service\ToolResults\PerfMetricsSummary;
use Google\Service\ToolResults\PublishXunitXmlFilesRequest;
use Google\Service\ToolResults\Step;
/**
* The "steps" collection of methods.
* Typical usage is:
* <code>
* $toolresultsService = new Google\Service\ToolResults(...);
* $steps = $toolresultsService->projects_histories_executions_steps;
* </code>
*/
class ProjectsHistoriesExecutionsSteps extends \Google\Service\Resource
{
/**
* Lists accessibility clusters for a given Step 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 -
* FAILED_PRECONDITION - if an argument in the request happens to be invalid;
* e.g. if the locale format is incorrect - NOT_FOUND - if the containing Step
* does not exist (steps.accessibilityClusters)
*
* @param string $name A full resource name of the step. For example,
* projects/my-project/histories/bh.1234567890abcdef/executions/
* 1234567890123456789/steps/bs.1234567890abcdef Required.
* @param array $optParams Optional parameters.
*
* @opt_param string locale The accepted format is the canonical Unicode format
* with hyphen as a delimiter. Language must be lowercase, Language Script -
* Capitalized, Region - UPPERCASE. See
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier for details.
* Required.
* @return ListStepAccessibilityClustersResponse
* @throws \Google\Service\Exception
*/
public function accessibilityClusters($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('accessibilityClusters', [$params], ListStepAccessibilityClustersResponse::class);
}
/**
* Creates a Step. The returned Step will have the id set. May return any of the
* following canonical error codes: - PERMISSION_DENIED - if the user is not
* authorized to write to project - INVALID_ARGUMENT - if the request is
* malformed - FAILED_PRECONDITION - if the step is too large (more than 10Mib)
* - NOT_FOUND - if the containing Execution does not exist (steps.create)
*
* @param string $projectId Required. A Project id.
* @param string $historyId Required. A History id.
* @param string $executionId Required. An Execution id.
* @param Step $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId A unique request ID for server to detect
* duplicated requests. For example, a UUID. Optional, but strongly recommended.
* @return Step
* @throws \Google\Service\Exception
*/
public function create($projectId, $historyId, $executionId, Step $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Step::class);
}
/**
* Gets a Step. 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 Step does
* not exist (steps.get)
*
* @param string $projectId A Project id. Required.
* @param string $historyId A History id. Required.
* @param string $executionId A Execution id. Required.
* @param string $stepId A Step id. Required.
* @param array $optParams Optional parameters.
* @return Step
* @throws \Google\Service\Exception
*/
public function get($projectId, $historyId, $executionId, $stepId, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Step::class);
}
/**
* Retrieves a PerfMetricsSummary. May return any of the following error
* code(s): - NOT_FOUND - The specified PerfMetricsSummary does not exist
* (steps.getPerfMetricsSummary)
*
* @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 array $optParams Optional parameters.
* @return PerfMetricsSummary
* @throws \Google\Service\Exception
*/
public function getPerfMetricsSummary($projectId, $historyId, $executionId, $stepId, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId];
$params = array_merge($params, $optParams);
return $this->call('getPerfMetricsSummary', [$params], PerfMetricsSummary::class);
}
/**
* Lists Steps for a given Execution. The steps are sorted by creation_time in
* descending order. The step_id key will be used to order the steps with the
* same creation_time. 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 - FAILED_PRECONDITION - if an
* argument in the request happens to be invalid; e.g. if an attempt is made to
* list the children of a nonexistent Step - NOT_FOUND - if the containing
* Execution does not exist (steps.listProjectsHistoriesExecutionsSteps)
*
* @param string $projectId A Project id. Required.
* @param string $historyId A History id. Required.
* @param string $executionId A Execution id. Required.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of Steps to fetch. Default value:
* 25. The server will use this default if the field is not set or has a value
* of 0. Optional.
* @opt_param string pageToken A continuation token to resume the query at the
* next item. Optional.
* @return ListStepsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsHistoriesExecutionsSteps($projectId, $historyId, $executionId, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListStepsResponse::class);
}
/**
* Updates an existing Step with the supplied partial entity. May return any of
* the following canonical error codes: - PERMISSION_DENIED - if the user is not
* authorized to write project - INVALID_ARGUMENT - if the request is malformed
* - FAILED_PRECONDITION - if the requested state transition is illegal (e.g try
* to upload a duplicate xml file), if the updated step is too large (more than
* 10Mib) - NOT_FOUND - if the containing Execution does not exist (steps.patch)
*
* @param string $projectId A Project id. Required.
* @param string $historyId A History id. Required.
* @param string $executionId A Execution id. Required.
* @param string $stepId A Step id. Required.
* @param Step $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId A unique request ID for server to detect
* duplicated requests. For example, a UUID. Optional, but strongly recommended.
* @return Step
* @throws \Google\Service\Exception
*/
public function patch($projectId, $historyId, $executionId, $stepId, Step $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Step::class);
}
/**
* Publish xml files to an existing Step. May return any of the following
* canonical error codes: - PERMISSION_DENIED - if the user is not authorized to
* write project - INVALID_ARGUMENT - if the request is malformed -
* FAILED_PRECONDITION - if the requested state transition is illegal, e.g. try
* to upload a duplicate xml file or a file too large. - NOT_FOUND - if the
* containing Execution does not exist (steps.publishXunitXmlFiles)
*
* @param string $projectId A Project id. Required.
* @param string $historyId A History id. Required.
* @param string $executionId A Execution id. Required.
* @param string $stepId A Step id. Note: This step must include a
* TestExecutionStep. Required.
* @param PublishXunitXmlFilesRequest $postBody
* @param array $optParams Optional parameters.
* @return Step
* @throws \Google\Service\Exception
*/
public function publishXunitXmlFiles($projectId, $historyId, $executionId, $stepId, PublishXunitXmlFilesRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('publishXunitXmlFiles', [$params], Step::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsHistoriesExecutionsSteps::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsSteps');
@@ -0,0 +1,55 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ToolResults\Resource;
use Google\Service\ToolResults\PerfMetricsSummary;
/**
* The "perfMetricsSummary" collection of methods.
* Typical usage is:
* <code>
* $toolresultsService = new Google\Service\ToolResults(...);
* $perfMetricsSummary = $toolresultsService->projects_histories_executions_steps_perfMetricsSummary;
* </code>
*/
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
* @throws \Google\Service\Exception
*/
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');
@@ -0,0 +1,101 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ToolResults\Resource;
use Google\Service\ToolResults\ListPerfSampleSeriesResponse;
use Google\Service\ToolResults\PerfSampleSeries;
/**
* The "perfSampleSeries" collection of methods.
* Typical usage is:
* <code>
* $toolresultsService = new Google\Service\ToolResults(...);
* $perfSampleSeries = $toolresultsService->projects_histories_executions_steps_perfSampleSeries;
* </code>
*/
class ProjectsHistoriesExecutionsStepsPerfSampleSeries extends \Google\Service\Resource
{
/**
* Creates a PerfSampleSeries. May return any of the following error code(s): -
* ALREADY_EXISTS - PerfMetricSummary already exists for the given Step -
* NOT_FOUND - The containing Step does not exist (perfSampleSeries.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 PerfSampleSeries $postBody
* @param array $optParams Optional parameters.
* @return PerfSampleSeries
* @throws \Google\Service\Exception
*/
public function create($projectId, $historyId, $executionId, $stepId, PerfSampleSeries $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], PerfSampleSeries::class);
}
/**
* Gets a PerfSampleSeries. May return any of the following error code(s): -
* NOT_FOUND - The specified PerfSampleSeries does not exist
* (perfSampleSeries.get)
*
* @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 string $sampleSeriesId A sample series id
* @param array $optParams Optional parameters.
* @return PerfSampleSeries
* @throws \Google\Service\Exception
*/
public function get($projectId, $historyId, $executionId, $stepId, $sampleSeriesId, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'sampleSeriesId' => $sampleSeriesId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PerfSampleSeries::class);
}
/**
* Lists PerfSampleSeries for a given Step. The request provides an optional
* filter which specifies one or more PerfMetricsType to include in the result;
* if none returns all. The resulting PerfSampleSeries are sorted by ids. May
* return any of the following canonical error codes: - NOT_FOUND - The
* containing Step does not exist
* (perfSampleSeries.listProjectsHistoriesExecutionsStepsPerfSampleSeries)
*
* @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 array $optParams Optional parameters.
*
* @opt_param string filter Specify one or more PerfMetricType values such as
* CPU to filter the result
* @return ListPerfSampleSeriesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsHistoriesExecutionsStepsPerfSampleSeries($projectId, $historyId, $executionId, $stepId, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPerfSampleSeriesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsHistoriesExecutionsStepsPerfSampleSeries::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsPerfSampleSeries');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ToolResults\Resource;
use Google\Service\ToolResults\BatchCreatePerfSamplesRequest;
use Google\Service\ToolResults\BatchCreatePerfSamplesResponse;
use Google\Service\ToolResults\ListPerfSamplesResponse;
/**
* The "samples" collection of methods.
* Typical usage is:
* <code>
* $toolresultsService = new Google\Service\ToolResults(...);
* $samples = $toolresultsService->projects_histories_executions_steps_perfSampleSeries_samples;
* </code>
*/
class ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples extends \Google\Service\Resource
{
/**
* Creates a batch of PerfSamples - a client can submit multiple batches of Perf
* Samples through repeated calls to this method in order to split up a large
* request payload - duplicates and existing timestamp entries will be ignored.
* - the batch operation may partially succeed - the set of elements
* successfully inserted is returned in the response (omits items which already
* existed in the database). May return any of the following canonical error
* codes: - NOT_FOUND - The containing PerfSampleSeries does not exist
* (samples.batchCreate)
*
* @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 string $sampleSeriesId A sample series id
* @param BatchCreatePerfSamplesRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchCreatePerfSamplesResponse
* @throws \Google\Service\Exception
*/
public function batchCreate($projectId, $historyId, $executionId, $stepId, $sampleSeriesId, BatchCreatePerfSamplesRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'sampleSeriesId' => $sampleSeriesId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchCreate', [$params], BatchCreatePerfSamplesResponse::class);
}
/**
* Lists the Performance Samples of a given Sample Series - The list results are
* sorted by timestamps ascending - The default page size is 500 samples; and
* maximum size allowed 5000 - The response token indicates the last returned
* PerfSample timestamp - When the results size exceeds the page size, submit a
* subsequent request including the page token to return the rest of the samples
* up to the page limit May return any of the following canonical error codes: -
* OUT_OF_RANGE - The specified request page_token is out of valid range -
* NOT_FOUND - The containing PerfSampleSeries does not exist
* (samples.listProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples)
*
* @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 string $sampleSeriesId A sample series id
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The default page size is 500 samples, and the maximum
* size is 5000. If the page_size is greater than 5000, the effective page size
* will be 5000
* @opt_param string pageToken Optional, the next_page_token returned in the
* previous response
* @return ListPerfSamplesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples($projectId, $historyId, $executionId, $stepId, $sampleSeriesId, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'sampleSeriesId' => $sampleSeriesId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPerfSamplesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples');
@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ToolResults\Resource;
use Google\Service\ToolResults\ListTestCasesResponse;
use Google\Service\ToolResults\TestCase;
/**
* The "testCases" collection of methods.
* Typical usage is:
* <code>
* $toolresultsService = new Google\Service\ToolResults(...);
* $testCases = $toolresultsService->projects_histories_executions_steps_testCases;
* </code>
*/
class ProjectsHistoriesExecutionsStepsTestCases extends \Google\Service\Resource
{
/**
* Gets details of a Test Case for a Step. Experimental test cases API. Still in
* active development. May return any of the following canonical error codes: -
* PERMISSION_DENIED - if the user is not authorized to write to project -
* INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
* containing Test Case does not exist (testCases.get)
*
* @param string $projectId A Project id. Required.
* @param string $historyId A History id. Required.
* @param string $executionId A Execution id Required.
* @param string $stepId A Step id. Note: This step must include a
* TestExecutionStep. Required.
* @param string $testCaseId A Test Case id. Required.
* @param array $optParams Optional parameters.
* @return TestCase
* @throws \Google\Service\Exception
*/
public function get($projectId, $historyId, $executionId, $stepId, $testCaseId, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'testCaseId' => $testCaseId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TestCase::class);
}
/**
* Lists Test Cases attached to a Step. Experimental test cases API. Still in
* active development. May return any of the following canonical error codes: -
* PERMISSION_DENIED - if the user is not authorized to write to project -
* INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
* containing Step does not exist
* (testCases.listProjectsHistoriesExecutionsStepsTestCases)
*
* @param string $projectId A Project id. Required.
* @param string $historyId A History id. Required.
* @param string $executionId A Execution id Required.
* @param string $stepId A Step id. Note: This step must include a
* TestExecutionStep. Required.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of TestCases to fetch. Default
* value: 100. The server will use this default if the field is not set or has a
* value of 0. Optional.
* @opt_param string pageToken A continuation token to resume the query at the
* next item. Optional.
* @return ListTestCasesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsHistoriesExecutionsStepsTestCases($projectId, $historyId, $executionId, $stepId, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTestCasesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsHistoriesExecutionsStepsTestCases::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsTestCases');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ToolResults\Resource;
use Google\Service\ToolResults\ListStepThumbnailsResponse;
/**
* The "thumbnails" collection of methods.
* Typical usage is:
* <code>
* $toolresultsService = new Google\Service\ToolResults(...);
* $thumbnails = $toolresultsService->projects_histories_executions_steps_thumbnails;
* </code>
*/
class ProjectsHistoriesExecutionsStepsThumbnails extends \Google\Service\Resource
{
/**
* Lists thumbnails of images attached to a step. May return any of the
* following canonical error codes: - PERMISSION_DENIED - if the user is not
* authorized to read from the project, or from any of the images -
* INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the step does
* not exist, or if any of the images do not exist
* (thumbnails.listProjectsHistoriesExecutionsStepsThumbnails)
*
* @param string $projectId A Project id. Required.
* @param string $historyId A History id. Required.
* @param string $executionId An Execution id. Required.
* @param string $stepId A Step id. Required.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of thumbnails to fetch. Default
* value: 50. The server will use this default if the field is not set or has a
* value of 0. Optional.
* @opt_param string pageToken A continuation token to resume the query at the
* next item. Optional.
* @return ListStepThumbnailsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsHistoriesExecutionsStepsThumbnails($projectId, $historyId, $executionId, $stepId, $optParams = [])
{
$params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListStepThumbnailsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsHistoriesExecutionsStepsThumbnails::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsThumbnails');