From c5468129ce7301e1d22943b63b9fd3eb22682cd0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 15:30:48 -0500 Subject: [PATCH 1/2] docs: Add documentation for enums (#42) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Add documentation for enums fix: Add context manager return types chore: Update gapic-generator-python to v1.8.1 PiperOrigin-RevId: 503210727 Source-Link: https://github.com/googleapis/googleapis/commit/a391fd1dac18dfdfa00c18c8404f2c3a6ff8e98e Source-Link: https://github.com/googleapis/googleapis-gen/commit/0080f830dec37c3384157082bce279e37079ea58 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA4MGY4MzBkZWMzN2MzMzg0MTU3MDgyYmNlMjc5ZTM3MDc5ZWE1OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../services/dataform/client.py | 2 +- .../cloud/dataform_v1beta1/types/dataform.py | 89 ++++++++++++++++++- ...etadata_google.cloud.dataform.v1beta1.json | 2 +- 3 files changed, 87 insertions(+), 6 deletions(-) diff --git a/google/cloud/dataform_v1beta1/services/dataform/client.py b/google/cloud/dataform_v1beta1/services/dataform/client.py index cf432b1..7791223 100644 --- a/google/cloud/dataform_v1beta1/services/dataform/client.py +++ b/google/cloud/dataform_v1beta1/services/dataform/client.py @@ -3860,7 +3860,7 @@ def sample_query_workflow_invocation_actions(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "DataformClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/dataform_v1beta1/types/dataform.py b/google/cloud/dataform_v1beta1/types/dataform.py index cff9d13..b2efda2 100644 --- a/google/cloud/dataform_v1beta1/types/dataform.py +++ b/google/cloud/dataform_v1beta1/types/dataform.py @@ -118,7 +118,22 @@ class GitRemoteSettings(proto.Message): """ class TokenStatus(proto.Enum): - r"""Indicates the status of a Git authentication token.""" + r"""Indicates the status of a Git authentication token. + + Values: + TOKEN_STATUS_UNSPECIFIED (0): + Default value. This value is unused. + NOT_FOUND (1): + The token could not be found in Secret + Manager (or the Dataform Service Account did not + have permission to access it). + INVALID (2): + The token could not be used to authenticate + against the Git remote. + VALID (3): + The token was used successfully to + authenticate against the Git remote. + """ TOKEN_STATUS_UNSPECIFIED = 0 NOT_FOUND = 1 INVALID = 2 @@ -624,7 +639,20 @@ class UncommittedFileChange(proto.Message): """ class State(proto.Enum): - r"""Indicates the status of an uncommitted file change.""" + r"""Indicates the status of an uncommitted file change. + + Values: + STATE_UNSPECIFIED (0): + Default value. This value is unused. + ADDED (1): + The file has been newly added. + DELETED (2): + The file has been deleted. + MODIFIED (3): + The file has been modified. + HAS_CONFLICTS (4): + The file contains merge conflicts. + """ STATE_UNSPECIFIED = 0 ADDED = 1 DELETED = 2 @@ -1571,7 +1599,20 @@ class Relation(proto.Message): """ class RelationType(proto.Enum): - r"""Indicates the type of this relation.""" + r"""Indicates the type of this relation. + + Values: + RELATION_TYPE_UNSPECIFIED (0): + Default value. This value is unused. + TABLE (1): + The relation is a table. + VIEW (2): + The relation is a view. + INCREMENTAL_TABLE (3): + The relation is an incrementalized table. + MATERIALIZED_VIEW (4): + The relation is a materialized view. + """ RELATION_TYPE_UNSPECIFIED = 0 TABLE = 1 VIEW = 2 @@ -1947,7 +1988,26 @@ class WorkflowInvocation(proto.Message): """ class State(proto.Enum): - r"""Represents the current state of a workflow invocation.""" + r"""Represents the current state of a workflow invocation. + + Values: + STATE_UNSPECIFIED (0): + Default value. This value is unused. + RUNNING (1): + The workflow invocation is currently running. + SUCCEEDED (2): + The workflow invocation succeeded. A terminal + state. + CANCELLED (3): + The workflow invocation was cancelled. A + terminal state. + FAILED (4): + The workflow invocation failed. A terminal + state. + CANCELING (5): + The workflow invocation is being cancelled, + but some actions are still running. + """ STATE_UNSPECIFIED = 0 RUNNING = 1 SUCCEEDED = 2 @@ -2194,6 +2254,27 @@ class WorkflowInvocationAction(proto.Message): class State(proto.Enum): r"""Represents the current state of an workflow invocation action. + + Values: + PENDING (0): + The action has not yet been considered for + invocation. + RUNNING (1): + The action is currently running. + SKIPPED (2): + Execution of the action was skipped because + upstream dependencies did not all complete + successfully. A terminal state. + DISABLED (3): + Execution of the action was disabled as per + the configuration of the corresponding + compilation result action. A terminal state. + SUCCEEDED (4): + The action succeeded. A terminal state. + CANCELLED (5): + The action was cancelled. A terminal state. + FAILED (6): + The action failed. A terminal state. """ PENDING = 0 RUNNING = 1 diff --git a/samples/generated_samples/snippet_metadata_google.cloud.dataform.v1beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.dataform.v1beta1.json index c5b897e..acdf6fb 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.dataform.v1beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.dataform.v1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-dataform", - "version": "0.4.0" + "version": "0.1.0" }, "snippets": [ { From 9ea7f3d9a35ca23785b60d1cdf6f6ff29051e663 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Jan 2023 10:58:48 -0500 Subject: [PATCH 2/2] chore(main): release 0.4.1 (#43) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 12 ++++++++++++ google/cloud/dataform/gapic_version.py | 2 +- google/cloud/dataform_v1beta1/gapic_version.py | 2 +- ...ippet_metadata_google.cloud.dataform.v1beta1.json | 2 +- 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2537c1f..218393f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.4.0" + ".": "0.4.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 5dca410..c94fc42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [0.4.1](https://github.com/googleapis/python-dataform/compare/v0.4.0...v0.4.1) (2023-01-20) + + +### Bug Fixes + +* Add context manager return types ([c546812](https://github.com/googleapis/python-dataform/commit/c5468129ce7301e1d22943b63b9fd3eb22682cd0)) + + +### Documentation + +* Add documentation for enums ([c546812](https://github.com/googleapis/python-dataform/commit/c5468129ce7301e1d22943b63b9fd3eb22682cd0)) + ## [0.4.0](https://github.com/googleapis/python-dataform/compare/v0.3.0...v0.4.0) (2023-01-10) diff --git a/google/cloud/dataform/gapic_version.py b/google/cloud/dataform/gapic_version.py index 933e30b..1f65b1e 100644 --- a/google/cloud/dataform/gapic_version.py +++ b/google/cloud/dataform/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.4.0" # {x-release-please-version} +__version__ = "0.4.1" # {x-release-please-version} diff --git a/google/cloud/dataform_v1beta1/gapic_version.py b/google/cloud/dataform_v1beta1/gapic_version.py index 933e30b..1f65b1e 100644 --- a/google/cloud/dataform_v1beta1/gapic_version.py +++ b/google/cloud/dataform_v1beta1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.4.0" # {x-release-please-version} +__version__ = "0.4.1" # {x-release-please-version} diff --git a/samples/generated_samples/snippet_metadata_google.cloud.dataform.v1beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.dataform.v1beta1.json index acdf6fb..8b82e8a 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.dataform.v1beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.dataform.v1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-dataform", - "version": "0.1.0" + "version": "0.4.1" }, "snippets": [ {