source: vendor/google/apiclient-services/src/AccessApproval.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: 13.8 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 AccessApproval (v1).
24 *
25 * <p>
26 * An API for controlling access to data by Google personnel.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/assured-workloads/access-approval/docs" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class AccessApproval 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 $folders;
42 public $folders_approvalRequests;
43 public $organizations;
44 public $organizations_approvalRequests;
45 public $projects;
46 public $projects_approvalRequests;
47 public $rootUrlTemplate;
48
49 /**
50 * Constructs the internal representation of the AccessApproval service.
51 *
52 * @param Client|array $clientOrConfig The client used to deliver requests, or a
53 * config array to pass to a new Client instance.
54 * @param string $rootUrl The root URL used for requests to the service.
55 */
56 public function __construct($clientOrConfig = [], $rootUrl = null)
57 {
58 parent::__construct($clientOrConfig);
59 $this->rootUrl = $rootUrl ?: 'https://accessapproval.googleapis.com/';
60 $this->rootUrlTemplate = $rootUrl ?: 'https://accessapproval.UNIVERSE_DOMAIN/';
61 $this->servicePath = '';
62 $this->batchPath = 'batch';
63 $this->version = 'v1';
64 $this->serviceName = 'accessapproval';
65
66 $this->folders = new AccessApproval\Resource\Folders(
67 $this,
68 $this->serviceName,
69 'folders',
70 [
71 'methods' => [
72 'deleteAccessApprovalSettings' => [
73 'path' => 'v1/{+name}',
74 'httpMethod' => 'DELETE',
75 'parameters' => [
76 'name' => [
77 'location' => 'path',
78 'type' => 'string',
79 'required' => true,
80 ],
81 ],
82 ],'getAccessApprovalSettings' => [
83 'path' => 'v1/{+name}',
84 'httpMethod' => 'GET',
85 'parameters' => [
86 'name' => [
87 'location' => 'path',
88 'type' => 'string',
89 'required' => true,
90 ],
91 ],
92 ],'getServiceAccount' => [
93 'path' => 'v1/{+name}',
94 'httpMethod' => 'GET',
95 'parameters' => [
96 'name' => [
97 'location' => 'path',
98 'type' => 'string',
99 'required' => true,
100 ],
101 ],
102 ],'updateAccessApprovalSettings' => [
103 'path' => 'v1/{+name}',
104 'httpMethod' => 'PATCH',
105 'parameters' => [
106 'name' => [
107 'location' => 'path',
108 'type' => 'string',
109 'required' => true,
110 ],
111 'updateMask' => [
112 'location' => 'query',
113 'type' => 'string',
114 ],
115 ],
116 ],
117 ]
118 ]
119 );
120 $this->folders_approvalRequests = new AccessApproval\Resource\FoldersApprovalRequests(
121 $this,
122 $this->serviceName,
123 'approvalRequests',
124 [
125 'methods' => [
126 'approve' => [
127 'path' => 'v1/{+name}:approve',
128 'httpMethod' => 'POST',
129 'parameters' => [
130 'name' => [
131 'location' => 'path',
132 'type' => 'string',
133 'required' => true,
134 ],
135 ],
136 ],'dismiss' => [
137 'path' => 'v1/{+name}:dismiss',
138 'httpMethod' => 'POST',
139 'parameters' => [
140 'name' => [
141 'location' => 'path',
142 'type' => 'string',
143 'required' => true,
144 ],
145 ],
146 ],'get' => [
147 'path' => 'v1/{+name}',
148 'httpMethod' => 'GET',
149 'parameters' => [
150 'name' => [
151 'location' => 'path',
152 'type' => 'string',
153 'required' => true,
154 ],
155 ],
156 ],'invalidate' => [
157 'path' => 'v1/{+name}:invalidate',
158 'httpMethod' => 'POST',
159 'parameters' => [
160 'name' => [
161 'location' => 'path',
162 'type' => 'string',
163 'required' => true,
164 ],
165 ],
166 ],'list' => [
167 'path' => 'v1/{+parent}/approvalRequests',
168 'httpMethod' => 'GET',
169 'parameters' => [
170 'parent' => [
171 'location' => 'path',
172 'type' => 'string',
173 'required' => true,
174 ],
175 'filter' => [
176 'location' => 'query',
177 'type' => 'string',
178 ],
179 'pageSize' => [
180 'location' => 'query',
181 'type' => 'integer',
182 ],
183 'pageToken' => [
184 'location' => 'query',
185 'type' => 'string',
186 ],
187 ],
188 ],
189 ]
190 ]
191 );
192 $this->organizations = new AccessApproval\Resource\Organizations(
193 $this,
194 $this->serviceName,
195 'organizations',
196 [
197 'methods' => [
198 'deleteAccessApprovalSettings' => [
199 'path' => 'v1/{+name}',
200 'httpMethod' => 'DELETE',
201 'parameters' => [
202 'name' => [
203 'location' => 'path',
204 'type' => 'string',
205 'required' => true,
206 ],
207 ],
208 ],'getAccessApprovalSettings' => [
209 'path' => 'v1/{+name}',
210 'httpMethod' => 'GET',
211 'parameters' => [
212 'name' => [
213 'location' => 'path',
214 'type' => 'string',
215 'required' => true,
216 ],
217 ],
218 ],'getServiceAccount' => [
219 'path' => 'v1/{+name}',
220 'httpMethod' => 'GET',
221 'parameters' => [
222 'name' => [
223 'location' => 'path',
224 'type' => 'string',
225 'required' => true,
226 ],
227 ],
228 ],'updateAccessApprovalSettings' => [
229 'path' => 'v1/{+name}',
230 'httpMethod' => 'PATCH',
231 'parameters' => [
232 'name' => [
233 'location' => 'path',
234 'type' => 'string',
235 'required' => true,
236 ],
237 'updateMask' => [
238 'location' => 'query',
239 'type' => 'string',
240 ],
241 ],
242 ],
243 ]
244 ]
245 );
246 $this->organizations_approvalRequests = new AccessApproval\Resource\OrganizationsApprovalRequests(
247 $this,
248 $this->serviceName,
249 'approvalRequests',
250 [
251 'methods' => [
252 'approve' => [
253 'path' => 'v1/{+name}:approve',
254 'httpMethod' => 'POST',
255 'parameters' => [
256 'name' => [
257 'location' => 'path',
258 'type' => 'string',
259 'required' => true,
260 ],
261 ],
262 ],'dismiss' => [
263 'path' => 'v1/{+name}:dismiss',
264 'httpMethod' => 'POST',
265 'parameters' => [
266 'name' => [
267 'location' => 'path',
268 'type' => 'string',
269 'required' => true,
270 ],
271 ],
272 ],'get' => [
273 'path' => 'v1/{+name}',
274 'httpMethod' => 'GET',
275 'parameters' => [
276 'name' => [
277 'location' => 'path',
278 'type' => 'string',
279 'required' => true,
280 ],
281 ],
282 ],'invalidate' => [
283 'path' => 'v1/{+name}:invalidate',
284 'httpMethod' => 'POST',
285 'parameters' => [
286 'name' => [
287 'location' => 'path',
288 'type' => 'string',
289 'required' => true,
290 ],
291 ],
292 ],'list' => [
293 'path' => 'v1/{+parent}/approvalRequests',
294 'httpMethod' => 'GET',
295 'parameters' => [
296 'parent' => [
297 'location' => 'path',
298 'type' => 'string',
299 'required' => true,
300 ],
301 'filter' => [
302 'location' => 'query',
303 'type' => 'string',
304 ],
305 'pageSize' => [
306 'location' => 'query',
307 'type' => 'integer',
308 ],
309 'pageToken' => [
310 'location' => 'query',
311 'type' => 'string',
312 ],
313 ],
314 ],
315 ]
316 ]
317 );
318 $this->projects = new AccessApproval\Resource\Projects(
319 $this,
320 $this->serviceName,
321 'projects',
322 [
323 'methods' => [
324 'deleteAccessApprovalSettings' => [
325 'path' => 'v1/{+name}',
326 'httpMethod' => 'DELETE',
327 'parameters' => [
328 'name' => [
329 'location' => 'path',
330 'type' => 'string',
331 'required' => true,
332 ],
333 ],
334 ],'getAccessApprovalSettings' => [
335 'path' => 'v1/{+name}',
336 'httpMethod' => 'GET',
337 'parameters' => [
338 'name' => [
339 'location' => 'path',
340 'type' => 'string',
341 'required' => true,
342 ],
343 ],
344 ],'getServiceAccount' => [
345 'path' => 'v1/{+name}',
346 'httpMethod' => 'GET',
347 'parameters' => [
348 'name' => [
349 'location' => 'path',
350 'type' => 'string',
351 'required' => true,
352 ],
353 ],
354 ],'updateAccessApprovalSettings' => [
355 'path' => 'v1/{+name}',
356 'httpMethod' => 'PATCH',
357 'parameters' => [
358 'name' => [
359 'location' => 'path',
360 'type' => 'string',
361 'required' => true,
362 ],
363 'updateMask' => [
364 'location' => 'query',
365 'type' => 'string',
366 ],
367 ],
368 ],
369 ]
370 ]
371 );
372 $this->projects_approvalRequests = new AccessApproval\Resource\ProjectsApprovalRequests(
373 $this,
374 $this->serviceName,
375 'approvalRequests',
376 [
377 'methods' => [
378 'approve' => [
379 'path' => 'v1/{+name}:approve',
380 'httpMethod' => 'POST',
381 'parameters' => [
382 'name' => [
383 'location' => 'path',
384 'type' => 'string',
385 'required' => true,
386 ],
387 ],
388 ],'dismiss' => [
389 'path' => 'v1/{+name}:dismiss',
390 'httpMethod' => 'POST',
391 'parameters' => [
392 'name' => [
393 'location' => 'path',
394 'type' => 'string',
395 'required' => true,
396 ],
397 ],
398 ],'get' => [
399 'path' => 'v1/{+name}',
400 'httpMethod' => 'GET',
401 'parameters' => [
402 'name' => [
403 'location' => 'path',
404 'type' => 'string',
405 'required' => true,
406 ],
407 ],
408 ],'invalidate' => [
409 'path' => 'v1/{+name}:invalidate',
410 'httpMethod' => 'POST',
411 'parameters' => [
412 'name' => [
413 'location' => 'path',
414 'type' => 'string',
415 'required' => true,
416 ],
417 ],
418 ],'list' => [
419 'path' => 'v1/{+parent}/approvalRequests',
420 'httpMethod' => 'GET',
421 'parameters' => [
422 'parent' => [
423 'location' => 'path',
424 'type' => 'string',
425 'required' => true,
426 ],
427 'filter' => [
428 'location' => 'query',
429 'type' => 'string',
430 ],
431 'pageSize' => [
432 'location' => 'query',
433 'type' => 'integer',
434 ],
435 'pageToken' => [
436 'location' => 'query',
437 'type' => 'string',
438 ],
439 ],
440 ],
441 ]
442 ]
443 );
444 }
445}
446
447// Adding a class alias for backwards compatibility with the previous class name.
448class_alias(AccessApproval::class, 'Google_Service_AccessApproval');
Note: See TracBrowser for help on using the repository browser.