You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
on the ``request`` instance; if ``request`` is provided, this
622
+
should not be set.
623
+
retry (google.api_core.retry.Retry): Designation of what errors, if any,
624
+
should be retried.
625
+
timeout (float): The timeout for this request.
626
+
metadata (Sequence[Tuple[str, str]]): Strings which should be
627
+
sent along with the request as metadata.
628
+
629
+
Returns:
630
+
google.api_core.operation_async.AsyncOperation:
631
+
An object representing a long-running operation.
632
+
633
+
The result type for the operation will be :class:`google.cloud.run_v2.types.Execution` Execution represents the configuration of a single execution. A execution an
634
+
immutable resource that references a container image
635
+
which is run to completion.
636
+
637
+
"""
638
+
# Create or coerce a protobuf request object.
639
+
# Quick check: If we got a request object, we should *not* have
640
+
# gotten any keyword arguments that map to the request.
641
+
has_flattened_params=any([name])
642
+
ifrequestisnotNoneandhas_flattened_params:
643
+
raiseValueError(
644
+
"If the `request` argument is set, then none of "
645
+
"the individual field arguments should be set."
646
+
)
647
+
648
+
request=execution.CancelExecutionRequest(request)
649
+
650
+
# If we have keyword arguments corresponding to fields on the
651
+
# request, apply these.
652
+
ifnameisnotNone:
653
+
request.name=name
654
+
655
+
# Wrap the RPC method; this adds retry and timeout information,
656
+
# and friendly error handling.
657
+
rpc=gapic_v1.method_async.wrap_method(
658
+
self._client._transport.cancel_execution,
659
+
default_timeout=None,
660
+
client_info=DEFAULT_CLIENT_INFO,
661
+
)
662
+
663
+
# Certain fields should be provided within the metadata header;
0 commit comments