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 |
|
---|
18 | namespace Google\Service;
|
---|
19 |
|
---|
20 | use Google\Client;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * Service definition for CertificateAuthorityService (v1).
|
---|
24 | *
|
---|
25 | * <p>
|
---|
26 | * The Certificate Authority Service API is a highly-available, scalable service
|
---|
27 | * that enables you to simplify and automate the management of private
|
---|
28 | * certificate authorities (CAs) while staying in control of your private keys.</p>
|
---|
29 | *
|
---|
30 | * <p>
|
---|
31 | * For more information about this service, see the API
|
---|
32 | * <a href="https://cloud.google.com/" target="_blank">Documentation</a>
|
---|
33 | * </p>
|
---|
34 | *
|
---|
35 | * @author Google, Inc.
|
---|
36 | */
|
---|
37 | class CertificateAuthorityService extends \Google\Service
|
---|
38 | {
|
---|
39 | /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
|
---|
40 | const CLOUD_PLATFORM =
|
---|
41 | "https://www.googleapis.com/auth/cloud-platform";
|
---|
42 |
|
---|
43 | public $projects_locations;
|
---|
44 | public $projects_locations_caPools;
|
---|
45 | public $projects_locations_caPools_certificateAuthorities;
|
---|
46 | public $projects_locations_caPools_certificateAuthorities_certificateRevocationLists;
|
---|
47 | public $projects_locations_caPools_certificates;
|
---|
48 | public $projects_locations_certificateTemplates;
|
---|
49 | public $projects_locations_operations;
|
---|
50 | public $rootUrlTemplate;
|
---|
51 |
|
---|
52 | /**
|
---|
53 | * Constructs the internal representation of the CertificateAuthorityService
|
---|
54 | * service.
|
---|
55 | *
|
---|
56 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
57 | * config array to pass to a new Client instance.
|
---|
58 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
59 | */
|
---|
60 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
61 | {
|
---|
62 | parent::__construct($clientOrConfig);
|
---|
63 | $this->rootUrl = $rootUrl ?: 'https://privateca.googleapis.com/';
|
---|
64 | $this->rootUrlTemplate = $rootUrl ?: 'https://privateca.UNIVERSE_DOMAIN/';
|
---|
65 | $this->servicePath = '';
|
---|
66 | $this->batchPath = 'batch';
|
---|
67 | $this->version = 'v1';
|
---|
68 | $this->serviceName = 'privateca';
|
---|
69 |
|
---|
70 | $this->projects_locations = new CertificateAuthorityService\Resource\ProjectsLocations(
|
---|
71 | $this,
|
---|
72 | $this->serviceName,
|
---|
73 | 'locations',
|
---|
74 | [
|
---|
75 | 'methods' => [
|
---|
76 | 'get' => [
|
---|
77 | 'path' => 'v1/{+name}',
|
---|
78 | 'httpMethod' => 'GET',
|
---|
79 | 'parameters' => [
|
---|
80 | 'name' => [
|
---|
81 | 'location' => 'path',
|
---|
82 | 'type' => 'string',
|
---|
83 | 'required' => true,
|
---|
84 | ],
|
---|
85 | ],
|
---|
86 | ],'list' => [
|
---|
87 | 'path' => 'v1/{+name}/locations',
|
---|
88 | 'httpMethod' => 'GET',
|
---|
89 | 'parameters' => [
|
---|
90 | 'name' => [
|
---|
91 | 'location' => 'path',
|
---|
92 | 'type' => 'string',
|
---|
93 | 'required' => true,
|
---|
94 | ],
|
---|
95 | 'filter' => [
|
---|
96 | 'location' => 'query',
|
---|
97 | 'type' => 'string',
|
---|
98 | ],
|
---|
99 | 'pageSize' => [
|
---|
100 | 'location' => 'query',
|
---|
101 | 'type' => 'integer',
|
---|
102 | ],
|
---|
103 | 'pageToken' => [
|
---|
104 | 'location' => 'query',
|
---|
105 | 'type' => 'string',
|
---|
106 | ],
|
---|
107 | ],
|
---|
108 | ],
|
---|
109 | ]
|
---|
110 | ]
|
---|
111 | );
|
---|
112 | $this->projects_locations_caPools = new CertificateAuthorityService\Resource\ProjectsLocationsCaPools(
|
---|
113 | $this,
|
---|
114 | $this->serviceName,
|
---|
115 | 'caPools',
|
---|
116 | [
|
---|
117 | 'methods' => [
|
---|
118 | 'create' => [
|
---|
119 | 'path' => 'v1/{+parent}/caPools',
|
---|
120 | 'httpMethod' => 'POST',
|
---|
121 | 'parameters' => [
|
---|
122 | 'parent' => [
|
---|
123 | 'location' => 'path',
|
---|
124 | 'type' => 'string',
|
---|
125 | 'required' => true,
|
---|
126 | ],
|
---|
127 | 'caPoolId' => [
|
---|
128 | 'location' => 'query',
|
---|
129 | 'type' => 'string',
|
---|
130 | ],
|
---|
131 | 'requestId' => [
|
---|
132 | 'location' => 'query',
|
---|
133 | 'type' => 'string',
|
---|
134 | ],
|
---|
135 | ],
|
---|
136 | ],'delete' => [
|
---|
137 | 'path' => 'v1/{+name}',
|
---|
138 | 'httpMethod' => 'DELETE',
|
---|
139 | 'parameters' => [
|
---|
140 | 'name' => [
|
---|
141 | 'location' => 'path',
|
---|
142 | 'type' => 'string',
|
---|
143 | 'required' => true,
|
---|
144 | ],
|
---|
145 | 'ignoreDependentResources' => [
|
---|
146 | 'location' => 'query',
|
---|
147 | 'type' => 'boolean',
|
---|
148 | ],
|
---|
149 | 'requestId' => [
|
---|
150 | 'location' => 'query',
|
---|
151 | 'type' => 'string',
|
---|
152 | ],
|
---|
153 | ],
|
---|
154 | ],'fetchCaCerts' => [
|
---|
155 | 'path' => 'v1/{+caPool}:fetchCaCerts',
|
---|
156 | 'httpMethod' => 'POST',
|
---|
157 | 'parameters' => [
|
---|
158 | 'caPool' => [
|
---|
159 | 'location' => 'path',
|
---|
160 | 'type' => 'string',
|
---|
161 | 'required' => true,
|
---|
162 | ],
|
---|
163 | ],
|
---|
164 | ],'get' => [
|
---|
165 | 'path' => 'v1/{+name}',
|
---|
166 | 'httpMethod' => 'GET',
|
---|
167 | 'parameters' => [
|
---|
168 | 'name' => [
|
---|
169 | 'location' => 'path',
|
---|
170 | 'type' => 'string',
|
---|
171 | 'required' => true,
|
---|
172 | ],
|
---|
173 | ],
|
---|
174 | ],'getIamPolicy' => [
|
---|
175 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
176 | 'httpMethod' => 'GET',
|
---|
177 | 'parameters' => [
|
---|
178 | 'resource' => [
|
---|
179 | 'location' => 'path',
|
---|
180 | 'type' => 'string',
|
---|
181 | 'required' => true,
|
---|
182 | ],
|
---|
183 | 'options.requestedPolicyVersion' => [
|
---|
184 | 'location' => 'query',
|
---|
185 | 'type' => 'integer',
|
---|
186 | ],
|
---|
187 | ],
|
---|
188 | ],'list' => [
|
---|
189 | 'path' => 'v1/{+parent}/caPools',
|
---|
190 | 'httpMethod' => 'GET',
|
---|
191 | 'parameters' => [
|
---|
192 | 'parent' => [
|
---|
193 | 'location' => 'path',
|
---|
194 | 'type' => 'string',
|
---|
195 | 'required' => true,
|
---|
196 | ],
|
---|
197 | 'filter' => [
|
---|
198 | 'location' => 'query',
|
---|
199 | 'type' => 'string',
|
---|
200 | ],
|
---|
201 | 'orderBy' => [
|
---|
202 | 'location' => 'query',
|
---|
203 | 'type' => 'string',
|
---|
204 | ],
|
---|
205 | 'pageSize' => [
|
---|
206 | 'location' => 'query',
|
---|
207 | 'type' => 'integer',
|
---|
208 | ],
|
---|
209 | 'pageToken' => [
|
---|
210 | 'location' => 'query',
|
---|
211 | 'type' => 'string',
|
---|
212 | ],
|
---|
213 | ],
|
---|
214 | ],'patch' => [
|
---|
215 | 'path' => 'v1/{+name}',
|
---|
216 | 'httpMethod' => 'PATCH',
|
---|
217 | 'parameters' => [
|
---|
218 | 'name' => [
|
---|
219 | 'location' => 'path',
|
---|
220 | 'type' => 'string',
|
---|
221 | 'required' => true,
|
---|
222 | ],
|
---|
223 | 'requestId' => [
|
---|
224 | 'location' => 'query',
|
---|
225 | 'type' => 'string',
|
---|
226 | ],
|
---|
227 | 'updateMask' => [
|
---|
228 | 'location' => 'query',
|
---|
229 | 'type' => 'string',
|
---|
230 | ],
|
---|
231 | ],
|
---|
232 | ],'setIamPolicy' => [
|
---|
233 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
234 | 'httpMethod' => 'POST',
|
---|
235 | 'parameters' => [
|
---|
236 | 'resource' => [
|
---|
237 | 'location' => 'path',
|
---|
238 | 'type' => 'string',
|
---|
239 | 'required' => true,
|
---|
240 | ],
|
---|
241 | ],
|
---|
242 | ],'testIamPermissions' => [
|
---|
243 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
244 | 'httpMethod' => 'POST',
|
---|
245 | 'parameters' => [
|
---|
246 | 'resource' => [
|
---|
247 | 'location' => 'path',
|
---|
248 | 'type' => 'string',
|
---|
249 | 'required' => true,
|
---|
250 | ],
|
---|
251 | ],
|
---|
252 | ],
|
---|
253 | ]
|
---|
254 | ]
|
---|
255 | );
|
---|
256 | $this->projects_locations_caPools_certificateAuthorities = new CertificateAuthorityService\Resource\ProjectsLocationsCaPoolsCertificateAuthorities(
|
---|
257 | $this,
|
---|
258 | $this->serviceName,
|
---|
259 | 'certificateAuthorities',
|
---|
260 | [
|
---|
261 | 'methods' => [
|
---|
262 | 'activate' => [
|
---|
263 | 'path' => 'v1/{+name}:activate',
|
---|
264 | 'httpMethod' => 'POST',
|
---|
265 | 'parameters' => [
|
---|
266 | 'name' => [
|
---|
267 | 'location' => 'path',
|
---|
268 | 'type' => 'string',
|
---|
269 | 'required' => true,
|
---|
270 | ],
|
---|
271 | ],
|
---|
272 | ],'create' => [
|
---|
273 | 'path' => 'v1/{+parent}/certificateAuthorities',
|
---|
274 | 'httpMethod' => 'POST',
|
---|
275 | 'parameters' => [
|
---|
276 | 'parent' => [
|
---|
277 | 'location' => 'path',
|
---|
278 | 'type' => 'string',
|
---|
279 | 'required' => true,
|
---|
280 | ],
|
---|
281 | 'certificateAuthorityId' => [
|
---|
282 | 'location' => 'query',
|
---|
283 | 'type' => 'string',
|
---|
284 | ],
|
---|
285 | 'requestId' => [
|
---|
286 | 'location' => 'query',
|
---|
287 | 'type' => 'string',
|
---|
288 | ],
|
---|
289 | ],
|
---|
290 | ],'delete' => [
|
---|
291 | 'path' => 'v1/{+name}',
|
---|
292 | 'httpMethod' => 'DELETE',
|
---|
293 | 'parameters' => [
|
---|
294 | 'name' => [
|
---|
295 | 'location' => 'path',
|
---|
296 | 'type' => 'string',
|
---|
297 | 'required' => true,
|
---|
298 | ],
|
---|
299 | 'ignoreActiveCertificates' => [
|
---|
300 | 'location' => 'query',
|
---|
301 | 'type' => 'boolean',
|
---|
302 | ],
|
---|
303 | 'ignoreDependentResources' => [
|
---|
304 | 'location' => 'query',
|
---|
305 | 'type' => 'boolean',
|
---|
306 | ],
|
---|
307 | 'requestId' => [
|
---|
308 | 'location' => 'query',
|
---|
309 | 'type' => 'string',
|
---|
310 | ],
|
---|
311 | 'skipGracePeriod' => [
|
---|
312 | 'location' => 'query',
|
---|
313 | 'type' => 'boolean',
|
---|
314 | ],
|
---|
315 | ],
|
---|
316 | ],'disable' => [
|
---|
317 | 'path' => 'v1/{+name}:disable',
|
---|
318 | 'httpMethod' => 'POST',
|
---|
319 | 'parameters' => [
|
---|
320 | 'name' => [
|
---|
321 | 'location' => 'path',
|
---|
322 | 'type' => 'string',
|
---|
323 | 'required' => true,
|
---|
324 | ],
|
---|
325 | ],
|
---|
326 | ],'enable' => [
|
---|
327 | 'path' => 'v1/{+name}:enable',
|
---|
328 | 'httpMethod' => 'POST',
|
---|
329 | 'parameters' => [
|
---|
330 | 'name' => [
|
---|
331 | 'location' => 'path',
|
---|
332 | 'type' => 'string',
|
---|
333 | 'required' => true,
|
---|
334 | ],
|
---|
335 | ],
|
---|
336 | ],'fetch' => [
|
---|
337 | 'path' => 'v1/{+name}:fetch',
|
---|
338 | 'httpMethod' => 'GET',
|
---|
339 | 'parameters' => [
|
---|
340 | 'name' => [
|
---|
341 | 'location' => 'path',
|
---|
342 | 'type' => 'string',
|
---|
343 | 'required' => true,
|
---|
344 | ],
|
---|
345 | ],
|
---|
346 | ],'get' => [
|
---|
347 | 'path' => 'v1/{+name}',
|
---|
348 | 'httpMethod' => 'GET',
|
---|
349 | 'parameters' => [
|
---|
350 | 'name' => [
|
---|
351 | 'location' => 'path',
|
---|
352 | 'type' => 'string',
|
---|
353 | 'required' => true,
|
---|
354 | ],
|
---|
355 | ],
|
---|
356 | ],'list' => [
|
---|
357 | 'path' => 'v1/{+parent}/certificateAuthorities',
|
---|
358 | 'httpMethod' => 'GET',
|
---|
359 | 'parameters' => [
|
---|
360 | 'parent' => [
|
---|
361 | 'location' => 'path',
|
---|
362 | 'type' => 'string',
|
---|
363 | 'required' => true,
|
---|
364 | ],
|
---|
365 | 'filter' => [
|
---|
366 | 'location' => 'query',
|
---|
367 | 'type' => 'string',
|
---|
368 | ],
|
---|
369 | 'orderBy' => [
|
---|
370 | 'location' => 'query',
|
---|
371 | 'type' => 'string',
|
---|
372 | ],
|
---|
373 | 'pageSize' => [
|
---|
374 | 'location' => 'query',
|
---|
375 | 'type' => 'integer',
|
---|
376 | ],
|
---|
377 | 'pageToken' => [
|
---|
378 | 'location' => 'query',
|
---|
379 | 'type' => 'string',
|
---|
380 | ],
|
---|
381 | ],
|
---|
382 | ],'patch' => [
|
---|
383 | 'path' => 'v1/{+name}',
|
---|
384 | 'httpMethod' => 'PATCH',
|
---|
385 | 'parameters' => [
|
---|
386 | 'name' => [
|
---|
387 | 'location' => 'path',
|
---|
388 | 'type' => 'string',
|
---|
389 | 'required' => true,
|
---|
390 | ],
|
---|
391 | 'requestId' => [
|
---|
392 | 'location' => 'query',
|
---|
393 | 'type' => 'string',
|
---|
394 | ],
|
---|
395 | 'updateMask' => [
|
---|
396 | 'location' => 'query',
|
---|
397 | 'type' => 'string',
|
---|
398 | ],
|
---|
399 | ],
|
---|
400 | ],'undelete' => [
|
---|
401 | 'path' => 'v1/{+name}:undelete',
|
---|
402 | 'httpMethod' => 'POST',
|
---|
403 | 'parameters' => [
|
---|
404 | 'name' => [
|
---|
405 | 'location' => 'path',
|
---|
406 | 'type' => 'string',
|
---|
407 | 'required' => true,
|
---|
408 | ],
|
---|
409 | ],
|
---|
410 | ],
|
---|
411 | ]
|
---|
412 | ]
|
---|
413 | );
|
---|
414 | $this->projects_locations_caPools_certificateAuthorities_certificateRevocationLists = new CertificateAuthorityService\Resource\ProjectsLocationsCaPoolsCertificateAuthoritiesCertificateRevocationLists(
|
---|
415 | $this,
|
---|
416 | $this->serviceName,
|
---|
417 | 'certificateRevocationLists',
|
---|
418 | [
|
---|
419 | 'methods' => [
|
---|
420 | 'get' => [
|
---|
421 | 'path' => 'v1/{+name}',
|
---|
422 | 'httpMethod' => 'GET',
|
---|
423 | 'parameters' => [
|
---|
424 | 'name' => [
|
---|
425 | 'location' => 'path',
|
---|
426 | 'type' => 'string',
|
---|
427 | 'required' => true,
|
---|
428 | ],
|
---|
429 | ],
|
---|
430 | ],'getIamPolicy' => [
|
---|
431 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
432 | 'httpMethod' => 'GET',
|
---|
433 | 'parameters' => [
|
---|
434 | 'resource' => [
|
---|
435 | 'location' => 'path',
|
---|
436 | 'type' => 'string',
|
---|
437 | 'required' => true,
|
---|
438 | ],
|
---|
439 | 'options.requestedPolicyVersion' => [
|
---|
440 | 'location' => 'query',
|
---|
441 | 'type' => 'integer',
|
---|
442 | ],
|
---|
443 | ],
|
---|
444 | ],'list' => [
|
---|
445 | 'path' => 'v1/{+parent}/certificateRevocationLists',
|
---|
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 | 'orderBy' => [
|
---|
458 | 'location' => 'query',
|
---|
459 | 'type' => 'string',
|
---|
460 | ],
|
---|
461 | 'pageSize' => [
|
---|
462 | 'location' => 'query',
|
---|
463 | 'type' => 'integer',
|
---|
464 | ],
|
---|
465 | 'pageToken' => [
|
---|
466 | 'location' => 'query',
|
---|
467 | 'type' => 'string',
|
---|
468 | ],
|
---|
469 | ],
|
---|
470 | ],'patch' => [
|
---|
471 | 'path' => 'v1/{+name}',
|
---|
472 | 'httpMethod' => 'PATCH',
|
---|
473 | 'parameters' => [
|
---|
474 | 'name' => [
|
---|
475 | 'location' => 'path',
|
---|
476 | 'type' => 'string',
|
---|
477 | 'required' => true,
|
---|
478 | ],
|
---|
479 | 'requestId' => [
|
---|
480 | 'location' => 'query',
|
---|
481 | 'type' => 'string',
|
---|
482 | ],
|
---|
483 | 'updateMask' => [
|
---|
484 | 'location' => 'query',
|
---|
485 | 'type' => 'string',
|
---|
486 | ],
|
---|
487 | ],
|
---|
488 | ],'setIamPolicy' => [
|
---|
489 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
490 | 'httpMethod' => 'POST',
|
---|
491 | 'parameters' => [
|
---|
492 | 'resource' => [
|
---|
493 | 'location' => 'path',
|
---|
494 | 'type' => 'string',
|
---|
495 | 'required' => true,
|
---|
496 | ],
|
---|
497 | ],
|
---|
498 | ],'testIamPermissions' => [
|
---|
499 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
500 | 'httpMethod' => 'POST',
|
---|
501 | 'parameters' => [
|
---|
502 | 'resource' => [
|
---|
503 | 'location' => 'path',
|
---|
504 | 'type' => 'string',
|
---|
505 | 'required' => true,
|
---|
506 | ],
|
---|
507 | ],
|
---|
508 | ],
|
---|
509 | ]
|
---|
510 | ]
|
---|
511 | );
|
---|
512 | $this->projects_locations_caPools_certificates = new CertificateAuthorityService\Resource\ProjectsLocationsCaPoolsCertificates(
|
---|
513 | $this,
|
---|
514 | $this->serviceName,
|
---|
515 | 'certificates',
|
---|
516 | [
|
---|
517 | 'methods' => [
|
---|
518 | 'create' => [
|
---|
519 | 'path' => 'v1/{+parent}/certificates',
|
---|
520 | 'httpMethod' => 'POST',
|
---|
521 | 'parameters' => [
|
---|
522 | 'parent' => [
|
---|
523 | 'location' => 'path',
|
---|
524 | 'type' => 'string',
|
---|
525 | 'required' => true,
|
---|
526 | ],
|
---|
527 | 'certificateId' => [
|
---|
528 | 'location' => 'query',
|
---|
529 | 'type' => 'string',
|
---|
530 | ],
|
---|
531 | 'issuingCertificateAuthorityId' => [
|
---|
532 | 'location' => 'query',
|
---|
533 | 'type' => 'string',
|
---|
534 | ],
|
---|
535 | 'requestId' => [
|
---|
536 | 'location' => 'query',
|
---|
537 | 'type' => 'string',
|
---|
538 | ],
|
---|
539 | 'validateOnly' => [
|
---|
540 | 'location' => 'query',
|
---|
541 | 'type' => 'boolean',
|
---|
542 | ],
|
---|
543 | ],
|
---|
544 | ],'get' => [
|
---|
545 | 'path' => 'v1/{+name}',
|
---|
546 | 'httpMethod' => 'GET',
|
---|
547 | 'parameters' => [
|
---|
548 | 'name' => [
|
---|
549 | 'location' => 'path',
|
---|
550 | 'type' => 'string',
|
---|
551 | 'required' => true,
|
---|
552 | ],
|
---|
553 | ],
|
---|
554 | ],'list' => [
|
---|
555 | 'path' => 'v1/{+parent}/certificates',
|
---|
556 | 'httpMethod' => 'GET',
|
---|
557 | 'parameters' => [
|
---|
558 | 'parent' => [
|
---|
559 | 'location' => 'path',
|
---|
560 | 'type' => 'string',
|
---|
561 | 'required' => true,
|
---|
562 | ],
|
---|
563 | 'filter' => [
|
---|
564 | 'location' => 'query',
|
---|
565 | 'type' => 'string',
|
---|
566 | ],
|
---|
567 | 'orderBy' => [
|
---|
568 | 'location' => 'query',
|
---|
569 | 'type' => 'string',
|
---|
570 | ],
|
---|
571 | 'pageSize' => [
|
---|
572 | 'location' => 'query',
|
---|
573 | 'type' => 'integer',
|
---|
574 | ],
|
---|
575 | 'pageToken' => [
|
---|
576 | 'location' => 'query',
|
---|
577 | 'type' => 'string',
|
---|
578 | ],
|
---|
579 | ],
|
---|
580 | ],'patch' => [
|
---|
581 | 'path' => 'v1/{+name}',
|
---|
582 | 'httpMethod' => 'PATCH',
|
---|
583 | 'parameters' => [
|
---|
584 | 'name' => [
|
---|
585 | 'location' => 'path',
|
---|
586 | 'type' => 'string',
|
---|
587 | 'required' => true,
|
---|
588 | ],
|
---|
589 | 'requestId' => [
|
---|
590 | 'location' => 'query',
|
---|
591 | 'type' => 'string',
|
---|
592 | ],
|
---|
593 | 'updateMask' => [
|
---|
594 | 'location' => 'query',
|
---|
595 | 'type' => 'string',
|
---|
596 | ],
|
---|
597 | ],
|
---|
598 | ],'revoke' => [
|
---|
599 | 'path' => 'v1/{+name}:revoke',
|
---|
600 | 'httpMethod' => 'POST',
|
---|
601 | 'parameters' => [
|
---|
602 | 'name' => [
|
---|
603 | 'location' => 'path',
|
---|
604 | 'type' => 'string',
|
---|
605 | 'required' => true,
|
---|
606 | ],
|
---|
607 | ],
|
---|
608 | ],
|
---|
609 | ]
|
---|
610 | ]
|
---|
611 | );
|
---|
612 | $this->projects_locations_certificateTemplates = new CertificateAuthorityService\Resource\ProjectsLocationsCertificateTemplates(
|
---|
613 | $this,
|
---|
614 | $this->serviceName,
|
---|
615 | 'certificateTemplates',
|
---|
616 | [
|
---|
617 | 'methods' => [
|
---|
618 | 'create' => [
|
---|
619 | 'path' => 'v1/{+parent}/certificateTemplates',
|
---|
620 | 'httpMethod' => 'POST',
|
---|
621 | 'parameters' => [
|
---|
622 | 'parent' => [
|
---|
623 | 'location' => 'path',
|
---|
624 | 'type' => 'string',
|
---|
625 | 'required' => true,
|
---|
626 | ],
|
---|
627 | 'certificateTemplateId' => [
|
---|
628 | 'location' => 'query',
|
---|
629 | 'type' => 'string',
|
---|
630 | ],
|
---|
631 | 'requestId' => [
|
---|
632 | 'location' => 'query',
|
---|
633 | 'type' => 'string',
|
---|
634 | ],
|
---|
635 | ],
|
---|
636 | ],'delete' => [
|
---|
637 | 'path' => 'v1/{+name}',
|
---|
638 | 'httpMethod' => 'DELETE',
|
---|
639 | 'parameters' => [
|
---|
640 | 'name' => [
|
---|
641 | 'location' => 'path',
|
---|
642 | 'type' => 'string',
|
---|
643 | 'required' => true,
|
---|
644 | ],
|
---|
645 | 'requestId' => [
|
---|
646 | 'location' => 'query',
|
---|
647 | 'type' => 'string',
|
---|
648 | ],
|
---|
649 | ],
|
---|
650 | ],'get' => [
|
---|
651 | 'path' => 'v1/{+name}',
|
---|
652 | 'httpMethod' => 'GET',
|
---|
653 | 'parameters' => [
|
---|
654 | 'name' => [
|
---|
655 | 'location' => 'path',
|
---|
656 | 'type' => 'string',
|
---|
657 | 'required' => true,
|
---|
658 | ],
|
---|
659 | ],
|
---|
660 | ],'getIamPolicy' => [
|
---|
661 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
662 | 'httpMethod' => 'GET',
|
---|
663 | 'parameters' => [
|
---|
664 | 'resource' => [
|
---|
665 | 'location' => 'path',
|
---|
666 | 'type' => 'string',
|
---|
667 | 'required' => true,
|
---|
668 | ],
|
---|
669 | 'options.requestedPolicyVersion' => [
|
---|
670 | 'location' => 'query',
|
---|
671 | 'type' => 'integer',
|
---|
672 | ],
|
---|
673 | ],
|
---|
674 | ],'list' => [
|
---|
675 | 'path' => 'v1/{+parent}/certificateTemplates',
|
---|
676 | 'httpMethod' => 'GET',
|
---|
677 | 'parameters' => [
|
---|
678 | 'parent' => [
|
---|
679 | 'location' => 'path',
|
---|
680 | 'type' => 'string',
|
---|
681 | 'required' => true,
|
---|
682 | ],
|
---|
683 | 'filter' => [
|
---|
684 | 'location' => 'query',
|
---|
685 | 'type' => 'string',
|
---|
686 | ],
|
---|
687 | 'orderBy' => [
|
---|
688 | 'location' => 'query',
|
---|
689 | 'type' => 'string',
|
---|
690 | ],
|
---|
691 | 'pageSize' => [
|
---|
692 | 'location' => 'query',
|
---|
693 | 'type' => 'integer',
|
---|
694 | ],
|
---|
695 | 'pageToken' => [
|
---|
696 | 'location' => 'query',
|
---|
697 | 'type' => 'string',
|
---|
698 | ],
|
---|
699 | ],
|
---|
700 | ],'patch' => [
|
---|
701 | 'path' => 'v1/{+name}',
|
---|
702 | 'httpMethod' => 'PATCH',
|
---|
703 | 'parameters' => [
|
---|
704 | 'name' => [
|
---|
705 | 'location' => 'path',
|
---|
706 | 'type' => 'string',
|
---|
707 | 'required' => true,
|
---|
708 | ],
|
---|
709 | 'requestId' => [
|
---|
710 | 'location' => 'query',
|
---|
711 | 'type' => 'string',
|
---|
712 | ],
|
---|
713 | 'updateMask' => [
|
---|
714 | 'location' => 'query',
|
---|
715 | 'type' => 'string',
|
---|
716 | ],
|
---|
717 | ],
|
---|
718 | ],'setIamPolicy' => [
|
---|
719 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
720 | 'httpMethod' => 'POST',
|
---|
721 | 'parameters' => [
|
---|
722 | 'resource' => [
|
---|
723 | 'location' => 'path',
|
---|
724 | 'type' => 'string',
|
---|
725 | 'required' => true,
|
---|
726 | ],
|
---|
727 | ],
|
---|
728 | ],'testIamPermissions' => [
|
---|
729 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
730 | 'httpMethod' => 'POST',
|
---|
731 | 'parameters' => [
|
---|
732 | 'resource' => [
|
---|
733 | 'location' => 'path',
|
---|
734 | 'type' => 'string',
|
---|
735 | 'required' => true,
|
---|
736 | ],
|
---|
737 | ],
|
---|
738 | ],
|
---|
739 | ]
|
---|
740 | ]
|
---|
741 | );
|
---|
742 | $this->projects_locations_operations = new CertificateAuthorityService\Resource\ProjectsLocationsOperations(
|
---|
743 | $this,
|
---|
744 | $this->serviceName,
|
---|
745 | 'operations',
|
---|
746 | [
|
---|
747 | 'methods' => [
|
---|
748 | 'cancel' => [
|
---|
749 | 'path' => 'v1/{+name}:cancel',
|
---|
750 | 'httpMethod' => 'POST',
|
---|
751 | 'parameters' => [
|
---|
752 | 'name' => [
|
---|
753 | 'location' => 'path',
|
---|
754 | 'type' => 'string',
|
---|
755 | 'required' => true,
|
---|
756 | ],
|
---|
757 | ],
|
---|
758 | ],'delete' => [
|
---|
759 | 'path' => 'v1/{+name}',
|
---|
760 | 'httpMethod' => 'DELETE',
|
---|
761 | 'parameters' => [
|
---|
762 | 'name' => [
|
---|
763 | 'location' => 'path',
|
---|
764 | 'type' => 'string',
|
---|
765 | 'required' => true,
|
---|
766 | ],
|
---|
767 | ],
|
---|
768 | ],'get' => [
|
---|
769 | 'path' => 'v1/{+name}',
|
---|
770 | 'httpMethod' => 'GET',
|
---|
771 | 'parameters' => [
|
---|
772 | 'name' => [
|
---|
773 | 'location' => 'path',
|
---|
774 | 'type' => 'string',
|
---|
775 | 'required' => true,
|
---|
776 | ],
|
---|
777 | ],
|
---|
778 | ],'list' => [
|
---|
779 | 'path' => 'v1/{+name}/operations',
|
---|
780 | 'httpMethod' => 'GET',
|
---|
781 | 'parameters' => [
|
---|
782 | 'name' => [
|
---|
783 | 'location' => 'path',
|
---|
784 | 'type' => 'string',
|
---|
785 | 'required' => true,
|
---|
786 | ],
|
---|
787 | 'filter' => [
|
---|
788 | 'location' => 'query',
|
---|
789 | 'type' => 'string',
|
---|
790 | ],
|
---|
791 | 'pageSize' => [
|
---|
792 | 'location' => 'query',
|
---|
793 | 'type' => 'integer',
|
---|
794 | ],
|
---|
795 | 'pageToken' => [
|
---|
796 | 'location' => 'query',
|
---|
797 | 'type' => 'string',
|
---|
798 | ],
|
---|
799 | ],
|
---|
800 | ],
|
---|
801 | ]
|
---|
802 | ]
|
---|
803 | );
|
---|
804 | }
|
---|
805 | }
|
---|
806 |
|
---|
807 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
808 | class_alias(CertificateAuthorityService::class, 'Google_Service_CertificateAuthorityService');
|
---|