| Index: discovery/googleapis/translate__v2.json
|
| diff --git a/discovery/googleapis/translate__v2.json b/discovery/googleapis/translate__v2.json
|
| index c557881603e9ecb1073b8e1006126d29dbbfe84b..ef5304ecd3438d47fc5d293a5cc4a4e32bea3268 100644
|
| --- a/discovery/googleapis/translate__v2.json
|
| +++ b/discovery/googleapis/translate__v2.json
|
| @@ -31,16 +31,6 @@
|
| "ownerDomain": "google.com",
|
| "ownerName": "Google",
|
| "parameters": {
|
| - "access_token": {
|
| - "description": "OAuth access 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.",
|
| - "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",
|
| @@ -116,6 +106,16 @@
|
| ],
|
| "location": "query",
|
| "type": "string"
|
| + },
|
| + "access_token": {
|
| + "description": "OAuth access 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.",
|
| + "location": "query",
|
| + "type": "string"
|
| }
|
| },
|
| "protocol": "rest",
|
| @@ -174,13 +174,13 @@
|
| "httpMethod": "GET",
|
| "id": "language.languages.list",
|
| "parameters": {
|
| - "model": {
|
| - "description": "The model type for which supported languages should be returned.",
|
| + "target": {
|
| + "description": "The language to use to return localized, human readable names of supported\nlanguages.",
|
| "location": "query",
|
| "type": "string"
|
| },
|
| - "target": {
|
| - "description": "The language to use to return localized, human readable names of supported\nlanguages.",
|
| + "model": {
|
| + "description": "The model type for which supported languages should be returned.",
|
| "location": "query",
|
| "type": "string"
|
| }
|
| @@ -198,24 +198,6 @@
|
| },
|
| "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",
|
| @@ -225,11 +207,6 @@
|
| "target"
|
| ],
|
| "parameters": {
|
| - "model": {
|
| - "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",
|
| @@ -266,6 +243,11 @@
|
| ],
|
| "location": "query",
|
| "type": "string"
|
| + },
|
| + "model": {
|
| + "description": "The `model` type requested for this translation. Valid values are\nlisted in public documentation.",
|
| + "location": "query",
|
| + "type": "string"
|
| }
|
| },
|
| "path": "v2",
|
| @@ -276,6 +258,24 @@
|
| "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,20 +283,6 @@
|
| "revision": "20170525",
|
| "rootUrl": "https://translation.googleapis.com/",
|
| "schemas": {
|
| - "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": {
|
| @@ -334,6 +320,24 @@
|
| },
|
| "type": "object"
|
| },
|
| + "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"
|
| + },
|
| + "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"
|
| + }
|
| + },
|
| + "type": "object"
|
| + },
|
| "DetectionsResource": {
|
| "description": "An array of languages which we detect for the given text The most likely language list first.",
|
| "id": "DetectionsResource",
|
| @@ -357,24 +361,6 @@
|
| },
|
| "type": "array"
|
| },
|
| - "TranslationsResource": {
|
| - "id": "TranslationsResource",
|
| - "properties": {
|
| - "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"
|
| - },
|
| - "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"
|
| - }
|
| - },
|
| - "type": "object"
|
| - },
|
| "TranslationsListResponse": {
|
| "description": "The main language translation response message.",
|
| "id": "TranslationsListResponse",
|
| @@ -432,6 +418,20 @@
|
| }
|
| },
|
| "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/",
|
|
|