google-apis-gmail_v1 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module GmailV1
18
+ # Version of the google-apis-gmail_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20200919"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,714 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module GmailV1
24
+
25
+ class AutoForwarding
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class BatchDeleteMessagesRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class BatchModifyMessagesRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Delegate
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Draft
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Filter
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class FilterAction
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class FilterCriteria
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ForwardingAddress
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class History
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class HistoryLabelAdded
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class HistoryLabelRemoved
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class HistoryMessageAdded
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class HistoryMessageDeleted
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ImapSettings
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Label
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class LabelColor
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class LanguageSettings
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListDelegatesResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ListDraftsResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ListFiltersResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class ListForwardingAddressesResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class ListHistoryResponse
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class ListLabelsResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class ListMessagesResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class ListSendAsResponse
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class ListSmimeInfoResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class ListThreadsResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class Message
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class MessagePart
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class MessagePartBody
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class MessagePartHeader
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class ModifyMessageRequest
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class ModifyThreadRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class PopSettings
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class Profile
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class SendAs
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class SmimeInfo
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class SmtpMsa
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class Thread
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class VacationSettings
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class WatchRequest
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class WatchResponse
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class AutoForwarding
284
+ # @private
285
+ class Representation < Google::Apis::Core::JsonRepresentation
286
+ property :disposition, as: 'disposition'
287
+ property :email_address, as: 'emailAddress'
288
+ property :enabled, as: 'enabled'
289
+ end
290
+ end
291
+
292
+ class BatchDeleteMessagesRequest
293
+ # @private
294
+ class Representation < Google::Apis::Core::JsonRepresentation
295
+ collection :ids, as: 'ids'
296
+ end
297
+ end
298
+
299
+ class BatchModifyMessagesRequest
300
+ # @private
301
+ class Representation < Google::Apis::Core::JsonRepresentation
302
+ collection :add_label_ids, as: 'addLabelIds'
303
+ collection :ids, as: 'ids'
304
+ collection :remove_label_ids, as: 'removeLabelIds'
305
+ end
306
+ end
307
+
308
+ class Delegate
309
+ # @private
310
+ class Representation < Google::Apis::Core::JsonRepresentation
311
+ property :delegate_email, as: 'delegateEmail'
312
+ property :verification_status, as: 'verificationStatus'
313
+ end
314
+ end
315
+
316
+ class Draft
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ property :id, as: 'id'
320
+ property :message, as: 'message', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
321
+
322
+ end
323
+ end
324
+
325
+ class Filter
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ property :action, as: 'action', class: Google::Apis::GmailV1::FilterAction, decorator: Google::Apis::GmailV1::FilterAction::Representation
329
+
330
+ property :criteria, as: 'criteria', class: Google::Apis::GmailV1::FilterCriteria, decorator: Google::Apis::GmailV1::FilterCriteria::Representation
331
+
332
+ property :id, as: 'id'
333
+ end
334
+ end
335
+
336
+ class FilterAction
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ collection :add_label_ids, as: 'addLabelIds'
340
+ property :forward, as: 'forward'
341
+ collection :remove_label_ids, as: 'removeLabelIds'
342
+ end
343
+ end
344
+
345
+ class FilterCriteria
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ property :exclude_chats, as: 'excludeChats'
349
+ property :from, as: 'from'
350
+ property :has_attachment, as: 'hasAttachment'
351
+ property :negated_query, as: 'negatedQuery'
352
+ property :query, as: 'query'
353
+ property :size, as: 'size'
354
+ property :size_comparison, as: 'sizeComparison'
355
+ property :subject, as: 'subject'
356
+ property :to, as: 'to'
357
+ end
358
+ end
359
+
360
+ class ForwardingAddress
361
+ # @private
362
+ class Representation < Google::Apis::Core::JsonRepresentation
363
+ property :forwarding_email, as: 'forwardingEmail'
364
+ property :verification_status, as: 'verificationStatus'
365
+ end
366
+ end
367
+
368
+ class History
369
+ # @private
370
+ class Representation < Google::Apis::Core::JsonRepresentation
371
+ property :id, :numeric_string => true, as: 'id'
372
+ collection :labels_added, as: 'labelsAdded', class: Google::Apis::GmailV1::HistoryLabelAdded, decorator: Google::Apis::GmailV1::HistoryLabelAdded::Representation
373
+
374
+ collection :labels_removed, as: 'labelsRemoved', class: Google::Apis::GmailV1::HistoryLabelRemoved, decorator: Google::Apis::GmailV1::HistoryLabelRemoved::Representation
375
+
376
+ collection :messages, as: 'messages', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
377
+
378
+ collection :messages_added, as: 'messagesAdded', class: Google::Apis::GmailV1::HistoryMessageAdded, decorator: Google::Apis::GmailV1::HistoryMessageAdded::Representation
379
+
380
+ collection :messages_deleted, as: 'messagesDeleted', class: Google::Apis::GmailV1::HistoryMessageDeleted, decorator: Google::Apis::GmailV1::HistoryMessageDeleted::Representation
381
+
382
+ end
383
+ end
384
+
385
+ class HistoryLabelAdded
386
+ # @private
387
+ class Representation < Google::Apis::Core::JsonRepresentation
388
+ collection :label_ids, as: 'labelIds'
389
+ property :message, as: 'message', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
390
+
391
+ end
392
+ end
393
+
394
+ class HistoryLabelRemoved
395
+ # @private
396
+ class Representation < Google::Apis::Core::JsonRepresentation
397
+ collection :label_ids, as: 'labelIds'
398
+ property :message, as: 'message', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
399
+
400
+ end
401
+ end
402
+
403
+ class HistoryMessageAdded
404
+ # @private
405
+ class Representation < Google::Apis::Core::JsonRepresentation
406
+ property :message, as: 'message', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
407
+
408
+ end
409
+ end
410
+
411
+ class HistoryMessageDeleted
412
+ # @private
413
+ class Representation < Google::Apis::Core::JsonRepresentation
414
+ property :message, as: 'message', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
415
+
416
+ end
417
+ end
418
+
419
+ class ImapSettings
420
+ # @private
421
+ class Representation < Google::Apis::Core::JsonRepresentation
422
+ property :auto_expunge, as: 'autoExpunge'
423
+ property :enabled, as: 'enabled'
424
+ property :expunge_behavior, as: 'expungeBehavior'
425
+ property :max_folder_size, as: 'maxFolderSize'
426
+ end
427
+ end
428
+
429
+ class Label
430
+ # @private
431
+ class Representation < Google::Apis::Core::JsonRepresentation
432
+ property :color, as: 'color', class: Google::Apis::GmailV1::LabelColor, decorator: Google::Apis::GmailV1::LabelColor::Representation
433
+
434
+ property :id, as: 'id'
435
+ property :label_list_visibility, as: 'labelListVisibility'
436
+ property :message_list_visibility, as: 'messageListVisibility'
437
+ property :messages_total, as: 'messagesTotal'
438
+ property :messages_unread, as: 'messagesUnread'
439
+ property :name, as: 'name'
440
+ property :threads_total, as: 'threadsTotal'
441
+ property :threads_unread, as: 'threadsUnread'
442
+ property :type, as: 'type'
443
+ end
444
+ end
445
+
446
+ class LabelColor
447
+ # @private
448
+ class Representation < Google::Apis::Core::JsonRepresentation
449
+ property :background_color, as: 'backgroundColor'
450
+ property :text_color, as: 'textColor'
451
+ end
452
+ end
453
+
454
+ class LanguageSettings
455
+ # @private
456
+ class Representation < Google::Apis::Core::JsonRepresentation
457
+ property :display_language, as: 'displayLanguage'
458
+ end
459
+ end
460
+
461
+ class ListDelegatesResponse
462
+ # @private
463
+ class Representation < Google::Apis::Core::JsonRepresentation
464
+ collection :delegates, as: 'delegates', class: Google::Apis::GmailV1::Delegate, decorator: Google::Apis::GmailV1::Delegate::Representation
465
+
466
+ end
467
+ end
468
+
469
+ class ListDraftsResponse
470
+ # @private
471
+ class Representation < Google::Apis::Core::JsonRepresentation
472
+ collection :drafts, as: 'drafts', class: Google::Apis::GmailV1::Draft, decorator: Google::Apis::GmailV1::Draft::Representation
473
+
474
+ property :next_page_token, as: 'nextPageToken'
475
+ property :result_size_estimate, as: 'resultSizeEstimate'
476
+ end
477
+ end
478
+
479
+ class ListFiltersResponse
480
+ # @private
481
+ class Representation < Google::Apis::Core::JsonRepresentation
482
+ collection :filter, as: 'filter', class: Google::Apis::GmailV1::Filter, decorator: Google::Apis::GmailV1::Filter::Representation
483
+
484
+ end
485
+ end
486
+
487
+ class ListForwardingAddressesResponse
488
+ # @private
489
+ class Representation < Google::Apis::Core::JsonRepresentation
490
+ collection :forwarding_addresses, as: 'forwardingAddresses', class: Google::Apis::GmailV1::ForwardingAddress, decorator: Google::Apis::GmailV1::ForwardingAddress::Representation
491
+
492
+ end
493
+ end
494
+
495
+ class ListHistoryResponse
496
+ # @private
497
+ class Representation < Google::Apis::Core::JsonRepresentation
498
+ collection :history, as: 'history', class: Google::Apis::GmailV1::History, decorator: Google::Apis::GmailV1::History::Representation
499
+
500
+ property :history_id, :numeric_string => true, as: 'historyId'
501
+ property :next_page_token, as: 'nextPageToken'
502
+ end
503
+ end
504
+
505
+ class ListLabelsResponse
506
+ # @private
507
+ class Representation < Google::Apis::Core::JsonRepresentation
508
+ collection :labels, as: 'labels', class: Google::Apis::GmailV1::Label, decorator: Google::Apis::GmailV1::Label::Representation
509
+
510
+ end
511
+ end
512
+
513
+ class ListMessagesResponse
514
+ # @private
515
+ class Representation < Google::Apis::Core::JsonRepresentation
516
+ collection :messages, as: 'messages', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
517
+
518
+ property :next_page_token, as: 'nextPageToken'
519
+ property :result_size_estimate, as: 'resultSizeEstimate'
520
+ end
521
+ end
522
+
523
+ class ListSendAsResponse
524
+ # @private
525
+ class Representation < Google::Apis::Core::JsonRepresentation
526
+ collection :send_as, as: 'sendAs', class: Google::Apis::GmailV1::SendAs, decorator: Google::Apis::GmailV1::SendAs::Representation
527
+
528
+ end
529
+ end
530
+
531
+ class ListSmimeInfoResponse
532
+ # @private
533
+ class Representation < Google::Apis::Core::JsonRepresentation
534
+ collection :smime_info, as: 'smimeInfo', class: Google::Apis::GmailV1::SmimeInfo, decorator: Google::Apis::GmailV1::SmimeInfo::Representation
535
+
536
+ end
537
+ end
538
+
539
+ class ListThreadsResponse
540
+ # @private
541
+ class Representation < Google::Apis::Core::JsonRepresentation
542
+ property :next_page_token, as: 'nextPageToken'
543
+ property :result_size_estimate, as: 'resultSizeEstimate'
544
+ collection :threads, as: 'threads', class: Google::Apis::GmailV1::Thread, decorator: Google::Apis::GmailV1::Thread::Representation
545
+
546
+ end
547
+ end
548
+
549
+ class Message
550
+ # @private
551
+ class Representation < Google::Apis::Core::JsonRepresentation
552
+ property :history_id, :numeric_string => true, as: 'historyId'
553
+ property :id, as: 'id'
554
+ property :internal_date, :numeric_string => true, as: 'internalDate'
555
+ collection :label_ids, as: 'labelIds'
556
+ property :payload, as: 'payload', class: Google::Apis::GmailV1::MessagePart, decorator: Google::Apis::GmailV1::MessagePart::Representation
557
+
558
+ property :raw, :base64 => true, as: 'raw'
559
+ property :size_estimate, as: 'sizeEstimate'
560
+ property :snippet, as: 'snippet'
561
+ property :thread_id, as: 'threadId'
562
+ end
563
+ end
564
+
565
+ class MessagePart
566
+ # @private
567
+ class Representation < Google::Apis::Core::JsonRepresentation
568
+ property :body, as: 'body', class: Google::Apis::GmailV1::MessagePartBody, decorator: Google::Apis::GmailV1::MessagePartBody::Representation
569
+
570
+ property :filename, as: 'filename'
571
+ collection :headers, as: 'headers', class: Google::Apis::GmailV1::MessagePartHeader, decorator: Google::Apis::GmailV1::MessagePartHeader::Representation
572
+
573
+ property :mime_type, as: 'mimeType'
574
+ property :part_id, as: 'partId'
575
+ collection :parts, as: 'parts', class: Google::Apis::GmailV1::MessagePart, decorator: Google::Apis::GmailV1::MessagePart::Representation
576
+
577
+ end
578
+ end
579
+
580
+ class MessagePartBody
581
+ # @private
582
+ class Representation < Google::Apis::Core::JsonRepresentation
583
+ property :attachment_id, as: 'attachmentId'
584
+ property :data, :base64 => true, as: 'data'
585
+ property :size, as: 'size'
586
+ end
587
+ end
588
+
589
+ class MessagePartHeader
590
+ # @private
591
+ class Representation < Google::Apis::Core::JsonRepresentation
592
+ property :name, as: 'name'
593
+ property :value, as: 'value'
594
+ end
595
+ end
596
+
597
+ class ModifyMessageRequest
598
+ # @private
599
+ class Representation < Google::Apis::Core::JsonRepresentation
600
+ collection :add_label_ids, as: 'addLabelIds'
601
+ collection :remove_label_ids, as: 'removeLabelIds'
602
+ end
603
+ end
604
+
605
+ class ModifyThreadRequest
606
+ # @private
607
+ class Representation < Google::Apis::Core::JsonRepresentation
608
+ collection :add_label_ids, as: 'addLabelIds'
609
+ collection :remove_label_ids, as: 'removeLabelIds'
610
+ end
611
+ end
612
+
613
+ class PopSettings
614
+ # @private
615
+ class Representation < Google::Apis::Core::JsonRepresentation
616
+ property :access_window, as: 'accessWindow'
617
+ property :disposition, as: 'disposition'
618
+ end
619
+ end
620
+
621
+ class Profile
622
+ # @private
623
+ class Representation < Google::Apis::Core::JsonRepresentation
624
+ property :email_address, as: 'emailAddress'
625
+ property :history_id, :numeric_string => true, as: 'historyId'
626
+ property :messages_total, as: 'messagesTotal'
627
+ property :threads_total, as: 'threadsTotal'
628
+ end
629
+ end
630
+
631
+ class SendAs
632
+ # @private
633
+ class Representation < Google::Apis::Core::JsonRepresentation
634
+ property :display_name, as: 'displayName'
635
+ property :is_default, as: 'isDefault'
636
+ property :is_primary, as: 'isPrimary'
637
+ property :reply_to_address, as: 'replyToAddress'
638
+ property :send_as_email, as: 'sendAsEmail'
639
+ property :signature, as: 'signature'
640
+ property :smtp_msa, as: 'smtpMsa', class: Google::Apis::GmailV1::SmtpMsa, decorator: Google::Apis::GmailV1::SmtpMsa::Representation
641
+
642
+ property :treat_as_alias, as: 'treatAsAlias'
643
+ property :verification_status, as: 'verificationStatus'
644
+ end
645
+ end
646
+
647
+ class SmimeInfo
648
+ # @private
649
+ class Representation < Google::Apis::Core::JsonRepresentation
650
+ property :encrypted_key_password, as: 'encryptedKeyPassword'
651
+ property :expiration, :numeric_string => true, as: 'expiration'
652
+ property :id, as: 'id'
653
+ property :is_default, as: 'isDefault'
654
+ property :issuer_cn, as: 'issuerCn'
655
+ property :pem, as: 'pem'
656
+ property :pkcs12, :base64 => true, as: 'pkcs12'
657
+ end
658
+ end
659
+
660
+ class SmtpMsa
661
+ # @private
662
+ class Representation < Google::Apis::Core::JsonRepresentation
663
+ property :host, as: 'host'
664
+ property :password, as: 'password'
665
+ property :port, as: 'port'
666
+ property :security_mode, as: 'securityMode'
667
+ property :username, as: 'username'
668
+ end
669
+ end
670
+
671
+ class Thread
672
+ # @private
673
+ class Representation < Google::Apis::Core::JsonRepresentation
674
+ property :history_id, :numeric_string => true, as: 'historyId'
675
+ property :id, as: 'id'
676
+ collection :messages, as: 'messages', class: Google::Apis::GmailV1::Message, decorator: Google::Apis::GmailV1::Message::Representation
677
+
678
+ property :snippet, as: 'snippet'
679
+ end
680
+ end
681
+
682
+ class VacationSettings
683
+ # @private
684
+ class Representation < Google::Apis::Core::JsonRepresentation
685
+ property :enable_auto_reply, as: 'enableAutoReply'
686
+ property :end_time, :numeric_string => true, as: 'endTime'
687
+ property :response_body_html, as: 'responseBodyHtml'
688
+ property :response_body_plain_text, as: 'responseBodyPlainText'
689
+ property :response_subject, as: 'responseSubject'
690
+ property :restrict_to_contacts, as: 'restrictToContacts'
691
+ property :restrict_to_domain, as: 'restrictToDomain'
692
+ property :start_time, :numeric_string => true, as: 'startTime'
693
+ end
694
+ end
695
+
696
+ class WatchRequest
697
+ # @private
698
+ class Representation < Google::Apis::Core::JsonRepresentation
699
+ property :label_filter_action, as: 'labelFilterAction'
700
+ collection :label_ids, as: 'labelIds'
701
+ property :topic_name, as: 'topicName'
702
+ end
703
+ end
704
+
705
+ class WatchResponse
706
+ # @private
707
+ class Representation < Google::Apis::Core::JsonRepresentation
708
+ property :expiration, :numeric_string => true, as: 'expiration'
709
+ property :history_id, :numeric_string => true, as: 'historyId'
710
+ end
711
+ end
712
+ end
713
+ end
714
+ end