Skip to content

Commit 8ac5406

Browse files
authored
Back out changes from #6267 / 'api_core-1.6.0a1' release. (#6328)
We will bring them back in when we have an OK to make a non-alpha 'api_core-1.6.0' release. Toward #6326.
1 parent f121c44 commit 8ac5406

File tree

5 files changed

+0
-120
lines changed

5 files changed

+0
-120
lines changed

google/api_core/gapic_v2/__init__.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

google/api_core/gapic_v2/dispatch.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

google/api_core/operation.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,6 @@ def metadata(self):
9494
return protobuf_helpers.from_any_pb(
9595
self._metadata_type, self._operation.metadata)
9696

97-
@classmethod
98-
def deserialize(self, payload):
99-
"""Deserialize a ``google.longrunning.Operation`` protocol buffer.
100-
101-
Args:
102-
payload (bytes): A serialized operation protocol buffer.
103-
104-
Returns:
105-
~.operations_pb2.Operation: An Operation protobuf object.
106-
"""
107-
return operations_pb2.Operation.FromString(payload)
108-
10997
def _set_result_from_operation(self):
11098
"""Set the result or exception from the operation if it is complete."""
11199
# This must be done in a lock to prevent the polling thread

tests/unit/gapic/test_dispatch.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

tests/unit/test_operation.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,3 @@ def test_from_gapic():
221221
assert future._metadata_type == struct_pb2.Struct
222222
assert future.operation.name == TEST_OPERATION_NAME
223223
assert future.done
224-
225-
226-
def test_deserialize():
227-
op = make_operation_proto(name='foobarbaz')
228-
serialized = op.SerializeToString()
229-
deserialized_op = operation.Operation.deserialize(serialized)
230-
assert op.name == deserialized_op.name
231-
assert type(op) is type(deserialized_op)

0 commit comments

Comments
 (0)