google-api-client 0.9.9 → 0.9.11

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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile +8 -0
  4. data/api_names.yaml +62 -55
  5. data/generated/google/apis/adsense_v1_4.rb +1 -1
  6. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  7. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  8. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  9. data/generated/google/apis/androidenterprise_v1/classes.rb +534 -39
  10. data/generated/google/apis/androidenterprise_v1/representations.rb +222 -0
  11. data/generated/google/apis/androidenterprise_v1/service.rb +595 -10
  12. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  13. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  14. data/generated/google/apis/appengine_v1beta5/classes.rb +66 -6
  15. data/generated/google/apis/appengine_v1beta5/representations.rb +29 -0
  16. data/generated/google/apis/appengine_v1beta5/service.rb +15 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/bigquery_v2.rb +1 -1
  19. data/generated/google/apis/bigquery_v2/classes.rb +12 -4
  20. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  21. data/generated/google/apis/books_v1.rb +2 -2
  22. data/generated/google/apis/books_v1/classes.rb +77 -0
  23. data/generated/google/apis/books_v1/representations.rb +34 -0
  24. data/generated/google/apis/books_v1/service.rb +2 -2
  25. data/generated/google/apis/calendar_v3.rb +1 -1
  26. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  27. data/generated/google/apis/cloudbuild_v1/classes.rb +110 -0
  28. data/generated/google/apis/cloudbuild_v1/representations.rb +60 -0
  29. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  30. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  31. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
  32. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
  33. data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
  34. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  35. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
  36. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
  37. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
  38. data/generated/google/apis/compute_beta.rb +1 -1
  39. data/generated/google/apis/compute_beta/classes.rb +678 -17
  40. data/generated/google/apis/compute_beta/representations.rb +235 -0
  41. data/generated/google/apis/compute_beta/service.rb +1280 -600
  42. data/generated/google/apis/compute_v1.rb +1 -1
  43. data/generated/google/apis/compute_v1/classes.rb +34 -13
  44. data/generated/google/apis/compute_v1/representations.rb +14 -0
  45. data/generated/google/apis/compute_v1/service.rb +42 -0
  46. data/generated/google/apis/content_v2.rb +1 -1
  47. data/generated/google/apis/content_v2/classes.rb +14 -0
  48. data/generated/google/apis/content_v2/representations.rb +2 -0
  49. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  50. data/generated/google/apis/datastore_v1beta3/classes.rb +1237 -0
  51. data/generated/google/apis/datastore_v1beta3/representations.rb +567 -0
  52. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  53. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  54. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -0
  55. data/generated/google/apis/deploymentmanager_v2/representations.rb +2 -0
  56. data/generated/google/apis/deploymentmanager_v2/service.rb +40 -50
  57. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  58. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  59. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  60. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  61. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  62. data/generated/google/apis/drive_v2.rb +1 -1
  63. data/generated/google/apis/drive_v3.rb +1 -1
  64. data/generated/google/apis/fitness_v1.rb +2 -2
  65. data/generated/google/apis/fitness_v1/classes.rb +48 -5
  66. data/generated/google/apis/fitness_v1/representations.rb +18 -0
  67. data/generated/google/apis/fitness_v1/service.rb +15 -16
  68. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  69. data/generated/google/apis/games_management_v1management.rb +1 -1
  70. data/generated/google/apis/games_v1.rb +1 -1
  71. data/generated/google/apis/genomics_v1.rb +2 -4
  72. data/generated/google/apis/genomics_v1/classes.rb +35 -7
  73. data/generated/google/apis/genomics_v1/representations.rb +7 -3
  74. data/generated/google/apis/genomics_v1/service.rb +1 -3
  75. data/generated/google/apis/gmail_v1.rb +7 -1
  76. data/generated/google/apis/gmail_v1/classes.rb +543 -0
  77. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  78. data/generated/google/apis/gmail_v1/service.rb +898 -1
  79. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  80. data/generated/google/apis/mirror_v1.rb +2 -2
  81. data/generated/google/apis/mirror_v1/service.rb +1 -1
  82. data/generated/google/apis/monitoring_v3.rb +1 -1
  83. data/generated/google/apis/monitoring_v3/classes.rb +7 -6
  84. data/generated/google/apis/oauth2_v2.rb +1 -1
  85. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  86. data/generated/google/apis/plus_domains_v1.rb +1 -1
  87. data/generated/google/apis/plus_v1.rb +1 -1
  88. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  89. data/generated/google/apis/sheets_v4.rb +1 -1
  90. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  91. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -8
  92. data/generated/google/apis/storage_v1.rb +1 -1
  93. data/generated/google/apis/storage_v1/classes.rb +17 -9
  94. data/generated/google/apis/translate_v2.rb +2 -2
  95. data/generated/google/apis/translate_v2/service.rb +1 -1
  96. data/generated/google/apis/vision_v1.rb +1 -1
  97. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  98. data/generated/google/apis/youtube_v3.rb +1 -1
  99. data/generated/google/apis/youtube_v3/classes.rb +8 -2
  100. data/generated/google/apis/youtube_v3/representations.rb +1 -0
  101. data/lib/google/apis/core/base_service.rb +3 -2
  102. data/lib/google/apis/core/upload.rb +7 -1
  103. data/lib/google/apis/version.rb +1 -1
  104. data/sync.rb +71 -0
  105. metadata +11 -2
