blob: 1cd0006d63736408ae7a40a54c896210bca0f036 [file] [log] [blame]
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="gmail_v1.html">Gmail API</a> . <a href="gmail_v1.users.html">users</a> . <a href="gmail_v1.users.settings.html">settings</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070078 <code><a href="gmail_v1.users.settings.delegates.html">delegates()</a></code>
79</p>
80<p class="firstline">Returns the delegates Resource.</p>
81
82<p class="toc_element">
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070083 <code><a href="gmail_v1.users.settings.filters.html">filters()</a></code>
84</p>
85<p class="firstline">Returns the filters Resource.</p>
86
87<p class="toc_element">
88 <code><a href="gmail_v1.users.settings.forwardingAddresses.html">forwardingAddresses()</a></code>
89</p>
90<p class="firstline">Returns the forwardingAddresses Resource.</p>
91
92<p class="toc_element">
93 <code><a href="gmail_v1.users.settings.sendAs.html">sendAs()</a></code>
94</p>
95<p class="firstline">Returns the sendAs Resource.</p>
96
97<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070098 <code><a href="#getAutoForwarding">getAutoForwarding(userId, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070099<p class="firstline">Gets the auto-forwarding setting for the specified account.</p>
100<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700101 <code><a href="#getImap">getImap(userId, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700102<p class="firstline">Gets IMAP settings.</p>
103<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700104 <code><a href="#getLanguage">getLanguage(userId, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105<p class="firstline">Gets language settings.</p>
106<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700107 <code><a href="#getPop">getPop(userId, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700108<p class="firstline">Gets POP settings.</p>
109<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700110 <code><a href="#getVacation">getVacation(userId, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700111<p class="firstline">Gets vacation responder settings.</p>
112<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700113 <code><a href="#updateAutoForwarding">updateAutoForwarding(userId, body=None, x__xgafv=None)</a></code></p>
114<p class="firstline">Updates the auto-forwarding setting for the specified account. A verified</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700115<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700116 <code><a href="#updateImap">updateImap(userId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700117<p class="firstline">Updates IMAP settings.</p>
118<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700119 <code><a href="#updateLanguage">updateLanguage(userId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120<p class="firstline">Updates language settings.</p>
121<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700122 <code><a href="#updatePop">updatePop(userId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700123<p class="firstline">Updates POP settings.</p>
124<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700125 <code><a href="#updateVacation">updateVacation(userId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700126<p class="firstline">Updates vacation responder settings.</p>
127<h3>Method Details</h3>
128<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700129 <code class="details" id="getAutoForwarding">getAutoForwarding(userId, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700130 <pre>Gets the auto-forwarding setting for the specified account.
131
132Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700133 userId: string, User&#x27;s email address. The special value &quot;me&quot;
134can be used to indicate the authenticated user. (required)
135 x__xgafv: string, V1 error format.
136 Allowed values
137 1 - v1 error format
138 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700139
140Returns:
141 An object of the form:
142
143 { # Auto-forwarding settings for an account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700144 &quot;enabled&quot;: True or False, # Whether all incoming mail is automatically forwarded to another address.
145 &quot;disposition&quot;: &quot;A String&quot;, # The state that a message should be left in after it has been forwarded.
146 &quot;emailAddress&quot;: &quot;A String&quot;, # Email address to which all incoming messages are forwarded. This email
147 # address must be a verified member of the forwarding addresses.
148 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700149</div>
150
151<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700152 <code class="details" id="getImap">getImap(userId, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700153 <pre>Gets IMAP settings.
154
155Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700156 userId: string, User&#x27;s email address. The special value &quot;me&quot;
157can be used to indicate the authenticated user. (required)
158 x__xgafv: string, V1 error format.
159 Allowed values
160 1 - v1 error format
161 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700162
163Returns:
164 An object of the form:
165
166 { # IMAP settings for an account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700167 &quot;maxFolderSize&quot;: 42, # An optional limit on the number of messages that an IMAP folder may
168 # contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero
169 # is interpreted to mean that there is no limit.
170 &quot;autoExpunge&quot;: True or False, # If this value is true, Gmail will immediately expunge a message when it is
171 # marked as deleted in IMAP. Otherwise, Gmail will wait for an update from
172 # the client before expunging messages marked as deleted.
173 &quot;expungeBehavior&quot;: &quot;A String&quot;, # The action that will be executed on a message when it is marked as deleted
174 # and expunged from the last visible IMAP folder.
175 &quot;enabled&quot;: True or False, # Whether IMAP is enabled for the account.
176 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700177</div>
178
179<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700180 <code class="details" id="getLanguage">getLanguage(userId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700181 <pre>Gets language settings.
182
183Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700184 userId: string, User&#x27;s email address. The special value &quot;me&quot;
185can be used to indicate the authenticated user. (required)
186 x__xgafv: string, V1 error format.
187 Allowed values
188 1 - v1 error format
189 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700190
191Returns:
192 An object of the form:
193
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700194 { # Language settings for an account. These settings correspond to
195 # the &lt;a href=&quot;https://support.google.com/mail/answer/17091&quot;&gt;&quot;Language
196 # settings&quot;&lt;/a&gt; feature in the web interface.
197 &quot;displayLanguage&quot;: &quot;A String&quot;, # The language to display Gmail in, formatted as an
198 # &lt;a href=&quot;https://www.w3.org/International/articles/language-tags/&quot;&gt;RFC 3066
199 # Language Tag&lt;/a&gt; (for example `en-GB`, `fr` or
200 # `ja` for British English, French, or Japanese respectively).
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700202 # The set of languages supported by Gmail evolves over time, so please refer
203 # to the &quot;Language&quot; dropdown in the
204 # &lt;a href=&quot;https://mail.google.com/mail/u/0/#settings/general&quot;&gt;Gmail settings
205 # &lt;/a&gt; for all available options, as described in the
206 # &lt;a href=&quot;https://support.google.com/mail/answer/17091&quot;&gt;language settings
207 # help article&lt;/a&gt;. A table of sample values is also provided in the
208 # &lt;a href=&quot;/gmail/api/guides/language_settings#display_language&quot;&gt;Managing
209 # Language Settings guide&lt;/a&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700211 # Not all Gmail clients can display the same set of languages. In the case
212 # that a user&#x27;s display language is not available for use on a particular
213 # client, said client automatically chooses to display in the closest
214 # supported variant (or a reasonable default).
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700216</div>
217
218<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700219 <code class="details" id="getPop">getPop(userId, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700220 <pre>Gets POP settings.
221
222Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700223 userId: string, User&#x27;s email address. The special value &quot;me&quot;
224can be used to indicate the authenticated user. (required)
225 x__xgafv: string, V1 error format.
226 Allowed values
227 1 - v1 error format
228 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700229
230Returns:
231 An object of the form:
232
233 { # POP settings for an account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700234 &quot;disposition&quot;: &quot;A String&quot;, # The action that will be executed on a message after it has been fetched via
235 # POP.
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 &quot;accessWindow&quot;: &quot;A String&quot;, # The range of messages which are accessible via POP.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700237 }</pre>
238</div>
239
240<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700241 <code class="details" id="getVacation">getVacation(userId, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700242 <pre>Gets vacation responder settings.
243
244Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700245 userId: string, User&#x27;s email address. The special value &quot;me&quot;
246can be used to indicate the authenticated user. (required)
247 x__xgafv: string, V1 error format.
248 Allowed values
249 1 - v1 error format
250 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700251
252Returns:
253 An object of the form:
254
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700255 { # Vacation auto-reply settings for an account. These settings correspond to
256 # the &lt;a href=&quot;https://support.google.com/mail/answer/25922&quot;&gt;&quot;Vacation
257 # responder&quot;&lt;/a&gt; feature in the web interface.
258 &quot;startTime&quot;: &quot;A String&quot;, # An optional start time for sending auto-replies (epoch ms).
259 # When this is specified, Gmail will automatically reply only to messages
260 # that it receives after the start time. If both `startTime` and
261 # `endTime` are specified, `startTime` must precede
262 # `endTime`.
263 &quot;endTime&quot;: &quot;A String&quot;, # An optional end time for sending auto-replies (epoch ms).
264 # When this is specified, Gmail will automatically reply only to messages
265 # that it receives before the end time. If both `startTime` and
266 # `endTime` are specified, `startTime` must precede
267 # `endTime`.
268 &quot;responseBodyHtml&quot;: &quot;A String&quot;, # Response body in HTML format. Gmail will sanitize the HTML before
269 # storing it. If both `response_body_plain_text` and
270 # `response_body_html` are specified,
271 # `response_body_html` will be used.
272 &quot;responseSubject&quot;: &quot;A String&quot;, # Optional text to prepend to the subject line in vacation responses. In
273 # order to enable auto-replies, either the response subject or the response
274 # body must be nonempty.
275 &quot;responseBodyPlainText&quot;: &quot;A String&quot;, # Response body in plain text format. If both
276 # `response_body_plain_text` and `response_body_html`
277 # are specified, `response_body_html` will be used.
278 &quot;restrictToContacts&quot;: True or False, # Flag that determines whether responses are sent to recipients who are not
279 # in the user&#x27;s list of contacts.
Bu Sun Kim65020912020-05-20 12:08:20 -0700280 &quot;enableAutoReply&quot;: True or False, # Flag that controls whether Gmail automatically replies to messages.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700281 &quot;restrictToDomain&quot;: True or False, # Flag that determines whether responses are sent to recipients who are
282 # outside of the user&#x27;s domain. This feature is only available for G Suite
283 # users.
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700285</div>
286
287<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700288 <code class="details" id="updateAutoForwarding">updateAutoForwarding(userId, body=None, x__xgafv=None)</code>
289 <pre>Updates the auto-forwarding setting for the specified account. A verified
290forwarding address must be specified when auto-forwarding is enabled.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700291
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700292This method is only available to service account clients that have been
293delegated domain-wide authority.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400294
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700295Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700296 userId: string, User&#x27;s email address. The special value &quot;me&quot;
297can be used to indicate the authenticated user. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700298 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700299 The object takes the form of:
300
301{ # Auto-forwarding settings for an account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700302 &quot;enabled&quot;: True or False, # Whether all incoming mail is automatically forwarded to another address.
303 &quot;disposition&quot;: &quot;A String&quot;, # The state that a message should be left in after it has been forwarded.
304 &quot;emailAddress&quot;: &quot;A String&quot;, # Email address to which all incoming messages are forwarded. This email
305 # address must be a verified member of the forwarding addresses.
306 }
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700307
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700308 x__xgafv: string, V1 error format.
309 Allowed values
310 1 - v1 error format
311 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700312
313Returns:
314 An object of the form:
315
316 { # Auto-forwarding settings for an account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700317 &quot;enabled&quot;: True or False, # Whether all incoming mail is automatically forwarded to another address.
318 &quot;disposition&quot;: &quot;A String&quot;, # The state that a message should be left in after it has been forwarded.
319 &quot;emailAddress&quot;: &quot;A String&quot;, # Email address to which all incoming messages are forwarded. This email
320 # address must be a verified member of the forwarding addresses.
321 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700322</div>
323
324<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700325 <code class="details" id="updateImap">updateImap(userId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700326 <pre>Updates IMAP settings.
327
328Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700329 userId: string, User&#x27;s email address. The special value &quot;me&quot;
330can be used to indicate the authenticated user. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700331 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700332 The object takes the form of:
333
334{ # IMAP settings for an account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700335 &quot;maxFolderSize&quot;: 42, # An optional limit on the number of messages that an IMAP folder may
336 # contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero
337 # is interpreted to mean that there is no limit.
338 &quot;autoExpunge&quot;: True or False, # If this value is true, Gmail will immediately expunge a message when it is
339 # marked as deleted in IMAP. Otherwise, Gmail will wait for an update from
340 # the client before expunging messages marked as deleted.
341 &quot;expungeBehavior&quot;: &quot;A String&quot;, # The action that will be executed on a message when it is marked as deleted
342 # and expunged from the last visible IMAP folder.
343 &quot;enabled&quot;: True or False, # Whether IMAP is enabled for the account.
344 }
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700345
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700346 x__xgafv: string, V1 error format.
347 Allowed values
348 1 - v1 error format
349 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700350
351Returns:
352 An object of the form:
353
354 { # IMAP settings for an account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700355 &quot;maxFolderSize&quot;: 42, # An optional limit on the number of messages that an IMAP folder may
356 # contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero
357 # is interpreted to mean that there is no limit.
358 &quot;autoExpunge&quot;: True or False, # If this value is true, Gmail will immediately expunge a message when it is
359 # marked as deleted in IMAP. Otherwise, Gmail will wait for an update from
360 # the client before expunging messages marked as deleted.
361 &quot;expungeBehavior&quot;: &quot;A String&quot;, # The action that will be executed on a message when it is marked as deleted
362 # and expunged from the last visible IMAP folder.
363 &quot;enabled&quot;: True or False, # Whether IMAP is enabled for the account.
364 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700365</div>
366
367<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700368 <code class="details" id="updateLanguage">updateLanguage(userId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700369 <pre>Updates language settings.
370
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700371If successful, the return object contains the `displayLanguage`
372that was saved for the user, which may differ from the value passed into
373the request. This is because the requested `displayLanguage` may
374not be directly supported by Gmail but have a close variant that is, and so
375the variant may be chosen and saved instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700376
377Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700378 userId: string, User&#x27;s email address. The special value &quot;me&quot;
379can be used to indicate the authenticated user. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700380 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700381 The object takes the form of:
382
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700383{ # Language settings for an account. These settings correspond to
384 # the &lt;a href=&quot;https://support.google.com/mail/answer/17091&quot;&gt;&quot;Language
385 # settings&quot;&lt;/a&gt; feature in the web interface.
386 &quot;displayLanguage&quot;: &quot;A String&quot;, # The language to display Gmail in, formatted as an
387 # &lt;a href=&quot;https://www.w3.org/International/articles/language-tags/&quot;&gt;RFC 3066
388 # Language Tag&lt;/a&gt; (for example `en-GB`, `fr` or
389 # `ja` for British English, French, or Japanese respectively).
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700391 # The set of languages supported by Gmail evolves over time, so please refer
392 # to the &quot;Language&quot; dropdown in the
393 # &lt;a href=&quot;https://mail.google.com/mail/u/0/#settings/general&quot;&gt;Gmail settings
394 # &lt;/a&gt; for all available options, as described in the
395 # &lt;a href=&quot;https://support.google.com/mail/answer/17091&quot;&gt;language settings
396 # help article&lt;/a&gt;. A table of sample values is also provided in the
397 # &lt;a href=&quot;/gmail/api/guides/language_settings#display_language&quot;&gt;Managing
398 # Language Settings guide&lt;/a&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700400 # Not all Gmail clients can display the same set of languages. In the case
401 # that a user&#x27;s display language is not available for use on a particular
402 # client, said client automatically chooses to display in the closest
403 # supported variant (or a reasonable default).
Bu Sun Kim65020912020-05-20 12:08:20 -0700404}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700405
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700406 x__xgafv: string, V1 error format.
407 Allowed values
408 1 - v1 error format
409 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700410
411Returns:
412 An object of the form:
413
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700414 { # Language settings for an account. These settings correspond to
415 # the &lt;a href=&quot;https://support.google.com/mail/answer/17091&quot;&gt;&quot;Language
416 # settings&quot;&lt;/a&gt; feature in the web interface.
417 &quot;displayLanguage&quot;: &quot;A String&quot;, # The language to display Gmail in, formatted as an
418 # &lt;a href=&quot;https://www.w3.org/International/articles/language-tags/&quot;&gt;RFC 3066
419 # Language Tag&lt;/a&gt; (for example `en-GB`, `fr` or
420 # `ja` for British English, French, or Japanese respectively).
Bu Sun Kim65020912020-05-20 12:08:20 -0700421 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700422 # The set of languages supported by Gmail evolves over time, so please refer
423 # to the &quot;Language&quot; dropdown in the
424 # &lt;a href=&quot;https://mail.google.com/mail/u/0/#settings/general&quot;&gt;Gmail settings
425 # &lt;/a&gt; for all available options, as described in the
426 # &lt;a href=&quot;https://support.google.com/mail/answer/17091&quot;&gt;language settings
427 # help article&lt;/a&gt;. A table of sample values is also provided in the
428 # &lt;a href=&quot;/gmail/api/guides/language_settings#display_language&quot;&gt;Managing
429 # Language Settings guide&lt;/a&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700430 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700431 # Not all Gmail clients can display the same set of languages. In the case
432 # that a user&#x27;s display language is not available for use on a particular
433 # client, said client automatically chooses to display in the closest
434 # supported variant (or a reasonable default).
Bu Sun Kim65020912020-05-20 12:08:20 -0700435 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700436</div>
437
438<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700439 <code class="details" id="updatePop">updatePop(userId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700440 <pre>Updates POP settings.
441
442Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700443 userId: string, User&#x27;s email address. The special value &quot;me&quot;
444can be used to indicate the authenticated user. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700445 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700446 The object takes the form of:
447
448{ # POP settings for an account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700449 &quot;disposition&quot;: &quot;A String&quot;, # The action that will be executed on a message after it has been fetched via
450 # POP.
Bu Sun Kim65020912020-05-20 12:08:20 -0700451 &quot;accessWindow&quot;: &quot;A String&quot;, # The range of messages which are accessible via POP.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700452}
453
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700454 x__xgafv: string, V1 error format.
455 Allowed values
456 1 - v1 error format
457 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700458
459Returns:
460 An object of the form:
461
462 { # POP settings for an account.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700463 &quot;disposition&quot;: &quot;A String&quot;, # The action that will be executed on a message after it has been fetched via
464 # POP.
Bu Sun Kim65020912020-05-20 12:08:20 -0700465 &quot;accessWindow&quot;: &quot;A String&quot;, # The range of messages which are accessible via POP.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700466 }</pre>
467</div>
468
469<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700470 <code class="details" id="updateVacation">updateVacation(userId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700471 <pre>Updates vacation responder settings.
472
473Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700474 userId: string, User&#x27;s email address. The special value &quot;me&quot;
475can be used to indicate the authenticated user. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700476 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700477 The object takes the form of:
478
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700479{ # Vacation auto-reply settings for an account. These settings correspond to
480 # the &lt;a href=&quot;https://support.google.com/mail/answer/25922&quot;&gt;&quot;Vacation
481 # responder&quot;&lt;/a&gt; feature in the web interface.
482 &quot;startTime&quot;: &quot;A String&quot;, # An optional start time for sending auto-replies (epoch ms).
483 # When this is specified, Gmail will automatically reply only to messages
484 # that it receives after the start time. If both `startTime` and
485 # `endTime` are specified, `startTime` must precede
486 # `endTime`.
487 &quot;endTime&quot;: &quot;A String&quot;, # An optional end time for sending auto-replies (epoch ms).
488 # When this is specified, Gmail will automatically reply only to messages
489 # that it receives before the end time. If both `startTime` and
490 # `endTime` are specified, `startTime` must precede
491 # `endTime`.
492 &quot;responseBodyHtml&quot;: &quot;A String&quot;, # Response body in HTML format. Gmail will sanitize the HTML before
493 # storing it. If both `response_body_plain_text` and
494 # `response_body_html` are specified,
495 # `response_body_html` will be used.
496 &quot;responseSubject&quot;: &quot;A String&quot;, # Optional text to prepend to the subject line in vacation responses. In
497 # order to enable auto-replies, either the response subject or the response
498 # body must be nonempty.
499 &quot;responseBodyPlainText&quot;: &quot;A String&quot;, # Response body in plain text format. If both
500 # `response_body_plain_text` and `response_body_html`
501 # are specified, `response_body_html` will be used.
502 &quot;restrictToContacts&quot;: True or False, # Flag that determines whether responses are sent to recipients who are not
503 # in the user&#x27;s list of contacts.
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &quot;enableAutoReply&quot;: True or False, # Flag that controls whether Gmail automatically replies to messages.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700505 &quot;restrictToDomain&quot;: True or False, # Flag that determines whether responses are sent to recipients who are
506 # outside of the user&#x27;s domain. This feature is only available for G Suite
507 # users.
Bu Sun Kim65020912020-05-20 12:08:20 -0700508}
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700509
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700510 x__xgafv: string, V1 error format.
511 Allowed values
512 1 - v1 error format
513 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700514
515Returns:
516 An object of the form:
517
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700518 { # Vacation auto-reply settings for an account. These settings correspond to
519 # the &lt;a href=&quot;https://support.google.com/mail/answer/25922&quot;&gt;&quot;Vacation
520 # responder&quot;&lt;/a&gt; feature in the web interface.
521 &quot;startTime&quot;: &quot;A String&quot;, # An optional start time for sending auto-replies (epoch ms).
522 # When this is specified, Gmail will automatically reply only to messages
523 # that it receives after the start time. If both `startTime` and
524 # `endTime` are specified, `startTime` must precede
525 # `endTime`.
526 &quot;endTime&quot;: &quot;A String&quot;, # An optional end time for sending auto-replies (epoch ms).
527 # When this is specified, Gmail will automatically reply only to messages
528 # that it receives before the end time. If both `startTime` and
529 # `endTime` are specified, `startTime` must precede
530 # `endTime`.
531 &quot;responseBodyHtml&quot;: &quot;A String&quot;, # Response body in HTML format. Gmail will sanitize the HTML before
532 # storing it. If both `response_body_plain_text` and
533 # `response_body_html` are specified,
534 # `response_body_html` will be used.
535 &quot;responseSubject&quot;: &quot;A String&quot;, # Optional text to prepend to the subject line in vacation responses. In
536 # order to enable auto-replies, either the response subject or the response
537 # body must be nonempty.
538 &quot;responseBodyPlainText&quot;: &quot;A String&quot;, # Response body in plain text format. If both
539 # `response_body_plain_text` and `response_body_html`
540 # are specified, `response_body_html` will be used.
541 &quot;restrictToContacts&quot;: True or False, # Flag that determines whether responses are sent to recipients who are not
542 # in the user&#x27;s list of contacts.
Bu Sun Kim65020912020-05-20 12:08:20 -0700543 &quot;enableAutoReply&quot;: True or False, # Flag that controls whether Gmail automatically replies to messages.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700544 &quot;restrictToDomain&quot;: True or False, # Flag that determines whether responses are sent to recipients who are
545 # outside of the user&#x27;s domain. This feature is only available for G Suite
546 # users.
Bu Sun Kim65020912020-05-20 12:08:20 -0700547 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700548</div>
549
550</body></html>