OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.gmail.v1; | 3 library googleapis.gmail.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 /** Manage drafts and send emails */ | 24 /** Manage drafts and send emails */ |
25 static const GmailComposeScope = "https://www.googleapis.com/auth/gmail.compos
e"; | 25 static const GmailComposeScope = "https://www.googleapis.com/auth/gmail.compos
e"; |
26 | 26 |
27 /** Insert mail into your mailbox */ | 27 /** Insert mail into your mailbox */ |
28 static const GmailInsertScope = "https://www.googleapis.com/auth/gmail.insert"
; | 28 static const GmailInsertScope = "https://www.googleapis.com/auth/gmail.insert"
; |
29 | 29 |
30 /** Manage mailbox labels */ | 30 /** Manage mailbox labels */ |
31 static const GmailLabelsScope = "https://www.googleapis.com/auth/gmail.labels"
; | 31 static const GmailLabelsScope = "https://www.googleapis.com/auth/gmail.labels"
; |
32 | 32 |
| 33 /** |
| 34 * View your email message metadata such as labels and headers, but not the |
| 35 * email body |
| 36 */ |
| 37 static const GmailMetadataScope = "https://www.googleapis.com/auth/gmail.metad
ata"; |
| 38 |
33 /** View and modify but not delete your email */ | 39 /** View and modify but not delete your email */ |
34 static const GmailModifyScope = "https://www.googleapis.com/auth/gmail.modify"
; | 40 static const GmailModifyScope = "https://www.googleapis.com/auth/gmail.modify"
; |
35 | 41 |
36 /** View your emails messages and settings */ | 42 /** View your emails messages and settings */ |
37 static const GmailReadonlyScope = "https://www.googleapis.com/auth/gmail.reado
nly"; | 43 static const GmailReadonlyScope = "https://www.googleapis.com/auth/gmail.reado
nly"; |
38 | 44 |
39 /** Send email on your behalf */ | 45 /** Send email on your behalf */ |
40 static const GmailSendScope = "https://www.googleapis.com/auth/gmail.send"; | 46 static const GmailSendScope = "https://www.googleapis.com/auth/gmail.send"; |
41 | 47 |
42 /** Manage your basic mail settings */ | 48 /** Manage your basic mail settings */ |
(...skipping 4031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4074 | 4080 |
4075 /** The body of a single MIME message part. */ | 4081 /** The body of a single MIME message part. */ |
4076 class MessagePartBody { | 4082 class MessagePartBody { |
4077 /** | 4083 /** |
4078 * When present, contains the ID of an external attachment that can be | 4084 * When present, contains the ID of an external attachment that can be |
4079 * retrieved in a separate messages.attachments.get request. When not present, | 4085 * retrieved in a separate messages.attachments.get request. When not present, |
4080 * the entire content of the message part body is contained in the data field. | 4086 * the entire content of the message part body is contained in the data field. |
4081 */ | 4087 */ |
4082 core.String attachmentId; | 4088 core.String attachmentId; |
4083 /** | 4089 /** |
4084 * The body data of a MIME message part. May be empty for MIME container types | 4090 * The body data of a MIME message part as a base64url encoded string. May be |
4085 * that have no message body or when the body data is sent as a separate | 4091 * empty for MIME container types that have no message body or when the body |
4086 * attachment. An attachment ID is present if the body data is contained in a | 4092 * data is sent as a separate attachment. An attachment ID is present if the |
4087 * separate attachment. | 4093 * body data is contained in a separate attachment. |
4088 */ | 4094 */ |
4089 core.String data; | 4095 core.String data; |
4090 core.List<core.int> get dataAsBytes { | 4096 core.List<core.int> get dataAsBytes { |
4091 return convert.BASE64.decode(data); | 4097 return convert.BASE64.decode(data); |
4092 } | 4098 } |
4093 | 4099 |
4094 void set dataAsBytes(core.List<core.int> _bytes) { | 4100 void set dataAsBytes(core.List<core.int> _bytes) { |
4095 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); | 4101 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); |
4096 } | 4102 } |
4097 /** Total number of bytes in the body of the message part. */ | 4103 /** Total number of bytes in the body of the message part. */ |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4304 if (threadsTotal != null) { | 4310 if (threadsTotal != null) { |
4305 _json["threadsTotal"] = threadsTotal; | 4311 _json["threadsTotal"] = threadsTotal; |
4306 } | 4312 } |
4307 return _json; | 4313 return _json; |
4308 } | 4314 } |
4309 } | 4315 } |
4310 | 4316 |
4311 /** | 4317 /** |
4312 * Settings associated with a send-as alias, which can be either the primary | 4318 * Settings associated with a send-as alias, which can be either the primary |
4313 * login address associated with the account or a custom "from" address. Send-as | 4319 * login address associated with the account or a custom "from" address. Send-as |
4314 * aliases correspond to the "Send Mail As" feature in the web interface. See | 4320 * aliases correspond to the "Send Mail As" feature in the web interface. |
4315 * for more details. | |
4316 */ | 4321 */ |
4317 class SendAs { | 4322 class SendAs { |
4318 /** | 4323 /** |
4319 * A name that appears in the "From:" header for mail sent using this alias. | 4324 * A name that appears in the "From:" header for mail sent using this alias. |
4320 * For custom "from" addresses, when this is empty, Gmail will populate the | 4325 * For custom "from" addresses, when this is empty, Gmail will populate the |
4321 * "From:" header with the name that is used for the primary address | 4326 * "From:" header with the name that is used for the primary address |
4322 * associated with the account. | 4327 * associated with the account. |
4323 */ | 4328 */ |
4324 core.String displayName; | 4329 core.String displayName; |
4325 /** | 4330 /** |
(...skipping 28 matching lines...) Expand all Loading... |
4354 */ | 4359 */ |
4355 core.String signature; | 4360 core.String signature; |
4356 /** | 4361 /** |
4357 * An optional SMTP service that will be used as an outbound relay for mail | 4362 * An optional SMTP service that will be used as an outbound relay for mail |
4358 * sent using this alias. If this is empty, outbound mail will be sent | 4363 * sent using this alias. If this is empty, outbound mail will be sent |
4359 * directly from Gmail's servers to the destination SMTP service. This setting | 4364 * directly from Gmail's servers to the destination SMTP service. This setting |
4360 * only applies to custom "from" aliases. | 4365 * only applies to custom "from" aliases. |
4361 */ | 4366 */ |
4362 SmtpMsa smtpMsa; | 4367 SmtpMsa smtpMsa; |
4363 /** | 4368 /** |
4364 * Whether Gmail should treat this address as an alias for the user's primary | 4369 * Whether Gmail should treat this address as an alias for the user's primary |
4365 * email address. See for more details. This setting only applies to custom | 4370 * email address. This setting only applies to custom "from" aliases. |
4366 * "from" aliases. | |
4367 */ | 4371 */ |
4368 core.bool treatAsAlias; | 4372 core.bool treatAsAlias; |
4369 /** | 4373 /** |
4370 * Indicates whether this address has been verified for use as a send-as | 4374 * Indicates whether this address has been verified for use as a send-as |
4371 * alias. Read-only. This setting only applies to custom "from" aliases. | 4375 * alias. Read-only. This setting only applies to custom "from" aliases. |
4372 * Possible string values are: | 4376 * Possible string values are: |
4373 * - "accepted" | 4377 * - "accepted" |
4374 * - "pending" | 4378 * - "pending" |
4375 * - "verificationStatusUnspecified" | 4379 * - "verificationStatusUnspecified" |
4376 */ | 4380 */ |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4552 } | 4556 } |
4553 if (snippet != null) { | 4557 if (snippet != null) { |
4554 _json["snippet"] = snippet; | 4558 _json["snippet"] = snippet; |
4555 } | 4559 } |
4556 return _json; | 4560 return _json; |
4557 } | 4561 } |
4558 } | 4562 } |
4559 | 4563 |
4560 /** | 4564 /** |
4561 * Vacation auto-reply settings for an account. These settings correspond to the | 4565 * Vacation auto-reply settings for an account. These settings correspond to the |
4562 * "Vacation responder" feature in the web interface. See for more details. | 4566 * "Vacation responder" feature in the web interface. |
4563 */ | 4567 */ |
4564 class VacationSettings { | 4568 class VacationSettings { |
4565 /** Flag that controls whether Gmail automatically replies to messages. */ | 4569 /** Flag that controls whether Gmail automatically replies to messages. */ |
4566 core.bool enableAutoReply; | 4570 core.bool enableAutoReply; |
4567 /** | 4571 /** |
4568 * An optional end time for sending auto-replies (epoch ms). When this is | 4572 * An optional end time for sending auto-replies (epoch ms). When this is |
4569 * specified, Gmail will automatically reply only to messages that it receives | 4573 * specified, Gmail will automatically reply only to messages that it receives |
4570 * before the end time. If both startTime and endTime are specified, startTime | 4574 * before the end time. If both startTime and endTime are specified, startTime |
4571 * must precede endTime. | 4575 * must precede endTime. |
4572 */ | 4576 */ |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4743 var _json = new core.Map(); | 4747 var _json = new core.Map(); |
4744 if (expiration != null) { | 4748 if (expiration != null) { |
4745 _json["expiration"] = expiration; | 4749 _json["expiration"] = expiration; |
4746 } | 4750 } |
4747 if (historyId != null) { | 4751 if (historyId != null) { |
4748 _json["historyId"] = historyId; | 4752 _json["historyId"] = historyId; |
4749 } | 4753 } |
4750 return _json; | 4754 return _json; |
4751 } | 4755 } |
4752 } | 4756 } |
OLD | NEW |