@@ -22,9 +22,7 @@ module Google
22
22
  module GenomicsV1
23
23
  # Genomics API
24
24
  #
25
- # Stores, processes, explores and shares genomic data. This API implements the
26
- # Global Alliance for Genomics and Health (GA4GH) v0.5.1 API as well as several
27
- # extensions.
25
+ # Stores, processes, explores and shares genomic data.
28
26
  #
29
27
  # @example
30
28
  # require 'google/apis/genomics_v1'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/gmail/api/
26
26
  module GmailV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160526'
28
+ REVISION = '20160627'
29
29
 
30
30
  # View and manage your mail
31
31
  AUTH_SCOPE = 'https://mail.google.com/'
@@ -47,6 +47,12 @@ module Google
47
47
 
48
48
  # Send email on your behalf
49
49
  AUTH_GMAIL_SEND = 'https://www.googleapis.com/auth/gmail.send'
50
+
51
+ # Manage your basic mail settings
52
+ AUTH_GMAIL_SETTINGS_BASIC = 'https://www.googleapis.com/auth/gmail.settings.basic'
53
+
54
+ # Manage your sensitive mail settings, including who can manage your mail
55
+ AUTH_GMAIL_SETTINGS_SHARING = 'https://www.googleapis.com/auth/gmail.settings.sharing'
50
56
  end
51
57
  end
52
58
  end
@@ -22,6 +22,39 @@ module Google
22
22
  module Apis
23
23
  module GmailV1
24
24
 
25
+ # Auto-forwarding settings for an account.
26
+ class AutoForwarding
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The state that a message should be left in after it has been forwarded.
30
+ # Corresponds to the JSON property `disposition`
31
+ # @return [String]
32
+ attr_accessor :disposition
33
+
34
+ # Email address to which all incoming messages are forwarded. This email address
35
+ # must be a verified member of the forwarding addresses.
36
+ # Corresponds to the JSON property `emailAddress`
37
+ # @return [String]
38
+ attr_accessor :email_address
39
+
40
+ # Whether all incoming mail is automatically forwarded to another address.
41
+ # Corresponds to the JSON property `enabled`
42
+ # @return [Boolean]
43
+ attr_accessor :enabled
44
+ alias_method :enabled?, :enabled
45
+
46
+ def initialize(**args)
47
+ update!(**args)
48
+ end
49
+
50
+ # Update properties of this object
51
+ def update!(**args)
52
+ @disposition = args[:disposition] if args.key?(:disposition)
53
+ @email_address = args[:email_address] if args.key?(:email_address)
54
+ @enabled = args[:enabled] if args.key?(:enabled)
55
+ end
56
+ end
57
+
25
58
  #
