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 AccessContextManager (v1).
|
---|
24 | *
|
---|
25 | * <p>
|
---|
26 | * An API for setting attribute based access control to requests to Google Cloud
|
---|
27 | * services. *Warning:* Do not mix *v1alpha* and *v1* API usage in the same
|
---|
28 | * access policy. The v1alpha API supports new Access Context Manager features,
|
---|
29 | * which may have different attributes or behaviors that are not supported by
|
---|
30 | * v1. The practice of mixed API usage within a policy may result in the
|
---|
31 | * inability to update that policy, including any access levels or service
|
---|
32 | * perimeters belonging to it. It is not recommended to use both v1 and v1alpha
|
---|
33 | * for modifying policies with critical service perimeters. Modifications using
|
---|
34 | * v1alpha should be limited to policies with non-production/non-critical
|
---|
35 | * service perimeters.</p>
|
---|
36 | *
|
---|
37 | * <p>
|
---|
38 | * For more information about this service, see the API
|
---|
39 | * <a href="https://cloud.google.com/access-context-manager/docs/reference/rest/" target="_blank">Documentation</a>
|
---|
40 | * </p>
|
---|
41 | *
|
---|
42 | * @author Google, Inc.
|
---|
43 | */
|
---|
44 | class AccessContextManager extends \Google\Service
|
---|
45 | {
|
---|
46 | /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
|
---|
47 | const CLOUD_PLATFORM =
|
---|
48 | "https://www.googleapis.com/auth/cloud-platform";
|
---|
49 |
|
---|
50 | public $accessPolicies;
|
---|
51 | public $accessPolicies_accessLevels;
|
---|
52 | public $accessPolicies_authorizedOrgsDescs;
|
---|
53 | public $accessPolicies_servicePerimeters;
|
---|
54 | public $operations;
|
---|
55 | public $organizations_gcpUserAccessBindings;
|
---|
56 | public $services;
|
---|
57 | public $rootUrlTemplate;
|
---|
58 |
|
---|
59 | /**
|
---|
60 | * Constructs the internal representation of the AccessContextManager service.
|
---|
61 | *
|
---|
62 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
63 | * config array to pass to a new Client instance.
|
---|
64 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
65 | */
|
---|
66 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
67 | {
|
---|
68 | parent::__construct($clientOrConfig);
|
---|
69 | $this->rootUrl = $rootUrl ?: 'https://accesscontextmanager.googleapis.com/';
|
---|
70 | $this->rootUrlTemplate = $rootUrl ?: 'https://accesscontextmanager.UNIVERSE_DOMAIN/';
|
---|
71 | $this->servicePath = '';
|
---|
72 | $this->batchPath = 'batch';
|
---|
73 | $this->version = 'v1';
|
---|
74 | $this->serviceName = 'accesscontextmanager';
|
---|
75 |
|
---|
76 | $this->accessPolicies = new AccessContextManager\Resource\AccessPolicies(
|
---|
77 | $this,
|
---|
78 | $this->serviceName,
|
---|
79 | 'accessPolicies',
|
---|
80 | [
|
---|
81 | 'methods' => [
|
---|
82 | 'create' => [
|
---|
83 | 'path' => 'v1/accessPolicies',
|
---|
84 | 'httpMethod' => 'POST',
|
---|
85 | 'parameters' => [],
|
---|
86 | ],'delete' => [
|
---|
87 | 'path' => 'v1/{+name}',
|
---|
88 | 'httpMethod' => 'DELETE',
|
---|
89 | 'parameters' => [
|
---|
90 | 'name' => [
|
---|
91 | 'location' => 'path',
|
---|
92 | 'type' => 'string',
|
---|
93 | 'required' => true,
|
---|
94 | ],
|
---|
95 | ],
|
---|
96 | ],'get' => [
|
---|
97 | 'path' => 'v1/{+name}',
|
---|
98 | 'httpMethod' => 'GET',
|
---|
99 | 'parameters' => [
|
---|
100 | 'name' => [
|
---|
101 | 'location' => 'path',
|
---|
102 | 'type' => 'string',
|
---|
103 | 'required' => true,
|
---|
104 | ],
|
---|
105 | ],
|
---|
106 | ],'getIamPolicy' => [
|
---|
107 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
108 | 'httpMethod' => 'POST',
|
---|
109 | 'parameters' => [
|
---|
110 | 'resource' => [
|
---|
111 | 'location' => 'path',
|
---|
112 | 'type' => 'string',
|
---|
113 | 'required' => true,
|
---|
114 | ],
|
---|
115 | ],
|
---|
116 | ],'list' => [
|
---|
117 | 'path' => 'v1/accessPolicies',
|
---|
118 | 'httpMethod' => 'GET',
|
---|
119 | 'parameters' => [
|
---|
120 | 'pageSize' => [
|
---|
121 | 'location' => 'query',
|
---|
122 | 'type' => 'integer',
|
---|
123 | ],
|
---|
124 | 'pageToken' => [
|
---|
125 | 'location' => 'query',
|
---|
126 | 'type' => 'string',
|
---|
127 | ],
|
---|
128 | 'parent' => [
|
---|
129 | 'location' => 'query',
|
---|
130 | 'type' => 'string',
|
---|
131 | ],
|
---|
132 | ],
|
---|
133 | ],'patch' => [
|
---|
134 | 'path' => 'v1/{+name}',
|
---|
135 | 'httpMethod' => 'PATCH',
|
---|
136 | 'parameters' => [
|
---|
137 | 'name' => [
|
---|
138 | 'location' => 'path',
|
---|
139 | 'type' => 'string',
|
---|
140 | 'required' => true,
|
---|
141 | ],
|
---|
142 | 'updateMask' => [
|
---|
143 | 'location' => 'query',
|
---|
144 | 'type' => 'string',
|
---|
145 | ],
|
---|
146 | ],
|
---|
147 | ],'setIamPolicy' => [
|
---|
148 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
149 | 'httpMethod' => 'POST',
|
---|
150 | 'parameters' => [
|
---|
151 | 'resource' => [
|
---|
152 | 'location' => 'path',
|
---|
153 | 'type' => 'string',
|
---|
154 | 'required' => true,
|
---|
155 | ],
|
---|
156 | ],
|
---|
157 | ],'testIamPermissions' => [
|
---|
158 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
159 | 'httpMethod' => 'POST',
|
---|
160 | 'parameters' => [
|
---|
161 | 'resource' => [
|
---|
162 | 'location' => 'path',
|
---|
163 | 'type' => 'string',
|
---|
164 | 'required' => true,
|
---|
165 | ],
|
---|
166 | ],
|
---|
167 | ],
|
---|
168 | ]
|
---|
169 | ]
|
---|
170 | );
|
---|
171 | $this->accessPolicies_accessLevels = new AccessContextManager\Resource\AccessPoliciesAccessLevels(
|
---|
172 | $this,
|
---|
173 | $this->serviceName,
|
---|
174 | 'accessLevels',
|
---|
175 | [
|
---|
176 | 'methods' => [
|
---|
177 | 'create' => [
|
---|
178 | 'path' => 'v1/{+parent}/accessLevels',
|
---|
179 | 'httpMethod' => 'POST',
|
---|
180 | 'parameters' => [
|
---|
181 | 'parent' => [
|
---|
182 | 'location' => 'path',
|
---|
183 | 'type' => 'string',
|
---|
184 | 'required' => true,
|
---|
185 | ],
|
---|
186 | ],
|
---|
187 | ],'delete' => [
|
---|
188 | 'path' => 'v1/{+name}',
|
---|
189 | 'httpMethod' => 'DELETE',
|
---|
190 | 'parameters' => [
|
---|
191 | 'name' => [
|
---|
192 | 'location' => 'path',
|
---|
193 | 'type' => 'string',
|
---|
194 | 'required' => true,
|
---|
195 | ],
|
---|
196 | ],
|
---|
197 | ],'get' => [
|
---|
198 | 'path' => 'v1/{+name}',
|
---|
199 | 'httpMethod' => 'GET',
|
---|
200 | 'parameters' => [
|
---|
201 | 'name' => [
|
---|
202 | 'location' => 'path',
|
---|
203 | 'type' => 'string',
|
---|
204 | 'required' => true,
|
---|
205 | ],
|
---|
206 | 'accessLevelFormat' => [
|
---|
207 | 'location' => 'query',
|
---|
208 | 'type' => 'string',
|
---|
209 | ],
|
---|
210 | ],
|
---|
211 | ],'list' => [
|
---|
212 | 'path' => 'v1/{+parent}/accessLevels',
|
---|
213 | 'httpMethod' => 'GET',
|
---|
214 | 'parameters' => [
|
---|
215 | 'parent' => [
|
---|
216 | 'location' => 'path',
|
---|
217 | 'type' => 'string',
|
---|
218 | 'required' => true,
|
---|
219 | ],
|
---|
220 | 'accessLevelFormat' => [
|
---|
221 | 'location' => 'query',
|
---|
222 | 'type' => 'string',
|
---|
223 | ],
|
---|
224 | 'pageSize' => [
|
---|
225 | 'location' => 'query',
|
---|
226 | 'type' => 'integer',
|
---|
227 | ],
|
---|
228 | 'pageToken' => [
|
---|
229 | 'location' => 'query',
|
---|
230 | 'type' => 'string',
|
---|
231 | ],
|
---|
232 | ],
|
---|
233 | ],'patch' => [
|
---|
234 | 'path' => 'v1/{+name}',
|
---|
235 | 'httpMethod' => 'PATCH',
|
---|
236 | 'parameters' => [
|
---|
237 | 'name' => [
|
---|
238 | 'location' => 'path',
|
---|
239 | 'type' => 'string',
|
---|
240 | 'required' => true,
|
---|
241 | ],
|
---|
242 | 'updateMask' => [
|
---|
243 | 'location' => 'query',
|
---|
244 | 'type' => 'string',
|
---|
245 | ],
|
---|
246 | ],
|
---|
247 | ],'replaceAll' => [
|
---|
248 | 'path' => 'v1/{+parent}/accessLevels:replaceAll',
|
---|
249 | 'httpMethod' => 'POST',
|
---|
250 | 'parameters' => [
|
---|
251 | 'parent' => [
|
---|
252 | 'location' => 'path',
|
---|
253 | 'type' => 'string',
|
---|
254 | 'required' => true,
|
---|
255 | ],
|
---|
256 | ],
|
---|
257 | ],'testIamPermissions' => [
|
---|
258 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
259 | 'httpMethod' => 'POST',
|
---|
260 | 'parameters' => [
|
---|
261 | 'resource' => [
|
---|
262 | 'location' => 'path',
|
---|
263 | 'type' => 'string',
|
---|
264 | 'required' => true,
|
---|
265 | ],
|
---|
266 | ],
|
---|
267 | ],
|
---|
268 | ]
|
---|
269 | ]
|
---|
270 | );
|
---|
271 | $this->accessPolicies_authorizedOrgsDescs = new AccessContextManager\Resource\AccessPoliciesAuthorizedOrgsDescs(
|
---|
272 | $this,
|
---|
273 | $this->serviceName,
|
---|
274 | 'authorizedOrgsDescs',
|
---|
275 | [
|
---|
276 | 'methods' => [
|
---|
277 | 'create' => [
|
---|
278 | 'path' => 'v1/{+parent}/authorizedOrgsDescs',
|
---|
279 | 'httpMethod' => 'POST',
|
---|
280 | 'parameters' => [
|
---|
281 | 'parent' => [
|
---|
282 | 'location' => 'path',
|
---|
283 | 'type' => 'string',
|
---|
284 | 'required' => true,
|
---|
285 | ],
|
---|
286 | ],
|
---|
287 | ],'delete' => [
|
---|
288 | 'path' => 'v1/{+name}',
|
---|
289 | 'httpMethod' => 'DELETE',
|
---|
290 | 'parameters' => [
|
---|
291 | 'name' => [
|
---|
292 | 'location' => 'path',
|
---|
293 | 'type' => 'string',
|
---|
294 | 'required' => true,
|
---|
295 | ],
|
---|
296 | ],
|
---|
297 | ],'get' => [
|
---|
298 | 'path' => 'v1/{+name}',
|
---|
299 | 'httpMethod' => 'GET',
|
---|
300 | 'parameters' => [
|
---|
301 | 'name' => [
|
---|
302 | 'location' => 'path',
|
---|
303 | 'type' => 'string',
|
---|
304 | 'required' => true,
|
---|
305 | ],
|
---|
306 | ],
|
---|
307 | ],'list' => [
|
---|
308 | 'path' => 'v1/{+parent}/authorizedOrgsDescs',
|
---|
309 | 'httpMethod' => 'GET',
|
---|
310 | 'parameters' => [
|
---|
311 | 'parent' => [
|
---|
312 | 'location' => 'path',
|
---|
313 | 'type' => 'string',
|
---|
314 | 'required' => true,
|
---|
315 | ],
|
---|
316 | 'pageSize' => [
|
---|
317 | 'location' => 'query',
|
---|
318 | 'type' => 'integer',
|
---|
319 | ],
|
---|
320 | 'pageToken' => [
|
---|
321 | 'location' => 'query',
|
---|
322 | 'type' => 'string',
|
---|
323 | ],
|
---|
324 | ],
|
---|
325 | ],'patch' => [
|
---|
326 | 'path' => 'v1/{+name}',
|
---|
327 | 'httpMethod' => 'PATCH',
|
---|
328 | 'parameters' => [
|
---|
329 | 'name' => [
|
---|
330 | 'location' => 'path',
|
---|
331 | 'type' => 'string',
|
---|
332 | 'required' => true,
|
---|
333 | ],
|
---|
334 | 'updateMask' => [
|
---|
335 | 'location' => 'query',
|
---|
336 | 'type' => 'string',
|
---|
337 | ],
|
---|
338 | ],
|
---|
339 | ],
|
---|
340 | ]
|
---|
341 | ]
|
---|
342 | );
|
---|
343 | $this->accessPolicies_servicePerimeters = new AccessContextManager\Resource\AccessPoliciesServicePerimeters(
|
---|
344 | $this,
|
---|
345 | $this->serviceName,
|
---|
346 | 'servicePerimeters',
|
---|
347 | [
|
---|
348 | 'methods' => [
|
---|
349 | 'commit' => [
|
---|
350 | 'path' => 'v1/{+parent}/servicePerimeters:commit',
|
---|
351 | 'httpMethod' => 'POST',
|
---|
352 | 'parameters' => [
|
---|
353 | 'parent' => [
|
---|
354 | 'location' => 'path',
|
---|
355 | 'type' => 'string',
|
---|
356 | 'required' => true,
|
---|
357 | ],
|
---|
358 | ],
|
---|
359 | ],'create' => [
|
---|
360 | 'path' => 'v1/{+parent}/servicePerimeters',
|
---|
361 | 'httpMethod' => 'POST',
|
---|
362 | 'parameters' => [
|
---|
363 | 'parent' => [
|
---|
364 | 'location' => 'path',
|
---|
365 | 'type' => 'string',
|
---|
366 | 'required' => true,
|
---|
367 | ],
|
---|
368 | ],
|
---|
369 | ],'delete' => [
|
---|
370 | 'path' => 'v1/{+name}',
|
---|
371 | 'httpMethod' => 'DELETE',
|
---|
372 | 'parameters' => [
|
---|
373 | 'name' => [
|
---|
374 | 'location' => 'path',
|
---|
375 | 'type' => 'string',
|
---|
376 | 'required' => true,
|
---|
377 | ],
|
---|
378 | ],
|
---|
379 | ],'get' => [
|
---|
380 | 'path' => 'v1/{+name}',
|
---|
381 | 'httpMethod' => 'GET',
|
---|
382 | 'parameters' => [
|
---|
383 | 'name' => [
|
---|
384 | 'location' => 'path',
|
---|
385 | 'type' => 'string',
|
---|
386 | 'required' => true,
|
---|
387 | ],
|
---|
388 | ],
|
---|
389 | ],'list' => [
|
---|
390 | 'path' => 'v1/{+parent}/servicePerimeters',
|
---|
391 | 'httpMethod' => 'GET',
|
---|
392 | 'parameters' => [
|
---|
393 | 'parent' => [
|
---|
394 | 'location' => 'path',
|
---|
395 | 'type' => 'string',
|
---|
396 | 'required' => true,
|
---|
397 | ],
|
---|
398 | 'pageSize' => [
|
---|
399 | 'location' => 'query',
|
---|
400 | 'type' => 'integer',
|
---|
401 | ],
|
---|
402 | 'pageToken' => [
|
---|
403 | 'location' => 'query',
|
---|
404 | 'type' => 'string',
|
---|
405 | ],
|
---|
406 | ],
|
---|
407 | ],'patch' => [
|
---|
408 | 'path' => 'v1/{+name}',
|
---|
409 | 'httpMethod' => 'PATCH',
|
---|
410 | 'parameters' => [
|
---|
411 | 'name' => [
|
---|
412 | 'location' => 'path',
|
---|
413 | 'type' => 'string',
|
---|
414 | 'required' => true,
|
---|
415 | ],
|
---|
416 | 'updateMask' => [
|
---|
417 | 'location' => 'query',
|
---|
418 | 'type' => 'string',
|
---|
419 | ],
|
---|
420 | ],
|
---|
421 | ],'replaceAll' => [
|
---|
422 | 'path' => 'v1/{+parent}/servicePerimeters:replaceAll',
|
---|
423 | 'httpMethod' => 'POST',
|
---|
424 | 'parameters' => [
|
---|
425 | 'parent' => [
|
---|
426 | 'location' => 'path',
|
---|
427 | 'type' => 'string',
|
---|
428 | 'required' => true,
|
---|
429 | ],
|
---|
430 | ],
|
---|
431 | ],'testIamPermissions' => [
|
---|
432 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
433 | 'httpMethod' => 'POST',
|
---|
434 | 'parameters' => [
|
---|
435 | 'resource' => [
|
---|
436 | 'location' => 'path',
|
---|
437 | 'type' => 'string',
|
---|
438 | 'required' => true,
|
---|
439 | ],
|
---|
440 | ],
|
---|
441 | ],
|
---|
442 | ]
|
---|
443 | ]
|
---|
444 | );
|
---|
445 | $this->operations = new AccessContextManager\Resource\Operations(
|
---|
446 | $this,
|
---|
447 | $this->serviceName,
|
---|
448 | 'operations',
|
---|
449 | [
|
---|
450 | 'methods' => [
|
---|
451 | 'cancel' => [
|
---|
452 | 'path' => 'v1/{+name}:cancel',
|
---|
453 | 'httpMethod' => 'POST',
|
---|
454 | 'parameters' => [
|
---|
455 | 'name' => [
|
---|
456 | 'location' => 'path',
|
---|
457 | 'type' => 'string',
|
---|
458 | 'required' => true,
|
---|
459 | ],
|
---|
460 | ],
|
---|
461 | ],'delete' => [
|
---|
462 | 'path' => 'v1/{+name}',
|
---|
463 | 'httpMethod' => 'DELETE',
|
---|
464 | 'parameters' => [
|
---|
465 | 'name' => [
|
---|
466 | 'location' => 'path',
|
---|
467 | 'type' => 'string',
|
---|
468 | 'required' => true,
|
---|
469 | ],
|
---|
470 | ],
|
---|
471 | ],'get' => [
|
---|
472 | 'path' => 'v1/{+name}',
|
---|
473 | 'httpMethod' => 'GET',
|
---|
474 | 'parameters' => [
|
---|
475 | 'name' => [
|
---|
476 | 'location' => 'path',
|
---|
477 | 'type' => 'string',
|
---|
478 | 'required' => true,
|
---|
479 | ],
|
---|
480 | ],
|
---|
481 | ],'list' => [
|
---|
482 | 'path' => 'v1/{+name}',
|
---|
483 | 'httpMethod' => 'GET',
|
---|
484 | 'parameters' => [
|
---|
485 | 'name' => [
|
---|
486 | 'location' => 'path',
|
---|
487 | 'type' => 'string',
|
---|
488 | 'required' => true,
|
---|
489 | ],
|
---|
490 | 'filter' => [
|
---|
491 | 'location' => 'query',
|
---|
492 | 'type' => 'string',
|
---|
493 | ],
|
---|
494 | 'pageSize' => [
|
---|
495 | 'location' => 'query',
|
---|
496 | 'type' => 'integer',
|
---|
497 | ],
|
---|
498 | 'pageToken' => [
|
---|
499 | 'location' => 'query',
|
---|
500 | 'type' => 'string',
|
---|
501 | ],
|
---|
502 | ],
|
---|
503 | ],
|
---|
504 | ]
|
---|
505 | ]
|
---|
506 | );
|
---|
507 | $this->organizations_gcpUserAccessBindings = new AccessContextManager\Resource\OrganizationsGcpUserAccessBindings(
|
---|
508 | $this,
|
---|
509 | $this->serviceName,
|
---|
510 | 'gcpUserAccessBindings',
|
---|
511 | [
|
---|
512 | 'methods' => [
|
---|
513 | 'create' => [
|
---|
514 | 'path' => 'v1/{+parent}/gcpUserAccessBindings',
|
---|
515 | 'httpMethod' => 'POST',
|
---|
516 | 'parameters' => [
|
---|
517 | 'parent' => [
|
---|
518 | 'location' => 'path',
|
---|
519 | 'type' => 'string',
|
---|
520 | 'required' => true,
|
---|
521 | ],
|
---|
522 | ],
|
---|
523 | ],'delete' => [
|
---|
524 | 'path' => 'v1/{+name}',
|
---|
525 | 'httpMethod' => 'DELETE',
|
---|
526 | 'parameters' => [
|
---|
527 | 'name' => [
|
---|
528 | 'location' => 'path',
|
---|
529 | 'type' => 'string',
|
---|
530 | 'required' => true,
|
---|
531 | ],
|
---|
532 | ],
|
---|
533 | ],'get' => [
|
---|
534 | 'path' => 'v1/{+name}',
|
---|
535 | 'httpMethod' => 'GET',
|
---|
536 | 'parameters' => [
|
---|
537 | 'name' => [
|
---|
538 | 'location' => 'path',
|
---|
539 | 'type' => 'string',
|
---|
540 | 'required' => true,
|
---|
541 | ],
|
---|
542 | ],
|
---|
543 | ],'list' => [
|
---|
544 | 'path' => 'v1/{+parent}/gcpUserAccessBindings',
|
---|
545 | 'httpMethod' => 'GET',
|
---|
546 | 'parameters' => [
|
---|
547 | 'parent' => [
|
---|
548 | 'location' => 'path',
|
---|
549 | 'type' => 'string',
|
---|
550 | 'required' => true,
|
---|
551 | ],
|
---|
552 | 'pageSize' => [
|
---|
553 | 'location' => 'query',
|
---|
554 | 'type' => 'integer',
|
---|
555 | ],
|
---|
556 | 'pageToken' => [
|
---|
557 | 'location' => 'query',
|
---|
558 | 'type' => 'string',
|
---|
559 | ],
|
---|
560 | ],
|
---|
561 | ],'patch' => [
|
---|
562 | 'path' => 'v1/{+name}',
|
---|
563 | 'httpMethod' => 'PATCH',
|
---|
564 | 'parameters' => [
|
---|
565 | 'name' => [
|
---|
566 | 'location' => 'path',
|
---|
567 | 'type' => 'string',
|
---|
568 | 'required' => true,
|
---|
569 | ],
|
---|
570 | 'append' => [
|
---|
571 | 'location' => 'query',
|
---|
572 | 'type' => 'boolean',
|
---|
573 | ],
|
---|
574 | 'updateMask' => [
|
---|
575 | 'location' => 'query',
|
---|
576 | 'type' => 'string',
|
---|
577 | ],
|
---|
578 | ],
|
---|
579 | ],
|
---|
580 | ]
|
---|
581 | ]
|
---|
582 | );
|
---|
583 | $this->services = new AccessContextManager\Resource\Services(
|
---|
584 | $this,
|
---|
585 | $this->serviceName,
|
---|
586 | 'services',
|
---|
587 | [
|
---|
588 | 'methods' => [
|
---|
589 | 'get' => [
|
---|
590 | 'path' => 'v1/services/{name}',
|
---|
591 | 'httpMethod' => 'GET',
|
---|
592 | 'parameters' => [
|
---|
593 | 'name' => [
|
---|
594 | 'location' => 'path',
|
---|
595 | 'type' => 'string',
|
---|
596 | 'required' => true,
|
---|
597 | ],
|
---|
598 | ],
|
---|
599 | ],'list' => [
|
---|
600 | 'path' => 'v1/services',
|
---|
601 | 'httpMethod' => 'GET',
|
---|
602 | 'parameters' => [
|
---|
603 | 'pageSize' => [
|
---|
604 | 'location' => 'query',
|
---|
605 | 'type' => 'integer',
|
---|
606 | ],
|
---|
607 | 'pageToken' => [
|
---|
608 | 'location' => 'query',
|
---|
609 | 'type' => 'string',
|
---|
610 | ],
|
---|
611 | ],
|
---|
612 | ],
|
---|
613 | ]
|
---|
614 | ]
|
---|
615 | );
|
---|
616 | }
|
---|
617 | }
|
---|
618 |
|
---|
619 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
620 | class_alias(AccessContextManager::class, 'Google_Service_AccessContextManager');
|
---|