mirror of
https://github.com/restic/restic.git
synced 2024-08-29 23:57:24 +02:00
236 lines
5.8 KiB
JSON
236 lines
5.8 KiB
JSON
{
|
|
"kind": "discovery#restDescription",
|
|
"etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/sMgjc4eoIFjgub4daTU-MGW0WMA\"",
|
|
"discoveryVersion": "v1",
|
|
"id": "storage:v1",
|
|
"name": "storage",
|
|
"version": "v1",
|
|
"revision": "20161109",
|
|
"title": "Cloud Storage JSON API",
|
|
"description": "Stores and retrieves potentially large, immutable data objects.",
|
|
"ownerDomain": "google.com",
|
|
"ownerName": "Google",
|
|
"icons": {
|
|
"x16": "https://www.google.com/images/icons/product/cloud_storage-16.png",
|
|
"x32": "https://www.google.com/images/icons/product/cloud_storage-32.png"
|
|
},
|
|
"documentationLink": "https://developers.google.com/storage/docs/json_api/",
|
|
"labels": [
|
|
"labs"
|
|
],
|
|
"protocol": "rest",
|
|
"baseUrl": "https://www.googleapis.com/storage/v1/",
|
|
"basePath": "/storage/v1/",
|
|
"rootUrl": "https://www.googleapis.com/",
|
|
"servicePath": "storage/v1/",
|
|
"batchPath": "batch",
|
|
"parameters": {
|
|
"alt": {
|
|
"type": "string",
|
|
"description": "Data format for the response.",
|
|
"default": "json",
|
|
"enum": [
|
|
"json"
|
|
],
|
|
"enumDescriptions": [
|
|
"Responses with Content-Type of application/json"
|
|
],
|
|
"location": "query"
|
|
},
|
|
"fields": {
|
|
"type": "string",
|
|
"description": "Selector specifying which fields to include in a partial response.",
|
|
"location": "query"
|
|
},
|
|
"key": {
|
|
"type": "string",
|
|
"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"
|
|
},
|
|
"oauth_token": {
|
|
"type": "string",
|
|
"description": "OAuth 2.0 token for the current user.",
|
|
"location": "query"
|
|
},
|
|
"prettyPrint": {
|
|
"type": "boolean",
|
|
"description": "Returns response with indentations and line breaks.",
|
|
"default": "true",
|
|
"location": "query"
|
|
},
|
|
"quotaUser": {
|
|
"type": "string",
|
|
"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"
|
|
},
|
|
"userIp": {
|
|
"type": "string",
|
|
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
|
"location": "query"
|
|
}
|
|
},
|
|
"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-platform.read-only": {
|
|
"description": "View your data across Google Cloud Platform services"
|
|
},
|
|
"https://www.googleapis.com/auth/devstorage.full_control": {
|
|
"description": "Manage your data and permissions in Google Cloud Storage"
|
|
},
|
|
"https://www.googleapis.com/auth/devstorage.read_only": {
|
|
"description": "View your data in Google Cloud Storage"
|
|
},
|
|
"https://www.googleapis.com/auth/devstorage.read_write": {
|
|
"description": "Manage your data in Google Cloud Storage"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"features": [
|
|
"dataWrapper"
|
|
],
|
|
"schemas": {
|
|
"Bucket": {
|
|
"id": "Bucket",
|
|
"type": "object",
|
|
"description": "A bucket.",
|
|
"properties": {
|
|
"cors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"maxAgeSeconds": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"method": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"kind": {
|
|
"type": "string",
|
|
"default": "storage#bucket"
|
|
}
|
|
}
|
|
},
|
|
"Buckets": {
|
|
"id": "Buckets",
|
|
"type": "object",
|
|
"properties": {
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "Bucket"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"VariantExample": {
|
|
"id": "VariantExample",
|
|
"type": "object",
|
|
"variant": {
|
|
"discriminant": "type",
|
|
"map": [
|
|
{
|
|
"type_value": "Bucket",
|
|
"$ref": "Bucket"
|
|
},
|
|
{
|
|
"type_value": "Buckets",
|
|
"$ref": "Buckets"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"methods": {
|
|
"getCertForOpenIdConnect": {
|
|
"id": "oauth2.getCertForOpenIdConnect",
|
|
"path": "oauth2/v1/certs",
|
|
"httpMethod": "GET",
|
|
"response": {
|
|
"$ref": "Bucket"
|
|
}
|
|
}
|
|
},
|
|
"resources": {
|
|
"buckets": {
|
|
"methods": {
|
|
"get": {
|
|
"id": "storage.buckets.get",
|
|
"path": "b/{bucket}",
|
|
"httpMethod": "GET",
|
|
"description": "d",
|
|
"parameters": {
|
|
"bucket": {
|
|
"type": "string",
|
|
"required": true,
|
|
"location": "path"
|
|
},
|
|
"ifMetagenerationMatch": {
|
|
"type": "string",
|
|
"format": "int64",
|
|
"location": "query"
|
|
},
|
|
"projection": {
|
|
"type": "string",
|
|
"enum": [
|
|
"full",
|
|
"noAcl"
|
|
],
|
|
"enumDescriptions": [
|
|
"Include all properties.",
|
|
"Omit owner, acl and defaultObjectAcl properties."
|
|
],
|
|
"location": "query"
|
|
}
|
|
},
|
|
"parameterOrder": [
|
|
"bucket"
|
|
],
|
|
"response": {
|
|
"$ref": "Bucket"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform",
|
|
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
|
"https://www.googleapis.com/auth/devstorage.full_control",
|
|
"https://www.googleapis.com/auth/devstorage.read_only",
|
|
"https://www.googleapis.com/auth/devstorage.read_write"
|
|
],
|
|
"supportsMediaDownload": true,
|
|
"mediaUpload": {
|
|
"accept": [
|
|
"application/octet-stream"
|
|
],
|
|
"maxSize": "1GB",
|
|
"protocols": {
|
|
"simple": {
|
|
"multipart": true,
|
|
"path": "/upload/customDataSources/{customDataSourceId}/uploads"
|
|
},
|
|
"resumable": {
|
|
"multipart": true,
|
|
"path": "/resumable/upload/customDataSources/{customDataSourceId}/uploads"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|