26
59
  class BatchDeleteMessagesRequest
27
60
  include Google::Apis::Core::Hashable
@@ -66,6 +99,173 @@ module Google
66
99
  end
67
100
  end
68
101
 
102
+ # Resource definition for Gmail filters. Filters apply to specific messages
103
+ # instead of an entire email thread.
104
+ class Filter
105
+ include Google::Apis::Core::Hashable
106
+
107
+ # A set of actions to perform on a message.
108
+ # Corresponds to the JSON property `action`
109
+ # @return [Google::Apis::GmailV1::FilterAction]
110
+ attr_accessor :action
111
+
112
+ # Message matching criteria.
113
+ # Corresponds to the JSON property `criteria`
114
+ # @return [Google::Apis::GmailV1::FilterCriteria]
115
+ attr_accessor :criteria
116
+
117
+ # The server assigned ID of the filter.
118
+ # Corresponds to the JSON property `id`
119
+ # @return [String]
120
+ attr_accessor :id
121
+
122
+ def initialize(**args)
123
+ update!(**args)
124
+ end
125
+
126
+ # Update properties of this object
127
+ def update!(**args)
128
+ @action = args[:action] if args.key?(:action)
129
+ @criteria = args[:criteria] if args.key?(:criteria)
130
+ @id = args[:id] if args.key?(:id)
131
+ end
132
+ end
133
+
134
+ # A set of actions to perform on a message.
135
+ class FilterAction
136
+ include Google::Apis::Core::Hashable
137
+
138
+ # List of labels to add to the message.
139
+ # Corresponds to the JSON property `addLabelIds`
140
+ # @return [Array<String>]
141
+ attr_accessor :add_label_ids
142
+
143
+ # Email address that the message should be forwarded to.
144
+ # Corresponds to the JSON property `forward`
145
+ # @return [String]
146
+ attr_accessor :forward
147
+
148
+ # List of labels to remove from the message.
149
+ # Corresponds to the JSON property `removeLabelIds`
150
+ # @return [Array<String>]
151
+ attr_accessor :remove_label_ids
152
+
153
+ def initialize(**args)
154
+ update!(**args)
155
+ end
156
+
157
+ # Update properties of this object
158
+ def update!(**args)
159
+ @add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
160
+ @forward = args[:forward] if args.key?(:forward)
161
+ @remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
162
+ end
163
+ end
164
+
165
+ # Message matching criteria.
166
+ class FilterCriteria
167
+ include Google::Apis::Core::Hashable
168
+
169
+ # Whether the response should exclude chats.
170
+ # Corresponds to the JSON property `excludeChats`
171
+ # @return [Boolean]
172
+ attr_accessor :exclude_chats
173
+ alias_method :exclude_chats?, :exclude_chats
174
+
175
+ # The sender's display name or email address.
176
+ # Corresponds to the JSON property `from`
177
+ # @return [String]
178
+ attr_accessor :from
179
+
180
+ # Whether the message has any attachment.
181
+ # Corresponds to the JSON property `hasAttachment`
182
+ # @return [Boolean]
183
+ attr_accessor :has_attachment
184
+ alias_method :has_attachment?, :has_attachment
185
+
186
+ # Only return messages not matching the specified query. Supports the same query
187
+ # format as the Gmail search box. For example, "from:someuser@example.com
188
+ # rfc822msgid: is:unread".
189
+ # Corresponds to the JSON property `negatedQuery`
190
+ # @return [String]
191
+ attr_accessor :negated_query
192
+
193
+ # Only return messages matching the specified query. Supports the same query
194
+ # format as the Gmail search box. For example, "from:someuser@example.com
195
+ # rfc822msgid: is:unread".
196
+ # Corresponds to the JSON property `query`
197
+ # @return [String]
198
+ attr_accessor :query
199
+
200
+ # The size of the entire RFC822 message in bytes, including all headers and
201
+ # attachments.
202
+ # Corresponds to the JSON property `size`
203
+ # @return [Fixnum]
204
+ attr_accessor :size
205
+
206
+ # How the message size in bytes should be in relation to the size field.
207
+ # Corresponds to the JSON property `sizeComparison`
208
+ # @return [String]
209
+ attr_accessor :size_comparison
210
+
211
+ # Case-insensitive phrase found in the message's subject. Trailing and leading
212
+ # whitespace are be trimmed and adjacent spaces are collapsed.
213
+ # Corresponds to the JSON property `subject`
214
+ # @return [String]
215
+ attr_accessor :subject
216
+
217
+ # The recipient's display name or email address. Includes recipients in the "to",
218
+ # "cc", and "bcc" header fields. You can use simply the local part of the email
219
+ # address. For example, "example" and "example@" both match "example@gmail.com".
220
+ # This field is case-insensitive.
221
+ # Corresponds to the JSON property `to`
222
+ # @return [String]
223
+ attr_accessor :to
224
+
225
+ def initialize(**args)
226
+ update!(**args)
227
+ end
228
+
229
+ # Update properties of this object
230
+ def update!(**args)
231
+ @exclude_chats = args[:exclude_chats] if args.key?(:exclude_chats)
232
+ @from = args[:from] if args.key?(:from)
233
+ @has_attachment = args[:has_attachment] if args.key?(:has_attachment)
234
+ @negated_query = args[:negated_query] if args.key?(:negated_query)
235
+ @query = args[:query] if args.key?(:query)
236
+ @size = args[:size] if args.key?(:size)
237
+ @size_comparison = args[:size_comparison] if args.key?(:size_comparison)
238
+ @subject = args[:subject] if args.key?(:subject)
239
+ @to = args[:to] if args.key?(:to)
240
+ end
241
+ end
242
+
243
+ # Settings for a forwarding address.
244
+ class ForwardingAddress
245
+ include Google::Apis::Core::Hashable
246
+
247
+ # An email address to which messages can be forwarded.
248
+ # Corresponds to the JSON property `forwardingEmail`
249
+ # @return [String]
250
+ attr_accessor :forwarding_email
251
+
252
+ # Indicates whether this address has been verified and is usable for forwarding.
253
+ # Read-only.
254
+ # Corresponds to the JSON property `verificationStatus`
255
+ # @return [String]
256
+ attr_accessor :verification_status
257
+
258
+ def initialize(**args)
259
+ update!(**args)
260
+ end
261
+
262
+ # Update properties of this object
263
+ def update!(**args)
264
+ @forwarding_email = args[:forwarding_email] if args.key?(:forwarding_email)
265
+ @verification_status = args[:verification_status] if args.key?(:verification_status)
266
+ end
267
+ end
268
+
69
269
  # A record of a change to the user's mailbox. Each history change may affect
