Skip to content

Commit

Permalink
feat(firebasestorage)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### firebasestorage:v1beta

The following keys were deleted:
- schemas.Bucket.properties.location.description
- schemas.Bucket.properties.location.readOnly
- schemas.Bucket.properties.location.type

The following keys were changed:
- resources.projects.resources.buckets.methods.addFirebase.parameters.bucket.description
- resources.projects.resources.buckets.methods.get.parameters.name.description
- resources.projects.resources.buckets.methods.removeFirebase.parameters.bucket.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jul 8, 2021
1 parent 4d84c10 commit e2a8067
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
13 changes: 4 additions & 9 deletions discovery/firebasestorage-v1beta.json
Expand Up @@ -122,7 +122,7 @@
],
"parameters": {
"bucket": {
"description": "Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number}/buckets/{bucket_id}`.",
"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}`.",
"location": "path",
"pattern": "^projects/[^/]+/buckets/[^/]+$",
"required": true,
Expand Down Expand Up @@ -151,7 +151,7 @@
],
"parameters": {
"name": {
"description": "Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number}/buckets/{bucket_id}`.",
"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}`.",
"location": "path",
"pattern": "^projects/[^/]+/buckets/[^/]+$",
"required": true,
Expand Down Expand Up @@ -214,7 +214,7 @@
],
"parameters": {
"bucket": {
"description": "Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number}/buckets/{bucket_id}`.",
"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}`.",
"location": "path",
"pattern": "^projects/[^/]+/buckets/[^/]+$",
"required": true,
Expand All @@ -238,7 +238,7 @@
}
}
},
"revision": "20210611",
"revision": "20210521",
"rootUrl": "https://firebasestorage.googleapis.com/",
"schemas": {
"AddFirebaseRequest": {
Expand All @@ -251,11 +251,6 @@
"description": "A storage bucket and its relation to a parent Firebase project.",
"id": "Bucket",
"properties": {
"location": {
"description": "Output only. Location of the storage bucket.",
"readOnly": true,
"type": "string"
},
"name": {
"description": "Resource name of the bucket.",
"type": "string"
Expand Down
18 changes: 6 additions & 12 deletions src/apis/firebasestorage/v1beta.ts
Expand Up @@ -133,10 +133,6 @@ export namespace firebasestorage_v1beta {
* A storage bucket and its relation to a parent Firebase project.
*/
export interface Schema$Bucket {
/**
* Output only. Location of the storage bucket.
*/
location?: string | null;
/**
* Resource name of the bucket.
*/
Expand Down Expand Up @@ -213,7 +209,7 @@ export namespace firebasestorage_v1beta {
*
* // Do the magic
* const res = await firebasestorage.projects.buckets.addFirebase({
* // Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number\}/buckets/{bucket_id\}`.
* // 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\}`.
* bucket: 'projects/my-project/buckets/my-bucket',
*
* // Request body metadata
Expand All @@ -226,7 +222,6 @@ export namespace firebasestorage_v1beta {
*
* // Example response
* // {
* // "location": "my_location",
* // "name": "my_name",
* // "reconciling": false
* // }
Expand Down Expand Up @@ -354,14 +349,13 @@ export namespace firebasestorage_v1beta {
*
* // Do the magic
* const res = await firebasestorage.projects.buckets.get({
* // Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number\}/buckets/{bucket_id\}`.
* // 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\}`.
* name: 'projects/my-project/buckets/my-bucket',
* });
* console.log(res.data);
*
* // Example response
* // {
* // "location": "my_location",
* // "name": "my_name",
* // "reconciling": false
* // }
Expand Down Expand Up @@ -627,7 +621,7 @@ export namespace firebasestorage_v1beta {
*
* // Do the magic
* const res = await firebasestorage.projects.buckets.removeFirebase({
* // Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number\}/buckets/{bucket_id\}`.
* // 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\}`.
* bucket: 'projects/my-project/buckets/my-bucket',
*
* // Request body metadata
Expand Down Expand Up @@ -738,7 +732,7 @@ export namespace firebasestorage_v1beta {
export interface Params$Resource$Projects$Buckets$Addfirebase
extends StandardParameters {
/**
* Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number\}/buckets/{bucket_id\}`.
* 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\}`.
*/
bucket?: string;

Expand All @@ -750,7 +744,7 @@ export namespace firebasestorage_v1beta {
export interface Params$Resource$Projects$Buckets$Get
extends StandardParameters {
/**
* Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number\}/buckets/{bucket_id\}`.
* 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\}`.
*/
name?: string;
}
Expand All @@ -772,7 +766,7 @@ export namespace firebasestorage_v1beta {
export interface Params$Resource$Projects$Buckets$Removefirebase
extends StandardParameters {
/**
* Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number\}/buckets/{bucket_id\}`.
* 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\}`.
*/
bucket?: string;

Expand Down

0 comments on commit e2a8067

Please sign in to comment.