google-cloud-storagebatchoperations 0.5.0__tar.gz → 0.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. {google_cloud_storagebatchoperations-0.5.0/google_cloud_storagebatchoperations.egg-info → google_cloud_storagebatchoperations-0.7.0}/PKG-INFO +16 -18
  2. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/README.rst +12 -12
  3. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations/gapic_version.py +1 -1
  4. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/gapic_version.py +1 -1
  5. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/services/storage_batch_operations/async_client.py +55 -31
  6. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/services/storage_batch_operations/client.py +63 -35
  7. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/services/storage_batch_operations/transports/base.py +26 -2
  8. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/services/storage_batch_operations/transports/grpc.py +6 -2
  9. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/services/storage_batch_operations/transports/grpc_asyncio.py +26 -4
  10. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/services/storage_batch_operations/transports/rest.py +6 -0
  11. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/types/storage_batch_operations_types.py +40 -1
  12. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0/google_cloud_storagebatchoperations.egg-info}/PKG-INFO +16 -18
  13. google_cloud_storagebatchoperations-0.7.0/google_cloud_storagebatchoperations.egg-info/requires.txt +11 -0
  14. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/setup.py +3 -5
  15. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/tests/unit/gapic/storagebatchoperations_v1/test_storage_batch_operations.py +369 -123
  16. google_cloud_storagebatchoperations-0.5.0/google_cloud_storagebatchoperations.egg-info/requires.txt +0 -11
  17. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/LICENSE +0 -0
  18. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/MANIFEST.in +0 -0
  19. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations/__init__.py +0 -0
  20. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations/py.typed +0 -0
  21. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/__init__.py +0 -0
  22. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/gapic_metadata.json +0 -0
  23. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/py.typed +0 -0
  24. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/services/__init__.py +0 -0
  25. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/services/storage_batch_operations/__init__.py +0 -0
  26. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/services/storage_batch_operations/pagers.py +0 -0
  27. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/services/storage_batch_operations/transports/__init__.py +0 -0
  28. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/services/storage_batch_operations/transports/rest_base.py +0 -0
  29. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/types/__init__.py +0 -0
  30. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google/cloud/storagebatchoperations_v1/types/storage_batch_operations.py +0 -0
  31. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google_cloud_storagebatchoperations.egg-info/SOURCES.txt +0 -0
  32. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google_cloud_storagebatchoperations.egg-info/dependency_links.txt +0 -0
  33. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google_cloud_storagebatchoperations.egg-info/not-zip-safe +0 -0
  34. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/google_cloud_storagebatchoperations.egg-info/top_level.txt +0 -0
  35. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/setup.cfg +0 -0
  36. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/tests/__init__.py +0 -0
  37. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/tests/unit/__init__.py +0 -0
  38. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/tests/unit/gapic/__init__.py +0 -0
  39. {google_cloud_storagebatchoperations-0.5.0 → google_cloud_storagebatchoperations-0.7.0}/tests/unit/gapic/storagebatchoperations_v1/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-cloud-storagebatchoperations
3
- Version: 0.5.0
3
+ Version: 0.7.0
4
4
  Summary: Google Cloud Storagebatchoperations API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-storagebatchoperations
6
6
  Author: Google LLC
@@ -12,8 +12,6 @@ Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: Apache Software License
13
13
  Classifier: Programming Language :: Python
14
14
  Classifier: Programming Language :: Python :: 3
15
- Classifier: Programming Language :: Python :: 3.7
16
- Classifier: Programming Language :: Python :: 3.8
17
15
  Classifier: Programming Language :: Python :: 3.9
18
16
  Classifier: Programming Language :: Python :: 3.10
19
17
  Classifier: Programming Language :: Python :: 3.11
@@ -22,15 +20,15 @@ Classifier: Programming Language :: Python :: 3.13
22
20
  Classifier: Programming Language :: Python :: 3.14
23
21
  Classifier: Operating System :: OS Independent
24
22
  Classifier: Topic :: Internet