70
270
  # multiple messages in multiple ways.
71
271
  class History
@@ -206,6 +406,50 @@ module Google
206
406
  end
207
407
  end
208
408
 
409
+ # IMAP settings for an account.
410
+ class ImapSettings
411
+ include Google::Apis::Core::Hashable
412
+
413
+ # If this value is true, Gmail will immediately expunge a message when it is
414
+ # marked as deleted in IMAP. Otherwise, Gmail will wait for an update from the
415
+ # client before expunging messages marked as deleted.
416
+ # Corresponds to the JSON property `autoExpunge`
417
+ # @return [Boolean]
418
+ attr_accessor :auto_expunge
419
+ alias_method :auto_expunge?, :auto_expunge
420
+
421
+ # Whether IMAP is enabled for the account.
422
+ # Corresponds to the JSON property `enabled`
423
+ # @return [Boolean]
424
+ attr_accessor :enabled
425
+ alias_method :enabled?, :enabled
426
+
427
+ # The action that will be executed on a message when it is marked as deleted and
428
+ # expunged from the last visible IMAP folder.
429
+ # Corresponds to the JSON property `expungeBehavior`
430
+ # @return [String]
431
+ attr_accessor :expunge_behavior
432
+
433
+ # An optional limit on the number of messages that an IMAP folder may contain.
434
+ # Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted
435
+ # to mean that there is no limit.
436
+ # Corresponds to the JSON property `maxFolderSize`
437
+ # @return [Fixnum]
438
+ attr_accessor :max_folder_size
439
+
440
+ def initialize(**args)
441
+ update!(**args)
442
+ end
443
+
444
+ # Update properties of this object
445
+ def update!(**args)
446
+ @auto_expunge = args[:auto_expunge] if args.key?(:auto_expunge)
447
+ @enabled = args[:enabled] if args.key?(:enabled)
448
+ @expunge_behavior = args[:expunge_behavior] if args.key?(:expunge_behavior)
449
+ @max_folder_size = args[:max_folder_size] if args.key?(:max_folder_size)
450
+ end
451
+ end
452
+
209
453
  # Labels are used to categorize messages and threads within the user's mailbox.
