module Network.Google.AdExchangeBuyer.Types.Sum where
import Network.Google.Prelude
data CreativesListOpenAuctionStatusFilter
= Approved
| ConditionallyApproved
| DisApproved
| NotChecked
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable CreativesListOpenAuctionStatusFilter
instance FromHttpApiData CreativesListOpenAuctionStatusFilter where
parseQueryParam = \case
"approved" -> Right Approved
"conditionally_approved" -> Right ConditionallyApproved
"disapproved" -> Right DisApproved
"not_checked" -> Right NotChecked
x -> Left ("Unable to parse CreativesListOpenAuctionStatusFilter from: " <> x)
instance ToHttpApiData CreativesListOpenAuctionStatusFilter where
toQueryParam = \case
Approved -> "approved"
ConditionallyApproved -> "conditionally_approved"
DisApproved -> "disapproved"
NotChecked -> "not_checked"
instance FromJSON CreativesListOpenAuctionStatusFilter where
parseJSON = parseJSONText "CreativesListOpenAuctionStatusFilter"
instance ToJSON CreativesListOpenAuctionStatusFilter where
toJSON = toJSONText
data ProposalsPatchUpdateAction
= Accept
| Cancel
| Propose
| ProposeAndAccept
| UnknownAction
| UpdateNonTerms
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable ProposalsPatchUpdateAction
instance FromHttpApiData ProposalsPatchUpdateAction where
parseQueryParam = \case
"accept" -> Right Accept
"cancel" -> Right Cancel
"propose" -> Right Propose
"proposeAndAccept" -> Right ProposeAndAccept
"unknownAction" -> Right UnknownAction
"updateNonTerms" -> Right UpdateNonTerms
x -> Left ("Unable to parse ProposalsPatchUpdateAction from: " <> x)
instance ToHttpApiData ProposalsPatchUpdateAction where
toQueryParam = \case
Accept -> "accept"
Cancel -> "cancel"
Propose -> "propose"
ProposeAndAccept -> "proposeAndAccept"
UnknownAction -> "unknownAction"
UpdateNonTerms -> "updateNonTerms"
instance FromJSON ProposalsPatchUpdateAction where
parseJSON = parseJSONText "ProposalsPatchUpdateAction"
instance ToJSON ProposalsPatchUpdateAction where
toJSON = toJSONText
data CreativesListDealsStatusFilter
= CLDSFApproved
| CLDSFConditionallyApproved
| CLDSFDisApproved
| CLDSFNotChecked
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable CreativesListDealsStatusFilter
instance FromHttpApiData CreativesListDealsStatusFilter where
parseQueryParam = \case
"approved" -> Right CLDSFApproved
"conditionally_approved" -> Right CLDSFConditionallyApproved
"disapproved" -> Right CLDSFDisApproved
"not_checked" -> Right CLDSFNotChecked
x -> Left ("Unable to parse CreativesListDealsStatusFilter from: " <> x)
instance ToHttpApiData CreativesListDealsStatusFilter where
toQueryParam = \case
CLDSFApproved -> "approved"
CLDSFConditionallyApproved -> "conditionally_approved"
CLDSFDisApproved -> "disapproved"
CLDSFNotChecked -> "not_checked"
instance FromJSON CreativesListDealsStatusFilter where
parseJSON = parseJSONText "CreativesListDealsStatusFilter"
instance ToJSON CreativesListDealsStatusFilter where
toJSON = toJSONText
data ProposalsUpdateUpdateAction
= PUUAAccept
| PUUACancel
| PUUAPropose
| PUUAProposeAndAccept
| PUUAUnknownAction
| PUUAUpdateNonTerms
deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
instance Hashable ProposalsUpdateUpdateAction
instance FromHttpApiData ProposalsUpdateUpdateAction where
parseQueryParam = \case
"accept" -> Right PUUAAccept
"cancel" -> Right PUUACancel
"propose" -> Right PUUAPropose
"proposeAndAccept" -> Right PUUAProposeAndAccept
"unknownAction" -> Right PUUAUnknownAction
"updateNonTerms" -> Right PUUAUpdateNonTerms
x -> Left ("Unable to parse ProposalsUpdateUpdateAction from: " <> x)
instance ToHttpApiData ProposalsUpdateUpdateAction where
toQueryParam = \case
PUUAAccept -> "accept"
PUUACancel -> "cancel"
PUUAPropose -> "propose"
PUUAProposeAndAccept -> "proposeAndAccept"
PUUAUnknownAction -> "unknownAction"
PUUAUpdateNonTerms -> "updateNonTerms"
instance FromJSON ProposalsUpdateUpdateAction where
parseJSON = parseJSONText "ProposalsUpdateUpdateAction"
instance ToJSON ProposalsUpdateUpdateAction where
toJSON = toJSONText