25
- Requires-Python: >=3.7
23
+ Requires-Python: >=3.9
26
24
  License-File: LICENSE
27
- Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1
25
+ Requires-Dist: google-api-core[grpc]<3.0.0,>=2.11.0
28
26
  Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
29
27
  Requires-Dist: grpcio<2.0.0,>=1.33.2
30
28
  Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
31
29
  Requires-Dist: proto-plus<2.0.0,>=1.22.3
32
30
  Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
33
- Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<7.0.0,>=3.20.2
31
+ Requires-Dist: protobuf<8.0.0,>=4.25.8
34
32
  Dynamic: author
35
33
  Dynamic: author-email
36
34
  Dynamic: classifier
@@ -43,12 +41,12 @@ Dynamic: requires-dist
43
41
  Dynamic: requires-python
44
42
  Dynamic: summary
45
43
 
46
- Python Client for Storage Batch Operations API
47
- ==============================================
44
+ Python Client for Storage Batch Operations
45
+ ==========================================
48
46
 
49
47
  |preview| |pypi| |versions|
50
48
 
51
- `Storage Batch Operations API`_: null
49
+ `Storage Batch Operations`_: Cloud Storage Batch Operations is a Cloud Storage capability that lets you perform operations on billions of objects in a serverless manner.
52
50
 
53
51
  - `Client Library Documentation`_
54
52
  - `Product Documentation`_
@@ -59,9 +57,9 @@ Python Client for Storage Batch Operations API
59
57
  :target: https://pypi.org/project/google-cloud-storagebatchoperations/
60
58
  .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-storagebatchoperations.svg
61
59
  :target: https://pypi.org/project/google-cloud-storagebatchoperations/
62
- .. _Storage Batch Operations API: https://cloud.google.com/storage/docs/batch-operations/overview
60
+ .. _Storage Batch Operations: https://cloud.google.com/storage/
63
61
  .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/google-cloud-storagebatchoperations/latest/summary_overview
64
- .. _Product Documentation: https://cloud.google.com/storage/docs/batch-operations/overview
62
+ .. _Product Documentation: https://cloud.google.com/storage/
65
63
 
66
64
  Quick Start
67
65
  -----------
@@ -70,12 +68,12 @@ In order to use this library, you first need to go through the following steps:
70
68
 
71
69
  1. `Select or create a Cloud Platform project.`_
72
70
  2. `Enable billing for your project.`_
73
- 3. `Enable the Storage Batch Operations API.`_
71
+ 3. `Enable the Storage Batch Operations.`_
74
72
  4. `Set up Authentication.`_
75
73
 
76
74
  .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
77
75
  .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
78
- .. _Enable the Storage Batch Operations API.: https://cloud.google.com/storage/docs/batch-operations/overview
76
+ .. _Enable the Storage Batch Operations.: https://cloud.google.com/storage/
79
77
  .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
80
78
 
81
79
  Installation
@@ -106,14 +104,14 @@ Supported Python Versions
106
104
  Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
107
105
  Python.
108
106
 
109
- Python >= 3.7, including 3.14
107
+ Python >= 3.9, including 3.14
110
108
 
111
109
  .. _active: https://devguide.python.org/devcycle/#in-development-main-branch
112
110
  .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
113
111
 
114
112
  Unsupported Python Versions
115
113
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
116
- Python <= 3.6
114
+ Python <= 3.8
117
115
 
118
116
  If you are using an `end-of-life`_
119
117
  version of Python, we recommend that you update as soon as possible to an actively supported version.
@@ -142,14 +140,14 @@ Windows
142
140
  Next Steps
143
141
  ~~~~~~~~~~
144
142
 
145
- - Read the `Client Library Documentation`_ for Storage Batch Operations API
143
+ - Read the `Client Library Documentation`_ for Storage Batch Operations
146
144
  to see other available methods on the client.
147
- - Read the `Storage Batch Operations API Product documentation`_ to learn
145
+ - Read the `Storage Batch Operations Product documentation`_ to learn
148
146
  more about the product and see How-to Guides.
149
147
  - View this `README`_ to see the full list of Cloud
