| OLD | NEW |
| 1 library googleapis.drive.v2; | 1 library googleapis.drive.v2; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert_1; | 6 import "dart:convert" as convert_1; |
| 7 | 7 |
| 8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
| 9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
| 11 import '../common/common.dart' as common; | 11 import '../common/common.dart' as common; |
| 12 | 12 |
| 13 export '../common/common.dart' show ApiRequestError; | 13 export '../common/common.dart' show ApiRequestError; |
| 14 export '../common/common.dart' show DetailedApiRequestError; | 14 export '../common/common.dart' show DetailedApiRequestError; |
| 15 | 15 |
| 16 /** The API to interact with Drive. */ | 16 /** The API to interact with Drive. */ |
| 17 class DriveApi { | 17 class DriveApi { |
| 18 /** View and manage the files and documents in your Google Drive */ | 18 /** View and manage the files in your Google Drive */ |
| 19 static const DriveScope = "https://www.googleapis.com/auth/drive"; | 19 static const DriveScope = "https://www.googleapis.com/auth/drive"; |
| 20 | 20 |
| 21 /** View and manage its own configuration data in your Google Drive */ | 21 /** View and manage its own configuration data in your Google Drive */ |
| 22 static const DriveAppdataScope = "https://www.googleapis.com/auth/drive.appdat
a"; | 22 static const DriveAppdataScope = "https://www.googleapis.com/auth/drive.appdat
a"; |
| 23 | 23 |
| 24 /** View your Google Drive apps */ | 24 /** View your Google Drive apps */ |
| 25 static const DriveAppsReadonlyScope = "https://www.googleapis.com/auth/drive.a
pps.readonly"; | 25 static const DriveAppsReadonlyScope = "https://www.googleapis.com/auth/drive.a
pps.readonly"; |
| 26 | 26 |
| 27 /** | 27 /** |
| 28 * View and manage Google Drive files that you have opened or created with | 28 * View and manage Google Drive files that you have opened or created with |
| 29 * this app | 29 * this app |
| 30 */ | 30 */ |
| 31 static const DriveFileScope = "https://www.googleapis.com/auth/drive.file"; | 31 static const DriveFileScope = "https://www.googleapis.com/auth/drive.file"; |
| 32 | 32 |
| 33 /** View metadata for files and documents in your Google Drive */ | 33 /** View metadata for files in your Google Drive */ |
| 34 static const DriveMetadataReadonlyScope = "https://www.googleapis.com/auth/dri
ve.metadata.readonly"; | 34 static const DriveMetadataReadonlyScope = "https://www.googleapis.com/auth/dri
ve.metadata.readonly"; |
| 35 | 35 |
| 36 /** View the files and documents in your Google Drive */ | 36 /** View the files in your Google Drive */ |
| 37 static const DriveReadonlyScope = "https://www.googleapis.com/auth/drive.reado
nly"; | 37 static const DriveReadonlyScope = "https://www.googleapis.com/auth/drive.reado
nly"; |
| 38 | 38 |
| 39 /** Modify your Google Apps Script scripts' behavior */ | 39 /** Modify your Google Apps Script scripts' behavior */ |
| 40 static const DriveScriptsScope = "https://www.googleapis.com/auth/drive.script
s"; | 40 static const DriveScriptsScope = "https://www.googleapis.com/auth/drive.script
s"; |
| 41 | 41 |
| 42 | 42 |
| 43 final common_internal.ApiRequester _requester; | 43 final common_internal.ApiRequester _requester; |
| 44 | 44 |
| 45 AboutResourceApi get about => new AboutResourceApi(_requester); | 45 AboutResourceApi get about => new AboutResourceApi(_requester); |
| 46 AppsResourceApi get apps => new AppsResourceApi(_requester); | 46 AppsResourceApi get apps => new AppsResourceApi(_requester); |
| (...skipping 6884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6931 _json["permissionId"] = permissionId; | 6931 _json["permissionId"] = permissionId; |
| 6932 } | 6932 } |
| 6933 if (picture != null) { | 6933 if (picture != null) { |
| 6934 _json["picture"] = (picture).toJson(); | 6934 _json["picture"] = (picture).toJson(); |
| 6935 } | 6935 } |
| 6936 return _json; | 6936 return _json; |
| 6937 } | 6937 } |
| 6938 } | 6938 } |
| 6939 | 6939 |
| 6940 | 6940 |
| OLD | NEW |