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; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 ChildrenResourceApi get children => new ChildrenResourceApi(_requester); | 49 ChildrenResourceApi get children => new ChildrenResourceApi(_requester); |
50 CommentsResourceApi get comments => new CommentsResourceApi(_requester); | 50 CommentsResourceApi get comments => new CommentsResourceApi(_requester); |
51 FilesResourceApi get files => new FilesResourceApi(_requester); | 51 FilesResourceApi get files => new FilesResourceApi(_requester); |
52 ParentsResourceApi get parents => new ParentsResourceApi(_requester); | 52 ParentsResourceApi get parents => new ParentsResourceApi(_requester); |
53 PermissionsResourceApi get permissions => new PermissionsResourceApi(_requeste
r); | 53 PermissionsResourceApi get permissions => new PermissionsResourceApi(_requeste
r); |
54 PropertiesResourceApi get properties => new PropertiesResourceApi(_requester); | 54 PropertiesResourceApi get properties => new PropertiesResourceApi(_requester); |
55 RealtimeResourceApi get realtime => new RealtimeResourceApi(_requester); | 55 RealtimeResourceApi get realtime => new RealtimeResourceApi(_requester); |
56 RepliesResourceApi get replies => new RepliesResourceApi(_requester); | 56 RepliesResourceApi get replies => new RepliesResourceApi(_requester); |
57 RevisionsResourceApi get revisions => new RevisionsResourceApi(_requester); | 57 RevisionsResourceApi get revisions => new RevisionsResourceApi(_requester); |
58 | 58 |
59 DriveApi(http.Client client) : | 59 DriveApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com
/", core.String servicePath: "drive/v2/"}) : |
60 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "drive/v2/"); | 60 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); |
61 } | 61 } |
62 | 62 |
63 | 63 |
64 /** Not documented yet. */ | 64 /** Not documented yet. */ |
65 class AboutResourceApi { | 65 class AboutResourceApi { |
66 final common_internal.ApiRequester _requester; | 66 final common_internal.ApiRequester _requester; |
67 | 67 |
68 AboutResourceApi(common_internal.ApiRequester client) : | 68 AboutResourceApi(common_internal.ApiRequester client) : |
69 _requester = client; | 69 _requester = client; |
70 | 70 |
(...skipping 6125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6196 core.String authKey; | 6196 core.String authKey; |
6197 | 6197 |
6198 /** | 6198 /** |
6199 * The domain name of the entity this permission refers to. This is an | 6199 * The domain name of the entity this permission refers to. This is an |
6200 * output-only field which is present when the permission type is user, group | 6200 * output-only field which is present when the permission type is user, group |
6201 * or domain. | 6201 * or domain. |
6202 */ | 6202 */ |
6203 core.String domain; | 6203 core.String domain; |
6204 | 6204 |
6205 /** | 6205 /** |
6206 * The email address of the user this permission refers to. This is an | 6206 * The email address of the user or group this permission refers to. This is |
6207 * output-only field which is present when the permission type is user. | 6207 * an output-only field which is present when the permission type is user or |
| 6208 * group. |
6208 */ | 6209 */ |
6209 core.String emailAddress; | 6210 core.String emailAddress; |
6210 | 6211 |
6211 /** The ETag of the permission. */ | 6212 /** The ETag of the permission. */ |
6212 core.String etag; | 6213 core.String etag; |
6213 | 6214 |
6214 /** | 6215 /** |
6215 * The ID of the user this permission refers to, and identical to the | 6216 * The ID of the user this permission refers to, and identical to the |
6216 * permissionId in the About and Files resources. When making a | 6217 * permissionId in the About and Files resources. When making a |
6217 * drive.permissions.insert request, exactly one of the id or value fields | 6218 * drive.permissions.insert request, exactly one of the id or value fields |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6907 _json["permissionId"] = permissionId; | 6908 _json["permissionId"] = permissionId; |
6908 } | 6909 } |
6909 if (picture != null) { | 6910 if (picture != null) { |
6910 _json["picture"] = (picture).toJson(); | 6911 _json["picture"] = (picture).toJson(); |
6911 } | 6912 } |
6912 return _json; | 6913 return _json; |
6913 } | 6914 } |
6914 } | 6915 } |
6915 | 6916 |
6916 | 6917 |
OLD | NEW |