Index: generated/googleapis/lib/appstate/v1.dart |
diff --git a/generated/googleapis/lib/appstate/v1.dart b/generated/googleapis/lib/appstate/v1.dart |
index 8a06f9c30a7ba05febadf7e66b5fbabe9b92cb8a..a041dd2eb34cdc3acc14ac8d9ffcff6988172783 100644 |
--- a/generated/googleapis/lib/appstate/v1.dart |
+++ b/generated/googleapis/lib/appstate/v1.dart |
@@ -9,54 +9,53 @@ import 'dart:convert' as convert; |
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
import 'package:http/http.dart' as http; |
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
- ApiRequestError, DetailedApiRequestError; |
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
+ show ApiRequestError, DetailedApiRequestError; |
const core.String USER_AGENT = 'dart-api-client appstate/v1'; |
-/** The Google App State API. */ |
+/// The Google App State API. |
class AppstateApi { |
- /** View and manage your data for this application */ |
+ /// View and manage your data for this application |
static const AppstateScope = "https://www.googleapis.com/auth/appstate"; |
- |
final commons.ApiRequester _requester; |
StatesResourceApi get states => new StatesResourceApi(_requester); |
- AppstateApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "appstate/v1/"}) : |
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
+ AppstateApi(http.Client client, |
+ {core.String rootUrl: "https://www.googleapis.com/", |
+ core.String servicePath: "appstate/v1/"}) |
+ : _requester = |
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
} |
- |
class StatesResourceApi { |
final commons.ApiRequester _requester; |
- StatesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Clears (sets to empty) the data for the passed key if and only if the |
- * passed version matches the currently stored version. This method results in |
- * a conflict error on version mismatch. |
- * |
- * Request parameters: |
- * |
- * [stateKey] - The key for the data to be retrieved. |
- * Value must be between "0" and "3". |
- * |
- * [currentDataVersion] - The version of the data to be cleared. Version |
- * strings are returned by the server. |
- * |
- * Completes with a [WriteResult]. |
- * |
- * Completes with a [commons.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<WriteResult> clear(core.int stateKey, {core.String currentDataVersion}) { |
+ StatesResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Clears (sets to empty) the data for the passed key if and only if the |
+ /// passed version matches the currently stored version. This method results |
+ /// in a conflict error on version mismatch. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [stateKey] - The key for the data to be retrieved. |
+ /// Value must be between "0" and "3". |
+ /// |
+ /// [currentDataVersion] - The version of the data to be cleared. Version |
+ /// strings are returned by the server. |
+ /// |
+ /// Completes with a [WriteResult]. |
+ /// |
+ /// Completes with a [commons.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<WriteResult> clear(core.int stateKey, |
+ {core.String currentDataVersion}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -73,34 +72,31 @@ class StatesResourceApi { |
_url = 'states/' + commons.Escaper.ecapeVariable('$stateKey') + '/clear'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new WriteResult.fromJson(data)); |
} |
- /** |
- * Deletes a key and the data associated with it. The key is removed and no |
- * longer counts against the key quota. Note that since this method is not |
- * safe in the face of concurrent modifications, it should only be used for |
- * development and testing purposes. Invoking this method in shipping code can |
- * result in data loss and data corruption. |
- * |
- * Request parameters: |
- * |
- * [stateKey] - The key for the data to be retrieved. |
- * Value must be between "0" and "3". |
- * |
- * Completes with a [commons.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. |
- */ |
+ /// Deletes a key and the data associated with it. The key is removed and no |
+ /// longer counts against the key quota. Note that since this method is not |
+ /// safe in the face of concurrent modifications, it should only be used for |
+ /// development and testing purposes. Invoking this method in shipping code |
+ /// can result in data loss and data corruption. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [stateKey] - The key for the data to be retrieved. |
+ /// Value must be between "0" and "3". |
+ /// |
+ /// Completes with a [commons.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 delete(core.int stateKey) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -117,33 +113,30 @@ class StatesResourceApi { |
_url = 'states/' + commons.Escaper.ecapeVariable('$stateKey'); |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Retrieves the data corresponding to the passed key. If the key does not |
- * exist on the server, an HTTP 404 will be returned. |
- * |
- * Request parameters: |
- * |
- * [stateKey] - The key for the data to be retrieved. |
- * Value must be between "0" and "3". |
- * |
- * Completes with a [GetResponse]. |
- * |
- * Completes with a [commons.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. |
- */ |
+ /// Retrieves the data corresponding to the passed key. If the key does not |
+ /// exist on the server, an HTTP 404 will be returned. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [stateKey] - The key for the data to be retrieved. |
+ /// Value must be between "0" and "3". |
+ /// |
+ /// Completes with a [GetResponse]. |
+ /// |
+ /// Completes with a [commons.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<GetResponse> get(core.int stateKey) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -158,32 +151,29 @@ class StatesResourceApi { |
_url = 'states/' + commons.Escaper.ecapeVariable('$stateKey'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new GetResponse.fromJson(data)); |
} |
- /** |
- * Lists all the states keys, and optionally the state data. |
- * |
- * Request parameters: |
- * |
- * [includeData] - Whether to include the full data in addition to the version |
- * number |
- * |
- * Completes with a [ListResponse]. |
- * |
- * Completes with a [commons.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. |
- */ |
+ /// Lists all the states keys, and optionally the state data. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [includeData] - Whether to include the full data in addition to the |
+ /// version number |
+ /// |
+ /// Completes with a [ListResponse]. |
+ /// |
+ /// Completes with a [commons.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<ListResponse> list({core.bool includeData}) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -198,43 +188,41 @@ class StatesResourceApi { |
_url = 'states'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ListResponse.fromJson(data)); |
} |
- /** |
- * Update the data associated with the input key if and only if the passed |
- * version matches the currently stored version. This method is safe in the |
- * face of concurrent writes. Maximum per-key size is 128KB. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [stateKey] - The key for the data to be retrieved. |
- * Value must be between "0" and "3". |
- * |
- * [currentStateVersion] - The version of the app state your application is |
- * attempting to update. If this does not match the current version, this |
- * method will return a conflict error. If there is no data stored on the |
- * server for this key, the update will succeed irrespective of the value of |
- * this parameter. |
- * |
- * Completes with a [WriteResult]. |
- * |
- * Completes with a [commons.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<WriteResult> update(UpdateRequest request, core.int stateKey, {core.String currentStateVersion}) { |
+ /// Update the data associated with the input key if and only if the passed |
+ /// version matches the currently stored version. This method is safe in the |
+ /// face of concurrent writes. Maximum per-key size is 128KB. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [stateKey] - The key for the data to be retrieved. |
+ /// Value must be between "0" and "3". |
+ /// |
+ /// [currentStateVersion] - The version of the app state your application is |
+ /// attempting to update. If this does not match the current version, this |
+ /// method will return a conflict error. If there is no data stored on the |
+ /// server for this key, the update will succeed irrespective of the value of |
+ /// this parameter. |
+ /// |
+ /// Completes with a [WriteResult]. |
+ /// |
+ /// Completes with a [commons.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<WriteResult> update(UpdateRequest request, core.int stateKey, |
+ {core.String currentStateVersion}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -254,32 +242,29 @@ class StatesResourceApi { |
_url = 'states/' + commons.Escaper.ecapeVariable('$stateKey'); |
- var _response = _requester.request(_url, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "PUT", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new WriteResult.fromJson(data)); |
} |
- |
} |
- |
- |
-/** This is a JSON template for an app state resource. */ |
+/// This is a JSON template for an app state resource. |
class GetResponse { |
- /** The current app state version. */ |
+ /// The current app state version. |
core.String currentStateVersion; |
- /** The requested data. */ |
+ |
+ /// The requested data. |
core.String data; |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string appstate#getResponse. |
- */ |
+ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string appstate#getResponse. |
core.String kind; |
- /** The key for the data. */ |
+ |
+ /// The key for the data. |
core.int stateKey; |
GetResponse(); |
@@ -300,7 +285,8 @@ class GetResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (currentStateVersion != null) { |
_json["currentStateVersion"] = currentStateVersion; |
} |
@@ -317,23 +303,25 @@ class GetResponse { |
} |
} |
-/** This is a JSON template to convert a list-response for app state. */ |
+/// This is a JSON template to convert a list-response for app state. |
class ListResponse { |
- /** The app state data. */ |
+ /// The app state data. |
core.List<GetResponse> items; |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string appstate#listResponse. |
- */ |
+ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string appstate#listResponse. |
core.String kind; |
- /** The maximum number of keys allowed for this user. */ |
+ |
+ /// The maximum number of keys allowed for this user. |
core.int maximumKeyCount; |
ListResponse(); |
ListResponse.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new GetResponse.fromJson(value)).toList(); |
+ items = _json["items"] |
+ .map((value) => new GetResponse.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -344,7 +332,8 @@ class ListResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -358,14 +347,13 @@ class ListResponse { |
} |
} |
-/** This is a JSON template for a requests which update app state */ |
+/// This is a JSON template for a requests which update app state |
class UpdateRequest { |
- /** The new app state data that your application is trying to update with. */ |
+ /// The new app state data that your application is trying to update with. |
core.String data; |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string appstate#updateRequest. |
- */ |
+ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string appstate#updateRequest. |
core.String kind; |
UpdateRequest(); |
@@ -380,7 +368,8 @@ class UpdateRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (data != null) { |
_json["data"] = data; |
} |
@@ -391,16 +380,16 @@ class UpdateRequest { |
} |
} |
-/** This is a JSON template for an app state write result. */ |
+/// This is a JSON template for an app state write result. |
class WriteResult { |
- /** The version of the data for this key on the server. */ |
+ /// The version of the data for this key on the server. |
core.String currentStateVersion; |
- /** |
- * Uniquely identifies the type of this resource. Value is always the fixed |
- * string appstate#writeResult. |
- */ |
+ |
+ /// Uniquely identifies the type of this resource. Value is always the fixed |
+ /// string appstate#writeResult. |
core.String kind; |
- /** The written key. */ |
+ |
+ /// The written key. |
core.int stateKey; |
WriteResult(); |
@@ -418,7 +407,8 @@ class WriteResult { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (currentStateVersion != null) { |
_json["currentStateVersion"] = currentStateVersion; |
} |