2222from google .protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
2323from google .storage .v2 import storage_pb2 as google_dot_storage_dot_v2_dot_storage__pb2
2424
25- GRPC_GENERATED_VERSION = '1.67 .0'
25+ GRPC_GENERATED_VERSION = '1.70 .0'
2626GRPC_VERSION = grpc .__version__
2727_version_not_supported = False
2828
@@ -256,7 +256,9 @@ def LockBucketRetentionPolicy(self, request, context):
256256 def GetIamPolicy (self , request , context ):
257257 """Gets the IAM policy for a specified bucket.
258258 The `resource` field in the request should be
259- `projects/_/buckets/{bucket}`.
259+ `projects/_/buckets/{bucket}` for a bucket, or
260+ `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
261+ for a managed folder.
260262 """
261263 context .set_code (grpc .StatusCode .UNIMPLEMENTED )
262264 context .set_details ('Method not implemented!' )
@@ -265,7 +267,9 @@ def GetIamPolicy(self, request, context):
265267 def SetIamPolicy (self , request , context ):
266268 """Updates an IAM policy for the specified bucket.
267269 The `resource` field in the request should be
268- `projects/_/buckets/{bucket}`.
270+ `projects/_/buckets/{bucket}` for a bucket, or
271+ `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
272+ for a managed folder.
269273 """
270274 context .set_code (grpc .StatusCode .UNIMPLEMENTED )
271275 context .set_details ('Method not implemented!' )
@@ -374,7 +378,26 @@ def ReadObject(self, request, context):
374378 raise NotImplementedError ('Method not implemented!' )
375379
376380 def BidiReadObject (self , request_iterator , context ):
377- """Missing associated documentation comment in .proto file."""
381+ """Reads an object's data.
382+
383+ This is a bi-directional API with the added support for reading multiple
384+ ranges within one stream both within and across multiple messages.
385+ If the server encountered an error for any of the inputs, the stream will
386+ be closed with the relevant error code.
387+ Because the API allows for multiple outstanding requests, when the stream
388+ is closed the error response will contain a BidiReadObjectRangesError proto
389+ in the error extension describing the error for each outstanding read_id.
390+
391+ **IAM Permissions**:
392+
393+ Requires `storage.objects.get`
394+
395+ [IAM permission](https://cloud.google.com/iam/docs/overview#permissions) on
396+ the bucket.
397+
398+ This API is currently in preview and is not yet available for general
399+ use.
400+ """
378401 context .set_code (grpc .StatusCode .UNIMPLEMENTED )
379402 context .set_details ('Method not implemented!' )
380403 raise NotImplementedError ('Method not implemented!' )
0 commit comments