google-api-client 0.9.8 → 0.9.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +61 -110
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +160 -9
  8. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +46 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -8
  10. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  11. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
  14. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +2 -2
  16. data/generated/google/apis/admin_reports_v1.rb +3 -3
  17. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4.rb +1 -1
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/analytics_v3.rb +1 -1
  21. data/generated/google/apis/analytics_v3/classes.rb +371 -1
  22. data/generated/google/apis/analytics_v3/representations.rb +135 -0
  23. data/generated/google/apis/analytics_v3/service.rb +218 -0
  24. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  25. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  26. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1/classes.rb +722 -48
  28. data/generated/google/apis/androidenterprise_v1/representations.rb +305 -0
  29. data/generated/google/apis/androidenterprise_v1/service.rb +1180 -146
  30. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
  32. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta5/classes.rb +430 -288
  34. data/generated/google/apis/appengine_v1beta5/representations.rb +84 -10
  35. data/generated/google/apis/appengine_v1beta5/service.rb +285 -25
  36. data/generated/google/apis/appsactivity_v1.rb +1 -1
  37. data/generated/google/apis/appstate_v1.rb +1 -1
  38. data/generated/google/apis/bigquery_v2.rb +1 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +254 -6
  40. data/generated/google/apis/bigquery_v2/representations.rb +85 -0
  41. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  42. data/generated/google/apis/books_v1.rb +2 -2
  43. data/generated/google/apis/books_v1/classes.rb +77 -0
  44. data/generated/google/apis/books_v1/representations.rb +34 -0
  45. data/generated/google/apis/books_v1/service.rb +7 -3
  46. data/generated/google/apis/calendar_v3.rb +1 -1
  47. data/generated/google/apis/civicinfo_v2.rb +3 -2
  48. data/generated/google/apis/civicinfo_v2/classes.rb +16 -4
  49. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  50. data/generated/google/apis/civicinfo_v2/service.rb +8 -2
  51. data/generated/google/apis/classroom_v1.rb +1 -1
  52. data/generated/google/apis/classroom_v1/classes.rb +176 -37
  53. data/generated/google/apis/classroom_v1/representations.rb +73 -9
  54. data/generated/google/apis/classroom_v1/service.rb +392 -37
  55. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  56. data/generated/google/apis/cloudbuild_v1/classes.rb +320 -12
  57. data/generated/google/apis/cloudbuild_v1/representations.rb +136 -2
  58. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  59. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  60. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  61. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  62. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  63. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
  64. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
  65. data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
  66. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  67. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
  68. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
  69. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
  70. data/generated/google/apis/compute_beta.rb +1 -1
  71. data/generated/google/apis/compute_beta/classes.rb +1620 -199
  72. data/generated/google/apis/compute_beta/representations.rb +563 -0
  73. data/generated/google/apis/compute_beta/service.rb +5123 -2690
  74. data/generated/google/apis/compute_v1.rb +1 -1
  75. data/generated/google/apis/compute_v1/classes.rb +1717 -295
  76. data/generated/google/apis/compute_v1/representations.rb +536 -0
  77. data/generated/google/apis/compute_v1/service.rb +2038 -1041
  78. data/generated/google/apis/content_v2.rb +1 -1
  79. data/generated/google/apis/content_v2/classes.rb +709 -1
  80. data/generated/google/apis/content_v2/representations.rb +319 -0
  81. data/generated/google/apis/content_v2/service.rb +244 -0
  82. data/generated/google/apis/datastore_v1.rb +38 -0
  83. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  84. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  85. data/generated/google/apis/datastore_v1/service.rb +259 -0
  86. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  87. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  88. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  89. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  90. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  91. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  92. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  93. data/generated/google/apis/deploymentmanager_v2/service.rb +162 -50
  94. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  95. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  96. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  97. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  98. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  99. data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
  100. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  101. data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
  102. data/generated/google/apis/dns_v1.rb +1 -1
  103. data/generated/google/apis/dns_v1/classes.rb +1 -1
  104. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  105. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  106. data/generated/google/apis/drive_v2.rb +1 -1
  107. data/generated/google/apis/drive_v2/classes.rb +11 -3
  108. data/generated/google/apis/drive_v2/representations.rb +2 -0
  109. data/generated/google/apis/drive_v2/service.rb +8 -2
  110. data/generated/google/apis/drive_v3.rb +1 -1
  111. data/generated/google/apis/drive_v3/classes.rb +36 -16
  112. data/generated/google/apis/drive_v3/representations.rb +2 -0
  113. data/generated/google/apis/drive_v3/service.rb +4 -1
  114. data/generated/google/apis/fitness_v1.rb +8 -2
  115. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  116. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  117. data/generated/google/apis/fitness_v1/service.rb +17 -18
  118. data/generated/google/apis/fusiontables_v2.rb +1 -1
  119. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  120. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  121. data/generated/google/apis/games_management_v1management.rb +1 -1
  122. data/generated/google/apis/games_v1.rb +1 -1
  123. data/generated/google/apis/genomics_v1.rb +2 -4
  124. data/generated/google/apis/genomics_v1/classes.rb +111 -9
  125. data/generated/google/apis/genomics_v1/representations.rb +36 -0
  126. data/generated/google/apis/genomics_v1/service.rb +4 -7
  127. data/generated/google/apis/gmail_v1.rb +7 -1
  128. data/generated/google/apis/gmail_v1/classes.rb +540 -0
  129. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  130. data/generated/google/apis/gmail_v1/service.rb +898 -1
  131. data/generated/google/apis/groupssettings_v1.rb +1 -1
  132. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  133. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  134. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  135. data/generated/google/apis/identitytoolkit_v3/classes.rb +154 -1
  136. data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
  137. data/generated/google/apis/language_v1beta1.rb +36 -0
  138. data/generated/google/apis/language_v1beta1/classes.rb +596 -0
  139. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  140. data/generated/google/apis/language_v1beta1/service.rb +154 -0
  141. data/generated/google/apis/mirror_v1.rb +2 -2
  142. data/generated/google/apis/mirror_v1/service.rb +1 -1
  143. data/generated/google/apis/monitoring_v3.rb +45 -0
  144. data/generated/google/apis/monitoring_v3/classes.rb +1328 -0
  145. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  146. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  147. data/generated/google/apis/oauth2_v2.rb +1 -1
  148. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  149. data/generated/google/apis/plus_domains_v1.rb +1 -1
  150. data/generated/google/apis/plus_v1.rb +1 -1
  151. data/generated/google/apis/qpx_express_v1.rb +1 -1
  152. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  153. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  154. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  155. data/generated/google/apis/script_v1.rb +1 -1
  156. data/generated/google/apis/script_v1/classes.rb +6 -0
  157. data/generated/google/apis/script_v1/representations.rb +1 -0
  158. data/generated/google/apis/sheets_v4.rb +1 -1
  159. data/generated/google/apis/sheets_v4/classes.rb +35 -0
  160. data/generated/google/apis/sheets_v4/representations.rb +16 -0
  161. data/generated/google/apis/sheets_v4/service.rb +55 -0
  162. data/generated/google/apis/speech_v1beta1.rb +34 -0
  163. data/generated/google/apis/speech_v1beta1/classes.rb +521 -0
  164. data/generated/google/apis/speech_v1beta1/representations.rb +219 -0
  165. data/generated/google/apis/speech_v1beta1/service.rb +268 -0
  166. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  167. data/generated/google/apis/sqladmin_v1beta4/classes.rb +26 -8
  168. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  169. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  170. data/generated/google/apis/storage_v1.rb +1 -1
  171. data/generated/google/apis/storage_v1/classes.rb +19 -10
  172. data/generated/google/apis/translate_v2.rb +2 -2
  173. data/generated/google/apis/translate_v2/service.rb +1 -1
  174. data/generated/google/apis/vision_v1.rb +1 -1
  175. data/generated/google/apis/vision_v1/classes.rb +10 -9
  176. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  177. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  178. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  179. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  180. data/generated/google/apis/youtube_v3.rb +1 -1
  181. data/generated/google/apis/youtube_v3/classes.rb +163 -2
  182. data/generated/google/apis/youtube_v3/representations.rb +82 -0
  183. data/generated/google/apis/youtube_v3/service.rb +6 -2
  184. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  185. data/google-api-client.gemspec +2 -1
  186. data/lib/google/apis/core/api_command.rb +4 -0
  187. data/lib/google/apis/core/base_service.rb +10 -4
  188. data/lib/google/apis/core/download.rb +7 -2
  189. data/lib/google/apis/core/http_command.rb +5 -1
  190. data/lib/google/apis/core/upload.rb +7 -1
  191. data/lib/google/apis/errors.rb +2 -2
  192. data/lib/google/apis/generator/annotator.rb +6 -0
  193. data/lib/google/apis/version.rb +1 -1
  194. data/samples/cli/lib/samples/bigquery.rb +101 -0
  195. data/samples/cli/lib/samples/sheets.rb +61 -0
  196. data/sync.rb +71 -0
  197. metadata +43 -13
