module Network.Google.MapsCoordinate.Types.Sum where
import Network.Google.Prelude
data JobsPatchProgress
= Completed
| InProgress
| NotAccepted
| NotStarted
| Obsolete
deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
instance Hashable JobsPatchProgress
instance FromText JobsPatchProgress where
fromText = \case
"COMPLETED" -> Just Completed
"IN_PROGRESS" -> Just InProgress
"NOT_ACCEPTED" -> Just NotAccepted
"NOT_STARTED" -> Just NotStarted
"OBSOLETE" -> Just Obsolete
_ -> Nothing
instance ToText JobsPatchProgress where
toText = \case
Completed -> "COMPLETED"
InProgress -> "IN_PROGRESS"
NotAccepted -> "NOT_ACCEPTED"
NotStarted -> "NOT_STARTED"
Obsolete -> "OBSOLETE"
instance FromJSON JobsPatchProgress where
parseJSON = parseJSONText "JobsPatchProgress"
instance ToJSON JobsPatchProgress where
toJSON = toJSONText
data JobsUpdateProgress
= JUPCompleted
| JUPInProgress
| JUPNotAccepted
| JUPNotStarted
| JUPObsolete
deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
instance Hashable JobsUpdateProgress
instance FromText JobsUpdateProgress where
fromText = \case
"COMPLETED" -> Just JUPCompleted
"IN_PROGRESS" -> Just JUPInProgress
"NOT_ACCEPTED" -> Just JUPNotAccepted
"NOT_STARTED" -> Just JUPNotStarted
"OBSOLETE" -> Just JUPObsolete
_ -> Nothing
instance ToText JobsUpdateProgress where
toText = \case
JUPCompleted -> "COMPLETED"
JUPInProgress -> "IN_PROGRESS"
JUPNotAccepted -> "NOT_ACCEPTED"
JUPNotStarted -> "NOT_STARTED"
JUPObsolete -> "OBSOLETE"
instance FromJSON JobsUpdateProgress where
parseJSON = parseJSONText "JobsUpdateProgress"
instance ToJSON JobsUpdateProgress where
toJSON = toJSONText