Skip to content

Commit d1b06fe

Browse files
yoshi-automationsofisl
authored andcommitted
feat(firebasestorage)!: update the API
BREAKING CHANGE: This release has breaking changes. #### firebasestorage:v1beta The following keys were deleted: - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.description - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.id - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.properties.createTime.description - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.properties.createTime.format - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.properties.createTime.type - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.properties.lastUpdateTime.description - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.properties.lastUpdateTime.format - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.properties.lastUpdateTime.type - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.properties.state.description - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.properties.state.enum - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.properties.state.enumDescriptions - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.properties.state.type - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata.type - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.description - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.id - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.properties.createTime.description - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.properties.createTime.format - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.properties.createTime.type - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.properties.lastUpdateTime.description - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.properties.lastUpdateTime.format - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.properties.lastUpdateTime.type - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.properties.state.description - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.properties.state.enum - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.properties.state.enumDescriptions - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.properties.state.type - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata.type The following keys were added: - resources.projects.methods.deleteDefaultBucket.description - resources.projects.methods.deleteDefaultBucket.flatPath - resources.projects.methods.deleteDefaultBucket.httpMethod - resources.projects.methods.deleteDefaultBucket.id - resources.projects.methods.deleteDefaultBucket.parameterOrder - resources.projects.methods.deleteDefaultBucket.parameters.name.description - resources.projects.methods.deleteDefaultBucket.parameters.name.location - resources.projects.methods.deleteDefaultBucket.parameters.name.pattern - resources.projects.methods.deleteDefaultBucket.parameters.name.required - resources.projects.methods.deleteDefaultBucket.parameters.name.type - resources.projects.methods.deleteDefaultBucket.path - resources.projects.methods.deleteDefaultBucket.response.$ref - resources.projects.methods.deleteDefaultBucket.scopes - resources.projects.methods.getDefaultBucket.description - resources.projects.methods.getDefaultBucket.flatPath - resources.projects.methods.getDefaultBucket.httpMethod - resources.projects.methods.getDefaultBucket.id - resources.projects.methods.getDefaultBucket.parameterOrder - resources.projects.methods.getDefaultBucket.parameters.name.description - resources.projects.methods.getDefaultBucket.parameters.name.location - resources.projects.methods.getDefaultBucket.parameters.name.pattern - resources.projects.methods.getDefaultBucket.parameters.name.required - resources.projects.methods.getDefaultBucket.parameters.name.type - resources.projects.methods.getDefaultBucket.path - resources.projects.methods.getDefaultBucket.response.$ref - resources.projects.methods.getDefaultBucket.scopes - resources.projects.resources.defaultBucket.methods.create.description - resources.projects.resources.defaultBucket.methods.create.flatPath - resources.projects.resources.defaultBucket.methods.create.httpMethod - resources.projects.resources.defaultBucket.methods.create.id - resources.projects.resources.defaultBucket.methods.create.parameterOrder - resources.projects.resources.defaultBucket.methods.create.parameters.parent.description - resources.projects.resources.defaultBucket.methods.create.parameters.parent.location - resources.projects.resources.defaultBucket.methods.create.parameters.parent.pattern - resources.projects.resources.defaultBucket.methods.create.parameters.parent.required - resources.projects.resources.defaultBucket.methods.create.parameters.parent.type - resources.projects.resources.defaultBucket.methods.create.path - resources.projects.resources.defaultBucket.methods.create.request.$ref - resources.projects.resources.defaultBucket.methods.create.response.$ref - resources.projects.resources.defaultBucket.methods.create.scopes - schemas.DefaultBucket.description - schemas.DefaultBucket.id - schemas.DefaultBucket.properties.bucket.$ref - schemas.DefaultBucket.properties.bucket.description - schemas.DefaultBucket.properties.bucket.readOnly - schemas.DefaultBucket.properties.location.description - schemas.DefaultBucket.properties.location.type - schemas.DefaultBucket.properties.name.description - schemas.DefaultBucket.properties.name.type - schemas.DefaultBucket.properties.storageClass.description - schemas.DefaultBucket.properties.storageClass.type - schemas.DefaultBucket.type
1 parent 4449b80 commit d1b06fe

File tree

2 files changed

+420
-120
lines changed

2 files changed

+420
-120
lines changed

‎discovery/firebasestorage-v1beta.json

