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