| { |
| "auth": { |
| "oauth2": { |
| "scopes": { |
| "https://www.googleapis.com/auth/email.migration": { |
| "description": "Manage email messages of users on your domain" |
| } |
| } |
| } |
| }, |
| "basePath": "/email/v2/users/", |
| "baseUrl": "https://www.googleapis.com/email/v2/users/", |
| "batchPath": "batch", |
| "description": "Email Migration API lets you migrate emails of users to Google backends.", |
| "discoveryVersion": "v1", |
| "documentationLink": "https://developers.google.com/admin-sdk/email-migration/v2/", |
| "etag": "\"l66ggWbucbkBw9Lpos72oziyefE/Dam2iHq0kOgu8qnsdYB9fhgy5SY\"", |
| "icons": { |
| "x16": "https://www.google.com/images/icons/product/googlemail-16.png", |
| "x32": "https://www.google.com/images/icons/product/googlemail-32.png" |
| }, |
| "id": "admin:email_migration_v2", |
| "kind": "discovery#restDescription", |
| "name": "admin", |
| "ownerDomain": "google.com", |
| "ownerName": "Google", |
| "parameters": { |
| "alt": { |
| "default": "json", |
| "description": "Data format for the response.", |
| "enum": [ |
| "json" |
| ], |
| "enumDescriptions": [ |
| "Responses with Content-Type of application/json" |
| ], |
| "location": "query", |
| "type": "string" |
| }, |
| "fields": { |
| "description": "Selector specifying which fields to include in a partial response.", |
| "location": "query", |
| "type": "string" |
| }, |
| "key": { |
| "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
| "location": "query", |
| "type": "string" |
| }, |
| "oauth_token": { |
| "description": "OAuth 2.0 token for the current user.", |
| "location": "query", |
| "type": "string" |
| }, |
| "prettyPrint": { |
| "default": "true", |
| "description": "Returns response with indentations and line breaks.", |
| "location": "query", |
| "type": "boolean" |
| }, |
| "quotaUser": { |
| "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.", |
| "location": "query", |
| "type": "string" |
| }, |
| "userIp": { |
| "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.", |
| "location": "query", |
| "type": "string" |
| } |
| }, |
| "protocol": "rest", |
| "resources": { |
| "mail": { |
| "methods": { |
| "insert": { |
| "description": "Insert Mail into Google's Gmail backends", |
| "httpMethod": "POST", |
| "id": "emailMigration.mail.insert", |
| "mediaUpload": { |
| "accept": [ |
| "message/rfc822" |
| ], |
| "maxSize": "35MB", |
| "protocols": { |
| "resumable": { |
| "multipart": true, |
| "path": "/resumable/upload/email/v2/users/{userKey}/mail" |
| }, |
| "simple": { |
| "multipart": true, |
| "path": "/upload/email/v2/users/{userKey}/mail" |
| } |
| } |
| }, |
| "parameterOrder": [ |
| "userKey" |
| ], |
| "parameters": { |
| "userKey": { |
| "description": "The email or immutable id of the user", |
| "location": "path", |
| "required": true, |
| "type": "string" |
| } |
| }, |
| "path": "{userKey}/mail", |
| "request": { |
| "$ref": "MailItem" |
| }, |
| "scopes": [ |
| "https://www.googleapis.com/auth/email.migration" |
| ], |
| "supportsMediaUpload": true |
| } |
| } |
| } |
| }, |
| "revision": "20140903", |
| "rootUrl": "https://www.googleapis.com/", |
| "schemas": { |
| "MailItem": { |
| "description": "JSON template for MailItem object in Email Migration API.", |
| "id": "MailItem", |
| "properties": { |
| "isDeleted": { |
| "description": "Boolean indicating if the mail is deleted (used in Vault)", |
| "type": "boolean" |
| }, |
| "isDraft": { |
| "description": "Boolean indicating if the mail is draft", |
| "type": "boolean" |
| }, |
| "isInbox": { |
| "description": "Boolean indicating if the mail is in inbox", |
| "type": "boolean" |
| }, |
| "isSent": { |
| "description": "Boolean indicating if the mail is in 'sent mails'", |
| "type": "boolean" |
| }, |
| "isStarred": { |
| "description": "Boolean indicating if the mail is starred", |
| "type": "boolean" |
| }, |
| "isTrash": { |
| "description": "Boolean indicating if the mail is in trash", |
| "type": "boolean" |
| }, |
| "isUnread": { |
| "description": "Boolean indicating if the mail is unread", |
| "type": "boolean" |
| }, |
| "kind": { |
| "default": "mailItem", |
| "description": "Kind of resource this is.", |
| "type": "string" |
| }, |
| "labels": { |
| "description": "List of labels (strings)", |
| "items": { |
| "type": "string" |
| }, |
| "type": "array" |
| } |
| }, |
| "type": "object" |
| } |
| }, |
| "servicePath": "email/v2/users/", |
| "title": "Email Migration API v2", |
| "version": "email_migration_v2" |
| } |