Skip to content

Commit 9c9ca34

Browse files
yoshi-automationtseaver
authored andcommitted
Pick up enum fixes in the GAPIC generator. (#6614)
1 parent 80a8508 commit 9c9ca34

File tree

1 file changed

+131
-89
lines changed
  • monitoring/google/cloud/monitoring_v3/gapic

1 file changed

+131
-89
lines changed

monitoring/google/cloud/monitoring_v3/gapic/enums.py

Lines changed: 131 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@
1818
import enum
1919

2020

21+
class NullValue(enum.IntEnum):
22+
"""
23+
``NullValue`` is a singleton enumeration to represent the null value for
24+
the ``Value`` type union.
25+
26+
The JSON representation for ``NullValue`` is JSON ``null``.
27+
28+
Attributes:
29+
NULL_VALUE (int): Null value.
30+
"""
31+
NULL_VALUE = 0
32+
33+
2134
class ComparisonType(enum.IntEnum):
2235
"""
2336
Specifies an ordering relationship on two arguments, here called left and
@@ -66,6 +79,48 @@ class ServiceTier(enum.IntEnum):
6679
SERVICE_TIER_PREMIUM = 2
6780

6881

82+
class LaunchStage(enum.IntEnum):
83+
"""
84+
The launch stage as defined by `Google Cloud Platform Launch
85+
Stages <http://cloud.google.com/terms/launch-stages>`__.
86+
87+
Attributes:
88+
LAUNCH_STAGE_UNSPECIFIED (int): Do not use this default value.
89+
EARLY_ACCESS (int): Early Access features are limited to a closed group of testers. To use
90+
these features, you must sign up in advance and sign a Trusted Tester
91+
agreement (which includes confidentiality provisions). These features may
92+
be unstable, changed in backward-incompatible ways, and are not
93+
guaranteed to be released.
94+
ALPHA (int): Alpha is a limited availability test for releases before they are cleared
95+
for widespread use. By Alpha, all significant design issues are resolved
96+
and we are in the process of verifying functionality. Alpha customers
97+
need to apply for access, agree to applicable terms, and have their
98+
projects whitelisted. Alpha releases don’t have to be feature complete,
99+
no SLAs are provided, and there are no technical support obligations, but
100+
they will be far enough along that customers can actually use them in
101+
test environments or for limited-use tests -- just like they would in
102+
normal production cases.
103+
BETA (int): Beta is the point at which we are ready to open a release for any
104+
customer to use. There are no SLA or technical support obligations in a
105+
Beta release. Products will be complete from a feature perspective, but
106+
may have some open outstanding issues. Beta releases are suitable for
107+
limited production use cases.
108+
GA (int): GA features are open to all developers and are considered stable and
109+
fully qualified for production use.
110+
DEPRECATED (int): Deprecated features are scheduled to be shut down and removed. For more
111+
information, see the “Deprecation Policy” section of our `Terms of
112+
Service <https://cloud.google.com/terms/>`__ and the `Google Cloud
113+
Platform Subject to the Deprecation
114+
Policy <https://cloud.google.com/terms/deprecation>`__ documentation.
115+
"""
116+
LAUNCH_STAGE_UNSPECIFIED = 0
117+
EARLY_ACCESS = 1
118+
ALPHA = 2
119+
BETA = 3
120+
GA = 4
121+
DEPRECATED = 5
122+
123+
69124
class UptimeCheckRegion(enum.IntEnum):
70125
"""
71126
The regions from which an uptime check can be run.
@@ -106,19 +161,6 @@ class GroupResourceType(enum.IntEnum):
106161
AWS_ELB_LOAD_BALANCER = 2
107162

108163

109-
class NullValue(enum.IntEnum):
110-
"""
111-
``NullValue`` is a singleton enumeration to represent the null value for
112-
the ``Value`` type union.
113-
114-
The JSON representation for ``NullValue`` is JSON ``null``.
115-
116-
Attributes:
117-
NULL_VALUE (int): Null value.
118-
"""
119-
NULL_VALUE = 0
120-
121-
122164
class LabelDescriptor(object):
123165
class ValueType(enum.IntEnum):
124166
"""
@@ -134,73 +176,6 @@ class ValueType(enum.IntEnum):
134176
INT64 = 2
135177

136178

137-
class MetricDescriptor(object):
138-
class MetricKind(enum.IntEnum):
139-
"""
140-
The kind of measurement. It describes how the data is reported.
141-
142-
Attributes:
143-
METRIC_KIND_UNSPECIFIED (int): Do not use this default value.
144-
GAUGE (int): An instantaneous measurement of a value.
145-
DELTA (int): The change in a value during a time interval.
146-
CUMULATIVE (int): A value accumulated over a time interval. Cumulative
147-
measurements in a time series should have the same start time
148-
and increasing end times, until an event resets the cumulative
149-
value to zero and sets a new start time for the following
150-
points.
151-
"""
152-
METRIC_KIND_UNSPECIFIED = 0
153-
GAUGE = 1
154-
DELTA = 2
155-
CUMULATIVE = 3
156-
157-
class ValueType(enum.IntEnum):
158-
"""
159-
The value type of a metric.
160-
161-
Attributes:
162-
VALUE_TYPE_UNSPECIFIED (int): Do not use this default value.
163-
BOOL (int): The value is a boolean. This value type can be used only if the metric
164-
kind is ``GAUGE``.
165-
INT64 (int): The value is a signed 64-bit integer.
166-
DOUBLE (int): The value is a double precision floating point number.
167-
STRING (int): The value is a text string. This value type can be used only if the
168-
metric kind is ``GAUGE``.
169-
DISTRIBUTION (int): The value is a ``Distribution``.
170-
MONEY (int): The value is money.
171-
"""
172-
VALUE_TYPE_UNSPECIFIED = 0
173-
BOOL = 1
174-
INT64 = 2
175-
DOUBLE = 3
176-
STRING = 4
177-
DISTRIBUTION = 5
178-
MONEY = 6
179-
180-
181-
class AlertPolicy(object):
182-
class ConditionCombinerType(enum.IntEnum):
183-
"""
184-
Operators for combining conditions.
185-
186-
Attributes:
187-
COMBINE_UNSPECIFIED (int): An unspecified combiner.
188-
AND (int): Combine conditions using the logical ``AND`` operator. An incident is
189-
created only if all conditions are met simultaneously. This combiner is
190-
satisfied if all conditions are met, even if they are met on completely
191-
different resources.
192-
OR (int): Combine conditions using the logical ``OR`` operator. An incident is
193-
created if any of the listed conditions is met.
194-
AND_WITH_MATCHING_RESOURCE (int): Combine conditions using logical ``AND`` operator, but unlike the
195-
regular ``AND`` option, an incident is created only if all conditions
196-
are met simultaneously on at least one resource.
197-
"""
198-
COMBINE_UNSPECIFIED = 0
199-
AND = 1
200-
OR = 2
201-
AND_WITH_MATCHING_RESOURCE = 3
202-
203-
204179
class Aggregation(object):
205180
class Aligner(enum.IntEnum):
206181
"""
@@ -404,19 +379,71 @@ class Reducer(enum.IntEnum):
404379
REDUCE_PERCENTILE_05 = 12
405380

406381

407-
class ListTimeSeriesRequest(object):
408-
class TimeSeriesView(enum.IntEnum):
382+
class MetricDescriptor(object):
383+
class MetricKind(enum.IntEnum):
409384
"""
410-
Controls which fields are returned by ``ListTimeSeries``.
385+
The kind of measurement. It describes how the data is reported.
411386
412387
Attributes:
413-
FULL (int): Returns the identity of the metric(s), the time series,
414-
and the time series data.
415-
HEADERS (int): Returns the identity of the metric and the time series resource,
416-
but not the time series data.
388+
METRIC_KIND_UNSPECIFIED (int): Do not use this default value.
389+
GAUGE (int): An instantaneous measurement of a value.
390+
DELTA (int): The change in a value during a time interval.
391+
CUMULATIVE (int): A value accumulated over a time interval. Cumulative
392+
measurements in a time series should have the same start time
393+
and increasing end times, until an event resets the cumulative
394+
value to zero and sets a new start time for the following
395+
points.
417396
"""
418-
FULL = 0
419-
HEADERS = 1
397+
METRIC_KIND_UNSPECIFIED = 0
398+
GAUGE = 1
399+
DELTA = 2
400+
CUMULATIVE = 3
401+
402+
class ValueType(enum.IntEnum):
403+
"""
404+
The value type of a metric.
405+
406+
Attributes:
407+
VALUE_TYPE_UNSPECIFIED (int): Do not use this default value.
408+
BOOL (int): The value is a boolean. This value type can be used only if the metric
409+
kind is ``GAUGE``.
410+
INT64 (int): The value is a signed 64-bit integer.
411+
DOUBLE (int): The value is a double precision floating point number.
412+
STRING (int): The value is a text string. This value type can be used only if the
413+
metric kind is ``GAUGE``.
414+
DISTRIBUTION (int): The value is a ``Distribution``.
415+
MONEY (int): The value is money.
416+
"""
417+
VALUE_TYPE_UNSPECIFIED = 0
418+
BOOL = 1
419+
INT64 = 2
420+
DOUBLE = 3
421+
STRING = 4
422+
DISTRIBUTION = 5
423+
MONEY = 6
424+
425+
426+
class AlertPolicy(object):
427+
class ConditionCombinerType(enum.IntEnum):
428+
"""
429+
Operators for combining conditions.
430+
431+
Attributes:
432+
COMBINE_UNSPECIFIED (int): An unspecified combiner.
433+
AND (int): Combine conditions using the logical ``AND`` operator. An incident is
434+
created only if all conditions are met simultaneously. This combiner is
435+
satisfied if all conditions are met, even if they are met on completely
436+
different resources.
437+
OR (int): Combine conditions using the logical ``OR`` operator. An incident is
438+
created if any of the listed conditions is met.
439+
AND_WITH_MATCHING_RESOURCE (int): Combine conditions using logical ``AND`` operator, but unlike the
440+
regular ``AND`` option, an incident is created only if all conditions
441+
are met simultaneously on at least one resource.
442+
"""
443+
COMBINE_UNSPECIFIED = 0
444+
AND = 1
445+
OR = 2
446+
AND_WITH_MATCHING_RESOURCE = 3
420447

421448

422449
class NotificationChannel(object):
@@ -441,3 +468,18 @@ class VerificationStatus(enum.IntEnum):
441468
VERIFICATION_STATUS_UNSPECIFIED = 0
442469
UNVERIFIED = 1
443470
VERIFIED = 2
471+
472+
473+
class ListTimeSeriesRequest(object):
474+
class TimeSeriesView(enum.IntEnum):
475+
"""
476+
Controls which fields are returned by ``ListTimeSeries``.
477+
478+
Attributes:
479+
FULL (int): Returns the identity of the metric(s), the time series,
480+
and the time series data.
481+
HEADERS (int): Returns the identity of the metric and the time series resource,
482+
but not the time series data.
483+
"""
484+
FULL = 0
485+
HEADERS = 1

0 commit comments

Comments
 (0)