Skip to content

Commit eb5c6c1

Browse files
feat(firebasestorage): update the api
#### firebasestorage:v1beta The following keys were added: - resources.projects.methods.deleteDefaultBucket (Total Keys: 11) - resources.projects.methods.getDefaultBucket (Total Keys: 11) - resources.projects.resources.defaultBucket.methods.create (Total Keys: 12) - schemas.DefaultBucket (Total Keys: 7)
1 parent df52483 commit eb5c6c1

File tree

3 files changed

+290
-1
lines changed

3 files changed

+290
-1
lines changed
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
<html><body>
2+
<style>
3+
4+
body, h1, h2, h3, div, span, p, pre, a {
5+
margin: 0;
6+
padding: 0;
7+
border: 0;
8+
font-weight: inherit;
9+
font-style: inherit;
10+
font-size: 100%;
11+
font-family: inherit;
12+
vertical-align: baseline;
13+
}
14+
15+
body {
16+
font-size: 13px;
17+
padding: 1em;
18+
}
19+
20+
h1 {
21+
font-size: 26px;
22+
margin-bottom: 1em;
23+
}
24+
25+
h2 {
26+
font-size: 24px;
27+
margin-bottom: 1em;
28+
}
29+
30+
h3 {
31+
font-size: 20px;
32+
margin-bottom: 1em;
33+
margin-top: 1em;
34+
}
35+
36+
pre, code {
37+
line-height: 1.5;
38+
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39+
}
40+
41+
pre {
42+
margin-top: 0.5em;
43+
}
44+
45+
h1, h2, h3, p {
46+
font-family: Arial, sans serif;
47+
}
48+
49+
h1, h2, h3 {
50+
border-bottom: solid #CCC 1px;
51+
}
52+
53+
.toc_element {
54+
margin-top: 0.5em;
55+
}
56+
57+
.firstline {
58+
margin-left: 2 em;
59+
}
60+
61+
.method {
62+
margin-top: 1em;
63+
border: solid 1px #CCC;
64+
padding: 1em;
65+
background: #EEE;
66+
}
67+
68+
.details {
69+
font-weight: bold;
70+
font-size: 14px;
71+
}
72+
73+
</style>
74+
75+
<h1><a href="firebasestorage_v1beta.html">Cloud Storage for Firebase API</a> . <a href="firebasestorage_v1beta.projects.html">projects</a> . <a href="firebasestorage_v1beta.projects.defaultBucket.html">defaultBucket</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="#close">close()</a></code></p>
79+
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Creates a Spark tier-eligible Cloud Storage bucket and links it to your Firebase project. If the default bucket already exists, this method will re-link it to your Firebase project. See https://firebase.google.com/pricing for pricing details.</p>
83+
<h3>Method Details</h3>
84+
<div class="method">
85+
<code class="details" id="close">close()</code>
86+
<pre>Close httplib2 connections.</pre>
87+
</div>
88+
89+
<div class="method">
90+
<code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
91+
<pre>Creates a Spark tier-eligible Cloud Storage bucket and links it to your Firebase project. If the default bucket already exists, this method will re-link it to your Firebase project. See https://firebase.google.com/pricing for pricing details.
92+
93+
Args:
94+
parent: string, Required. The parent resource where the default bucket will be created, `projects/{project_id_or_number}`. (required)
95+
body: object, The request body.
96+
The object takes the form of:
97+
98+
{ # Spark tier-eligible Cloud Storage bucket. One per project. This resource exists if the underlying Cloud Storage bucket exists and it is linked to your Firebase project. See https://firebase.google.com/pricing for pricing details.
99+
&quot;bucket&quot;: { # A storage bucket and its relation to a parent Firebase project. # Output only. Underlying bucket resource.
100+
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the bucket.
101+
},
102+
&quot;location&quot;: &quot;A String&quot;, # Immutable. Location of the default bucket.
103+
&quot;name&quot;: &quot;A String&quot;, # Resource name of the default bucket.
104+
&quot;storageClass&quot;: &quot;A String&quot;, # Immutable. Storage class of the default bucket. Supported values are available at https://cloud.google.com/storage/docs/storage-classes#classes.
105+
}
106+
107+
x__xgafv: string, V1 error format.
108+
Allowed values
109+
1 - v1 error format
110+
2 - v2 error format
111+
112+
Returns:
113+
An object of the form:
114+
115+
{ # Spark tier-eligible Cloud Storage bucket. One per project. This resource exists if the underlying Cloud Storage bucket exists and it is linked to your Firebase project. See https://firebase.google.com/pricing for pricing details.
116+
&quot;bucket&quot;: { # A storage bucket and its relation to a parent Firebase project. # Output only. Underlying bucket resource.
117+
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the bucket.
118+
},
119+
&quot;location&quot;: &quot;A String&quot;, # Immutable. Location of the default bucket.
120+
&quot;name&quot;: &quot;A String&quot;, # Resource name of the default bucket.
121+
&quot;storageClass&quot;: &quot;A String&quot;, # Immutable. Storage class of the default bucket. Supported values are available at https://cloud.google.com/storage/docs/storage-classes#classes.
122+
}</pre>
123+
</div>
124+
125+
</body></html>

