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

Unified Diff: generated/googleapis/lib/playcustomapp/v1.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 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/people/v1.dart ('k') | generated/googleapis/lib/playmoviespartner/v1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/playcustomapp/v1.dart
diff --git a/generated/googleapis/lib/playcustomapp/v1.dart b/generated/googleapis/lib/playcustomapp/v1.dart
index eba9798dfefba98b51f7a1133917e5d9101a4283..fbe10f814979d5b801b6a4e8bc23d86d4594ba64 100644
--- a/generated/googleapis/lib/playcustomapp/v1.dart
+++ b/generated/googleapis/lib/playcustomapp/v1.dart
@@ -9,67 +9,75 @@ 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, Media, UploadOptions,
- ResumableUploadOptions, DownloadOptions, PartialDownloadOptions,
- ByteRange;
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
+ show
+ ApiRequestError,
+ DetailedApiRequestError,
+ Media,
+ UploadOptions,
+ ResumableUploadOptions,
+ DownloadOptions,
+ PartialDownloadOptions,
+ ByteRange;
const core.String USER_AGENT = 'dart-api-client playcustomapp/v1';
-/** An API to publish custom Android apps. */
+/// An API to publish custom Android apps.
class PlaycustomappApi {
- /** View and manage your Google Play Developer account */
- static const AndroidpublisherScope = "https://www.googleapis.com/auth/androidpublisher";
-
+ /// View and manage your Google Play Developer account
+ static const AndroidpublisherScope =
+ "https://www.googleapis.com/auth/androidpublisher";
final commons.ApiRequester _requester;
AccountsResourceApi get accounts => new AccountsResourceApi(_requester);
- PlaycustomappApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "playcustomapp/v1/accounts/"}) :
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
+ PlaycustomappApi(http.Client client,
+ {core.String rootUrl: "https://www.googleapis.com/",
+ core.String servicePath: "playcustomapp/v1/accounts/"})
+ : _requester =
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
-
class AccountsResourceApi {
final commons.ApiRequester _requester;
- AccountsCustomAppsResourceApi get customApps => new AccountsCustomAppsResourceApi(_requester);
+ AccountsCustomAppsResourceApi get customApps =>
+ new AccountsCustomAppsResourceApi(_requester);
- AccountsResourceApi(commons.ApiRequester client) :
- _requester = client;
+ AccountsResourceApi(commons.ApiRequester client) : _requester = client;
}
-
class AccountsCustomAppsResourceApi {
final commons.ApiRequester _requester;
- AccountsCustomAppsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Create and publish a new custom app.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [account] - Developer account ID.
- *
- * [uploadMedia] - The media to upload.
- *
- * [uploadOptions] - Options for the media upload. Streaming Media without the
- * length being known ahead of time is only supported via resumable uploads.
- *
- * Completes with a [CustomApp].
- *
- * 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<CustomApp> create(CustomApp request, core.String account, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) {
+ AccountsCustomAppsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Create and publish a new custom app.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [account] - Developer account ID.
+ ///
+ /// [uploadMedia] - The media to upload.
+ ///
+ /// [uploadOptions] - Options for the media upload. Streaming Media without
+ /// the length being known ahead of time is only supported via resumable
+ /// uploads.
+ ///
+ /// Completes with a [CustomApp].
+ ///
+ /// 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<CustomApp> create(CustomApp request, core.String account,
+ {commons.UploadOptions uploadOptions: commons.UploadOptions.Default,
+ commons.Media uploadMedia}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -84,37 +92,37 @@ class AccountsCustomAppsResourceApi {
throw new core.ArgumentError("Parameter account is required.");
}
- _uploadMedia = uploadMedia;
- _uploadOptions = uploadOptions;
+ _uploadMedia = uploadMedia;
+ _uploadOptions = uploadOptions;
if (_uploadMedia == null) {
_url = commons.Escaper.ecapeVariable('$account') + '/customApps';
} else if (_uploadOptions is commons.ResumableUploadOptions) {
- _url = '/resumable/upload/playcustomapp/v1/accounts/' + commons.Escaper.ecapeVariable('$account') + '/customApps';
+ _url = '/resumable/upload/playcustomapp/v1/accounts/' +
+ commons.Escaper.ecapeVariable('$account') +
+ '/customApps';
} else {
- _url = '/upload/playcustomapp/v1/accounts/' + commons.Escaper.ecapeVariable('$account') + '/customApps';
+ _url = '/upload/playcustomapp/v1/accounts/' +
+ commons.Escaper.ecapeVariable('$account') +
+ '/customApps';
}
-
- 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 CustomApp.fromJson(data));
}
-
}
-
-
-/** This resource represents a custom app. */
+/// This resource represents a custom app.
class CustomApp {
- /** Default listing language in BCP 47 format. */
+ /// Default listing language in BCP 47 format.
core.String languageCode;
- /** Title for the Android app. */
+
+ /// Title for the Android app.
core.String title;
CustomApp();
@@ -129,7 +137,8 @@ class CustomApp {
}
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 (languageCode != null) {
_json["languageCode"] = languageCode;
}
« no previous file with comments | « generated/googleapis/lib/people/v1.dart ('k') | generated/googleapis/lib/playmoviespartner/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698