210
454
  class Label
211
455
  include Google::Apis::Core::Hashable
@@ -311,6 +555,44 @@ module Google
311
555
  end
312
556
  end
313
557
 
558
+ # Response for the ListFilters method.
559
+ class ListFiltersResponse
560
+ include Google::Apis::Core::Hashable
561
+
562
+ # List of a user's filters.
563
+ # Corresponds to the JSON property `filter`
564
+ # @return [Array<Google::Apis::GmailV1::Filter>]
565
+ attr_accessor :filter
566
+
567
+ def initialize(**args)
568
+ update!(**args)
569
+ end
570
+
571
+ # Update properties of this object
572
+ def update!(**args)
573
+ @filter = args[:filter] if args.key?(:filter)
574
+ end
575
+ end
576
+
577
+ # Response for the ListForwardingAddresses method.
578
+ class ListForwardingAddressesResponse
579
+ include Google::Apis::Core::Hashable
580
+
581
+ # List of addresses that may be used for forwarding.
582
+ # Corresponds to the JSON property `forwardingAddresses`
583
+ # @return [Array<Google::Apis::GmailV1::ForwardingAddress>]
584
+ attr_accessor :forwarding_addresses
585
+
586
+ def initialize(**args)
587
+ update!(**args)
588
+ end
589
+
590
+ # Update properties of this object
591
+ def update!(**args)
592
+ @forwarding_addresses = args[:forwarding_addresses] if args.key?(:forwarding_addresses)
593
+ end
594
+ end
595
+
314
596
  #
315
597
  class ListHistoryResponse
316
598
  include Google::Apis::Core::Hashable
@@ -393,6 +675,25 @@ module Google
393
675
  end
394
676
  end
395
677
 
678
+ # Response for the ListSendAs method.
679
+ class ListSendAsResponse
680
+ include Google::Apis::Core::Hashable
681
+
682
+ # List of send-as aliases.
683
+ # Corresponds to the JSON property `sendAs`
684
+ # @return [Array<Google::Apis::GmailV1::SendAs>]
685
+ attr_accessor :send_as
686
+
687
+ def initialize(**args)
688
+ update!(**args)
689
+ end
690
+
691
+ # Update properties of this object
692
+ def update!(**args)
693
+ @send_as = args[:send_as] if args.key?(:send_as)
694
+ end
695
+ end
696
+
396
697
  #
397
698
  class ListThreadsResponse
398
699
  include Google::Apis::Core::Hashable
@@ -670,6 +971,35 @@ module Google
670
971
  end
671
972
  end
672
973
 
