Skip to content

Commit

Permalink
Pick up enum fixes in the GAPIC generator. (#6608)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and tseaver committed Nov 21, 2018
1 parent f8bb93b commit c38f32e
Showing 1 changed file with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@
import enum


class NullValue(enum.IntEnum):
"""
``NullValue`` is a singleton enumeration to represent the null value for
the ``Value`` type union.
The JSON representation for ``NullValue`` is JSON ``null``.
Attributes:
NULL_VALUE (int): Null value.
"""
NULL_VALUE = 0


class TransferType(enum.IntEnum):
"""
DEPRECATED. Represents data transfer type.
Expand Down Expand Up @@ -54,17 +67,21 @@ class TransferState(enum.IntEnum):
CANCELLED = 6


class NullValue(enum.IntEnum):
"""
``NullValue`` is a singleton enumeration to represent the null value for
the ``Value`` type union.
The JSON representation for ``NullValue`` is JSON ``null``.
class TransferMessage(object):
class MessageSeverity(enum.IntEnum):
"""
Represents data transfer user facing message severity.
Attributes:
NULL_VALUE (int): Null value.
"""
NULL_VALUE = 0
Attributes:
MESSAGE_SEVERITY_UNSPECIFIED (int): No severity specified.
INFO (int): Informational message.
WARNING (int): Warning message.
ERROR (int): Error message.
"""
MESSAGE_SEVERITY_UNSPECIFIED = 0
INFO = 1
WARNING = 2
ERROR = 3


class DataSourceParameter(object):
Expand Down Expand Up @@ -136,20 +153,3 @@ class RunAttempt(enum.IntEnum):
"""
RUN_ATTEMPT_UNSPECIFIED = 0
LATEST = 1


class TransferMessage(object):
class MessageSeverity(enum.IntEnum):
"""
Represents data transfer user facing message severity.
Attributes:
MESSAGE_SEVERITY_UNSPECIFIED (int): No severity specified.
INFO (int): Informational message.
WARNING (int): Warning message.
ERROR (int): Error message.
"""
MESSAGE_SEVERITY_UNSPECIFIED = 0
INFO = 1
WARNING = 2
ERROR = 3

0 comments on commit c38f32e

Please sign in to comment.