Index: discovery/googleapis/translate__v2.json |
diff --git a/discovery/googleapis/translate__v2.json b/discovery/googleapis/translate__v2.json |
index ef5304ecd3438d47fc5d293a5cc4a4e32bea3268..23c1875221b0309f98649a471a7f5e6ca034171c 100644 |
--- a/discovery/googleapis/translate__v2.json |
+++ b/discovery/googleapis/translate__v2.json |
@@ -31,17 +31,6 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "quotaUser": { |
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
- "location": "query", |
- "type": "boolean" |
- }, |
"bearer_token": { |
"description": "OAuth bearer token.", |
"location": "query", |
@@ -63,13 +52,13 @@ |
"location": "query", |
"type": "boolean" |
}, |
- "uploadType": { |
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
+ "fields": { |
+ "description": "Selector specifying which fields to include in a partial response.", |
"location": "query", |
"type": "string" |
}, |
- "fields": { |
- "description": "Selector specifying which fields to include in a partial response.", |
+ "uploadType": { |
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
"location": "query", |
"type": "string" |
}, |
@@ -116,6 +105,17 @@ |
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
"location": "query", |
"type": "string" |
+ }, |
+ "quotaUser": { |
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
+ "location": "query", |
+ "type": "boolean" |
} |
}, |
"protocol": "rest", |
@@ -198,6 +198,24 @@ |
}, |
"translations": { |
"methods": { |
+ "translate": { |
+ "description": "Translates input text, returning translated text.", |
+ "httpMethod": "POST", |
+ "id": "language.translations.translate", |
+ "parameterOrder": [], |
+ "parameters": {}, |
+ "path": "v2", |
+ "request": { |
+ "$ref": "TranslateTextRequest" |
+ }, |
+ "response": { |
+ "$ref": "TranslationsListResponse" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-translation", |
+ "https://www.googleapis.com/auth/cloud-platform" |
+ ] |
+ }, |
"list": { |
"description": "Translates input text, returning translated text.", |
"httpMethod": "GET", |
@@ -258,24 +276,6 @@ |
"https://www.googleapis.com/auth/cloud-translation", |
"https://www.googleapis.com/auth/cloud-platform" |
] |
- }, |
- "translate": { |
- "description": "Translates input text, returning translated text.", |
- "httpMethod": "POST", |
- "id": "language.translations.translate", |
- "parameterOrder": [], |
- "parameters": {}, |
- "path": "v2", |
- "request": { |
- "$ref": "TranslateTextRequest" |
- }, |
- "response": { |
- "$ref": "TranslationsListResponse" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-translation", |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
} |
} |
} |
@@ -283,6 +283,34 @@ |
"revision": "20170525", |
"rootUrl": "https://translation.googleapis.com/", |
"schemas": { |
+ "DetectLanguageRequest": { |
+ "description": "The request message for language detection.", |
+ "id": "DetectLanguageRequest", |
+ "properties": { |
+ "q": { |
+ "description": "The input text upon which to perform language detection. Repeat this\nparameter to perform language detection on multiple text inputs.", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "LanguagesResource": { |
+ "id": "LanguagesResource", |
+ "properties": { |
+ "name": { |
+ "description": "Human readable name of the language localized to the target language.", |
+ "type": "string" |
+ }, |
+ "language": { |
+ "description": "Supported language code, generally consisting of its ISO 639-1\nidentifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including\nlanguage + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH')", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"DetectionsListResponse": { |
"id": "DetectionsListResponse", |
"properties": { |
@@ -323,10 +351,6 @@ |
"TranslationsResource": { |
"id": "TranslationsResource", |
"properties": { |
- "translatedText": { |
- "description": "Text translated into the target language.", |
- "type": "string" |
- }, |
"detectedSourceLanguage": { |
"description": "The source language of the initial request, detected automatically, if\nno source language was passed within the initial request. If the\nsource language was passed, auto-detection of the language will not\noccur and this field will be empty.", |
"type": "string" |
@@ -334,6 +358,10 @@ |
"model": { |
"description": "The `model` type used for this translation. Valid values are\nlisted in public documentation. Can be different from requested `model`.\nPresent only if specific model type was explicitly requested.", |
"type": "string" |
+ }, |
+ "translatedText": { |
+ "description": "Text translated into the target language.", |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -343,11 +371,6 @@ |
"id": "DetectionsResource", |
"items": { |
"properties": { |
- "confidence": { |
- "description": "The confidence of the detection result of this language.", |
- "format": "float", |
- "type": "number" |
- }, |
"language": { |
"description": "The language we detected.", |
"type": "string" |
@@ -355,6 +378,11 @@ |
"isReliable": { |
"description": "A boolean to indicate is the language detection result reliable.", |
"type": "boolean" |
+ }, |
+ "confidence": { |
+ "description": "The confidence of the detection result of this language.", |
+ "format": "float", |
+ "type": "number" |
} |
}, |
"type": "object" |
@@ -404,34 +432,6 @@ |
} |
}, |
"type": "object" |
- }, |
- "DetectLanguageRequest": { |
- "description": "The request message for language detection.", |
- "id": "DetectLanguageRequest", |
- "properties": { |
- "q": { |
- "description": "The input text upon which to perform language detection. Repeat this\nparameter to perform language detection on multiple text inputs.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "LanguagesResource": { |
- "id": "LanguagesResource", |
- "properties": { |
- "name": { |
- "description": "Human readable name of the language localized to the target language.", |
- "type": "string" |
- }, |
- "language": { |
- "description": "Supported language code, generally consisting of its ISO 639-1\nidentifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including\nlanguage + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH')", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
} |
}, |
"servicePath": "language/translate/", |