974
+ # POP settings for an account.
975
+ class PopSettings
976
+ include Google::Apis::Core::Hashable
977
+
978
+ # The range of messages which are accessible via POP. Setting this to
979
+ # FROM_NOW_ON causes any existing messages to become inaccessible and causes all
980
+ # future messages to become accessible. Setting this to ALL_MAIL causes all
981
+ # messages to become accessible, even if they have been fetched previously.
982
+ # Corresponds to the JSON property `accessWindow`
983
+ # @return [String]
984
+ attr_accessor :access_window
985
+
986
+ # The action that will be executed on a message after it has been fetched via
987
+ # POP.
988
+ # Corresponds to the JSON property `disposition`
989
+ # @return [String]
990
+ attr_accessor :disposition
991
+
992
+ def initialize(**args)
993
+ update!(**args)
994
+ end
995
+
996
+ # Update properties of this object
997
+ def update!(**args)
998
+ @access_window = args[:access_window] if args.key?(:access_window)
999
+ @disposition = args[:disposition] if args.key?(:disposition)
1000
+ end
1001
+ end
1002
+
673
1003
  # Profile for a Gmail user.
674
1004
  class Profile
675
1005
  include Google::Apis::Core::Hashable
@@ -707,6 +1037,144 @@ module Google
707
1037
  end
708
1038
  end
709
1039
 
