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'; |