docs/dyn/firebasestorage_v1beta.projects.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,66 @@ <h2>Instance Methods</h2>
7979
</p>
8080
<p class="firstline">Returns the buckets Resource.</p>
8181

82+
<p class="toc_element">
83+
<code><a href="firebasestorage_v1beta.projects.defaultBucket.html">defaultBucket()</a></code>
84+
</p>
85+
<p class="firstline">Returns the defaultBucket Resource.</p>
86+
8287
<p class="toc_element">
8388
<code><a href="#close">close()</a></code></p>
8489
<p class="firstline">Close httplib2 connections.</p>
90+
<p class="toc_element">
91+
<code><a href="#deleteDefaultBucket">deleteDefaultBucket(name, x__xgafv=None)</a></code></p>
92+
<p class="firstline">Unlinks and deletes the default bucket.</p>
93+
<p class="toc_element">
94+
<code><a href="#getDefaultBucket">getDefaultBucket(name, x__xgafv=None)</a></code></p>
95+
<p class="firstline">Gets the default bucket.</p>
8596
<h3>Method Details</h3>
8697
<div class="method">
8798
<code class="details" id="close">close()</code>
8899
<pre>Close httplib2 connections.</pre>
89100
</div>
90101

102+
<div class="method">
103+
<code class="details" id="deleteDefaultBucket">deleteDefaultBucket(name, x__xgafv=None)</code>
104+
<pre>Unlinks and deletes the default bucket.
105+
106+
Args:
107+
name: string, Required. The name of the default bucket to delete, `projects/{project_id_or_number}/defaultBucket`. (required)
108+
x__xgafv: string, V1 error format.
109+
Allowed values
110+
1 - v1 error format
111+
2 - v2 error format
112+
113+
Returns:
114+
An object of the form:
115+
116+
{ # 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); }
117+
}</pre>
118+
</div>
119+
120+
<div class="method">
121+
<code class="details" id="getDefaultBucket">getDefaultBucket(name, x__xgafv=None)</code>
122+
<pre>Gets the default bucket.
123+
124+
Args:
125+
name: string, Required. The name of the default bucket to retrieve, `projects/{project_id_or_number}/defaultBucket`. (required)
126+
x__xgafv: string, V1 error format.
127+
Allowed values
128+
1 - v1 error format
129+
2 - v2 error format
130+
131+
Returns:
132+
An object of the form:
133+
134+
{ # Spark tier-eligible Cloud Storage bucket. One per project. This resource exists if the underlying Cloud Storage bucket exists and it is linked to your Firebase project. See https://firebase.google.com/pricing for pricing details.
135+
&quot;bucket&quot;: { # A storage bucket and its relation to a parent Firebase project. # Output only. Underlying bucket resource.
136+
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the bucket.
137+
},
138+
&quot;location&quot;: &quot;A String&quot;, # Immutable. Location of the default bucket.
139+
&quot;name&quot;: &quot;A String&quot;, # Resource name of the default bucket.
140+
&quot;storageClass&quot;: &quot;A String&quot;, # Immutable. Storage class of the default bucket. Supported values are available at https://cloud.google.com/storage/docs/storage-classes#classes.
141+
}</pre>
142+
</div>
143+
91144
</body></html>

googleapiclient/discovery_cache/documents/firebasestorage.v1beta.json

