PluginProbe
UpdraftPlus: WP Backup & Migration Plugin / 1.16.5
UpdraftPlus: WP Backup & Migration Plugin v1.16.5
1.26.7 1.26.6 1.26.5 1.26.4 1.26.3 1.9.19 1.9.25 1.9.26 1.9.30 1.9.31 1.9.32 1.9.4 1.9.40 1.9.41 1.9.42 1.9.43 1.9.44 1.9.45 1.9.46 1.9.5 1.9.50 1.9.51 1.9.60 1.9.62 1.9.63 All 371 releases
updraftplus / includes / Google / Service / Logging.php

Logging.php in UpdraftPlus: WP Backup & Migration Plugin 1.16.5, at includes/Google/Service/Logging.php

1,301 lines 39.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Copyright 2010 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 /**
19 * Service definition for Logging (v1beta3).
20 *
21 * <p>
22 * Google Cloud Logging API lets you create logs, ingest log entries, and manage
23 * log sinks.</p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32 class Google_Service_Logging extends Google_Service
33 {
34 /** View and manage your data across Google Cloud Platform services. */
35 const CLOUD_PLATFORM =
36 "https://www.googleapis.com/auth/cloud-platform";
37
38 public $projects_logServices;
39 public $projects_logServices_indexes;
40 public $projects_logServices_sinks;
41 public $projects_logs;
42 public $projects_logs_entries;
43 public $projects_logs_sinks;
44
45
46 /**
47 * Constructs the internal representation of the Logging service.
48 *
49 * @param Google_Client $client
50 */
51 public function __construct(Google_Client $client)
52 {
53 parent::__construct($client);
54 $this->servicePath = '';
55 $this->version = 'v1beta3';
56 $this->serviceName = 'logging';
57
58 $this->projects_logServices = new Google_Service_Logging_ProjectsLogServices_Resource(
59 $this,
60 $this->serviceName,
61 'logServices',
62 array(
63 'methods' => array(
64 'list' => array(
65 'path' => 'v1beta3/projects/{projectsId}/logServices',
66 'httpMethod' => 'GET',
67 'parameters' => array(
68 'projectsId' => array(
69 'location' => 'path',
70 'type' => 'string',
71 'required' => true,
72 ),
73 'pageToken' => array(
74 'location' => 'query',
75 'type' => 'string',
76 ),
77 'log' => array(
78 'location' => 'query',
79 'type' => 'string',
80 ),
81 'pageSize' => array(
82 'location' => 'query',
83 'type' => 'integer',
84 ),
85 ),
86 ),
87 )
88 )
89 );
90 $this->projects_logServices_indexes = new Google_Service_Logging_ProjectsLogServicesIndexes_Resource(
91 $this,
92 $this->serviceName,
93 'indexes',
94 array(
95 'methods' => array(
96 'list' => array(
97 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/indexes',
98 'httpMethod' => 'GET',
99 'parameters' => array(
100 'projectsId' => array(
101 'location' => 'path',
102 'type' => 'string',
103 'required' => true,
104 ),
105 'logServicesId' => array(
106 'location' => 'path',
107 'type' => 'string',
108 'required' => true,
109 ),
110 'log' => array(
111 'location' => 'query',
112 'type' => 'string',
113 ),
114 'pageSize' => array(
115 'location' => 'query',
116 'type' => 'integer',
117 ),
118 'pageToken' => array(
119 'location' => 'query',
120 'type' => 'string',
121 ),
122 'depth' => array(
123 'location' => 'query',
124 'type' => 'integer',
125 ),
126 'indexPrefix' => array(
127 'location' => 'query',
128 'type' => 'string',
129 ),
130 ),
131 ),
132 )
133 )
134 );
135 $this->projects_logServices_sinks = new Google_Service_Logging_ProjectsLogServicesSinks_Resource(
136 $this,
137 $this->serviceName,
138 'sinks',
139 array(
140 'methods' => array(
141 'create' => array(
142 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks',
143 'httpMethod' => 'POST',
144 'parameters' => array(
145 'projectsId' => array(
146 'location' => 'path',
147 'type' => 'string',
148 'required' => true,
149 ),
150 'logServicesId' => array(
151 'location' => 'path',
152 'type' => 'string',
153 'required' => true,
154 ),
155 ),
156 ),'delete' => array(
157 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}',
158 'httpMethod' => 'DELETE',
159 'parameters' => array(
160 'projectsId' => array(
161 'location' => 'path',
162 'type' => 'string',
163 'required' => true,
164 ),
165 'logServicesId' => array(
166 'location' => 'path',
167 'type' => 'string',
168 'required' => true,
169 ),
170 'sinksId' => array(
171 'location' => 'path',
172 'type' => 'string',
173 'required' => true,
174 ),
175 ),
176 ),'get' => array(
177 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}',
178 'httpMethod' => 'GET',
179 'parameters' => array(
180 'projectsId' => array(
181 'location' => 'path',
182 'type' => 'string',
183 'required' => true,
184 ),
185 'logServicesId' => array(
186 'location' => 'path',
187 'type' => 'string',
188 'required' => true,
189 ),
190 'sinksId' => array(
191 'location' => 'path',
192 'type' => 'string',
193 'required' => true,
194 ),
195 ),
196 ),'list' => array(
197 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks',
198 'httpMethod' => 'GET',
199 'parameters' => array(
200 'projectsId' => array(
201 'location' => 'path',
202 'type' => 'string',
203 'required' => true,
204 ),
205 'logServicesId' => array(
206 'location' => 'path',
207 'type' => 'string',
208 'required' => true,
209 ),
210 ),
211 ),'update' => array(
212 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}',
213 'httpMethod' => 'PUT',
214 'parameters' => array(
215 'projectsId' => array(
216 'location' => 'path',
217 'type' => 'string',
218 'required' => true,
219 ),
220 'logServicesId' => array(
221 'location' => 'path',
222 'type' => 'string',
223 'required' => true,
224 ),
225 'sinksId' => array(
226 'location' => 'path',
227 'type' => 'string',
228 'required' => true,
229 ),
230 ),
231 ),
232 )
233 )
234 );
235 $this->projects_logs = new Google_Service_Logging_ProjectsLogs_Resource(
236 $this,
237 $this->serviceName,
238 'logs',
239 array(
240 'methods' => array(
241 'delete' => array(
242 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}',
243 'httpMethod' => 'DELETE',
244 'parameters' => array(
245 'projectsId' => array(
246 'location' => 'path',
247 'type' => 'string',
248 'required' => true,
249 ),
250 'logsId' => array(
251 'location' => 'path',
252 'type' => 'string',
253 'required' => true,
254 ),
255 ),
256 ),'list' => array(
257 'path' => 'v1beta3/projects/{projectsId}/logs',
258 'httpMethod' => 'GET',
259 'parameters' => array(
260 'projectsId' => array(
261 'location' => 'path',
262 'type' => 'string',
263 'required' => true,
264 ),
265 'pageToken' => array(
266 'location' => 'query',
267 'type' => 'string',
268 ),
269 'serviceName' => array(
270 'location' => 'query',
271 'type' => 'string',
272 ),
273 'serviceIndexPrefix' => array(
274 'location' => 'query',
275 'type' => 'string',
276 ),
277 'pageSize' => array(
278 'location' => 'query',
279 'type' => 'integer',
280 ),
281 ),
282 ),
283 )
284 )
285 );
286 $this->projects_logs_entries = new Google_Service_Logging_ProjectsLogsEntries_Resource(
287 $this,
288 $this->serviceName,
289 'entries',
290 array(
291 'methods' => array(
292 'write' => array(
293 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/entries:write',
294 'httpMethod' => 'POST',
295 'parameters' => array(
296 'projectsId' => array(
297 'location' => 'path',
298 'type' => 'string',
299 'required' => true,
300 ),
301 'logsId' => array(
302 'location' => 'path',
303 'type' => 'string',
304 'required' => true,
305 ),
306 ),
307 ),
308 )
309 )
310 );
311 $this->projects_logs_sinks = new Google_Service_Logging_ProjectsLogsSinks_Resource(
312 $this,
313 $this->serviceName,
314 'sinks',
315 array(
316 'methods' => array(
317 'create' => array(
318 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks',
319 'httpMethod' => 'POST',
320 'parameters' => array(
321 'projectsId' => array(
322 'location' => 'path',
323 'type' => 'string',
324 'required' => true,
325 ),
326 'logsId' => array(
327 'location' => 'path',
328 'type' => 'string',
329 'required' => true,
330 ),
331 ),
332 ),'delete' => array(
333 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}',
334 'httpMethod' => 'DELETE',
335 'parameters' => array(
336 'projectsId' => array(
337 'location' => 'path',
338 'type' => 'string',
339 'required' => true,
340 ),
341 'logsId' => array(
342 'location' => 'path',
343 'type' => 'string',
344 'required' => true,
345 ),
346 'sinksId' => array(
347 'location' => 'path',
348 'type' => 'string',
349 'required' => true,
350 ),
351 ),
352 ),'get' => array(
353 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}',
354 'httpMethod' => 'GET',
355 'parameters' => array(
356 'projectsId' => array(
357 'location' => 'path',
358 'type' => 'string',
359 'required' => true,
360 ),
361 'logsId' => array(
362 'location' => 'path',
363 'type' => 'string',
364 'required' => true,
365 ),
366 'sinksId' => array(
367 'location' => 'path',
368 'type' => 'string',
369 'required' => true,
370 ),
371 ),
372 ),'list' => array(
373 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks',
374 'httpMethod' => 'GET',
375 'parameters' => array(
376 'projectsId' => array(
377 'location' => 'path',
378 'type' => 'string',
379 'required' => true,
380 ),
381 'logsId' => array(
382 'location' => 'path',
383 'type' => 'string',
384 'required' => true,
385 ),
386 ),
387 ),'update' => array(
388 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}',
389 'httpMethod' => 'PUT',
390 'parameters' => array(
391 'projectsId' => array(
392 'location' => 'path',
393 'type' => 'string',
394 'required' => true,
395 ),
396 'logsId' => array(
397 'location' => 'path',
398 'type' => 'string',
399 'required' => true,
400 ),
401 'sinksId' => array(
402 'location' => 'path',
403 'type' => 'string',
404 'required' => true,
405 ),
406 ),
407 ),
408 )
409 )
410 );
411 }
412 }
413
414
415 /**
416 * The "projects" collection of methods.
417 * Typical usage is:
418 * <code>
419 * $loggingService = new Google_Service_Logging(...);
420 * $projects = $loggingService->projects;
421 * </code>
422 */
423 class Google_Service_Logging_Projects_Resource extends Google_Service_Resource
424 {
425 }
426
427 /**
428 * The "logServices" collection of methods.
429 * Typical usage is:
430 * <code>
431 * $loggingService = new Google_Service_Logging(...);
432 * $logServices = $loggingService->logServices;
433 * </code>
434 */
435 class Google_Service_Logging_ProjectsLogServices_Resource extends Google_Service_Resource
436 {
437
438 /**
439 * Lists log services associated with log entries ingested for a project.
440 * (logServices.listProjectsLogServices)
441 *
442 * @param string $projectsId Part of `projectName`. The project resource whose
443 * services are to be listed.
444 * @param array $optParams Optional parameters.
445 *
446 * @opt_param string pageToken An opaque token, returned as `nextPageToken` by a
447 * prior `ListLogServices` operation. If `pageToken` is supplied, then the other
448 * fields of this request are ignored, and instead the previous
449 * `ListLogServices` operation is continued.
450 * @opt_param string log The name of the log resource whose services are to be
451 * listed. log for which to list services. When empty, all services are listed.
452 * @opt_param int pageSize The maximum number of `LogService` objects to return
453 * in one operation.
454 * @return Google_Service_Logging_ListLogServicesResponse
455 */
456 public function listProjectsLogServices($projectsId, $optParams = array())
457 {
458 $params = array('projectsId' => $projectsId);
459 $params = array_merge($params, $optParams);
460 return $this->call('list', array($params), "Google_Service_Logging_ListLogServicesResponse");
461 }
462 }
463
464 /**
465 * The "indexes" collection of methods.
466 * Typical usage is:
467 * <code>
468 * $loggingService = new Google_Service_Logging(...);
469 * $indexes = $loggingService->indexes;
470 * </code>
471 */
472 class Google_Service_Logging_ProjectsLogServicesIndexes_Resource extends Google_Service_Resource
473 {
474
475 /**
476 * Lists log service indexes associated with a log service.
477 * (indexes.listProjectsLogServicesIndexes)
478 *
479 * @param string $projectsId Part of `serviceName`. A log service resource of
480 * the form `/projects/logServices`. The service indexes of the log service are
481 * returned. Example: `"/projects/myProj/logServices/appengine.googleapis.com"`.
482 * @param string $logServicesId Part of `serviceName`. See documentation of
483 * `projectsId`.
484 * @param array $optParams Optional parameters.
485 *
486 * @opt_param string log A log resource like
487 * `/projects/project_id/logs/log_name`, identifying the log for which to list
488 * service indexes.
489 * @opt_param int pageSize The maximum number of log service index resources to
490 * return in one operation.
491 * @opt_param string pageToken An opaque token, returned as `nextPageToken` by a
492 * prior `ListLogServiceIndexes` operation. If `pageToken` is supplied, then the
493 * other fields of this request are ignored, and instead the previous
494 * `ListLogServiceIndexes` operation is continued.
495 * @opt_param int depth A limit to the number of levels of the index hierarchy
496 * that are expanded. If `depth` is 0, it defaults to the level specified by the
497 * prefix field (the number of slash separators). The default empty prefix
498 * implies a `depth` of 1. It is an error for `depth` to be any non-zero value
499 * less than the number of components in `indexPrefix`.
500 * @opt_param string indexPrefix Restricts the indexes returned to be those with
501 * a specified prefix. The prefix has the form `"/label_value/label_value/..."`,
502 * in order corresponding to the [`LogService
503 * indexKeys`][google.logging.v1.LogService.index_keys]. Non-empty prefixes must
504 * begin with `/` . Example prefixes: + `"/myModule/"` retrieves App Engine
505 * versions associated with `myModule`. The trailing slash terminates the value.
506 * + `"/myModule"` retrieves App Engine modules with names beginning with
507 * `myModule`. + `""` retrieves all indexes.
508 * @return Google_Service_Logging_ListLogServiceIndexesResponse
509 */
510 public function listProjectsLogServicesIndexes($projectsId, $logServicesId, $optParams = array())
511 {
512 $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId);
513 $params = array_merge($params, $optParams);
514 return $this->call('list', array($params), "Google_Service_Logging_ListLogServiceIndexesResponse");
515 }
516 }
517 /**
518 * The "sinks" collection of methods.
519 * Typical usage is:
520 * <code>
521 * $loggingService = new Google_Service_Logging(...);
522 * $sinks = $loggingService->sinks;
523 * </code>
524 */
525 class Google_Service_Logging_ProjectsLogServicesSinks_Resource extends Google_Service_Resource
526 {
527
528 /**
529 * Creates the specified log service sink resource. (sinks.create)
530 *
531 * @param string $projectsId Part of `serviceName`. The name of the service in
532 * which to create a sink.
533 * @param string $logServicesId Part of `serviceName`. See documentation of
534 * `projectsId`.
535 * @param Google_LogSink $postBody
536 * @param array $optParams Optional parameters.
537 * @return Google_Service_Logging_LogSink
538 */
539 public function create($projectsId, $logServicesId, Google_Service_Logging_LogSink $postBody, $optParams = array())
540 {
541 $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'postBody' => $postBody);
542 $params = array_merge($params, $optParams);
543 return $this->call('create', array($params), "Google_Service_Logging_LogSink");
544 }
545
546 /**
547 * Deletes the specified log service sink. (sinks.delete)
548 *
549 * @param string $projectsId Part of `sinkName`. The name of the sink to delete.
550 * @param string $logServicesId Part of `sinkName`. See documentation of
551 * `projectsId`.
552 * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
553 * @param array $optParams Optional parameters.
554 * @return Google_Service_Logging_Empty
555 */
556 public function delete($projectsId, $logServicesId, $sinksId, $optParams = array())
557 {
558 $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'sinksId' => $sinksId);
559 $params = array_merge($params, $optParams);
560 return $this->call('delete', array($params), "Google_Service_Logging_Empty");
561 }
562
563 /**
564 * Gets the specified log service sink resource. (sinks.get)
565 *
566 * @param string $projectsId Part of `sinkName`. The name of the sink to return.
567 * @param string $logServicesId Part of `sinkName`. See documentation of
568 * `projectsId`.
569 * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
570 * @param array $optParams Optional parameters.
571 * @return Google_Service_Logging_LogSink
572 */
573 public function get($projectsId, $logServicesId, $sinksId, $optParams = array())
574 {
575 $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'sinksId' => $sinksId);
576 $params = array_merge($params, $optParams);
577 return $this->call('get', array($params), "Google_Service_Logging_LogSink");
578 }
579
580 /**
581 * Lists log service sinks associated with the specified service.
582 * (sinks.listProjectsLogServicesSinks)
583 *
584 * @param string $projectsId Part of `serviceName`. The name of the service for
585 * which to list sinks.
586 * @param string $logServicesId Part of `serviceName`. See documentation of
587 * `projectsId`.
588 * @param array $optParams Optional parameters.
589 * @return Google_Service_Logging_ListLogServiceSinksResponse
590 */
591 public function listProjectsLogServicesSinks($projectsId, $logServicesId, $optParams = array())
592 {
593 $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId);
594 $params = array_merge($params, $optParams);
595 return $this->call('list', array($params), "Google_Service_Logging_ListLogServiceSinksResponse");
596 }
597
598 /**
599 * Creates or update the specified log service sink resource. (sinks.update)
600 *
601 * @param string $projectsId Part of `sinkName`. The name of the sink to update.
602 * @param string $logServicesId Part of `sinkName`. See documentation of
603 * `projectsId`.
604 * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
605 * @param Google_LogSink $postBody
606 * @param array $optParams Optional parameters.
607 * @return Google_Service_Logging_LogSink
608 */
609 public function update($projectsId, $logServicesId, $sinksId, Google_Service_Logging_LogSink $postBody, $optParams = array())
610 {
611 $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'sinksId' => $sinksId, 'postBody' => $postBody);
612 $params = array_merge($params, $optParams);
613 return $this->call('update', array($params), "Google_Service_Logging_LogSink");
614 }
615 }
616 /**
617 * The "logs" collection of methods.
618 * Typical usage is:
619 * <code>
620 * $loggingService = new Google_Service_Logging(...);
621 * $logs = $loggingService->logs;
622 * </code>
623 */
624 class Google_Service_Logging_ProjectsLogs_Resource extends Google_Service_Resource
625 {
626
627 /**
628 * Deletes the specified log resource and all log entries contained in it.
629 * (logs.delete)
630 *
631 * @param string $projectsId Part of `logName`. The log resource to delete.
632 * @param string $logsId Part of `logName`. See documentation of `projectsId`.
633 * @param array $optParams Optional parameters.
634 * @return Google_Service_Logging_Empty
635 */
636 public function delete($projectsId, $logsId, $optParams = array())
637 {
638 $params = array('projectsId' => $projectsId, 'logsId' => $logsId);
639 $params = array_merge($params, $optParams);
640 return $this->call('delete', array($params), "Google_Service_Logging_Empty");
641 }
642
643 /**
644 * Lists log resources belonging to the specified project.
645 * (logs.listProjectsLogs)
646 *
647 * @param string $projectsId Part of `projectName`. The project name for which
648 * to list the log resources.
649 * @param array $optParams Optional parameters.
650 *
651 * @opt_param string pageToken An opaque token, returned as `nextPageToken` by a
652 * prior `ListLogs` operation. If `pageToken` is supplied, then the other fields
653 * of this request are ignored, and instead the previous `ListLogs` operation is
654 * continued.
655 * @opt_param string serviceName A service name for which to list logs. Only
656 * logs containing entries whose metadata includes this service name are
657 * returned. If `serviceName` and `serviceIndexPrefix` are both empty, then all
658 * log names are returned. To list all log names, regardless of service, leave
659 * both the `serviceName` and `serviceIndexPrefix` empty. To list log names
660 * containing entries with a particular service name (or explicitly empty
661 * service name) set `serviceName` to the desired value and `serviceIndexPrefix`
662 * to `"/"`.
663 * @opt_param string serviceIndexPrefix A log service index prefix for which to
664 * list logs. Only logs containing entries whose metadata that includes these
665 * label values (associated with index keys) are returned. The prefix is a slash
666 * separated list of values, and need not specify all index labels. An empty
667 * index (or a single slash) matches all log service indexes.
668 * @opt_param int pageSize The maximum number of results to return.
669 * @return Google_Service_Logging_ListLogsResponse
670 */
671 public function listProjectsLogs($projectsId, $optParams = array())
672 {
673 $params = array('projectsId' => $projectsId);
674 $params = array_merge($params, $optParams);
675 return $this->call('list', array($params), "Google_Service_Logging_ListLogsResponse");
676 }
677 }
678
679 /**
680 * The "entries" collection of methods.
681 * Typical usage is:
682 * <code>
683 * $loggingService = new Google_Service_Logging(...);
684 * $entries = $loggingService->entries;
685 * </code>
686 */
687 class Google_Service_Logging_ProjectsLogsEntries_Resource extends Google_Service_Resource
688 {
689
690 /**
691 * Creates one or more log entries in a log. You must supply a list of
692 * `LogEntry` objects, named `entries`. Each `LogEntry` object must contain a
693 * payload object and a `LogEntryMetadata` object that describes the entry. You
694 * must fill in all the fields of the entry, metadata, and payload. You can also
695 * supply a map, `commonLabels`, that supplies default (key, value) data for the
696 * `entries[].metadata.labels` maps, saving you the trouble of creating
697 * identical copies for each entry. (entries.write)
698 *
699 * @param string $projectsId Part of `logName`. The name of the log resource
700 * into which to insert the log entries.
701 * @param string $logsId Part of `logName`. See documentation of `projectsId`.
702 * @param Google_WriteLogEntriesRequest $postBody
703 * @param array $optParams Optional parameters.
704 * @return Google_Service_Logging_WriteLogEntriesResponse
705 */
706 public function write($projectsId, $logsId, Google_Service_Logging_WriteLogEntriesRequest $postBody, $optParams = array())
707 {
708 $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'postBody' => $postBody);
709 $params = array_merge($params, $optParams);
710 return $this->call('write', array($params), "Google_Service_Logging_WriteLogEntriesResponse");
711 }
712 }
713 /**
714 * The "sinks" collection of methods.
715 * Typical usage is:
716 * <code>
717 * $loggingService = new Google_Service_Logging(...);
718 * $sinks = $loggingService->sinks;
719 * </code>
720 */
721 class Google_Service_Logging_ProjectsLogsSinks_Resource extends Google_Service_Resource
722 {
723
724 /**
725 * Creates the specified log sink resource. (sinks.create)
726 *
727 * @param string $projectsId Part of `logName`. The log in which to create a
728 * sink resource.
729 * @param string $logsId Part of `logName`. See documentation of `projectsId`.
730 * @param Google_LogSink $postBody
731 * @param array $optParams Optional parameters.
732 * @return Google_Service_Logging_LogSink
733 */
734 public function create($projectsId, $logsId, Google_Service_Logging_LogSink $postBody, $optParams = array())
735 {
736 $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'postBody' => $postBody);
737 $params = array_merge($params, $optParams);
738 return $this->call('create', array($params), "Google_Service_Logging_LogSink");
739 }
740
741 /**
742 * Deletes the specified log sink resource. (sinks.delete)
743 *
744 * @param string $projectsId Part of `sinkName`. The name of the sink to delete.
745 * @param string $logsId Part of `sinkName`. See documentation of `projectsId`.
746 * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
747 * @param array $optParams Optional parameters.
748 * @return Google_Service_Logging_Empty
749 */
750 public function delete($projectsId, $logsId, $sinksId, $optParams = array())
751 {
752 $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId);
753 $params = array_merge($params, $optParams);
754 return $this->call('delete', array($params), "Google_Service_Logging_Empty");
755 }
756
757 /**
758 * Gets the specified log sink resource. (sinks.get)
759 *
760 * @param string $projectsId Part of `sinkName`. The name of the sink resource
761 * to return.
762 * @param string $logsId Part of `sinkName`. See documentation of `projectsId`.
763 * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
764 * @param array $optParams Optional parameters.
765 * @return Google_Service_Logging_LogSink
766 */
767 public function get($projectsId, $logsId, $sinksId, $optParams = array())
768 {
769 $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId);
770 $params = array_merge($params, $optParams);
771 return $this->call('get', array($params), "Google_Service_Logging_LogSink");
772 }
773
774 /**
775 * Lists log sinks associated with the specified log.
776 * (sinks.listProjectsLogsSinks)
777 *
778 * @param string $projectsId Part of `logName`. The log for which to list sinks.
779 * @param string $logsId Part of `logName`. See documentation of `projectsId`.
780 * @param array $optParams Optional parameters.
781 * @return Google_Service_Logging_ListLogSinksResponse
782 */
783 public function listProjectsLogsSinks($projectsId, $logsId, $optParams = array())
784 {
785 $params = array('projectsId' => $projectsId, 'logsId' => $logsId);
786 $params = array_merge($params, $optParams);
787 return $this->call('list', array($params), "Google_Service_Logging_ListLogSinksResponse");
788 }
789
790 /**
791 * Creates or updates the specified log sink resource. (sinks.update)
792 *
793 * @param string $projectsId Part of `sinkName`. The name of the sink to update.
794 * @param string $logsId Part of `sinkName`. See documentation of `projectsId`.
795 * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
796 * @param Google_LogSink $postBody
797 * @param array $optParams Optional parameters.
798 * @return Google_Service_Logging_LogSink
799 */
800 public function update($projectsId, $logsId, $sinksId, Google_Service_Logging_LogSink $postBody, $optParams = array())
801 {
802 $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId, 'postBody' => $postBody);
803 $params = array_merge($params, $optParams);
804 return $this->call('update', array($params), "Google_Service_Logging_LogSink");
805 }
806 }
807
808
809
810
811 class Google_Service_Logging_Empty extends Google_Model
812 {
813 }
814
815 class Google_Service_Logging_ListLogServiceIndexesResponse extends Google_Collection
816 {
817 protected $collection_key = 'serviceIndexPrefixes';
818 protected $internal_gapi_mappings = array(
819 );
820 public $nextPageToken;
821 public $serviceIndexPrefixes;
822
823
824 public function setNextPageToken($nextPageToken)
825 {
826 $this->nextPageToken = $nextPageToken;
827 }
828 public function getNextPageToken()
829 {
830 return $this->nextPageToken;
831 }
832 public function setServiceIndexPrefixes($serviceIndexPrefixes)
833 {
834 $this->serviceIndexPrefixes = $serviceIndexPrefixes;
835 }
836 public function getServiceIndexPrefixes()
837 {
838 return $this->serviceIndexPrefixes;
839 }
840 }
841
842 class Google_Service_Logging_ListLogServiceSinksResponse extends Google_Collection
843 {
844 protected $collection_key = 'sinks';
845 protected $internal_gapi_mappings = array(
846 );
847 protected $sinksType = 'Google_Service_Logging_LogSink';
848 protected $sinksDataType = 'array';
849
850
851 public function setSinks($sinks)
852 {
853 $this->sinks = $sinks;
854 }
855 public function getSinks()
856 {
857 return $this->sinks;
858 }
859 }
860
861 class Google_Service_Logging_ListLogServicesResponse extends Google_Collection
862 {
863 protected $collection_key = 'logServices';
864 protected $internal_gapi_mappings = array(
865 );
866 protected $logServicesType = 'Google_Service_Logging_LogService';
867 protected $logServicesDataType = 'array';
868 public $nextPageToken;
869
870
871 public function setLogServices($logServices)
872 {
873 $this->logServices = $logServices;
874 }
875 public function getLogServices()
876 {
877 return $this->logServices;
878 }
879 public function setNextPageToken($nextPageToken)
880 {
881 $this->nextPageToken = $nextPageToken;
882 }
883 public function getNextPageToken()
884 {
885 return $this->nextPageToken;
886 }
887 }
888
889 class Google_Service_Logging_ListLogSinksResponse extends Google_Collection
890 {
891 protected $collection_key = 'sinks';
892 protected $internal_gapi_mappings = array(
893 );
894 protected $sinksType = 'Google_Service_Logging_LogSink';
895 protected $sinksDataType = 'array';
896
897
898 public function setSinks($sinks)
899 {
900 $this->sinks = $sinks;
901 }
902 public function getSinks()
903 {
904 return $this->sinks;
905 }
906 }
907
908 class Google_Service_Logging_ListLogsResponse extends Google_Collection
909 {
910 protected $collection_key = 'logs';
911 protected $internal_gapi_mappings = array(
912 );
913 protected $logsType = 'Google_Service_Logging_Log';
914 protected $logsDataType = 'array';
915 public $nextPageToken;
916
917
918 public function setLogs($logs)
919 {
920 $this->logs = $logs;
921 }
922 public function getLogs()
923 {
924 return $this->logs;
925 }
926 public function setNextPageToken($nextPageToken)
927 {
928 $this->nextPageToken = $nextPageToken;
929 }
930 public function getNextPageToken()
931 {
932 return $this->nextPageToken;
933 }
934 }
935
936 class Google_Service_Logging_Log extends Google_Model
937 {
938 protected $internal_gapi_mappings = array(
939 );
940 public $displayName;
941 public $name;
942 public $payloadType;
943
944
945 public function setDisplayName($displayName)
946 {
947 $this->displayName = $displayName;
948 }
949 public function getDisplayName()
950 {
951 return $this->displayName;
952 }
953 public function setName($name)
954 {
955 $this->name = $name;
956 }
957 public function getName()
958 {
959 return $this->name;
960 }
961 public function setPayloadType($payloadType)
962 {
963 $this->payloadType = $payloadType;
964 }
965 public function getPayloadType()
966 {
967 return $this->payloadType;
968 }
969 }
970
971 class Google_Service_Logging_LogEntry extends Google_Model
972 {
973 protected $internal_gapi_mappings = array(
974 );
975 public $insertId;
976 public $log;
977 protected $metadataType = 'Google_Service_Logging_LogEntryMetadata';
978 protected $metadataDataType = '';
979 public $protoPayload;
980 public $structPayload;
981 public $textPayload;
982
983
984 public function setInsertId($insertId)
985 {
986 $this->insertId = $insertId;
987 }
988 public function getInsertId()
989 {
990 return $this->insertId;
991 }
992 public function setLog($log)
993 {
994 $this->log = $log;
995 }
996 public function getLog()
997 {
998 return $this->log;
999 }
1000 public function setMetadata(Google_Service_Logging_LogEntryMetadata $metadata)
1001 {
1002 $this->metadata = $metadata;
1003 }
1004 public function getMetadata()
1005 {
1006 return $this->metadata;
1007 }
1008 public function setProtoPayload($protoPayload)
1009 {
1010 $this->protoPayload = $protoPayload;
1011 }
1012 public function getProtoPayload()
1013 {
1014 return $this->protoPayload;
1015 }
1016 public function setStructPayload($structPayload)
1017 {
1018 $this->structPayload = $structPayload;
1019 }
1020 public function getStructPayload()
1021 {
1022 return $this->structPayload;
1023 }
1024 public function setTextPayload($textPayload)
1025 {
1026 $this->textPayload = $textPayload;
1027 }
1028 public function getTextPayload()
1029 {
1030 return $this->textPayload;
1031 }
1032 }
1033
1034 class Google_Service_Logging_LogEntryMetadata extends Google_Model
1035 {
1036 protected $internal_gapi_mappings = array(
1037 );
1038 public $labels;
1039 public $projectId;
1040 public $region;
1041 public $serviceName;
1042 public $severity;
1043 public $timestamp;
1044 public $userId;
1045 public $zone;
1046
1047
1048 public function setLabels($labels)
1049 {
1050 $this->labels = $labels;
1051 }
1052 public function getLabels()
1053 {
1054 return $this->labels;
1055 }
1056 public function setProjectId($projectId)
1057 {
1058 $this->projectId = $projectId;
1059 }
1060 public function getProjectId()
1061 {
1062 return $this->projectId;
1063 }
1064 public function setRegion($region)
1065 {
1066 $this->region = $region;
1067 }
1068 public function getRegion()
1069 {
1070 return $this->region;
1071 }
1072 public function setServiceName($serviceName)
1073 {
1074 $this->serviceName = $serviceName;
1075 }
1076 public function getServiceName()
1077 {
1078 return $this->serviceName;
1079 }
1080 public function setSeverity($severity)
1081 {
1082 $this->severity = $severity;
1083 }
1084 public function getSeverity()
1085 {
1086 return $this->severity;
1087 }
1088 public function setTimestamp($timestamp)
1089 {
1090 $this->timestamp = $timestamp;
1091 }
1092 public function getTimestamp()
1093 {
1094 return $this->timestamp;
1095 }
1096 public function setUserId($userId)
1097 {
1098 $this->userId = $userId;
1099 }
1100 public function getUserId()
1101 {
1102 return $this->userId;
1103 }
1104 public function setZone($zone)
1105 {
1106 $this->zone = $zone;
1107 }
1108 public function getZone()
1109 {
1110 return $this->zone;
1111 }
1112 }
1113
1114 class Google_Service_Logging_LogEntryMetadataLabels extends Google_Model
1115 {
1116 }
1117
1118 class Google_Service_Logging_LogEntryProtoPayload extends Google_Model
1119 {
1120 }
1121
1122 class Google_Service_Logging_LogEntryStructPayload extends Google_Model
1123 {
1124 }
1125
1126 class Google_Service_Logging_LogError extends Google_Model
1127 {
1128 protected $internal_gapi_mappings = array(
1129 );
1130 public $resource;
1131 protected $statusType = 'Google_Service_Logging_Status';
1132 protected $statusDataType = '';
1133 public $timeNanos;
1134
1135
1136 public function setResource($resource)
1137 {
1138 $this->resource = $resource;
1139 }
1140 public function getResource()
1141 {
1142 return $this->resource;
1143 }
1144 public function setStatus(Google_Service_Logging_Status $status)
1145 {
1146 $this->status = $status;
1147 }
1148 public function getStatus()
1149 {
1150 return $this->status;
1151 }
1152 public function setTimeNanos($timeNanos)
1153 {
1154 $this->timeNanos = $timeNanos;
1155 }
1156 public function getTimeNanos()
1157 {
1158 return $this->timeNanos;
1159 }
1160 }
1161
1162 class Google_Service_Logging_LogService extends Google_Collection
1163 {
1164 protected $collection_key = 'indexKeys';
1165 protected $internal_gapi_mappings = array(
1166 );
1167 public $indexKeys;
1168 public $name;
1169
1170
1171 public function setIndexKeys($indexKeys)
1172 {
1173 $this->indexKeys = $indexKeys;
1174 }
1175 public function getIndexKeys()
1176 {
1177 return $this->indexKeys;
1178 }
1179 public function setName($name)
1180 {
1181 $this->name = $name;
1182 }
1183 public function getName()
1184 {
1185 return $this->name;
1186 }
1187 }
1188
1189 class Google_Service_Logging_LogSink extends Google_Collection
1190 {
1191 protected $collection_key = 'errors';
1192 protected $internal_gapi_mappings = array(
1193 );
1194 public $destination;
1195 protected $errorsType = 'Google_Service_Logging_LogError';
1196 protected $errorsDataType = 'array';
1197 public $name;
1198
1199
1200 public function setDestination($destination)
1201 {
1202 $this->destination = $destination;
1203 }
1204 public function getDestination()
1205 {
1206 return $this->destination;
1207 }
1208 public function setErrors($errors)
1209 {
1210 $this->errors = $errors;
1211 }
1212 public function getErrors()
1213 {
1214 return $this->errors;
1215 }
1216 public function setName($name)
1217 {
1218 $this->name = $name;
1219 }
1220 public function getName()
1221 {
1222 return $this->name;
1223 }
1224 }
1225
1226 class Google_Service_Logging_Status extends Google_Collection
1227 {
1228 protected $collection_key = 'details';
1229 protected $internal_gapi_mappings = array(
1230 );
1231 public $code;
1232 public $details;
1233 public $message;
1234
1235
1236 public function setCode($code)
1237 {
1238 $this->code = $code;
1239 }
1240 public function getCode()
1241 {
1242 return $this->code;
1243 }
1244 public function setDetails($details)
1245 {
1246 $this->details = $details;
1247 }
1248 public function getDetails()
1249 {
1250 return $this->details;
1251 }
1252 public function setMessage($message)
1253 {
1254 $this->message = $message;
1255 }
1256 public function getMessage()
1257 {
1258 return $this->message;
1259 }
1260 }
1261
1262 class Google_Service_Logging_StatusDetails extends Google_Model
1263 {
1264 }
1265
1266 class Google_Service_Logging_WriteLogEntriesRequest extends Google_Collection
1267 {
1268 protected $collection_key = 'entries';
1269 protected $internal_gapi_mappings = array(
1270 );
1271 public $commonLabels;
1272 protected $entriesType = 'Google_Service_Logging_LogEntry';
1273 protected $entriesDataType = 'array';
1274
1275
1276 public function setCommonLabels($commonLabels)
1277 {
1278 $this->commonLabels = $commonLabels;
1279 }
1280 public function getCommonLabels()
1281 {
1282 return $this->commonLabels;
1283 }
1284 public function setEntries($entries)
1285 {
1286 $this->entries = $entries;
1287 }
1288 public function getEntries()
1289 {
1290 return $this->entries;
1291 }
1292 }
1293
1294 class Google_Service_Logging_WriteLogEntriesRequestCommonLabels extends Google_Model
1295 {
1296 }
1297
1298 class Google_Service_Logging_WriteLogEntriesResponse extends Google_Model
1299 {
1300 }
1301