You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

236 lines
5.8 KiB

  1. {
  2. "kind": "discovery#restDescription",
  3. "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/sMgjc4eoIFjgub4daTU-MGW0WMA\"",
  4. "discoveryVersion": "v1",
  5. "id": "storage:v1",
  6. "name": "storage",
  7. "version": "v1",
  8. "revision": "20161109",
  9. "title": "Cloud Storage JSON API",
  10. "description": "Stores and retrieves potentially large, immutable data objects.",
  11. "ownerDomain": "google.com",
  12. "ownerName": "Google",
  13. "icons": {
  14. "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png",
  15. "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png"
  16. },
  17. "documentationLink": "https://developers.google.com/storage/docs/json_api/",
  18. "labels": [
  19. "labs"
  20. ],
  21. "protocol": "rest",
  22. "baseUrl": "https://www.googleapis.com/storage/v1/",
  23. "basePath": "/storage/v1/",
  24. "rootUrl": "https://www.googleapis.com/",
  25. "servicePath": "storage/v1/",
  26. "batchPath": "batch",
  27. "parameters": {
  28. "alt": {
  29. "type": "string",
  30. "description": "Data format for the response.",
  31. "default": "json",
  32. "enum": [
  33. "json"
  34. ],
  35. "enumDescriptions": [
  36. "Responses with Content-Type of application/json"
  37. ],
  38. "location": "query"
  39. },
  40. "fields": {
  41. "type": "string",
  42. "description": "Selector specifying which fields to include in a partial response.",
  43. "location": "query"
  44. },
  45. "key": {
  46. "type": "string",
  47. "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.",
  48. "location": "query"
  49. },
  50. "oauth_token": {
  51. "type": "string",
  52. "description": "OAuth 2.0 token for the current user.",
  53. "location": "query"
  54. },
  55. "prettyPrint": {
  56. "type": "boolean",
  57. "description": "Returns response with indentations and line breaks.",
  58. "default": "true",
  59. "location": "query"
  60. },
  61. "quotaUser": {
  62. "type": "string",
  63. "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.",
  64. "location": "query"
  65. },
  66. "userIp": {
  67. "type": "string",
  68. "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
  69. "location": "query"
  70. }
  71. },
  72. "auth": {
  73. "oauth2": {
  74. "scopes": {
  75. "https://www.googleapis.com/auth/cloud-platform": {
  76. "description": "View and manage your data across Google Cloud Platform services"
  77. },
  78. "https://www.googleapis.com/auth/cloud-platform.read-only": {
  79. "description": "View your data across Google Cloud Platform services"
  80. },
  81. "https://www.googleapis.com/auth/devstorage.full_control": {
  82. "description": "Manage your data and permissions in Google Cloud Storage"
  83. },
  84. "https://www.googleapis.com/auth/devstorage.read_only": {
  85. "description": "View your data in Google Cloud Storage"
  86. },
  87. "https://www.googleapis.com/auth/devstorage.read_write": {
  88. "description": "Manage your data in Google Cloud Storage"
  89. }
  90. }
  91. }
  92. },
  93. "features": [
  94. "dataWrapper"
  95. ],
  96. "schemas": {
  97. "Bucket": {
  98. "id": "Bucket",
  99. "type": "object",
  100. "description": "A bucket.",
  101. "properties": {
  102. "cors": {
  103. "type": "array",
  104. "items": {
  105. "type": "object",
  106. "properties": {
  107. "maxAgeSeconds": {
  108. "type": "integer",
  109. "format": "int32"
  110. },
  111. "method": {
  112. "type": "array",
  113. "items": {
  114. "type": "string"
  115. }
  116. }
  117. }
  118. }
  119. },
  120. "id": {
  121. "type": "string"
  122. },
  123. "kind": {
  124. "type": "string",
  125. "default": "storage#bucket"
  126. }
  127. }
  128. },
  129. "Buckets": {
  130. "id": "Buckets",
  131. "type": "object",
  132. "properties": {
  133. "items": {
  134. "type": "array",
  135. "items": {
  136. "$ref": "Bucket"
  137. }
  138. }
  139. }
  140. },
  141. "VariantExample": {
  142. "id": "VariantExample",
  143. "type": "object",
  144. "variant": {
  145. "discriminant": "type",
  146. "map": [
  147. {
  148. "type_value": "Bucket",
  149. "$ref": "Bucket"
  150. },
  151. {
  152. "type_value": "Buckets",
  153. "$ref": "Buckets"
  154. }
  155. ]
  156. }
  157. }
  158. },
  159. "methods": {
  160. "getCertForOpenIdConnect": {
  161. "id": "oauth2.getCertForOpenIdConnect",
  162. "path": "oauth2/v1/certs",
  163. "httpMethod": "GET",
  164. "response": {
  165. "$ref": "Bucket"
  166. }
  167. }
  168. },
  169. "resources": {
  170. "buckets": {
  171. "methods": {
  172. "get": {
  173. "id": "storage.buckets.get",
  174. "path": "b/{bucket}",
  175. "httpMethod": "GET",
  176. "description": "d",
  177. "parameters": {
  178. "bucket": {
  179. "type": "string",
  180. "required": true,
  181. "location": "path"
  182. },
  183. "ifMetagenerationMatch": {
  184. "type": "string",
  185. "format": "int64",
  186. "location": "query"
  187. },
  188. "projection": {
  189. "type": "string",
  190. "enum": [
  191. "full",
  192. "noAcl"
  193. ],
  194. "enumDescriptions": [
  195. "Include all properties.",
  196. "Omit owner, acl and defaultObjectAcl properties."
  197. ],
  198. "location": "query"
  199. }
  200. },
  201. "parameterOrder": [
  202. "bucket"
  203. ],
  204. "response": {
  205. "$ref": "Bucket"
  206. },
  207. "scopes": [
  208. "https://www.googleapis.com/auth/cloud-platform",
  209. "https://www.googleapis.com/auth/cloud-platform.read-only",
  210. "https://www.googleapis.com/auth/devstorage.full_control",
  211. "https://www.googleapis.com/auth/devstorage.read_only",
  212. "https://www.googleapis.com/auth/devstorage.read_write"
  213. ],
  214. "supportsMediaDownload": true,
  215. "mediaUpload": {
  216. "accept": [
  217. "application/octet-stream"
  218. ],
  219. "maxSize": "1GB",
  220. "protocols": {
  221. "simple": {
  222. "multipart": true,
  223. "path": "/upload/customDataSources/{customDataSourceId}/uploads"
  224. },
  225. "resumable": {
  226. "multipart": true,
  227. "path": "/resumable/upload/customDataSources/{customDataSourceId}/uploads"
  228. }
  229. }
  230. }
  231. }
  232. }
  233. }
  234. }
  235. }