source: vendor/google/apiclient-services/src/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 10 days ago

Upload project files

  • Property mode set to 100644
File size: 4.7 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\ToolResults\Resource;
19
20use Google\Service\ToolResults\BatchCreatePerfSamplesRequest;
21use Google\Service\ToolResults\BatchCreatePerfSamplesResponse;
22use Google\Service\ToolResults\ListPerfSamplesResponse;
23
24/**
25 * The "samples" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $toolresultsService = new Google\Service\ToolResults(...);
29 * $samples = $toolresultsService->projects_histories_executions_steps_perfSampleSeries_samples;
30 * </code>
31 */
32class ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples extends \Google\Service\Resource
33{
34 /**
35 * Creates a batch of PerfSamples - a client can submit multiple batches of Perf
36 * Samples through repeated calls to this method in order to split up a large
37 * request payload - duplicates and existing timestamp entries will be ignored.
38 * - the batch operation may partially succeed - the set of elements
39 * successfully inserted is returned in the response (omits items which already
40 * existed in the database). May return any of the following canonical error
41 * codes: - NOT_FOUND - The containing PerfSampleSeries does not exist
42 * (samples.batchCreate)
43 *
44 * @param string $projectId The cloud project
45 * @param string $historyId A tool results history ID.
46 * @param string $executionId A tool results execution ID.
47 * @param string $stepId A tool results step ID.
48 * @param string $sampleSeriesId A sample series id
49 * @param BatchCreatePerfSamplesRequest $postBody
50 * @param array $optParams Optional parameters.
51 * @return BatchCreatePerfSamplesResponse
52 * @throws \Google\Service\Exception
53 */
54 public function batchCreate($projectId, $historyId, $executionId, $stepId, $sampleSeriesId, BatchCreatePerfSamplesRequest $postBody, $optParams = [])
55 {
56 $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'sampleSeriesId' => $sampleSeriesId, 'postBody' => $postBody];
57 $params = array_merge($params, $optParams);
58 return $this->call('batchCreate', [$params], BatchCreatePerfSamplesResponse::class);
59 }
60 /**
61 * Lists the Performance Samples of a given Sample Series - The list results are
62 * sorted by timestamps ascending - The default page size is 500 samples; and
63 * maximum size allowed 5000 - The response token indicates the last returned
64 * PerfSample timestamp - When the results size exceeds the page size, submit a
65 * subsequent request including the page token to return the rest of the samples
66 * up to the page limit May return any of the following canonical error codes: -
67 * OUT_OF_RANGE - The specified request page_token is out of valid range -
68 * NOT_FOUND - The containing PerfSampleSeries does not exist
69 * (samples.listProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples)
70 *
71 * @param string $projectId The cloud project
72 * @param string $historyId A tool results history ID.
73 * @param string $executionId A tool results execution ID.
74 * @param string $stepId A tool results step ID.
75 * @param string $sampleSeriesId A sample series id
76 * @param array $optParams Optional parameters.
77 *
78 * @opt_param int pageSize The default page size is 500 samples, and the maximum
79 * size is 5000. If the page_size is greater than 5000, the effective page size
80 * will be 5000
81 * @opt_param string pageToken Optional, the next_page_token returned in the
82 * previous response
83 * @return ListPerfSamplesResponse
84 * @throws \Google\Service\Exception
85 */
86 public function listProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples($projectId, $historyId, $executionId, $stepId, $sampleSeriesId, $optParams = [])
87 {
88 $params = ['projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'sampleSeriesId' => $sampleSeriesId];
89 $params = array_merge($params, $optParams);
90 return $this->call('list', [$params], ListPerfSamplesResponse::class);
91 }
92}
93
94// Adding a class alias for backwards compatibility with the previous class name.
95class_alias(ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples::class, 'Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples');
Note: See TracBrowser for help on using the repository browser.