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

Unified Diff: generated/googleapis/lib/translate/v2.dart

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 5 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/tracing/v2.dart ('k') | generated/googleapis/lib/vault/v1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/translate/v2.dart
diff --git a/generated/googleapis/lib/translate/v2.dart b/generated/googleapis/lib/translate/v2.dart
index e5cd8a5825ba350aa233c31a19caec9474768627..35663b5ef4608a73c95930b0fe7ddabb4d3cdcb1 100644
--- a/generated/googleapis/lib/translate/v2.dart
+++ b/generated/googleapis/lib/translate/v2.dart
@@ -138,12 +138,12 @@ class LanguagesResourceApi {
*
* Request parameters:
*
- * [model] - The model type for which supported languages should be returned.
- *
* [target] - The language to use to return localized, human readable names of
* supported
* languages.
*
+ * [model] - The model type for which supported languages should be returned.
+ *
* Completes with a [LanguagesListResponse].
*
* Completes with a [commons.ApiRequestError] if the API endpoint returned an
@@ -152,7 +152,7 @@ class LanguagesResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<LanguagesListResponse> list({core.String model, core.String target}) {
+ async.Future<LanguagesListResponse> list({core.String target, core.String model}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -160,12 +160,12 @@ class LanguagesResourceApi {
var _downloadOptions = commons.DownloadOptions.Metadata;
var _body = null;
- if (model != null) {
- _queryParams["model"] = [model];
- }
if (target != null) {
_queryParams["target"] = [target];
}
+ if (model != null) {
+ _queryParams["model"] = [model];
+ }
_url = 'v2/languages';
@@ -201,9 +201,6 @@ class TranslationsResourceApi {
* one of the
* language codes listed in Language Support.
*
- * [model] - The `model` type requested for this translation. Valid values are
- * listed in public documentation.
- *
* [source] - The language of the source text, set to one of the language
* codes listed in
* Language Support. If the source language is not specified, the API will
@@ -219,6 +216,9 @@ class TranslationsResourceApi {
* - "html" : Specifies the input is in HTML
* - "text" : Specifies the input is in plain textual format
*
+ * [model] - The `model` type requested for this translation. Valid values are
+ * listed in public documentation.
+ *
* Completes with a [TranslationsListResponse].
*
* Completes with a [commons.ApiRequestError] if the API endpoint returned an
@@ -227,7 +227,7 @@ class TranslationsResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<TranslationsListResponse> list(core.List<core.String> q, core.String target, {core.String model, core.String source, core.List<core.String> cid, core.String format}) {
+ async.Future<TranslationsListResponse> list(core.List<core.String> q, core.String target, {core.String source, core.List<core.String> cid, core.String format, core.String model}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -243,9 +243,6 @@ class TranslationsResourceApi {
throw new core.ArgumentError("Parameter target is required.");
}
_queryParams["target"] = [target];
- if (model != null) {
- _queryParams["model"] = [model];
- }
if (source != null) {
_queryParams["source"] = [source];
}
@@ -255,6 +252,9 @@ class TranslationsResourceApi {
if (format != null) {
_queryParams["format"] = [format];
}
+ if (model != null) {
+ _queryParams["model"] = [model];
+ }
_url = 'v2';
« no previous file with comments | « generated/googleapis/lib/tracing/v2.dart ('k') | generated/googleapis/lib/vault/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698