source: vendor/google/apiclient-services/src/CloudKMS.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: 30.1 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 CloudKMS (v1).
24 *
25 * <p>
26 * Manages keys and performs cryptographic operations in a central cloud
27 * service, for direct use by other cloud resources and applications.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/kms/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class CloudKMS 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 and manage your keys and secrets stored in Cloud Key Management Service. */
42 const CLOUDKMS =
43 "https://www.googleapis.com/auth/cloudkms";
44
45 public $folders;
46 public $projects;
47 public $projects_locations;
48 public $projects_locations_ekmConfig;
49 public $projects_locations_ekmConnections;
50 public $projects_locations_keyHandles;
51 public $projects_locations_keyRings;
52 public $projects_locations_keyRings_cryptoKeys;
53 public $projects_locations_keyRings_cryptoKeys_cryptoKeyVersions;
54 public $projects_locations_keyRings_importJobs;
55 public $projects_locations_operations;
56 public $rootUrlTemplate;
57
58 /**
59 * Constructs the internal representation of the CloudKMS service.
60 *
61 * @param Client|array $clientOrConfig The client used to deliver requests, or a
62 * config array to pass to a new Client instance.
63 * @param string $rootUrl The root URL used for requests to the service.
64 */
65 public function __construct($clientOrConfig = [], $rootUrl = null)
66 {
67 parent::__construct($clientOrConfig);
68 $this->rootUrl = $rootUrl ?: 'https://cloudkms.googleapis.com/';
69 $this->rootUrlTemplate = $rootUrl ?: 'https://cloudkms.UNIVERSE_DOMAIN/';
70 $this->servicePath = '';
71 $this->batchPath = 'batch';
72 $this->version = 'v1';
73 $this->serviceName = 'cloudkms';
74
75 $this->folders = new CloudKMS\Resource\Folders(
76 $this,
77 $this->serviceName,
78 'folders',
79 [
80 'methods' => [
81 'getAutokeyConfig' => [
82 'path' => 'v1/{+name}',
83 'httpMethod' => 'GET',
84 'parameters' => [
85 'name' => [
86 'location' => 'path',
87 'type' => 'string',
88 'required' => true,
89 ],
90 ],
91 ],'updateAutokeyConfig' => [
92 'path' => 'v1/{+name}',
93 'httpMethod' => 'PATCH',
94 'parameters' => [
95 'name' => [
96 'location' => 'path',
97 'type' => 'string',
98 'required' => true,
99 ],
100 'updateMask' => [
101 'location' => 'query',
102 'type' => 'string',
103 ],
104 ],
105 ],
106 ]
107 ]
108 );
109 $this->projects = new CloudKMS\Resource\Projects(
110 $this,
111 $this->serviceName,
112 'projects',
113 [
114 'methods' => [
115 'showEffectiveAutokeyConfig' => [
116 'path' => 'v1/{+parent}:showEffectiveAutokeyConfig',
117 'httpMethod' => 'GET',
118 'parameters' => [
119 'parent' => [
120 'location' => 'path',
121 'type' => 'string',
122 'required' => true,
123 ],
124 ],
125 ],
126 ]
127 ]
128 );
129 $this->projects_locations = new CloudKMS\Resource\ProjectsLocations(
130 $this,
131 $this->serviceName,
132 'locations',
133 [
134 'methods' => [
135 'generateRandomBytes' => [
136 'path' => 'v1/{+location}:generateRandomBytes',
137 'httpMethod' => 'POST',
138 'parameters' => [
139 'location' => [
140 'location' => 'path',
141 'type' => 'string',
142 'required' => true,
143 ],
144 ],
145 ],'get' => [
146 'path' => 'v1/{+name}',
147 'httpMethod' => 'GET',
148 'parameters' => [
149 'name' => [
150 'location' => 'path',
151 'type' => 'string',
152 'required' => true,
153 ],
154 ],
155 ],'getEkmConfig' => [
156 'path' => 'v1/{+name}',
157 'httpMethod' => 'GET',
158 'parameters' => [
159 'name' => [
160 'location' => 'path',
161 'type' => 'string',
162 'required' => true,
163 ],
164 ],
165 ],'list' => [
166 'path' => 'v1/{+name}/locations',
167 'httpMethod' => 'GET',
168 'parameters' => [
169 'name' => [
170 'location' => 'path',
171 'type' => 'string',
172 'required' => true,
173 ],
174 'filter' => [
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 ],'updateEkmConfig' => [
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 ],
202 ]
203 ]
204 );
205 $this->projects_locations_ekmConfig = new CloudKMS\Resource\ProjectsLocationsEkmConfig(
206 $this,
207 $this->serviceName,
208 'ekmConfig',
209 [
210 'methods' => [
211 'getIamPolicy' => [
212 'path' => 'v1/{+resource}:getIamPolicy',
213 'httpMethod' => 'GET',
214 'parameters' => [
215 'resource' => [
216 'location' => 'path',
217 'type' => 'string',
218 'required' => true,
219 ],
220 'options.requestedPolicyVersion' => [
221 'location' => 'query',
222 'type' => 'integer',
223 ],
224 ],
225 ],'setIamPolicy' => [
226 'path' => 'v1/{+resource}:setIamPolicy',
227 'httpMethod' => 'POST',
228 'parameters' => [
229 'resource' => [
230 'location' => 'path',
231 'type' => 'string',
232 'required' => true,
233 ],
234 ],
235 ],'testIamPermissions' => [
236 'path' => 'v1/{+resource}:testIamPermissions',
237 'httpMethod' => 'POST',
238 'parameters' => [
239 'resource' => [
240 'location' => 'path',
241 'type' => 'string',
242 'required' => true,
243 ],
244 ],
245 ],
246 ]
247 ]
248 );
249 $this->projects_locations_ekmConnections = new CloudKMS\Resource\ProjectsLocationsEkmConnections(
250 $this,
251 $this->serviceName,
252 'ekmConnections',
253 [
254 'methods' => [
255 'create' => [
256 'path' => 'v1/{+parent}/ekmConnections',
257 'httpMethod' => 'POST',
258 'parameters' => [
259 'parent' => [
260 'location' => 'path',
261 'type' => 'string',
262 'required' => true,
263 ],
264 'ekmConnectionId' => [
265 'location' => 'query',
266 'type' => 'string',
267 ],
268 ],
269 ],'get' => [
270 'path' => 'v1/{+name}',
271 'httpMethod' => 'GET',
272 'parameters' => [
273 'name' => [
274 'location' => 'path',
275 'type' => 'string',
276 'required' => true,
277 ],
278 ],
279 ],'getIamPolicy' => [
280 'path' => 'v1/{+resource}:getIamPolicy',
281 'httpMethod' => 'GET',
282 'parameters' => [
283 'resource' => [
284 'location' => 'path',
285 'type' => 'string',
286 'required' => true,
287 ],
288 'options.requestedPolicyVersion' => [
289 'location' => 'query',
290 'type' => 'integer',
291 ],
292 ],
293 ],'list' => [
294 'path' => 'v1/{+parent}/ekmConnections',
295 'httpMethod' => 'GET',
296 'parameters' => [
297 'parent' => [
298 'location' => 'path',
299 'type' => 'string',
300 'required' => true,
301 ],
302 'filter' => [
303 'location' => 'query',
304 'type' => 'string',
305 ],
306 'orderBy' => [
307 'location' => 'query',
308 'type' => 'string',
309 ],
310 'pageSize' => [
311 'location' => 'query',
312 'type' => 'integer',
313 ],
314 'pageToken' => [
315 'location' => 'query',
316 'type' => 'string',
317 ],
318 ],
319 ],'patch' => [
320 'path' => 'v1/{+name}',
321 'httpMethod' => 'PATCH',
322 'parameters' => [
323 'name' => [
324 'location' => 'path',
325 'type' => 'string',
326 'required' => true,
327 ],
328 'updateMask' => [
329 'location' => 'query',
330 'type' => 'string',
331 ],
332 ],
333 ],'setIamPolicy' => [
334 'path' => 'v1/{+resource}:setIamPolicy',
335 'httpMethod' => 'POST',
336 'parameters' => [
337 'resource' => [
338 'location' => 'path',
339 'type' => 'string',
340 'required' => true,
341 ],
342 ],
343 ],'testIamPermissions' => [
344 'path' => 'v1/{+resource}:testIamPermissions',
345 'httpMethod' => 'POST',
346 'parameters' => [
347 'resource' => [
348 'location' => 'path',
349 'type' => 'string',
350 'required' => true,
351 ],
352 ],
353 ],'verifyConnectivity' => [
354 'path' => 'v1/{+name}:verifyConnectivity',
355 'httpMethod' => 'GET',
356 'parameters' => [
357 'name' => [
358 'location' => 'path',
359 'type' => 'string',
360 'required' => true,
361 ],
362 ],
363 ],
364 ]
365 ]
366 );
367 $this->projects_locations_keyHandles = new CloudKMS\Resource\ProjectsLocationsKeyHandles(
368 $this,
369 $this->serviceName,
370 'keyHandles',
371 [
372 'methods' => [
373 'create' => [
374 'path' => 'v1/{+parent}/keyHandles',
375 'httpMethod' => 'POST',
376 'parameters' => [
377 'parent' => [
378 'location' => 'path',
379 'type' => 'string',
380 'required' => true,
381 ],
382 'keyHandleId' => [
383 'location' => 'query',
384 'type' => 'string',
385 ],
386 ],
387 ],'get' => [
388 'path' => 'v1/{+name}',
389 'httpMethod' => 'GET',
390 'parameters' => [
391 'name' => [
392 'location' => 'path',
393 'type' => 'string',
394 'required' => true,
395 ],
396 ],
397 ],'list' => [
398 'path' => 'v1/{+parent}/keyHandles',
399 'httpMethod' => 'GET',
400 'parameters' => [
401 'parent' => [
402 'location' => 'path',
403 'type' => 'string',
404 'required' => true,
405 ],
406 'filter' => [
407 'location' => 'query',
408 'type' => 'string',
409 ],
410 'pageSize' => [
411 'location' => 'query',
412 'type' => 'integer',
413 ],
414 'pageToken' => [
415 'location' => 'query',
416 'type' => 'string',
417 ],
418 ],
419 ],
420 ]
421 ]
422 );
423 $this->projects_locations_keyRings = new CloudKMS\Resource\ProjectsLocationsKeyRings(
424 $this,
425 $this->serviceName,
426 'keyRings',
427 [
428 'methods' => [
429 'create' => [
430 'path' => 'v1/{+parent}/keyRings',
431 'httpMethod' => 'POST',
432 'parameters' => [
433 'parent' => [
434 'location' => 'path',
435 'type' => 'string',
436 'required' => true,
437 ],
438 'keyRingId' => [
439 'location' => 'query',
440 'type' => 'string',
441 ],
442 ],
443 ],'get' => [
444 'path' => 'v1/{+name}',
445 'httpMethod' => 'GET',
446 'parameters' => [
447 'name' => [
448 'location' => 'path',
449 'type' => 'string',
450 'required' => true,
451 ],
452 ],
453 ],'getIamPolicy' => [
454 'path' => 'v1/{+resource}:getIamPolicy',
455 'httpMethod' => 'GET',
456 'parameters' => [
457 'resource' => [
458 'location' => 'path',
459 'type' => 'string',
460 'required' => true,
461 ],
462 'options.requestedPolicyVersion' => [
463 'location' => 'query',
464 'type' => 'integer',
465 ],
466 ],
467 ],'list' => [
468 'path' => 'v1/{+parent}/keyRings',
469 'httpMethod' => 'GET',
470 'parameters' => [
471 'parent' => [
472 'location' => 'path',
473 'type' => 'string',
474 'required' => true,
475 ],
476 'filter' => [
477 'location' => 'query',
478 'type' => 'string',
479 ],
480 'orderBy' => [
481 'location' => 'query',
482 'type' => 'string',
483 ],
484 'pageSize' => [
485 'location' => 'query',
486 'type' => 'integer',
487 ],
488 'pageToken' => [
489 'location' => 'query',
490 'type' => 'string',
491 ],
492 ],
493 ],'setIamPolicy' => [
494 'path' => 'v1/{+resource}:setIamPolicy',
495 'httpMethod' => 'POST',
496 'parameters' => [
497 'resource' => [
498 'location' => 'path',
499 'type' => 'string',
500 'required' => true,
501 ],
502 ],
503 ],'testIamPermissions' => [
504 'path' => 'v1/{+resource}:testIamPermissions',
505 'httpMethod' => 'POST',
506 'parameters' => [
507 'resource' => [
508 'location' => 'path',
509 'type' => 'string',
510 'required' => true,
511 ],
512 ],
513 ],
514 ]
515 ]
516 );
517 $this->projects_locations_keyRings_cryptoKeys = new CloudKMS\Resource\ProjectsLocationsKeyRingsCryptoKeys(
518 $this,
519 $this->serviceName,
520 'cryptoKeys',
521 [
522 'methods' => [
523 'create' => [
524 'path' => 'v1/{+parent}/cryptoKeys',
525 'httpMethod' => 'POST',
526 'parameters' => [
527 'parent' => [
528 'location' => 'path',
529 'type' => 'string',
530 'required' => true,
531 ],
532 'cryptoKeyId' => [
533 'location' => 'query',
534 'type' => 'string',
535 ],
536 'skipInitialVersionCreation' => [
537 'location' => 'query',
538 'type' => 'boolean',
539 ],
540 ],
541 ],'decrypt' => [
542 'path' => 'v1/{+name}:decrypt',
543 'httpMethod' => 'POST',
544 'parameters' => [
545 'name' => [
546 'location' => 'path',
547 'type' => 'string',
548 'required' => true,
549 ],
550 ],
551 ],'encrypt' => [
552 'path' => 'v1/{+name}:encrypt',
553 'httpMethod' => 'POST',
554 'parameters' => [
555 'name' => [
556 'location' => 'path',
557 'type' => 'string',
558 'required' => true,
559 ],
560 ],
561 ],'get' => [
562 'path' => 'v1/{+name}',
563 'httpMethod' => 'GET',
564 'parameters' => [
565 'name' => [
566 'location' => 'path',
567 'type' => 'string',
568 'required' => true,
569 ],
570 ],
571 ],'getIamPolicy' => [
572 'path' => 'v1/{+resource}:getIamPolicy',
573 'httpMethod' => 'GET',
574 'parameters' => [
575 'resource' => [
576 'location' => 'path',
577 'type' => 'string',
578 'required' => true,
579 ],
580 'options.requestedPolicyVersion' => [
581 'location' => 'query',
582 'type' => 'integer',
583 ],
584 ],
585 ],'list' => [
586 'path' => 'v1/{+parent}/cryptoKeys',
587 'httpMethod' => 'GET',
588 'parameters' => [
589 'parent' => [
590 'location' => 'path',
591 'type' => 'string',
592 'required' => true,
593 ],
594 'filter' => [
595 'location' => 'query',
596 'type' => 'string',
597 ],
598 'orderBy' => [
599 'location' => 'query',
600 'type' => 'string',
601 ],
602 'pageSize' => [
603 'location' => 'query',
604 'type' => 'integer',
605 ],
606 'pageToken' => [
607 'location' => 'query',
608 'type' => 'string',
609 ],
610 'versionView' => [
611 'location' => 'query',
612 'type' => 'string',
613 ],
614 ],
615 ],'patch' => [
616 'path' => 'v1/{+name}',
617 'httpMethod' => 'PATCH',
618 'parameters' => [
619 'name' => [
620 'location' => 'path',
621 'type' => 'string',
622 'required' => true,
623 ],
624 'updateMask' => [
625 'location' => 'query',
626 'type' => 'string',
627 ],
628 ],
629 ],'setIamPolicy' => [
630 'path' => 'v1/{+resource}:setIamPolicy',
631 'httpMethod' => 'POST',
632 'parameters' => [
633 'resource' => [
634 'location' => 'path',
635 'type' => 'string',
636 'required' => true,
637 ],
638 ],
639 ],'testIamPermissions' => [
640 'path' => 'v1/{+resource}:testIamPermissions',
641 'httpMethod' => 'POST',
642 'parameters' => [
643 'resource' => [
644 'location' => 'path',
645 'type' => 'string',
646 'required' => true,
647 ],
648 ],
649 ],'updatePrimaryVersion' => [
650 'path' => 'v1/{+name}:updatePrimaryVersion',
651 'httpMethod' => 'POST',
652 'parameters' => [
653 'name' => [
654 'location' => 'path',
655 'type' => 'string',
656 'required' => true,
657 ],
658 ],
659 ],
660 ]
661 ]
662 );
663 $this->projects_locations_keyRings_cryptoKeys_cryptoKeyVersions = new CloudKMS\Resource\ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions(
664 $this,
665 $this->serviceName,
666 'cryptoKeyVersions',
667 [
668 'methods' => [
669 'asymmetricDecrypt' => [
670 'path' => 'v1/{+name}:asymmetricDecrypt',
671 'httpMethod' => 'POST',
672 'parameters' => [
673 'name' => [
674 'location' => 'path',
675 'type' => 'string',
676 'required' => true,
677 ],
678 ],
679 ],'asymmetricSign' => [
680 'path' => 'v1/{+name}:asymmetricSign',
681 'httpMethod' => 'POST',
682 'parameters' => [
683 'name' => [
684 'location' => 'path',
685 'type' => 'string',
686 'required' => true,
687 ],
688 ],
689 ],'create' => [
690 'path' => 'v1/{+parent}/cryptoKeyVersions',
691 'httpMethod' => 'POST',
692 'parameters' => [
693 'parent' => [
694 'location' => 'path',
695 'type' => 'string',
696 'required' => true,
697 ],
698 ],
699 ],'destroy' => [
700 'path' => 'v1/{+name}:destroy',
701 'httpMethod' => 'POST',
702 'parameters' => [
703 'name' => [
704 'location' => 'path',
705 'type' => 'string',
706 'required' => true,
707 ],
708 ],
709 ],'get' => [
710 'path' => 'v1/{+name}',
711 'httpMethod' => 'GET',
712 'parameters' => [
713 'name' => [
714 'location' => 'path',
715 'type' => 'string',
716 'required' => true,
717 ],
718 ],
719 ],'getPublicKey' => [
720 'path' => 'v1/{+name}/publicKey',
721 'httpMethod' => 'GET',
722 'parameters' => [
723 'name' => [
724 'location' => 'path',
725 'type' => 'string',
726 'required' => true,
727 ],
728 ],
729 ],'import' => [
730 'path' => 'v1/{+parent}/cryptoKeyVersions:import',
731 'httpMethod' => 'POST',
732 'parameters' => [
733 'parent' => [
734 'location' => 'path',
735 'type' => 'string',
736 'required' => true,
737 ],
738 ],
739 ],'list' => [
740 'path' => 'v1/{+parent}/cryptoKeyVersions',
741 'httpMethod' => 'GET',
742 'parameters' => [
743 'parent' => [
744 'location' => 'path',
745 'type' => 'string',
746 'required' => true,
747 ],
748 'filter' => [
749 'location' => 'query',
750 'type' => 'string',
751 ],
752 'orderBy' => [
753 'location' => 'query',
754 'type' => 'string',
755 ],
756 'pageSize' => [
757 'location' => 'query',
758 'type' => 'integer',
759 ],
760 'pageToken' => [
761 'location' => 'query',
762 'type' => 'string',
763 ],
764 'view' => [
765 'location' => 'query',
766 'type' => 'string',
767 ],
768 ],
769 ],'macSign' => [
770 'path' => 'v1/{+name}:macSign',
771 'httpMethod' => 'POST',
772 'parameters' => [
773 'name' => [
774 'location' => 'path',
775 'type' => 'string',
776 'required' => true,
777 ],
778 ],
779 ],'macVerify' => [
780 'path' => 'v1/{+name}:macVerify',
781 'httpMethod' => 'POST',
782 'parameters' => [
783 'name' => [
784 'location' => 'path',
785 'type' => 'string',
786 'required' => true,
787 ],
788 ],
789 ],'patch' => [
790 'path' => 'v1/{+name}',
791 'httpMethod' => 'PATCH',
792 'parameters' => [
793 'name' => [
794 'location' => 'path',
795 'type' => 'string',
796 'required' => true,
797 ],
798 'updateMask' => [
799 'location' => 'query',
800 'type' => 'string',
801 ],
802 ],
803 ],'rawDecrypt' => [
804 'path' => 'v1/{+name}:rawDecrypt',
805 'httpMethod' => 'POST',
806 'parameters' => [
807 'name' => [
808 'location' => 'path',
809 'type' => 'string',
810 'required' => true,
811 ],
812 ],
813 ],'rawEncrypt' => [
814 'path' => 'v1/{+name}:rawEncrypt',
815 'httpMethod' => 'POST',
816 'parameters' => [
817 'name' => [
818 'location' => 'path',
819 'type' => 'string',
820 'required' => true,
821 ],
822 ],
823 ],'restore' => [
824 'path' => 'v1/{+name}:restore',
825 'httpMethod' => 'POST',
826 'parameters' => [
827 'name' => [
828 'location' => 'path',
829 'type' => 'string',
830 'required' => true,
831 ],
832 ],
833 ],
834 ]
835 ]
836 );
837 $this->projects_locations_keyRings_importJobs = new CloudKMS\Resource\ProjectsLocationsKeyRingsImportJobs(
838 $this,
839 $this->serviceName,
840 'importJobs',
841 [
842 'methods' => [
843 'create' => [
844 'path' => 'v1/{+parent}/importJobs',
845 'httpMethod' => 'POST',
846 'parameters' => [
847 'parent' => [
848 'location' => 'path',
849 'type' => 'string',
850 'required' => true,
851 ],
852 'importJobId' => [
853 'location' => 'query',
854 'type' => 'string',
855 ],
856 ],
857 ],'get' => [
858 'path' => 'v1/{+name}',
859 'httpMethod' => 'GET',
860 'parameters' => [
861 'name' => [
862 'location' => 'path',
863 'type' => 'string',
864 'required' => true,
865 ],
866 ],
867 ],'getIamPolicy' => [
868 'path' => 'v1/{+resource}:getIamPolicy',
869 'httpMethod' => 'GET',
870 'parameters' => [
871 'resource' => [
872 'location' => 'path',
873 'type' => 'string',
874 'required' => true,
875 ],
876 'options.requestedPolicyVersion' => [
877 'location' => 'query',
878 'type' => 'integer',
879 ],
880 ],
881 ],'list' => [
882 'path' => 'v1/{+parent}/importJobs',
883 'httpMethod' => 'GET',
884 'parameters' => [
885 'parent' => [
886 'location' => 'path',
887 'type' => 'string',
888 'required' => true,
889 ],
890 'filter' => [
891 'location' => 'query',
892 'type' => 'string',
893 ],
894 'orderBy' => [
895 'location' => 'query',
896 'type' => 'string',
897 ],
898 'pageSize' => [
899 'location' => 'query',
900 'type' => 'integer',
901 ],
902 'pageToken' => [
903 'location' => 'query',
904 'type' => 'string',
905 ],
906 ],
907 ],'setIamPolicy' => [
908 'path' => 'v1/{+resource}:setIamPolicy',
909 'httpMethod' => 'POST',
910 'parameters' => [
911 'resource' => [
912 'location' => 'path',
913 'type' => 'string',
914 'required' => true,
915 ],
916 ],
917 ],'testIamPermissions' => [
918 'path' => 'v1/{+resource}:testIamPermissions',
919 'httpMethod' => 'POST',
920 'parameters' => [
921 'resource' => [
922 'location' => 'path',
923 'type' => 'string',
924 'required' => true,
925 ],
926 ],
927 ],
928 ]
929 ]
930 );
931 $this->projects_locations_operations = new CloudKMS\Resource\ProjectsLocationsOperations(
932 $this,
933 $this->serviceName,
934 'operations',
935 [
936 'methods' => [
937 'get' => [
938 'path' => 'v1/{+name}',
939 'httpMethod' => 'GET',
940 'parameters' => [
941 'name' => [
942 'location' => 'path',
943 'type' => 'string',
944 'required' => true,
945 ],
946 ],
947 ],
948 ]
949 ]
950 );
951 }
952}
953
954// Adding a class alias for backwards compatibility with the previous class name.
955class_alias(CloudKMS::class, 'Google_Service_CloudKMS');
Note: See TracBrowser for help on using the repository browser.