| 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.drive.v3; | 3 library googleapis.drive.v3; |
| 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:crypto/crypto.dart' as crypto; | 10 import 'package:crypto/crypto.dart' as crypto; |
| (...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 "DELETE", | 822 "DELETE", |
| 823 body: _body, | 823 body: _body, |
| 824 queryParams: _queryParams, | 824 queryParams: _queryParams, |
| 825 uploadOptions: _uploadOptions, | 825 uploadOptions: _uploadOptions, |
| 826 uploadMedia: _uploadMedia, | 826 uploadMedia: _uploadMedia, |
| 827 downloadOptions: _downloadOptions); | 827 downloadOptions: _downloadOptions); |
| 828 return _response.then((data) => null); | 828 return _response.then((data) => null); |
| 829 } | 829 } |
| 830 | 830 |
| 831 /** | 831 /** |
| 832 * Exports a Google Doc to the requested MIME type. | 832 * Exports a Google Doc to the requested MIME type and returns the exported |
| 833 * content. |
| 833 * | 834 * |
| 834 * Request parameters: | 835 * Request parameters: |
| 835 * | 836 * |
| 836 * [fileId] - The ID of the file. | 837 * [fileId] - The ID of the file. |
| 837 * | 838 * |
| 838 * [mimeType] - The MIME type of the format requested for this export. | 839 * [mimeType] - The MIME type of the format requested for this export. |
| 839 * | 840 * |
| 840 * [downloadOptions] - Options for downloading. A download can be either a | 841 * [downloadOptions] - Options for downloading. A download can be either a |
| 841 * Metadata (default) or Media download. Partial Media downloads are possible | 842 * Metadata (default) or Media download. Partial Media downloads are possible |
| 842 * as well. | 843 * as well. |
| (...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2535 | 2536 |
| 2536 /** Capabilities the current user has on the file. */ | 2537 /** Capabilities the current user has on the file. */ |
| 2537 class FileCapabilities { | 2538 class FileCapabilities { |
| 2538 /** Whether the user can comment on the file. */ | 2539 /** Whether the user can comment on the file. */ |
| 2539 core.bool canComment; | 2540 core.bool canComment; |
| 2540 /** Whether the user can copy the file. */ | 2541 /** Whether the user can copy the file. */ |
| 2541 core.bool canCopy; | 2542 core.bool canCopy; |
| 2542 /** Whether the user can edit the file's content. */ | 2543 /** Whether the user can edit the file's content. */ |
| 2543 core.bool canEdit; | 2544 core.bool canEdit; |
| 2544 /** | 2545 /** |
| 2546 * Whether the current user has read access to the Revisions resource of the |
| 2547 * file. |
| 2548 */ |
| 2549 core.bool canReadRevisions; |
| 2550 /** |
| 2545 * Whether the user can modify the file's permissions and sharing settings. | 2551 * Whether the user can modify the file's permissions and sharing settings. |
| 2546 */ | 2552 */ |
| 2547 core.bool canShare; | 2553 core.bool canShare; |
| 2548 | 2554 |
| 2549 FileCapabilities(); | 2555 FileCapabilities(); |
| 2550 | 2556 |
| 2551 FileCapabilities.fromJson(core.Map _json) { | 2557 FileCapabilities.fromJson(core.Map _json) { |
| 2552 if (_json.containsKey("canComment")) { | 2558 if (_json.containsKey("canComment")) { |
| 2553 canComment = _json["canComment"]; | 2559 canComment = _json["canComment"]; |
| 2554 } | 2560 } |
| 2555 if (_json.containsKey("canCopy")) { | 2561 if (_json.containsKey("canCopy")) { |
| 2556 canCopy = _json["canCopy"]; | 2562 canCopy = _json["canCopy"]; |
| 2557 } | 2563 } |
| 2558 if (_json.containsKey("canEdit")) { | 2564 if (_json.containsKey("canEdit")) { |
| 2559 canEdit = _json["canEdit"]; | 2565 canEdit = _json["canEdit"]; |
| 2560 } | 2566 } |
| 2567 if (_json.containsKey("canReadRevisions")) { |
| 2568 canReadRevisions = _json["canReadRevisions"]; |
| 2569 } |
| 2561 if (_json.containsKey("canShare")) { | 2570 if (_json.containsKey("canShare")) { |
| 2562 canShare = _json["canShare"]; | 2571 canShare = _json["canShare"]; |
| 2563 } | 2572 } |
| 2564 } | 2573 } |
| 2565 | 2574 |
| 2566 core.Map toJson() { | 2575 core.Map toJson() { |
| 2567 var _json = new core.Map(); | 2576 var _json = new core.Map(); |
| 2568 if (canComment != null) { | 2577 if (canComment != null) { |
| 2569 _json["canComment"] = canComment; | 2578 _json["canComment"] = canComment; |
| 2570 } | 2579 } |
| 2571 if (canCopy != null) { | 2580 if (canCopy != null) { |
| 2572 _json["canCopy"] = canCopy; | 2581 _json["canCopy"] = canCopy; |
| 2573 } | 2582 } |
| 2574 if (canEdit != null) { | 2583 if (canEdit != null) { |
| 2575 _json["canEdit"] = canEdit; | 2584 _json["canEdit"] = canEdit; |
| 2576 } | 2585 } |
| 2586 if (canReadRevisions != null) { |
| 2587 _json["canReadRevisions"] = canReadRevisions; |
| 2588 } |
| 2577 if (canShare != null) { | 2589 if (canShare != null) { |
| 2578 _json["canShare"] = canShare; | 2590 _json["canShare"] = canShare; |
| 2579 } | 2591 } |
| 2580 return _json; | 2592 return _json; |
| 2581 } | 2593 } |
| 2582 } | 2594 } |
| 2583 | 2595 |
| 2584 /** | 2596 /** |
| 2585 * A thumbnail for the file. This will only be used if Drive cannot generate a | 2597 * A thumbnail for the file. This will only be used if Drive cannot generate a |
| 2586 * standard thumbnail. | 2598 * standard thumbnail. |
| (...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3983 } | 3995 } |
| 3984 if (permissionId != null) { | 3996 if (permissionId != null) { |
| 3985 _json["permissionId"] = permissionId; | 3997 _json["permissionId"] = permissionId; |
| 3986 } | 3998 } |
| 3987 if (photoLink != null) { | 3999 if (photoLink != null) { |
| 3988 _json["photoLink"] = photoLink; | 4000 _json["photoLink"] = photoLink; |
| 3989 } | 4001 } |
| 3990 return _json; | 4002 return _json; |
| 3991 } | 4003 } |
| 3992 } | 4004 } |
| OLD | NEW |