source: vendor/google/apiclient-services/src/Apigateway.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: 16.5 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 Apigateway (v1).
24 *
25 * <p>
26</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/api-gateway/docs" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Apigateway 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_apis;
43 public $projects_locations_apis_configs;
44 public $projects_locations_gateways;
45 public $projects_locations_operations;
46 public $rootUrlTemplate;
47
48 /**
49 * Constructs the internal representation of the Apigateway service.
50 *
51 * @param Client|array $clientOrConfig The client used to deliver requests, or a
52 * config array to pass to a new Client instance.
53 * @param string $rootUrl The root URL used for requests to the service.
54 */
55 public function __construct($clientOrConfig = [], $rootUrl = null)
56 {
57 parent::__construct($clientOrConfig);
58 $this->rootUrl = $rootUrl ?: 'https://apigateway.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://apigateway.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v1';
63 $this->serviceName = 'apigateway';
64
65 $this->projects_locations = new Apigateway\Resource\ProjectsLocations(
66 $this,
67 $this->serviceName,
68 'locations',
69 [
70 'methods' => [
71 'get' => [
72 'path' => 'v1/{+name}',
73 'httpMethod' => 'GET',
74 'parameters' => [
75 'name' => [
76 'location' => 'path',
77 'type' => 'string',
78 'required' => true,
79 ],
80 ],
81 ],'list' => [
82 'path' => 'v1/{+name}/locations',
83 'httpMethod' => 'GET',
84 'parameters' => [
85 'name' => [
86 'location' => 'path',
87 'type' => 'string',
88 'required' => true,
89 ],
90 'filter' => [
91 'location' => 'query',
92 'type' => 'string',
93 ],
94 'pageSize' => [
95 'location' => 'query',
96 'type' => 'integer',
97 ],
98 'pageToken' => [
99 'location' => 'query',
100 'type' => 'string',
101 ],
102 ],
103 ],
104 ]
105 ]
106 );
107 $this->projects_locations_apis = new Apigateway\Resource\ProjectsLocationsApis(
108 $this,
109 $this->serviceName,
110 'apis',
111 [
112 'methods' => [
113 'create' => [
114 'path' => 'v1/{+parent}/apis',
115 'httpMethod' => 'POST',
116 'parameters' => [
117 'parent' => [
118 'location' => 'path',
119 'type' => 'string',
120 'required' => true,
121 ],
122 'apiId' => [
123 'location' => 'query',
124 'type' => 'string',
125 ],
126 ],
127 ],'delete' => [
128 'path' => 'v1/{+name}',
129 'httpMethod' => 'DELETE',
130 'parameters' => [
131 'name' => [
132 'location' => 'path',
133 'type' => 'string',
134 'required' => true,
135 ],
136 ],
137 ],'get' => [
138 'path' => 'v1/{+name}',
139 'httpMethod' => 'GET',
140 'parameters' => [
141 'name' => [
142 'location' => 'path',
143 'type' => 'string',
144 'required' => true,
145 ],
146 ],
147 ],'getIamPolicy' => [
148 'path' => 'v1/{+resource}:getIamPolicy',
149 'httpMethod' => 'GET',
150 'parameters' => [
151 'resource' => [
152 'location' => 'path',
153 'type' => 'string',
154 'required' => true,
155 ],
156 'options.requestedPolicyVersion' => [
157 'location' => 'query',
158 'type' => 'integer',
159 ],
160 ],
161 ],'list' => [
162 'path' => 'v1/{+parent}/apis',
163 'httpMethod' => 'GET',
164 'parameters' => [
165 'parent' => [
166 'location' => 'path',
167 'type' => 'string',
168 'required' => true,
169 ],
170 'filter' => [
171 'location' => 'query',
172 'type' => 'string',
173 ],
174 'orderBy' => [
175 'location' => 'query',
176 'type' => 'string',
177 ],
178 'pageSize' => [
179 'location' => 'query',
180 'type' => 'integer',
181 ],
182 'pageToken' => [
183 'location' => 'query',
184 'type' => 'string',
185 ],
186 ],
187 ],'patch' => [
188 'path' => 'v1/{+name}',
189 'httpMethod' => 'PATCH',
190 'parameters' => [
191 'name' => [
192 'location' => 'path',
193 'type' => 'string',
194 'required' => true,
195 ],
196 'updateMask' => [
197 'location' => 'query',
198 'type' => 'string',
199 ],
200 ],
201 ],'setIamPolicy' => [
202 'path' => 'v1/{+resource}:setIamPolicy',
203 'httpMethod' => 'POST',
204 'parameters' => [
205 'resource' => [
206 'location' => 'path',
207 'type' => 'string',
208 'required' => true,
209 ],
210 ],
211 ],'testIamPermissions' => [
212 'path' => 'v1/{+resource}:testIamPermissions',
213 'httpMethod' => 'POST',
214 'parameters' => [
215 'resource' => [
216 'location' => 'path',
217 'type' => 'string',
218 'required' => true,
219 ],
220 ],
221 ],
222 ]
223 ]
224 );
225 $this->projects_locations_apis_configs = new Apigateway\Resource\ProjectsLocationsApisConfigs(
226 $this,
227 $this->serviceName,
228 'configs',
229 [
230 'methods' => [
231 'create' => [
232 'path' => 'v1/{+parent}/configs',
233 'httpMethod' => 'POST',
234 'parameters' => [
235 'parent' => [
236 'location' => 'path',
237 'type' => 'string',
238 'required' => true,
239 ],
240 'apiConfigId' => [
241 'location' => 'query',
242 'type' => 'string',
243 ],
244 ],
245 ],'delete' => [
246 'path' => 'v1/{+name}',
247 'httpMethod' => 'DELETE',
248 'parameters' => [
249 'name' => [
250 'location' => 'path',
251 'type' => 'string',
252 'required' => true,
253 ],
254 ],
255 ],'get' => [
256 'path' => 'v1/{+name}',
257 'httpMethod' => 'GET',
258 'parameters' => [
259 'name' => [
260 'location' => 'path',
261 'type' => 'string',
262 'required' => true,
263 ],
264 'view' => [
265 'location' => 'query',
266 'type' => 'string',
267 ],
268 ],
269 ],'getIamPolicy' => [
270 'path' => 'v1/{+resource}:getIamPolicy',
271 'httpMethod' => 'GET',
272 'parameters' => [
273 'resource' => [
274 'location' => 'path',
275 'type' => 'string',
276 'required' => true,
277 ],
278 'options.requestedPolicyVersion' => [
279 'location' => 'query',
280 'type' => 'integer',
281 ],
282 ],
283 ],'list' => [
284 'path' => 'v1/{+parent}/configs',
285 'httpMethod' => 'GET',
286 'parameters' => [
287 'parent' => [
288 'location' => 'path',
289 'type' => 'string',
290 'required' => true,
291 ],
292 'filter' => [
293 'location' => 'query',
294 'type' => 'string',
295 ],
296 'orderBy' => [
297 'location' => 'query',
298 'type' => 'string',
299 ],
300 'pageSize' => [
301 'location' => 'query',
302 'type' => 'integer',
303 ],
304 'pageToken' => [
305 'location' => 'query',
306 'type' => 'string',
307 ],
308 ],
309 ],'patch' => [
310 'path' => 'v1/{+name}',
311 'httpMethod' => 'PATCH',
312 'parameters' => [
313 'name' => [
314 'location' => 'path',
315 'type' => 'string',
316 'required' => true,
317 ],
318 'updateMask' => [
319 'location' => 'query',
320 'type' => 'string',
321 ],
322 ],
323 ],'setIamPolicy' => [
324 'path' => 'v1/{+resource}:setIamPolicy',
325 'httpMethod' => 'POST',
326 'parameters' => [
327 'resource' => [
328 'location' => 'path',
329 'type' => 'string',
330 'required' => true,
331 ],
332 ],
333 ],'testIamPermissions' => [
334 'path' => 'v1/{+resource}:testIamPermissions',
335 'httpMethod' => 'POST',
336 'parameters' => [
337 'resource' => [
338 'location' => 'path',
339 'type' => 'string',
340 'required' => true,
341 ],
342 ],
343 ],
344 ]
345 ]
346 );
347 $this->projects_locations_gateways = new Apigateway\Resource\ProjectsLocationsGateways(
348 $this,
349 $this->serviceName,
350 'gateways',
351 [
352 'methods' => [
353 'create' => [
354 'path' => 'v1/{+parent}/gateways',
355 'httpMethod' => 'POST',
356 'parameters' => [
357 'parent' => [
358 'location' => 'path',
359 'type' => 'string',
360 'required' => true,
361 ],
362 'gatewayId' => [
363 'location' => 'query',
364 'type' => 'string',
365 ],
366 ],
367 ],'delete' => [
368 'path' => 'v1/{+name}',
369 'httpMethod' => 'DELETE',
370 'parameters' => [
371 'name' => [
372 'location' => 'path',
373 'type' => 'string',
374 'required' => true,
375 ],
376 ],
377 ],'get' => [
378 'path' => 'v1/{+name}',
379 'httpMethod' => 'GET',
380 'parameters' => [
381 'name' => [
382 'location' => 'path',
383 'type' => 'string',
384 'required' => true,
385 ],
386 ],
387 ],'getIamPolicy' => [
388 'path' => 'v1/{+resource}:getIamPolicy',
389 'httpMethod' => 'GET',
390 'parameters' => [
391 'resource' => [
392 'location' => 'path',
393 'type' => 'string',
394 'required' => true,
395 ],
396 'options.requestedPolicyVersion' => [
397 'location' => 'query',
398 'type' => 'integer',
399 ],
400 ],
401 ],'list' => [
402 'path' => 'v1/{+parent}/gateways',
403 'httpMethod' => 'GET',
404 'parameters' => [
405 'parent' => [
406 'location' => 'path',
407 'type' => 'string',
408 'required' => true,
409 ],
410 'filter' => [
411 'location' => 'query',
412 'type' => 'string',
413 ],
414 'orderBy' => [
415 'location' => 'query',
416 'type' => 'string',
417 ],
418 'pageSize' => [
419 'location' => 'query',
420 'type' => 'integer',
421 ],
422 'pageToken' => [
423 'location' => 'query',
424 'type' => 'string',
425 ],
426 ],
427 ],'patch' => [
428 'path' => 'v1/{+name}',
429 'httpMethod' => 'PATCH',
430 'parameters' => [
431 'name' => [
432 'location' => 'path',
433 'type' => 'string',
434 'required' => true,
435 ],
436 'updateMask' => [
437 'location' => 'query',
438 'type' => 'string',
439 ],
440 ],
441 ],'setIamPolicy' => [
442 'path' => 'v1/{+resource}:setIamPolicy',
443 'httpMethod' => 'POST',
444 'parameters' => [
445 'resource' => [
446 'location' => 'path',
447 'type' => 'string',
448 'required' => true,
449 ],
450 ],
451 ],'testIamPermissions' => [
452 'path' => 'v1/{+resource}:testIamPermissions',
453 'httpMethod' => 'POST',
454 'parameters' => [
455 'resource' => [
456 'location' => 'path',
457 'type' => 'string',
458 'required' => true,
459 ],
460 ],
461 ],
462 ]
463 ]
464 );
465 $this->projects_locations_operations = new Apigateway\Resource\ProjectsLocationsOperations(
466 $this,
467 $this->serviceName,
468 'operations',
469 [
470 'methods' => [
471 'cancel' => [
472 'path' => 'v1/{+name}:cancel',
473 'httpMethod' => 'POST',
474 'parameters' => [
475 'name' => [
476 'location' => 'path',
477 'type' => 'string',
478 'required' => true,
479 ],
480 ],
481 ],'delete' => [
482 'path' => 'v1/{+name}',
483 'httpMethod' => 'DELETE',
484 'parameters' => [
485 'name' => [
486 'location' => 'path',
487 'type' => 'string',
488 'required' => true,
489 ],
490 ],
491 ],'get' => [
492 'path' => 'v1/{+name}',
493 'httpMethod' => 'GET',
494 'parameters' => [
495 'name' => [
496 'location' => 'path',
497 'type' => 'string',
498 'required' => true,
499 ],
500 ],
501 ],'list' => [
502 'path' => 'v1/{+name}/operations',
503 'httpMethod' => 'GET',
504 'parameters' => [
505 'name' => [
506 'location' => 'path',
507 'type' => 'string',
508 'required' => true,
509 ],
510 'filter' => [
511 'location' => 'query',
512 'type' => 'string',
513 ],
514 'pageSize' => [
515 'location' => 'query',
516 'type' => 'integer',
517 ],
518 'pageToken' => [
519 'location' => 'query',
520 'type' => 'string',
521 ],
522 ],
523 ],
524 ]
525 ]
526 );
527 }
528}
529
530// Adding a class alias for backwards compatibility with the previous class name.
531class_alias(Apigateway::class, 'Google_Service_Apigateway');
Note: See TracBrowser for help on using the repository browser.