diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 64e0684..d0972da 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.7.0" + ".": "1.7.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 27c64e3..a0df603 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.7.1](https://github.com/googleapis/python-data-fusion/compare/v1.7.0...v1.7.1) (2023-01-20) + + +### Bug Fixes + +* Add context manager return types ([bf54384](https://github.com/googleapis/python-data-fusion/commit/bf54384f0fc0bf51c9e61b17e9a0db6a4cd6dcf8)) + + +### Documentation + +* Add documentation for enums ([bf54384](https://github.com/googleapis/python-data-fusion/commit/bf54384f0fc0bf51c9e61b17e9a0db6a4cd6dcf8)) + ## [1.7.0](https://github.com/googleapis/python-data-fusion/compare/v1.6.0...v1.7.0) (2023-01-10) diff --git a/google/cloud/data_fusion/gapic_version.py b/google/cloud/data_fusion/gapic_version.py index f033c61..84856f0 100644 --- a/google/cloud/data_fusion/gapic_version.py +++ b/google/cloud/data_fusion/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.7.0" # {x-release-please-version} +__version__ = "1.7.1" # {x-release-please-version} diff --git a/google/cloud/data_fusion_v1/gapic_version.py b/google/cloud/data_fusion_v1/gapic_version.py index f033c61..84856f0 100644 --- a/google/cloud/data_fusion_v1/gapic_version.py +++ b/google/cloud/data_fusion_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.7.0" # {x-release-please-version} +__version__ = "1.7.1" # {x-release-please-version} diff --git a/google/cloud/data_fusion_v1/services/data_fusion/client.py b/google/cloud/data_fusion_v1/services/data_fusion/client.py index 743d85c..9267ad1 100644 --- a/google/cloud/data_fusion_v1/services/data_fusion/client.py +++ b/google/cloud/data_fusion_v1/services/data_fusion/client.py @@ -1267,7 +1267,7 @@ def sample_restart_instance(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "DataFusionClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/data_fusion_v1/types/datafusion.py b/google/cloud/data_fusion_v1/types/datafusion.py index a47359f..78830fd 100644 --- a/google/cloud/data_fusion_v1/types/datafusion.py +++ b/google/cloud/data_fusion_v1/types/datafusion.py @@ -99,6 +99,15 @@ class Version(proto.Message): class Type(proto.Enum): r"""Each type represents the release availability of a CDF version + + Values: + TYPE_UNSPECIFIED (0): + Version does not have availability yet + TYPE_PREVIEW (1): + Version is under development and not + considered stable + TYPE_GENERAL_AVAILABILITY (2): + Version is available for public use """ TYPE_UNSPECIFIED = 0 TYPE_PREVIEW = 1 @@ -136,6 +145,22 @@ class Accelerator(proto.Message): class AcceleratorType(proto.Enum): r"""Each type represents an Accelerator (Add-On) supported by Cloud Data Fusion service. + + Values: + ACCELERATOR_TYPE_UNSPECIFIED (0): + Default value, if unspecified. + CDC (1): + Change Data Capture accelerator for CDF. + HEALTHCARE (2): + Cloud Healthcare accelerator for CDF. This + accelerator is to enable Cloud Healthcare + specific CDF plugins developed by Healthcare + team. + CCAI_INSIGHTS (3): + Contact Center AI Insights + This accelerator is used to enable import and + export pipelines custom built to streamline CCAI + Insights processing. """ ACCELERATOR_TYPE_UNSPECIFIED = 0 CDC = 1 @@ -143,7 +168,22 @@ class AcceleratorType(proto.Enum): CCAI_INSIGHTS = 3 class State(proto.Enum): - r"""Different values possible for the state of an accelerator""" + r"""Different values possible for the state of an accelerator + + Values: + STATE_UNSPECIFIED (0): + Default value, do not use + ENABLED (1): + Indicates that the accelerator is enabled and + available to use + DISABLED (2): + Indicates that the accelerator is disabled + and not available to use + UNKNOWN (3): + Indicates that accelerator state is currently + unknown. Requests for enable, disable could be + retried while in this state + """ STATE_UNSPECIFIED = 0 ENABLED = 1 DISABLED = 2 @@ -279,6 +319,30 @@ class Instance(proto.Message): class Type(proto.Enum): r"""Represents the type of Data Fusion instance. Each type is configured with the default settings for processing and memory. + + Values: + TYPE_UNSPECIFIED (0): + No type specified. The instance creation will + fail. + BASIC (1): + Basic Data Fusion instance. In Basic type, + the user will be able to create data pipelines + using point and click UI. However, there are + certain limitations, such as fewer number of + concurrent pipelines, no support for streaming + pipelines, etc. + ENTERPRISE (2): + Enterprise Data Fusion instance. In + Enterprise type, the user will have all features + available, such as support for streaming + pipelines, higher number of concurrent + pipelines, etc. + DEVELOPER (3): + Developer Data Fusion instance. In Developer + type, the user will have all features available + but with restrictive capabilities. This is to + help enterprises design and develop their data + ingestion and integration pipelines at low cost. """ TYPE_UNSPECIFIED = 0 BASIC = 1 @@ -286,7 +350,34 @@ class Type(proto.Enum): DEVELOPER = 3 class State(proto.Enum): - r"""Represents the state of a Data Fusion instance""" + r"""Represents the state of a Data Fusion instance + + Values: + STATE_UNSPECIFIED (0): + Instance does not have a state yet + CREATING (1): + Instance is being created + ACTIVE (2): + Instance is active and ready for requests. + This corresponds to 'RUNNING' in + datafusion.v1beta1. + FAILED (3): + Instance creation failed + DELETING (4): + Instance is being deleted + UPGRADING (5): + Instance is being upgraded + RESTARTING (6): + Instance is being restarted + UPDATING (7): + Instance is being updated on customer request + AUTO_UPDATING (8): + Instance is being auto-updated + AUTO_UPGRADING (9): + Instance is being auto-upgraded + DISABLED (10): + Instance is disabled + """ STATE_UNSPECIFIED = 0 CREATING = 1 ACTIVE = 2 @@ -302,6 +393,13 @@ class State(proto.Enum): class DisabledReason(proto.Enum): r"""The reason for disabling the instance if the state is DISABLED. + + Values: + DISABLED_REASON_UNSPECIFIED (0): + This is an unknown reason for disabling. + KMS_KEY_ISSUE (1): + The KMS key used by the instance is either + revoked or denied access to """ DISABLED_REASON_UNSPECIFIED = 0 KMS_KEY_ISSUE = 1 diff --git a/samples/generated_samples/snippet_metadata_google.cloud.datafusion.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.datafusion.v1.json index 334a9cd..4edf6df 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.datafusion.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.datafusion.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-data-fusion", - "version": "1.7.0" + "version": "1.7.1" }, "snippets": [ {