@@ -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'
@@ -432,7 +430,7 @@ module Google
432
430
  # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.
433
431
  # com/genomics/fundamentals-of-google-genomics)
434
432
  # @param [String] project_id
435
- # Required. The project to list datasets for.
433
+ # Required. The Google Cloud project ID to list datasets for.
436
434
  # @param [Fixnum] page_size
437
435
  # The maximum number of results to return in a single page. If unspecified,
438
436
  # defaults to 50. The maximum value is 1024.
@@ -913,9 +911,8 @@ module Google
913
911
  # definitions of read group sets and other genomics resources, see [Fundamentals
914
912
  # of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-
915
913
  # genomics) Note that currently there may be some differences between exported
916
- # BAM files and the original BAM file at the time of import. See [
917
- # ImportReadGroupSets](google.genomics.v1.ReadServiceV1.ImportReadGroupSets) for
918
- # caveats.
914
+ # BAM files and the original BAM file at the time of import. See
915
+ # ImportReadGroupSets for caveats.
919
916
  # @param [String] read_group_set_id
920
917
  # Required. The ID of the read group set to export. The caller must have READ
921
918
  # access to this read group set.
@@ -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 = '20160522'
28
+ REVISION = '20160711'
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,32 @@ 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.
979
+ # Corresponds to the JSON property `accessWindow`
980
+ # @return [String]
981
+ attr_accessor :access_window
982
+
983
+ # The action that will be executed on a message after it has been fetched via
984
+ # POP.
985
+ # Corresponds to the JSON property `disposition`
986
+ # @return [String]
987
+ attr_accessor :disposition
988
+
989
+ def initialize(**args)
990
+ update!(**args)
991
+ end
992
+
993
+ # Update properties of this object
994
+ def update!(**args)
995
+ @access_window = args[:access_window] if args.key?(:access_window)
996
+ @disposition = args[:disposition] if args.key?(:disposition)
997
+ end
998
+ end
999
+
673
1000
  # Profile for a Gmail user.
