@@ -112,6 +112,22 @@ def _get_default_mtls_endpoint(api_endpoint):
112112 DEFAULT_ENDPOINT
113113 )
114114
115+ @classmethod
116+ def from_service_account_info (cls , info : dict , * args , ** kwargs ):
117+ """Creates an instance of this client using the provided credentials info.
118+
119+ Args:
120+ info (dict): The service account private key info.
121+ args: Additional arguments to pass to the constructor.
122+ kwargs: Additional arguments to pass to the constructor.
123+
124+ Returns:
125+ ExecutionsClient: The constructed client.
126+ """
127+ credentials = service_account .Credentials .from_service_account_info (info )
128+ kwargs ["credentials" ] = credentials
129+ return cls (* args , ** kwargs )
130+
115131 @classmethod
116132 def from_service_account_file (cls , filename : str , * args , ** kwargs ):
117133 """Creates an instance of this client using the provided credentials
@@ -124,7 +140,7 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
124140 kwargs: Additional arguments to pass to the constructor.
125141
126142 Returns:
127- {@api.name} : The constructed client.
143+ ExecutionsClient : The constructed client.
128144 """
129145 credentials = service_account .Credentials .from_service_account_file (filename )
130146 kwargs ["credentials" ] = credentials
@@ -250,10 +266,10 @@ def __init__(
250266 credentials identify the application to the service; if none
251267 are specified, the client will attempt to ascertain the
252268 credentials from the environment.
253- transport (Union[str, ~. ExecutionsTransport]): The
269+ transport (Union[str, ExecutionsTransport]): The
254270 transport to use. If set to None, a transport is chosen
255271 automatically.
256- client_options (client_options_lib .ClientOptions): Custom options for the
272+ client_options (google.api_core.client_options .ClientOptions): Custom options for the
257273 client. It won't take effect if a ``transport`` instance is provided.
258274 (1) The ``api_endpoint`` property can be used to override the
259275 default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT
@@ -367,15 +383,16 @@ def list_executions(
367383 first).
368384
369385 Args:
370- request (:class:`~.executions. ListExecutionsRequest` ):
386+ request (google.cloud.workflows.executions_v1beta.types. ListExecutionsRequest):
371387 The request object. Request for the
372388 [ListExecutions][google.cloud.workflows.executions.v1beta.Executions.ListExecutions]
373389 method.
374- parent (:class:` str` ):
390+ parent (str):
375391 Required. Name of the workflow for
376392 which the executions should be listed.
377393 Format:
378394 projects/{project}/locations/{location}/workflows/{workflow}
395+
379396 This corresponds to the ``parent`` field
380397 on the ``request`` instance; if ``request`` is provided, this
381398 should not be set.
@@ -387,10 +404,10 @@ def list_executions(
387404 sent along with the request as metadata.
388405
389406 Returns:
390- ~ .pagers.ListExecutionsPager:
407+ google.cloud.workflows.executions_v1beta.services.executions .pagers.ListExecutionsPager:
391408 Response for the
392- [ListExecutions][google.cloud.workflows.executions.v1beta.Executions.ListExecutions]
393- method.
409+ [ListExecutions][google.cloud.workflows.executions.v1beta.Executions.ListExecutions]
410+ method.
394411
395412 Iterating over this object will yield results and
396413 resolve additional pages automatically.
@@ -455,21 +472,22 @@ def create_execution(
455472 the given workflow.
456473
457474 Args:
458- request (:class:`~.executions. CreateExecutionRequest` ):
475+ request (google.cloud.workflows.executions_v1beta.types. CreateExecutionRequest):
459476 The request object. Request for the
460477 [CreateExecution][google.cloud.workflows.executions.v1beta.Executions.CreateExecution]
461478 method.
462- parent (:class:` str` ):
479+ parent (str):
463480 Required. Name of the workflow for
464481 which an execution should be created.
465482 Format:
466483 projects/{project}/locations/{location}/workflows/{workflow}
467484 The latest revision of the workflow will
468485 be used.
486+
469487 This corresponds to the ``parent`` field
470488 on the ``request`` instance; if ``request`` is provided, this
471489 should not be set.
472- execution (:class:`~.executions. Execution` ):
490+ execution (google.cloud.workflows.executions_v1beta.types. Execution):
473491 Required. Execution to be created.
474492 This corresponds to the ``execution`` field
475493 on the ``request`` instance; if ``request`` is provided, this
@@ -482,7 +500,7 @@ def create_execution(
482500 sent along with the request as metadata.
483501
484502 Returns:
485- ~.executions .Execution:
503+ google.cloud.workflows.executions_v1beta.types .Execution:
486504 A running instance of a
487505 [Workflow][google.cloud.workflows.v1beta.Workflow].
488506
@@ -540,14 +558,15 @@ def get_execution(
540558 r"""Returns an execution of the given name.
541559
542560 Args:
543- request (:class:`~.executions. GetExecutionRequest` ):
561+ request (google.cloud.workflows.executions_v1beta.types. GetExecutionRequest):
544562 The request object. Request for the
545563 [GetExecution][google.cloud.workflows.executions.v1beta.Executions.GetExecution]
546564 method.
547- name (:class:` str` ):
565+ name (str):
548566 Required. Name of the execution to be
549567 retrieved. Format:
550568 projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
569+
551570 This corresponds to the ``name`` field
552571 on the ``request`` instance; if ``request`` is provided, this
553572 should not be set.
@@ -559,7 +578,7 @@ def get_execution(
559578 sent along with the request as metadata.
560579
561580 Returns:
562- ~.executions .Execution:
581+ google.cloud.workflows.executions_v1beta.types .Execution:
563582 A running instance of a
564583 [Workflow][google.cloud.workflows.v1beta.Workflow].
565584
@@ -615,14 +634,15 @@ def cancel_execution(
615634 r"""Cancels an execution of the given name.
616635
617636 Args:
618- request (:class:`~.executions. CancelExecutionRequest` ):
637+ request (google.cloud.workflows.executions_v1beta.types. CancelExecutionRequest):
619638 The request object. Request for the
620639 [CancelExecution][google.cloud.workflows.executions.v1beta.Executions.CancelExecution]
621640 method.
622- name (:class:` str` ):
641+ name (str):
623642 Required. Name of the execution to be
624643 cancelled. Format:
625644 projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
645+
626646 This corresponds to the ``name`` field
627647 on the ``request`` instance; if ``request`` is provided, this
628648 should not be set.
@@ -634,7 +654,7 @@ def cancel_execution(
634654 sent along with the request as metadata.
635655
636656 Returns:
637- ~.executions .Execution:
657+ google.cloud.workflows.executions_v1beta.types .Execution:
638658 A running instance of a
639659 [Workflow][google.cloud.workflows.v1beta.Workflow].
640660
0 commit comments