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

Commit f5187a3

Browse files
docs: Add documentation for enums (#198)
* 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: 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 <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent f5b1d9b commit f5187a3

File tree

3 files changed

+63
-5
lines changed

3 files changed

+63
-5
lines changed

google/cloud/managedidentities_v1/services/managed_identities_service/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ def sample_validate_trust():
17971797
# Done; return the response.
17981798
return response
17991799

1800-
def __enter__(self):
1800+
def __enter__(self) -> "ManagedIdentitiesServiceClient":
18011801
return self
18021802

18031803
def __exit__(self, type, value, traceback):

google/cloud/managedidentities_v1/types/resource.py

+61-3
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,28 @@ class Domain(proto.Message):
8181
"""
8282

8383
class State(proto.Enum):
84-
r"""Represents the different states of a managed domain."""
84+
r"""Represents the different states of a managed domain.
85+
86+
Values:
87+
STATE_UNSPECIFIED (0):
88+
Not set.
89+
CREATING (1):
90+
The domain is being created.
91+
READY (2):
92+
The domain has been created and is fully
93+
usable.
94+
UPDATING (3):
95+
The domain's configuration is being updated.
96+
DELETING (4):
97+
The domain is being deleted.
98+
REPAIRING (5):
99+
The domain is being repaired and may be unusable. Details
100+
can be found in the ``status_message`` field.
101+
PERFORMING_MAINTENANCE (6):
102+
The domain is undergoing maintenance.
103+
UNAVAILABLE (7):
104+
The domain is not serving requests.
105+
"""
85106
STATE_UNSPECIFIED = 0
86107
CREATING = 1
87108
READY = 2
@@ -192,7 +213,22 @@ class Trust(proto.Message):
192213
"""
193214

194215
class State(proto.Enum):
195-
r"""Represents the different states of a domain trust."""
216+
r"""Represents the different states of a domain trust.
217+
218+
Values:
219+
STATE_UNSPECIFIED (0):
220+
Not set.
221+
CREATING (1):
222+
The domain trust is being created.
223+
UPDATING (2):
224+
The domain trust is being updated.
225+
DELETING (3):
226+
The domain trust is being deleted.
227+
CONNECTED (4):
228+
The domain trust is connected.
229+
DISCONNECTED (5):
230+
The domain trust is disconnected.
231+
"""
196232
STATE_UNSPECIFIED = 0
197233
CREATING = 1
198234
UPDATING = 2
@@ -201,7 +237,16 @@ class State(proto.Enum):
201237
DISCONNECTED = 5
202238

203239
class TrustType(proto.Enum):
204-
r"""Represents the different inter-forest trust types."""
240+
r"""Represents the different inter-forest trust types.
241+
242+
Values:
243+
TRUST_TYPE_UNSPECIFIED (0):
244+
Not set.
245+
FOREST (1):
246+
The forest trust.
247+
EXTERNAL (2):
248+
The external domain trust.
249+
"""
205250
TRUST_TYPE_UNSPECIFIED = 0
206251
FOREST = 1
207252
EXTERNAL = 2
@@ -210,6 +255,19 @@ class TrustDirection(proto.Enum):
210255
r"""Represents the direction of trust. See
211256
`System.DirectoryServices.ActiveDirectory.TrustDirection <https://docs.microsoft.com/en-us/dotnet/api/system.directoryservices.activedirectory.trustdirection?view=netframework-4.7.2>`__
212257
for more information.
258+
259+
Values:
260+
TRUST_DIRECTION_UNSPECIFIED (0):
261+
Not set.
262+
INBOUND (1):
263+
The inbound direction represents the trusting
264+
side.
265+
OUTBOUND (2):
266+
The outboud direction represents the trusted
267+
side.
268+
BIDIRECTIONAL (3):
269+
The bidirectional direction represents the
270+
trusted / trusting side.
213271
"""
214272
TRUST_DIRECTION_UNSPECIFIED = 0
215273
INBOUND = 1

samples/generated_samples/snippet_metadata_google.cloud.managedidentities.v1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-managed-identities",
11-
"version": "1.7.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)