From 66b6961871fea5b1a41a5b8359d7f76d6e390386 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 20 Jul 2021 07:07:18 +0000 Subject: [PATCH] feat(firebasestorage): update the api #### firebasestorage:v1beta The following keys were added: - schemas.Bucket.properties.location (Total Keys: 2) - schemas.GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata (Total Keys: 7) - schemas.GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata (Total Keys: 7) --- ...rebasestorage_v1beta.projects.buckets.html | 9 +- .../documents/firebasestorage.v1beta.json | 107 +++++++++++++++++- 2 files changed, 109 insertions(+), 7 deletions(-) diff --git a/docs/dyn/firebasestorage_v1beta.projects.buckets.html b/docs/dyn/firebasestorage_v1beta.projects.buckets.html index f56592d3603..dad5bf4c194 100644 --- a/docs/dyn/firebasestorage_v1beta.projects.buckets.html +++ b/docs/dyn/firebasestorage_v1beta.projects.buckets.html @@ -98,7 +98,7 @@

Method Details

Links a Google Cloud Storage bucket to a Firebase project.
 
 Args:
-  bucket: string, 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}`. (required)
+  bucket: string, Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number}/buckets/{bucket_id}`. (required)
   body: object, The request body.
     The object takes the form of:
 
@@ -114,6 +114,7 @@ 

Method Details

An object of the form: { # A storage bucket and its relation to a parent Firebase project. + "location": "A String", # Output only. Location of the storage bucket. "name": "A String", # Resource name of the bucket. "reconciling": True or False, # Output only. Represents whether a bucket is being moved to a new location, in which case reconciling is set to true. }
@@ -129,7 +130,7 @@

Method Details

Gets a single linked storage bucket.
 
 Args:
-  name: string, 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}`. (required)
+  name: string, Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number}/buckets/{bucket_id}`. (required)
   x__xgafv: string, V1 error format.
     Allowed values
       1 - v1 error format
@@ -139,6 +140,7 @@ 

Method Details