150
148
  APIs that we cover.
151
149
 
152
- .. _Storage Batch Operations API Product documentation: https://cloud.google.com/storage/docs/batch-operations/overview
150
+ .. _Storage Batch Operations Product documentation: https://cloud.google.com/storage/
153
151
  .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
154
152
 
155
153
  Logging
@@ -1,9 +1,9 @@
1
- Python Client for Storage Batch Operations API
2
- ==============================================
1
+ Python Client for Storage Batch Operations
2
+ ==========================================
3
3
 
4
4
  |preview| |pypi| |versions|
5
5
 
6
- `Storage Batch Operations API`_: null
6
+ `Storage Batch Operations`_: Cloud Storage Batch Operations is a Cloud Storage capability that lets you perform operations on billions of objects in a serverless manner.
7
7
 
8
8
  - `Client Library Documentation`_
9
9
  - `Product Documentation`_
@@ -14,9 +14,9 @@ Python Client for Storage Batch Operations API
14
14
  :target: https://pypi.org/project/google-cloud-storagebatchoperations/
15
15
  .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-storagebatchoperations.svg
16
16
  :target: https://pypi.org/project/google-cloud-storagebatchoperations/
17
- .. _Storage Batch Operations API: https://cloud.google.com/storage/docs/batch-operations/overview
17
+ .. _Storage Batch Operations: https://cloud.google.com/storage/
18
18
  .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/google-cloud-storagebatchoperations/latest/summary_overview
19
- .. _Product Documentation: https://cloud.google.com/storage/docs/batch-operations/overview
19
+ .. _Product Documentation: https://cloud.google.com/storage/
20
20
 
21
21
  Quick Start
22
22
  -----------
@@ -25,12 +25,12 @@ In order to use this library, you first need to go through the following steps:
25
25
 
26
26
  1. `Select or create a Cloud Platform project.`_
27
27
  2. `Enable billing for your project.`_
28
- 3. `Enable the Storage Batch Operations API.`_
28
+ 3. `Enable the Storage Batch Operations.`_
29
29
  4. `Set up Authentication.`_
30
30
 
31
31
  .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
32
32
  .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
33
- .. _Enable the Storage Batch Operations API.: https://cloud.google.com/storage/docs/batch-operations/overview
33
+ .. _Enable the Storage Batch Operations.: https://cloud.google.com/storage/
34
34
  .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
35
35
 
36
36
  Installation
@@ -61,14 +61,14 @@ Supported Python Versions
61
61
  Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
62
62
  Python.
63
63
 
64
- Python >= 3.7, including 3.14
64
+ Python >= 3.9, including 3.14
65
65
 
66
66
  .. _active: https://devguide.python.org/devcycle/#in-development-main-branch
67
67
  .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
68
68
 
69
69
  Unsupported Python Versions
70
70
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
71
- Python <= 3.6
71
+ Python <= 3.8
72
72
 
73
73
  If you are using an `end-of-life`_
74
74
  version of Python, we recommend that you update as soon as possible to an actively supported version.
@@ -97,14 +97,14 @@ Windows
97
97
  Next Steps
98
98
  ~~~~~~~~~~
99
99
 
100
- - Read the `Client Library Documentation`_ for Storage Batch Operations API
100
+ - Read the `Client Library Documentation`_ for Storage Batch Operations
101
101
  to see other available methods on the client.
102
- - Read the `Storage Batch Operations API Product documentation`_ to learn
102
+ - Read the `Storage Batch Operations Product documentation`_ to learn
103
103
  more about the product and see How-to Guides.
104
104
  - View this `README`_ to see the full list of Cloud
105
105
  APIs that we cover.
106
106
 
107
- .. _Storage Batch Operations API Product documentation: https://cloud.google.com/storage/docs/batch-operations/overview
107
+ .. _Storage Batch Operations Product documentation: https://cloud.google.com/storage/
108
108
  .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
109
109
 
