source: vendor/google/apiclient-services/src/Testing.php

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

Upload project files

  • Property mode set to 100644
File size: 7.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;
19
20use Google\Client;
21
22/**
23 * Service definition for Testing (v1).
24 *
25 * <p>
26 * Allows developers to run automated tests for their mobile applications on
27 * Google infrastructure.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://firebase.google.com/docs/test-lab/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class Testing extends \Google\Service
37{
38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
39 const CLOUD_PLATFORM =
40 "https://www.googleapis.com/auth/cloud-platform";
41 /** View your data across Google Cloud services and see the email address of your Google Account. */
42 const CLOUD_PLATFORM_READ_ONLY =
43 "https://www.googleapis.com/auth/cloud-platform.read-only";
44
45 public $applicationDetailService;
46 public $projects_deviceSessions;
47 public $projects_testMatrices;
48 public $testEnvironmentCatalog;
49 public $rootUrlTemplate;
50
51 /**
52 * Constructs the internal representation of the Testing service.
53 *
54 * @param Client|array $clientOrConfig The client used to deliver requests, or a
55 * config array to pass to a new Client instance.
56 * @param string $rootUrl The root URL used for requests to the service.
57 */
58 public function __construct($clientOrConfig = [], $rootUrl = null)
59 {
60 parent::__construct($clientOrConfig);
61 $this->rootUrl = $rootUrl ?: 'https://testing.googleapis.com/';
62 $this->rootUrlTemplate = $rootUrl ?: 'https://testing.UNIVERSE_DOMAIN/';
63 $this->servicePath = '';
64 $this->batchPath = 'batch';
65 $this->version = 'v1';
66 $this->serviceName = 'testing';
67
68 $this->applicationDetailService = new Testing\Resource\ApplicationDetailService(
69 $this,
70 $this->serviceName,
71 'applicationDetailService',
72 [
73 'methods' => [
74 'getApkDetails' => [
75 'path' => 'v1/applicationDetailService/getApkDetails',
76 'httpMethod' => 'POST',
77 'parameters' => [
78 'bundleLocation.gcsPath' => [
79 'location' => 'query',
80 'type' => 'string',
81 ],
82 ],
83 ],
84 ]
85 ]
86 );
87 $this->projects_deviceSessions = new Testing\Resource\ProjectsDeviceSessions(
88 $this,
89 $this->serviceName,
90 'deviceSessions',
91 [
92 'methods' => [
93 'cancel' => [
94 'path' => 'v1/{+name}:cancel',
95 'httpMethod' => 'POST',
96 'parameters' => [
97 'name' => [
98 'location' => 'path',
99 'type' => 'string',
100 'required' => true,
101 ],
102 ],
103 ],'create' => [
104 'path' => 'v1/{+parent}/deviceSessions',
105 'httpMethod' => 'POST',
106 'parameters' => [
107 'parent' => [
108 'location' => 'path',
109 'type' => 'string',
110 'required' => true,
111 ],
112 ],
113 ],'get' => [
114 'path' => 'v1/{+name}',
115 'httpMethod' => 'GET',
116 'parameters' => [
117 'name' => [
118 'location' => 'path',
119 'type' => 'string',
120 'required' => true,
121 ],
122 ],
123 ],'list' => [
124 'path' => 'v1/{+parent}/deviceSessions',
125 'httpMethod' => 'GET',
126 'parameters' => [
127 'parent' => [
128 'location' => 'path',
129 'type' => 'string',
130 'required' => true,
131 ],
132 'filter' => [
133 'location' => 'query',
134 'type' => 'string',
135 ],
136 'pageSize' => [
137 'location' => 'query',
138 'type' => 'integer',
139 ],
140 'pageToken' => [
141 'location' => 'query',
142 'type' => 'string',
143 ],
144 ],
145 ],'patch' => [
146 'path' => 'v1/{+name}',
147 'httpMethod' => 'PATCH',
148 'parameters' => [
149 'name' => [
150 'location' => 'path',
151 'type' => 'string',
152 'required' => true,
153 ],
154 'updateMask' => [
155 'location' => 'query',
156 'type' => 'string',
157 ],
158 ],
159 ],
160 ]
161 ]
162 );
163 $this->projects_testMatrices = new Testing\Resource\ProjectsTestMatrices(
164 $this,
165 $this->serviceName,
166 'testMatrices',
167 [
168 'methods' => [
169 'cancel' => [
170 'path' => 'v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel',
171 'httpMethod' => 'POST',
172 'parameters' => [
173 'projectId' => [
174 'location' => 'path',
175 'type' => 'string',
176 'required' => true,
177 ],
178 'testMatrixId' => [
179 'location' => 'path',
180 'type' => 'string',
181 'required' => true,
182 ],
183 ],
184 ],'create' => [
185 'path' => 'v1/projects/{projectId}/testMatrices',
186 'httpMethod' => 'POST',
187 'parameters' => [
188 'projectId' => [
189 'location' => 'path',
190 'type' => 'string',
191 'required' => true,
192 ],
193 'requestId' => [
194 'location' => 'query',
195 'type' => 'string',
196 ],
197 ],
198 ],'get' => [
199 'path' => 'v1/projects/{projectId}/testMatrices/{testMatrixId}',
200 'httpMethod' => 'GET',
201 'parameters' => [
202 'projectId' => [
203 'location' => 'path',
204 'type' => 'string',
205 'required' => true,
206 ],
207 'testMatrixId' => [
208 'location' => 'path',
209 'type' => 'string',
210 'required' => true,
211 ],
212 ],
213 ],
214 ]
215 ]
216 );
217 $this->testEnvironmentCatalog = new Testing\Resource\TestEnvironmentCatalog(
218 $this,
219 $this->serviceName,
220 'testEnvironmentCatalog',
221 [
222 'methods' => [
223 'get' => [
224 'path' => 'v1/testEnvironmentCatalog/{environmentType}',
225 'httpMethod' => 'GET',
226 'parameters' => [
227 'environmentType' => [
228 'location' => 'path',
229 'type' => 'string',
230 'required' => true,
231 ],
232 'projectId' => [
233 'location' => 'query',
234 'type' => 'string',
235 ],
236 ],
237 ],
238 ]
239 ]
240 );
241 }
242}
243
244// Adding a class alias for backwards compatibility with the previous class name.
245class_alias(Testing::class, 'Google_Service_Testing');
Note: See TracBrowser for help on using the repository browser.