source: vendor/google/apiclient-services/src/WorkloadManager.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: 14.2 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 WorkloadManager (v1).
24 *
25 * <p>
26 * Workload Manager is a service that provides tooling for enterprise workloads
27 * to automate the deployment and validation of your workloads against best
28 * practices and recommendations.</p>
29 *
30 * <p>
31 * For more information about this service, see the API
32 * <a href="https://cloud.google.com/workload-manager/docs" target="_blank">Documentation</a>
33 * </p>
34 *
35 * @author Google, Inc.
36 */
37class WorkloadManager 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_evaluations;
45 public $projects_locations_evaluations_executions;
46 public $projects_locations_evaluations_executions_results;
47 public $projects_locations_evaluations_executions_scannedResources;
48 public $projects_locations_insights;
49 public $projects_locations_operations;
50 public $projects_locations_rules;
51 public $rootUrlTemplate;
52
53 /**
54 * Constructs the internal representation of the WorkloadManager 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://workloadmanager.googleapis.com/';
64 $this->rootUrlTemplate = $rootUrl ?: 'https://workloadmanager.UNIVERSE_DOMAIN/';
65 $this->servicePath = '';
66 $this->batchPath = 'batch';
67 $this->version = 'v1';
68 $this->serviceName = 'workloadmanager';
69
70 $this->projects_locations = new WorkloadManager\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_evaluations = new WorkloadManager\Resource\ProjectsLocationsEvaluations(
113 $this,
114 $this->serviceName,
115 'evaluations',
116 [
117 'methods' => [
118 'create' => [
119 'path' => 'v1/{+parent}/evaluations',
120 'httpMethod' => 'POST',
121 'parameters' => [
122 'parent' => [
123 'location' => 'path',
124 'type' => 'string',
125 'required' => true,
126 ],
127 'evaluationId' => [
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 'force' => [
146 'location' => 'query',
147 'type' => 'boolean',
148 ],
149 'requestId' => [
150 'location' => 'query',
151 'type' => 'string',
152 ],
153 ],
154 ],'get' => [
155 'path' => 'v1/{+name}',
156 'httpMethod' => 'GET',
157 'parameters' => [
158 'name' => [
159 'location' => 'path',
160 'type' => 'string',
161 'required' => true,
162 ],
163 ],
164 ],'list' => [
165 'path' => 'v1/{+parent}/evaluations',
166 'httpMethod' => 'GET',
167 'parameters' => [
168 'parent' => [
169 'location' => 'path',
170 'type' => 'string',
171 'required' => true,
172 ],
173 'filter' => [
174 'location' => 'query',
175 'type' => 'string',
176 ],
177 'orderBy' => [
178 'location' => 'query',
179 'type' => 'string',
180 ],
181 'pageSize' => [
182 'location' => 'query',
183 'type' => 'integer',
184 ],
185 'pageToken' => [
186 'location' => 'query',
187 'type' => 'string',
188 ],
189 ],
190 ],
191 ]
192 ]
193 );
194 $this->projects_locations_evaluations_executions = new WorkloadManager\Resource\ProjectsLocationsEvaluationsExecutions(
195 $this,
196 $this->serviceName,
197 'executions',
198 [
199 'methods' => [
200 'delete' => [
201 'path' => 'v1/{+name}',
202 'httpMethod' => 'DELETE',
203 'parameters' => [
204 'name' => [
205 'location' => 'path',
206 'type' => 'string',
207 'required' => true,
208 ],
209 'requestId' => [
210 'location' => 'query',
211 'type' => 'string',
212 ],
213 ],
214 ],'get' => [
215 'path' => 'v1/{+name}',
216 'httpMethod' => 'GET',
217 'parameters' => [
218 'name' => [
219 'location' => 'path',
220 'type' => 'string',
221 'required' => true,
222 ],
223 ],
224 ],'list' => [
225 'path' => 'v1/{+parent}/executions',
226 'httpMethod' => 'GET',
227 'parameters' => [
228 'parent' => [
229 'location' => 'path',
230 'type' => 'string',
231 'required' => true,
232 ],
233 'filter' => [
234 'location' => 'query',
235 'type' => 'string',
236 ],
237 'orderBy' => [
238 'location' => 'query',
239 'type' => 'string',
240 ],
241 'pageSize' => [
242 'location' => 'query',
243 'type' => 'integer',
244 ],
245 'pageToken' => [
246 'location' => 'query',
247 'type' => 'string',
248 ],
249 ],
250 ],'run' => [
251 'path' => 'v1/{+name}/executions:run',
252 'httpMethod' => 'POST',
253 'parameters' => [
254 'name' => [
255 'location' => 'path',
256 'type' => 'string',
257 'required' => true,
258 ],
259 ],
260 ],
261 ]
262 ]
263 );
264 $this->projects_locations_evaluations_executions_results = new WorkloadManager\Resource\ProjectsLocationsEvaluationsExecutionsResults(
265 $this,
266 $this->serviceName,
267 'results',
268 [
269 'methods' => [
270 'list' => [
271 'path' => 'v1/{+parent}/results',
272 'httpMethod' => 'GET',
273 'parameters' => [
274 'parent' => [
275 'location' => 'path',
276 'type' => 'string',
277 'required' => true,
278 ],
279 'filter' => [
280 'location' => 'query',
281 'type' => 'string',
282 ],
283 'pageSize' => [
284 'location' => 'query',
285 'type' => 'integer',
286 ],
287 'pageToken' => [
288 'location' => 'query',
289 'type' => 'string',
290 ],
291 ],
292 ],
293 ]
294 ]
295 );
296 $this->projects_locations_evaluations_executions_scannedResources = new WorkloadManager\Resource\ProjectsLocationsEvaluationsExecutionsScannedResources(
297 $this,
298 $this->serviceName,
299 'scannedResources',
300 [
301 'methods' => [
302 'list' => [
303 'path' => 'v1/{+parent}/scannedResources',
304 'httpMethod' => 'GET',
305 'parameters' => [
306 'parent' => [
307 'location' => 'path',
308 'type' => 'string',
309 'required' => true,
310 ],
311 'filter' => [
312 'location' => 'query',
313 'type' => 'string',
314 ],
315 'orderBy' => [
316 'location' => 'query',
317 'type' => 'string',
318 ],
319 'pageSize' => [
320 'location' => 'query',
321 'type' => 'integer',
322 ],
323 'pageToken' => [
324 'location' => 'query',
325 'type' => 'string',
326 ],
327 'rule' => [
328 'location' => 'query',
329 'type' => 'string',
330 ],
331 ],
332 ],
333 ]
334 ]
335 );
336 $this->projects_locations_insights = new WorkloadManager\Resource\ProjectsLocationsInsights(
337 $this,
338 $this->serviceName,
339 'insights',
340 [
341 'methods' => [
342 'writeInsight' => [
343 'path' => 'v1/{+location}/insights:writeInsight',
344 'httpMethod' => 'POST',
345 'parameters' => [
346 'location' => [
347 'location' => 'path',
348 'type' => 'string',
349 'required' => true,
350 ],
351 ],
352 ],
353 ]
354 ]
355 );
356 $this->projects_locations_operations = new WorkloadManager\Resource\ProjectsLocationsOperations(
357 $this,
358 $this->serviceName,
359 'operations',
360 [
361 'methods' => [
362 'cancel' => [
363 'path' => 'v1/{+name}:cancel',
364 'httpMethod' => 'POST',
365 'parameters' => [
366 'name' => [
367 'location' => 'path',
368 'type' => 'string',
369 'required' => true,
370 ],
371 ],
372 ],'delete' => [
373 'path' => 'v1/{+name}',
374 'httpMethod' => 'DELETE',
375 'parameters' => [
376 'name' => [
377 'location' => 'path',
378 'type' => 'string',
379 'required' => true,
380 ],
381 ],
382 ],'get' => [
383 'path' => 'v1/{+name}',
384 'httpMethod' => 'GET',
385 'parameters' => [
386 'name' => [
387 'location' => 'path',
388 'type' => 'string',
389 'required' => true,
390 ],
391 ],
392 ],'list' => [
393 'path' => 'v1/{+name}/operations',
394 'httpMethod' => 'GET',
395 'parameters' => [
396 'name' => [
397 'location' => 'path',
398 'type' => 'string',
399 'required' => true,
400 ],
401 'filter' => [
402 'location' => 'query',
403 'type' => 'string',
404 ],
405 'pageSize' => [
406 'location' => 'query',
407 'type' => 'integer',
408 ],
409 'pageToken' => [
410 'location' => 'query',
411 'type' => 'string',
412 ],
413 ],
414 ],
415 ]
416 ]
417 );
418 $this->projects_locations_rules = new WorkloadManager\Resource\ProjectsLocationsRules(
419 $this,
420 $this->serviceName,
421 'rules',
422 [
423 'methods' => [
424 'list' => [
425 'path' => 'v1/{+parent}/rules',
426 'httpMethod' => 'GET',
427 'parameters' => [
428 'parent' => [
429 'location' => 'path',
430 'type' => 'string',
431 'required' => true,
432 ],
433 'customRulesBucket' => [
434 'location' => 'query',
435 'type' => 'string',
436 ],
437 'filter' => [
438 'location' => 'query',
439 'type' => 'string',
440 ],
441 'pageSize' => [
442 'location' => 'query',
443 'type' => 'integer',
444 ],
445 'pageToken' => [
446 'location' => 'query',
447 'type' => 'string',
448 ],
449 ],
450 ],
451 ]
452 ]
453 );
454 }
455}
456
457// Adding a class alias for backwards compatibility with the previous class name.
458class_alias(WorkloadManager::class, 'Google_Service_WorkloadManager');
Note: See TracBrowser for help on using the repository browser.