From 67a8550057c5f66e03632bf0f2d9b42fcb39b660 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Mon, 8 Jan 2024 17:34:32 +0000 Subject: [PATCH] feat(storage): update the api #### storage:v1 The following keys were deleted: - resources.anywhereCache.methods.disable (Total Keys: 12) - resources.anywhereCache.methods.get (Total Keys: 12) - resources.anywhereCache.methods.insert (Total Keys: 10) - resources.anywhereCache.methods.list (Total Keys: 15) - resources.anywhereCache.methods.pause (Total Keys: 12) - resources.anywhereCache.methods.resume (Total Keys: 12) - resources.anywhereCache.methods.update (Total Keys: 13) The following keys were added: - resources.anywhereCaches.methods.disable (Total Keys: 12) - resources.anywhereCaches.methods.get (Total Keys: 12) - resources.anywhereCaches.methods.insert (Total Keys: 10) - resources.anywhereCaches.methods.list (Total Keys: 15) - resources.anywhereCaches.methods.pause (Total Keys: 12) - resources.anywhereCaches.methods.resume (Total Keys: 12) - resources.anywhereCaches.methods.update (Total Keys: 13) - schemas.AnywhereCache.properties.zone.type (Total Keys: 1) --- docs/dyn/storage_v1.anywhereCaches.html | 365 ++++++++++++++++++ docs/dyn/storage_v1.html | 4 +- .../discovery_cache/documents/storage.v1.json | 24 +- 3 files changed, 381 insertions(+), 12 deletions(-) create mode 100644 docs/dyn/storage_v1.anywhereCaches.html diff --git a/docs/dyn/storage_v1.anywhereCaches.html b/docs/dyn/storage_v1.anywhereCaches.html new file mode 100644 index 0000000000..0592d00679 --- /dev/null +++ b/docs/dyn/storage_v1.anywhereCaches.html @@ -0,0 +1,365 @@ + + + +

Cloud Storage JSON API . anywhereCaches

+

Instance Methods

+

+ close()

+

Close httplib2 connections.

+

+ disable(bucket, anywhereCacheId)

+

Disables an Anywhere Cache instance.

+

+ get(bucket, anywhereCacheId)

+

Returns the metadata of an Anywhere Cache instance.

+

+ insert(bucket, body=None)

+

Creates an Anywhere Cache instance.

+

+ list(bucket, pageSize=None, pageToken=None)

+

Returns a list of Anywhere Cache instances of the bucket matching the criteria.

+

+ list_next()

+

Retrieves the next page of results.

+

+ pause(bucket, anywhereCacheId)

+

Pauses an Anywhere Cache instance.

+

+ resume(bucket, anywhereCacheId)

+

Resumes a paused or disabled Anywhere Cache instance.

+

+ update(bucket, anywhereCacheId, body=None)

+

Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.

+

Method Details

