Index: discovery/googleapis/translate__v2.json |
diff --git a/discovery/googleapis/translate__v2.json b/discovery/googleapis/translate__v2.json |
index 23c1875221b0309f98649a471a7f5e6ca034171c..dfacd66812d8897dbb5711ee96b4624c9558bd88 100644 |
--- a/discovery/googleapis/translate__v2.json |
+++ b/discovery/googleapis/translate__v2.json |
@@ -2,11 +2,11 @@ |
"auth": { |
"oauth2": { |
"scopes": { |
- "https://www.googleapis.com/auth/cloud-platform": { |
- "description": "View and manage your data across Google Cloud Platform services" |
- }, |
"https://www.googleapis.com/auth/cloud-translation": { |
"description": "Translate text from one language to another using Google Translate" |
+ }, |
+ "https://www.googleapis.com/auth/cloud-platform": { |
+ "description": "View and manage your data across Google Cloud Platform services" |
} |
} |
} |
@@ -31,16 +31,6 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "bearer_token": { |
- "description": "OAuth bearer token.", |
- "location": "query", |
- "type": "string" |
- }, |
- "oauth_token": { |
- "description": "OAuth 2.0 token for the current user.", |
- "location": "query", |
- "type": "string" |
- }, |
"upload_protocol": { |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
"location": "query", |
@@ -52,18 +42,13 @@ |
"location": "query", |
"type": "boolean" |
}, |
- "fields": { |
- "description": "Selector specifying which fields to include in a partial response.", |
- "location": "query", |
- "type": "string" |
- }, |
"uploadType": { |
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
"location": "query", |
"type": "string" |
}, |
- "callback": { |
- "description": "JSONP", |
+ "fields": { |
+ "description": "Selector specifying which fields to include in a partial response.", |
"location": "query", |
"type": "string" |
}, |
@@ -80,6 +65,11 @@ |
"location": "query", |
"type": "string" |
}, |
+ "callback": { |
+ "description": "JSONP", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"alt": { |
"default": "json", |
"description": "Data format for response.", |
@@ -96,13 +86,13 @@ |
"location": "query", |
"type": "string" |
}, |
- "access_token": { |
- "description": "OAuth access token.", |
+ "key": { |
+ "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" |
}, |
- "key": { |
- "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.", |
+ "access_token": { |
+ "description": "OAuth access token.", |
"location": "query", |
"type": "string" |
}, |
@@ -116,6 +106,16 @@ |
"description": "Pretty-print response.", |
"location": "query", |
"type": "boolean" |
+ }, |
+ "oauth_token": { |
+ "description": "OAuth 2.0 token for the current user.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "bearer_token": { |
+ "description": "OAuth bearer token.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
"protocol": "rest", |
@@ -225,18 +225,6 @@ |
"target" |
], |
"parameters": { |
- "q": { |
- "description": "The input text to translate. Repeat this parameter to perform translation\noperations on multiple text inputs.", |
- "location": "query", |
- "repeated": true, |
- "required": true, |
- "type": "string" |
- }, |
- "source": { |
- "description": "The language of the source text, set to one of the language codes listed in\nLanguage Support. If the source language is not specified, the API will\nattempt to identify the source language automatically and return it within\nthe response.", |
- "location": "query", |
- "type": "string" |
- }, |
"cid": { |
"description": "The customization id for translate", |
"location": "query", |
@@ -266,6 +254,18 @@ |
"description": "The `model` type requested for this translation. Valid values are\nlisted in public documentation.", |
"location": "query", |
"type": "string" |
+ }, |
+ "q": { |
+ "description": "The input text to translate. Repeat this parameter to perform translation\noperations on multiple text inputs.", |
+ "location": "query", |
+ "repeated": true, |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "source": { |
+ "description": "The language of the source text, set to one of the language codes listed in\nLanguage Support. If the source language is not specified, the API will\nattempt to identify the source language automatically and return it within\nthe response.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
"path": "v2", |
@@ -283,6 +283,50 @@ |
"revision": "20170525", |
"rootUrl": "https://translation.googleapis.com/", |
"schemas": { |
+ "TranslationsListResponse": { |
+ "description": "The main language translation response message.", |
+ "id": "TranslationsListResponse", |
+ "properties": { |
+ "translations": { |
+ "description": "Translations contains list of translation results of given text", |
+ "items": { |
+ "$ref": "TranslationsResource" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "TranslateTextRequest": { |
+ "description": "The main translation request message for the Cloud Translation API.", |
+ "id": "TranslateTextRequest", |
+ "properties": { |
+ "target": { |
+ "description": "The language to use for translation of the input text, set to one of the\nlanguage codes listed in Language Support.", |
+ "type": "string" |
+ }, |
+ "format": { |
+ "description": "The format of the source text, in either HTML (default) or plain-text. A\nvalue of \"html\" indicates HTML and a value of \"text\" indicates plain-text.", |
+ "type": "string" |
+ }, |
+ "q": { |
+ "description": "The input text to translate. Repeat this parameter to perform translation\noperations on multiple text inputs.", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ }, |
+ "source": { |
+ "description": "The language of the source text, set to one of the language codes listed in\nLanguage Support. If the source language is not specified, the API will\nattempt to identify the source language automatically and return it within\nthe response.", |
+ "type": "string" |
+ }, |
+ "model": { |
+ "description": "The `model` type requested for this translation. Valid values are\nlisted in public documentation.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"DetectLanguageRequest": { |
"description": "The request message for language detection.", |
"id": "DetectLanguageRequest", |
@@ -371,6 +415,11 @@ |
"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" |
@@ -378,60 +427,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" |
}, |
"type": "array" |
- }, |
- "TranslationsListResponse": { |
- "description": "The main language translation response message.", |
- "id": "TranslationsListResponse", |
- "properties": { |
- "translations": { |
- "description": "Translations contains list of translation results of given text", |
- "items": { |
- "$ref": "TranslationsResource" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "TranslateTextRequest": { |
- "description": "The main translation request message for the Cloud Translation API.", |
- "id": "TranslateTextRequest", |
- "properties": { |
- "target": { |
- "description": "The language to use for translation of the input text, set to one of the\nlanguage codes listed in Language Support.", |
- "type": "string" |
- }, |
- "format": { |
- "description": "The format of the source text, in either HTML (default) or plain-text. A\nvalue of \"html\" indicates HTML and a value of \"text\" indicates plain-text.", |
- "type": "string" |
- }, |
- "q": { |
- "description": "The input text to translate. Repeat this parameter to perform translation\noperations on multiple text inputs.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
- }, |
- "source": { |
- "description": "The language of the source text, set to one of the language codes listed in\nLanguage Support. If the source language is not specified, the API will\nattempt to identify the source language automatically and return it within\nthe response.", |
- "type": "string" |
- }, |
- "model": { |
- "description": "The `model` type requested for this translation. Valid values are\nlisted in public documentation.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
} |
}, |
"servicePath": "language/translate/", |