source: vendor/google/apiclient-services/src/Gmail.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: 46.7 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 Gmail (v1).
24 *
25 * <p>
26 * The Gmail API lets you view and manage Gmail mailbox data like threads,
27 * messages, and labels.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://developers.google.com/gmail/api/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class Gmail extends \Google\Service
37{
38 /** Read, compose, send, and permanently delete all your email from Gmail. */
39 const MAIL_GOOGLE_COM =
40 "https://mail.google.com/";
41 /** Manage drafts and send emails when you interact with the add-on. */
42 const GMAIL_ADDONS_CURRENT_ACTION_COMPOSE =
43 "https://www.googleapis.com/auth/gmail.addons.current.action.compose";
44 /** View your email messages when you interact with the add-on. */
45 const GMAIL_ADDONS_CURRENT_MESSAGE_ACTION =
46 "https://www.googleapis.com/auth/gmail.addons.current.message.action";
47 /** View your email message metadata when the add-on is running. */
48 const GMAIL_ADDONS_CURRENT_MESSAGE_METADATA =
49 "https://www.googleapis.com/auth/gmail.addons.current.message.metadata";
50 /** View your email messages when the add-on is running. */
51 const GMAIL_ADDONS_CURRENT_MESSAGE_READONLY =
52 "https://www.googleapis.com/auth/gmail.addons.current.message.readonly";
53 /** Manage drafts and send emails. */
54 const GMAIL_COMPOSE =
55 "https://www.googleapis.com/auth/gmail.compose";
56 /** Add emails into your Gmail mailbox. */
57 const GMAIL_INSERT =
58 "https://www.googleapis.com/auth/gmail.insert";
59 /** See and edit your email labels. */
60 const GMAIL_LABELS =
61 "https://www.googleapis.com/auth/gmail.labels";
62 /** View your email message metadata such as labels and headers, but not the email body. */
63 const GMAIL_METADATA =
64 "https://www.googleapis.com/auth/gmail.metadata";
65 /** Read, compose, and send emails from your Gmail account. */
66 const GMAIL_MODIFY =
67 "https://www.googleapis.com/auth/gmail.modify";
68 /** View your email messages and settings. */
69 const GMAIL_READONLY =
70 "https://www.googleapis.com/auth/gmail.readonly";
71 /** Send email on your behalf. */
72 const GMAIL_SEND =
73 "https://www.googleapis.com/auth/gmail.send";
74 /** See, edit, create, or change your email settings and filters in Gmail. */
75 const GMAIL_SETTINGS_BASIC =
76 "https://www.googleapis.com/auth/gmail.settings.basic";
77 /** Manage your sensitive mail settings, including who can manage your mail. */
78 const GMAIL_SETTINGS_SHARING =
79 "https://www.googleapis.com/auth/gmail.settings.sharing";
80
81 public $users;
82 public $users_drafts;
83 public $users_history;
84 public $users_labels;
85 public $users_messages;
86 public $users_messages_attachments;
87 public $users_settings;
88 public $users_settings_cse_identities;
89 public $users_settings_cse_keypairs;
90 public $users_settings_delegates;
91 public $users_settings_filters;
92 public $users_settings_forwardingAddresses;
93 public $users_settings_sendAs;
94 public $users_settings_sendAs_smimeInfo;
95 public $users_threads;
96 public $rootUrlTemplate;
97
98 /**
99 * Constructs the internal representation of the Gmail service.
100 *
101 * @param Client|array $clientOrConfig The client used to deliver requests, or a
102 * config array to pass to a new Client instance.
103 * @param string $rootUrl The root URL used for requests to the service.
104 */
105 public function __construct($clientOrConfig = [], $rootUrl = null)
106 {
107 parent::__construct($clientOrConfig);
108 $this->rootUrl = $rootUrl ?: 'https://gmail.googleapis.com/';
109 $this->rootUrlTemplate = $rootUrl ?: 'https://gmail.UNIVERSE_DOMAIN/';
110 $this->servicePath = '';
111 $this->batchPath = 'batch';
112 $this->version = 'v1';
113 $this->serviceName = 'gmail';
114
115 $this->users = new Gmail\Resource\Users(
116 $this,
117 $this->serviceName,
118 'users',
119 [
120 'methods' => [
121 'getProfile' => [
122 'path' => 'gmail/v1/users/{userId}/profile',
123 'httpMethod' => 'GET',
124 'parameters' => [
125 'userId' => [
126 'location' => 'path',
127 'type' => 'string',
128 'required' => true,
129 ],
130 ],
131 ],'stop' => [
132 'path' => 'gmail/v1/users/{userId}/stop',
133 'httpMethod' => 'POST',
134 'parameters' => [
135 'userId' => [
136 'location' => 'path',
137 'type' => 'string',
138 'required' => true,
139 ],
140 ],
141 ],'watch' => [
142 'path' => 'gmail/v1/users/{userId}/watch',
143 'httpMethod' => 'POST',
144 'parameters' => [
145 'userId' => [
146 'location' => 'path',
147 'type' => 'string',
148 'required' => true,
149 ],
150 ],
151 ],
152 ]
153 ]
154 );
155 $this->users_drafts = new Gmail\Resource\UsersDrafts(
156 $this,
157 $this->serviceName,
158 'drafts',
159 [
160 'methods' => [
161 'create' => [
162 'path' => 'gmail/v1/users/{userId}/drafts',
163 'httpMethod' => 'POST',
164 'parameters' => [
165 'userId' => [
166 'location' => 'path',
167 'type' => 'string',
168 'required' => true,
169 ],
170 ],
171 ],'delete' => [
172 'path' => 'gmail/v1/users/{userId}/drafts/{id}',
173 'httpMethod' => 'DELETE',
174 'parameters' => [
175 'userId' => [
176 'location' => 'path',
177 'type' => 'string',
178 'required' => true,
179 ],
180 'id' => [
181 'location' => 'path',
182 'type' => 'string',
183 'required' => true,
184 ],
185 ],
186 ],'get' => [
187 'path' => 'gmail/v1/users/{userId}/drafts/{id}',
188 'httpMethod' => 'GET',
189 'parameters' => [
190 'userId' => [
191 'location' => 'path',
192 'type' => 'string',
193 'required' => true,
194 ],
195 'id' => [
196 'location' => 'path',
197 'type' => 'string',
198 'required' => true,
199 ],
200 'format' => [
201 'location' => 'query',
202 'type' => 'string',
203 ],
204 ],
205 ],'list' => [
206 'path' => 'gmail/v1/users/{userId}/drafts',
207 'httpMethod' => 'GET',
208 'parameters' => [
209 'userId' => [
210 'location' => 'path',
211 'type' => 'string',
212 'required' => true,
213 ],
214 'includeSpamTrash' => [
215 'location' => 'query',
216 'type' => 'boolean',
217 ],
218 'maxResults' => [
219 'location' => 'query',
220 'type' => 'integer',
221 ],
222 'pageToken' => [
223 'location' => 'query',
224 'type' => 'string',
225 ],
226 'q' => [
227 'location' => 'query',
228 'type' => 'string',
229 ],
230 ],
231 ],'send' => [
232 'path' => 'gmail/v1/users/{userId}/drafts/send',
233 'httpMethod' => 'POST',
234 'parameters' => [
235 'userId' => [
236 'location' => 'path',
237 'type' => 'string',
238 'required' => true,
239 ],
240 ],
241 ],'update' => [
242 'path' => 'gmail/v1/users/{userId}/drafts/{id}',
243 'httpMethod' => 'PUT',
244 'parameters' => [
245 'userId' => [
246 'location' => 'path',
247 'type' => 'string',
248 'required' => true,
249 ],
250 'id' => [
251 'location' => 'path',
252 'type' => 'string',
253 'required' => true,
254 ],
255 ],
256 ],
257 ]
258 ]
259 );
260 $this->users_history = new Gmail\Resource\UsersHistory(
261 $this,
262 $this->serviceName,
263 'history',
264 [
265 'methods' => [
266 'list' => [
267 'path' => 'gmail/v1/users/{userId}/history',
268 'httpMethod' => 'GET',
269 'parameters' => [
270 'userId' => [
271 'location' => 'path',
272 'type' => 'string',
273 'required' => true,
274 ],
275 'historyTypes' => [
276 'location' => 'query',
277 'type' => 'string',
278 'repeated' => true,
279 ],
280 'labelId' => [
281 'location' => 'query',
282 'type' => 'string',
283 ],
284 'maxResults' => [
285 'location' => 'query',
286 'type' => 'integer',
287 ],
288 'pageToken' => [
289 'location' => 'query',
290 'type' => 'string',
291 ],
292 'startHistoryId' => [
293 'location' => 'query',
294 'type' => 'string',
295 ],
296 ],
297 ],
298 ]
299 ]
300 );
301 $this->users_labels = new Gmail\Resource\UsersLabels(
302 $this,
303 $this->serviceName,
304 'labels',
305 [
306 'methods' => [
307 'create' => [
308 'path' => 'gmail/v1/users/{userId}/labels',
309 'httpMethod' => 'POST',
310 'parameters' => [
311 'userId' => [
312 'location' => 'path',
313 'type' => 'string',
314 'required' => true,
315 ],
316 ],
317 ],'delete' => [
318 'path' => 'gmail/v1/users/{userId}/labels/{id}',
319 'httpMethod' => 'DELETE',
320 'parameters' => [
321 'userId' => [
322 'location' => 'path',
323 'type' => 'string',
324 'required' => true,
325 ],
326 'id' => [
327 'location' => 'path',
328 'type' => 'string',
329 'required' => true,
330 ],
331 ],
332 ],'get' => [
333 'path' => 'gmail/v1/users/{userId}/labels/{id}',
334 'httpMethod' => 'GET',
335 'parameters' => [
336 'userId' => [
337 'location' => 'path',
338 'type' => 'string',
339 'required' => true,
340 ],
341 'id' => [
342 'location' => 'path',
343 'type' => 'string',
344 'required' => true,
345 ],
346 ],
347 ],'list' => [
348 'path' => 'gmail/v1/users/{userId}/labels',
349 'httpMethod' => 'GET',
350 'parameters' => [
351 'userId' => [
352 'location' => 'path',
353 'type' => 'string',
354 'required' => true,
355 ],
356 ],
357 ],'patch' => [
358 'path' => 'gmail/v1/users/{userId}/labels/{id}',
359 'httpMethod' => 'PATCH',
360 'parameters' => [
361 'userId' => [
362 'location' => 'path',
363 'type' => 'string',
364 'required' => true,
365 ],
366 'id' => [
367 'location' => 'path',
368 'type' => 'string',
369 'required' => true,
370 ],
371 ],
372 ],'update' => [
373 'path' => 'gmail/v1/users/{userId}/labels/{id}',
374 'httpMethod' => 'PUT',
375 'parameters' => [
376 'userId' => [
377 'location' => 'path',
378 'type' => 'string',
379 'required' => true,
380 ],
381 'id' => [
382 'location' => 'path',
383 'type' => 'string',
384 'required' => true,
385 ],
386 ],
387 ],
388 ]
389 ]
390 );
391 $this->users_messages = new Gmail\Resource\UsersMessages(
392 $this,
393 $this->serviceName,
394 'messages',
395 [
396 'methods' => [
397 'batchDelete' => [
398 'path' => 'gmail/v1/users/{userId}/messages/batchDelete',
399 'httpMethod' => 'POST',
400 'parameters' => [
401 'userId' => [
402 'location' => 'path',
403 'type' => 'string',
404 'required' => true,
405 ],
406 ],
407 ],'batchModify' => [
408 'path' => 'gmail/v1/users/{userId}/messages/batchModify',
409 'httpMethod' => 'POST',
410 'parameters' => [
411 'userId' => [
412 'location' => 'path',
413 'type' => 'string',
414 'required' => true,
415 ],
416 ],
417 ],'delete' => [
418 'path' => 'gmail/v1/users/{userId}/messages/{id}',
419 'httpMethod' => 'DELETE',
420 'parameters' => [
421 'userId' => [
422 'location' => 'path',
423 'type' => 'string',
424 'required' => true,
425 ],
426 'id' => [
427 'location' => 'path',
428 'type' => 'string',
429 'required' => true,
430 ],
431 ],
432 ],'get' => [
433 'path' => 'gmail/v1/users/{userId}/messages/{id}',
434 'httpMethod' => 'GET',
435 'parameters' => [
436 'userId' => [
437 'location' => 'path',
438 'type' => 'string',
439 'required' => true,
440 ],
441 'id' => [
442 'location' => 'path',
443 'type' => 'string',
444 'required' => true,
445 ],
446 'format' => [
447 'location' => 'query',
448 'type' => 'string',
449 ],
450 'metadataHeaders' => [
451 'location' => 'query',
452 'type' => 'string',
453 'repeated' => true,
454 ],
455 ],
456 ],'import' => [
457 'path' => 'gmail/v1/users/{userId}/messages/import',
458 'httpMethod' => 'POST',
459 'parameters' => [
460 'userId' => [
461 'location' => 'path',
462 'type' => 'string',
463 'required' => true,
464 ],
465 'deleted' => [
466 'location' => 'query',
467 'type' => 'boolean',
468 ],
469 'internalDateSource' => [
470 'location' => 'query',
471 'type' => 'string',
472 ],
473 'neverMarkSpam' => [
474 'location' => 'query',
475 'type' => 'boolean',
476 ],
477 'processForCalendar' => [
478 'location' => 'query',
479 'type' => 'boolean',
480 ],
481 ],
482 ],'insert' => [
483 'path' => 'gmail/v1/users/{userId}/messages',
484 'httpMethod' => 'POST',
485 'parameters' => [
486 'userId' => [
487 'location' => 'path',
488 'type' => 'string',
489 'required' => true,
490 ],
491 'deleted' => [
492 'location' => 'query',
493 'type' => 'boolean',
494 ],
495 'internalDateSource' => [
496 'location' => 'query',
497 'type' => 'string',
498 ],
499 ],
500 ],'list' => [
501 'path' => 'gmail/v1/users/{userId}/messages',
502 'httpMethod' => 'GET',
503 'parameters' => [
504 'userId' => [
505 'location' => 'path',
506 'type' => 'string',
507 'required' => true,
508 ],
509 'includeSpamTrash' => [
510 'location' => 'query',
511 'type' => 'boolean',
512 ],
513 'labelIds' => [
514 'location' => 'query',
515 'type' => 'string',
516 'repeated' => true,
517 ],
518 'maxResults' => [
519 'location' => 'query',
520 'type' => 'integer',
521 ],
522 'pageToken' => [
523 'location' => 'query',
524 'type' => 'string',
525 ],
526 'q' => [
527 'location' => 'query',
528 'type' => 'string',
529 ],
530 ],
531 ],'modify' => [
532 'path' => 'gmail/v1/users/{userId}/messages/{id}/modify',
533 'httpMethod' => 'POST',
534 'parameters' => [
535 'userId' => [
536 'location' => 'path',
537 'type' => 'string',
538 'required' => true,
539 ],
540 'id' => [
541 'location' => 'path',
542 'type' => 'string',
543 'required' => true,
544 ],
545 ],
546 ],'send' => [
547 'path' => 'gmail/v1/users/{userId}/messages/send',
548 'httpMethod' => 'POST',
549 'parameters' => [
550 'userId' => [
551 'location' => 'path',
552 'type' => 'string',
553 'required' => true,
554 ],
555 ],
556 ],'trash' => [
557 'path' => 'gmail/v1/users/{userId}/messages/{id}/trash',
558 'httpMethod' => 'POST',
559 'parameters' => [
560 'userId' => [
561 'location' => 'path',
562 'type' => 'string',
563 'required' => true,
564 ],
565 'id' => [
566 'location' => 'path',
567 'type' => 'string',
568 'required' => true,
569 ],
570 ],
571 ],'untrash' => [
572 'path' => 'gmail/v1/users/{userId}/messages/{id}/untrash',
573 'httpMethod' => 'POST',
574 'parameters' => [
575 'userId' => [
576 'location' => 'path',
577 'type' => 'string',
578 'required' => true,
579 ],
580 'id' => [
581 'location' => 'path',
582 'type' => 'string',
583 'required' => true,
584 ],
585 ],
586 ],
587 ]
588 ]
589 );
590 $this->users_messages_attachments = new Gmail\Resource\UsersMessagesAttachments(
591 $this,
592 $this->serviceName,
593 'attachments',
594 [
595 'methods' => [
596 'get' => [
597 'path' => 'gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}',
598 'httpMethod' => 'GET',
599 'parameters' => [
600 'userId' => [
601 'location' => 'path',
602 'type' => 'string',
603 'required' => true,
604 ],
605 'messageId' => [
606 'location' => 'path',
607 'type' => 'string',
608 'required' => true,
609 ],
610 'id' => [
611 'location' => 'path',
612 'type' => 'string',
613 'required' => true,
614 ],
615 ],
616 ],
617 ]
618 ]
619 );
620 $this->users_settings = new Gmail\Resource\UsersSettings(
621 $this,
622 $this->serviceName,
623 'settings',
624 [
625 'methods' => [
626 'getAutoForwarding' => [
627 'path' => 'gmail/v1/users/{userId}/settings/autoForwarding',
628 'httpMethod' => 'GET',
629 'parameters' => [
630 'userId' => [
631 'location' => 'path',
632 'type' => 'string',
633 'required' => true,
634 ],
635 ],
636 ],'getImap' => [
637 'path' => 'gmail/v1/users/{userId}/settings/imap',
638 'httpMethod' => 'GET',
639 'parameters' => [
640 'userId' => [
641 'location' => 'path',
642 'type' => 'string',
643 'required' => true,
644 ],
645 ],
646 ],'getLanguage' => [
647 'path' => 'gmail/v1/users/{userId}/settings/language',
648 'httpMethod' => 'GET',
649 'parameters' => [
650 'userId' => [
651 'location' => 'path',
652 'type' => 'string',
653 'required' => true,
654 ],
655 ],
656 ],'getPop' => [
657 'path' => 'gmail/v1/users/{userId}/settings/pop',
658 'httpMethod' => 'GET',
659 'parameters' => [
660 'userId' => [
661 'location' => 'path',
662 'type' => 'string',
663 'required' => true,
664 ],
665 ],
666 ],'getVacation' => [
667 'path' => 'gmail/v1/users/{userId}/settings/vacation',
668 'httpMethod' => 'GET',
669 'parameters' => [
670 'userId' => [
671 'location' => 'path',
672 'type' => 'string',
673 'required' => true,
674 ],
675 ],
676 ],'updateAutoForwarding' => [
677 'path' => 'gmail/v1/users/{userId}/settings/autoForwarding',
678 'httpMethod' => 'PUT',
679 'parameters' => [
680 'userId' => [
681 'location' => 'path',
682 'type' => 'string',
683 'required' => true,
684 ],
685 ],
686 ],'updateImap' => [
687 'path' => 'gmail/v1/users/{userId}/settings/imap',
688 'httpMethod' => 'PUT',
689 'parameters' => [
690 'userId' => [
691 'location' => 'path',
692 'type' => 'string',
693 'required' => true,
694 ],
695 ],
696 ],'updateLanguage' => [
697 'path' => 'gmail/v1/users/{userId}/settings/language',
698 'httpMethod' => 'PUT',
699 'parameters' => [
700 'userId' => [
701 'location' => 'path',
702 'type' => 'string',
703 'required' => true,
704 ],
705 ],
706 ],'updatePop' => [
707 'path' => 'gmail/v1/users/{userId}/settings/pop',
708 'httpMethod' => 'PUT',
709 'parameters' => [
710 'userId' => [
711 'location' => 'path',
712 'type' => 'string',
713 'required' => true,
714 ],
715 ],
716 ],'updateVacation' => [
717 'path' => 'gmail/v1/users/{userId}/settings/vacation',
718 'httpMethod' => 'PUT',
719 'parameters' => [
720 'userId' => [
721 'location' => 'path',
722 'type' => 'string',
723 'required' => true,
724 ],
725 ],
726 ],
727 ]
728 ]
729 );
730 $this->users_settings_cse_identities = new Gmail\Resource\UsersSettingsCseIdentities(
731 $this,
732 $this->serviceName,
733 'identities',
734 [
735 'methods' => [
736 'create' => [
737 'path' => 'gmail/v1/users/{userId}/settings/cse/identities',
738 'httpMethod' => 'POST',
739 'parameters' => [
740 'userId' => [
741 'location' => 'path',
742 'type' => 'string',
743 'required' => true,
744 ],
745 ],
746 ],'delete' => [
747 'path' => 'gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}',
748 'httpMethod' => 'DELETE',
749 'parameters' => [
750 'userId' => [
751 'location' => 'path',
752 'type' => 'string',
753 'required' => true,
754 ],
755 'cseEmailAddress' => [
756 'location' => 'path',
757 'type' => 'string',
758 'required' => true,
759 ],
760 ],
761 ],'get' => [
762 'path' => 'gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}',
763 'httpMethod' => 'GET',
764 'parameters' => [
765 'userId' => [
766 'location' => 'path',
767 'type' => 'string',
768 'required' => true,
769 ],
770 'cseEmailAddress' => [
771 'location' => 'path',
772 'type' => 'string',
773 'required' => true,
774 ],
775 ],
776 ],'list' => [
777 'path' => 'gmail/v1/users/{userId}/settings/cse/identities',
778 'httpMethod' => 'GET',
779 'parameters' => [
780 'userId' => [
781 'location' => 'path',
782 'type' => 'string',
783 'required' => true,
784 ],
785 'pageSize' => [
786 'location' => 'query',
787 'type' => 'integer',
788 ],
789 'pageToken' => [
790 'location' => 'query',
791 'type' => 'string',
792 ],
793 ],
794 ],'patch' => [
795 'path' => 'gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}',
796 'httpMethod' => 'PATCH',
797 'parameters' => [
798 'userId' => [
799 'location' => 'path',
800 'type' => 'string',
801 'required' => true,
802 ],
803 'emailAddress' => [
804 'location' => 'path',
805 'type' => 'string',
806 'required' => true,
807 ],
808 ],
809 ],
810 ]
811 ]
812 );
813 $this->users_settings_cse_keypairs = new Gmail\Resource\UsersSettingsCseKeypairs(
814 $this,
815 $this->serviceName,
816 'keypairs',
817 [
818 'methods' => [
819 'create' => [
820 'path' => 'gmail/v1/users/{userId}/settings/cse/keypairs',
821 'httpMethod' => 'POST',
822 'parameters' => [
823 'userId' => [
824 'location' => 'path',
825 'type' => 'string',
826 'required' => true,
827 ],
828 ],
829 ],'disable' => [
830 'path' => 'gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable',
831 'httpMethod' => 'POST',
832 'parameters' => [
833 'userId' => [
834 'location' => 'path',
835 'type' => 'string',
836 'required' => true,
837 ],
838 'keyPairId' => [
839 'location' => 'path',
840 'type' => 'string',
841 'required' => true,
842 ],
843 ],
844 ],'enable' => [
845 'path' => 'gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable',
846 'httpMethod' => 'POST',
847 'parameters' => [
848 'userId' => [
849 'location' => 'path',
850 'type' => 'string',
851 'required' => true,
852 ],
853 'keyPairId' => [
854 'location' => 'path',
855 'type' => 'string',
856 'required' => true,
857 ],
858 ],
859 ],'get' => [
860 'path' => 'gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}',
861 'httpMethod' => 'GET',
862 'parameters' => [
863 'userId' => [
864 'location' => 'path',
865 'type' => 'string',
866 'required' => true,
867 ],
868 'keyPairId' => [
869 'location' => 'path',
870 'type' => 'string',
871 'required' => true,
872 ],
873 ],
874 ],'list' => [
875 'path' => 'gmail/v1/users/{userId}/settings/cse/keypairs',
876 'httpMethod' => 'GET',
877 'parameters' => [
878 'userId' => [
879 'location' => 'path',
880 'type' => 'string',
881 'required' => true,
882 ],
883 'pageSize' => [
884 'location' => 'query',
885 'type' => 'integer',
886 ],
887 'pageToken' => [
888 'location' => 'query',
889 'type' => 'string',
890 ],
891 ],
892 ],'obliterate' => [
893 'path' => 'gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate',
894 'httpMethod' => 'POST',
895 'parameters' => [
896 'userId' => [
897 'location' => 'path',
898 'type' => 'string',
899 'required' => true,
900 ],
901 'keyPairId' => [
902 'location' => 'path',
903 'type' => 'string',
904 'required' => true,
905 ],
906 ],
907 ],
908 ]
909 ]
910 );
911 $this->users_settings_delegates = new Gmail\Resource\UsersSettingsDelegates(
912 $this,
913 $this->serviceName,
914 'delegates',
915 [
916 'methods' => [
917 'create' => [
918 'path' => 'gmail/v1/users/{userId}/settings/delegates',
919 'httpMethod' => 'POST',
920 'parameters' => [
921 'userId' => [
922 'location' => 'path',
923 'type' => 'string',
924 'required' => true,
925 ],
926 ],
927 ],'delete' => [
928 'path' => 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}',
929 'httpMethod' => 'DELETE',
930 'parameters' => [
931 'userId' => [
932 'location' => 'path',
933 'type' => 'string',
934 'required' => true,
935 ],
936 'delegateEmail' => [
937 'location' => 'path',
938 'type' => 'string',
939 'required' => true,
940 ],
941 ],
942 ],'get' => [
943 'path' => 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}',
944 'httpMethod' => 'GET',
945 'parameters' => [
946 'userId' => [
947 'location' => 'path',
948 'type' => 'string',
949 'required' => true,
950 ],
951 'delegateEmail' => [
952 'location' => 'path',
953 'type' => 'string',
954 'required' => true,
955 ],
956 ],
957 ],'list' => [
958 'path' => 'gmail/v1/users/{userId}/settings/delegates',
959 'httpMethod' => 'GET',
960 'parameters' => [
961 'userId' => [
962 'location' => 'path',
963 'type' => 'string',
964 'required' => true,
965 ],
966 ],
967 ],
968 ]
969 ]
970 );
971 $this->users_settings_filters = new Gmail\Resource\UsersSettingsFilters(
972 $this,
973 $this->serviceName,
974 'filters',
975 [
976 'methods' => [
977 'create' => [
978 'path' => 'gmail/v1/users/{userId}/settings/filters',
979 'httpMethod' => 'POST',
980 'parameters' => [
981 'userId' => [
982 'location' => 'path',
983 'type' => 'string',
984 'required' => true,
985 ],
986 ],
987 ],'delete' => [
988 'path' => 'gmail/v1/users/{userId}/settings/filters/{id}',
989 'httpMethod' => 'DELETE',
990 'parameters' => [
991 'userId' => [
992 'location' => 'path',
993 'type' => 'string',
994 'required' => true,
995 ],
996 'id' => [
997 'location' => 'path',
998 'type' => 'string',
999 'required' => true,
1000 ],
1001 ],
1002 ],'get' => [
1003 'path' => 'gmail/v1/users/{userId}/settings/filters/{id}',
1004 'httpMethod' => 'GET',
1005 'parameters' => [
1006 'userId' => [
1007 'location' => 'path',
1008 'type' => 'string',
1009 'required' => true,
1010 ],
1011 'id' => [
1012 'location' => 'path',
1013 'type' => 'string',
1014 'required' => true,
1015 ],
1016 ],
1017 ],'list' => [
1018 'path' => 'gmail/v1/users/{userId}/settings/filters',
1019 'httpMethod' => 'GET',
1020 'parameters' => [
1021 'userId' => [
1022 'location' => 'path',
1023 'type' => 'string',
1024 'required' => true,
1025 ],
1026 ],
1027 ],
1028 ]
1029 ]
1030 );
1031 $this->users_settings_forwardingAddresses = new Gmail\Resource\UsersSettingsForwardingAddresses(
1032 $this,
1033 $this->serviceName,
1034 'forwardingAddresses',
1035 [
1036 'methods' => [
1037 'create' => [
1038 'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses',
1039 'httpMethod' => 'POST',
1040 'parameters' => [
1041 'userId' => [
1042 'location' => 'path',
1043 'type' => 'string',
1044 'required' => true,
1045 ],
1046 ],
1047 ],'delete' => [
1048 'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}',
1049 'httpMethod' => 'DELETE',
1050 'parameters' => [
1051 'userId' => [
1052 'location' => 'path',
1053 'type' => 'string',
1054 'required' => true,
1055 ],
1056 'forwardingEmail' => [
1057 'location' => 'path',
1058 'type' => 'string',
1059 'required' => true,
1060 ],
1061 ],
1062 ],'get' => [
1063 'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}',
1064 'httpMethod' => 'GET',
1065 'parameters' => [
1066 'userId' => [
1067 'location' => 'path',
1068 'type' => 'string',
1069 'required' => true,
1070 ],
1071 'forwardingEmail' => [
1072 'location' => 'path',
1073 'type' => 'string',
1074 'required' => true,
1075 ],
1076 ],
1077 ],'list' => [
1078 'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses',
1079 'httpMethod' => 'GET',
1080 'parameters' => [
1081 'userId' => [
1082 'location' => 'path',
1083 'type' => 'string',
1084 'required' => true,
1085 ],
1086 ],
1087 ],
1088 ]
1089 ]
1090 );
1091 $this->users_settings_sendAs = new Gmail\Resource\UsersSettingsSendAs(
1092 $this,
1093 $this->serviceName,
1094 'sendAs',
1095 [
1096 'methods' => [
1097 'create' => [
1098 'path' => 'gmail/v1/users/{userId}/settings/sendAs',
1099 'httpMethod' => 'POST',
1100 'parameters' => [
1101 'userId' => [
1102 'location' => 'path',
1103 'type' => 'string',
1104 'required' => true,
1105 ],
1106 ],
1107 ],'delete' => [
1108 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
1109 'httpMethod' => 'DELETE',
1110 'parameters' => [
1111 'userId' => [
1112 'location' => 'path',
1113 'type' => 'string',
1114 'required' => true,
1115 ],
1116 'sendAsEmail' => [
1117 'location' => 'path',
1118 'type' => 'string',
1119 'required' => true,
1120 ],
1121 ],
1122 ],'get' => [
1123 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
1124 'httpMethod' => 'GET',
1125 'parameters' => [
1126 'userId' => [
1127 'location' => 'path',
1128 'type' => 'string',
1129 'required' => true,
1130 ],
1131 'sendAsEmail' => [
1132 'location' => 'path',
1133 'type' => 'string',
1134 'required' => true,
1135 ],
1136 ],
1137 ],'list' => [
1138 'path' => 'gmail/v1/users/{userId}/settings/sendAs',
1139 'httpMethod' => 'GET',
1140 'parameters' => [
1141 'userId' => [
1142 'location' => 'path',
1143 'type' => 'string',
1144 'required' => true,
1145 ],
1146 ],
1147 ],'patch' => [
1148 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
1149 'httpMethod' => 'PATCH',
1150 'parameters' => [
1151 'userId' => [
1152 'location' => 'path',
1153 'type' => 'string',
1154 'required' => true,
1155 ],
1156 'sendAsEmail' => [
1157 'location' => 'path',
1158 'type' => 'string',
1159 'required' => true,
1160 ],
1161 ],
1162 ],'update' => [
1163 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
1164 'httpMethod' => 'PUT',
1165 'parameters' => [
1166 'userId' => [
1167 'location' => 'path',
1168 'type' => 'string',
1169 'required' => true,
1170 ],
1171 'sendAsEmail' => [
1172 'location' => 'path',
1173 'type' => 'string',
1174 'required' => true,
1175 ],
1176 ],
1177 ],'verify' => [
1178 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify',
1179 'httpMethod' => 'POST',
1180 'parameters' => [
1181 'userId' => [
1182 'location' => 'path',
1183 'type' => 'string',
1184 'required' => true,
1185 ],
1186 'sendAsEmail' => [
1187 'location' => 'path',
1188 'type' => 'string',
1189 'required' => true,
1190 ],
1191 ],
1192 ],
1193 ]
1194 ]
1195 );
1196 $this->users_settings_sendAs_smimeInfo = new Gmail\Resource\UsersSettingsSendAsSmimeInfo(
1197 $this,
1198 $this->serviceName,
1199 'smimeInfo',
1200 [
1201 'methods' => [
1202 'delete' => [
1203 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}',
1204 'httpMethod' => 'DELETE',
1205 'parameters' => [
1206 'userId' => [
1207 'location' => 'path',
1208 'type' => 'string',
1209 'required' => true,
1210 ],
1211 'sendAsEmail' => [
1212 'location' => 'path',
1213 'type' => 'string',
1214 'required' => true,
1215 ],
1216 'id' => [
1217 'location' => 'path',
1218 'type' => 'string',
1219 'required' => true,
1220 ],
1221 ],
1222 ],'get' => [
1223 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}',
1224 'httpMethod' => 'GET',
1225 'parameters' => [
1226 'userId' => [
1227 'location' => 'path',
1228 'type' => 'string',
1229 'required' => true,
1230 ],
1231 'sendAsEmail' => [
1232 'location' => 'path',
1233 'type' => 'string',
1234 'required' => true,
1235 ],
1236 'id' => [
1237 'location' => 'path',
1238 'type' => 'string',
1239 'required' => true,
1240 ],
1241 ],
1242 ],'insert' => [
1243 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo',
1244 'httpMethod' => 'POST',
1245 'parameters' => [
1246 'userId' => [
1247 'location' => 'path',
1248 'type' => 'string',
1249 'required' => true,
1250 ],
1251 'sendAsEmail' => [
1252 'location' => 'path',
1253 'type' => 'string',
1254 'required' => true,
1255 ],
1256 ],
1257 ],'list' => [
1258 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo',
1259 'httpMethod' => 'GET',
1260 'parameters' => [
1261 'userId' => [
1262 'location' => 'path',
1263 'type' => 'string',
1264 'required' => true,
1265 ],
1266 'sendAsEmail' => [
1267 'location' => 'path',
1268 'type' => 'string',
1269 'required' => true,
1270 ],
1271 ],
1272 ],'setDefault' => [
1273 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault',
1274 'httpMethod' => 'POST',
1275 'parameters' => [
1276 'userId' => [
1277 'location' => 'path',
1278 'type' => 'string',
1279 'required' => true,
1280 ],
1281 'sendAsEmail' => [
1282 'location' => 'path',
1283 'type' => 'string',
1284 'required' => true,
1285 ],
1286 'id' => [
1287 'location' => 'path',
1288 'type' => 'string',
1289 'required' => true,
1290 ],
1291 ],
1292 ],
1293 ]
1294 ]
1295 );
1296 $this->users_threads = new Gmail\Resource\UsersThreads(
1297 $this,
1298 $this->serviceName,
1299 'threads',
1300 [
1301 'methods' => [
1302 'delete' => [
1303 'path' => 'gmail/v1/users/{userId}/threads/{id}',
1304 'httpMethod' => 'DELETE',
1305 'parameters' => [
1306 'userId' => [
1307 'location' => 'path',
1308 'type' => 'string',
1309 'required' => true,
1310 ],
1311 'id' => [
1312 'location' => 'path',
1313 'type' => 'string',
1314 'required' => true,
1315 ],
1316 ],
1317 ],'get' => [
1318 'path' => 'gmail/v1/users/{userId}/threads/{id}',
1319 'httpMethod' => 'GET',
1320 'parameters' => [
1321 'userId' => [
1322 'location' => 'path',
1323 'type' => 'string',
1324 'required' => true,
1325 ],
1326 'id' => [
1327 'location' => 'path',
1328 'type' => 'string',
1329 'required' => true,
1330 ],
1331 'format' => [
1332 'location' => 'query',
1333 'type' => 'string',
1334 ],
1335 'metadataHeaders' => [
1336 'location' => 'query',
1337 'type' => 'string',
1338 'repeated' => true,
1339 ],
1340 ],
1341 ],'list' => [
1342 'path' => 'gmail/v1/users/{userId}/threads',
1343 'httpMethod' => 'GET',
1344 'parameters' => [
1345 'userId' => [
1346 'location' => 'path',
1347 'type' => 'string',
1348 'required' => true,
1349 ],
1350 'includeSpamTrash' => [
1351 'location' => 'query',
1352 'type' => 'boolean',
1353 ],
1354 'labelIds' => [
1355 'location' => 'query',
1356 'type' => 'string',
1357 'repeated' => true,
1358 ],
1359 'maxResults' => [
1360 'location' => 'query',
1361 'type' => 'integer',
1362 ],
1363 'pageToken' => [
1364 'location' => 'query',
1365 'type' => 'string',
1366 ],
1367 'q' => [
1368 'location' => 'query',
1369 'type' => 'string',
1370 ],
1371 ],
1372 ],'modify' => [
1373 'path' => 'gmail/v1/users/{userId}/threads/{id}/modify',
1374 'httpMethod' => 'POST',
1375 'parameters' => [
1376 'userId' => [
1377 'location' => 'path',
1378 'type' => 'string',
1379 'required' => true,
1380 ],
1381 'id' => [
1382 'location' => 'path',
1383 'type' => 'string',
1384 'required' => true,
1385 ],
1386 ],
1387 ],'trash' => [
1388 'path' => 'gmail/v1/users/{userId}/threads/{id}/trash',
1389 'httpMethod' => 'POST',
1390 'parameters' => [
1391 'userId' => [
1392 'location' => 'path',
1393 'type' => 'string',
1394 'required' => true,
1395 ],
1396 'id' => [
1397 'location' => 'path',
1398 'type' => 'string',
1399 'required' => true,
1400 ],
1401 ],
1402 ],'untrash' => [
1403 'path' => 'gmail/v1/users/{userId}/threads/{id}/untrash',
1404 'httpMethod' => 'POST',
1405 'parameters' => [
1406 'userId' => [
1407 'location' => 'path',
1408 'type' => 'string',
1409 'required' => true,
1410 ],
1411 'id' => [
1412 'location' => 'path',
1413 'type' => 'string',
1414 'required' => true,
1415 ],
1416 ],
1417 ],
1418 ]
1419 ]
1420 );
1421 }
1422}
1423
1424// Adding a class alias for backwards compatibility with the previous class name.
1425class_alias(Gmail::class, 'Google_Service_Gmail');
Note: See TracBrowser for help on using the repository browser.