+
+ close() +
Close httplib2 connections.
+
+ +
+ disable(bucket, anywhereCacheId) +
Disables an Anywhere Cache instance.
+
+Args:
+  bucket: string, Name of the parent bucket. (required)
+  anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
+
+Returns:
+  An object of the form:
+
+    { # An Anywhere Cache instance.
+  "admissionPolicy": "A String", # The cache-level entry admission policy.
+  "anywhereCacheId": "A String", # The ID of the Anywhere cache instance.
+  "bucket": "A String", # The name of the bucket containing this cache instance.
+  "createTime": "A String", # The creation time of the cache instance in RFC 3339 format.
+  "id": "A String", # The ID of the resource, including the project number, bucket name and anywhere cache ID.
+  "kind": "storage#anywhereCache", # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
+  "pendingUpdate": True or False, # True if the cache instance has an active Update long-running operation.
+  "selfLink": "A String", # The link to this cache instance.
+  "state": "A String", # The current state of the cache instance.
+  "ttl": "A String", # The TTL of all cache entries in whole seconds. e.g., "7200s".
+  "updateTime": "A String", # The modification time of the cache instance metadata in RFC 3339 format.
+  "zone": "A String", # The zone in which the cache instance is running. For example, us-central1-a.
+}
+
+ +
+ get(bucket, anywhereCacheId) +
Returns the metadata of an Anywhere Cache instance.
+
+Args:
+  bucket: string, Name of the parent bucket. (required)
+  anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
+
+Returns:
+  An object of the form:
+
+    { # An Anywhere Cache instance.
+  "admissionPolicy": "A String", # The cache-level entry admission policy.
+  "anywhereCacheId": "A String", # The ID of the Anywhere cache instance.
+  "bucket": "A String", # The name of the bucket containing this cache instance.
+  "createTime": "A String", # The creation time of the cache instance in RFC 3339 format.
+  "id": "A String", # The ID of the resource, including the project number, bucket name and anywhere cache ID.
+  "kind": "storage#anywhereCache", # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
+  "pendingUpdate": True or False, # True if the cache instance has an active Update long-running operation.
+  "selfLink": "A String", # The link to this cache instance.
+  "state": "A String", # The current state of the cache instance.
+  "ttl": "A String", # The TTL of all cache entries in whole seconds. e.g., "7200s".
+  "updateTime": "A String", # The modification time of the cache instance metadata in RFC 3339 format.
+  "zone": "A String", # The zone in which the cache instance is running. For example, us-central1-a.
+}
+
+ +
+ insert(bucket, body=None) +
Creates an Anywhere Cache instance.
+
+Args:
+  bucket: string, Name of the parent bucket. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # An Anywhere Cache instance.
+  "admissionPolicy": "A String", # The cache-level entry admission policy.
+  "anywhereCacheId": "A String", # The ID of the Anywhere cache instance.
+  "bucket": "A String", # The name of the bucket containing this cache instance.
+  "createTime": "A String", # The creation time of the cache instance in RFC 3339 format.
+  "id": "A String", # The ID of the resource, including the project number, bucket name and anywhere cache ID.
+  "kind": "storage#anywhereCache", # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
+  "pendingUpdate": True or False, # True if the cache instance has an active Update long-running operation.
+  "selfLink": "A String", # The link to this cache instance.
+  "state": "A String", # The current state of the cache instance.
+  "ttl": "A String", # The TTL of all cache entries in whole seconds. e.g., "7200s".
+  "updateTime": "A String", # The modification time of the cache instance metadata in RFC 3339 format.
+  "zone": "A String", # The zone in which the cache instance is running. For example, us-central1-a.
+}
+
+
+Returns:
+  An object of the form:
+
+    { # This resource represents a long-running operation that is the result of a network API call.
+  "done": True or False, # If the value is "false", it means the operation is still in progress. If "true", the operation is completed, and either "error" or "response" is available.
+  "error": { # The "Status" type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each "Status" message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
+    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+      {
+        "a_key": "", # Properties of the object. Contains field @type with type URL.
+      },
+    ],
+    "message": "A String", # A developer-facing error message, which should be in English.
+  },
+  "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+  "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the "name" should be a resource name ending with "operations/{operationId}".
+  "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as "Delete", the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type "XxxResponse", where "Xxx" is the original method name. For example, if the original method name is "TakeSnapshot()", the inferred response type is "TakeSnapshotResponse".
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+}
+
+ +
+ list(bucket, pageSize=None, pageToken=None) +
Returns a list of Anywhere Cache instances of the bucket matching the criteria.
+
+Args:
+  bucket: string, Name of the parent bucket. (required)
+  pageSize: integer, Maximum number of items return in a single page of responses. Maximum 1000.
+  pageToken: string, A previously-returned page token representing part of the larger set of results to view.
+
+Returns:
+  An object of the form:
+
+    { # A list of Anywhere Caches.
+  "items": [ # The list of items.
+    { # An Anywhere Cache instance.
+      "admissionPolicy": "A String", # The cache-level entry admission policy.
+      "anywhereCacheId": "A String", # The ID of the Anywhere cache instance.
+      "bucket": "A String", # The name of the bucket containing this cache instance.
+      "createTime": "A String", # The creation time of the cache instance in RFC 3339 format.
+      "id": "A String", # The ID of the resource, including the project number, bucket name and anywhere cache ID.
+      "kind": "storage#anywhereCache", # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
+      "pendingUpdate": True or False, # True if the cache instance has an active Update long-running operation.
+      "selfLink": "A String", # The link to this cache instance.
+      "state": "A String", # The current state of the cache instance.
+      "ttl": "A String", # The TTL of all cache entries in whole seconds. e.g., "7200s".
+      "updateTime": "A String", # The modification time of the cache instance metadata in RFC 3339 format.
+      "zone": "A String", # The zone in which the cache instance is running. For example, us-central1-a.
+    },
+  ],
+  "kind": "storage#anywhereCaches", # The kind of item this is. For lists of Anywhere Caches, this is always storage#anywhereCaches.
+  "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
+}
+
+ +
+ list_next() +
Retrieves the next page of results.
+
+        Args:
+          previous_request: The request for the previous page. (required)
+          previous_response: The response from the request for the previous page. (required)
+
+        Returns:
+          A request object that you can call 'execute()' on to request the next
+          page. Returns None if there are no more items in the collection.
+        
+
+ +
+ pause(bucket, anywhereCacheId) +
Pauses an Anywhere Cache instance.
+
+Args:
+  bucket: string, Name of the parent bucket. (required)
+  anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
+
+Returns:
+  An object of the form:
+
+    { # An Anywhere Cache instance.
+  "admissionPolicy": "A String", # The cache-level entry admission policy.
+  "anywhereCacheId": "A String", # The ID of the Anywhere cache instance.
+  "bucket": "A String", # The name of the bucket containing this cache instance.
+  "createTime": "A String", # The creation time of the cache instance in RFC 3339 format.
+  "id": "A String", # The ID of the resource, including the project number, bucket name and anywhere cache ID.
+  "kind": "storage#anywhereCache", # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
+  "pendingUpdate": True or False, # True if the cache instance has an active Update long-running operation.
+  "selfLink": "A String", # The link to this cache instance.
+  "state": "A String", # The current state of the cache instance.
+  "ttl": "A String", # The TTL of all cache entries in whole seconds. e.g., "7200s".
+  "updateTime": "A String", # The modification time of the cache instance metadata in RFC 3339 format.
+  "zone": "A String", # The zone in which the cache instance is running. For example, us-central1-a.
+}
+
+ +
+ resume(bucket, anywhereCacheId) +
Resumes a paused or disabled Anywhere Cache instance.
+
+Args:
+  bucket: string, Name of the parent bucket. (required)
+  anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
+
+Returns:
+  An object of the form:
+
+    { # An Anywhere Cache instance.
+  "admissionPolicy": "A String", # The cache-level entry admission policy.
+  "anywhereCacheId": "A String", # The ID of the Anywhere cache instance.
+  "bucket": "A String", # The name of the bucket containing this cache instance.
+  "createTime": "A String", # The creation time of the cache instance in RFC 3339 format.
+  "id": "A String", # The ID of the resource, including the project number, bucket name and anywhere cache ID.
+  "kind": "storage#anywhereCache", # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
+  "pendingUpdate": True or False, # True if the cache instance has an active Update long-running operation.
+  "selfLink": "A String", # The link to this cache instance.
+  "state": "A String", # The current state of the cache instance.
+  "ttl": "A String", # The TTL of all cache entries in whole seconds. e.g., "7200s".
+  "updateTime": "A String", # The modification time of the cache instance metadata in RFC 3339 format.
+  "zone": "A String", # The zone in which the cache instance is running. For example, us-central1-a.
+}
+
+ +
+ update(bucket, anywhereCacheId, body=None) +
Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.
+
+Args:
+  bucket: string, Name of the parent bucket. (required)
+  anywhereCacheId: string, The ID of requested Anywhere Cache instance. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # An Anywhere Cache instance.
+  "admissionPolicy": "A String", # The cache-level entry admission policy.
+  "anywhereCacheId": "A String", # The ID of the Anywhere cache instance.
+  "bucket": "A String", # The name of the bucket containing this cache instance.
+  "createTime": "A String", # The creation time of the cache instance in RFC 3339 format.
+  "id": "A String", # The ID of the resource, including the project number, bucket name and anywhere cache ID.
+  "kind": "storage#anywhereCache", # The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
+  "pendingUpdate": True or False, # True if the cache instance has an active Update long-running operation.
+  "selfLink": "A String", # The link to this cache instance.
+  "state": "A String", # The current state of the cache instance.
+  "ttl": "A String", # The TTL of all cache entries in whole seconds. e.g., "7200s".
+  "updateTime": "A String", # The modification time of the cache instance metadata in RFC 3339 format.
+  "zone": "A String", # The zone in which the cache instance is running. For example, us-central1-a.
+}
+
+
+Returns:
+  An object of the form:
+
+    { # This resource represents a long-running operation that is the result of a network API call.
+  "done": True or False, # If the value is "false", it means the operation is still in progress. If "true", the operation is completed, and either "error" or "response" is available.
+  "error": { # The "Status" type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each "Status" message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
+    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+      {
+        "a_key": "", # Properties of the object. Contains field @type with type URL.
+      },
+    ],
+    "message": "A String", # A developer-facing error message, which should be in English.
+  },
+  "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+  "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the "name" should be a resource name ending with "operations/{operationId}".
+  "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as "Delete", the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type "XxxResponse", where "Xxx" is the original method name. For example, if the original method name is "TakeSnapshot()", the inferred response type is "TakeSnapshotResponse".
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+}
+
+ + \ No newline at end of file diff --git a/docs/dyn/storage_v1.html b/docs/dyn/storage_v1.html index a9a688513c..2d8d30d853 100644 --- a/docs/dyn/storage_v1.html +++ b/docs/dyn/storage_v1.html @@ -75,9 +75,9 @@

