Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
docs: Add documentation for enums (#188)
Browse files Browse the repository at this point in the history
* 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: googleapis/googleapis@a391fd1

Source-Link: googleapis/googleapis-gen@0080f83
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 <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jan 20, 2023
1 parent 0857891 commit 2c7b15b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
2 changes: 1 addition & 1 deletion google/cloud/eventarc_v1/services/eventarc/client.py
Expand Up @@ -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):
Expand Down
30 changes: 29 additions & 1 deletion google/cloud/eventarc_v1/types/channel.py
Expand Up @@ -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
Expand Down
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-eventarc",
"version": "1.8.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 2c7b15b

Please sign in to comment.