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

Unified Diff: generated/googleapis/lib/gamesmanagement/v1management.dart

Issue 635343003: Api roll 3: 2014-10-08 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Updated CHANGELOG.md for the googleapis package Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/lib/games/v1.dart ('k') | generated/googleapis/lib/gmail/v1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/gamesmanagement/v1management.dart
diff --git a/generated/googleapis/lib/gamesmanagement/v1management.dart b/generated/googleapis/lib/gamesmanagement/v1management.dart
index feabf0a465fdeb23232b759876497ec093ce122e..a863fa6632f6ddd4087c832f4ca4f721d39c9a3a 100644
--- a/generated/googleapis/lib/gamesmanagement/v1management.dart
+++ b/generated/googleapis/lib/gamesmanagement/v1management.dart
@@ -128,8 +128,43 @@ class AchievementsResourceApi {
}
/**
- * Resets the achievement with the given ID for the all players. This method
- * is only available to user accounts for your developer console. Only draft
+ * Resets all draft achievements for all players. This method is only
+ * available to user accounts for your developer console.
+ *
+ * Request parameters:
+ *
+ * Completes with a [common.ApiRequestError] if the API endpoint returned an
+ * error.
+ *
+ * If the used [http.Client] completes with an error when making a REST call,
+ * this method will complete with the same error.
+ */
+ async.Future resetAllForAllPlayers() {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = common.DownloadOptions.Metadata;
+ var _body = null;
+
+
+ _downloadOptions = null;
+
+ _url = 'achievements/resetAllForAllPlayers';
+
+ var _response = _requester.request(_url,
+ "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => null);
+ }
+
+ /**
+ * Resets the achievement with the given ID for all players. This method is
+ * only available to user accounts for your developer console. Only draft
* achievements can be reset.
*
* Request parameters:
@@ -168,6 +203,47 @@ class AchievementsResourceApi {
return _response.then((data) => null);
}
+ /**
+ * Resets the achievement with the given IDs for all players. This method is
+ * only available to user accounts for your developer console. Only draft
+ * achievements may be reset.
+ *
+ * [request] - The metadata request object.
+ *
+ * Request parameters:
+ *
+ * Completes with a [common.ApiRequestError] if the API endpoint returned an
+ * error.
+ *
+ * If the used [http.Client] completes with an error when making a REST call,
+ * this method will complete with the same error.
+ */
+ async.Future resetMultipleForAllPlayers(AchievementResetMultipleForAllRequest request) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = common.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
+
+ _downloadOptions = null;
+
+ _url = 'achievements/resetMultipleForAllPlayers';
+
+ var _response = _requester.request(_url,
+ "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => null);
+ }
+
}
@@ -738,6 +814,42 @@ class AchievementResetAllResponse {
}
+/** This is a JSON template for multiple achievements reset all request. */
+class AchievementResetMultipleForAllRequest {
+ /** The IDs of achievements to reset. */
+ core.List<core.String> achievementIds;
+
+ /**
+ * Uniquely identifies the type of this resource. Value is always the fixed
+ * string gamesManagement#achievementResetMultipleForAllRequest.
+ */
+ core.String kind;
+
+
+ AchievementResetMultipleForAllRequest();
+
+ AchievementResetMultipleForAllRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("achievement_ids")) {
+ achievementIds = _json["achievement_ids"];
+ }
+ if (_json.containsKey("kind")) {
+ kind = _json["kind"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (achievementIds != null) {
+ _json["achievement_ids"] = achievementIds;
+ }
+ if (kind != null) {
+ _json["kind"] = kind;
+ }
+ return _json;
+ }
+}
+
+
/** This is a JSON template for an achievement reset response. */
class AchievementResetResponse {
/**
« no previous file with comments | « generated/googleapis/lib/games/v1.dart ('k') | generated/googleapis/lib/gmail/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698