674
1001
  class Profile
675
1002
  include Google::Apis::Core::Hashable
@@ -707,6 +1034,144 @@ module Google
707
1034
  end
708
1035
  end
709
1036
 
1037
+ # Settings associated with a send-as alias, which can be either the primary
1038
+ # login address associated with the account or a custom "from" address. Send-as
1039
+ # aliases correspond to the "Send Mail As" feature in the web interface. See
1040
+ # for more details.
1041
+ class SendAs
1042
+ include Google::Apis::Core::Hashable
1043
+
1044
+ # A name that appears in the "From:" header for mail sent using this alias. For
1045
+ # custom "from" addresses, when this is empty, Gmail will populate the "From:"
1046
+ # header with the name that is used for the primary address associated with the
1047
+ # account.
1048
+ # Corresponds to the JSON property `displayName`
1049
+ # @return [String]
1050
+ attr_accessor :display_name
1051
+
1052
+ # Whether this address is selected as the default "From:" address in situations
1053
+ # such as composing a new message or sending a vacation auto-reply. Every Gmail
1054
+ # account has exactly one default send-as address, so the only legal value that
1055
+ # clients may write to this field is true. Changing this from false to true for
1056
+ # an address will result in this field becoming false for the other previous
1057
+ # default address.
1058
+ # Corresponds to the JSON property `isDefault`
1059
+ # @return [Boolean]
1060
+ attr_accessor :is_default
1061
+ alias_method :is_default?, :is_default
1062
+
1063
+ # Whether this address is the primary address used to login to the account.
1064
+ # Every Gmail account has exactly one primary address, and it cannot be deleted
1065
+ # from the collection of send-as aliases. This field is read-only.
1066
+ # Corresponds to the JSON property `isPrimary`
1067
+ # @return [Boolean]
1068
+ attr_accessor :is_primary
1069
+ alias_method :is_primary?, :is_primary
1070
+
1071
+ # An optional email address that is included in a "Reply-To:" header for mail
1072
+ # sent using this alias. If this is empty, Gmail will not generate a "Reply-To:"
1073
+ # header.
1074
+ # Corresponds to the JSON property `replyToAddress`
1075
+ # @return [String]
1076
+ attr_accessor :reply_to_address
1077
+
1078
+ # The email address that appears in the "From:" header for mail sent using this
1079
+ # alias. This is read-only for all operations except create.
1080
+ # Corresponds to the JSON property `sendAsEmail`
1081
+ # @return [String]
1082
+ attr_accessor :send_as_email
1083
+
1084
+ # An optional HTML signature that is included in messages composed with this
1085
+ # alias in the Gmail web UI.
1086
+ # Corresponds to the JSON property `signature`
1087
+ # @return [String]
1088
+ attr_accessor :signature
1089
+
1090
+ # Configuration for communication with an SMTP service.
1091
+ # Corresponds to the JSON property `smtpMsa`
1092
+ # @return [Google::Apis::GmailV1::SmtpMsa]
1093
+ attr_accessor :smtp_msa
1094
+
1095
+ # Whether Gmail should treat this address as an alias for the user's primary
1096
+ # email address. See for more details. This setting only applies to custom "
1097
+ # from" aliases.
1098
+ # Corresponds to the JSON property `treatAsAlias`
1099
+ # @return [Boolean]
1100
+ attr_accessor :treat_as_alias
1101
+ alias_method :treat_as_alias?, :treat_as_alias
1102
+
1103
+ # Indicates whether this address has been verified for use as a send-as alias.
1104
+ # Read-only. This setting only applies to custom "from" aliases.
1105
+ # Corresponds to the JSON property `verificationStatus`
1106
+ # @return [String]
1107
+ attr_accessor :verification_status
1108
+
1109
+ def initialize(**args)
1110
+ update!(**args)
1111
+ end
1112
+
1113
+ # Update properties of this object
1114
+ def update!(**args)
1115
+ @display_name = args[:display_name] if args.key?(:display_name)
1116
+ @is_default = args[:is_default] if args.key?(:is_default)
1117
+ @is_primary = args[:is_primary] if args.key?(:is_primary)
1118
+ @reply_to_address = args[:reply_to_address] if args.key?(:reply_to_address)
1119
+ @send_as_email = args[:send_as_email] if args.key?(:send_as_email)
1120
+ @signature = args[:signature] if args.key?(:signature)
1121
+ @smtp_msa = args[:smtp_msa] if args.key?(:smtp_msa)
1122
+ @treat_as_alias = args[:treat_as_alias] if args.key?(:treat_as_alias)
1123
+ @verification_status = args[:verification_status] if args.key?(:verification_status)
1124
+ end
1125
+ end
1126
+
1127
+ # Configuration for communication with an SMTP service.
1128
+ class SmtpMsa
1129
+ include Google::Apis::Core::Hashable
1130
+
1131
+ # The hostname of the SMTP service. Required.
1132
+ # Corresponds to the JSON property `host`
1133
+ # @return [String]
1134
+ attr_accessor :host
1135
+
1136
+ # The password that will be used for authentication with the SMTP service. This
1137
+ # is a write-only field that can be specified in requests to create or update
1138
+ # SendAs settings; it is never populated in responses.
1139
+ # Corresponds to the JSON property `password`
1140
+ # @return [String]
1141
+ attr_accessor :password
1142
+
1143
+ # The port of the SMTP service. Required.
1144
+ # Corresponds to the JSON property `port`
1145
+ # @return [Fixnum]
1146
+ attr_accessor :port
1147
+
1148
+ # The protocol that will be used to secure communication with the SMTP service.
1149
+ # Required.
1150
+ # Corresponds to the JSON property `securityMode`
1151
+ # @return [String]
1152
+ attr_accessor :security_mode
1153
+
1154
+ # The username that will be used for authentication with the SMTP service. This
1155
+ # is a write-only field that can be specified in requests to create or update
1156
+ # SendAs settings; it is never populated in responses.
1157
+ # Corresponds to the JSON property `username`
1158
+ # @return [String]
1159
+ attr_accessor :username
1160
+
1161
+ def initialize(**args)
1162
+ update!(**args)
1163
+ end
1164
+
1165
+ # Update properties of this object
1166
+ def update!(**args)
1167
+ @host = args[:host] if args.key?(:host)
1168
+ @password = args[:password] if args.key?(:password)
1169
+ @port = args[:port] if args.key?(:port)
1170
+ @security_mode = args[:security_mode] if args.key?(:security_mode)
1171
+ @username = args[:username] if args.key?(:username)
1172
+ end
1173
+ end
1174
+
710
1175
  # A collection of messages representing a conversation.
