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

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

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 8 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).
2
1 library googleapis.appsactivity.v1; 3 library googleapis.appsactivity.v1;
2 4
3 import "dart:core" as core; 5 import 'dart:core' as core;
4 import "dart:collection" as collection; 6 import 'dart:collection' as collection;
5 import "dart:async" as async; 7 import 'dart:async' as async;
6 import "dart:convert" as convert; 8 import 'dart:convert' as convert;
7 9
8 import "package:crypto/crypto.dart" as crypto; 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
11 import 'package:crypto/crypto.dart' as crypto;
9 import 'package:http/http.dart' as http; 12 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal;
11 import '../common/common.dart' as common;
12 13
13 export '../common/common.dart' show ApiRequestError; 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 export '../common/common.dart' show DetailedApiRequestError; 15 ApiRequestError, DetailedApiRequestError;
16
17 const core.String USER_AGENT = 'dart-api-client appsactivity/v1';
15 18
16 /** Provides a historical view of activity. */ 19 /** Provides a historical view of activity. */
17 class AppsactivityApi { 20 class AppsactivityApi {
18 /** View the activity history of your Google Apps */ 21 /** View the activity history of your Google Apps */
19 static const ActivityScope = "https://www.googleapis.com/auth/activity"; 22 static const ActivityScope = "https://www.googleapis.com/auth/activity";
20 23
21 /** View and manage the files and documents in your Google Drive */ 24 /** View and manage the files in your Google Drive */
22 static const DriveScope = "https://www.googleapis.com/auth/drive"; 25 static const DriveScope = "https://www.googleapis.com/auth/drive";
23 26
24 /** View metadata for files and documents in your Google Drive */ 27 /** View metadata for files in your Google Drive */
25 static const DriveMetadataReadonlyScope = "https://www.googleapis.com/auth/dri ve.metadata.readonly"; 28 static const DriveMetadataReadonlyScope = "https://www.googleapis.com/auth/dri ve.metadata.readonly";
26 29
27 /** View the files and documents in your Google Drive */ 30 /** View the files in your Google Drive */
28 static const DriveReadonlyScope = "https://www.googleapis.com/auth/drive.reado nly"; 31 static const DriveReadonlyScope = "https://www.googleapis.com/auth/drive.reado nly";
29 32
30 33
31 final common_internal.ApiRequester _requester; 34 final commons.ApiRequester _requester;
32 35
33 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); 36 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester);
34 37
35 AppsactivityApi(http.Client client, {core.String rootUrl: "https://www.googlea pis.com/", core.String servicePath: "appsactivity/v1/"}) : 38 AppsactivityApi(http.Client client, {core.String rootUrl: "https://www.googlea pis.com/", core.String servicePath: "appsactivity/v1/"}) :
36 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath ); 39 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
37 } 40 }
38 41
39 42
40 /** Not documented yet. */
41 class ActivitiesResourceApi { 43 class ActivitiesResourceApi {
42 final common_internal.ApiRequester _requester; 44 final commons.ApiRequester _requester;
43 45
44 ActivitiesResourceApi(common_internal.ApiRequester client) : 46 ActivitiesResourceApi(commons.ApiRequester client) :
45 _requester = client; 47 _requester = client;
46 48
47 /** 49 /**
48 * Returns a list of activities visible to the current logged in user. Visible 50 * Returns a list of activities visible to the current logged in user. Visible
49 * activities are determined by the visiblity settings of the object that was 51 * activities are determined by the visiblity settings of the object that was
50 * acted on, e.g. Drive files a user can see. An activity is a record of past 52 * acted on, e.g. Drive files a user can see. An activity is a record of past
51 * events. Multiple events may be merged if they are similar. A request is 53 * events. Multiple events may be merged if they are similar. A request is
52 * scoped to activities from a given Google service using the source 54 * scoped to activities from a given Google service using the source
53 * parameter. 55 * parameter.
54 * 56 *
(...skipping 17 matching lines...) Expand all
72 * 74 *
73 * [source] - The Google service from which to return activities. Possible 75 * [source] - The Google service from which to return activities. Possible
74 * values of source are: 76 * values of source are:
75 * - drive.google.com 77 * - drive.google.com
76 * 78 *
77 * [userId] - Indicates the user to return activity for. Use the special value 79 * [userId] - Indicates the user to return activity for. Use the special value
78 * me to indicate the currently authenticated user. 80 * me to indicate the currently authenticated user.
79 * 81 *
80 * Completes with a [ListActivitiesResponse]. 82 * Completes with a [ListActivitiesResponse].
81 * 83 *
82 * Completes with a [common.ApiRequestError] if the API endpoint returned an 84 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
83 * error. 85 * error.
84 * 86 *
85 * If the used [http.Client] completes with an error when making a REST call, 87 * If the used [http.Client] completes with an error when making a REST call,
86 * this method will complete with the same error. 88 * this method will complete with the same error.
87 */ 89 */
88 async.Future<ListActivitiesResponse> list({core.String drive_ancestorId, core. String drive_fileId, core.String groupingStrategy, core.int pageSize, core.Strin g pageToken, core.String source, core.String userId}) { 90 async.Future<ListActivitiesResponse> list({core.String drive_ancestorId, core. String drive_fileId, core.String groupingStrategy, core.int pageSize, core.Strin g pageToken, core.String source, core.String userId}) {
89 var _url = null; 91 var _url = null;
90 var _queryParams = new core.Map(); 92 var _queryParams = new core.Map();
91 var _uploadMedia = null; 93 var _uploadMedia = null;
92 var _uploadOptions = null; 94 var _uploadOptions = null;
93 var _downloadOptions = common.DownloadOptions.Metadata; 95 var _downloadOptions = commons.DownloadOptions.Metadata;
94 var _body = null; 96 var _body = null;
95 97
96 if (drive_ancestorId != null) { 98 if (drive_ancestorId != null) {
97 _queryParams["drive.ancestorId"] = [drive_ancestorId]; 99 _queryParams["drive.ancestorId"] = [drive_ancestorId];
98 } 100 }
99 if (drive_fileId != null) { 101 if (drive_fileId != null) {
100 _queryParams["drive.fileId"] = [drive_fileId]; 102 _queryParams["drive.fileId"] = [drive_fileId];
101 } 103 }
102 if (groupingStrategy != null) { 104 if (groupingStrategy != null) {
103 _queryParams["groupingStrategy"] = [groupingStrategy]; 105 _queryParams["groupingStrategy"] = [groupingStrategy];
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 var _json = new core.Map(); 671 var _json = new core.Map();
670 if (name != null) { 672 if (name != null) {
671 _json["name"] = name; 673 _json["name"] = name;
672 } 674 }
673 if (photo != null) { 675 if (photo != null) {
674 _json["photo"] = (photo).toJson(); 676 _json["photo"] = (photo).toJson();
675 } 677 }
676 return _json; 678 return _json;
677 } 679 }
678 } 680 }
679
680
OLDNEW
« no previous file with comments | « generated/googleapis/lib/androidpublisher/v2.dart ('k') | generated/googleapis/lib/appstate/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698