source: vendor/google/apiclient-services/src/ContainerAnalysis.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: 22.2 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 ContainerAnalysis (v1).
24 *
25 * <p>
26 * This API is a prerequisite for leveraging Artifact Analysis scanning
27 * capabilities in both Artifact Registry and with Advanced Vulnerability
28 * Insights (runtime scanning) in GKE. In addition, the Container Analysis API
29 * is an implementation of the Grafeas API, which enables storing, querying, and
30 * retrieval of critical metadata about all of your software artifacts.</p>
31 *
32 * <p>
33 * For more information about this service, see the API
34 * <a href="https://cloud.google.com/container-analysis/api/reference/rest/" target="_blank">Documentation</a>
35 * </p>
36 *
37 * @author Google, Inc.
38 */
39class ContainerAnalysis extends \Google\Service
40{
41 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
42 const CLOUD_PLATFORM =
43 "https://www.googleapis.com/auth/cloud-platform";
44
45 public $projects_locations_notes;
46 public $projects_locations_notes_occurrences;
47 public $projects_locations_occurrences;
48 public $projects_locations_resources;
49 public $projects_notes;
50 public $projects_notes_occurrences;
51 public $projects_occurrences;
52 public $projects_resources;
53 public $rootUrlTemplate;
54
55 /**
56 * Constructs the internal representation of the ContainerAnalysis service.
57 *
58 * @param Client|array $clientOrConfig The client used to deliver requests, or a
59 * config array to pass to a new Client instance.
60 * @param string $rootUrl The root URL used for requests to the service.
61 */
62 public function __construct($clientOrConfig = [], $rootUrl = null)
63 {
64 parent::__construct($clientOrConfig);
65 $this->rootUrl = $rootUrl ?: 'https://containeranalysis.googleapis.com/';
66 $this->rootUrlTemplate = $rootUrl ?: 'https://containeranalysis.UNIVERSE_DOMAIN/';
67 $this->servicePath = '';
68 $this->batchPath = 'batch';
69 $this->version = 'v1';
70 $this->serviceName = 'containeranalysis';
71
72 $this->projects_locations_notes = new ContainerAnalysis\Resource\ProjectsLocationsNotes(
73 $this,
74 $this->serviceName,
75 'notes',
76 [
77 'methods' => [
78 'batchCreate' => [
79 'path' => 'v1/{+parent}/notes:batchCreate',
80 'httpMethod' => 'POST',
81 'parameters' => [
82 'parent' => [
83 'location' => 'path',
84 'type' => 'string',
85 'required' => true,
86 ],
87 ],
88 ],'create' => [
89 'path' => 'v1/{+parent}/notes',
90 'httpMethod' => 'POST',
91 'parameters' => [
92 'parent' => [
93 'location' => 'path',
94 'type' => 'string',
95 'required' => true,
96 ],
97 'noteId' => [
98 'location' => 'query',
99 'type' => 'string',
100 ],
101 ],
102 ],'delete' => [
103 'path' => 'v1/{+name}',
104 'httpMethod' => 'DELETE',
105 'parameters' => [
106 'name' => [
107 'location' => 'path',
108 'type' => 'string',
109 'required' => true,
110 ],
111 ],
112 ],'get' => [
113 'path' => 'v1/{+name}',
114 'httpMethod' => 'GET',
115 'parameters' => [
116 'name' => [
117 'location' => 'path',
118 'type' => 'string',
119 'required' => true,
120 ],
121 ],
122 ],'getIamPolicy' => [
123 'path' => 'v1/{+resource}:getIamPolicy',
124 'httpMethod' => 'POST',
125 'parameters' => [
126 'resource' => [
127 'location' => 'path',
128 'type' => 'string',
129 'required' => true,
130 ],
131 ],
132 ],'list' => [
133 'path' => 'v1/{+parent}/notes',
134 'httpMethod' => 'GET',
135 'parameters' => [
136 'parent' => [
137 'location' => 'path',
138 'type' => 'string',
139 'required' => true,
140 ],
141 'filter' => [
142 'location' => 'query',
143 'type' => 'string',
144 ],
145 'pageSize' => [
146 'location' => 'query',
147 'type' => 'integer',
148 ],
149 'pageToken' => [
150 'location' => 'query',
151 'type' => 'string',
152 ],
153 ],
154 ],'patch' => [
155 'path' => 'v1/{+name}',
156 'httpMethod' => 'PATCH',
157 'parameters' => [
158 'name' => [
159 'location' => 'path',
160 'type' => 'string',
161 'required' => true,
162 ],
163 'updateMask' => [
164 'location' => 'query',
165 'type' => 'string',
166 ],
167 ],
168 ],'setIamPolicy' => [
169 'path' => 'v1/{+resource}:setIamPolicy',
170 'httpMethod' => 'POST',
171 'parameters' => [
172 'resource' => [
173 'location' => 'path',
174 'type' => 'string',
175 'required' => true,
176 ],
177 ],
178 ],'testIamPermissions' => [
179 'path' => 'v1/{+resource}:testIamPermissions',
180 'httpMethod' => 'POST',
181 'parameters' => [
182 'resource' => [
183 'location' => 'path',
184 'type' => 'string',
185 'required' => true,
186 ],
187 ],
188 ],
189 ]
190 ]
191 );
192 $this->projects_locations_notes_occurrences = new ContainerAnalysis\Resource\ProjectsLocationsNotesOccurrences(
193 $this,
194 $this->serviceName,
195 'occurrences',
196 [
197 'methods' => [
198 'list' => [
199 'path' => 'v1/{+name}/occurrences',
200 'httpMethod' => 'GET',
201 'parameters' => [
202 'name' => [
203 'location' => 'path',
204 'type' => 'string',
205 'required' => true,
206 ],
207 'filter' => [
208 'location' => 'query',
209 'type' => 'string',
210 ],
211 'pageSize' => [
212 'location' => 'query',
213 'type' => 'integer',
214 ],
215 'pageToken' => [
216 'location' => 'query',
217 'type' => 'string',
218 ],
219 ],
220 ],
221 ]
222 ]
223 );
224 $this->projects_locations_occurrences = new ContainerAnalysis\Resource\ProjectsLocationsOccurrences(
225 $this,
226 $this->serviceName,
227 'occurrences',
228 [
229 'methods' => [
230 'batchCreate' => [
231 'path' => 'v1/{+parent}/occurrences:batchCreate',
232 'httpMethod' => 'POST',
233 'parameters' => [
234 'parent' => [
235 'location' => 'path',
236 'type' => 'string',
237 'required' => true,
238 ],
239 ],
240 ],'create' => [
241 'path' => 'v1/{+parent}/occurrences',
242 'httpMethod' => 'POST',
243 'parameters' => [
244 'parent' => [
245 'location' => 'path',
246 'type' => 'string',
247 'required' => true,
248 ],
249 ],
250 ],'delete' => [
251 'path' => 'v1/{+name}',
252 'httpMethod' => 'DELETE',
253 'parameters' => [
254 'name' => [
255 'location' => 'path',
256 'type' => 'string',
257 'required' => true,
258 ],
259 ],
260 ],'get' => [
261 'path' => 'v1/{+name}',
262 'httpMethod' => 'GET',
263 'parameters' => [
264 'name' => [
265 'location' => 'path',
266 'type' => 'string',
267 'required' => true,
268 ],
269 ],
270 ],'getIamPolicy' => [
271 'path' => 'v1/{+resource}:getIamPolicy',
272 'httpMethod' => 'POST',
273 'parameters' => [
274 'resource' => [
275 'location' => 'path',
276 'type' => 'string',
277 'required' => true,
278 ],
279 ],
280 ],'getNotes' => [
281 'path' => 'v1/{+name}/notes',
282 'httpMethod' => 'GET',
283 'parameters' => [
284 'name' => [
285 'location' => 'path',
286 'type' => 'string',
287 'required' => true,
288 ],
289 ],
290 ],'getVulnerabilitySummary' => [
291 'path' => 'v1/{+parent}/occurrences:vulnerabilitySummary',
292 'httpMethod' => 'GET',
293 'parameters' => [
294 'parent' => [
295 'location' => 'path',
296 'type' => 'string',
297 'required' => true,
298 ],
299 'filter' => [
300 'location' => 'query',
301 'type' => 'string',
302 ],
303 ],
304 ],'list' => [
305 'path' => 'v1/{+parent}/occurrences',
306 'httpMethod' => 'GET',
307 'parameters' => [
308 'parent' => [
309 'location' => 'path',
310 'type' => 'string',
311 'required' => true,
312 ],
313 'filter' => [
314 'location' => 'query',
315 'type' => 'string',
316 ],
317 'pageSize' => [
318 'location' => 'query',
319 'type' => 'integer',
320 ],
321 'pageToken' => [
322 'location' => 'query',
323 'type' => 'string',
324 ],
325 ],
326 ],'patch' => [
327 'path' => 'v1/{+name}',
328 'httpMethod' => 'PATCH',
329 'parameters' => [
330 'name' => [
331 'location' => 'path',
332 'type' => 'string',
333 'required' => true,
334 ],
335 'updateMask' => [
336 'location' => 'query',
337 'type' => 'string',
338 ],
339 ],
340 ],'setIamPolicy' => [
341 'path' => 'v1/{+resource}:setIamPolicy',
342 'httpMethod' => 'POST',
343 'parameters' => [
344 'resource' => [
345 'location' => 'path',
346 'type' => 'string',
347 'required' => true,
348 ],
349 ],
350 ],'testIamPermissions' => [
351 'path' => 'v1/{+resource}:testIamPermissions',
352 'httpMethod' => 'POST',
353 'parameters' => [
354 'resource' => [
355 'location' => 'path',
356 'type' => 'string',
357 'required' => true,
358 ],
359 ],
360 ],
361 ]
362 ]
363 );
364 $this->projects_locations_resources = new ContainerAnalysis\Resource\ProjectsLocationsResources(
365 $this,
366 $this->serviceName,
367 'resources',
368 [
369 'methods' => [
370 'exportSBOM' => [
371 'path' => 'v1/{+name}:exportSBOM',
372 'httpMethod' => 'POST',
373 'parameters' => [
374 'name' => [
375 'location' => 'path',
376 'type' => 'string',
377 'required' => true,
378 ],
379 ],
380 ],
381 ]
382 ]
383 );
384 $this->projects_notes = new ContainerAnalysis\Resource\ProjectsNotes(
385 $this,
386 $this->serviceName,
387 'notes',
388 [
389 'methods' => [
390 'batchCreate' => [
391 'path' => 'v1/{+parent}/notes:batchCreate',
392 'httpMethod' => 'POST',
393 'parameters' => [
394 'parent' => [
395 'location' => 'path',
396 'type' => 'string',
397 'required' => true,
398 ],
399 ],
400 ],'create' => [
401 'path' => 'v1/{+parent}/notes',
402 'httpMethod' => 'POST',
403 'parameters' => [
404 'parent' => [
405 'location' => 'path',
406 'type' => 'string',
407 'required' => true,
408 ],
409 'noteId' => [
410 'location' => 'query',
411 'type' => 'string',
412 ],
413 ],
414 ],'delete' => [
415 'path' => 'v1/{+name}',
416 'httpMethod' => 'DELETE',
417 'parameters' => [
418 'name' => [
419 'location' => 'path',
420 'type' => 'string',
421 'required' => true,
422 ],
423 ],
424 ],'get' => [
425 'path' => 'v1/{+name}',
426 'httpMethod' => 'GET',
427 'parameters' => [
428 'name' => [
429 'location' => 'path',
430 'type' => 'string',
431 'required' => true,
432 ],
433 ],
434 ],'getIamPolicy' => [
435 'path' => 'v1/{+resource}:getIamPolicy',
436 'httpMethod' => 'POST',
437 'parameters' => [
438 'resource' => [
439 'location' => 'path',
440 'type' => 'string',
441 'required' => true,
442 ],
443 ],
444 ],'list' => [
445 'path' => 'v1/{+parent}/notes',
446 'httpMethod' => 'GET',
447 'parameters' => [
448 'parent' => [
449 'location' => 'path',
450 'type' => 'string',
451 'required' => true,
452 ],
453 'filter' => [
454 'location' => 'query',
455 'type' => 'string',
456 ],
457 'pageSize' => [
458 'location' => 'query',
459 'type' => 'integer',
460 ],
461 'pageToken' => [
462 'location' => 'query',
463 'type' => 'string',
464 ],
465 ],
466 ],'patch' => [
467 'path' => 'v1/{+name}',
468 'httpMethod' => 'PATCH',
469 'parameters' => [
470 'name' => [
471 'location' => 'path',
472 'type' => 'string',
473 'required' => true,
474 ],
475 'updateMask' => [
476 'location' => 'query',
477 'type' => 'string',
478 ],
479 ],
480 ],'setIamPolicy' => [
481 'path' => 'v1/{+resource}:setIamPolicy',
482 'httpMethod' => 'POST',
483 'parameters' => [
484 'resource' => [
485 'location' => 'path',
486 'type' => 'string',
487 'required' => true,
488 ],
489 ],
490 ],'testIamPermissions' => [
491 'path' => 'v1/{+resource}:testIamPermissions',
492 'httpMethod' => 'POST',
493 'parameters' => [
494 'resource' => [
495 'location' => 'path',
496 'type' => 'string',
497 'required' => true,
498 ],
499 ],
500 ],
501 ]
502 ]
503 );
504 $this->projects_notes_occurrences = new ContainerAnalysis\Resource\ProjectsNotesOccurrences(
505 $this,
506 $this->serviceName,
507 'occurrences',
508 [
509 'methods' => [
510 'list' => [
511 'path' => 'v1/{+name}/occurrences',
512 'httpMethod' => 'GET',
513 'parameters' => [
514 'name' => [
515 'location' => 'path',
516 'type' => 'string',
517 'required' => true,
518 ],
519 'filter' => [
520 'location' => 'query',
521 'type' => 'string',
522 ],
523 'pageSize' => [
524 'location' => 'query',
525 'type' => 'integer',
526 ],
527 'pageToken' => [
528 'location' => 'query',
529 'type' => 'string',
530 ],
531 ],
532 ],
533 ]
534 ]
535 );
536 $this->projects_occurrences = new ContainerAnalysis\Resource\ProjectsOccurrences(
537 $this,
538 $this->serviceName,
539 'occurrences',
540 [
541 'methods' => [
542 'batchCreate' => [
543 'path' => 'v1/{+parent}/occurrences:batchCreate',
544 'httpMethod' => 'POST',
545 'parameters' => [
546 'parent' => [
547 'location' => 'path',
548 'type' => 'string',
549 'required' => true,
550 ],
551 ],
552 ],'create' => [
553 'path' => 'v1/{+parent}/occurrences',
554 'httpMethod' => 'POST',
555 'parameters' => [
556 'parent' => [
557 'location' => 'path',
558 'type' => 'string',
559 'required' => true,
560 ],
561 ],
562 ],'delete' => [
563 'path' => 'v1/{+name}',
564 'httpMethod' => 'DELETE',
565 'parameters' => [
566 'name' => [
567 'location' => 'path',
568 'type' => 'string',
569 'required' => true,
570 ],
571 ],
572 ],'get' => [
573 'path' => 'v1/{+name}',
574 'httpMethod' => 'GET',
575 'parameters' => [
576 'name' => [
577 'location' => 'path',
578 'type' => 'string',
579 'required' => true,
580 ],
581 ],
582 ],'getIamPolicy' => [
583 'path' => 'v1/{+resource}:getIamPolicy',
584 'httpMethod' => 'POST',
585 'parameters' => [
586 'resource' => [
587 'location' => 'path',
588 'type' => 'string',
589 'required' => true,
590 ],
591 ],
592 ],'getNotes' => [
593 'path' => 'v1/{+name}/notes',
594 'httpMethod' => 'GET',
595 'parameters' => [
596 'name' => [
597 'location' => 'path',
598 'type' => 'string',
599 'required' => true,
600 ],
601 ],
602 ],'getVulnerabilitySummary' => [
603 'path' => 'v1/{+parent}/occurrences:vulnerabilitySummary',
604 'httpMethod' => 'GET',
605 'parameters' => [
606 'parent' => [
607 'location' => 'path',
608 'type' => 'string',
609 'required' => true,
610 ],
611 'filter' => [
612 'location' => 'query',
613 'type' => 'string',
614 ],
615 ],
616 ],'list' => [
617 'path' => 'v1/{+parent}/occurrences',
618 'httpMethod' => 'GET',
619 'parameters' => [
620 'parent' => [
621 'location' => 'path',
622 'type' => 'string',
623 'required' => true,
624 ],
625 'filter' => [
626 'location' => 'query',
627 'type' => 'string',
628 ],
629 'pageSize' => [
630 'location' => 'query',
631 'type' => 'integer',
632 ],
633 'pageToken' => [
634 'location' => 'query',
635 'type' => 'string',
636 ],
637 ],
638 ],'patch' => [
639 'path' => 'v1/{+name}',
640 'httpMethod' => 'PATCH',
641 'parameters' => [
642 'name' => [
643 'location' => 'path',
644 'type' => 'string',
645 'required' => true,
646 ],
647 'updateMask' => [
648 'location' => 'query',
649 'type' => 'string',
650 ],
651 ],
652 ],'setIamPolicy' => [
653 'path' => 'v1/{+resource}:setIamPolicy',
654 'httpMethod' => 'POST',
655 'parameters' => [
656 'resource' => [
657 'location' => 'path',
658 'type' => 'string',
659 'required' => true,
660 ],
661 ],
662 ],'testIamPermissions' => [
663 'path' => 'v1/{+resource}:testIamPermissions',
664 'httpMethod' => 'POST',
665 'parameters' => [
666 'resource' => [
667 'location' => 'path',
668 'type' => 'string',
669 'required' => true,
670 ],
671 ],
672 ],
673 ]
674 ]
675 );
676 $this->projects_resources = new ContainerAnalysis\Resource\ProjectsResources(
677 $this,
678 $this->serviceName,
679 'resources',
680 [
681 'methods' => [
682 'exportSBOM' => [
683 'path' => 'v1/{+name}:exportSBOM',
684 'httpMethod' => 'POST',
685 'parameters' => [
686 'name' => [
687 'location' => 'path',
688 'type' => 'string',
689 'required' => true,
690 ],
691 ],
692 ],
693 ]
694 ]
695 );
696 }
697}
698
699// Adding a class alias for backwards compatibility with the previous class name.
700class_alias(ContainerAnalysis::class, 'Google_Service_ContainerAnalysis');
Note: See TracBrowser for help on using the repository browser.