711
1176
  class Thread
712
1177
  include Google::Apis::Core::Hashable
@@ -744,6 +1209,81 @@ module Google
744
1209
  end
745
1210
  end
746
1211
 
1212
+ # Vacation auto-reply settings for an account. These settings correspond to the "
1213
+ # Vacation responder" feature in the web interface. See for more details.
1214
+ class VacationSettings
1215
+ include Google::Apis::Core::Hashable
1216
+
1217
+ # Flag that controls whether Gmail automatically replies to messages.
1218
+ # Corresponds to the JSON property `enableAutoReply`
1219
+ # @return [Boolean]
1220
+ attr_accessor :enable_auto_reply
1221
+ alias_method :enable_auto_reply?, :enable_auto_reply
1222
+
1223
+ # An optional end time for sending auto-replies (epoch ms). When this is
1224
+ # specified, Gmail will automatically reply only to messages that it receives
1225
+ # before the end time. If both startTime and endTime are specified, startTime
1226
+ # must precede endTime.
1227
+ # Corresponds to the JSON property `endTime`
1228
+ # @return [String]
1229
+ attr_accessor :end_time
1230
+
1231
+ # Response body in HTML format. Gmail will sanitize the HTML before storing it.
1232
+ # Corresponds to the JSON property `responseBodyHtml`
1233
+ # @return [String]
1234
+ attr_accessor :response_body_html
1235
+
1236
+ # Response body in plain text format.
1237
+ # Corresponds to the JSON property `responseBodyPlainText`
1238
+ # @return [String]
1239
+ attr_accessor :response_body_plain_text
1240
+
1241
+ # Optional text to prepend to the subject line in vacation responses. In order
1242
+ # to enable auto-replies, either the response subject or the response body must
1243
+ # be nonempty.
1244
+ # Corresponds to the JSON property `responseSubject`
1245
+ # @return [String]
1246
+ attr_accessor :response_subject
1247
+
1248
+ # Flag that determines whether responses are sent to recipients who are not in
1249
+ # the user's list of contacts.
1250
+ # Corresponds to the JSON property `restrictToContacts`
1251
+ # @return [Boolean]
1252
+ attr_accessor :restrict_to_contacts
1253
+ alias_method :restrict_to_contacts?, :restrict_to_contacts
1254
+
1255
+ # Flag that determines whether responses are sent to recipients who are outside
1256
+ # of the user's domain. This feature is only available for Google Apps users.
1257
+ # Corresponds to the JSON property `restrictToDomain`
1258
+ # @return [Boolean]
1259
+ attr_accessor :restrict_to_domain
1260
+ alias_method :restrict_to_domain?, :restrict_to_domain
1261
+
1262
+ # An optional start time for sending auto-replies (epoch ms). When this is
1263
+ # specified, Gmail will automatically reply only to messages that it receives
1264
+ # after the start time. If both startTime and endTime are specified, startTime
1265
+ # must precede endTime.
1266
+ # Corresponds to the JSON property `startTime`
1267
+ # @return [String]
1268
+ attr_accessor :start_time
1269
+
1270
+ def initialize(**args)
1271
+ update!(**args)
1272
+ end
1273
+
1274
+ # Update properties of this object
1275
+ def update!(**args)
1276
+ @enable_auto_reply = args[:enable_auto_reply] if args.key?(:enable_auto_reply)
1277
+ @end_time = args[:end_time] if args.key?(:end_time)
1278
+ @response_body_html = args[:response_body_html] if args.key?(:response_body_html)
1279
+ @response_body_plain_text = args[:response_body_plain_text] if args.key?(:response_body_plain_text)
1280
+ @response_subject = args[:response_subject] if args.key?(:response_subject)
1281
+ @restrict_to_contacts = args[:restrict_to_contacts] if args.key?(:restrict_to_contacts)
1282
+ @restrict_to_domain = args[:restrict_to_domain] if args.key?(:restrict_to_domain)
1283
+ @start_time = args[:start_time] if args.key?(:start_time)
1284
+ end
1285
+ end
1286
+
747
1287
  # Set up or update a new push notification watch on this user's mailbox.
748
1288
  class WatchRequest
749
1289
  include Google::Apis::Core::Hashable