Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Side by Side Diff: generated/googleapis/lib/gmail/v1.dart

Issue 2734843002: Api-roll 46: 2017-03-06 (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, 13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions,
14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, 14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions,
15 ByteRange; 15 ByteRange;
16 16
17 const core.String USER_AGENT = 'dart-api-client gmail/v1'; 17 const core.String USER_AGENT = 'dart-api-client gmail/v1';
18 18
19 /** Access Gmail mailboxes including sending user email. */ 19 /** Access Gmail mailboxes including sending user email. */
20 class GmailApi { 20 class GmailApi {
21 /** View and manage your mail */ 21 /** Read, send, delete, and manage your email */
22 static const MailGoogleComScope = "https://mail.google.com/"; 22 static const MailGoogleComScope = "https://mail.google.com/";
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" ;
(...skipping 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1806 uploadOptions: _uploadOptions, 1806 uploadOptions: _uploadOptions,
1807 uploadMedia: _uploadMedia, 1807 uploadMedia: _uploadMedia,
1808 downloadOptions: _downloadOptions); 1808 downloadOptions: _downloadOptions);
1809 return _response.then((data) => new VacationSettings.fromJson(data)); 1809 return _response.then((data) => new VacationSettings.fromJson(data));
1810 } 1810 }
1811 1811
1812 /** 1812 /**
1813 * Updates the auto-forwarding setting for the specified account. A verified 1813 * Updates the auto-forwarding setting for the specified account. A verified
1814 * forwarding address must be specified when auto-forwarding is enabled. 1814 * forwarding address must be specified when auto-forwarding is enabled.
1815 * 1815 *
1816 * This method is only available to service account clients that have been
1817 * delegated domain-wide authority.
1818 *
1816 * [request] - The metadata request object. 1819 * [request] - The metadata request object.
1817 * 1820 *
1818 * Request parameters: 1821 * Request parameters:
1819 * 1822 *
1820 * [userId] - User's email address. The special value "me" can be used to 1823 * [userId] - User's email address. The special value "me" can be used to
1821 * indicate the authenticated user. 1824 * indicate the authenticated user.
1822 * 1825 *
1823 * Completes with a [AutoForwarding]. 1826 * Completes with a [AutoForwarding].
1824 * 1827 *
1825 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1828 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
2182 2185
2183 UsersSettingsForwardingAddressesResourceApi(commons.ApiRequester client) : 2186 UsersSettingsForwardingAddressesResourceApi(commons.ApiRequester client) :
2184 _requester = client; 2187 _requester = client;
2185 2188
2186 /** 2189 /**
2187 * Creates a forwarding address. If ownership verification is required, a 2190 * Creates a forwarding address. If ownership verification is required, a
2188 * message will be sent to the recipient and the resource's verification 2191 * message will be sent to the recipient and the resource's verification
2189 * status will be set to pending; otherwise, the resource will be created with 2192 * status will be set to pending; otherwise, the resource will be created with
2190 * verification status set to accepted. 2193 * verification status set to accepted.
2191 * 2194 *
2195 * This method is only available to service account clients that have been
2196 * delegated domain-wide authority.
2197 *
2192 * [request] - The metadata request object. 2198 * [request] - The metadata request object.
2193 * 2199 *
2194 * Request parameters: 2200 * Request parameters:
2195 * 2201 *
2196 * [userId] - User's email address. The special value "me" can be used to 2202 * [userId] - User's email address. The special value "me" can be used to
2197 * indicate the authenticated user. 2203 * indicate the authenticated user.
2198 * 2204 *
2199 * Completes with a [ForwardingAddress]. 2205 * Completes with a [ForwardingAddress].
2200 * 2206 *
2201 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2207 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
(...skipping 26 matching lines...) Expand all
2228 uploadOptions: _uploadOptions, 2234 uploadOptions: _uploadOptions,
2229 uploadMedia: _uploadMedia, 2235 uploadMedia: _uploadMedia,
2230 downloadOptions: _downloadOptions); 2236 downloadOptions: _downloadOptions);
2231 return _response.then((data) => new ForwardingAddress.fromJson(data)); 2237 return _response.then((data) => new ForwardingAddress.fromJson(data));
2232 } 2238 }
2233 2239
2234 /** 2240 /**
2235 * Deletes the specified forwarding address and revokes any verification that 2241 * Deletes the specified forwarding address and revokes any verification that
2236 * may have been required. 2242 * may have been required.
2237 * 2243 *
2244 * This method is only available to service account clients that have been
2245 * delegated domain-wide authority.
2246 *
2238 * Request parameters: 2247 * Request parameters:
2239 * 2248 *
2240 * [userId] - User's email address. The special value "me" can be used to 2249 * [userId] - User's email address. The special value "me" can be used to
2241 * indicate the authenticated user. 2250 * indicate the authenticated user.
2242 * 2251 *
2243 * [forwardingEmail] - The forwarding address to be deleted. 2252 * [forwardingEmail] - The forwarding address to be deleted.
2244 * 2253 *
2245 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2254 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2246 * error. 2255 * error.
2247 * 2256 *
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 2384
2376 /** 2385 /**
2377 * Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail 2386 * Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail
2378 * will attempt to connect to the SMTP service to validate the configuration 2387 * will attempt to connect to the SMTP service to validate the configuration
2379 * before creating the alias. If ownership verification is required for the 2388 * before creating the alias. If ownership verification is required for the
2380 * alias, a message will be sent to the email address and the resource's 2389 * alias, a message will be sent to the email address and the resource's
2381 * verification status will be set to pending; otherwise, the resource will be 2390 * verification status will be set to pending; otherwise, the resource will be
2382 * created with verification status set to accepted. If a signature is 2391 * created with verification status set to accepted. If a signature is
2383 * provided, Gmail will sanitize the HTML before saving it with the alias. 2392 * provided, Gmail will sanitize the HTML before saving it with the alias.
2384 * 2393 *
2394 * This method is only available to service account clients that have been
2395 * delegated domain-wide authority.
2396 *
2385 * [request] - The metadata request object. 2397 * [request] - The metadata request object.
2386 * 2398 *
2387 * Request parameters: 2399 * Request parameters:
2388 * 2400 *
2389 * [userId] - User's email address. The special value "me" can be used to 2401 * [userId] - User's email address. The special value "me" can be used to
2390 * indicate the authenticated user. 2402 * indicate the authenticated user.
2391 * 2403 *
2392 * Completes with a [SendAs]. 2404 * Completes with a [SendAs].
2393 * 2405 *
2394 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2406 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
(...skipping 26 matching lines...) Expand all
2421 uploadOptions: _uploadOptions, 2433 uploadOptions: _uploadOptions,
2422 uploadMedia: _uploadMedia, 2434 uploadMedia: _uploadMedia,
2423 downloadOptions: _downloadOptions); 2435 downloadOptions: _downloadOptions);
2424 return _response.then((data) => new SendAs.fromJson(data)); 2436 return _response.then((data) => new SendAs.fromJson(data));
2425 } 2437 }
2426 2438
2427 /** 2439 /**
2428 * Deletes the specified send-as alias. Revokes any verification that may have 2440 * Deletes the specified send-as alias. Revokes any verification that may have
2429 * been required for using it. 2441 * been required for using it.
2430 * 2442 *
2443 * This method is only available to service account clients that have been
2444 * delegated domain-wide authority.
2445 *
2431 * Request parameters: 2446 * Request parameters:
2432 * 2447 *
2433 * [userId] - User's email address. The special value "me" can be used to 2448 * [userId] - User's email address. The special value "me" can be used to
2434 * indicate the authenticated user. 2449 * indicate the authenticated user.
2435 * 2450 *
2436 * [sendAsEmail] - The send-as alias to be deleted. 2451 * [sendAsEmail] - The send-as alias to be deleted.
2437 * 2452 *
2438 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2453 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2439 * error. 2454 * error.
2440 * 2455 *
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2553 body: _body, 2568 body: _body,
2554 queryParams: _queryParams, 2569 queryParams: _queryParams,
2555 uploadOptions: _uploadOptions, 2570 uploadOptions: _uploadOptions,
2556 uploadMedia: _uploadMedia, 2571 uploadMedia: _uploadMedia,
2557 downloadOptions: _downloadOptions); 2572 downloadOptions: _downloadOptions);
2558 return _response.then((data) => new ListSendAsResponse.fromJson(data)); 2573 return _response.then((data) => new ListSendAsResponse.fromJson(data));
2559 } 2574 }
2560 2575
2561 /** 2576 /**
2562 * Updates a send-as alias. If a signature is provided, Gmail will sanitize 2577 * Updates a send-as alias. If a signature is provided, Gmail will sanitize
2563 * the HTML before saving it with the alias. This method supports patch 2578 * the HTML before saving it with the alias.
2564 * semantics. 2579 *
2580 * Addresses other than the primary address for the account can only be
2581 * updated by service account clients that have been delegated domain-wide
2582 * authority. This method supports patch semantics.
2565 * 2583 *
2566 * [request] - The metadata request object. 2584 * [request] - The metadata request object.
2567 * 2585 *
2568 * Request parameters: 2586 * Request parameters:
2569 * 2587 *
2570 * [userId] - User's email address. The special value "me" can be used to 2588 * [userId] - User's email address. The special value "me" can be used to
2571 * indicate the authenticated user. 2589 * indicate the authenticated user.
2572 * 2590 *
2573 * [sendAsEmail] - The send-as alias to be updated. 2591 * [sendAsEmail] - The send-as alias to be updated.
2574 * 2592 *
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2607 uploadOptions: _uploadOptions, 2625 uploadOptions: _uploadOptions,
2608 uploadMedia: _uploadMedia, 2626 uploadMedia: _uploadMedia,
2609 downloadOptions: _downloadOptions); 2627 downloadOptions: _downloadOptions);
2610 return _response.then((data) => new SendAs.fromJson(data)); 2628 return _response.then((data) => new SendAs.fromJson(data));
2611 } 2629 }
2612 2630
2613 /** 2631 /**
2614 * Updates a send-as alias. If a signature is provided, Gmail will sanitize 2632 * Updates a send-as alias. If a signature is provided, Gmail will sanitize
2615 * the HTML before saving it with the alias. 2633 * the HTML before saving it with the alias.
2616 * 2634 *
2635 * Addresses other than the primary address for the account can only be
2636 * updated by service account clients that have been delegated domain-wide
2637 * authority.
2638 *
2617 * [request] - The metadata request object. 2639 * [request] - The metadata request object.
2618 * 2640 *
2619 * Request parameters: 2641 * Request parameters:
2620 * 2642 *
2621 * [userId] - User's email address. The special value "me" can be used to 2643 * [userId] - User's email address. The special value "me" can be used to
2622 * indicate the authenticated user. 2644 * indicate the authenticated user.
2623 * 2645 *
2624 * [sendAsEmail] - The send-as alias to be updated. 2646 * [sendAsEmail] - The send-as alias to be updated.
2625 * 2647 *
2626 * Completes with a [SendAs]. 2648 * Completes with a [SendAs].
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 uploadOptions: _uploadOptions, 2680 uploadOptions: _uploadOptions,
2659 uploadMedia: _uploadMedia, 2681 uploadMedia: _uploadMedia,
2660 downloadOptions: _downloadOptions); 2682 downloadOptions: _downloadOptions);
2661 return _response.then((data) => new SendAs.fromJson(data)); 2683 return _response.then((data) => new SendAs.fromJson(data));
2662 } 2684 }
2663 2685
2664 /** 2686 /**
2665 * Sends a verification email to the specified send-as alias address. The 2687 * Sends a verification email to the specified send-as alias address. The
2666 * verification status must be pending. 2688 * verification status must be pending.
2667 * 2689 *
2690 * This method is only available to service account clients that have been
2691 * delegated domain-wide authority.
2692 *
2668 * Request parameters: 2693 * Request parameters:
2669 * 2694 *
2670 * [userId] - User's email address. The special value "me" can be used to 2695 * [userId] - User's email address. The special value "me" can be used to
2671 * indicate the authenticated user. 2696 * indicate the authenticated user.
2672 * 2697 *
2673 * [sendAsEmail] - The send-as alias to be verified. 2698 * [sendAsEmail] - The send-as alias to be verified.
2674 * 2699 *
2675 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2700 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2676 * error. 2701 * error.
2677 * 2702 *
(...skipping 2533 matching lines...) Expand 10 before | Expand all | Expand 10 after
5211 var _json = new core.Map(); 5236 var _json = new core.Map();
5212 if (expiration != null) { 5237 if (expiration != null) {
5213 _json["expiration"] = expiration; 5238 _json["expiration"] = expiration;
5214 } 5239 }
5215 if (historyId != null) { 5240 if (historyId != null) {
5216 _json["historyId"] = historyId; 5241 _json["historyId"] = historyId;
5217 } 5242 }
5218 return _json; 5243 return _json;
5219 } 5244 }
5220 } 5245 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/genomics/v1.dart ('k') | generated/googleapis/lib/groupssettings/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698