OLD | NEW |
(Empty) | |
| 1 { |
| 2 "auth": { |
| 3 "oauth2": { |
| 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/email.migration": { |
| 6 "description": "Manage email messages of users on your domai
n" |
| 7 } |
| 8 } |
| 9 } |
| 10 }, |
| 11 "basePath": "/email/v2/users/", |
| 12 "baseUrl": "https://www.googleapis.com/email/v2/users/", |
| 13 "batchPath": "batch", |
| 14 "description": "Email Migration API lets you migrate emails of users to Goog
le backends.", |
| 15 "discoveryVersion": "v1", |
| 16 "documentationLink": "https://developers.google.com/admin-sdk/email-migratio
n/v2/", |
| 17 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/sAW4O9TJFjBOU_nyFti74xIcDhI\"", |
| 18 "icons": { |
| 19 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 20 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 21 }, |
| 22 "id": "admin:email_migration_v2", |
| 23 "kind": "discovery#restDescription", |
| 24 "name": "admin", |
| 25 "ownerDomain": "google.com", |
| 26 "ownerName": "Google", |
| 27 "parameters": { |
| 28 "alt": { |
| 29 "default": "json", |
| 30 "description": "Data format for the response.", |
| 31 "enum": [ |
| 32 "json" |
| 33 ], |
| 34 "enumDescriptions": [ |
| 35 "Responses with Content-Type of application/json" |
| 36 ], |
| 37 "location": "query", |
| 38 "type": "string" |
| 39 }, |
| 40 "fields": { |
| 41 "description": "Selector specifying which fields to include in a par
tial response.", |
| 42 "location": "query", |
| 43 "type": "string" |
| 44 }, |
| 45 "key": { |
| 46 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 47 "location": "query", |
| 48 "type": "string" |
| 49 }, |
| 50 "oauth_token": { |
| 51 "description": "OAuth 2.0 token for the current user.", |
| 52 "location": "query", |
| 53 "type": "string" |
| 54 }, |
| 55 "prettyPrint": { |
| 56 "default": "true", |
| 57 "description": "Returns response with indentations and line breaks."
, |
| 58 "location": "query", |
| 59 "type": "boolean" |
| 60 }, |
| 61 "quotaUser": { |
| 62 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters. Overrides userIp if both are provided.", |
| 63 "location": "query", |
| 64 "type": "string" |
| 65 }, |
| 66 "userIp": { |
| 67 "description": "IP address of the site where the request originates.
Use this if you want to enforce per-user limits.", |
| 68 "location": "query", |
| 69 "type": "string" |
| 70 } |
| 71 }, |
| 72 "protocol": "rest", |
| 73 "resources": { |
| 74 "mail": { |
| 75 "methods": { |
| 76 "insert": { |
| 77 "description": "Insert Mail into Google's Gmail backends", |
| 78 "httpMethod": "POST", |
| 79 "id": "emailMigration.mail.insert", |
| 80 "mediaUpload": { |
| 81 "accept": [ |
| 82 "message/rfc822" |
| 83 ], |
| 84 "maxSize": "35MB", |
| 85 "protocols": { |
| 86 "resumable": { |
| 87 "multipart": true, |
| 88 "path": "/resumable/upload/email/v2/users/{userK
ey}/mail" |
| 89 }, |
| 90 "simple": { |
| 91 "multipart": true, |
| 92 "path": "/upload/email/v2/users/{userKey}/mail" |
| 93 } |
| 94 } |
| 95 }, |
| 96 "parameterOrder": [ |
| 97 "userKey" |
| 98 ], |
| 99 "parameters": { |
| 100 "userKey": { |
| 101 "description": "The email or immutable id of the use
r", |
| 102 "location": "path", |
| 103 "required": true, |
| 104 "type": "string" |
| 105 } |
| 106 }, |
| 107 "path": "{userKey}/mail", |
| 108 "request": { |
| 109 "$ref": "MailItem" |
| 110 }, |
| 111 "scopes": [ |
| 112 "https://www.googleapis.com/auth/email.migration" |
| 113 ], |
| 114 "supportsMediaUpload": true |
| 115 } |
| 116 } |
| 117 } |
| 118 }, |
| 119 "revision": "20140130", |
| 120 "rootUrl": "https://www.googleapis.com/", |
| 121 "schemas": { |
| 122 "MailItem": { |
| 123 "description": "JSON template for MailItem object in Email Migration
API.", |
| 124 "id": "MailItem", |
| 125 "properties": { |
| 126 "isDeleted": { |
| 127 "description": "Boolean indicating if the mail is deleted (u
sed in Vault)", |
| 128 "type": "boolean" |
| 129 }, |
| 130 "isDraft": { |
| 131 "description": "Boolean indicating if the mail is draft", |
| 132 "type": "boolean" |
| 133 }, |
| 134 "isInbox": { |
| 135 "description": "Boolean indicating if the mail is in inbox", |
| 136 "type": "boolean" |
| 137 }, |
| 138 "isSent": { |
| 139 "description": "Boolean indicating if the mail is in 'sent m
ails'", |
| 140 "type": "boolean" |
| 141 }, |
| 142 "isStarred": { |
| 143 "description": "Boolean indicating if the mail is starred", |
| 144 "type": "boolean" |
| 145 }, |
| 146 "isTrash": { |
| 147 "description": "Boolean indicating if the mail is in trash", |
| 148 "type": "boolean" |
| 149 }, |
| 150 "isUnread": { |
| 151 "description": "Boolean indicating if the mail is unread", |
| 152 "type": "boolean" |
| 153 }, |
| 154 "kind": { |
| 155 "default": "mailItem", |
| 156 "description": "Kind of resource this is.", |
| 157 "type": "string" |
| 158 }, |
| 159 "labels": { |
| 160 "description": "List of labels (strings)", |
| 161 "items": { |
| 162 "type": "string" |
| 163 }, |
| 164 "type": "array" |
| 165 } |
| 166 }, |
| 167 "type": "object" |
| 168 } |
| 169 }, |
| 170 "servicePath": "email/v2/users/", |
| 171 "title": "Email Migration API v2", |
| 172 "version": "email_migration_v2" |
| 173 } |
OLD | NEW |