Cloud Storage JSON API

Instance Methods

- anywhereCache() + anywhereCaches()

-

Returns the anywhereCache Resource.

+

Returns the anywhereCaches Resource.

bucketAccessControls() diff --git a/googleapiclient/discovery_cache/documents/storage.v1.json b/googleapiclient/discovery_cache/documents/storage.v1.json index 2a0e6c8f82..8517917c0f 100644 --- a/googleapiclient/discovery_cache/documents/storage.v1.json +++ b/googleapiclient/discovery_cache/documents/storage.v1.json @@ -33,7 +33,7 @@ "location": "me-central2" } ], - "etag": "\"3131353937393536303534313532343335333031\"", + "etag": "\"3131393937383137313835393437363337313333\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -99,7 +99,7 @@ }, "protocol": "rest", "resources": { - "anywhereCache": { + "anywhereCaches": { "methods": { "disable": { "description": "Disables an Anywhere Cache instance.", @@ -117,7 +117,7 @@ "type": "string" }, "bucket": { - "description": "Name of the partent bucket", + "description": "Name of the parent bucket.", "location": "path", "required": true, "type": "string" @@ -149,7 +149,7 @@ "type": "string" }, "bucket": { - "description": "Name of the partent bucket", + "description": "Name of the parent bucket.", "location": "path", "required": true, "type": "string" @@ -176,7 +176,7 @@ ], "parameters": { "bucket": { - "description": "Name of the partent bucket", + "description": "Name of the parent bucket.", "location": "path", "required": true, "type": "string" @@ -204,7 +204,7 @@ ], "parameters": { "bucket": { - "description": "Name of the partent bucket", + "description": "Name of the parent bucket.", "location": "path", "required": true, "type": "string" @@ -250,7 +250,7 @@ "type": "string" }, "bucket": { - "description": "Name of the partent bucket", + "description": "Name of the parent bucket.", "location": "path", "required": true, "type": "string" @@ -282,7 +282,7 @@ "type": "string" }, "bucket": { - "description": "Name of the partent bucket", + "description": "Name of the parent bucket.", "location": "path", "required": true, "type": "string" @@ -314,7 +314,7 @@ "type": "string" }, "bucket": { - "description": "Name of the partent bucket", + "description": "Name of the parent bucket.", "location": "path", "required": true, "type": "string" @@ -3806,7 +3806,7 @@ } } }, - "revision": "20231214", + "revision": "20231218", "rootUrl": "https://storage.googleapis.com/", "schemas": { "AnywhereCache": { @@ -3860,6 +3860,10 @@ "description": "The modification time of the cache instance metadata in RFC 3339 format.", "format": "date-time", "type": "string" + }, + "zone": { + "description": "The zone in which the cache instance is running. For example, us-central1-a.", + "type": "string" } }, "type": "object"