diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4c313f9..4918b25 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.4.0" + ".": "1.4.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 678c475..b8768e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.4.1](https://github.com/googleapis/python-essential-contacts/compare/v1.4.0...v1.4.1) (2023-01-20) + + +### Bug Fixes + +* Add context manager return types ([a7d37c6](https://github.com/googleapis/python-essential-contacts/commit/a7d37c62b7dca7e06074e32135883aebfa8cb67a)) + + +### Documentation + +* Add documentation for enums ([a7d37c6](https://github.com/googleapis/python-essential-contacts/commit/a7d37c62b7dca7e06074e32135883aebfa8cb67a)) + ## [1.4.0](https://github.com/googleapis/python-essential-contacts/compare/v1.3.0...v1.4.0) (2023-01-10) diff --git a/google/cloud/essential_contacts/gapic_version.py b/google/cloud/essential_contacts/gapic_version.py index 18c65df..dc24d9a 100644 --- a/google/cloud/essential_contacts/gapic_version.py +++ b/google/cloud/essential_contacts/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.4.0" # {x-release-please-version} +__version__ = "1.4.1" # {x-release-please-version} diff --git a/google/cloud/essential_contacts_v1/gapic_version.py b/google/cloud/essential_contacts_v1/gapic_version.py index 18c65df..dc24d9a 100644 --- a/google/cloud/essential_contacts_v1/gapic_version.py +++ b/google/cloud/essential_contacts_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.4.0" # {x-release-please-version} +__version__ = "1.4.1" # {x-release-please-version} diff --git a/google/cloud/essential_contacts_v1/services/essential_contacts_service/client.py b/google/cloud/essential_contacts_v1/services/essential_contacts_service/client.py index e828665..9cda333 100644 --- a/google/cloud/essential_contacts_v1/services/essential_contacts_service/client.py +++ b/google/cloud/essential_contacts_v1/services/essential_contacts_service/client.py @@ -1152,7 +1152,7 @@ def sample_send_test_message(): metadata=metadata, ) - def __enter__(self): + def __enter__(self) -> "EssentialContactsServiceClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/essential_contacts_v1/types/enums.py b/google/cloud/essential_contacts_v1/types/enums.py index 92ad009..62f63b1 100644 --- a/google/cloud/essential_contacts_v1/types/enums.py +++ b/google/cloud/essential_contacts_v1/types/enums.py @@ -31,6 +31,38 @@ class NotificationCategory(proto.Enum): subscribed to. Each notification will be categorized by the sender into one of the following categories. All contacts that are subscribed to that category will receive the notification. + + Values: + NOTIFICATION_CATEGORY_UNSPECIFIED (0): + Notification category is unrecognized or + unspecified. + ALL (2): + All notifications related to the resource, + including notifications pertaining to categories + added in the future. + SUSPENSION (3): + Notifications related to imminent account + suspension. + SECURITY (5): + Notifications related to security/privacy + incidents, notifications, and vulnerabilities. + TECHNICAL (6): + Notifications related to technical events and + issues such as outages, errors, or bugs. + BILLING (7): + Notifications related to billing and payments + notifications, price updates, errors, or + credits. + LEGAL (8): + Notifications related to enforcement actions, + regulatory compliance, or government notices. + PRODUCT_UPDATES (9): + Notifications related to new versions, + product terms updates, or deprecations. + TECHNICAL_INCIDENTS (10): + Child category of TECHNICAL. If assigned, + technical incident notifications will go to + these contacts instead of TECHNICAL. """ NOTIFICATION_CATEGORY_UNSPECIFIED = 0 ALL = 2 @@ -47,6 +79,19 @@ class ValidationState(proto.Enum): r"""A contact's validation state indicates whether or not it is the correct contact to be receiving notifications for a particular resource. + + Values: + VALIDATION_STATE_UNSPECIFIED (0): + The validation state is unknown or + unspecified. + VALID (1): + The contact is marked as valid. This is + usually done manually by the contact admin. All + new contacts begin in the valid state. + INVALID (2): + The contact is considered invalid. This may + become the state if the contact's email is found + to be unreachable. """ VALIDATION_STATE_UNSPECIFIED = 0 VALID = 1 diff --git a/samples/generated_samples/snippet_metadata_google.cloud.essentialcontacts.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.essentialcontacts.v1.json index 738497f..cf57f6f 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.essentialcontacts.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.essentialcontacts.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-essential-contacts", - "version": "1.4.0" + "version": "1.4.1" }, "snippets": [ {