Lines changed: 112 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,60 @@
109109
"protocol": "rest",
110110
"resources": {
111111
"projects": {
112+
"methods": {
113+
"deleteDefaultBucket": {
114+
"description": "Unlinks and deletes the default bucket.",
115+
"flatPath": "v1beta/projects/{projectsId}/defaultBucket",
116+
"httpMethod": "DELETE",
117+
"id": "firebasestorage.projects.deleteDefaultBucket",
118+
"parameterOrder": [
119+
"name"
120+
],
121+
"parameters": {
122+
"name": {
123+
"description": "Required. The name of the default bucket to delete, `projects/{project_id_or_number}/defaultBucket`.",
124+
"location": "path",
125+
"pattern": "^projects/[^/]+/defaultBucket$",
126+
"required": true,
127+
"type": "string"
128+
}
129+
},
130+
"path": "v1beta/{+name}",
131+
"response": {
132+
"$ref": "Empty"
133+
},
134+
"scopes": [
135+
"https://www.googleapis.com/auth/cloud-platform",
136+
"https://www.googleapis.com/auth/firebase"
137+
]
138+
},
139+
"getDefaultBucket": {
140+
"description": "Gets the default bucket.",
141+
"flatPath": "v1beta/projects/{projectsId}/defaultBucket",
142+
"httpMethod": "GET",
143+
"id": "firebasestorage.projects.getDefaultBucket",
144+
"parameterOrder": [
145+
"name"
146+
],
147+
"parameters": {
148+
"name": {
149+
"description": "Required. The name of the default bucket to retrieve, `projects/{project_id_or_number}/defaultBucket`.",
150+
"location": "path",
151+
"pattern": "^projects/[^/]+/defaultBucket$",
152+
"required": true,
153+
"type": "string"
154+
}
155+
},
156+
"path": "v1beta/{+name}",
157+
"response": {
158+
"$ref": "DefaultBucket"
159+
},
160+
"scopes": [
161+
"https://www.googleapis.com/auth/cloud-platform",
162+
"https://www.googleapis.com/auth/firebase"
163+
]
164+
}
165+
},
112166
"resources": {
113167
"buckets": {
114168
"methods": {
@@ -234,11 +288,44 @@
234288
]
235289
}
236290
}
291+
},
292+
"defaultBucket": {
293+
"methods": {
294+
"create": {
295+
"description": "Creates a Spark tier-eligible Cloud Storage bucket and links it to your Firebase project. If the default bucket already exists, this method will re-link it to your Firebase project. See https://firebase.google.com/pricing for pricing details.",
296+
"flatPath": "v1beta/projects/{projectsId}/defaultBucket",
297+
"httpMethod": "POST",
298+
"id": "firebasestorage.projects.defaultBucket.create",
299+
"parameterOrder": [
300+
"parent"
301+
],
302+
"parameters": {
303+
"parent": {
304+
"description": "Required. The parent resource where the default bucket will be created, `projects/{project_id_or_number}`.",
305+
"location": "path",
306+
"pattern": "^projects/[^/]+$",
307+
"required": true,
308+
"type": "string"
309+
}
310+
},
311+
"path": "v1beta/{+parent}/defaultBucket",
312+
"request": {
313+
"$ref": "DefaultBucket"
314+
},
315+
"response": {
316+
"$ref": "DefaultBucket"
317+
},
318+
"scopes": [
319+
"https://www.googleapis.com/auth/cloud-platform",
320+
"https://www.googleapis.com/auth/firebase"
321+
]
322+
}
323+
}
237324
}
238325
}
239326
}
240327
},
241-
"revision": "20240621",
328+
"revision": "20241111",
242329
"rootUrl": "https://firebasestorage.googleapis.com/",
243330
"schemas": {
244331
"AddFirebaseRequest": {
@@ -259,6 +346,30 @@
259346
},
260347
"type": "object"
261348
},
349+
"DefaultBucket": {
350+
"description": "Spark tier-eligible Cloud Storage bucket. One per project. This resource exists if the underlying Cloud Storage bucket exists and it is linked to your Firebase project. See https://firebase.google.com/pricing for pricing details.",
351+
"id": "DefaultBucket",
352+
"properties": {
353+
"bucket": {
354+
"$ref": "Bucket",
355+
"description": "Output only. Underlying bucket resource.",
356+
"readOnly": true
357+
},
358+
"location": {
359+
"description": "Immutable. Location of the default bucket.",
360+
"type": "string"
361+
},
362+
"name": {
363+
"description": "Resource name of the default bucket.",
364+
"type": "string"
365+
},
366+
"storageClass": {
367+
"description": "Immutable. Storage class of the default bucket. Supported values are available at https://cloud.google.com/storage/docs/storage-classes#classes.",
368+
"type": "string"
369+
}
370+
},
371+
"type": "object"
372+
},
262373
"Empty": {
263374
"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); }",
264375
"id": "Empty",

0 commit comments

Comments
 (0)