1040
+ # Settings associated with a send-as alias, which can be either the primary
1041
+ # login address associated with the account or a custom "from" address. Send-as
1042
+ # aliases correspond to the "Send Mail As" feature in the web interface. See
1043
+ # for more details.
1044
+ class SendAs
1045
+ include Google::Apis::Core::Hashable
1046
+
1047
+ # A name that appears in the "From:" header for mail sent using this alias. For
1048
+ # custom "from" addresses, when this is empty, Gmail will populate the "From:"
1049
+ # header with the name that is used for the primary address associated with the
1050
+ # account.
1051
+ # Corresponds to the JSON property `displayName`
1052
+ # @return [String]
1053
+ attr_accessor :display_name
1054
+
1055
+ # Whether this address is selected as the default "From:" address in situations
1056
+ # such as composing a new message or sending a vacation auto-reply. Every Gmail
1057
+ # account has exactly one default send-as address, so the only legal value that
1058
+ # clients may write to this field is `true`. Changing this from `false` to `true`
1059
+ # for an address will result in this field becoming `false` for the other
1060
+ # previous default address.
1061
+ # Corresponds to the JSON property `isDefault`
1062
+ # @return [Boolean]
1063
+ attr_accessor :is_default
1064
+ alias_method :is_default?, :is_default
1065
+
1066
+ # Whether this address is the primary address used to login to the account.
1067
+ # Every Gmail account has exactly one primary address, and it cannot be deleted
1068
+ # from the collection of send-as aliases. This field is read-only.
1069
+ # Corresponds to the JSON property `isPrimary`
1070
+ # @return [Boolean]
1071
+ attr_accessor :is_primary
1072
+ alias_method :is_primary?, :is_primary
1073
+
1074
+ # An optional email address that is included in a "Reply-To:" header for mail
1075
+ # sent using this alias. If this is empty, Gmail will not generate a "Reply-To:"
1076
+ # header.
1077
+ # Corresponds to the JSON property `replyToAddress`
1078
+ # @return [String]
1079
+ attr_accessor :reply_to_address
1080
+
1081
+ # The email address that appears in the "From:" header for mail sent using this
1082
+ # alias. This is read-only for all operations except create.
1083
+ # Corresponds to the JSON property `sendAsEmail`
1084
+ # @return [String]
1085
+ attr_accessor :send_as_email
1086
+
1087
+ # An optional HTML signature that is included in messages composed with this
1088
+ # alias in the Gmail web UI.
1089
+ # Corresponds to the JSON property `signature`
1090
+ # @return [String]
1091
+ attr_accessor :signature
1092
+
1093
+ # Configuration for communication with an SMTP service.
1094
+ # Corresponds to the JSON property `smtpMsa`
1095
+ # @return [Google::Apis::GmailV1::SmtpMsa]
1096
+ attr_accessor :smtp_msa
1097
+
1098
+ # Whether Gmail should treat this address as an alias for the user's primary
1099
+ # email address. See for more details. This setting only applies to custom "
1100
+ # from" aliases.
1101
+ # Corresponds to the JSON property `treatAsAlias`
1102
+ # @return [Boolean]
1103
+ attr_accessor :treat_as_alias
1104
+ alias_method :treat_as_alias?, :treat_as_alias
1105
+
1106
+ # Indicates whether this address has been verified for use as a send-as alias.
1107
+ # Read-only. This setting only applies to custom "from" aliases.
1108
+ # Corresponds to the JSON property `verificationStatus`
1109
+ # @return [String]
1110
+ attr_accessor :verification_status
1111
+
1112
+ def initialize(**args)
1113
+ update!(**args)
1114
+ end
1115
+
1116
+ # Update properties of this object
1117
+ def update!(**args)
1118
+ @display_name = args[:display_name] if args.key?(:display_name)
1119
+ @is_default = args[:is_default] if args.key?(:is_default)
1120
+ @is_primary = args[:is_primary] if args.key?(:is_primary)
1121
+ @reply_to_address = args[:reply_to_address] if args.key?(:reply_to_address)
1122
+ @send_as_email = args[:send_as_email] if args.key?(:send_as_email)
1123
+ @signature = args[:signature] if args.key?(:signature)
1124
+ @smtp_msa = args[:smtp_msa] if args.key?(:smtp_msa)
1125
+ @treat_as_alias = args[:treat_as_alias] if args.key?(:treat_as_alias)
1126
+ @verification_status = args[:verification_status] if args.key?(:verification_status)
1127
+ end
1128
+ end
1129
+
1130
+ # Configuration for communication with an SMTP service.
1131
+ class SmtpMsa
1132
+ include Google::Apis::Core::Hashable
1133
+
1134
+ # The hostname of the SMTP service. Required.
1135
+ # Corresponds to the JSON property `host`
1136
+ # @return [String]
1137
+ attr_accessor :host
1138
+
1139
+ # The password that will be used for authentication with the SMTP service. This
1140
+ # is a write-only field that can be specified in requests to create or update
1141
+ # SendAs settings; it is never populated in responses.
1142
+ # Corresponds to the JSON property `password`
1143
+ # @return [String]
1144
+ attr_accessor :password
1145
+
1146
+ # The port of the SMTP service. Required.
1147
+ # Corresponds to the JSON property `port`
1148
+ # @return [Fixnum]
1149
+ attr_accessor :port
1150
+
1151
+ # The protocol that will be used to secure communication with the SMTP service.
1152
+ # Required.
1153
+ # Corresponds to the JSON property `securityMode`
1154
+ # @return [String]
1155
+ attr_accessor :security_mode
1156
+
1157
+ # The username that will be used for authentication with the SMTP service. This
1158
+ # is a write-only field that can be specified in requests to create or update
1159
+ # SendAs settings; it is never populated in responses.
1160
+ # Corresponds to the JSON property `username`
1161
+ # @return [String]
1162
+ attr_accessor :username
1163
+
1164
+ def initialize(**args)
1165
+ update!(**args)
1166
+ end
1167
+
1168
+ # Update properties of this object
1169
+ def update!(**args)
1170
+ @host = args[:host] if args.key?(:host)
1171
+ @password = args[:password] if args.key?(:password)
1172
+ @port = args[:port] if args.key?(:port)
1173
+ @security_mode = args[:security_mode] if args.key?(:security_mode)
1174
+ @username = args[:username] if args.key?(:username)
1175
+ end
1176
+ end
1177
+
710
1178
  # A collection of messages representing a conversation.
711
1179
  class Thread
712
1180
  include Google::Apis::Core::Hashable
@@ -744,6 +1212,81 @@ module Google
744
1212
  end
745
1213
  end
746
1214
 
