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