diff --git a/google/cloud/workflows/executions_v1/services/executions/client.py b/google/cloud/workflows/executions_v1/services/executions/client.py index a725049..d29233c 100644 --- a/google/cloud/workflows/executions_v1/services/executions/client.py +++ b/google/cloud/workflows/executions_v1/services/executions/client.py @@ -914,7 +914,7 @@ def sample_cancel_execution(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "ExecutionsClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/workflows/executions_v1/types/executions.py b/google/cloud/workflows/executions_v1/types/executions.py index 6a5e059..5a3879e 100644 --- a/google/cloud/workflows/executions_v1/types/executions.py +++ b/google/cloud/workflows/executions_v1/types/executions.py @@ -33,7 +33,18 @@ class ExecutionView(proto.Enum): - r"""Defines possible views for execution resource.""" + r"""Defines possible views for execution resource. + + Values: + EXECUTION_VIEW_UNSPECIFIED (0): + The default / unset value. + BASIC (1): + Includes only basic metadata about the execution. Following + fields are returned: name, start_time, end_time, state and + workflow_revision_id. + FULL (2): + Includes all data. + """ EXECUTION_VIEW_UNSPECIFIED = 0 BASIC = 1 FULL = 2 @@ -83,6 +94,18 @@ class Execution(proto.Message): class State(proto.Enum): r"""Describes the current state of the execution. More states might be added in the future. + + Values: + STATE_UNSPECIFIED (0): + Invalid state. + ACTIVE (1): + The execution is in progress. + SUCCEEDED (2): + The execution finished successfully. + FAILED (3): + The execution failed with an error. + CANCELLED (4): + The execution was stopped intentionally. """ STATE_UNSPECIFIED = 0 ACTIVE = 1 @@ -93,6 +116,16 @@ class State(proto.Enum): class CallLogLevel(proto.Enum): r"""Describes the level of platform logging to apply to calls and call responses during workflow executions. + + Values: + CALL_LOG_LEVEL_UNSPECIFIED (0): + No call logging specified. + LOG_ALL_CALLS (1): + Log all call steps within workflows, all call + returns, and all exceptions raised. + LOG_ERRORS_ONLY (2): + Log only exceptions that are raised from call + steps within workflows. """ CALL_LOG_LEVEL_UNSPECIFIED = 0 LOG_ALL_CALLS = 1 diff --git a/google/cloud/workflows/executions_v1beta/services/executions/client.py b/google/cloud/workflows/executions_v1beta/services/executions/client.py index 0c16f1b..5400759 100644 --- a/google/cloud/workflows/executions_v1beta/services/executions/client.py +++ b/google/cloud/workflows/executions_v1beta/services/executions/client.py @@ -915,7 +915,7 @@ def sample_cancel_execution(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "ExecutionsClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/workflows/executions_v1beta/types/executions.py b/google/cloud/workflows/executions_v1beta/types/executions.py index 856c80a..af14c27 100644 --- a/google/cloud/workflows/executions_v1beta/types/executions.py +++ b/google/cloud/workflows/executions_v1beta/types/executions.py @@ -33,7 +33,18 @@ class ExecutionView(proto.Enum): - r"""Defines possible views for execution resource.""" + r"""Defines possible views for execution resource. + + Values: + EXECUTION_VIEW_UNSPECIFIED (0): + The default / unset value. + BASIC (1): + Includes only basic metadata about the execution. Following + fields are returned: name, start_time, end_time, state and + workflow_revision_id. + FULL (2): + Includes all data. + """ EXECUTION_VIEW_UNSPECIFIED = 0 BASIC = 1 FULL = 2 @@ -75,6 +86,18 @@ class Execution(proto.Message): class State(proto.Enum): r"""Describes the current state of the execution. More states may be added in the future. + + Values: + STATE_UNSPECIFIED (0): + Invalid state. + ACTIVE (1): + The execution is in progress. + SUCCEEDED (2): + The execution finished successfully. + FAILED (3): + The execution failed with an error. + CANCELLED (4): + The execution was stopped intentionally. """ STATE_UNSPECIFIED = 0 ACTIVE = 1 diff --git a/google/cloud/workflows_v1/services/workflows/client.py b/google/cloud/workflows_v1/services/workflows/client.py index d7625ed..bb5fcd3 100644 --- a/google/cloud/workflows_v1/services/workflows/client.py +++ b/google/cloud/workflows_v1/services/workflows/client.py @@ -1091,7 +1091,7 @@ def sample_update_workflow(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "WorkflowsClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/workflows_v1/types/workflows.py b/google/cloud/workflows_v1/types/workflows.py index 92cb9d5..551a524 100644 --- a/google/cloud/workflows_v1/types/workflows.py +++ b/google/cloud/workflows_v1/types/workflows.py @@ -106,6 +106,13 @@ class Workflow(proto.Message): class State(proto.Enum): r"""Describes the current state of workflow deployment. More states may be added in the future. + + Values: + STATE_UNSPECIFIED (0): + Invalid state. + ACTIVE (1): + The workflow has been deployed successfully + and is serving. """ STATE_UNSPECIFIED = 0 ACTIVE = 1 diff --git a/google/cloud/workflows_v1beta/services/workflows/client.py b/google/cloud/workflows_v1beta/services/workflows/client.py index b4e5ca3..b7016cd 100644 --- a/google/cloud/workflows_v1beta/services/workflows/client.py +++ b/google/cloud/workflows_v1beta/services/workflows/client.py @@ -1091,7 +1091,7 @@ def sample_update_workflow(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "WorkflowsClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/workflows_v1beta/types/workflows.py b/google/cloud/workflows_v1beta/types/workflows.py index 385b839..37d05f1 100644 --- a/google/cloud/workflows_v1beta/types/workflows.py +++ b/google/cloud/workflows_v1beta/types/workflows.py @@ -103,6 +103,13 @@ class Workflow(proto.Message): class State(proto.Enum): r"""Describes the current state of workflow deployment. More states may be added in the future. + + Values: + STATE_UNSPECIFIED (0): + Invalid state. + ACTIVE (1): + The workflow has been deployed successfully + and is serving. """ STATE_UNSPECIFIED = 0 ACTIVE = 1 diff --git a/samples/generated_samples/snippet_metadata_google.cloud.workflows.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.workflows.v1.json index 3a938d7..5eeb3c2 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.workflows.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.workflows.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-workflows", - "version": "1.9.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.workflows.v1beta.json b/samples/generated_samples/snippet_metadata_google.cloud.workflows.v1beta.json index a378185..e6e1022 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.workflows.v1beta.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.workflows.v1beta.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-workflows", - "version": "1.9.0" + "version": "0.1.0" }, "snippets": [ {