55
55
56
56
57
57
class Environment (proto .Enum ):
58
- r"""The environment the function is hosted on."""
58
+ r"""The environment the function is hosted on.
59
+
60
+ Values:
61
+ ENVIRONMENT_UNSPECIFIED (0):
62
+ Unspecified
63
+ GEN_1 (1):
64
+ Gen 1
65
+ GEN_2 (2):
66
+ Gen 2
67
+ """
59
68
ENVIRONMENT_UNSPECIFIED = 0
60
69
GEN_1 = 1
61
70
GEN_2 = 2
@@ -100,7 +109,27 @@ class Function(proto.Message):
100
109
"""
101
110
102
111
class State (proto .Enum ):
103
- r"""Describes the current state of the function."""
112
+ r"""Describes the current state of the function.
113
+
114
+ Values:
115
+ STATE_UNSPECIFIED (0):
116
+ Not specified. Invalid state.
117
+ ACTIVE (1):
118
+ Function has been successfully deployed and
119
+ is serving.
120
+ FAILED (2):
121
+ Function deployment failed and the function
122
+ is not serving.
123
+ DEPLOYING (3):
124
+ Function is being created or updated.
125
+ DELETING (4):
126
+ Function is being deleted.
127
+ UNKNOWN (5):
128
+ Function deployment failed and the function
129
+ serving state is undefined. The function should
130
+ be updated or deleted to move it out of this
131
+ state.
132
+ """
104
133
STATE_UNSPECIFIED = 0
105
134
ACTIVE = 1
106
135
FAILED = 2
@@ -172,7 +201,18 @@ class StateMessage(proto.Message):
172
201
"""
173
202
174
203
class Severity (proto .Enum ):
175
- r"""Severity of the state message."""
204
+ r"""Severity of the state message.
205
+
206
+ Values:
207
+ SEVERITY_UNSPECIFIED (0):
208
+ Not specified. Invalid severity.
209
+ ERROR (1):
210
+ ERROR-level severity.
211
+ WARNING (2):
212
+ WARNING-level severity.
213
+ INFO (3):
214
+ INFO-level severity.
215
+ """
176
216
SEVERITY_UNSPECIFIED = 0
177
217
ERROR = 1
178
218
WARNING = 2
@@ -555,6 +595,16 @@ class VpcConnectorEgressSettings(proto.Enum):
555
595
556
596
This controls what traffic is diverted through the VPC Access
557
597
Connector resource. By default PRIVATE_RANGES_ONLY will be used.
598
+
599
+ Values:
600
+ VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED (0):
601
+ Unspecified.
602
+ PRIVATE_RANGES_ONLY (1):
603
+ Use the VPC Access Connector only for private
604
+ IP space from RFC1918.
605
+ ALL_TRAFFIC (2):
606
+ Force the use of VPC Access Connector for all
607
+ egress traffic from the function.
558
608
"""
559
609
VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0
560
610
PRIVATE_RANGES_ONLY = 1
@@ -566,6 +616,19 @@ class IngressSettings(proto.Enum):
566
616
This controls what traffic can reach the function.
567
617
568
618
If unspecified, ALLOW_ALL will be used.
619
+
620
+ Values:
621
+ INGRESS_SETTINGS_UNSPECIFIED (0):
622
+ Unspecified.
623
+ ALLOW_ALL (1):
624
+ Allow HTTP traffic from public and private
625
+ sources.
626
+ ALLOW_INTERNAL_ONLY (2):
627
+ Allow HTTP traffic from only private VPC
628
+ sources.
629
+ ALLOW_INTERNAL_AND_GCLB (3):
630
+ Allow HTTP traffic from private VPC sources
631
+ and through GCLB.
569
632
"""
570
633
INGRESS_SETTINGS_UNSPECIFIED = 0
571
634
ALLOW_ALL = 1
@@ -806,6 +869,15 @@ class EventTrigger(proto.Message):
806
869
class RetryPolicy (proto .Enum ):
807
870
r"""Describes the retry policy in case of function's execution
808
871
failure. Retried execution is charged as any other execution.
872
+
873
+ Values:
874
+ RETRY_POLICY_UNSPECIFIED (0):
875
+ Not specified.
876
+ RETRY_POLICY_DO_NOT_RETRY (1):
877
+ Do not retry.
878
+ RETRY_POLICY_RETRY (2):
879
+ Retry on any failure, retry up to 7 days with
880
+ an exponential backoff (capped at 10 seconds).
809
881
"""
810
882
RETRY_POLICY_UNSPECIFIED = 0
811
883
RETRY_POLICY_DO_NOT_RETRY = 1
@@ -1168,7 +1240,24 @@ class ListRuntimesResponse(proto.Message):
1168
1240
"""
1169
1241
1170
1242
class RuntimeStage (proto .Enum ):
1171
- r"""The various stages that a runtime can be in."""
1243
+ r"""The various stages that a runtime can be in.
1244
+
1245
+ Values:
1246
+ RUNTIME_STAGE_UNSPECIFIED (0):
1247
+ Not specified.
1248
+ DEVELOPMENT (1):
1249
+ The runtime is in development.
1250
+ ALPHA (2):
1251
+ The runtime is in the Alpha stage.
1252
+ BETA (3):
1253
+ The runtime is in the Beta stage.
1254
+ GA (4):
1255
+ The runtime is generally available.
1256
+ DEPRECATED (5):
1257
+ The runtime is deprecated.
1258
+ DECOMMISSIONED (6):
1259
+ The runtime is no longer supported.
1260
+ """
1172
1261
RUNTIME_STAGE_UNSPECIFIED = 0
1173
1262
DEVELOPMENT = 1
1174
1263
ALPHA = 2
@@ -1321,7 +1410,24 @@ class Stage(proto.Message):
1321
1410
"""
1322
1411
1323
1412
class Name (proto .Enum ):
1324
- r"""Possible names for a Stage"""
1413
+ r"""Possible names for a Stage
1414
+
1415
+ Values:
1416
+ NAME_UNSPECIFIED (0):
1417
+ Not specified. Invalid name.
1418
+ ARTIFACT_REGISTRY (1):
1419
+ Artifact Regsitry Stage
1420
+ BUILD (2):
1421
+ Build Stage
1422
+ SERVICE (3):
1423
+ Service Stage
1424
+ TRIGGER (4):
1425
+ Trigger Stage
1426
+ SERVICE_ROLLBACK (5):
1427
+ Service Rollback Stage
1428
+ TRIGGER_ROLLBACK (6):
1429
+ Trigger Rollback Stage
1430
+ """
1325
1431
NAME_UNSPECIFIED = 0
1326
1432
ARTIFACT_REGISTRY = 1
1327
1433
BUILD = 2
@@ -1331,7 +1437,18 @@ class Name(proto.Enum):
1331
1437
TRIGGER_ROLLBACK = 6
1332
1438
1333
1439
class State (proto .Enum ):
1334
- r"""Possible states for a Stage"""
1440
+ r"""Possible states for a Stage
1441
+
1442
+ Values:
1443
+ STATE_UNSPECIFIED (0):
1444
+ Not specified. Invalid state.
1445
+ NOT_STARTED (1):
1446
+ Stage has not started.
1447
+ IN_PROGRESS (2):
1448
+ Stage is in progress.
1449
+ COMPLETE (3):
1450
+ Stage has completed.
1451
+ """
1335
1452
STATE_UNSPECIFIED = 0
1336
1453
NOT_STARTED = 1
1337
1454
IN_PROGRESS = 2
0 commit comments