blob: e069fe7927e4189e27bd3f99829419de32178d4e [file] [log] [blame]
Anthonios Partheniou10f4b672021-04-13 14:47:53 -04001{
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "See, edit, configure, and delete your Google Cloud Platform data"
7 },
8 "https://www.googleapis.com/auth/firebase": {
9 "description": "View and administer all your Firebase data and settings"
10 }
11 }
12 }
13 },
14 "basePath": "",
15 "baseUrl": "https://firebasestorage.googleapis.com/",
16 "batchPath": "batch",
17 "canonicalName": "Firebasestorage",
18 "description": "The Cloud Storage for Firebase API enables programmatic management of Cloud Storage buckets for use in Firebase projects",
19 "discoveryVersion": "v1",
20 "documentationLink": "https://firebase.google.com/docs/storage",
21 "fullyEncodeReservedExpansion": true,
22 "icons": {
23 "x16": "http://www.google.com/images/icons/product/search-16.gif",
24 "x32": "http://www.google.com/images/icons/product/search-32.gif"
25 },
26 "id": "firebasestorage:v1beta",
27 "kind": "discovery#restDescription",
28 "mtlsRootUrl": "https://firebasestorage.mtls.googleapis.com/",
29 "name": "firebasestorage",
30 "ownerDomain": "google.com",
31 "ownerName": "Google",
32 "parameters": {
33 "$.xgafv": {
34 "description": "V1 error format.",
35 "enum": [
36 "1",
37 "2"
38 ],
39 "enumDescriptions": [
40 "v1 error format",
41 "v2 error format"
42 ],
43 "location": "query",
44 "type": "string"
45 },
46 "access_token": {
47 "description": "OAuth access token.",
48 "location": "query",
49 "type": "string"
50 },
51 "alt": {
52 "default": "json",
53 "description": "Data format for response.",
54 "enum": [
55 "json",
56 "media",
57 "proto"
58 ],
59 "enumDescriptions": [
60 "Responses with Content-Type of application/json",
61 "Media download with context-dependent Content-Type",
62 "Responses with Content-Type of application/x-protobuf"
63 ],
64 "location": "query",
65 "type": "string"
66 },
67 "callback": {
68 "description": "JSONP",
69 "location": "query",
70 "type": "string"
71 },
72 "fields": {
73 "description": "Selector specifying which fields to include in a partial response.",
74 "location": "query",
75 "type": "string"
76 },
77 "key": {
78 "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.",
79 "location": "query",
80 "type": "string"
81 },
82 "oauth_token": {
83 "description": "OAuth 2.0 token for the current user.",
84 "location": "query",
85 "type": "string"
86 },
87 "prettyPrint": {
88 "default": "true",
89 "description": "Returns response with indentations and line breaks.",
90 "location": "query",
91 "type": "boolean"
92 },
93 "quotaUser": {
94 "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.",
95 "location": "query",
96 "type": "string"
97 },
98 "uploadType": {
99 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
100 "location": "query",
101 "type": "string"
102 },
103 "upload_protocol": {
104 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
105 "location": "query",
106 "type": "string"
107 }
108 },
109 "protocol": "rest",
110 "resources": {
111 "projects": {
112 "resources": {
113 "buckets": {
114 "methods": {
115 "addFirebase": {
116 "description": "Links a Google Cloud Storage bucket to a Firebase project.",
117 "flatPath": "v1beta/projects/{projectsId}/buckets/{bucketsId}:addFirebase",
118 "httpMethod": "POST",
119 "id": "firebasestorage.projects.buckets.addFirebase",
120 "parameterOrder": [
121 "bucket"
122 ],
123 "parameters": {
124 "bucket": {
125 "description": "Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket. Because bucket resource names are unique across projects, you may omit the project number, `projects/-/buckets/{bucket_id}`.",
126 "location": "path",
127 "pattern": "^projects/[^/]+/buckets/[^/]+$",
128 "required": true,
129 "type": "string"
130 }
131 },
132 "path": "v1beta/{+bucket}:addFirebase",
133 "request": {
134 "$ref": "AddFirebaseRequest"
135 },
136 "response": {
137 "$ref": "Bucket"
138 },
139 "scopes": [
140 "https://www.googleapis.com/auth/cloud-platform",
141 "https://www.googleapis.com/auth/firebase"
142 ]
143 },
144 "get": {
145 "description": "Gets a single linked storage bucket.",
146 "flatPath": "v1beta/projects/{projectsId}/buckets/{bucketsId}",
147 "httpMethod": "GET",
148 "id": "firebasestorage.projects.buckets.get",
149 "parameterOrder": [
150 "name"
151 ],
152 "parameters": {
153 "name": {
154 "description": "Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket. Because bucket resource names are unique across projects, you may omit the project number, `projects/-/buckets/{bucket_id}`.",
155 "location": "path",
156 "pattern": "^projects/[^/]+/buckets/[^/]+$",
157 "required": true,
158 "type": "string"
159 }
160 },
161 "path": "v1beta/{+name}",
162 "response": {
163 "$ref": "Bucket"
164 },
165 "scopes": [
166 "https://www.googleapis.com/auth/cloud-platform",
167 "https://www.googleapis.com/auth/firebase"
168 ]
169 },
170 "list": {
171 "description": "Lists the linked storage buckets for a project.",
172 "flatPath": "v1beta/projects/{projectsId}/buckets",
173 "httpMethod": "GET",
174 "id": "firebasestorage.projects.buckets.list",
175 "parameterOrder": [
176 "parent"
177 ],
178 "parameters": {
179 "pageSize": {
180 "description": "The maximum number of buckets to return. If not set, the server will use a reasonable default.",
181 "format": "int32",
182 "location": "query",
183 "type": "integer"
184 },
185 "pageToken": {
186 "description": "A page token, received from a previous `ListBuckets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBuckets` must match the call that provided the page token.",
187 "location": "query",
188 "type": "string"
189 },
190 "parent": {
191 "description": "Required. Resource name of the parent Firebase project, `projects/{project_number}`.",
192 "location": "path",
193 "pattern": "^projects/[^/]+$",
194 "required": true,
195 "type": "string"
196 }
197 },
198 "path": "v1beta/{+parent}/buckets",
199 "response": {
200 "$ref": "ListBucketsResponse"
201 },
202 "scopes": [
203 "https://www.googleapis.com/auth/cloud-platform",
204 "https://www.googleapis.com/auth/firebase"
205 ]
206 },
207 "removeFirebase": {
208 "description": "Unlinks a linked Google Cloud Storage bucket from a Firebase project.",
209 "flatPath": "v1beta/projects/{projectsId}/buckets/{bucketsId}:removeFirebase",
210 "httpMethod": "POST",
211 "id": "firebasestorage.projects.buckets.removeFirebase",
212 "parameterOrder": [
213 "bucket"
214 ],
215 "parameters": {
216 "bucket": {
217 "description": "Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket. Because bucket resource names are unique across projects, you may omit the project number, `projects/-/buckets/{bucket_id}`.",
218 "location": "path",
219 "pattern": "^projects/[^/]+/buckets/[^/]+$",
220 "required": true,
221 "type": "string"
222 }
223 },
224 "path": "v1beta/{+bucket}:removeFirebase",
225 "request": {
226 "$ref": "RemoveFirebaseRequest"
227 },
228 "response": {
229 "$ref": "Empty"
230 },
231 "scopes": [
232 "https://www.googleapis.com/auth/cloud-platform",
233 "https://www.googleapis.com/auth/firebase"
234 ]
235 }
236 }
237 }
238 }
239 }
240 },
yoshi-code-botab1d6dc2021-05-28 00:42:02 -0700241 "revision": "20210521",
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400242 "rootUrl": "https://firebasestorage.googleapis.com/",
243 "schemas": {
244 "AddFirebaseRequest": {
245 "description": "The request used to link a Google Cloud Storage bucket to a Firebase project.",
246 "id": "AddFirebaseRequest",
247 "properties": {},
248 "type": "object"
249 },
250 "Bucket": {
251 "description": "A storage bucket and its relation to a parent Firebase project.",
252 "id": "Bucket",
253 "properties": {
254 "name": {
255 "description": "Resource name of the bucket.",
256 "type": "string"
yoshi-code-bot27f691d2021-05-10 04:12:02 -0700257 },
258 "reconciling": {
259 "description": "Output only. Represents whether a bucket is being moved to a new location, in which case reconciling is set to true.",
260 "readOnly": true,
261 "type": "boolean"
Anthonios Partheniou10f4b672021-04-13 14:47:53 -0400262 }
263 },
264 "type": "object"
265 },
266 "Empty": {
267 "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.",
268 "id": "Empty",
269 "properties": {},
270 "type": "object"
271 },
272 "ListBucketsResponse": {
273 "description": "The response returned by `ListBuckets`.",
274 "id": "ListBucketsResponse",
275 "properties": {
276 "buckets": {
277 "description": "The list of linked buckets.",
278 "items": {
279 "$ref": "Bucket"
280 },
281 "type": "array"
282 },
283 "nextPageToken": {
284 "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
285 "type": "string"
286 }
287 },
288 "type": "object"
289 },
290 "RemoveFirebaseRequest": {
291 "description": "The request used to unlink a Google Cloud Storage bucket from a Firebase project.",
292 "id": "RemoveFirebaseRequest",
293 "properties": {},
294 "type": "object"
295 }
296 },
297 "servicePath": "",
298 "title": "Cloud Storage for Firebase API",
299 "version": "v1beta",
300 "version_module": true
301}