diff --git a/google/cloud/eventarc_v1/services/eventarc/client.py b/google/cloud/eventarc_v1/services/eventarc/client.py index d2915af..3a3169f 100644 --- a/google/cloud/eventarc_v1/services/eventarc/client.py +++ b/google/cloud/eventarc_v1/services/eventarc/client.py @@ -2844,7 +2844,7 @@ def sample_update_google_channel_config(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "EventarcClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/eventarc_v1/types/channel.py b/google/cloud/eventarc_v1/types/channel.py index 164a517..cf62903 100644 --- a/google/cloud/eventarc_v1/types/channel.py +++ b/google/cloud/eventarc_v1/types/channel.py @@ -77,7 +77,35 @@ class Channel(proto.Message): """ class State(proto.Enum): - r"""State lists all the possible states of a Channel""" + r"""State lists all the possible states of a Channel + + Values: + STATE_UNSPECIFIED (0): + Default value. This value is unused. + PENDING (1): + The PENDING state indicates that a Channel + has been created successfully and there is a new + activation token available for the subscriber to + use to convey the Channel to the provider in + order to create a Connection. + ACTIVE (2): + The ACTIVE state indicates that a Channel has + been successfully connected with the event + provider. An ACTIVE Channel is ready to receive + and route events from the event provider. + INACTIVE (3): + The INACTIVE state indicates that the Channel + cannot receive events permanently. There are two + possible cases this state can happen: + 1. The SaaS provider disconnected from this + Channel. 2. The Channel activation token has + expired but the SaaS provider wasn't + connected. + + To re-establish a Connection with a provider, + the subscriber should create a new Channel and + give it to the provider. + """ STATE_UNSPECIFIED = 0 PENDING = 1 ACTIVE = 2 diff --git a/samples/generated_samples/snippet_metadata_google.cloud.eventarc.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.eventarc.v1.json index e26de00..596aaec 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.eventarc.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.eventarc.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-eventarc", - "version": "1.8.0" + "version": "0.1.0" }, "snippets": [ {