Lines changed: 106 additions & 93 deletions
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": "20230914",
328+
"revision": "20241218",
242329
"rootUrl": "https://firebasestorage.googleapis.com/",
243330
"schemas": {
244331
"AddFirebaseRequest": {
@@ -259,108 +346,34 @@
259346
},
260347
"type": "object"
261348
},
262-
"Empty": {
263-
"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); }",
264-
"id": "Empty",
265-
"properties": {},
266-
"type": "object"
267-
},
268-
"GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata": {
269-
"description": "Metadata for MigrateLocationDestructively LRO.",
270-
"id": "GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata",
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",
271352
"properties": {
272-
"createTime": {
273-
"description": "The time the LRO was created.",
274-
"format": "google-datetime",
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.",
275360
"type": "string"
276361
},
277-
"lastUpdateTime": {
278-
"description": "The time the LRO was last updated.",
279-
"format": "google-datetime",
362+
"name": {
363+
"description": "Resource name of the default bucket.",
280364
"type": "string"
281365
},
282-
"state": {
283-
"description": "The current state of the migration.",
284-
"enum": [
285-
"STATE_UNSPECIFIED",
286-
"PENDING",
287-
"CREATING_TEMP_BUCKET",
288-
"TRANSFERRING_TO_TEMP",
289-
"DELETING_SOURCE_BUCKET",
290-
"CREATING_DESTINATION_BUCKET",
291-
"TRANSFERRING_TO_DESTINATION",
292-
"DELETING_TEMP_BUCKET",
293-
"SUCCEEDED",
294-
"FAILED",
295-
"ROLLING_BACK",
296-
"ROLLED_BACK"
297-
],
298-
"enumDescriptions": [
299-
"Unspecified state. Should not be used.",
300-
"The MigrateLocationDestructively request has passed precondition checks and the bucket migration will begin soon.",
301-
"Generating a unique bucket name, storing the source -> temp mapping in Spanner, and actually creating the temporary bucket via Bigstore.",
302-
"The first STS transfer to move all objects from the source bucket to the temp bucket is underway.",
303-
"The source bucket is being emptied and deleted.",
304-
"The source bucket is being recreated in the new location.",
305-
"The second STS transfer to move all objects from the temp bucket to the final bucket is underway.",
306-
"The temp bucket is being emptied and deleted.",
307-
"All stages of the migration have completed and the operation has been marked done and updated with a response.",
308-
"The migration failed at some stage and it is not possible to continue retrying that stage. Manual recovery may be needed. Rollback is either impossible at this stage, or has been attempted and failed.",
309-
"The migration has encountered a permanent failure and is now being rolled back so that the source bucket is restored to its original state.",
310-
"The migration has been successfully rolled back."
311-
],
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.",
312368
"type": "string"
313369
}
314370
},
315371
"type": "object"
316372
},
317-
"GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata": {
318-
"description": "Metadata for MigrateLocationDestructively LRO.",
319-
"id": "GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata",
320-
"properties": {
321-
"createTime": {
322-
"description": "The time the LRO was created.",
323-
"format": "google-datetime",
324-
"type": "string"
325-
},
326-
"lastUpdateTime": {
327-
"description": "The time the LRO was last updated.",
328-
"format": "google-datetime",
329-
"type": "string"
330-
},
331-
"state": {
332-
"description": "The current state of the migration.",
333-
"enum": [
334-
"STATE_UNSPECIFIED",
335-
"PENDING",
336-
"CREATING_TEMP_BUCKET",
337-
"TRANSFERRING_TO_TEMP",
338-
"DELETING_SOURCE_BUCKET",
339-
"CREATING_DESTINATION_BUCKET",
340-
"TRANSFERRING_TO_DESTINATION",
341-
"DELETING_TEMP_BUCKET",
342-
"SUCCEEDED",
343-
"FAILED",
344-
"ROLLING_BACK",
345-
"ROLLED_BACK"
346-
],
347-
"enumDescriptions": [
348-
"Unspecified state. Should not be used.",
349-
"The MigrateLocationDestructively request has passed precondition checks and the bucket migration will begin soon.",
350-
"Generating a unique bucket name, storing the source -> temp mapping in Spanner, and actually creating the temporary bucket via Bigstore.",
351-
"The first STS transfer to move all objects from the source bucket to the temp bucket is underway.",
352-
"The source bucket is being emptied and deleted.",
353-
"The source bucket is being recreated in the new location.",
354-
"The second STS transfer to move all objects from the temp bucket to the final bucket is underway.",
355-
"The temp bucket is being emptied and deleted.",
356-
"All stages of the migration have completed and the operation has been marked done and updated with a response.",
357-
"The migration failed at some stage and it is not possible to continue retrying that stage. Manual recovery may be needed. Rollback is either impossible at this stage, or has been attempted and failed.",
358-
"The migration has encountered a permanent failure and is now being rolled back so that the source bucket is restored to its original state.",
359-
"The migration has been successfully rolled back."
360-
],
361-
"type": "string"
362-
}
363-
},
373+
"Empty": {
374+
"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); }",
375+
"id": "Empty",
376+
"properties": {},
364377
"type": "object"
365378
},
366379
"ListBucketsResponse": {

0 commit comments

Comments
 (0)