110
110
  Logging
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "0.5.0" # {x-release-please-version}
16
+ __version__ = "0.7.0" # {x-release-please-version}
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "0.5.0" # {x-release-please-version}
16
+ __version__ = "0.7.0" # {x-release-please-version}
@@ -217,7 +217,7 @@ class StorageBatchOperationsAsyncClient:
217
217
  return self._client.transport
218
218
 
219
219
  @property
220
- def api_endpoint(self):
220
+ def api_endpoint(self) -> str:
221
221
  """Return the API endpoint used by the client instance.
222
222
 
223
223
  Returns:
@@ -1171,7 +1171,7 @@ class StorageBatchOperationsAsyncClient:
1171
1171
 
1172
1172
  async def list_operations(
1173
1173
  self,
1174
- request: Optional[operations_pb2.ListOperationsRequest] = None,
1174
+ request: Optional[Union[operations_pb2.ListOperationsRequest, dict]] = None,
1175
1175
  *,
1176
1176
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1177
1177
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
@@ -1197,8 +1197,12 @@ class StorageBatchOperationsAsyncClient:
1197
1197
  # Create or coerce a protobuf request object.
1198
1198
  # The request isn't a proto-plus wrapped type,
1199
1199
  # so it must be constructed via keyword expansion.
1200
- if isinstance(request, dict):
1201
- request = operations_pb2.ListOperationsRequest(**request)
1200
+ if request is None:
1201
+ request_pb = operations_pb2.ListOperationsRequest()
1202
+ elif isinstance(request, dict):
1203
+ request_pb = operations_pb2.ListOperationsRequest(**request)
1204
+ else:
1205
+ request_pb = request
1202
1206
 
1203
1207
  # Wrap the RPC method; this adds retry and timeout information,
1204
1208
  # and friendly error handling.
@@ -1207,7 +1211,7 @@ class StorageBatchOperationsAsyncClient:
1207
1211
  # Certain fields should be provided within the metadata header;
1208
1212
  # add these here.
1209
1213
  metadata = tuple(metadata) + (
1210
- gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1214
+ gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
1211
1215
  )
1212
1216
 
1213
1217
  # Validate the universe domain.
@@ -1215,7 +1219,7 @@ class StorageBatchOperationsAsyncClient:
1215
1219
 
1216
1220
  # Send the request.
1217
1221
  response = await rpc(
1218
- request,
1222
+ request_pb,
1219
1223
  retry=retry,
1220
1224
  timeout=timeout,
1221
1225
  metadata=metadata,
@@ -1226,7 +1230,7 @@ class StorageBatchOperationsAsyncClient:
1226
1230
 
1227
1231
  async def get_operation(
1228
1232
  self,
1229
- request: Optional[operations_pb2.GetOperationRequest] = None,
1233
+ request: Optional[Union[operations_pb2.GetOperationRequest, dict]] = None,
1230
1234
  *,
1231
1235
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1232
1236
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
@@ -1252,8 +1256,12 @@ class StorageBatchOperationsAsyncClient:
1252
1256
  # Create or coerce a protobuf request object.
1253
1257
  # The request isn't a proto-plus wrapped type,
1254
1258
  # so it must be constructed via keyword expansion.
1255
- if isinstance(request, dict):
1256
- request = operations_pb2.GetOperationRequest(**request)
1259
+ if request is None:
1260
+ request_pb = operations_pb2.GetOperationRequest()
1261
+ elif isinstance(request, dict):
1262
+ request_pb = operations_pb2.GetOperationRequest(**request)
1263
+ else:
1264
+ request_pb = request
1257
1265
 
1258
1266
  # Wrap the RPC method; this adds retry and timeout information,
1259
1267
  # and friendly error handling.
@@ -1262,7 +1270,7 @@ class StorageBatchOperationsAsyncClient:
1262
1270
  # Certain fields should be provided within the metadata header;
1263
1271
  # add these here.
1264
1272
  metadata = tuple(metadata) + (
1265
- gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1273
+ gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
1266
1274
  )
1267
1275
 
1268
1276
  # Validate the universe domain.
@@ -1270,7 +1278,7 @@ class StorageBatchOperationsAsyncClient:
1270
1278
 
1271
1279
  # Send the request.
1272
1280
  response = await rpc(
1273
- request,
1281
+ request_pb,
1274
1282
  retry=retry,
1275
1283
  timeout=timeout,
1276
1284
  metadata=metadata,
@@ -1281,7 +1289,7 @@ class StorageBatchOperationsAsyncClient:
1281
1289
 
1282
1290
  async def delete_operation(
1283
1291
  self,
1284
- request: Optional[operations_pb2.DeleteOperationRequest] = None,
1292
+ request: Optional[Union[operations_pb2.DeleteOperationRequest, dict]] = None,
1285
1293
  *,
1286
1294
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1287
1295
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
@@ -1311,8 +1319,12 @@ class StorageBatchOperationsAsyncClient:
1311
1319
  # Create or coerce a protobuf request object.
1312
1320
  # The request isn't a proto-plus wrapped type,
1313
1321
  # so it must be constructed via keyword expansion.
1314
- if isinstance(request, dict):
1315
- request = operations_pb2.DeleteOperationRequest(**request)
1322
+ if request is None:
1323
+ request_pb = operations_pb2.DeleteOperationRequest()
1324
+ elif isinstance(request, dict):
1325
+ request_pb = operations_pb2.DeleteOperationRequest(**request)
1326
+ else:
1327
+ request_pb = request
1316
1328
 
1317
1329
  # Wrap the RPC method; this adds retry and timeout information,
1318
1330
  # and friendly error handling.
@@ -1321,7 +1333,7 @@ class StorageBatchOperationsAsyncClient:
1321
1333
  # Certain fields should be provided within the metadata header;
1322
1334
  # add these here.
1323
1335
  metadata = tuple(metadata) + (
1324
- gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1336
+ gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
1325
1337
  )
1326
1338
 
1327
1339
  # Validate the universe domain.
@@ -1329,7 +1341,7 @@ class StorageBatchOperationsAsyncClient:
1329
1341
 
1330
1342
  # Send the request.
1331
1343
  await rpc(
1332
- request,
1344
+ request_pb,
1333
1345
  retry=retry,
1334
1346
  timeout=timeout,
1335
1347
  metadata=metadata,
@@ -1337,7 +1349,7 @@ class StorageBatchOperationsAsyncClient:
1337
1349
 
1338
1350
  async def cancel_operation(
1339
1351
  self,
1340
- request: Optional[operations_pb2.CancelOperationRequest] = None,
1352
+ request: Optional[Union[operations_pb2.CancelOperationRequest, dict]] = None,
1341
1353
  *,
1342
1354
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1343
1355
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
@@ -1366,8 +1378,12 @@ class StorageBatchOperationsAsyncClient:
1366
1378
  # Create or coerce a protobuf request object.
1367
1379
  # The request isn't a proto-plus wrapped type,
1368
1380
  # so it must be constructed via keyword expansion.
1369
- if isinstance(request, dict):
1370
- request = operations_pb2.CancelOperationRequest(**request)
1381
+ if request is None:
1382
+ request_pb = operations_pb2.CancelOperationRequest()
1383
+ elif isinstance(request, dict):
1384
+ request_pb = operations_pb2.CancelOperationRequest(**request)
1385
+ else:
1386
+ request_pb = request
1371
1387
 
1372
1388
  # Wrap the RPC method; this adds retry and timeout information,
1373
1389
  # and friendly error handling.
@@ -1376,7 +1392,7 @@ class StorageBatchOperationsAsyncClient:
1376
1392
  # Certain fields should be provided within the metadata header;
1377
1393
  # add these here.
1378
1394
  metadata = tuple(metadata) + (
1379
- gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1395
+ gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
1380
1396
  )
1381
1397
 
1382
1398
  # Validate the universe domain.
@@ -1384,7 +1400,7 @@ class StorageBatchOperationsAsyncClient:
1384
1400
 
1385
1401
  # Send the request.
1386
1402
  await rpc(
1387
- request,
1403
+ request_pb,
1388
1404
  retry=retry,
1389
1405
  timeout=timeout,
1390
1406
  metadata=metadata,
@@ -1392,7 +1408,7 @@ class StorageBatchOperationsAsyncClient:
1392
1408
 
1393
1409
  async def get_location(
1394
1410
  self,
1395
- request: Optional[locations_pb2.GetLocationRequest] = None,
1411
+ request: Optional[Union[locations_pb2.GetLocationRequest, dict]] = None,
1396
1412
  *,
1397
1413
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1398
1414
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
@@ -1418,8 +1434,12 @@ class StorageBatchOperationsAsyncClient:
1418
1434
  # Create or coerce a protobuf request object.
1419
1435
  # The request isn't a proto-plus wrapped type,
1420
1436
  # so it must be constructed via keyword expansion.
1421
- if isinstance(request, dict):
1422
- request = locations_pb2.GetLocationRequest(**request)
1437
+ if request is None:
1438
+ request_pb = locations_pb2.GetLocationRequest()
1439
+ elif isinstance(request, dict):
1440
+ request_pb = locations_pb2.GetLocationRequest(**request)
1441
+ else:
1442
+ request_pb = request
1423
1443
 
1424
1444
  # Wrap the RPC method; this adds retry and timeout information,
1425
1445
  # and friendly error handling.
@@ -1428,7 +1448,7 @@ class StorageBatchOperationsAsyncClient:
1428
1448
  # Certain fields should be provided within the metadata header;
1429
1449
  # add these here.
1430
1450
  metadata = tuple(metadata) + (
1431
- gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1451
+ gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
1432
1452
  )
1433
1453
 
1434
1454
  # Validate the universe domain.
@@ -1436,7 +1456,7 @@ class StorageBatchOperationsAsyncClient:
1436
1456
 
1437
1457
  # Send the request.
1438
1458
  response = await rpc(
1439
- request,
1459
+ request_pb,
1440
1460
  retry=retry,
1441
1461
  timeout=timeout,
1442
1462
  metadata=metadata,
@@ -1447,7 +1467,7 @@ class StorageBatchOperationsAsyncClient:
1447
1467
 
1448
1468
  async def list_locations(
1449
1469
  self,
1450
- request: Optional[locations_pb2.ListLocationsRequest] = None,
1470
+ request: Optional[Union[locations_pb2.ListLocationsRequest, dict]] = None,
1451
1471
  *,
1452
1472
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1453
1473
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
@@ -1473,8 +1493,12 @@ class StorageBatchOperationsAsyncClient:
1473
1493
  # Create or coerce a protobuf request object.
1474
1494
  # The request isn't a proto-plus wrapped type,
1475
1495
  # so it must be constructed via keyword expansion.
1476
- if isinstance(request, dict):
1477
- request = locations_pb2.ListLocationsRequest(**request)
1496
+ if request is None:
1497
+ request_pb = locations_pb2.ListLocationsRequest()
1498
+ elif isinstance(request, dict):
1499
+ request_pb = locations_pb2.ListLocationsRequest(**request)
1500
+ else:
1501
+ request_pb = request
1478
1502
 
1479
1503
  # Wrap the RPC method; this adds retry and timeout information,
1480
1504
  # and friendly error handling.
@@ -1483,7 +1507,7 @@ class StorageBatchOperationsAsyncClient:
1483
1507
  # Certain fields should be provided within the metadata header;
1484
1508
  # add these here.
1485
1509
  metadata = tuple(metadata) + (
1486
- gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
1510
+ gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
1487
1511
  )
1488
1512
 
1489
1513
  # Validate the universe domain.
@@ -1491,7 +1515,7 @@ class StorageBatchOperationsAsyncClient:
1491
1515
 
1492
1516
  # Send the request.
1493
1517
  response = await rpc(
1494
- request,
1518
+ request_pb,
1495
1519
  retry=retry,
1496
1520
  timeout=timeout,
1497
1521
  metadata=metadata,