Skip to content

Commit f6b057d

Browse files
Add google.cloud.container API. (#4577)
1 parent a0fd477 commit f6b057d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

google/api_core/operation.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class Operation(polling.PollingFuture):
5353
Args:
5454
operation (google.longrunning.operations_pb2.Operation): The
5555
initial operation.
56-
refresh (Callable[[], Operation]): A callable that returns the
57-
latest state of the operation.
56+
refresh (Callable[[], ~.api_core.operation.Operation]): A callable that
57+
returns the latest state of the operation.
5858
cancel (Callable[[], None]): A callable that tries to cancel
5959
the operation.
6060
result_type (func:`type`): The protobuf type for the operation's
@@ -205,7 +205,8 @@ def from_http_json(operation, api_request, result_type, **kwargs):
205205
kwargs: Keyword args passed into the :class:`Operation` constructor.
206206
207207
Returns:
208-
Operation: The operation future to track the given operation.
208+
~.api_core.operation.Operation: The operation future to track the given
209+
operation.
209210
"""
210211
operation_proto = json_format.ParseDict(
211212
operation, operations_pb2.Operation())
@@ -261,7 +262,8 @@ def from_grpc(operation, operations_stub, result_type, **kwargs):
261262
kwargs: Keyword args passed into the :class:`Operation` constructor.
262263
263264
Returns:
264-
Operation: The operation future to track the given operation.
265+
~.api_core.operation.Operation: The operation future to track the given
266+
operation.
265267
"""
266268
refresh = functools.partial(
267269
_refresh_grpc, operations_stub, operation.name)
@@ -288,7 +290,8 @@ def from_gapic(operation, operations_client, result_type, **kwargs):
288290
kwargs: Keyword args passed into the :class:`Operation` constructor.
289291
290292
Returns:
291-
Operation: The operation future to track the given operation.
293+
~.api_core.operation.Operation: The operation future to track the given
294+
operation.
292295
"""
293296
refresh = functools.partial(
294297
operations_client.get_operation, operation.name)

0 commit comments

Comments
 (0)