mirror of
https://github.com/octoleo/restic.git
synced 2024-11-18 02:55:18 +00:00
2b39f9f4b2
Among others, this updates minio-go, so that the new "eu-west-3" zone for AWS is supported.
441 lines
15 KiB
JSON
441 lines
15 KiB
JSON
{
|
|
"canonicalName": "Translate",
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"rootUrl": "https://translation.googleapis.com/",
|
|
"ownerDomain": "google.com",
|
|
"name": "translate",
|
|
"batchPath": "batch/translate",
|
|
"features": [
|
|
"dataWrapper"
|
|
],
|
|
"title": "Google Cloud Translation API",
|
|
"ownerName": "Google",
|
|
"resources": {
|
|
"detections": {
|
|
"methods": {
|
|
"list": {
|
|
"response": {
|
|
"$ref": "DetectionsListResponse"
|
|
},
|
|
"parameterOrder": [
|
|
"q"
|
|
],
|
|
"httpMethod": "GET",
|
|
"parameters": {
|
|
"q": {
|
|
"type": "string",
|
|
"required": true,
|
|
"repeated": true,
|
|
"location": "query",
|
|
"description": "The input text upon which to perform language detection. Repeat this\nparameter to perform language detection on multiple text inputs."
|
|
}
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-translation",
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"path": "v2/detect",
|
|
"id": "language.detections.list",
|
|
"description": "Detects the language of text within a request."
|
|
},
|
|
"detect": {
|
|
"description": "Detects the language of text within a request.",
|
|
"request": {
|
|
"$ref": "DetectLanguageRequest"
|
|
},
|
|
"response": {
|
|
"$ref": "DetectionsListResponse"
|
|
},
|
|
"parameterOrder": [],
|
|
"httpMethod": "POST",
|
|
"parameters": {},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-translation",
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"path": "v2/detect",
|
|
"id": "language.detections.detect"
|
|
}
|
|
}
|
|
},
|
|
"languages": {
|
|
"methods": {
|
|
"list": {
|
|
"response": {
|
|
"$ref": "LanguagesListResponse"
|
|
},
|
|
"httpMethod": "GET",
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-translation",
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"parameters": {
|
|
"model": {
|
|
"location": "query",
|
|
"description": "The model type for which supported languages should be returned.",
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"location": "query",
|
|
"description": "The language to use to return localized, human readable names of supported\nlanguages.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "language.languages.list",
|
|
"path": "v2/languages",
|
|
"description": "Returns a list of supported languages for translation."
|
|
}
|
|
}
|
|
},
|
|
"translations": {
|
|
"methods": {
|
|
"translate": {
|
|
"request": {
|
|
"$ref": "TranslateTextRequest"
|
|
},
|
|
"description": "Translates input text, returning translated text.",
|
|
"response": {
|
|
"$ref": "TranslationsListResponse"
|
|
},
|
|
"parameterOrder": [],
|
|
"httpMethod": "POST",
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-translation",
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"parameters": {},
|
|
"path": "v2",
|
|
"id": "language.translations.translate"
|
|
},
|
|
"list": {
|
|
"path": "v2",
|
|
"id": "language.translations.list",
|
|
"description": "Translates input text, returning translated text.",
|
|
"response": {
|
|
"$ref": "TranslationsListResponse"
|
|
},
|
|
"parameterOrder": [
|
|
"q",
|
|
"target"
|
|
],
|
|
"httpMethod": "GET",
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-translation",
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
],
|
|
"parameters": {
|
|
"source": {
|
|
"location": "query",
|
|
"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"
|
|
},
|
|
"cid": {
|
|
"type": "string",
|
|
"repeated": true,
|
|
"location": "query",
|
|
"description": "The customization id for translate"
|
|
},
|
|
"target": {
|
|
"location": "query",
|
|
"description": "The language to use for translation of the input text, set to one of the\nlanguage codes listed in Language Support.",
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"format": {
|
|
"location": "query",
|
|
"enum": [
|
|
"html",
|
|
"text"
|
|
],
|
|
"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",
|
|
"enumDescriptions": [
|
|
"Specifies the input is in HTML",
|
|
"Specifies the input is in plain textual format"
|
|
]
|
|
},
|
|
"model": {
|
|
"type": "string",
|
|
"location": "query",
|
|
"description": "The `model` type requested for this translation. Valid values are\nlisted in public documentation."
|
|
},
|
|
"q": {
|
|
"location": "query",
|
|
"description": "The input text to translate. Repeat this parameter to perform translation\noperations on multiple text inputs.",
|
|
"type": "string",
|
|
"required": true,
|
|
"repeated": true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"parameters": {
|
|
"upload_protocol": {
|
|
"location": "query",
|
|
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
|
"type": "string"
|
|
},
|
|
"prettyPrint": {
|
|
"location": "query",
|
|
"description": "Returns response with indentations and line breaks.",
|
|
"type": "boolean",
|
|
"default": "true"
|
|
},
|
|
"fields": {
|
|
"type": "string",
|
|
"location": "query",
|
|
"description": "Selector specifying which fields to include in a partial response."
|
|
},
|
|
"uploadType": {
|
|
"type": "string",
|
|
"location": "query",
|
|
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
|
|
},
|
|
"$.xgafv": {
|
|
"location": "query",
|
|
"enum": [
|
|
"1",
|
|
"2"
|
|
],
|
|
"description": "V1 error format.",
|
|
"type": "string",
|
|
"enumDescriptions": [
|
|
"v1 error format",
|
|
"v2 error format"
|
|
]
|
|
},
|
|
"callback": {
|
|
"type": "string",
|
|
"location": "query",
|
|
"description": "JSONP"
|
|
},
|
|
"alt": {
|
|
"type": "string",
|
|
"enumDescriptions": [
|
|
"Responses with Content-Type of application/json",
|
|
"Media download with context-dependent Content-Type",
|
|
"Responses with Content-Type of application/x-protobuf"
|
|
],
|
|
"location": "query",
|
|
"description": "Data format for response.",
|
|
"default": "json",
|
|
"enum": [
|
|
"json",
|
|
"media",
|
|
"proto"
|
|
]
|
|
},
|
|
"access_token": {
|
|
"location": "query",
|
|
"description": "OAuth access token.",
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"type": "string",
|
|
"location": "query",
|
|
"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."
|
|
},
|
|
"quotaUser": {
|
|
"location": "query",
|
|
"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.",
|
|
"type": "string"
|
|
},
|
|
"pp": {
|
|
"location": "query",
|
|
"description": "Pretty-print response.",
|
|
"type": "boolean",
|
|
"default": "true"
|
|
},
|
|
"bearer_token": {
|
|
"location": "query",
|
|
"description": "OAuth bearer token.",
|
|
"type": "string"
|
|
},
|
|
"oauth_token": {
|
|
"location": "query",
|
|
"description": "OAuth 2.0 token for the current user.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"version": "v2",
|
|
"baseUrl": "https://translation.googleapis.com/language/translate/",
|
|
"kind": "discovery#restDescription",
|
|
"description": "The Google Cloud Translation API lets websites and programs integrate with\n Google Translate programmatically.",
|
|
"servicePath": "language/translate/",
|
|
"basePath": "/language/translate/",
|
|
"revision": "20170525",
|
|
"documentationLink": "https://code.google.com/apis/language/translate/v2/getting_started.html",
|
|
"id": "translate:v2",
|
|
"discoveryVersion": "v1",
|
|
"schemas": {
|
|
"TranslationsResource": {
|
|
"type": "object",
|
|
"properties": {
|
|
"model": {
|
|
"type": "string",
|
|
"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."
|
|
},
|
|
"translatedText": {
|
|
"type": "string",
|
|
"description": "Text translated into the target language."
|
|
},
|
|
"detectedSourceLanguage": {
|
|
"type": "string",
|
|
"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."
|
|
}
|
|
},
|
|
"id": "TranslationsResource"
|
|
},
|
|
"DetectionsResource": {
|
|
"description": "An array of languages which we detect for the given text The most likely language list first.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"confidence": {
|
|
"type": "number",
|
|
"description": "The confidence of the detection result of this language.",
|
|
"format": "float"
|
|
},
|
|
"isReliable": {
|
|
"description": "A boolean to indicate is the language detection result reliable.",
|
|
"type": "boolean"
|
|
},
|
|
"language": {
|
|
"description": "The language we detected.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"id": "DetectionsResource"
|
|
},
|
|
"TranslationsListResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"translations": {
|
|
"description": "Translations contains list of translation results of given text",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "TranslationsResource"
|
|
}
|
|
}
|
|
},
|
|
"id": "TranslationsListResponse",
|
|
"description": "The main language translation response message."
|
|
},
|
|
"TranslateTextRequest": {
|
|
"description": "The main translation request message for the Cloud Translation API.",
|
|
"type": "object",
|
|
"properties": {
|
|
"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"
|
|
},
|
|
"target": {
|
|
"type": "string",
|
|
"description": "The language to use for translation of the input text, set to one of the\nlanguage codes listed in Language Support."
|
|
},
|
|
"q": {
|
|
"description": "The input text to translate. Repeat this parameter to perform translation\noperations on multiple text inputs.",
|
|
"type": "array",
|
|
"items": {
|
|
"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"
|
|
}
|
|
},
|
|
"id": "TranslateTextRequest"
|
|
},
|
|
"DetectLanguageRequest": {
|
|
"description": "The request message for language detection.",
|
|
"type": "object",
|
|
"properties": {
|
|
"q": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "The input text upon which to perform language detection. Repeat this\nparameter to perform language detection on multiple text inputs."
|
|
}
|
|
},
|
|
"id": "DetectLanguageRequest"
|
|
},
|
|
"LanguagesResource": {
|
|
"type": "object",
|
|
"properties": {
|
|
"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"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Human readable name of the language localized to the target language."
|
|
}
|
|
},
|
|
"id": "LanguagesResource"
|
|
},
|
|
"DetectionsListResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"detections": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "DetectionsResource"
|
|
},
|
|
"description": "A detections contains detection results of several text"
|
|
}
|
|
},
|
|
"id": "DetectionsListResponse"
|
|
},
|
|
"GetSupportedLanguagesRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"target": {
|
|
"description": "The language to use to return localized, human readable names of supported\nlanguages.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": "GetSupportedLanguagesRequest",
|
|
"description": "The request message for discovering supported languages."
|
|
},
|
|
"LanguagesListResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"languages": {
|
|
"description": "List of source/target languages supported by the translation API. If target parameter is unspecified, the list is sorted by the ASCII code point order of the language code. If target parameter is specified, the list is sorted by the collation order of the language name in the target language.",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "LanguagesResource"
|
|
}
|
|
}
|
|
},
|
|
"id": "LanguagesListResponse"
|
|
}
|
|
},
|
|
"icons": {
|
|
"x32": "https://www.google.com/images/icons/product/translate-32.png",
|
|
"x16": "https://www.google.com/images/icons/product/translate-16.png"
|
|
},
|
|
"protocol": "rest"
|
|
}
|