source: vendor/google/apiclient-services/src/CloudBuild.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 13.4 KB
RevLine 
[e3d4e0a]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 CloudBuild (v2).
24 *
25 * <p>
26 * Creates and manages builds on Google Cloud Platform.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/cloud-build/docs/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class CloudBuild extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40
41 public $projects_locations;
42 public $projects_locations_connections;
43 public $projects_locations_connections_repositories;
44 public $projects_locations_operations;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the CloudBuild service.
49 *
50 * @param Client|array $clientOrConfig The client used to deliver requests, or a
51 * config array to pass to a new Client instance.
52 * @param string $rootUrl The root URL used for requests to the service.
53 */
54 public function __construct($clientOrConfig = [], $rootUrl = null)
55 {
56 parent::__construct($clientOrConfig);
57 $this->rootUrl = $rootUrl ?: 'https://cloudbuild.googleapis.com/';
58 $this->rootUrlTemplate = $rootUrl ?: 'https://cloudbuild.UNIVERSE_DOMAIN/';
59 $this->servicePath = '';
60 $this->batchPath = 'batch';
61 $this->version = 'v2';
62 $this->serviceName = 'cloudbuild';
63
64 $this->projects_locations = new CloudBuild\Resource\ProjectsLocations(
65 $this,
66 $this->serviceName,
67 'locations',
68 [
69 'methods' => [
70 'get' => [
71 'path' => 'v2/{+name}',
72 'httpMethod' => 'GET',
73 'parameters' => [
74 'name' => [
75 'location' => 'path',
76 'type' => 'string',
77 'required' => true,
78 ],
79 ],
80 ],'list' => [
81 'path' => 'v2/{+name}/locations',
82 'httpMethod' => 'GET',
83 'parameters' => [
84 'name' => [
85 'location' => 'path',
86 'type' => 'string',
87 'required' => true,
88 ],
89 'filter' => [
90 'location' => 'query',
91 'type' => 'string',
92 ],
93 'pageSize' => [
94 'location' => 'query',
95 'type' => 'integer',
96 ],
97 'pageToken' => [
98 'location' => 'query',
99 'type' => 'string',
100 ],
101 ],
102 ],
103 ]
104 ]
105 );
106 $this->projects_locations_connections = new CloudBuild\Resource\ProjectsLocationsConnections(
107 $this,
108 $this->serviceName,
109 'connections',
110 [
111 'methods' => [
112 'create' => [
113 'path' => 'v2/{+parent}/connections',
114 'httpMethod' => 'POST',
115 'parameters' => [
116 'parent' => [
117 'location' => 'path',
118 'type' => 'string',
119 'required' => true,
120 ],
121 'connectionId' => [
122 'location' => 'query',
123 'type' => 'string',
124 ],
125 ],
126 ],'delete' => [
127 'path' => 'v2/{+name}',
128 'httpMethod' => 'DELETE',
129 'parameters' => [
130 'name' => [
131 'location' => 'path',
132 'type' => 'string',
133 'required' => true,
134 ],
135 'etag' => [
136 'location' => 'query',
137 'type' => 'string',
138 ],
139 'validateOnly' => [
140 'location' => 'query',
141 'type' => 'boolean',
142 ],
143 ],
144 ],'fetchLinkableRepositories' => [
145 'path' => 'v2/{+connection}:fetchLinkableRepositories',
146 'httpMethod' => 'GET',
147 'parameters' => [
148 'connection' => [
149 'location' => 'path',
150 'type' => 'string',
151 'required' => true,
152 ],
153 'pageSize' => [
154 'location' => 'query',
155 'type' => 'integer',
156 ],
157 'pageToken' => [
158 'location' => 'query',
159 'type' => 'string',
160 ],
161 ],
162 ],'get' => [
163 'path' => 'v2/{+name}',
164 'httpMethod' => 'GET',
165 'parameters' => [
166 'name' => [
167 'location' => 'path',
168 'type' => 'string',
169 'required' => true,
170 ],
171 ],
172 ],'getIamPolicy' => [
173 'path' => 'v2/{+resource}:getIamPolicy',
174 'httpMethod' => 'GET',
175 'parameters' => [
176 'resource' => [
177 'location' => 'path',
178 'type' => 'string',
179 'required' => true,
180 ],
181 'options.requestedPolicyVersion' => [
182 'location' => 'query',
183 'type' => 'integer',
184 ],
185 ],
186 ],'list' => [
187 'path' => 'v2/{+parent}/connections',
188 'httpMethod' => 'GET',
189 'parameters' => [
190 'parent' => [
191 'location' => 'path',
192 'type' => 'string',
193 'required' => true,
194 ],
195 'pageSize' => [
196 'location' => 'query',
197 'type' => 'integer',
198 ],
199 'pageToken' => [
200 'location' => 'query',
201 'type' => 'string',
202 ],
203 ],
204 ],'patch' => [
205 'path' => 'v2/{+name}',
206 'httpMethod' => 'PATCH',
207 'parameters' => [
208 'name' => [
209 'location' => 'path',
210 'type' => 'string',
211 'required' => true,
212 ],
213 'allowMissing' => [
214 'location' => 'query',
215 'type' => 'boolean',
216 ],
217 'etag' => [
218 'location' => 'query',
219 'type' => 'string',
220 ],
221 'updateMask' => [
222 'location' => 'query',
223 'type' => 'string',
224 ],
225 ],
226 ],'processWebhook' => [
227 'path' => 'v2/{+parent}/connections:processWebhook',
228 'httpMethod' => 'POST',
229 'parameters' => [
230 'parent' => [
231 'location' => 'path',
232 'type' => 'string',
233 'required' => true,
234 ],
235 'webhookKey' => [
236 'location' => 'query',
237 'type' => 'string',
238 ],
239 ],
240 ],'setIamPolicy' => [
241 'path' => 'v2/{+resource}:setIamPolicy',
242 'httpMethod' => 'POST',
243 'parameters' => [
244 'resource' => [
245 'location' => 'path',
246 'type' => 'string',
247 'required' => true,
248 ],
249 ],
250 ],'testIamPermissions' => [
251 'path' => 'v2/{+resource}:testIamPermissions',
252 'httpMethod' => 'POST',
253 'parameters' => [
254 'resource' => [
255 'location' => 'path',
256 'type' => 'string',
257 'required' => true,
258 ],
259 ],
260 ],
261 ]
262 ]
263 );
264 $this->projects_locations_connections_repositories = new CloudBuild\Resource\ProjectsLocationsConnectionsRepositories(
265 $this,
266 $this->serviceName,
267 'repositories',
268 [
269 'methods' => [
270 'accessReadToken' => [
271 'path' => 'v2/{+repository}:accessReadToken',
272 'httpMethod' => 'POST',
273 'parameters' => [
274 'repository' => [
275 'location' => 'path',
276 'type' => 'string',
277 'required' => true,
278 ],
279 ],
280 ],'accessReadWriteToken' => [
281 'path' => 'v2/{+repository}:accessReadWriteToken',
282 'httpMethod' => 'POST',
283 'parameters' => [
284 'repository' => [
285 'location' => 'path',
286 'type' => 'string',
287 'required' => true,
288 ],
289 ],
290 ],'batchCreate' => [
291 'path' => 'v2/{+parent}/repositories:batchCreate',
292 'httpMethod' => 'POST',
293 'parameters' => [
294 'parent' => [
295 'location' => 'path',
296 'type' => 'string',
297 'required' => true,
298 ],
299 ],
300 ],'create' => [
301 'path' => 'v2/{+parent}/repositories',
302 'httpMethod' => 'POST',
303 'parameters' => [
304 'parent' => [
305 'location' => 'path',
306 'type' => 'string',
307 'required' => true,
308 ],
309 'repositoryId' => [
310 'location' => 'query',
311 'type' => 'string',
312 ],
313 ],
314 ],'delete' => [
315 'path' => 'v2/{+name}',
316 'httpMethod' => 'DELETE',
317 'parameters' => [
318 'name' => [
319 'location' => 'path',
320 'type' => 'string',
321 'required' => true,
322 ],
323 'etag' => [
324 'location' => 'query',
325 'type' => 'string',
326 ],
327 'validateOnly' => [
328 'location' => 'query',
329 'type' => 'boolean',
330 ],
331 ],
332 ],'fetchGitRefs' => [
333 'path' => 'v2/{+repository}:fetchGitRefs',
334 'httpMethod' => 'GET',
335 'parameters' => [
336 'repository' => [
337 'location' => 'path',
338 'type' => 'string',
339 'required' => true,
340 ],
341 'pageSize' => [
342 'location' => 'query',
343 'type' => 'integer',
344 ],
345 'pageToken' => [
346 'location' => 'query',
347 'type' => 'string',
348 ],
349 'refType' => [
350 'location' => 'query',
351 'type' => 'string',
352 ],
353 ],
354 ],'get' => [
355 'path' => 'v2/{+name}',
356 'httpMethod' => 'GET',
357 'parameters' => [
358 'name' => [
359 'location' => 'path',
360 'type' => 'string',
361 'required' => true,
362 ],
363 ],
364 ],'list' => [
365 'path' => 'v2/{+parent}/repositories',
366 'httpMethod' => 'GET',
367 'parameters' => [
368 'parent' => [
369 'location' => 'path',
370 'type' => 'string',
371 'required' => true,
372 ],
373 'filter' => [
374 'location' => 'query',
375 'type' => 'string',
376 ],
377 'pageSize' => [
378 'location' => 'query',
379 'type' => 'integer',
380 ],
381 'pageToken' => [
382 'location' => 'query',
383 'type' => 'string',
384 ],
385 ],
386 ],
387 ]
388 ]
389 );
390 $this->projects_locations_operations = new CloudBuild\Resource\ProjectsLocationsOperations(
391 $this,
392 $this->serviceName,
393 'operations',
394 [
395 'methods' => [
396 'cancel' => [
397 'path' => 'v2/{+name}:cancel',
398 'httpMethod' => 'POST',
399 'parameters' => [
400 'name' => [
401 'location' => 'path',
402 'type' => 'string',
403 'required' => true,
404 ],
405 ],
406 ],'get' => [
407 'path' => 'v2/{+name}',
408 'httpMethod' => 'GET',
409 'parameters' => [
410 'name' => [
411 'location' => 'path',
412 'type' => 'string',
413 'required' => true,
414 ],
415 ],
416 ],
417 ]
418 ]
419 );
420 }
421}
422
423// Adding a class alias for backwards compatibility with the previous class name.
424class_alias(CloudBuild::class, 'Google_Service_CloudBuild');
Note: See TracBrowser for help on using the repository browser.