Skip to content

Commit 38cb0c6

Browse files
yoshi-automationtseaver
authored andcommitted
Pick up enum fixes in the GAPIC generator. (googleapis#6608)
1 parent 361a7e0 commit 38cb0c6

1 file changed

Lines changed: 27 additions & 27 deletions

File tree

  • bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/gapic

bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/gapic/enums.py

Lines changed: 27 additions & 27 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 TransferType(enum.IntEnum):
2235
"""
2336
DEPRECATED. Represents data transfer type.
@@ -54,17 +67,21 @@ class TransferState(enum.IntEnum):
5467
CANCELLED = 6
5568

5669

57-
class NullValue(enum.IntEnum):
58-
"""
59-
``NullValue`` is a singleton enumeration to represent the null value for
60-
the ``Value`` type union.
61-
62-
The JSON representation for ``NullValue`` is JSON ``null``.
70+
class TransferMessage(object):
71+
class MessageSeverity(enum.IntEnum):
72+
"""
73+
Represents data transfer user facing message severity.
6374
64-
Attributes:
65-
NULL_VALUE (int): Null value.
66-
"""
67-
NULL_VALUE = 0
75+
Attributes:
76+
MESSAGE_SEVERITY_UNSPECIFIED (int): No severity specified.
77+
INFO (int): Informational message.
78+
WARNING (int): Warning message.
79+
ERROR (int): Error message.
80+
"""
81+
MESSAGE_SEVERITY_UNSPECIFIED = 0
82+
INFO = 1
83+
WARNING = 2
84+
ERROR = 3
6885

6986

7087
class DataSourceParameter(object):
@@ -136,20 +153,3 @@ class RunAttempt(enum.IntEnum):
136153
"""
137154
RUN_ATTEMPT_UNSPECIFIED = 0
138155
LATEST = 1
139-
140-
141-
class TransferMessage(object):
142-
class MessageSeverity(enum.IntEnum):
143-
"""
144-
Represents data transfer user facing message severity.
145-
146-
Attributes:
147-
MESSAGE_SEVERITY_UNSPECIFIED (int): No severity specified.
148-
INFO (int): Informational message.
149-
WARNING (int): Warning message.
150-
ERROR (int): Error message.
151-
"""
152-
MESSAGE_SEVERITY_UNSPECIFIED = 0
153-
INFO = 1
154-
WARNING = 2
155-
ERROR = 3

0 commit comments

Comments
 (0)