An object of the form: { # A storage bucket and its relation to a parent Firebase project. + "location": "A String", # Output only. Location of the storage bucket. "name": "A String", # Resource name of the bucket. "reconciling": True or False, # Output only. Represents whether a bucket is being moved to a new location, in which case reconciling is set to true. }
@@ -163,6 +165,7 @@

Method Details

{ # The response returned by `ListBuckets`. "buckets": [ # The list of linked buckets. { # A storage bucket and its relation to a parent Firebase project. + "location": "A String", # Output only. Location of the storage bucket. "name": "A String", # Resource name of the bucket. "reconciling": True or False, # Output only. Represents whether a bucket is being moved to a new location, in which case reconciling is set to true. }, @@ -190,7 +193,7 @@

Method Details

Unlinks a linked Google Cloud Storage bucket from a Firebase project.
 
 Args:
-  bucket: string, 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}`. (required)
+  bucket: string, Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number}/buckets/{bucket_id}`. (required)
   body: object, The request body.
     The object takes the form of:
 
diff --git a/googleapiclient/discovery_cache/documents/firebasestorage.v1beta.json b/googleapiclient/discovery_cache/documents/firebasestorage.v1beta.json
index e069fe7927e..a5bb7bef4ae 100644
--- a/googleapiclient/discovery_cache/documents/firebasestorage.v1beta.json
+++ b/googleapiclient/discovery_cache/documents/firebasestorage.v1beta.json
@@ -122,7 +122,7 @@
               ],
               "parameters": {
                 "bucket": {
-                  "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}`.",
+                  "description": "Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number}/buckets/{bucket_id}`.",
                   "location": "path",
                   "pattern": "^projects/[^/]+/buckets/[^/]+$",
                   "required": true,
@@ -151,7 +151,7 @@
               ],
               "parameters": {
                 "name": {
-                  "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}`.",
+                  "description": "Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number}/buckets/{bucket_id}`.",
                   "location": "path",
                   "pattern": "^projects/[^/]+/buckets/[^/]+$",
                   "required": true,
@@ -214,7 +214,7 @@
               ],
               "parameters": {
                 "bucket": {
-                  "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}`.",
+                  "description": "Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_number}/buckets/{bucket_id}`.",
                   "location": "path",
                   "pattern": "^projects/[^/]+/buckets/[^/]+$",
                   "required": true,
@@ -238,7 +238,7 @@
       }
     }
   },
-  "revision": "20210521",
+  "revision": "20210709",
   "rootUrl": "https://firebasestorage.googleapis.com/",
   "schemas": {
     "AddFirebaseRequest": {
@@ -251,6 +251,11 @@
       "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"
@@ -269,6 +274,100 @@
       "properties": {},
       "type": "object"
     },
+    "GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata": {
+      "description": "Metadata for MigrateLocationDestructively LRO.",
+      "id": "GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata",
+      "properties": {
+        "createTime": {
+          "description": "The time the LRO was created.",
+          "format": "google-datetime",
+          "type": "string"
+        },
+        "lastUpdateTime": {
+          "description": "The time the LRO was last updated.",
+          "format": "google-datetime",
+          "type": "string"
+        },
+        "state": {
+          "description": "The current state of the migration.",
+          "enum": [
+            "STATE_UNSPECIFIED",
+            "PENDING",
+            "CREATING_TEMP_BUCKET",
+            "TRANSFERRING_TO_TEMP",
+            "DELETING_SOURCE_BUCKET",
+            "CREATING_DESTINATION_BUCKET",
+            "TRANSFERRING_TO_DESTINATION",
+            "DELETING_TEMP_BUCKET",
+            "SUCCEEDED",
+            "FAILED",
+            "ROLLING_BACK"
+          ],
+          "enumDescriptions": [
+            "Unspecified state. Should not be used.",
+            "The MigrateLocationDestructively request has passed precondition checks and the bucket migration will begin soon.",
+            "Generating a unique bucket name, storing the source -> temp mapping in Spanner, and actually creating the temporary bucket via Bigstore.",
+            "The first STS transfer to move all objects from the source bucket to the temp bucket is underway.",
+            "The source bucket is being emptied and deleted.",
+            "The source bucket is being recreated in the new location.",
+            "The second STS transfer to move all objects from the temp bucket to the final bucket is underway.",
+            "The temp bucket is being emptied and deleted.",
+            "All stages of the migration have completed and the operation has been marked done and updated with a response.",
+            "The migration failed at some stage and it is not possible to continue retrying that stage. Manual recovery may be needed.",
+            "The migration has encountered a permanent failure and is now being rolled back so that the source bucket is restored to its original state."
+          ],
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
+    "GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata": {
+      "description": "Metadata for MigrateLocationDestructively LRO.",
+      "id": "GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata",
+      "properties": {
+        "createTime": {
+          "description": "The time the LRO was created.",
+          "format": "google-datetime",
+          "type": "string"
+        },
+        "lastUpdateTime": {
+          "description": "The time the LRO was last updated.",
+          "format": "google-datetime",
+          "type": "string"
+        },
+        "state": {
+          "description": "The current state of the migration.",
+          "enum": [
+            "STATE_UNSPECIFIED",
+            "PENDING",
+            "CREATING_TEMP_BUCKET",
+            "TRANSFERRING_TO_TEMP",
+            "DELETING_SOURCE_BUCKET",
+            "CREATING_DESTINATION_BUCKET",
+            "TRANSFERRING_TO_DESTINATION",
+            "DELETING_TEMP_BUCKET",
+            "SUCCEEDED",
+            "FAILED",
+            "ROLLING_BACK"
+          ],
+          "enumDescriptions": [
+            "Unspecified state. Should not be used.",
+            "The MigrateLocationDestructively request has passed precondition checks and the bucket migration will begin soon.",
+            "Generating a unique bucket name, storing the source -> temp mapping in Spanner, and actually creating the temporary bucket via Bigstore.",
+            "The first STS transfer to move all objects from the source bucket to the temp bucket is underway.",
+            "The source bucket is being emptied and deleted.",
+            "The source bucket is being recreated in the new location.",
+            "The second STS transfer to move all objects from the temp bucket to the final bucket is underway.",
+            "The temp bucket is being emptied and deleted.",
+            "All stages of the migration have completed and the operation has been marked done and updated with a response.",
+            "The migration failed at some stage and it is not possible to continue retrying that stage. Manual recovery may be needed.",
+            "The migration has encountered a permanent failure and is now being rolled back so that the source bucket is restored to its original state."
+          ],
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
     "ListBucketsResponse": {
       "description": "The response returned by `ListBuckets`.",
       "id": "ListBucketsResponse",