1215
+ # Vacation auto-reply settings for an account. These settings correspond to the "
1216
+ # Vacation responder" feature in the web interface. See for more details.
1217
+ class VacationSettings
1218
+ include Google::Apis::Core::Hashable
1219
+
1220
+ # Flag that controls whether Gmail automatically replies to messages.
1221
+ # Corresponds to the JSON property `enableAutoReply`
1222
+ # @return [Boolean]
1223
+ attr_accessor :enable_auto_reply
1224
+ alias_method :enable_auto_reply?, :enable_auto_reply
1225
+
1226
+ # An optional end time for sending auto-replies (epoch ms). When this is
1227
+ # specified, Gmail will automatically reply only to messages that it receives
1228
+ # before the end time. If both `startTime` and `endTime` are specified, `
1229
+ # startTime` must precede `endTime`.
1230
+ # Corresponds to the JSON property `endTime`
1231
+ # @return [String]
1232
+ attr_accessor :end_time
1233
+
1234
+ # Response body in HTML format. Gmail will sanitize the HTML before storing it.
1235
+ # Corresponds to the JSON property `responseBodyHtml`
1236
+ # @return [String]
1237
+ attr_accessor :response_body_html
1238
+
1239
+ # Response body in plain text format.
1240
+ # Corresponds to the JSON property `responseBodyPlainText`
1241
+ # @return [String]
1242
+ attr_accessor :response_body_plain_text
1243
+
1244
+ # Optional text to prepend to the subject line in vacation responses. In order
1245
+ # to enable auto-replies, either the response subject or the response body must
1246
+ # be nonempty.
1247
+ # Corresponds to the JSON property `responseSubject`
1248
+ # @return [String]
1249
+ attr_accessor :response_subject
1250
+
1251
+ # Flag that determines whether responses are sent to recipients who are not in
1252
+ # the user's list of contacts.
1253
+ # Corresponds to the JSON property `restrictToContacts`
1254
+ # @return [Boolean]
1255
+ attr_accessor :restrict_to_contacts
1256
+ alias_method :restrict_to_contacts?, :restrict_to_contacts
1257
+
1258
+ # Flag that determines whether responses are sent to recipients who are outside
1259
+ # of the user's domain. This feature is only available for Google Apps users.
1260
+ # Corresponds to the JSON property `restrictToDomain`
1261
+ # @return [Boolean]
1262
+ attr_accessor :restrict_to_domain
1263
+ alias_method :restrict_to_domain?, :restrict_to_domain
1264
+
1265
+ # An optional start time for sending auto-replies (epoch ms). When this is
1266
+ # specified, Gmail will automatically reply only to messages that it receives
1267
+ # after the start time. If both `startTime` and `endTime` are specified, `
1268
+ # startTime` must precede `endTime`.
1269
+ # Corresponds to the JSON property `startTime`
1270
+ # @return [String]
1271
+ attr_accessor :start_time
1272
+
1273
+ def initialize(**args)
1274
+ update!(**args)
1275
+ end
1276
+
1277
+ # Update properties of this object
1278
+ def update!(**args)
1279
+ @enable_auto_reply = args[:enable_auto_reply] if args.key?(:enable_auto_reply)
1280
+ @end_time = args[:end_time] if args.key?(:end_time)
1281
+ @response_body_html = args[:response_body_html] if args.key?(:response_body_html)
1282
+ @response_body_plain_text = args[:response_body_plain_text] if args.key?(:response_body_plain_text)
1283
+ @response_subject = args[:response_subject] if args.key?(:response_subject)
1284
+ @restrict_to_contacts = args[:restrict_to_contacts] if args.key?(:restrict_to_contacts)
1285
+ @restrict_to_domain = args[:restrict_to_domain] if args.key?(:restrict_to_domain)
1286
+ @start_time = args[:start_time] if args.key?(:start_time)
1287
+ end
1288
+ end
1289
+
747
1290
  # Set up or update a new push notification watch on this user's mailbox.
748
1291
  class WatchRequest
749
1292
  include Google::Apis::Core::Hashable