on develop help sign in
Regenerating all services
commit58c1320b6200fcd1eba909b541e97d8f06d90250 authorBrendan Hay <brendan.g.hay@gmail.com> dateSat 3 Oct 2015, 09:47 (11 years ago) parentf594d47
55 files changed+2096−1733
core/src/Network/Google/Prelude.hs+27−6 gen/src/Gen/Syntax.hs+11−8 gen/src/Gen/Text.hs+1 gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer.hs+142−142 gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types.hs+142−142 gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Product.hs+944−910 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Deals/Get.hs+2−2 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/NegotiationRounds/Insert.hs+14−14 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Negotiations/Get.hs+2−2 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Negotiations/Insert.hs+14−14 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Offers/Get.hs+2−2 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Offers/Insert.hs+12−12 gogol-admin-datatransfer/gen/Network/Google/AdminDataTransfer/Types/Product.hs+2−1 gogol-admin-directory/gen/Network/Google/AdminDirectory/Types/Product.hs+25−15 gogol-admin-reports/gen/Network/Google/AdminReports/Types/Product.hs+6−3 gogol-affiliates/gen/Network/Google/Affiliates/Types/Product.hs+22−14 gogol-analytics/gen/Network/Google/Analytics/Types/Product.hs+77−47 gogol-apps-calendar/gen/Network/Google/AppsCalendar/Types/Product.hs+44−25 gogol-apps-calendar/gen/Network/Google/Resource/Calendar/Events/Instances.hs+8−6 gogol-apps-calendar/gen/Network/Google/Resource/Calendar/Events/List.hs+11−8 gogol-apps-calendar/gen/Network/Google/Resource/Calendar/Events/Watch.hs+12−8 gogol-apps-tasks/gen/Network/Google/AppsTasks/Types/Product.hs+13−8 gogol-blogger/gen/Network/Google/Blogger/Types/Product.hs+28−16 gogol-blogger/gen/Network/Google/Resource/Blogger/Comments/List.hs+8−6 gogol-blogger/gen/Network/Google/Resource/Blogger/Comments/ListByBlog.hs+7−5 gogol-blogger/gen/Network/Google/Resource/Blogger/PostUserInfos/List.hs+7−5 gogol-blogger/gen/Network/Google/Resource/Blogger/Posts/List.hs+7−5 gogol-blogger/gen/Network/Google/Resource/Blogger/Posts/Publish.hs+3−2 gogol-books/gen/Network/Google/Books/Types/Product.hs+40−24 gogol-datastore/gen/Network/Google/Datastore/Types/Product.hs+4−2 gogol-dfareporting/gen/Network/Google/DFAReporting/Types/Product.hs+90−62 gogol-doubleclick-search/gen/Network/Google/DoubleClickSearch/Types/Product.hs+4−2 gogol-drive/gen/Network/Google/Drive/Types/Product.hs+24−12 gogol-fonts/gen/Network/Google/Fonts/Types/Product.hs+3−2 gogol-maps-engine/gen/Network/Google/MapsEngine/Types/Product.hs+36−18 gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Assets/List.hs+12−8 gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Layers/List.hs+12−8 gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Maps/List.hs+12−8 gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/RasterCollections/List.hs+12−8 gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/RasterCollections/Rasters/List.hs+12−8 gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Rasters/List.hs+12−8 gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Tables/List.hs+12−8 gogol-mirror/gen/Network/Google/Mirror/Types/Product.hs+16−10 gogol-monitoring/gen/Network/Google/Monitoring/Types/Product.hs+21−12 gogol-plus-domains/gen/Network/Google/PlusDomains/Types/Product.hs+30−18 gogol-plus/gen/Network/Google/Plus/Types/Product.hs+25−16 gogol-prediction/gen/Network/Google/Prediction/Types/Product.hs+5−3 gogol-sqladmin/gen/Network/Google/SQLAdmin/Types/Product.hs+28−16 gogol-storage/gen/Network/Google/Storage/Types/Product.hs+10−6 gogol-webmaster-tools/gen/Network/Google/WebmasterTools/Types/Product.hs+10−5 gogol-youtube-analytics/gen/Network/Google/YouTubeAnalytics/Types/Product.hs+9−5 gogol-youtube/gen/Network/Google/Resource/YouTube/Activities/List.hs+6−4 gogol-youtube/gen/Network/Google/Resource/YouTube/LiveBroadcasts/Control.hs+4−3 gogol-youtube/gen/Network/Google/Resource/YouTube/Search/List.hs+6−4 gogol-youtube/gen/Network/Google/YouTube/Types/Product.hs+48−25
core/src/Network/Google/Prelude.hs+27−6
@@ -55,14 +55,14 @@ _Default = iso f Just
5555 f (Just x) = x
5656 f Nothing = mempty
5757
58−newtype Time = Time Text
59− deriving (Eq, Ord, Show, Read, Generic, Newtype, Typeable, ToText, FromText)
58+newtype Time' = Time' Text
59+ deriving (Eq, Ord, Show, Read, Generic, Data, Typeable, ToText, FromText)
6060
61−newtype Date = Date Text
62− deriving (Eq, Ord, Show, Read, Generic, Newtype, Typeable, ToText, FromText)
61+newtype Date' = Date' Text
62+ deriving (Eq, Ord, Show, Read, Generic, Data, Typeable, ToText, FromText)
6363
64−newtype DateTime = DateTime Text
65− deriving (Eq, Ord, Show, Read, Generic, Newtype, Typeable, ToText, FromText)
64+newtype DateTime' = DateTime' Text
65+ deriving (Eq, Ord, Show, Read, Generic, Data, Typeable, ToText, FromText)
6666
6767data AltJSON = AltJSON
6868 deriving (Eq, Ord, Show, Read, Generic, Data, Typeable)
@@ -105,8 +105,29 @@ instance GoogleAuth a => GoogleAuth (Download a) where
105105data Body = Body -- MediaType
106106 deriving (Eq, Show, Generic, Data, Typeable)
107107
108+
108109data MultipartRelated (metatypes :: [*]) meta media
109110
111+-- IsElem sa (ReqBody y x :> sb) = IsElem sa sb
112+
113+-- instance HasLink sub => HasLink (ReqBody ct a :> sub) where
114+-- type MkLink (ReqBody ct a :> sub) = MkLink sub
115+-- toLink _ = toLink (Proxy :: Proxy sub)
116+
117+-- instance (MimeRender ct a, HasClient sublayout)
118+-- => HasClient (ReqBody (ct ': cts) a :> sublayout) where
119+-- type Client (ReqBody (ct ': cts) a :> sublayout) =
120+-- a -> Client sublayout
121+
122+-- clientWithRoute Proxy req baseurl body =
123+-- clientWithRoute (Proxy :: Proxy sublayout)
124+-- (let ctProxy = Proxy :: Proxy ct
125+-- in setRQBody (mimeRender ctProxy body)
126+-- (contentType ctProxy)
127+-- req
128+-- )
129+-- baseurl
130+
110131-- POST /upload/drive/v2/files?uploadType=multipart HTTP/1.1
111132-- Host: www.googleapis.com
112133-- Authorization: Bearer your_auth_token
gen/src/Gen/Syntax.hs+11−8
@@ -388,8 +388,8 @@ externalLit :: Lit -> Type
388388externalLit = \case
389389 Text -> TyCon "Text"
390390 Bool -> TyCon "Bool"
391− Time -> TyCon "UTCTime"
392− Date -> TyCon "UTCTime"
391+ Time -> TyCon "TimeOfDay"
392+ Date -> TyCon "LocalTime"
393393 DateTime -> TyCon "UTCTime"
394394 Nat -> TyCon "Natural"
395395 Float -> TyCon "Float"
@@ -409,9 +409,9 @@ internalLit :: Lit -> Type
409409internalLit = \case
410410 Text -> TyCon "Text"
411411 Bool -> TyCon "Bool"
412− Time -> TyCon "Time"
413− Date -> TyCon "Date"
414− DateTime -> TyCon "DateTime"
412+ Time -> TyCon "Time'"
413+ Date -> TyCon "Date'"
414+ DateTime -> TyCon "DateTime'"
415415 Nat -> TyCon "Nat"
416416 Float -> TyCon "Float"
417417 Double -> TyCon "Double"
@@ -439,9 +439,12 @@ mapping t e = infixE e "." (go t)
439439
440440iso :: TType -> Maybe Exp
441441iso = \case
442− TList {} -> Just (var "_Coerce")
443− TLit Nat -> Just (var "_Nat")
444− _ -> Nothing
442+ TList {} -> Just (var "_Coerce")
443+ TLit Nat -> Just (var "_Nat")
444+ TLit Time -> Just (var "_Time")
445+ TLit Date -> Just (var "_Date")
446+ TLit DateTime -> Just (var "_DateTime")
447+ _ -> Nothing
445448
446449strict :: Type -> Type
447450strict = TyBang BangedTy . \case
gen/src/Gen/Text.hs+1
@@ -203,6 +203,7 @@ upperAcronym x = Fold.foldl' (flip (uncurry RE.replaceAll)) x xs
203203 , ("Os", "OS")
204204 , ("Oob", "OOB")
205205 , ("Jwk", "JWK")
206+ , ("Dto", "DTO")
206207
207208 , ("access", "Access")
208209 , ("account", "Account")
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer.hs+142−142
@@ -168,12 +168,12 @@ module Network.Google.AdExchangeBuyer
168168
169169 -- * Types
170170
171− -- ** BrandDto
172− , BrandDto
173− , brandDto
174− , bdAdvertiserId
175− , bdName
176− , bdId
171+ -- ** BrandDTO
172+ , BrandDTO
173+ , brandDTO
174+ , bdtoAdvertiserId
175+ , bdtoName
176+ , bdtoId
177177
178178 -- ** EditAllOrderDealsResponse
179179 , EditAllOrderDealsResponse
@@ -214,36 +214,36 @@ module Network.Google.AdExchangeBuyer
214214 , pcdHeight
215215 , pcdWidth
216216
217− -- ** TermsDto
218− , TermsDto
219− , termsDto
220− , tdFinalizeAutomatically
221− , tdBuyerBillingType
222− , tdTargetingAllAdSlots
223− , tdURLs
224− , tdEndDate
225− , tdCpm
226− , tdEstimatedSpend
227− , tdAdvertisers
228− , tdEstimatedImpressionsPerDay
229− , tdMonetizerType
230− , tdAudienceSegmentDescription
231− , tdCreativeReviewPolicy
232− , tdMinimumTrueLooks
233− , tdStartDate
234− , tdCreativeBlockingLevel
235− , tdSemiTransparent
236− , tdAudienceSegment
237− , tdDealPremium
238− , tdIsReservation
239− , tdAdSlots
240− , tdTermsAttributes
241− , tdInventorySegmentTargeting
242− , tdDescriptiveName
243− , tdMinimumSpendMicros
244− , tdTargetByDealId
245− , tdBillingTerms
246− , tdDescription
217+ -- ** TermsDTO
218+ , TermsDTO
219+ , termsDTO
220+ , tdtoFinalizeAutomatically
221+ , tdtoBuyerBillingType
222+ , tdtoTargetingAllAdSlots
223+ , tdtoURLs
224+ , tdtoEndDate
225+ , tdtoCpm
226+ , tdtoEstimatedSpend
227+ , tdtoAdvertisers
228+ , tdtoEstimatedImpressionsPerDay
229+ , tdtoMonetizerType
230+ , tdtoAudienceSegmentDescription
231+ , tdtoCreativeReviewPolicy
232+ , tdtoMinimumTrueLooks
233+ , tdtoStartDate
234+ , tdtoCreativeBlockingLevel
235+ , tdtoSemiTransparent
236+ , tdtoAudienceSegment
237+ , tdtoDealPremium
238+ , tdtoIsReservation
239+ , tdtoAdSlots
240+ , tdtoTermsAttributes
241+ , tdtoInventorySegmentTargeting
242+ , tdtoDescriptiveName
243+ , tdtoMinimumSpendMicros
244+ , tdtoTargetByDealId
245+ , tdtoBillingTerms
246+ , tdtoDescription
247247
248248 -- ** CreativesList
249249 , CreativesList
@@ -276,14 +276,14 @@ module Network.Google.AdExchangeBuyer
276276 , mdpSeller
277277 , mdpBuyer
278278
279− -- ** DealPartyDto
280− , DealPartyDto
281− , dealPartyDto
282− , dpdBuyerSellerRole
283− , dpdCustomerId
284− , dpdName
285− , dpdWebProperty
286− , dpdBuyer
279+ -- ** DealPartyDTO
280+ , DealPartyDTO
281+ , dealPartyDTO
282+ , dpdtoBuyerSellerRole
283+ , dpdtoCustomerId
284+ , dpdtoName
285+ , dpdtoWebProperty
286+ , dpdtoBuyer
287287
288288 -- ** DeliveryControlFrequencyCap
289289 , DeliveryControlFrequencyCap
@@ -433,9 +433,9 @@ module Network.Google.AdExchangeBuyer
433433 -- ** AdexchangebuyerCreativesListOpenAuctionStatusFilter
434434 , AdexchangebuyerCreativesListOpenAuctionStatusFilter (..)
435435
436− -- ** BuyerDto
437− , BuyerDto
438− , buyerDto
436+ -- ** BuyerDTO
437+ , BuyerDTO
438+ , buyerDTO
439439 , buySponsorAccountId
440440 , buyEnabledForInterestTargetingDeals
441441 , buyCustomerId
@@ -449,15 +449,15 @@ module Network.Google.AdExchangeBuyer
449449 , dealTermsNonGuaranteedFixedPriceTerms
450450 , dtngfptFixedPrices
451451
452− -- ** AdSlotDto
453− , AdSlotDto
454− , adSlotDto
455− , asdWebPropertyId
456− , asdSize
457− , asdChannelCode
458− , asdChannelId
459− , asdName
460− , asdDescription
452+ -- ** AdSlotDTO
453+ , AdSlotDTO
454+ , adSlotDTO
455+ , asdtoWebPropertyId
456+ , asdtoSize
457+ , asdtoChannelCode
458+ , asdtoChannelId
459+ , asdtoName
460+ , asdtoDescription
461461
462462 -- ** PerformanceReport
463463 , PerformanceReport
@@ -583,24 +583,24 @@ module Network.Google.AdExchangeBuyer
583583 -- ** AdexchangebuyerMarketplaceOrdersPatchUpdateAction
584584 , AdexchangebuyerMarketplaceOrdersPatchUpdateAction (..)
585585
586− -- ** NegotiationDto
587− , NegotiationDto
588− , negotiationDto
589− , ndNegotiationState
590− , ndExternalDealId
591− , ndStatus
592− , ndDealType
593− , ndNegotiationRounds
594− , ndKind
595− , ndBilledBuyer
596− , ndBuyerEmailContacts
597− , ndStats
598− , ndSeller
599− , ndLabelNames
600− , ndOfferId
601− , ndNegotiationId
602− , ndSellerEmailContacts
603− , ndBuyer
586+ -- ** NegotiationDTO
587+ , NegotiationDTO
588+ , negotiationDTO
589+ , ndtoNegotiationState
590+ , ndtoExternalDealId
591+ , ndtoStatus
592+ , ndtoDealType
593+ , ndtoNegotiationRounds
594+ , ndtoKind
595+ , ndtoBilledBuyer
596+ , ndtoBuyerEmailContacts
597+ , ndtoStats
598+ , ndtoSeller
599+ , ndtoLabelNames
600+ , ndtoOfferId
601+ , ndtoNegotiationId
602+ , ndtoSellerEmailContacts
603+ , ndtoBuyer
604604
605605 -- ** AudienceSegment
606606 , AudienceSegment
@@ -610,23 +610,23 @@ module Network.Google.AdExchangeBuyer
610610 , asId
611611 , asDescription
612612
613− -- ** OfferDto
614− , OfferDto
615− , offerDto
616− , odCreator
617− , odStatus
618− , odOfferState
619− , odPointOfContact
620− , odTerms
621− , odKind
622− , odBilledBuyer
623− , odOpenToDealParties
624− , odEmailContacts
625− , odLabelNames
626− , odOfferId
627− , odClosedToDealParties
628− , odAnonymous
629− , odIsOpen
613+ -- ** OfferDTO
614+ , OfferDTO
615+ , offerDTO
616+ , odtoCreator
617+ , odtoStatus
618+ , odtoOfferState
619+ , odtoPointOfContact
620+ , odtoTerms
621+ , odtoKind
622+ , odtoBilledBuyer
623+ , odtoOpenToDealParties
624+ , odtoEmailContacts
625+ , odtoLabelNames
626+ , odtoOfferId
627+ , odtoClosedToDealParties
628+ , odtoAnonymous
629+ , odtoIsOpen
630630
631631 -- ** TargetingValueSize
632632 , TargetingValueSize
@@ -673,11 +673,11 @@ module Network.Google.AdExchangeBuyer
673673 , addOrderNotesResponse
674674 , aNotes
675675
676− -- ** MoneyDto
677− , MoneyDto
678− , moneyDto
679− , mdCurrencyCode
680− , mdMicros
676+ -- ** MoneyDTO
677+ , MoneyDTO
678+ , moneyDTO
679+ , mdtoCurrencyCode
680+ , mdtoMicros
681681
682682 -- ** ListClientAccessCapabilitiesResponse
683683 , ListClientAccessCapabilitiesResponse
@@ -695,13 +695,13 @@ module Network.Google.AdExchangeBuyer
695695 , lorKind
696696 , lorOffers
697697
698− -- ** AdvertiserDto
699− , AdvertiserDto
700− , advertiserDto
701− , adStatus
702− , adBrands
703− , adName
704− , adId
698+ -- ** AdvertiserDTO
699+ , AdvertiserDTO
700+ , advertiserDTO
701+ , adtoStatus
702+ , adtoBrands
703+ , adtoName
704+ , adtoId
705705
706706 -- ** TargetingValue
707707 , TargetingValue
@@ -740,16 +740,16 @@ module Network.Google.AdExchangeBuyer
740740 , biAccountId
741741 , biBillingId
742742
743− -- ** WebPropertyDto
744− , WebPropertyDto
745− , webPropertyDto
746− , wpdEnabledForPreferredDeals
747− , wpdSyndicationProduct
748− , wpdName
749− , wpdPropertyCode
750− , wpdId
751− , wpdSiteURLs
752− , wpdAllowInterestTargetedAds
743+ -- ** WebPropertyDTO
744+ , WebPropertyDTO
745+ , webPropertyDTO
746+ , wpdtoEnabledForPreferredDeals
747+ , wpdtoSyndicationProduct
748+ , wpdtoName
749+ , wpdtoPropertyCode
750+ , wpdtoId
751+ , wpdtoSiteURLs
752+ , wpdtoAllowInterestTargetedAds
753753
754754 -- ** TargetingValueDayPartTargeting
755755 , TargetingValueDayPartTargeting
@@ -875,28 +875,28 @@ module Network.Google.AdExchangeBuyer
875875 , pcpToken
876876 , pcpType
877877
878− -- ** NegotiationRoundDto
879− , NegotiationRoundDto
880− , negotiationRoundDto
881− , nrdTerms
882− , nrdKind
883− , nrdOriginatorRole
884− , nrdAction
885− , nrdDBmPartnerId
886− , nrdNotes
887− , nrdNegotiationId
888− , nrdEditHistory
889− , nrdRoundNumber
890−
891− -- ** StatsDto
892− , StatsDto
893− , statsDto
894− , sdBids
895− , sdSpend
896− , sdImpressions
897− , sdGoodBids
898− , sdRevenue
899− , sdRequests
878+ -- ** NegotiationRoundDTO
879+ , NegotiationRoundDTO
880+ , negotiationRoundDTO
881+ , nrdtoTerms
882+ , nrdtoKind
883+ , nrdtoOriginatorRole
884+ , nrdtoAction
885+ , nrdtoDBmPartnerId
886+ , nrdtoNotes
887+ , nrdtoNegotiationId
888+ , nrdtoEditHistory
889+ , nrdtoRoundNumber
890+
891+ -- ** StatsDTO
892+ , StatsDTO
893+ , statsDTO
894+ , sdtoBids
895+ , sdtoSpend
896+ , sdtoImpressions
897+ , sdtoGoodBids
898+ , sdtoRevenue
899+ , sdtoRequests
900900
901901 -- ** GetOffersResponse
902902 , GetOffersResponse
@@ -989,13 +989,13 @@ module Network.Google.AdExchangeBuyer
989989 , dtGuaranteedFixedPriceTerms
990990 , dtDescription
991991
992− -- ** EditHistoryDto
993− , EditHistoryDto
994− , editHistoryDto
995− , ehdLastUpdatedByLoginName
996− , ehdCreatedByLoginName
997− , ehdLastUpdateTimeStamp
998− , ehdCreatedTimeStamp
992+ -- ** EditHistoryDTO
993+ , EditHistoryDTO
994+ , editHistoryDTO
995+ , ehdtoLastUpdatedByLoginName
996+ , ehdtoCreatedByLoginName
997+ , ehdtoLastUpdateTimeStamp
998+ , ehdtoCreatedTimeStamp
999999 ) where
10001000
10011001import Network.Google.AdExchangeBuyer.Types
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types.hs+142−142
@@ -17,12 +17,12 @@ module Network.Google.AdExchangeBuyer.Types
1717 -- * Service URL
1818 adExchangeBuyerURL
1919
20− -- * BrandDto
21− , BrandDto
22− , brandDto
23− , bdAdvertiserId
24− , bdName
25− , bdId
20+ -- * BrandDTO
21+ , BrandDTO
22+ , brandDTO
23+ , bdtoAdvertiserId
24+ , bdtoName
25+ , bdtoId
2626
2727 -- * EditAllOrderDealsResponse
2828 , EditAllOrderDealsResponse
@@ -63,36 +63,36 @@ module Network.Google.AdExchangeBuyer.Types
6363 , pcdHeight
6464 , pcdWidth
6565
66− -- * TermsDto
67− , TermsDto
68− , termsDto
69− , tdFinalizeAutomatically
70− , tdBuyerBillingType
71− , tdTargetingAllAdSlots
72− , tdURLs
73− , tdEndDate
74− , tdCpm
75− , tdEstimatedSpend
76− , tdAdvertisers
77− , tdEstimatedImpressionsPerDay
78− , tdMonetizerType
79− , tdAudienceSegmentDescription
80− , tdCreativeReviewPolicy
81− , tdMinimumTrueLooks
82− , tdStartDate
83− , tdCreativeBlockingLevel
84− , tdSemiTransparent
85− , tdAudienceSegment
86− , tdDealPremium
87− , tdIsReservation
88− , tdAdSlots
89− , tdTermsAttributes
90− , tdInventorySegmentTargeting
91− , tdDescriptiveName
92− , tdMinimumSpendMicros
93− , tdTargetByDealId
94− , tdBillingTerms
95− , tdDescription
66+ -- * TermsDTO
67+ , TermsDTO
68+ , termsDTO
69+ , tdtoFinalizeAutomatically
70+ , tdtoBuyerBillingType
71+ , tdtoTargetingAllAdSlots
72+ , tdtoURLs
73+ , tdtoEndDate
74+ , tdtoCpm
75+ , tdtoEstimatedSpend
76+ , tdtoAdvertisers
77+ , tdtoEstimatedImpressionsPerDay
78+ , tdtoMonetizerType
79+ , tdtoAudienceSegmentDescription
80+ , tdtoCreativeReviewPolicy
81+ , tdtoMinimumTrueLooks
82+ , tdtoStartDate
83+ , tdtoCreativeBlockingLevel
84+ , tdtoSemiTransparent
85+ , tdtoAudienceSegment
86+ , tdtoDealPremium
87+ , tdtoIsReservation
88+ , tdtoAdSlots
89+ , tdtoTermsAttributes
90+ , tdtoInventorySegmentTargeting
91+ , tdtoDescriptiveName
92+ , tdtoMinimumSpendMicros
93+ , tdtoTargetByDealId
94+ , tdtoBillingTerms
95+ , tdtoDescription
9696
9797 -- * CreativesList
9898 , CreativesList
@@ -125,14 +125,14 @@ module Network.Google.AdExchangeBuyer.Types
125125 , mdpSeller
126126 , mdpBuyer
127127
128− -- * DealPartyDto
129− , DealPartyDto
130− , dealPartyDto
131− , dpdBuyerSellerRole
132− , dpdCustomerId
133− , dpdName
134− , dpdWebProperty
135− , dpdBuyer
128+ -- * DealPartyDTO
129+ , DealPartyDTO
130+ , dealPartyDTO
131+ , dpdtoBuyerSellerRole
132+ , dpdtoCustomerId
133+ , dpdtoName
134+ , dpdtoWebProperty
135+ , dpdtoBuyer
136136
137137 -- * DeliveryControlFrequencyCap
138138 , DeliveryControlFrequencyCap
@@ -282,9 +282,9 @@ module Network.Google.AdExchangeBuyer.Types
282282 -- * AdexchangebuyerCreativesListOpenAuctionStatusFilter
283283 , AdexchangebuyerCreativesListOpenAuctionStatusFilter (..)
284284
285− -- * BuyerDto
286− , BuyerDto
287− , buyerDto
285+ -- * BuyerDTO
286+ , BuyerDTO
287+ , buyerDTO
288288 , buySponsorAccountId
289289 , buyEnabledForInterestTargetingDeals
290290 , buyCustomerId
@@ -298,15 +298,15 @@ module Network.Google.AdExchangeBuyer.Types
298298 , dealTermsNonGuaranteedFixedPriceTerms
299299 , dtngfptFixedPrices
300300
301− -- * AdSlotDto
302− , AdSlotDto
303− , adSlotDto
304− , asdWebPropertyId
305− , asdSize
306− , asdChannelCode
307− , asdChannelId
308− , asdName
309− , asdDescription
301+ -- * AdSlotDTO
302+ , AdSlotDTO
303+ , adSlotDTO
304+ , asdtoWebPropertyId
305+ , asdtoSize
306+ , asdtoChannelCode
307+ , asdtoChannelId
308+ , asdtoName
309+ , asdtoDescription
310310
311311 -- * PerformanceReport
312312 , PerformanceReport
@@ -432,24 +432,24 @@ module Network.Google.AdExchangeBuyer.Types
432432 -- * AdexchangebuyerMarketplaceOrdersPatchUpdateAction
433433 , AdexchangebuyerMarketplaceOrdersPatchUpdateAction (..)
434434
435− -- * NegotiationDto
436− , NegotiationDto
437− , negotiationDto
438− , ndNegotiationState
439− , ndExternalDealId
440− , ndStatus
441− , ndDealType
442− , ndNegotiationRounds
443− , ndKind
444− , ndBilledBuyer
445− , ndBuyerEmailContacts
446− , ndStats
447− , ndSeller
448− , ndLabelNames
449− , ndOfferId
450− , ndNegotiationId
451− , ndSellerEmailContacts
452− , ndBuyer
435+ -- * NegotiationDTO
436+ , NegotiationDTO
437+ , negotiationDTO
438+ , ndtoNegotiationState
439+ , ndtoExternalDealId
440+ , ndtoStatus
441+ , ndtoDealType
442+ , ndtoNegotiationRounds
443+ , ndtoKind
444+ , ndtoBilledBuyer
445+ , ndtoBuyerEmailContacts
446+ , ndtoStats
447+ , ndtoSeller
448+ , ndtoLabelNames
449+ , ndtoOfferId
450+ , ndtoNegotiationId
451+ , ndtoSellerEmailContacts
452+ , ndtoBuyer
453453
454454 -- * AudienceSegment
455455 , AudienceSegment
@@ -459,23 +459,23 @@ module Network.Google.AdExchangeBuyer.Types
459459 , asId
460460 , asDescription
461461
462− -- * OfferDto
463− , OfferDto
464− , offerDto
465− , odCreator
466− , odStatus
467− , odOfferState
468− , odPointOfContact
469− , odTerms
470− , odKind
471− , odBilledBuyer
472− , odOpenToDealParties
473− , odEmailContacts
474− , odLabelNames
475− , odOfferId
476− , odClosedToDealParties
477− , odAnonymous
478− , odIsOpen
462+ -- * OfferDTO
463+ , OfferDTO
464+ , offerDTO
465+ , odtoCreator
466+ , odtoStatus
467+ , odtoOfferState
468+ , odtoPointOfContact
469+ , odtoTerms
470+ , odtoKind
471+ , odtoBilledBuyer
472+ , odtoOpenToDealParties
473+ , odtoEmailContacts
474+ , odtoLabelNames
475+ , odtoOfferId
476+ , odtoClosedToDealParties
477+ , odtoAnonymous
478+ , odtoIsOpen
479479
480480 -- * TargetingValueSize
481481 , TargetingValueSize
@@ -522,11 +522,11 @@ module Network.Google.AdExchangeBuyer.Types
522522 , addOrderNotesResponse
523523 , aNotes
524524
525− -- * MoneyDto
526− , MoneyDto
527− , moneyDto
528− , mdCurrencyCode
529− , mdMicros
525+ -- * MoneyDTO
526+ , MoneyDTO
527+ , moneyDTO
528+ , mdtoCurrencyCode
529+ , mdtoMicros
530530
531531 -- * ListClientAccessCapabilitiesResponse
532532 , ListClientAccessCapabilitiesResponse
@@ -544,13 +544,13 @@ module Network.Google.AdExchangeBuyer.Types
544544 , lorKind
545545 , lorOffers
546546
547− -- * AdvertiserDto
548− , AdvertiserDto
549− , advertiserDto
550− , adStatus
551− , adBrands
552− , adName
553− , adId
547+ -- * AdvertiserDTO
548+ , AdvertiserDTO
549+ , advertiserDTO
550+ , adtoStatus
551+ , adtoBrands
552+ , adtoName
553+ , adtoId
554554
555555 -- * TargetingValue
556556 , TargetingValue
@@ -589,16 +589,16 @@ module Network.Google.AdExchangeBuyer.Types
589589 , biAccountId
590590 , biBillingId
591591
592− -- * WebPropertyDto
593− , WebPropertyDto
594− , webPropertyDto
595− , wpdEnabledForPreferredDeals
596− , wpdSyndicationProduct
597− , wpdName
598− , wpdPropertyCode
599− , wpdId
600− , wpdSiteURLs
601− , wpdAllowInterestTargetedAds
592+ -- * WebPropertyDTO
593+ , WebPropertyDTO
594+ , webPropertyDTO
595+ , wpdtoEnabledForPreferredDeals
596+ , wpdtoSyndicationProduct
597+ , wpdtoName
598+ , wpdtoPropertyCode
599+ , wpdtoId
600+ , wpdtoSiteURLs
601+ , wpdtoAllowInterestTargetedAds
602602
603603 -- * TargetingValueDayPartTargeting
604604 , TargetingValueDayPartTargeting
@@ -724,28 +724,28 @@ module Network.Google.AdExchangeBuyer.Types
724724 , pcpToken
725725 , pcpType
726726
727− -- * NegotiationRoundDto
728− , NegotiationRoundDto
729− , negotiationRoundDto
730− , nrdTerms
731− , nrdKind
732− , nrdOriginatorRole
733− , nrdAction
734− , nrdDBmPartnerId
735− , nrdNotes
736− , nrdNegotiationId
737− , nrdEditHistory
738− , nrdRoundNumber
739−
740− -- * StatsDto
741− , StatsDto
742− , statsDto
743− , sdBids
744− , sdSpend
745− , sdImpressions
746− , sdGoodBids
747− , sdRevenue
748− , sdRequests
727+ -- * NegotiationRoundDTO
728+ , NegotiationRoundDTO
729+ , negotiationRoundDTO
730+ , nrdtoTerms
731+ , nrdtoKind
732+ , nrdtoOriginatorRole
733+ , nrdtoAction
734+ , nrdtoDBmPartnerId
735+ , nrdtoNotes
736+ , nrdtoNegotiationId
737+ , nrdtoEditHistory
738+ , nrdtoRoundNumber
739+
740+ -- * StatsDTO
741+ , StatsDTO
742+ , statsDTO
743+ , sdtoBids
744+ , sdtoSpend
745+ , sdtoImpressions
746+ , sdtoGoodBids
747+ , sdtoRevenue
748+ , sdtoRequests
749749
750750 -- * GetOffersResponse
751751 , GetOffersResponse
@@ -838,13 +838,13 @@ module Network.Google.AdExchangeBuyer.Types
838838 , dtGuaranteedFixedPriceTerms
839839 , dtDescription
840840
841− -- * EditHistoryDto
842− , EditHistoryDto
843− , editHistoryDto
844− , ehdLastUpdatedByLoginName
845− , ehdCreatedByLoginName
846− , ehdLastUpdateTimeStamp
847− , ehdCreatedTimeStamp
841+ -- * EditHistoryDTO
842+ , EditHistoryDTO
843+ , editHistoryDTO
844+ , ehdtoLastUpdatedByLoginName
845+ , ehdtoCreatedByLoginName
846+ , ehdtoLastUpdateTimeStamp
847+ , ehdtoCreatedTimeStamp
848848 ) where
849849
850850import Network.Google.AdExchangeBuyer.Types.Product
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Product.hs+944−910
@@ -19,56 +19,56 @@ import Network.Google.AdExchangeBuyer.Types.Sum
1919import Network.Google.Prelude
2020
2121--
22−-- /See:/ 'brandDto' smart constructor.
23−data BrandDto = BrandDto
24− { _bdAdvertiserId :: !(Maybe Int64)
25− , _bdName :: !(Maybe Text)
26− , _bdId :: !(Maybe Int64)
22+-- /See:/ 'brandDTO' smart constructor.
23+data BrandDTO = BrandDTO
24+ { _bdtoAdvertiserId :: !(Maybe Int64)
25+ , _bdtoName :: !(Maybe Text)
26+ , _bdtoId :: !(Maybe Int64)
2727 } deriving (Eq,Read,Show,Data,Typeable,Generic)
2828
29−-- | Creates a value of 'BrandDto' with the minimum fields required to make a request.
29+-- | Creates a value of 'BrandDTO' with the minimum fields required to make a request.
3030--
3131-- Use one of the following lenses to modify other fields as desired:
3232--
33−-- * 'bdAdvertiserId'
33+-- * 'bdtoAdvertiserId'
3434--
35−-- * 'bdName'
35+-- * 'bdtoName'
3636--
37−-- * 'bdId'
38−brandDto
39− :: BrandDto
40−brandDto =
41− BrandDto
42− { _bdAdvertiserId = Nothing
43− , _bdName = Nothing
44− , _bdId = Nothing
37+-- * 'bdtoId'
38+brandDTO
39+ :: BrandDTO
40+brandDTO =
41+ BrandDTO
42+ { _bdtoAdvertiserId = Nothing
43+ , _bdtoName = Nothing
44+ , _bdtoId = Nothing
4545 }
4646
47−bdAdvertiserId :: Lens' BrandDto (Maybe Int64)
48−bdAdvertiserId
49− = lens _bdAdvertiserId
50− (\ s a -> s{_bdAdvertiserId = a})
47+bdtoAdvertiserId :: Lens' BrandDTO (Maybe Int64)
48+bdtoAdvertiserId
49+ = lens _bdtoAdvertiserId
50+ (\ s a -> s{_bdtoAdvertiserId = a})
5151
52−bdName :: Lens' BrandDto (Maybe Text)
53−bdName = lens _bdName (\ s a -> s{_bdName = a})
52+bdtoName :: Lens' BrandDTO (Maybe Text)
53+bdtoName = lens _bdtoName (\ s a -> s{_bdtoName = a})
5454
55−bdId :: Lens' BrandDto (Maybe Int64)
56−bdId = lens _bdId (\ s a -> s{_bdId = a})
55+bdtoId :: Lens' BrandDTO (Maybe Int64)
56+bdtoId = lens _bdtoId (\ s a -> s{_bdtoId = a})
5757
58−instance FromJSON BrandDto where
58+instance FromJSON BrandDTO where
5959 parseJSON
60− = withObject "BrandDto"
60+ = withObject "BrandDTO"
6161 (\ o ->
62− BrandDto <$>
62+ BrandDTO <$>
6363 (o .:? "advertiserId") <*> (o .:? "name") <*>
6464 (o .:? "id"))
6565
66−instance ToJSON BrandDto where
67− toJSON BrandDto{..}
66+instance ToJSON BrandDTO where
67+ toJSON BrandDTO{..}
6868 = object
6969 (catMaybes
70− [("advertiserId" .=) <$> _bdAdvertiserId,
71− ("name" .=) <$> _bdName, ("id" .=) <$> _bdId])
70+ [("advertiserId" .=) <$> _bdtoAdvertiserId,
71+ ("name" .=) <$> _bdtoName, ("id" .=) <$> _bdtoId])
7272
7373--
7474-- /See:/ 'editAllOrderDealsResponse' smart constructor.
@@ -434,295 +434,297 @@ instance ToJSON PretargetingConfigDimensions where
434434 ("width" .=) <$> _pcdWidth])
435435
436436--
437−-- /See:/ 'termsDto' smart constructor.
438−data TermsDto = TermsDto
439− { _tdFinalizeAutomatically :: !(Maybe Bool)
440− , _tdBuyerBillingType :: !(Maybe Text)
441− , _tdTargetingAllAdSlots :: !(Maybe Bool)
442− , _tdURLs :: !(Maybe [Text])
443− , _tdEndDate :: !(Maybe DateTime)
444− , _tdCpm :: !(Maybe MoneyDto)
445− , _tdEstimatedSpend :: !(Maybe MoneyDto)
446− , _tdAdvertisers :: !(Maybe [AdvertiserDto])
447− , _tdEstimatedImpressionsPerDay :: !(Maybe Int64)
448− , _tdMonetizerType :: !(Maybe Text)
449− , _tdAudienceSegmentDescription :: !(Maybe Text)
450− , _tdCreativeReviewPolicy :: !(Maybe Text)
451− , _tdMinimumTrueLooks :: !(Maybe Int64)
452− , _tdStartDate :: !(Maybe DateTime)
453− , _tdCreativeBlockingLevel :: !(Maybe Text)
454− , _tdSemiTransparent :: !(Maybe Bool)
455− , _tdAudienceSegment :: !(Maybe AudienceSegment)
456− , _tdDealPremium :: !(Maybe MoneyDto)
457− , _tdIsReservation :: !(Maybe Bool)
458− , _tdAdSlots :: !(Maybe [AdSlotDto])
459− , _tdTermsAttributes :: !(Maybe [Text])
460− , _tdInventorySegmentTargeting :: !(Maybe InventorySegmentTargeting)
461− , _tdDescriptiveName :: !(Maybe Text)
462− , _tdMinimumSpendMicros :: !(Maybe Int64)
463− , _tdTargetByDealId :: !(Maybe Bool)
464− , _tdBillingTerms :: !(Maybe Text)
465− , _tdDescription :: !(Maybe Text)
437+-- /See:/ 'termsDTO' smart constructor.
438+data TermsDTO = TermsDTO
439+ { _tdtoFinalizeAutomatically :: !(Maybe Bool)
440+ , _tdtoBuyerBillingType :: !(Maybe Text)
441+ , _tdtoTargetingAllAdSlots :: !(Maybe Bool)
442+ , _tdtoURLs :: !(Maybe [Text])
443+ , _tdtoEndDate :: !(Maybe DateTime)
444+ , _tdtoCpm :: !(Maybe MoneyDTO)
445+ , _tdtoEstimatedSpend :: !(Maybe MoneyDTO)
446+ , _tdtoAdvertisers :: !(Maybe [AdvertiserDTO])
447+ , _tdtoEstimatedImpressionsPerDay :: !(Maybe Int64)
448+ , _tdtoMonetizerType :: !(Maybe Text)
449+ , _tdtoAudienceSegmentDescription :: !(Maybe Text)
450+ , _tdtoCreativeReviewPolicy :: !(Maybe Text)
451+ , _tdtoMinimumTrueLooks :: !(Maybe Int64)
452+ , _tdtoStartDate :: !(Maybe DateTime)
453+ , _tdtoCreativeBlockingLevel :: !(Maybe Text)
454+ , _tdtoSemiTransparent :: !(Maybe Bool)
455+ , _tdtoAudienceSegment :: !(Maybe AudienceSegment)
456+ , _tdtoDealPremium :: !(Maybe MoneyDTO)
457+ , _tdtoIsReservation :: !(Maybe Bool)
458+ , _tdtoAdSlots :: !(Maybe [AdSlotDTO])
459+ , _tdtoTermsAttributes :: !(Maybe [Text])
460+ , _tdtoInventorySegmentTargeting :: !(Maybe InventorySegmentTargeting)
461+ , _tdtoDescriptiveName :: !(Maybe Text)
462+ , _tdtoMinimumSpendMicros :: !(Maybe Int64)
463+ , _tdtoTargetByDealId :: !(Maybe Bool)
464+ , _tdtoBillingTerms :: !(Maybe Text)
465+ , _tdtoDescription :: !(Maybe Text)
466466 } deriving (Eq,Read,Show,Data,Typeable,Generic)
467467
468−-- | Creates a value of 'TermsDto' with the minimum fields required to make a request.
468+-- | Creates a value of 'TermsDTO' with the minimum fields required to make a request.
469469--
470470-- Use one of the following lenses to modify other fields as desired:
471471--
472−-- * 'tdFinalizeAutomatically'
472+-- * 'tdtoFinalizeAutomatically'
473473--
474−-- * 'tdBuyerBillingType'
474+-- * 'tdtoBuyerBillingType'
475475--
476−-- * 'tdTargetingAllAdSlots'
476+-- * 'tdtoTargetingAllAdSlots'
477477--
478−-- * 'tdURLs'
478+-- * 'tdtoURLs'
479479--
480−-- * 'tdEndDate'
480+-- * 'tdtoEndDate'
481481--
482−-- * 'tdCpm'
482+-- * 'tdtoCpm'
483483--
484−-- * 'tdEstimatedSpend'
484+-- * 'tdtoEstimatedSpend'
485485--
486−-- * 'tdAdvertisers'
486+-- * 'tdtoAdvertisers'
487487--
488−-- * 'tdEstimatedImpressionsPerDay'
488+-- * 'tdtoEstimatedImpressionsPerDay'
489489--
490−-- * 'tdMonetizerType'
490+-- * 'tdtoMonetizerType'
491491--
492−-- * 'tdAudienceSegmentDescription'
492+-- * 'tdtoAudienceSegmentDescription'
493493--
494−-- * 'tdCreativeReviewPolicy'
494+-- * 'tdtoCreativeReviewPolicy'
495495--
496−-- * 'tdMinimumTrueLooks'
496+-- * 'tdtoMinimumTrueLooks'
497497--
498−-- * 'tdStartDate'
498+-- * 'tdtoStartDate'
499499--
500−-- * 'tdCreativeBlockingLevel'
500+-- * 'tdtoCreativeBlockingLevel'
501501--
502−-- * 'tdSemiTransparent'
502+-- * 'tdtoSemiTransparent'
503503--
504−-- * 'tdAudienceSegment'
504+-- * 'tdtoAudienceSegment'
505505--
506−-- * 'tdDealPremium'
506+-- * 'tdtoDealPremium'
507507--
508−-- * 'tdIsReservation'
508+-- * 'tdtoIsReservation'
509509--
510−-- * 'tdAdSlots'
510+-- * 'tdtoAdSlots'
511511--
512−-- * 'tdTermsAttributes'
512+-- * 'tdtoTermsAttributes'
513513--
514−-- * 'tdInventorySegmentTargeting'
514+-- * 'tdtoInventorySegmentTargeting'
515515--
516−-- * 'tdDescriptiveName'
516+-- * 'tdtoDescriptiveName'
517517--
518−-- * 'tdMinimumSpendMicros'
518+-- * 'tdtoMinimumSpendMicros'
519519--
520−-- * 'tdTargetByDealId'
520+-- * 'tdtoTargetByDealId'
521521--
522−-- * 'tdBillingTerms'
522+-- * 'tdtoBillingTerms'
523523--
524−-- * 'tdDescription'
525−termsDto
526− :: TermsDto
527−termsDto =
528− TermsDto
529− { _tdFinalizeAutomatically = Nothing
530− , _tdBuyerBillingType = Nothing
531− , _tdTargetingAllAdSlots = Nothing
532− , _tdURLs = Nothing
533− , _tdEndDate = Nothing
534− , _tdCpm = Nothing
535− , _tdEstimatedSpend = Nothing
536− , _tdAdvertisers = Nothing
537− , _tdEstimatedImpressionsPerDay = Nothing
538− , _tdMonetizerType = Nothing
539− , _tdAudienceSegmentDescription = Nothing
540− , _tdCreativeReviewPolicy = Nothing
541− , _tdMinimumTrueLooks = Nothing
542− , _tdStartDate = Nothing
543− , _tdCreativeBlockingLevel = Nothing
544− , _tdSemiTransparent = Nothing
545− , _tdAudienceSegment = Nothing
546− , _tdDealPremium = Nothing
547− , _tdIsReservation = Nothing
548− , _tdAdSlots = Nothing
549− , _tdTermsAttributes = Nothing
550− , _tdInventorySegmentTargeting = Nothing
551− , _tdDescriptiveName = Nothing
552− , _tdMinimumSpendMicros = Nothing
553− , _tdTargetByDealId = Nothing
554− , _tdBillingTerms = Nothing
555− , _tdDescription = Nothing
524+-- * 'tdtoDescription'
525+termsDTO
526+ :: TermsDTO
527+termsDTO =
528+ TermsDTO
529+ { _tdtoFinalizeAutomatically = Nothing
530+ , _tdtoBuyerBillingType = Nothing
531+ , _tdtoTargetingAllAdSlots = Nothing
532+ , _tdtoURLs = Nothing
533+ , _tdtoEndDate = Nothing
534+ , _tdtoCpm = Nothing
535+ , _tdtoEstimatedSpend = Nothing
536+ , _tdtoAdvertisers = Nothing
537+ , _tdtoEstimatedImpressionsPerDay = Nothing
538+ , _tdtoMonetizerType = Nothing
539+ , _tdtoAudienceSegmentDescription = Nothing
540+ , _tdtoCreativeReviewPolicy = Nothing
541+ , _tdtoMinimumTrueLooks = Nothing
542+ , _tdtoStartDate = Nothing
543+ , _tdtoCreativeBlockingLevel = Nothing
544+ , _tdtoSemiTransparent = Nothing
545+ , _tdtoAudienceSegment = Nothing
546+ , _tdtoDealPremium = Nothing
547+ , _tdtoIsReservation = Nothing
548+ , _tdtoAdSlots = Nothing
549+ , _tdtoTermsAttributes = Nothing
550+ , _tdtoInventorySegmentTargeting = Nothing
551+ , _tdtoDescriptiveName = Nothing
552+ , _tdtoMinimumSpendMicros = Nothing
553+ , _tdtoTargetByDealId = Nothing
554+ , _tdtoBillingTerms = Nothing
555+ , _tdtoDescription = Nothing
556556 }
557557
558558-- | If true, the offer will finalize automatically when accepted.
559−tdFinalizeAutomatically :: Lens' TermsDto (Maybe Bool)
560−tdFinalizeAutomatically
561− = lens _tdFinalizeAutomatically
562− (\ s a -> s{_tdFinalizeAutomatically = a})
559+tdtoFinalizeAutomatically :: Lens' TermsDTO (Maybe Bool)
560+tdtoFinalizeAutomatically
561+ = lens _tdtoFinalizeAutomatically
562+ (\ s a -> s{_tdtoFinalizeAutomatically = a})
563563
564564-- | The buyer billing type.
565−tdBuyerBillingType :: Lens' TermsDto (Maybe Text)
566−tdBuyerBillingType
567− = lens _tdBuyerBillingType
568− (\ s a -> s{_tdBuyerBillingType = a})
565+tdtoBuyerBillingType :: Lens' TermsDTO (Maybe Text)
566+tdtoBuyerBillingType
567+ = lens _tdtoBuyerBillingType
568+ (\ s a -> s{_tdtoBuyerBillingType = a})
569569
570570-- | If true, the offer targets all ad slots.
571−tdTargetingAllAdSlots :: Lens' TermsDto (Maybe Bool)
572−tdTargetingAllAdSlots
573− = lens _tdTargetingAllAdSlots
574− (\ s a -> s{_tdTargetingAllAdSlots = a})
571+tdtoTargetingAllAdSlots :: Lens' TermsDTO (Maybe Bool)
572+tdtoTargetingAllAdSlots
573+ = lens _tdtoTargetingAllAdSlots
574+ (\ s a -> s{_tdtoTargetingAllAdSlots = a})
575575
576576-- | The urls applicable to the offer.
577−tdURLs :: Lens' TermsDto [Text]
578−tdURLs
579− = lens _tdURLs (\ s a -> s{_tdURLs = a}) . _Default .
580− _Coerce
577+tdtoURLs :: Lens' TermsDTO [Text]
578+tdtoURLs
579+ = lens _tdtoURLs (\ s a -> s{_tdtoURLs = a}) .
580+ _Default
581+ . _Coerce
581582
582583-- | The end date for the offer.
583−tdEndDate :: Lens' TermsDto (Maybe DateTime)
584−tdEndDate
585− = lens _tdEndDate (\ s a -> s{_tdEndDate = a})
584+tdtoEndDate :: Lens' TermsDTO (Maybe DateTime)
585+tdtoEndDate
586+ = lens _tdtoEndDate (\ s a -> s{_tdtoEndDate = a})
586587
587588-- | The cpm terms.
588−tdCpm :: Lens' TermsDto (Maybe MoneyDto)
589−tdCpm = lens _tdCpm (\ s a -> s{_tdCpm = a})
589+tdtoCpm :: Lens' TermsDTO (Maybe MoneyDTO)
590+tdtoCpm = lens _tdtoCpm (\ s a -> s{_tdtoCpm = a})
590591
591592-- | The estimated spend for the offer.
592−tdEstimatedSpend :: Lens' TermsDto (Maybe MoneyDto)
593−tdEstimatedSpend
594− = lens _tdEstimatedSpend
595− (\ s a -> s{_tdEstimatedSpend = a})
593+tdtoEstimatedSpend :: Lens' TermsDTO (Maybe MoneyDTO)
594+tdtoEstimatedSpend
595+ = lens _tdtoEstimatedSpend
596+ (\ s a -> s{_tdtoEstimatedSpend = a})
596597
597598-- | A list of advertisers for this offer.
598−tdAdvertisers :: Lens' TermsDto [AdvertiserDto]
599−tdAdvertisers
600− = lens _tdAdvertisers
601− (\ s a -> s{_tdAdvertisers = a})
599+tdtoAdvertisers :: Lens' TermsDTO [AdvertiserDTO]
600+tdtoAdvertisers
601+ = lens _tdtoAdvertisers
602+ (\ s a -> s{_tdtoAdvertisers = a})
602603 . _Default
603604 . _Coerce
604605
605606-- | The estimated daily impressions for the offer.
606−tdEstimatedImpressionsPerDay :: Lens' TermsDto (Maybe Int64)
607−tdEstimatedImpressionsPerDay
608− = lens _tdEstimatedImpressionsPerDay
609− (\ s a -> s{_tdEstimatedImpressionsPerDay = a})
607+tdtoEstimatedImpressionsPerDay :: Lens' TermsDTO (Maybe Int64)
608+tdtoEstimatedImpressionsPerDay
609+ = lens _tdtoEstimatedImpressionsPerDay
610+ (\ s a -> s{_tdtoEstimatedImpressionsPerDay = a})
610611
611612-- | The monetizer type.
612−tdMonetizerType :: Lens' TermsDto (Maybe Text)
613−tdMonetizerType
614− = lens _tdMonetizerType
615− (\ s a -> s{_tdMonetizerType = a})
613+tdtoMonetizerType :: Lens' TermsDTO (Maybe Text)
614+tdtoMonetizerType
615+ = lens _tdtoMonetizerType
616+ (\ s a -> s{_tdtoMonetizerType = a})
616617
617618-- | A description of the audience segment for the offer.
618−tdAudienceSegmentDescription :: Lens' TermsDto (Maybe Text)
619−tdAudienceSegmentDescription
620− = lens _tdAudienceSegmentDescription
621− (\ s a -> s{_tdAudienceSegmentDescription = a})
619+tdtoAudienceSegmentDescription :: Lens' TermsDTO (Maybe Text)
620+tdtoAudienceSegmentDescription
621+ = lens _tdtoAudienceSegmentDescription
622+ (\ s a -> s{_tdtoAudienceSegmentDescription = a})
622623
623624-- | Whether to use publisher review policy or AdX review policy.
624−tdCreativeReviewPolicy :: Lens' TermsDto (Maybe Text)
625−tdCreativeReviewPolicy
626− = lens _tdCreativeReviewPolicy
627− (\ s a -> s{_tdCreativeReviewPolicy = a})
625+tdtoCreativeReviewPolicy :: Lens' TermsDTO (Maybe Text)
626+tdtoCreativeReviewPolicy
627+ = lens _tdtoCreativeReviewPolicy
628+ (\ s a -> s{_tdtoCreativeReviewPolicy = a})
628629
629630-- | The minimum true looks for the offer.
630−tdMinimumTrueLooks :: Lens' TermsDto (Maybe Int64)
631−tdMinimumTrueLooks
632− = lens _tdMinimumTrueLooks
633− (\ s a -> s{_tdMinimumTrueLooks = a})
631+tdtoMinimumTrueLooks :: Lens' TermsDTO (Maybe Int64)
632+tdtoMinimumTrueLooks
633+ = lens _tdtoMinimumTrueLooks
634+ (\ s a -> s{_tdtoMinimumTrueLooks = a})
634635
635636-- | The start date for the offer.
636−tdStartDate :: Lens' TermsDto (Maybe DateTime)
637−tdStartDate
638− = lens _tdStartDate (\ s a -> s{_tdStartDate = a})
637+tdtoStartDate :: Lens' TermsDTO (Maybe DateTime)
638+tdtoStartDate
639+ = lens _tdtoStartDate
640+ (\ s a -> s{_tdtoStartDate = a})
639641
640642-- | Whether to use or ignore publisher blocking rules.
641−tdCreativeBlockingLevel :: Lens' TermsDto (Maybe Text)
642−tdCreativeBlockingLevel
643− = lens _tdCreativeBlockingLevel
644− (\ s a -> s{_tdCreativeBlockingLevel = a})
643+tdtoCreativeBlockingLevel :: Lens' TermsDTO (Maybe Text)
644+tdtoCreativeBlockingLevel
645+ = lens _tdtoCreativeBlockingLevel
646+ (\ s a -> s{_tdtoCreativeBlockingLevel = a})
645647
646648-- | Whether this offer is semi-transparent.
647−tdSemiTransparent :: Lens' TermsDto (Maybe Bool)
648−tdSemiTransparent
649− = lens _tdSemiTransparent
650− (\ s a -> s{_tdSemiTransparent = a})
649+tdtoSemiTransparent :: Lens' TermsDTO (Maybe Bool)
650+tdtoSemiTransparent
651+ = lens _tdtoSemiTransparent
652+ (\ s a -> s{_tdtoSemiTransparent = a})
651653
652654-- | The audience segment for the offer.
653−tdAudienceSegment :: Lens' TermsDto (Maybe AudienceSegment)
654−tdAudienceSegment
655− = lens _tdAudienceSegment
656− (\ s a -> s{_tdAudienceSegment = a})
655+tdtoAudienceSegment :: Lens' TermsDTO (Maybe AudienceSegment)
656+tdtoAudienceSegment
657+ = lens _tdtoAudienceSegment
658+ (\ s a -> s{_tdtoAudienceSegment = a})
657659
658660-- | The premium terms.
659−tdDealPremium :: Lens' TermsDto (Maybe MoneyDto)
660−tdDealPremium
661− = lens _tdDealPremium
662− (\ s a -> s{_tdDealPremium = a})
661+tdtoDealPremium :: Lens' TermsDTO (Maybe MoneyDTO)
662+tdtoDealPremium
663+ = lens _tdtoDealPremium
664+ (\ s a -> s{_tdtoDealPremium = a})
663665
664666-- | Whether the offer is a reservation.
665−tdIsReservation :: Lens' TermsDto (Maybe Bool)
666−tdIsReservation
667− = lens _tdIsReservation
668− (\ s a -> s{_tdIsReservation = a})
667+tdtoIsReservation :: Lens' TermsDTO (Maybe Bool)
668+tdtoIsReservation
669+ = lens _tdtoIsReservation
670+ (\ s a -> s{_tdtoIsReservation = a})
669671
670672-- | The particular ad slots targeted by the offer.
671−tdAdSlots :: Lens' TermsDto [AdSlotDto]
672−tdAdSlots
673− = lens _tdAdSlots (\ s a -> s{_tdAdSlots = a}) .
673+tdtoAdSlots :: Lens' TermsDTO [AdSlotDTO]
674+tdtoAdSlots
675+ = lens _tdtoAdSlots (\ s a -> s{_tdtoAdSlots = a}) .
674676 _Default
675677 . _Coerce
676678
677679-- | A list of terms attributes.
678−tdTermsAttributes :: Lens' TermsDto [Text]
679−tdTermsAttributes
680− = lens _tdTermsAttributes
681− (\ s a -> s{_tdTermsAttributes = a})
680+tdtoTermsAttributes :: Lens' TermsDTO [Text]
681+tdtoTermsAttributes
682+ = lens _tdtoTermsAttributes
683+ (\ s a -> s{_tdtoTermsAttributes = a})
682684 . _Default
683685 . _Coerce
684686
685687-- | The inventory segment targeting for the offer.
686−tdInventorySegmentTargeting :: Lens' TermsDto (Maybe InventorySegmentTargeting)
687−tdInventorySegmentTargeting
688− = lens _tdInventorySegmentTargeting
689− (\ s a -> s{_tdInventorySegmentTargeting = a})
688+tdtoInventorySegmentTargeting :: Lens' TermsDTO (Maybe InventorySegmentTargeting)
689+tdtoInventorySegmentTargeting
690+ = lens _tdtoInventorySegmentTargeting
691+ (\ s a -> s{_tdtoInventorySegmentTargeting = a})
690692
691693-- | A descriptive name for these terms.
692−tdDescriptiveName :: Lens' TermsDto (Maybe Text)
693−tdDescriptiveName
694− = lens _tdDescriptiveName
695− (\ s a -> s{_tdDescriptiveName = a})
694+tdtoDescriptiveName :: Lens' TermsDTO (Maybe Text)
695+tdtoDescriptiveName
696+ = lens _tdtoDescriptiveName
697+ (\ s a -> s{_tdtoDescriptiveName = a})
696698
697699-- | The minimum spend for the offer.
698−tdMinimumSpendMicros :: Lens' TermsDto (Maybe Int64)
699−tdMinimumSpendMicros
700− = lens _tdMinimumSpendMicros
701− (\ s a -> s{_tdMinimumSpendMicros = a})
700+tdtoMinimumSpendMicros :: Lens' TermsDTO (Maybe Int64)
701+tdtoMinimumSpendMicros
702+ = lens _tdtoMinimumSpendMicros
703+ (\ s a -> s{_tdtoMinimumSpendMicros = a})
702704
703705-- | Whether to target by deal id.
704−tdTargetByDealId :: Lens' TermsDto (Maybe Bool)
705−tdTargetByDealId
706− = lens _tdTargetByDealId
707− (\ s a -> s{_tdTargetByDealId = a})
706+tdtoTargetByDealId :: Lens' TermsDTO (Maybe Bool)
707+tdtoTargetByDealId
708+ = lens _tdtoTargetByDealId
709+ (\ s a -> s{_tdtoTargetByDealId = a})
708710
709711-- | The billing terms.
710−tdBillingTerms :: Lens' TermsDto (Maybe Text)
711−tdBillingTerms
712− = lens _tdBillingTerms
713− (\ s a -> s{_tdBillingTerms = a})
712+tdtoBillingTerms :: Lens' TermsDTO (Maybe Text)
713+tdtoBillingTerms
714+ = lens _tdtoBillingTerms
715+ (\ s a -> s{_tdtoBillingTerms = a})
714716
715717-- | A description for these terms.
716−tdDescription :: Lens' TermsDto (Maybe Text)
717−tdDescription
718− = lens _tdDescription
719− (\ s a -> s{_tdDescription = a})
718+tdtoDescription :: Lens' TermsDTO (Maybe Text)
719+tdtoDescription
720+ = lens _tdtoDescription
721+ (\ s a -> s{_tdtoDescription = a})
720722
721−instance FromJSON TermsDto where
723+instance FromJSON TermsDTO where
722724 parseJSON
723− = withObject "TermsDto"
725+ = withObject "TermsDTO"
724726 (\ o ->
725− TermsDto <$>
727+ TermsDTO <$>
726728 (o .:? "finalizeAutomatically") <*>
727729 (o .:? "buyerBillingType")
728730 <*> (o .:? "targetingAllAdSlots")
@@ -751,43 +753,45 @@ instance FromJSON TermsDto where
751753 <*> (o .:? "billingTerms")
752754 <*> (o .:? "description"))
753755
754−instance ToJSON TermsDto where
755− toJSON TermsDto{..}
756+instance ToJSON TermsDTO where
757+ toJSON TermsDTO{..}
756758 = object
757759 (catMaybes
758760 [("finalizeAutomatically" .=) <$>
759− _tdFinalizeAutomatically,
760− ("buyerBillingType" .=) <$> _tdBuyerBillingType,
761+ _tdtoFinalizeAutomatically,
762+ ("buyerBillingType" .=) <$> _tdtoBuyerBillingType,
761763 ("targetingAllAdSlots" .=) <$>
762− _tdTargetingAllAdSlots,
763− ("urls" .=) <$> _tdURLs,
764− ("endDate" .=) <$> _tdEndDate, ("cpm" .=) <$> _tdCpm,
765− ("estimatedSpend" .=) <$> _tdEstimatedSpend,
766− ("advertisers" .=) <$> _tdAdvertisers,
764+ _tdtoTargetingAllAdSlots,
765+ ("urls" .=) <$> _tdtoURLs,
766+ ("endDate" .=) <$> _tdtoEndDate,
767+ ("cpm" .=) <$> _tdtoCpm,
768+ ("estimatedSpend" .=) <$> _tdtoEstimatedSpend,
769+ ("advertisers" .=) <$> _tdtoAdvertisers,
767770 ("estimatedImpressionsPerDay" .=) <$>
768− _tdEstimatedImpressionsPerDay,
769− ("monetizerType" .=) <$> _tdMonetizerType,
771+ _tdtoEstimatedImpressionsPerDay,
772+ ("monetizerType" .=) <$> _tdtoMonetizerType,
770773 ("audienceSegmentDescription" .=) <$>
771− _tdAudienceSegmentDescription,
774+ _tdtoAudienceSegmentDescription,
772775 ("creativeReviewPolicy" .=) <$>
773− _tdCreativeReviewPolicy,
774− ("minimumTrueLooks" .=) <$> _tdMinimumTrueLooks,
775− ("startDate" .=) <$> _tdStartDate,
776+ _tdtoCreativeReviewPolicy,
777+ ("minimumTrueLooks" .=) <$> _tdtoMinimumTrueLooks,
778+ ("startDate" .=) <$> _tdtoStartDate,
776779 ("creativeBlockingLevel" .=) <$>
777− _tdCreativeBlockingLevel,
778− ("semiTransparent" .=) <$> _tdSemiTransparent,
779− ("audienceSegment" .=) <$> _tdAudienceSegment,
780− ("dealPremium" .=) <$> _tdDealPremium,
781− ("isReservation" .=) <$> _tdIsReservation,
782− ("adSlots" .=) <$> _tdAdSlots,
783− ("termsAttributes" .=) <$> _tdTermsAttributes,
780+ _tdtoCreativeBlockingLevel,
781+ ("semiTransparent" .=) <$> _tdtoSemiTransparent,
782+ ("audienceSegment" .=) <$> _tdtoAudienceSegment,
783+ ("dealPremium" .=) <$> _tdtoDealPremium,
784+ ("isReservation" .=) <$> _tdtoIsReservation,
785+ ("adSlots" .=) <$> _tdtoAdSlots,
786+ ("termsAttributes" .=) <$> _tdtoTermsAttributes,
784787 ("inventorySegmentTargeting" .=) <$>
785− _tdInventorySegmentTargeting,
786− ("descriptiveName" .=) <$> _tdDescriptiveName,
787− ("minimumSpendMicros" .=) <$> _tdMinimumSpendMicros,
788− ("targetByDealId" .=) <$> _tdTargetByDealId,
789− ("billingTerms" .=) <$> _tdBillingTerms,
790− ("description" .=) <$> _tdDescription])
788+ _tdtoInventorySegmentTargeting,
789+ ("descriptiveName" .=) <$> _tdtoDescriptiveName,
790+ ("minimumSpendMicros" .=) <$>
791+ _tdtoMinimumSpendMicros,
792+ ("targetByDealId" .=) <$> _tdtoTargetByDealId,
793+ ("billingTerms" .=) <$> _tdtoBillingTerms,
794+ ("description" .=) <$> _tdtoDescription])
791795
792796-- | The creatives feed lists the active creatives for the Ad Exchange buyer
793797-- accounts that the user has access to. Each entry in the feed corresponds
@@ -1052,79 +1056,81 @@ instance ToJSON MarketplaceDealParty where
10521056 ("buyer" .=) <$> _mdpBuyer])
10531057
10541058--
1055−-- /See:/ 'dealPartyDto' smart constructor.
1056−data DealPartyDto = DealPartyDto
1057− { _dpdBuyerSellerRole :: !(Maybe Text)
1058− , _dpdCustomerId :: !(Maybe Int32)
1059− , _dpdName :: !(Maybe Text)
1060− , _dpdWebProperty :: !(Maybe WebPropertyDto)
1061− , _dpdBuyer :: !(Maybe BuyerDto)
1059+-- /See:/ 'dealPartyDTO' smart constructor.
1060+data DealPartyDTO = DealPartyDTO
1061+ { _dpdtoBuyerSellerRole :: !(Maybe Text)
1062+ , _dpdtoCustomerId :: !(Maybe Int32)
1063+ , _dpdtoName :: !(Maybe Text)
1064+ , _dpdtoWebProperty :: !(Maybe WebPropertyDTO)
1065+ , _dpdtoBuyer :: !(Maybe BuyerDTO)
10621066 } deriving (Eq,Read,Show,Data,Typeable,Generic)
10631067
1064−-- | Creates a value of 'DealPartyDto' with the minimum fields required to make a request.
1068+-- | Creates a value of 'DealPartyDTO' with the minimum fields required to make a request.
10651069--
10661070-- Use one of the following lenses to modify other fields as desired:
10671071--
1068−-- * 'dpdBuyerSellerRole'
1072+-- * 'dpdtoBuyerSellerRole'
10691073--
1070−-- * 'dpdCustomerId'
1074+-- * 'dpdtoCustomerId'
10711075--
1072−-- * 'dpdName'
1076+-- * 'dpdtoName'
10731077--
1074−-- * 'dpdWebProperty'
1078+-- * 'dpdtoWebProperty'
10751079--
1076−-- * 'dpdBuyer'
1077−dealPartyDto
1078− :: DealPartyDto
1079−dealPartyDto =
1080− DealPartyDto
1081− { _dpdBuyerSellerRole = Nothing
1082− , _dpdCustomerId = Nothing
1083− , _dpdName = Nothing
1084− , _dpdWebProperty = Nothing
1085− , _dpdBuyer = Nothing
1080+-- * 'dpdtoBuyer'
1081+dealPartyDTO
1082+ :: DealPartyDTO
1083+dealPartyDTO =
1084+ DealPartyDTO
1085+ { _dpdtoBuyerSellerRole = Nothing
1086+ , _dpdtoCustomerId = Nothing
1087+ , _dpdtoName = Nothing
1088+ , _dpdtoWebProperty = Nothing
1089+ , _dpdtoBuyer = Nothing
10861090 }
10871091
1088−dpdBuyerSellerRole :: Lens' DealPartyDto (Maybe Text)
1089−dpdBuyerSellerRole
1090− = lens _dpdBuyerSellerRole
1091− (\ s a -> s{_dpdBuyerSellerRole = a})
1092+dpdtoBuyerSellerRole :: Lens' DealPartyDTO (Maybe Text)
1093+dpdtoBuyerSellerRole
1094+ = lens _dpdtoBuyerSellerRole
1095+ (\ s a -> s{_dpdtoBuyerSellerRole = a})
10921096
1093−dpdCustomerId :: Lens' DealPartyDto (Maybe Int32)
1094−dpdCustomerId
1095− = lens _dpdCustomerId
1096− (\ s a -> s{_dpdCustomerId = a})
1097+dpdtoCustomerId :: Lens' DealPartyDTO (Maybe Int32)
1098+dpdtoCustomerId
1099+ = lens _dpdtoCustomerId
1100+ (\ s a -> s{_dpdtoCustomerId = a})
10971101
1098−dpdName :: Lens' DealPartyDto (Maybe Text)
1099−dpdName = lens _dpdName (\ s a -> s{_dpdName = a})
1102+dpdtoName :: Lens' DealPartyDTO (Maybe Text)
1103+dpdtoName
1104+ = lens _dpdtoName (\ s a -> s{_dpdtoName = a})
11001105
1101−dpdWebProperty :: Lens' DealPartyDto (Maybe WebPropertyDto)
1102−dpdWebProperty
1103− = lens _dpdWebProperty
1104− (\ s a -> s{_dpdWebProperty = a})
1106+dpdtoWebProperty :: Lens' DealPartyDTO (Maybe WebPropertyDTO)
1107+dpdtoWebProperty
1108+ = lens _dpdtoWebProperty
1109+ (\ s a -> s{_dpdtoWebProperty = a})
11051110
1106−dpdBuyer :: Lens' DealPartyDto (Maybe BuyerDto)
1107−dpdBuyer = lens _dpdBuyer (\ s a -> s{_dpdBuyer = a})
1111+dpdtoBuyer :: Lens' DealPartyDTO (Maybe BuyerDTO)
1112+dpdtoBuyer
1113+ = lens _dpdtoBuyer (\ s a -> s{_dpdtoBuyer = a})
11081114
1109−instance FromJSON DealPartyDto where
1115+instance FromJSON DealPartyDTO where
11101116 parseJSON
1111− = withObject "DealPartyDto"
1117+ = withObject "DealPartyDTO"
11121118 (\ o ->
1113− DealPartyDto <$>
1119+ DealPartyDTO <$>
11141120 (o .:? "buyerSellerRole") <*> (o .:? "customerId")
11151121 <*> (o .:? "name")
11161122 <*> (o .:? "webProperty")
11171123 <*> (o .:? "buyer"))
11181124
1119−instance ToJSON DealPartyDto where
1120− toJSON DealPartyDto{..}
1125+instance ToJSON DealPartyDTO where
1126+ toJSON DealPartyDTO{..}
11211127 = object
11221128 (catMaybes
1123− [("buyerSellerRole" .=) <$> _dpdBuyerSellerRole,
1124− ("customerId" .=) <$> _dpdCustomerId,
1125− ("name" .=) <$> _dpdName,
1126− ("webProperty" .=) <$> _dpdWebProperty,
1127− ("buyer" .=) <$> _dpdBuyer])
1129+ [("buyerSellerRole" .=) <$> _dpdtoBuyerSellerRole,
1130+ ("customerId" .=) <$> _dpdtoCustomerId,
1131+ ("name" .=) <$> _dpdtoName,
1132+ ("webProperty" .=) <$> _dpdtoWebProperty,
1133+ ("buyer" .=) <$> _dpdtoBuyer])
11281134
11291135--
11301136-- /See:/ 'deliveryControlFrequencyCap' smart constructor.
@@ -1187,7 +1193,7 @@ instance ToJSON DeliveryControlFrequencyCap where
11871193-- /See:/ 'getNegotiationsResponse' smart constructor.
11881194data GetNegotiationsResponse = GetNegotiationsResponse
11891195 { _gnrKind :: !Text
1190− , _gnrNegotiations :: !(Maybe [NegotiationDto])
1196+ , _gnrNegotiations :: !(Maybe [NegotiationDTO])
11911197 } deriving (Eq,Read,Show,Data,Typeable,Generic)
11921198
11931199-- | Creates a value of 'GetNegotiationsResponse' with the minimum fields required to make a request.
@@ -1208,7 +1214,7 @@ getNegotiationsResponse =
12081214gnrKind :: Lens' GetNegotiationsResponse Text
12091215gnrKind = lens _gnrKind (\ s a -> s{_gnrKind = a})
12101216
1211−gnrNegotiations :: Lens' GetNegotiationsResponse [NegotiationDto]
1217+gnrNegotiations :: Lens' GetNegotiationsResponse [NegotiationDTO]
12121218gnrNegotiations
12131219 = lens _gnrNegotiations
12141220 (\ s a -> s{_gnrNegotiations = a})
@@ -1923,7 +1929,7 @@ data Creative = Creative
19231929 , _cVersion :: !(Maybe Int32)
19241930 , _cSensitiveCategories :: !(Maybe [Int32])
19251931 , _cVideoURL :: !(Maybe Text)
1926− , _cAPIUploadTimestamp :: !(Maybe DateTime)
1932+ , _cAPIUploadTimestamp :: !(Maybe DateTime')
19271933 , _cServingRestrictions :: !(Maybe [CreativeServingRestrictions])
19281934 , _cOpenAuctionStatus :: !(Maybe Text)
19291935 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -2164,6 +2170,7 @@ cAPIUploadTimestamp :: Lens' Creative (Maybe UTCTime)
21642170cAPIUploadTimestamp
21652171 = lens _cAPIUploadTimestamp
21662172 (\ s a -> s{_cAPIUploadTimestamp = a})
2173+ . mapping _DateTime
21672174
21682175-- | The granular status of this ad in specific contexts. A context here
21692176-- relates to where something ultimately serves (for example, a physical
@@ -2396,8 +2403,8 @@ instance ToJSON CreativeCorrections where
23962403 ("details" .=) <$> _ccDetails])
23972404
23982405--
2399−-- /See:/ 'buyerDto' smart constructor.
2400−data BuyerDto = BuyerDto
2406+-- /See:/ 'buyerDTO' smart constructor.
2407+data BuyerDTO = BuyerDTO
24012408 { _buySponsorAccountId :: !(Maybe Int32)
24022409 , _buyEnabledForInterestTargetingDeals :: !(Maybe Bool)
24032410 , _buyCustomerId :: !(Maybe Int32)
@@ -2407,7 +2414,7 @@ data BuyerDto = BuyerDto
24072414 , _buyId :: !(Maybe Int32)
24082415 } deriving (Eq,Read,Show,Data,Typeable,Generic)
24092416
2410−-- | Creates a value of 'BuyerDto' with the minimum fields required to make a request.
2417+-- | Creates a value of 'BuyerDTO' with the minimum fields required to make a request.
24112418--
24122419-- Use one of the following lenses to modify other fields as desired:
24132420--
@@ -2424,10 +2431,10 @@ data BuyerDto = BuyerDto
24242431-- * 'buyDisplayName'
24252432--
24262433-- * 'buyId'
2427−buyerDto
2428− :: BuyerDto
2429−buyerDto =
2430− BuyerDto
2434+buyerDTO
2435+ :: BuyerDTO
2436+buyerDTO =
2437+ BuyerDTO
24312438 { _buySponsorAccountId = Nothing
24322439 , _buyEnabledForInterestTargetingDeals = Nothing
24332440 , _buyCustomerId = Nothing
@@ -2437,44 +2444,44 @@ buyerDto =
24372444 , _buyId = Nothing
24382445 }
24392446
2440−buySponsorAccountId :: Lens' BuyerDto (Maybe Int32)
2447+buySponsorAccountId :: Lens' BuyerDTO (Maybe Int32)
24412448buySponsorAccountId
24422449 = lens _buySponsorAccountId
24432450 (\ s a -> s{_buySponsorAccountId = a})
24442451
2445−buyEnabledForInterestTargetingDeals :: Lens' BuyerDto (Maybe Bool)
2452+buyEnabledForInterestTargetingDeals :: Lens' BuyerDTO (Maybe Bool)
24462453buyEnabledForInterestTargetingDeals
24472454 = lens _buyEnabledForInterestTargetingDeals
24482455 (\ s a ->
24492456 s{_buyEnabledForInterestTargetingDeals = a})
24502457
2451−buyCustomerId :: Lens' BuyerDto (Maybe Int32)
2458+buyCustomerId :: Lens' BuyerDTO (Maybe Int32)
24522459buyCustomerId
24532460 = lens _buyCustomerId
24542461 (\ s a -> s{_buyCustomerId = a})
24552462
2456−buyEnabledForPreferredDeals :: Lens' BuyerDto (Maybe Bool)
2463+buyEnabledForPreferredDeals :: Lens' BuyerDTO (Maybe Bool)
24572464buyEnabledForPreferredDeals
24582465 = lens _buyEnabledForPreferredDeals
24592466 (\ s a -> s{_buyEnabledForPreferredDeals = a})
24602467
2461−buyAccountId :: Lens' BuyerDto (Maybe Int32)
2468+buyAccountId :: Lens' BuyerDTO (Maybe Int32)
24622469buyAccountId
24632470 = lens _buyAccountId (\ s a -> s{_buyAccountId = a})
24642471
2465−buyDisplayName :: Lens' BuyerDto (Maybe Text)
2472+buyDisplayName :: Lens' BuyerDTO (Maybe Text)
24662473buyDisplayName
24672474 = lens _buyDisplayName
24682475 (\ s a -> s{_buyDisplayName = a})
24692476
2470−buyId :: Lens' BuyerDto (Maybe Int32)
2477+buyId :: Lens' BuyerDTO (Maybe Int32)
24712478buyId = lens _buyId (\ s a -> s{_buyId = a})
24722479
2473−instance FromJSON BuyerDto where
2480+instance FromJSON BuyerDTO where
24742481 parseJSON
2475− = withObject "BuyerDto"
2482+ = withObject "BuyerDTO"
24762483 (\ o ->
2477− BuyerDto <$>
2484+ BuyerDTO <$>
24782485 (o .:? "sponsorAccountId") <*>
24792486 (o .:? "enabledForInterestTargetingDeals")
24802487 <*> (o .:? "customerId")
@@ -2483,8 +2490,8 @@ instance FromJSON BuyerDto where
24832490 <*> (o .:? "displayName")
24842491 <*> (o .:? "id"))
24852492
2486−instance ToJSON BuyerDto where
2487− toJSON BuyerDto{..}
2493+instance ToJSON BuyerDTO where
2494+ toJSON BuyerDTO{..}
24882495 = object
24892496 (catMaybes
24902497 [("sponsorAccountId" .=) <$> _buySponsorAccountId,
@@ -2539,89 +2546,92 @@ instance ToJSON DealTermsNonGuaranteedFixedPriceTerms
25392546 [("fixedPrices" .=) <$> _dtngfptFixedPrices])
25402547
25412548--
2542−-- /See:/ 'adSlotDto' smart constructor.
2543−data AdSlotDto = AdSlotDto
2544− { _asdWebPropertyId :: !(Maybe Int32)
2545− , _asdSize :: !(Maybe Text)
2546− , _asdChannelCode :: !(Maybe Text)
2547− , _asdChannelId :: !(Maybe Int32)
2548− , _asdName :: !(Maybe Text)
2549− , _asdDescription :: !(Maybe Text)
2549+-- /See:/ 'adSlotDTO' smart constructor.
2550+data AdSlotDTO = AdSlotDTO
2551+ { _asdtoWebPropertyId :: !(Maybe Int32)
2552+ , _asdtoSize :: !(Maybe Text)
2553+ , _asdtoChannelCode :: !(Maybe Text)
2554+ , _asdtoChannelId :: !(Maybe Int32)
2555+ , _asdtoName :: !(Maybe Text)
2556+ , _asdtoDescription :: !(Maybe Text)
25502557 } deriving (Eq,Read,Show,Data,Typeable,Generic)
25512558
2552−-- | Creates a value of 'AdSlotDto' with the minimum fields required to make a request.
2559+-- | Creates a value of 'AdSlotDTO' with the minimum fields required to make a request.
25532560--
25542561-- Use one of the following lenses to modify other fields as desired:
25552562--
2556−-- * 'asdWebPropertyId'
2563+-- * 'asdtoWebPropertyId'
25572564--
2558−-- * 'asdSize'
2565+-- * 'asdtoSize'
25592566--
2560−-- * 'asdChannelCode'
2567+-- * 'asdtoChannelCode'
25612568--
2562−-- * 'asdChannelId'
2569+-- * 'asdtoChannelId'
25632570--
2564−-- * 'asdName'
2571+-- * 'asdtoName'
25652572--
2566−-- * 'asdDescription'
2567−adSlotDto
2568− :: AdSlotDto
2569−adSlotDto =
2570− AdSlotDto
2571− { _asdWebPropertyId = Nothing
2572− , _asdSize = Nothing
2573− , _asdChannelCode = Nothing
2574− , _asdChannelId = Nothing
2575− , _asdName = Nothing
2576− , _asdDescription = Nothing
2573+-- * 'asdtoDescription'
2574+adSlotDTO
2575+ :: AdSlotDTO
2576+adSlotDTO =
2577+ AdSlotDTO
2578+ { _asdtoWebPropertyId = Nothing
2579+ , _asdtoSize = Nothing
2580+ , _asdtoChannelCode = Nothing
2581+ , _asdtoChannelId = Nothing
2582+ , _asdtoName = Nothing
2583+ , _asdtoDescription = Nothing
25772584 }
25782585
2579−asdWebPropertyId :: Lens' AdSlotDto (Maybe Int32)
2580−asdWebPropertyId
2581− = lens _asdWebPropertyId
2582− (\ s a -> s{_asdWebPropertyId = a})
2586+asdtoWebPropertyId :: Lens' AdSlotDTO (Maybe Int32)
2587+asdtoWebPropertyId
2588+ = lens _asdtoWebPropertyId
2589+ (\ s a -> s{_asdtoWebPropertyId = a})
25832590
2584−asdSize :: Lens' AdSlotDto (Maybe Text)
2585−asdSize = lens _asdSize (\ s a -> s{_asdSize = a})
2591+asdtoSize :: Lens' AdSlotDTO (Maybe Text)
2592+asdtoSize
2593+ = lens _asdtoSize (\ s a -> s{_asdtoSize = a})
25862594
2587−asdChannelCode :: Lens' AdSlotDto (Maybe Text)
2588−asdChannelCode
2589− = lens _asdChannelCode
2590− (\ s a -> s{_asdChannelCode = a})
2595+asdtoChannelCode :: Lens' AdSlotDTO (Maybe Text)
2596+asdtoChannelCode
2597+ = lens _asdtoChannelCode
2598+ (\ s a -> s{_asdtoChannelCode = a})
25912599
2592−asdChannelId :: Lens' AdSlotDto (Maybe Int32)
2593−asdChannelId
2594− = lens _asdChannelId (\ s a -> s{_asdChannelId = a})
2600+asdtoChannelId :: Lens' AdSlotDTO (Maybe Int32)
2601+asdtoChannelId
2602+ = lens _asdtoChannelId
2603+ (\ s a -> s{_asdtoChannelId = a})
25952604
2596−asdName :: Lens' AdSlotDto (Maybe Text)
2597−asdName = lens _asdName (\ s a -> s{_asdName = a})
2605+asdtoName :: Lens' AdSlotDTO (Maybe Text)
2606+asdtoName
2607+ = lens _asdtoName (\ s a -> s{_asdtoName = a})
25982608
2599−asdDescription :: Lens' AdSlotDto (Maybe Text)
2600−asdDescription
2601− = lens _asdDescription
2602− (\ s a -> s{_asdDescription = a})
2609+asdtoDescription :: Lens' AdSlotDTO (Maybe Text)
2610+asdtoDescription
2611+ = lens _asdtoDescription
2612+ (\ s a -> s{_asdtoDescription = a})
26032613
2604−instance FromJSON AdSlotDto where
2614+instance FromJSON AdSlotDTO where
26052615 parseJSON
2606− = withObject "AdSlotDto"
2616+ = withObject "AdSlotDTO"
26072617 (\ o ->
2608− AdSlotDto <$>
2618+ AdSlotDTO <$>
26092619 (o .:? "webPropertyId") <*> (o .:? "size") <*>
26102620 (o .:? "channelCode")
26112621 <*> (o .:? "channelId")
26122622 <*> (o .:? "name")
26132623 <*> (o .:? "description"))
26142624
2615−instance ToJSON AdSlotDto where
2616− toJSON AdSlotDto{..}
2625+instance ToJSON AdSlotDTO where
2626+ toJSON AdSlotDTO{..}
26172627 = object
26182628 (catMaybes
2619− [("webPropertyId" .=) <$> _asdWebPropertyId,
2620− ("size" .=) <$> _asdSize,
2621− ("channelCode" .=) <$> _asdChannelCode,
2622− ("channelId" .=) <$> _asdChannelId,
2623− ("name" .=) <$> _asdName,
2624− ("description" .=) <$> _asdDescription])
2629+ [("webPropertyId" .=) <$> _asdtoWebPropertyId,
2630+ ("size" .=) <$> _asdtoSize,
2631+ ("channelCode" .=) <$> _asdtoChannelCode,
2632+ ("channelId" .=) <$> _asdtoChannelId,
2633+ ("name" .=) <$> _asdtoName,
2634+ ("description" .=) <$> _asdtoDescription])
26252635
26262636-- | The configuration data for an Ad Exchange performance report list.
26272637--
@@ -3867,168 +3877,173 @@ instance ToJSON PerformanceReportList where
38673877 ("performanceReport" .=) <$> _prlPerformanceReport])
38683878
38693879--
3870−-- /See:/ 'negotiationDto' smart constructor.
3871−data NegotiationDto = NegotiationDto
3872− { _ndNegotiationState :: !(Maybe Text)
3873− , _ndExternalDealId :: !(Maybe Int64)
3874− , _ndStatus :: !(Maybe Text)
3875− , _ndDealType :: !(Maybe Text)
3876− , _ndNegotiationRounds :: !(Maybe [NegotiationRoundDto])
3877− , _ndKind :: !Text
3878− , _ndBilledBuyer :: !(Maybe DealPartyDto)
3879− , _ndBuyerEmailContacts :: !(Maybe [Text])
3880− , _ndStats :: !(Maybe StatsDto)
3881− , _ndSeller :: !(Maybe DealPartyDto)
3882− , _ndLabelNames :: !(Maybe [Text])
3883− , _ndOfferId :: !(Maybe Int64)
3884− , _ndNegotiationId :: !(Maybe Int64)
3885− , _ndSellerEmailContacts :: !(Maybe [Text])
3886− , _ndBuyer :: !(Maybe DealPartyDto)
3880+-- /See:/ 'negotiationDTO' smart constructor.
3881+data NegotiationDTO = NegotiationDTO
3882+ { _ndtoNegotiationState :: !(Maybe Text)
3883+ , _ndtoExternalDealId :: !(Maybe Int64)
3884+ , _ndtoStatus :: !(Maybe Text)
3885+ , _ndtoDealType :: !(Maybe Text)
3886+ , _ndtoNegotiationRounds :: !(Maybe [NegotiationRoundDTO])
3887+ , _ndtoKind :: !Text
3888+ , _ndtoBilledBuyer :: !(Maybe DealPartyDTO)
3889+ , _ndtoBuyerEmailContacts :: !(Maybe [Text])
3890+ , _ndtoStats :: !(Maybe StatsDTO)
3891+ , _ndtoSeller :: !(Maybe DealPartyDTO)
3892+ , _ndtoLabelNames :: !(Maybe [Text])
3893+ , _ndtoOfferId :: !(Maybe Int64)
3894+ , _ndtoNegotiationId :: !(Maybe Int64)
3895+ , _ndtoSellerEmailContacts :: !(Maybe [Text])
3896+ , _ndtoBuyer :: !(Maybe DealPartyDTO)
38873897 } deriving (Eq,Read,Show,Data,Typeable,Generic)
38883898
3889−-- | Creates a value of 'NegotiationDto' with the minimum fields required to make a request.
3899+-- | Creates a value of 'NegotiationDTO' with the minimum fields required to make a request.
38903900--
38913901-- Use one of the following lenses to modify other fields as desired:
38923902--
3893−-- * 'ndNegotiationState'
3903+-- * 'ndtoNegotiationState'
38943904--
3895−-- * 'ndExternalDealId'
3905+-- * 'ndtoExternalDealId'
38963906--
3897−-- * 'ndStatus'
3907+-- * 'ndtoStatus'
38983908--
3899−-- * 'ndDealType'
3909+-- * 'ndtoDealType'
39003910--
3901−-- * 'ndNegotiationRounds'
3911+-- * 'ndtoNegotiationRounds'
39023912--
3903−-- * 'ndKind'
3913+-- * 'ndtoKind'
39043914--
3905−-- * 'ndBilledBuyer'
3915+-- * 'ndtoBilledBuyer'
39063916--
3907−-- * 'ndBuyerEmailContacts'
3917+-- * 'ndtoBuyerEmailContacts'
39083918--
3909−-- * 'ndStats'
3919+-- * 'ndtoStats'
39103920--
3911−-- * 'ndSeller'
3921+-- * 'ndtoSeller'
39123922--
3913−-- * 'ndLabelNames'
3923+-- * 'ndtoLabelNames'
39143924--
3915−-- * 'ndOfferId'
3925+-- * 'ndtoOfferId'
39163926--
3917−-- * 'ndNegotiationId'
3927+-- * 'ndtoNegotiationId'
39183928--
3919−-- * 'ndSellerEmailContacts'
3929+-- * 'ndtoSellerEmailContacts'
39203930--
3921−-- * 'ndBuyer'
3922−negotiationDto
3923− :: NegotiationDto
3924−negotiationDto =
3925− NegotiationDto
3926− { _ndNegotiationState = Nothing
3927− , _ndExternalDealId = Nothing
3928− , _ndStatus = Nothing
3929− , _ndDealType = Nothing
3930− , _ndNegotiationRounds = Nothing
3931− , _ndKind = "adexchangebuyer#negotiation"
3932− , _ndBilledBuyer = Nothing
3933− , _ndBuyerEmailContacts = Nothing
3934− , _ndStats = Nothing
3935− , _ndSeller = Nothing
3936− , _ndLabelNames = Nothing
3937− , _ndOfferId = Nothing
3938− , _ndNegotiationId = Nothing
3939− , _ndSellerEmailContacts = Nothing
3940− , _ndBuyer = Nothing
3931+-- * 'ndtoBuyer'
3932+negotiationDTO
3933+ :: NegotiationDTO
3934+negotiationDTO =
3935+ NegotiationDTO
3936+ { _ndtoNegotiationState = Nothing
3937+ , _ndtoExternalDealId = Nothing
3938+ , _ndtoStatus = Nothing
3939+ , _ndtoDealType = Nothing
3940+ , _ndtoNegotiationRounds = Nothing
3941+ , _ndtoKind = "adexchangebuyer#negotiation"
3942+ , _ndtoBilledBuyer = Nothing
3943+ , _ndtoBuyerEmailContacts = Nothing
3944+ , _ndtoStats = Nothing
3945+ , _ndtoSeller = Nothing
3946+ , _ndtoLabelNames = Nothing
3947+ , _ndtoOfferId = Nothing
3948+ , _ndtoNegotiationId = Nothing
3949+ , _ndtoSellerEmailContacts = Nothing
3950+ , _ndtoBuyer = Nothing
39413951 }
39423952
39433953-- | The state of this negotiation.
3944−ndNegotiationState :: Lens' NegotiationDto (Maybe Text)
3945−ndNegotiationState
3946− = lens _ndNegotiationState
3947− (\ s a -> s{_ndNegotiationState = a})
3954+ndtoNegotiationState :: Lens' NegotiationDTO (Maybe Text)
3955+ndtoNegotiationState
3956+ = lens _ndtoNegotiationState
3957+ (\ s a -> s{_ndtoNegotiationState = a})
39483958
39493959-- | For finalized negotiations, the ID of the finalized deal.
3950−ndExternalDealId :: Lens' NegotiationDto (Maybe Int64)
3951−ndExternalDealId
3952− = lens _ndExternalDealId
3953− (\ s a -> s{_ndExternalDealId = a})
3960+ndtoExternalDealId :: Lens' NegotiationDTO (Maybe Int64)
3961+ndtoExternalDealId
3962+ = lens _ndtoExternalDealId
3963+ (\ s a -> s{_ndtoExternalDealId = a})
39543964
39553965-- | The status of this negotiation.
3956−ndStatus :: Lens' NegotiationDto (Maybe Text)
3957−ndStatus = lens _ndStatus (\ s a -> s{_ndStatus = a})
3966+ndtoStatus :: Lens' NegotiationDTO (Maybe Text)
3967+ndtoStatus
3968+ = lens _ndtoStatus (\ s a -> s{_ndtoStatus = a})
39583969
39593970-- | The type of this deal.
3960−ndDealType :: Lens' NegotiationDto (Maybe Text)
3961−ndDealType
3962− = lens _ndDealType (\ s a -> s{_ndDealType = a})
3971+ndtoDealType :: Lens' NegotiationDTO (Maybe Text)
3972+ndtoDealType
3973+ = lens _ndtoDealType (\ s a -> s{_ndtoDealType = a})
39633974
39643975-- | The series of negotiation rounds for this negotiation.
3965−ndNegotiationRounds :: Lens' NegotiationDto [NegotiationRoundDto]
3966−ndNegotiationRounds
3967− = lens _ndNegotiationRounds
3968− (\ s a -> s{_ndNegotiationRounds = a})
3976+ndtoNegotiationRounds :: Lens' NegotiationDTO [NegotiationRoundDTO]
3977+ndtoNegotiationRounds
3978+ = lens _ndtoNegotiationRounds
3979+ (\ s a -> s{_ndtoNegotiationRounds = a})
39693980 . _Default
39703981 . _Coerce
39713982
3972−ndKind :: Lens' NegotiationDto Text
3973−ndKind = lens _ndKind (\ s a -> s{_ndKind = a})
3983+ndtoKind :: Lens' NegotiationDTO Text
3984+ndtoKind = lens _ndtoKind (\ s a -> s{_ndtoKind = a})
39743985
39753986-- | The billed buyer; Specified by a buyer buying through an intermediary.
3976−ndBilledBuyer :: Lens' NegotiationDto (Maybe DealPartyDto)
3977−ndBilledBuyer
3978− = lens _ndBilledBuyer
3979− (\ s a -> s{_ndBilledBuyer = a})
3987+ndtoBilledBuyer :: Lens' NegotiationDTO (Maybe DealPartyDTO)
3988+ndtoBilledBuyer
3989+ = lens _ndtoBilledBuyer
3990+ (\ s a -> s{_ndtoBilledBuyer = a})
39803991
39813992-- | The buyer party\'s contact email.
3982−ndBuyerEmailContacts :: Lens' NegotiationDto [Text]
3983−ndBuyerEmailContacts
3984− = lens _ndBuyerEmailContacts
3985− (\ s a -> s{_ndBuyerEmailContacts = a})
3993+ndtoBuyerEmailContacts :: Lens' NegotiationDTO [Text]
3994+ndtoBuyerEmailContacts
3995+ = lens _ndtoBuyerEmailContacts
3996+ (\ s a -> s{_ndtoBuyerEmailContacts = a})
39863997 . _Default
39873998 . _Coerce
39883999
39894000-- | The stats for this negotiation.
3990−ndStats :: Lens' NegotiationDto (Maybe StatsDto)
3991−ndStats = lens _ndStats (\ s a -> s{_ndStats = a})
4001+ndtoStats :: Lens' NegotiationDTO (Maybe StatsDTO)
4002+ndtoStats
4003+ = lens _ndtoStats (\ s a -> s{_ndtoStats = a})
39924004
39934005-- | Details of the seller party in this negotiation.
3994−ndSeller :: Lens' NegotiationDto (Maybe DealPartyDto)
3995−ndSeller = lens _ndSeller (\ s a -> s{_ndSeller = a})
4006+ndtoSeller :: Lens' NegotiationDTO (Maybe DealPartyDTO)
4007+ndtoSeller
4008+ = lens _ndtoSeller (\ s a -> s{_ndtoSeller = a})
39964009
39974010-- | A list of label names applicable to this negotiation.
3998−ndLabelNames :: Lens' NegotiationDto [Text]
3999−ndLabelNames
4000− = lens _ndLabelNames (\ s a -> s{_ndLabelNames = a})
4011+ndtoLabelNames :: Lens' NegotiationDTO [Text]
4012+ndtoLabelNames
4013+ = lens _ndtoLabelNames
4014+ (\ s a -> s{_ndtoLabelNames = a})
40014015 . _Default
40024016 . _Coerce
40034017
40044018-- | The ID of this negotiation\'s original offer.
4005−ndOfferId :: Lens' NegotiationDto (Maybe Int64)
4006−ndOfferId
4007− = lens _ndOfferId (\ s a -> s{_ndOfferId = a})
4019+ndtoOfferId :: Lens' NegotiationDTO (Maybe Int64)
4020+ndtoOfferId
4021+ = lens _ndtoOfferId (\ s a -> s{_ndtoOfferId = a})
40084022
40094023-- | The unique ID of this negotiation.
4010−ndNegotiationId :: Lens' NegotiationDto (Maybe Int64)
4011−ndNegotiationId
4012− = lens _ndNegotiationId
4013− (\ s a -> s{_ndNegotiationId = a})
4024+ndtoNegotiationId :: Lens' NegotiationDTO (Maybe Int64)
4025+ndtoNegotiationId
4026+ = lens _ndtoNegotiationId
4027+ (\ s a -> s{_ndtoNegotiationId = a})
40144028
40154029-- | The seller party\'s contact email.
4016−ndSellerEmailContacts :: Lens' NegotiationDto [Text]
4017−ndSellerEmailContacts
4018− = lens _ndSellerEmailContacts
4019− (\ s a -> s{_ndSellerEmailContacts = a})
4030+ndtoSellerEmailContacts :: Lens' NegotiationDTO [Text]
4031+ndtoSellerEmailContacts
4032+ = lens _ndtoSellerEmailContacts
4033+ (\ s a -> s{_ndtoSellerEmailContacts = a})
40204034 . _Default
40214035 . _Coerce
40224036
40234037-- | Details of the buyer party in this negotiation.
4024−ndBuyer :: Lens' NegotiationDto (Maybe DealPartyDto)
4025−ndBuyer = lens _ndBuyer (\ s a -> s{_ndBuyer = a})
4038+ndtoBuyer :: Lens' NegotiationDTO (Maybe DealPartyDTO)
4039+ndtoBuyer
4040+ = lens _ndtoBuyer (\ s a -> s{_ndtoBuyer = a})
40264041
4027−instance FromJSON NegotiationDto where
4042+instance FromJSON NegotiationDTO where
40284043 parseJSON
4029− = withObject "NegotiationDto"
4044+ = withObject "NegotiationDTO"
40304045 (\ o ->
4031− NegotiationDto <$>
4046+ NegotiationDTO <$>
40324047 (o .:? "negotiationState") <*>
40334048 (o .:? "externalDealId")
40344049 <*> (o .:? "status")
@@ -4045,26 +4060,27 @@ instance FromJSON NegotiationDto where
40454060 <*> (o .:? "sellerEmailContacts" .!= mempty)
40464061 <*> (o .:? "buyer"))
40474062
4048−instance ToJSON NegotiationDto where
4049− toJSON NegotiationDto{..}
4063+instance ToJSON NegotiationDTO where
4064+ toJSON NegotiationDTO{..}
40504065 = object
40514066 (catMaybes
4052− [("negotiationState" .=) <$> _ndNegotiationState,
4053− ("externalDealId" .=) <$> _ndExternalDealId,
4054− ("status" .=) <$> _ndStatus,
4055− ("dealType" .=) <$> _ndDealType,
4056− ("negotiationRounds" .=) <$> _ndNegotiationRounds,
4057− Just ("kind" .= _ndKind),
4058− ("billedBuyer" .=) <$> _ndBilledBuyer,
4059− ("buyerEmailContacts" .=) <$> _ndBuyerEmailContacts,
4060− ("stats" .=) <$> _ndStats,
4061− ("seller" .=) <$> _ndSeller,
4062− ("labelNames" .=) <$> _ndLabelNames,
4063− ("offerId" .=) <$> _ndOfferId,
4064− ("negotiationId" .=) <$> _ndNegotiationId,
4067+ [("negotiationState" .=) <$> _ndtoNegotiationState,
4068+ ("externalDealId" .=) <$> _ndtoExternalDealId,
4069+ ("status" .=) <$> _ndtoStatus,
4070+ ("dealType" .=) <$> _ndtoDealType,
4071+ ("negotiationRounds" .=) <$> _ndtoNegotiationRounds,
4072+ Just ("kind" .= _ndtoKind),
4073+ ("billedBuyer" .=) <$> _ndtoBilledBuyer,
4074+ ("buyerEmailContacts" .=) <$>
4075+ _ndtoBuyerEmailContacts,
4076+ ("stats" .=) <$> _ndtoStats,
4077+ ("seller" .=) <$> _ndtoSeller,
4078+ ("labelNames" .=) <$> _ndtoLabelNames,
4079+ ("offerId" .=) <$> _ndtoOfferId,
4080+ ("negotiationId" .=) <$> _ndtoNegotiationId,
40654081 ("sellerEmailContacts" .=) <$>
4066− _ndSellerEmailContacts,
4067− ("buyer" .=) <$> _ndBuyer])
4082+ _ndtoSellerEmailContacts,
4083+ ("buyer" .=) <$> _ndtoBuyer])
40684084
40694085--
40704086-- /See:/ 'audienceSegment' smart constructor.
@@ -4129,159 +4145,165 @@ instance ToJSON AudienceSegment where
41294145 ("description" .=) <$> _asDescription])
41304146
41314147--
4132−-- /See:/ 'offerDto' smart constructor.
4133−data OfferDto = OfferDto
4134− { _odCreator :: !(Maybe DealPartyDto)
4135− , _odStatus :: !(Maybe Text)
4136− , _odOfferState :: !(Maybe Text)
4137− , _odPointOfContact :: !(Maybe Text)
4138− , _odTerms :: !(Maybe TermsDto)
4139− , _odKind :: !Text
4140− , _odBilledBuyer :: !(Maybe DealPartyDto)
4141− , _odOpenToDealParties :: !(Maybe [DealPartyDto])
4142− , _odEmailContacts :: !(Maybe [Text])
4143− , _odLabelNames :: !(Maybe [Text])
4144− , _odOfferId :: !(Maybe Int64)
4145− , _odClosedToDealParties :: !(Maybe [DealPartyDto])
4146− , _odAnonymous :: !(Maybe Bool)
4147− , _odIsOpen :: !(Maybe Bool)
4148+-- /See:/ 'offerDTO' smart constructor.
4149+data OfferDTO = OfferDTO
4150+ { _odtoCreator :: !(Maybe DealPartyDTO)
4151+ , _odtoStatus :: !(Maybe Text)
4152+ , _odtoOfferState :: !(Maybe Text)
4153+ , _odtoPointOfContact :: !(Maybe Text)
4154+ , _odtoTerms :: !(Maybe TermsDTO)
4155+ , _odtoKind :: !Text
4156+ , _odtoBilledBuyer :: !(Maybe DealPartyDTO)
4157+ , _odtoOpenToDealParties :: !(Maybe [DealPartyDTO])
4158+ , _odtoEmailContacts :: !(Maybe [Text])
4159+ , _odtoLabelNames :: !(Maybe [Text])
4160+ , _odtoOfferId :: !(Maybe Int64)
4161+ , _odtoClosedToDealParties :: !(Maybe [DealPartyDTO])
4162+ , _odtoAnonymous :: !(Maybe Bool)
4163+ , _odtoIsOpen :: !(Maybe Bool)
41484164 } deriving (Eq,Read,Show,Data,Typeable,Generic)
41494165
4150−-- | Creates a value of 'OfferDto' with the minimum fields required to make a request.
4166+-- | Creates a value of 'OfferDTO' with the minimum fields required to make a request.
41514167--
41524168-- Use one of the following lenses to modify other fields as desired:
41534169--
4154−-- * 'odCreator'
4170+-- * 'odtoCreator'
41554171--
4156−-- * 'odStatus'
4172+-- * 'odtoStatus'
41574173--
4158−-- * 'odOfferState'
4174+-- * 'odtoOfferState'
41594175--
4160−-- * 'odPointOfContact'
4176+-- * 'odtoPointOfContact'
41614177--
4162−-- * 'odTerms'
4178+-- * 'odtoTerms'
41634179--
4164−-- * 'odKind'
4180+-- * 'odtoKind'
41654181--
4166−-- * 'odBilledBuyer'
4182+-- * 'odtoBilledBuyer'
41674183--
4168−-- * 'odOpenToDealParties'
4184+-- * 'odtoOpenToDealParties'
41694185--
4170−-- * 'odEmailContacts'
4186+-- * 'odtoEmailContacts'
41714187--
4172−-- * 'odLabelNames'
4188+-- * 'odtoLabelNames'
41734189--
4174−-- * 'odOfferId'
4190+-- * 'odtoOfferId'
41754191--
4176−-- * 'odClosedToDealParties'
4192+-- * 'odtoClosedToDealParties'
41774193--
4178−-- * 'odAnonymous'
4194+-- * 'odtoAnonymous'
41794195--
4180−-- * 'odIsOpen'
4181−offerDto
4182− :: OfferDto
4183−offerDto =
4184− OfferDto
4185− { _odCreator = Nothing
4186− , _odStatus = Nothing
4187− , _odOfferState = Nothing
4188− , _odPointOfContact = Nothing
4189− , _odTerms = Nothing
4190− , _odKind = "adexchangebuyer#offer"
4191− , _odBilledBuyer = Nothing
4192− , _odOpenToDealParties = Nothing
4193− , _odEmailContacts = Nothing
4194− , _odLabelNames = Nothing
4195− , _odOfferId = Nothing
4196− , _odClosedToDealParties = Nothing
4197− , _odAnonymous = Nothing
4198− , _odIsOpen = Nothing
4196+-- * 'odtoIsOpen'
4197+offerDTO
4198+ :: OfferDTO
4199+offerDTO =
4200+ OfferDTO
4201+ { _odtoCreator = Nothing
4202+ , _odtoStatus = Nothing
4203+ , _odtoOfferState = Nothing
4204+ , _odtoPointOfContact = Nothing
4205+ , _odtoTerms = Nothing
4206+ , _odtoKind = "adexchangebuyer#offer"
4207+ , _odtoBilledBuyer = Nothing
4208+ , _odtoOpenToDealParties = Nothing
4209+ , _odtoEmailContacts = Nothing
4210+ , _odtoLabelNames = Nothing
4211+ , _odtoOfferId = Nothing
4212+ , _odtoClosedToDealParties = Nothing
4213+ , _odtoAnonymous = Nothing
4214+ , _odtoIsOpen = Nothing
41994215 }
42004216
42014217-- | The creator of this offer.
4202−odCreator :: Lens' OfferDto (Maybe DealPartyDto)
4203−odCreator
4204− = lens _odCreator (\ s a -> s{_odCreator = a})
4218+odtoCreator :: Lens' OfferDTO (Maybe DealPartyDTO)
4219+odtoCreator
4220+ = lens _odtoCreator (\ s a -> s{_odtoCreator = a})
42054221
42064222-- | The status of this offer.
4207−odStatus :: Lens' OfferDto (Maybe Text)
4208−odStatus = lens _odStatus (\ s a -> s{_odStatus = a})
4223+odtoStatus :: Lens' OfferDTO (Maybe Text)
4224+odtoStatus
4225+ = lens _odtoStatus (\ s a -> s{_odtoStatus = a})
42094226
42104227-- | The state of this offer.
4211−odOfferState :: Lens' OfferDto (Maybe Text)
4212−odOfferState
4213− = lens _odOfferState (\ s a -> s{_odOfferState = a})
4228+odtoOfferState :: Lens' OfferDTO (Maybe Text)
4229+odtoOfferState
4230+ = lens _odtoOfferState
4231+ (\ s a -> s{_odtoOfferState = a})
42144232
42154233-- | The point of contact for this offer.
4216−odPointOfContact :: Lens' OfferDto (Maybe Text)
4217−odPointOfContact
4218− = lens _odPointOfContact
4219− (\ s a -> s{_odPointOfContact = a})
4234+odtoPointOfContact :: Lens' OfferDTO (Maybe Text)
4235+odtoPointOfContact
4236+ = lens _odtoPointOfContact
4237+ (\ s a -> s{_odtoPointOfContact = a})
42204238
42214239-- | The terms of this offer.
4222−odTerms :: Lens' OfferDto (Maybe TermsDto)
4223−odTerms = lens _odTerms (\ s a -> s{_odTerms = a})
4240+odtoTerms :: Lens' OfferDTO (Maybe TermsDTO)
4241+odtoTerms
4242+ = lens _odtoTerms (\ s a -> s{_odtoTerms = a})
42244243
4225−odKind :: Lens' OfferDto Text
4226−odKind = lens _odKind (\ s a -> s{_odKind = a})
4244+odtoKind :: Lens' OfferDTO Text
4245+odtoKind = lens _odtoKind (\ s a -> s{_odtoKind = a})
42274246
42284247-- | The billed buyer; For buyer initiated offers, buying through an
42294248-- intermediary.
4230−odBilledBuyer :: Lens' OfferDto (Maybe DealPartyDto)
4231−odBilledBuyer
4232− = lens _odBilledBuyer
4233− (\ s a -> s{_odBilledBuyer = a})
4249+odtoBilledBuyer :: Lens' OfferDTO (Maybe DealPartyDTO)
4250+odtoBilledBuyer
4251+ = lens _odtoBilledBuyer
4252+ (\ s a -> s{_odtoBilledBuyer = a})
42344253
42354254-- | The list of buyer or seller parties this offer is open to.
4236−odOpenToDealParties :: Lens' OfferDto [DealPartyDto]
4237−odOpenToDealParties
4238− = lens _odOpenToDealParties
4239− (\ s a -> s{_odOpenToDealParties = a})
4255+odtoOpenToDealParties :: Lens' OfferDTO [DealPartyDTO]
4256+odtoOpenToDealParties
4257+ = lens _odtoOpenToDealParties
4258+ (\ s a -> s{_odtoOpenToDealParties = a})
42404259 . _Default
42414260 . _Coerce
42424261
42434262-- | The list of email contacts for this offer.
4244−odEmailContacts :: Lens' OfferDto [Text]
4245−odEmailContacts
4246− = lens _odEmailContacts
4247− (\ s a -> s{_odEmailContacts = a})
4263+odtoEmailContacts :: Lens' OfferDTO [Text]
4264+odtoEmailContacts
4265+ = lens _odtoEmailContacts
4266+ (\ s a -> s{_odtoEmailContacts = a})
42484267 . _Default
42494268 . _Coerce
42504269
42514270-- | The list of label names applicable to this offer.
4252−odLabelNames :: Lens' OfferDto [Text]
4253−odLabelNames
4254− = lens _odLabelNames (\ s a -> s{_odLabelNames = a})
4271+odtoLabelNames :: Lens' OfferDTO [Text]
4272+odtoLabelNames
4273+ = lens _odtoLabelNames
4274+ (\ s a -> s{_odtoLabelNames = a})
42554275 . _Default
42564276 . _Coerce
42574277
42584278-- | The unique ID of this offer.
4259−odOfferId :: Lens' OfferDto (Maybe Int64)
4260−odOfferId
4261− = lens _odOfferId (\ s a -> s{_odOfferId = a})
4279+odtoOfferId :: Lens' OfferDTO (Maybe Int64)
4280+odtoOfferId
4281+ = lens _odtoOfferId (\ s a -> s{_odtoOfferId = a})
42624282
42634283-- | The list of buyer or seller parties this offer is closed to.
4264−odClosedToDealParties :: Lens' OfferDto [DealPartyDto]
4265−odClosedToDealParties
4266− = lens _odClosedToDealParties
4267− (\ s a -> s{_odClosedToDealParties = a})
4284+odtoClosedToDealParties :: Lens' OfferDTO [DealPartyDTO]
4285+odtoClosedToDealParties
4286+ = lens _odtoClosedToDealParties
4287+ (\ s a -> s{_odtoClosedToDealParties = a})
42684288 . _Default
42694289 . _Coerce
42704290
42714291-- | Whether this offer is anonymous.
4272−odAnonymous :: Lens' OfferDto (Maybe Bool)
4273−odAnonymous
4274− = lens _odAnonymous (\ s a -> s{_odAnonymous = a})
4292+odtoAnonymous :: Lens' OfferDTO (Maybe Bool)
4293+odtoAnonymous
4294+ = lens _odtoAnonymous
4295+ (\ s a -> s{_odtoAnonymous = a})
42754296
42764297-- | Whether this offer is open.
4277−odIsOpen :: Lens' OfferDto (Maybe Bool)
4278−odIsOpen = lens _odIsOpen (\ s a -> s{_odIsOpen = a})
4298+odtoIsOpen :: Lens' OfferDTO (Maybe Bool)
4299+odtoIsOpen
4300+ = lens _odtoIsOpen (\ s a -> s{_odtoIsOpen = a})
42794301
4280−instance FromJSON OfferDto where
4302+instance FromJSON OfferDTO where
42814303 parseJSON
4282− = withObject "OfferDto"
4304+ = withObject "OfferDTO"
42834305 (\ o ->
4284− OfferDto <$>
4306+ OfferDTO <$>
42854307 (o .:? "creator") <*> (o .:? "status") <*>
42864308 (o .:? "offerState")
42874309 <*> (o .:? "pointOfContact")
@@ -4296,24 +4318,25 @@ instance FromJSON OfferDto where
42964318 <*> (o .:? "anonymous")
42974319 <*> (o .:? "isOpen"))
42984320
4299−instance ToJSON OfferDto where
4300− toJSON OfferDto{..}
4321+instance ToJSON OfferDTO where
4322+ toJSON OfferDTO{..}
43014323 = object
43024324 (catMaybes
4303− [("creator" .=) <$> _odCreator,
4304− ("status" .=) <$> _odStatus,
4305− ("offerState" .=) <$> _odOfferState,
4306− ("pointOfContact" .=) <$> _odPointOfContact,
4307− ("terms" .=) <$> _odTerms, Just ("kind" .= _odKind),
4308− ("billedBuyer" .=) <$> _odBilledBuyer,
4309− ("openToDealParties" .=) <$> _odOpenToDealParties,
4310− ("emailContacts" .=) <$> _odEmailContacts,
4311− ("labelNames" .=) <$> _odLabelNames,
4312− ("offerId" .=) <$> _odOfferId,
4325+ [("creator" .=) <$> _odtoCreator,
4326+ ("status" .=) <$> _odtoStatus,
4327+ ("offerState" .=) <$> _odtoOfferState,
4328+ ("pointOfContact" .=) <$> _odtoPointOfContact,
4329+ ("terms" .=) <$> _odtoTerms,
4330+ Just ("kind" .= _odtoKind),
4331+ ("billedBuyer" .=) <$> _odtoBilledBuyer,
4332+ ("openToDealParties" .=) <$> _odtoOpenToDealParties,
4333+ ("emailContacts" .=) <$> _odtoEmailContacts,
4334+ ("labelNames" .=) <$> _odtoLabelNames,
4335+ ("offerId" .=) <$> _odtoOfferId,
43134336 ("closedToDealParties" .=) <$>
4314− _odClosedToDealParties,
4315− ("anonymous" .=) <$> _odAnonymous,
4316− ("isOpen" .=) <$> _odIsOpen])
4337+ _odtoClosedToDealParties,
4338+ ("anonymous" .=) <$> _odtoAnonymous,
4339+ ("isOpen" .=) <$> _odtoIsOpen])
43174340
43184341--
43194342-- /See:/ 'targetingValueSize' smart constructor.
@@ -4743,48 +4766,49 @@ instance ToJSON AddOrderNotesResponse where
47434766 = object (catMaybes [("notes" .=) <$> _aNotes])
47444767
47454768--
4746−-- /See:/ 'moneyDto' smart constructor.
4747−data MoneyDto = MoneyDto
4748− { _mdCurrencyCode :: !(Maybe Text)
4749− , _mdMicros :: !(Maybe Int64)
4769+-- /See:/ 'moneyDTO' smart constructor.
4770+data MoneyDTO = MoneyDTO
4771+ { _mdtoCurrencyCode :: !(Maybe Text)
4772+ , _mdtoMicros :: !(Maybe Int64)
47504773 } deriving (Eq,Read,Show,Data,Typeable,Generic)
47514774
4752−-- | Creates a value of 'MoneyDto' with the minimum fields required to make a request.
4775+-- | Creates a value of 'MoneyDTO' with the minimum fields required to make a request.
47534776--
47544777-- Use one of the following lenses to modify other fields as desired:
47554778--
4756−-- * 'mdCurrencyCode'
4779+-- * 'mdtoCurrencyCode'
47574780--
4758−-- * 'mdMicros'
4759−moneyDto
4760− :: MoneyDto
4761−moneyDto =
4762− MoneyDto
4763− { _mdCurrencyCode = Nothing
4764− , _mdMicros = Nothing
4781+-- * 'mdtoMicros'
4782+moneyDTO
4783+ :: MoneyDTO
4784+moneyDTO =
4785+ MoneyDTO
4786+ { _mdtoCurrencyCode = Nothing
4787+ , _mdtoMicros = Nothing
47654788 }
47664789
4767−mdCurrencyCode :: Lens' MoneyDto (Maybe Text)
4768−mdCurrencyCode
4769− = lens _mdCurrencyCode
4770− (\ s a -> s{_mdCurrencyCode = a})
4790+mdtoCurrencyCode :: Lens' MoneyDTO (Maybe Text)
4791+mdtoCurrencyCode
4792+ = lens _mdtoCurrencyCode
4793+ (\ s a -> s{_mdtoCurrencyCode = a})
47714794
4772−mdMicros :: Lens' MoneyDto (Maybe Int64)
4773−mdMicros = lens _mdMicros (\ s a -> s{_mdMicros = a})
4795+mdtoMicros :: Lens' MoneyDTO (Maybe Int64)
4796+mdtoMicros
4797+ = lens _mdtoMicros (\ s a -> s{_mdtoMicros = a})
47744798
4775−instance FromJSON MoneyDto where
4799+instance FromJSON MoneyDTO where
47764800 parseJSON
4777− = withObject "MoneyDto"
4801+ = withObject "MoneyDTO"
47784802 (\ o ->
4779− MoneyDto <$>
4803+ MoneyDTO <$>
47804804 (o .:? "currencyCode") <*> (o .:? "micros"))
47814805
4782−instance ToJSON MoneyDto where
4783− toJSON MoneyDto{..}
4806+instance ToJSON MoneyDTO where
4807+ toJSON MoneyDTO{..}
47844808 = object
47854809 (catMaybes
4786− [("currencyCode" .=) <$> _mdCurrencyCode,
4787− ("micros" .=) <$> _mdMicros])
4810+ [("currencyCode" .=) <$> _mdtoCurrencyCode,
4811+ ("micros" .=) <$> _mdtoMicros])
47884812
47894813--
47904814-- /See:/ 'listClientAccessCapabilitiesResponse' smart constructor.
@@ -4868,7 +4892,7 @@ instance ToJSON GetNegotiationByIdRequest where
48684892-- /See:/ 'listOffersResponse' smart constructor.
48694893data ListOffersResponse = ListOffersResponse
48704894 { _lorKind :: !Text
4871− , _lorOffers :: !(Maybe [OfferDto])
4895+ , _lorOffers :: !(Maybe [OfferDTO])
48724896 } deriving (Eq,Read,Show,Data,Typeable,Generic)
48734897
48744898-- | Creates a value of 'ListOffersResponse' with the minimum fields required to make a request.
@@ -4889,7 +4913,7 @@ listOffersResponse =
48894913lorKind :: Lens' ListOffersResponse Text
48904914lorKind = lens _lorKind (\ s a -> s{_lorKind = a})
48914915
4892−lorOffers :: Lens' ListOffersResponse [OfferDto]
4916+lorOffers :: Lens' ListOffersResponse [OfferDTO]
48934917lorOffers
48944918 = lens _lorOffers (\ s a -> s{_lorOffers = a}) .
48954919 _Default
@@ -4911,66 +4935,67 @@ instance ToJSON ListOffersResponse where
49114935 ("offers" .=) <$> _lorOffers])
49124936
49134937--
4914−-- /See:/ 'advertiserDto' smart constructor.
4915−data AdvertiserDto = AdvertiserDto
4916− { _adStatus :: !(Maybe Text)
4917− , _adBrands :: !(Maybe [BrandDto])
4918− , _adName :: !(Maybe Text)
4919− , _adId :: !(Maybe Int64)
4938+-- /See:/ 'advertiserDTO' smart constructor.
4939+data AdvertiserDTO = AdvertiserDTO
4940+ { _adtoStatus :: !(Maybe Text)
4941+ , _adtoBrands :: !(Maybe [BrandDTO])
4942+ , _adtoName :: !(Maybe Text)
4943+ , _adtoId :: !(Maybe Int64)
49204944 } deriving (Eq,Read,Show,Data,Typeable,Generic)
49214945
4922−-- | Creates a value of 'AdvertiserDto' with the minimum fields required to make a request.
4946+-- | Creates a value of 'AdvertiserDTO' with the minimum fields required to make a request.
49234947--
49244948-- Use one of the following lenses to modify other fields as desired:
49254949--
4926−-- * 'adStatus'
4950+-- * 'adtoStatus'
49274951--
4928−-- * 'adBrands'
4952+-- * 'adtoBrands'
49294953--
4930−-- * 'adName'
4954+-- * 'adtoName'
49314955--
4932−-- * 'adId'
4933−advertiserDto
4934− :: AdvertiserDto
4935−advertiserDto =
4936− AdvertiserDto
4937− { _adStatus = Nothing
4938− , _adBrands = Nothing
4939− , _adName = Nothing
4940− , _adId = Nothing
4956+-- * 'adtoId'
4957+advertiserDTO
4958+ :: AdvertiserDTO
4959+advertiserDTO =
4960+ AdvertiserDTO
4961+ { _adtoStatus = Nothing
4962+ , _adtoBrands = Nothing
4963+ , _adtoName = Nothing
4964+ , _adtoId = Nothing
49414965 }
49424966
4943−adStatus :: Lens' AdvertiserDto (Maybe Text)
4944−adStatus = lens _adStatus (\ s a -> s{_adStatus = a})
4967+adtoStatus :: Lens' AdvertiserDTO (Maybe Text)
4968+adtoStatus
4969+ = lens _adtoStatus (\ s a -> s{_adtoStatus = a})
49454970
4946−adBrands :: Lens' AdvertiserDto [BrandDto]
4947−adBrands
4948− = lens _adBrands (\ s a -> s{_adBrands = a}) .
4971+adtoBrands :: Lens' AdvertiserDTO [BrandDTO]
4972+adtoBrands
4973+ = lens _adtoBrands (\ s a -> s{_adtoBrands = a}) .
49494974 _Default
49504975 . _Coerce
49514976
4952−adName :: Lens' AdvertiserDto (Maybe Text)
4953−adName = lens _adName (\ s a -> s{_adName = a})
4977+adtoName :: Lens' AdvertiserDTO (Maybe Text)
4978+adtoName = lens _adtoName (\ s a -> s{_adtoName = a})
49544979
4955−adId :: Lens' AdvertiserDto (Maybe Int64)
4956−adId = lens _adId (\ s a -> s{_adId = a})
4980+adtoId :: Lens' AdvertiserDTO (Maybe Int64)
4981+adtoId = lens _adtoId (\ s a -> s{_adtoId = a})
49574982
4958−instance FromJSON AdvertiserDto where
4983+instance FromJSON AdvertiserDTO where
49594984 parseJSON
4960− = withObject "AdvertiserDto"
4985+ = withObject "AdvertiserDTO"
49614986 (\ o ->
4962− AdvertiserDto <$>
4987+ AdvertiserDTO <$>
49634988 (o .:? "status") <*> (o .:? "brands" .!= mempty) <*>
49644989 (o .:? "name")
49654990 <*> (o .:? "id"))
49664991
4967−instance ToJSON AdvertiserDto where
4968− toJSON AdvertiserDto{..}
4992+instance ToJSON AdvertiserDTO where
4993+ toJSON AdvertiserDTO{..}
49694994 = object
49704995 (catMaybes
4971− [("status" .=) <$> _adStatus,
4972− ("brands" .=) <$> _adBrands, ("name" .=) <$> _adName,
4973− ("id" .=) <$> _adId])
4996+ [("status" .=) <$> _adtoStatus,
4997+ ("brands" .=) <$> _adtoBrands,
4998+ ("name" .=) <$> _adtoName, ("id" .=) <$> _adtoId])
49744999
49755000--
49765001-- /See:/ 'targetingValue' smart constructor.
@@ -5306,84 +5331,86 @@ instance ToJSON BillingInfo where
53065331 ("billingId" .=) <$> _biBillingId])
53075332
53085333--
5309−-- /See:/ 'webPropertyDto' smart constructor.
5310−data WebPropertyDto = WebPropertyDto
5311− { _wpdEnabledForPreferredDeals :: !(Maybe Bool)
5312− , _wpdSyndicationProduct :: !(Maybe Text)
5313− , _wpdName :: !(Maybe Text)
5314− , _wpdPropertyCode :: !(Maybe Text)
5315− , _wpdId :: !(Maybe Int32)
5316− , _wpdSiteURLs :: !(Maybe [Text])
5317− , _wpdAllowInterestTargetedAds :: !(Maybe Bool)
5334+-- /See:/ 'webPropertyDTO' smart constructor.
5335+data WebPropertyDTO = WebPropertyDTO
5336+ { _wpdtoEnabledForPreferredDeals :: !(Maybe Bool)
5337+ , _wpdtoSyndicationProduct :: !(Maybe Text)
5338+ , _wpdtoName :: !(Maybe Text)
5339+ , _wpdtoPropertyCode :: !(Maybe Text)
5340+ , _wpdtoId :: !(Maybe Int32)
5341+ , _wpdtoSiteURLs :: !(Maybe [Text])
5342+ , _wpdtoAllowInterestTargetedAds :: !(Maybe Bool)
53185343 } deriving (Eq,Read,Show,Data,Typeable,Generic)
53195344
5320−-- | Creates a value of 'WebPropertyDto' with the minimum fields required to make a request.
5345+-- | Creates a value of 'WebPropertyDTO' with the minimum fields required to make a request.
53215346--
53225347-- Use one of the following lenses to modify other fields as desired:
53235348--
5324−-- * 'wpdEnabledForPreferredDeals'
5349+-- * 'wpdtoEnabledForPreferredDeals'
53255350--
5326−-- * 'wpdSyndicationProduct'
5351+-- * 'wpdtoSyndicationProduct'
53275352--
5328−-- * 'wpdName'
5353+-- * 'wpdtoName'
53295354--
5330−-- * 'wpdPropertyCode'
5355+-- * 'wpdtoPropertyCode'
53315356--
5332−-- * 'wpdId'
5357+-- * 'wpdtoId'
53335358--
5334−-- * 'wpdSiteURLs'
5359+-- * 'wpdtoSiteURLs'
53355360--
5336−-- * 'wpdAllowInterestTargetedAds'
5337−webPropertyDto
5338− :: WebPropertyDto
5339−webPropertyDto =
5340− WebPropertyDto
5341− { _wpdEnabledForPreferredDeals = Nothing
5342− , _wpdSyndicationProduct = Nothing
5343− , _wpdName = Nothing
5344− , _wpdPropertyCode = Nothing
5345− , _wpdId = Nothing
5346− , _wpdSiteURLs = Nothing
5347− , _wpdAllowInterestTargetedAds = Nothing
5361+-- * 'wpdtoAllowInterestTargetedAds'
5362+webPropertyDTO
5363+ :: WebPropertyDTO
5364+webPropertyDTO =
5365+ WebPropertyDTO
5366+ { _wpdtoEnabledForPreferredDeals = Nothing
5367+ , _wpdtoSyndicationProduct = Nothing
5368+ , _wpdtoName = Nothing
5369+ , _wpdtoPropertyCode = Nothing
5370+ , _wpdtoId = Nothing
5371+ , _wpdtoSiteURLs = Nothing
5372+ , _wpdtoAllowInterestTargetedAds = Nothing
53485373 }
53495374
5350−wpdEnabledForPreferredDeals :: Lens' WebPropertyDto (Maybe Bool)
5351−wpdEnabledForPreferredDeals
5352− = lens _wpdEnabledForPreferredDeals
5353− (\ s a -> s{_wpdEnabledForPreferredDeals = a})
5375+wpdtoEnabledForPreferredDeals :: Lens' WebPropertyDTO (Maybe Bool)
5376+wpdtoEnabledForPreferredDeals
5377+ = lens _wpdtoEnabledForPreferredDeals
5378+ (\ s a -> s{_wpdtoEnabledForPreferredDeals = a})
53545379
5355−wpdSyndicationProduct :: Lens' WebPropertyDto (Maybe Text)
5356−wpdSyndicationProduct
5357− = lens _wpdSyndicationProduct
5358− (\ s a -> s{_wpdSyndicationProduct = a})
5380+wpdtoSyndicationProduct :: Lens' WebPropertyDTO (Maybe Text)
5381+wpdtoSyndicationProduct
5382+ = lens _wpdtoSyndicationProduct
5383+ (\ s a -> s{_wpdtoSyndicationProduct = a})
53595384
5360−wpdName :: Lens' WebPropertyDto (Maybe Text)
5361−wpdName = lens _wpdName (\ s a -> s{_wpdName = a})
5385+wpdtoName :: Lens' WebPropertyDTO (Maybe Text)
5386+wpdtoName
5387+ = lens _wpdtoName (\ s a -> s{_wpdtoName = a})
53625388
5363−wpdPropertyCode :: Lens' WebPropertyDto (Maybe Text)
5364−wpdPropertyCode
5365− = lens _wpdPropertyCode
5366− (\ s a -> s{_wpdPropertyCode = a})
5389+wpdtoPropertyCode :: Lens' WebPropertyDTO (Maybe Text)
5390+wpdtoPropertyCode
5391+ = lens _wpdtoPropertyCode
5392+ (\ s a -> s{_wpdtoPropertyCode = a})
53675393
5368−wpdId :: Lens' WebPropertyDto (Maybe Int32)
5369−wpdId = lens _wpdId (\ s a -> s{_wpdId = a})
5394+wpdtoId :: Lens' WebPropertyDTO (Maybe Int32)
5395+wpdtoId = lens _wpdtoId (\ s a -> s{_wpdtoId = a})
53705396
5371−wpdSiteURLs :: Lens' WebPropertyDto [Text]
5372−wpdSiteURLs
5373− = lens _wpdSiteURLs (\ s a -> s{_wpdSiteURLs = a}) .
5374− _Default
5397+wpdtoSiteURLs :: Lens' WebPropertyDTO [Text]
5398+wpdtoSiteURLs
5399+ = lens _wpdtoSiteURLs
5400+ (\ s a -> s{_wpdtoSiteURLs = a})
5401+ . _Default
53755402 . _Coerce
53765403
5377−wpdAllowInterestTargetedAds :: Lens' WebPropertyDto (Maybe Bool)
5378−wpdAllowInterestTargetedAds
5379− = lens _wpdAllowInterestTargetedAds
5380− (\ s a -> s{_wpdAllowInterestTargetedAds = a})
5404+wpdtoAllowInterestTargetedAds :: Lens' WebPropertyDTO (Maybe Bool)
5405+wpdtoAllowInterestTargetedAds
5406+ = lens _wpdtoAllowInterestTargetedAds
5407+ (\ s a -> s{_wpdtoAllowInterestTargetedAds = a})
53815408
5382−instance FromJSON WebPropertyDto where
5409+instance FromJSON WebPropertyDTO where
53835410 parseJSON
5384− = withObject "WebPropertyDto"
5411+ = withObject "WebPropertyDTO"
53855412 (\ o ->
5386− WebPropertyDto <$>
5413+ WebPropertyDTO <$>
53875414 (o .:? "enabledForPreferredDeals") <*>
53885415 (o .:? "syndicationProduct")
53895416 <*> (o .:? "name")
@@ -5392,19 +5419,20 @@ instance FromJSON WebPropertyDto where
53925419 <*> (o .:? "siteUrls" .!= mempty)
53935420 <*> (o .:? "allowInterestTargetedAds"))
53945421
5395−instance ToJSON WebPropertyDto where
5396− toJSON WebPropertyDto{..}
5422+instance ToJSON WebPropertyDTO where
5423+ toJSON WebPropertyDTO{..}
53975424 = object
53985425 (catMaybes
53995426 [("enabledForPreferredDeals" .=) <$>
5400− _wpdEnabledForPreferredDeals,
5401− ("syndicationProduct" .=) <$> _wpdSyndicationProduct,
5402− ("name" .=) <$> _wpdName,
5403− ("propertyCode" .=) <$> _wpdPropertyCode,
5404− ("id" .=) <$> _wpdId,
5405− ("siteUrls" .=) <$> _wpdSiteURLs,
5427+ _wpdtoEnabledForPreferredDeals,
5428+ ("syndicationProduct" .=) <$>
5429+ _wpdtoSyndicationProduct,
5430+ ("name" .=) <$> _wpdtoName,
5431+ ("propertyCode" .=) <$> _wpdtoPropertyCode,
5432+ ("id" .=) <$> _wpdtoId,
5433+ ("siteUrls" .=) <$> _wpdtoSiteURLs,
54065434 ("allowInterestTargetedAds" .=) <$>
5407− _wpdAllowInterestTargetedAds])
5435+ _wpdtoAllowInterestTargetedAds])
54085436
54095437--
54105438-- /See:/ 'targetingValueDayPartTargeting' smart constructor.
@@ -6680,106 +6708,109 @@ instance ToJSON PretargetingConfigPlacements where
66806708 ("type" .=) <$> _pcpType])
66816709
66826710--
6683−-- /See:/ 'negotiationRoundDto' smart constructor.
6684−data NegotiationRoundDto = NegotiationRoundDto
6685− { _nrdTerms :: !(Maybe TermsDto)
6686− , _nrdKind :: !Text
6687− , _nrdOriginatorRole :: !(Maybe Text)
6688− , _nrdAction :: !(Maybe Text)
6689− , _nrdDBmPartnerId :: !(Maybe Int64)
6690− , _nrdNotes :: !(Maybe Text)
6691− , _nrdNegotiationId :: !(Maybe Int64)
6692− , _nrdEditHistory :: !(Maybe EditHistoryDto)
6693− , _nrdRoundNumber :: !(Maybe Int64)
6711+-- /See:/ 'negotiationRoundDTO' smart constructor.
6712+data NegotiationRoundDTO = NegotiationRoundDTO
6713+ { _nrdtoTerms :: !(Maybe TermsDTO)
6714+ , _nrdtoKind :: !Text
6715+ , _nrdtoOriginatorRole :: !(Maybe Text)
6716+ , _nrdtoAction :: !(Maybe Text)
6717+ , _nrdtoDBmPartnerId :: !(Maybe Int64)
6718+ , _nrdtoNotes :: !(Maybe Text)
6719+ , _nrdtoNegotiationId :: !(Maybe Int64)
6720+ , _nrdtoEditHistory :: !(Maybe EditHistoryDTO)
6721+ , _nrdtoRoundNumber :: !(Maybe Int64)
66946722 } deriving (Eq,Read,Show,Data,Typeable,Generic)
66956723
6696−-- | Creates a value of 'NegotiationRoundDto' with the minimum fields required to make a request.
6724+-- | Creates a value of 'NegotiationRoundDTO' with the minimum fields required to make a request.
66976725--
66986726-- Use one of the following lenses to modify other fields as desired:
66996727--
6700−-- * 'nrdTerms'
6728+-- * 'nrdtoTerms'
67016729--
6702−-- * 'nrdKind'
6730+-- * 'nrdtoKind'
67036731--
6704−-- * 'nrdOriginatorRole'
6732+-- * 'nrdtoOriginatorRole'
67056733--
6706−-- * 'nrdAction'
6734+-- * 'nrdtoAction'
67076735--
6708−-- * 'nrdDBmPartnerId'
6736+-- * 'nrdtoDBmPartnerId'
67096737--
6710−-- * 'nrdNotes'
6738+-- * 'nrdtoNotes'
67116739--
6712−-- * 'nrdNegotiationId'
6740+-- * 'nrdtoNegotiationId'
67136741--
6714−-- * 'nrdEditHistory'
6742+-- * 'nrdtoEditHistory'
67156743--
6716−-- * 'nrdRoundNumber'
6717−negotiationRoundDto
6718− :: NegotiationRoundDto
6719−negotiationRoundDto =
6720− NegotiationRoundDto
6721− { _nrdTerms = Nothing
6722− , _nrdKind = "adexchangebuyer#negotiationRound"
6723− , _nrdOriginatorRole = Nothing
6724− , _nrdAction = Nothing
6725− , _nrdDBmPartnerId = Nothing
6726− , _nrdNotes = Nothing
6727− , _nrdNegotiationId = Nothing
6728− , _nrdEditHistory = Nothing
6729− , _nrdRoundNumber = Nothing
6744+-- * 'nrdtoRoundNumber'
6745+negotiationRoundDTO
6746+ :: NegotiationRoundDTO
6747+negotiationRoundDTO =
6748+ NegotiationRoundDTO
6749+ { _nrdtoTerms = Nothing
6750+ , _nrdtoKind = "adexchangebuyer#negotiationRound"
6751+ , _nrdtoOriginatorRole = Nothing
6752+ , _nrdtoAction = Nothing
6753+ , _nrdtoDBmPartnerId = Nothing
6754+ , _nrdtoNotes = Nothing
6755+ , _nrdtoNegotiationId = Nothing
6756+ , _nrdtoEditHistory = Nothing
6757+ , _nrdtoRoundNumber = Nothing
67306758 }
67316759
67326760-- | The detailed terms proposed in this negotiation round.
6733−nrdTerms :: Lens' NegotiationRoundDto (Maybe TermsDto)
6734−nrdTerms = lens _nrdTerms (\ s a -> s{_nrdTerms = a})
6761+nrdtoTerms :: Lens' NegotiationRoundDTO (Maybe TermsDTO)
6762+nrdtoTerms
6763+ = lens _nrdtoTerms (\ s a -> s{_nrdtoTerms = a})
67356764
6736−nrdKind :: Lens' NegotiationRoundDto Text
6737−nrdKind = lens _nrdKind (\ s a -> s{_nrdKind = a})
6765+nrdtoKind :: Lens' NegotiationRoundDTO Text
6766+nrdtoKind
6767+ = lens _nrdtoKind (\ s a -> s{_nrdtoKind = a})
67386768
67396769-- | The role, either buyer or seller, initiating this negotiation round.
6740−nrdOriginatorRole :: Lens' NegotiationRoundDto (Maybe Text)
6741−nrdOriginatorRole
6742− = lens _nrdOriginatorRole
6743− (\ s a -> s{_nrdOriginatorRole = a})
6770+nrdtoOriginatorRole :: Lens' NegotiationRoundDTO (Maybe Text)
6771+nrdtoOriginatorRole
6772+ = lens _nrdtoOriginatorRole
6773+ (\ s a -> s{_nrdtoOriginatorRole = a})
67446774
67456775-- | The action performed by this negotiation round.
6746−nrdAction :: Lens' NegotiationRoundDto (Maybe Text)
6747−nrdAction
6748− = lens _nrdAction (\ s a -> s{_nrdAction = a})
6776+nrdtoAction :: Lens' NegotiationRoundDTO (Maybe Text)
6777+nrdtoAction
6778+ = lens _nrdtoAction (\ s a -> s{_nrdtoAction = a})
67496779
67506780-- | Stores DBM partner ID for use by DBM
6751−nrdDBmPartnerId :: Lens' NegotiationRoundDto (Maybe Int64)
6752−nrdDBmPartnerId
6753− = lens _nrdDBmPartnerId
6754− (\ s a -> s{_nrdDBmPartnerId = a})
6781+nrdtoDBmPartnerId :: Lens' NegotiationRoundDTO (Maybe Int64)
6782+nrdtoDBmPartnerId
6783+ = lens _nrdtoDBmPartnerId
6784+ (\ s a -> s{_nrdtoDBmPartnerId = a})
67556785
67566786-- | Notes regarding this negotiation round.
6757−nrdNotes :: Lens' NegotiationRoundDto (Maybe Text)
6758−nrdNotes = lens _nrdNotes (\ s a -> s{_nrdNotes = a})
6787+nrdtoNotes :: Lens' NegotiationRoundDTO (Maybe Text)
6788+nrdtoNotes
6789+ = lens _nrdtoNotes (\ s a -> s{_nrdtoNotes = a})
67596790
67606791-- | The ID of the negotiation to which this negotiation round applies.
6761−nrdNegotiationId :: Lens' NegotiationRoundDto (Maybe Int64)
6762−nrdNegotiationId
6763− = lens _nrdNegotiationId
6764− (\ s a -> s{_nrdNegotiationId = a})
6792+nrdtoNegotiationId :: Lens' NegotiationRoundDTO (Maybe Int64)
6793+nrdtoNegotiationId
6794+ = lens _nrdtoNegotiationId
6795+ (\ s a -> s{_nrdtoNegotiationId = a})
67656796
67666797-- | The edit history of this negotiation round.
6767−nrdEditHistory :: Lens' NegotiationRoundDto (Maybe EditHistoryDto)
6768−nrdEditHistory
6769− = lens _nrdEditHistory
6770− (\ s a -> s{_nrdEditHistory = a})
6798+nrdtoEditHistory :: Lens' NegotiationRoundDTO (Maybe EditHistoryDTO)
6799+nrdtoEditHistory
6800+ = lens _nrdtoEditHistory
6801+ (\ s a -> s{_nrdtoEditHistory = a})
67716802
67726803-- | The number of this negotiation round, in sequence.
6773−nrdRoundNumber :: Lens' NegotiationRoundDto (Maybe Int64)
6774−nrdRoundNumber
6775− = lens _nrdRoundNumber
6776− (\ s a -> s{_nrdRoundNumber = a})
6804+nrdtoRoundNumber :: Lens' NegotiationRoundDTO (Maybe Int64)
6805+nrdtoRoundNumber
6806+ = lens _nrdtoRoundNumber
6807+ (\ s a -> s{_nrdtoRoundNumber = a})
67776808
6778−instance FromJSON NegotiationRoundDto where
6809+instance FromJSON NegotiationRoundDTO where
67796810 parseJSON
6780− = withObject "NegotiationRoundDto"
6811+ = withObject "NegotiationRoundDTO"
67816812 (\ o ->
6782− NegotiationRoundDto <$>
6813+ NegotiationRoundDTO <$>
67836814 (o .:? "terms") <*>
67846815 (o .:? "kind" .!= "adexchangebuyer#negotiationRound")
67856816 <*> (o .:? "originatorRole")
@@ -6790,101 +6821,103 @@ instance FromJSON NegotiationRoundDto where
67906821 <*> (o .:? "editHistory")
67916822 <*> (o .:? "roundNumber"))
67926823
6793−instance ToJSON NegotiationRoundDto where
6794− toJSON NegotiationRoundDto{..}
6824+instance ToJSON NegotiationRoundDTO where
6825+ toJSON NegotiationRoundDTO{..}
67956826 = object
67966827 (catMaybes
6797− [("terms" .=) <$> _nrdTerms,
6798− Just ("kind" .= _nrdKind),
6799− ("originatorRole" .=) <$> _nrdOriginatorRole,
6800− ("action" .=) <$> _nrdAction,
6801− ("dbmPartnerId" .=) <$> _nrdDBmPartnerId,
6802− ("notes" .=) <$> _nrdNotes,
6803− ("negotiationId" .=) <$> _nrdNegotiationId,
6804− ("editHistory" .=) <$> _nrdEditHistory,
6805− ("roundNumber" .=) <$> _nrdRoundNumber])
6806−
6807−--
6808−-- /See:/ 'statsDto' smart constructor.
6809−data StatsDto = StatsDto
6810− { _sdBids :: !(Maybe Int64)
6811− , _sdSpend :: !(Maybe MoneyDto)
6812− , _sdImpressions :: !(Maybe Int64)
6813− , _sdGoodBids :: !(Maybe Int64)
6814− , _sdRevenue :: !(Maybe MoneyDto)
6815− , _sdRequests :: !(Maybe Int64)
6828+ [("terms" .=) <$> _nrdtoTerms,
6829+ Just ("kind" .= _nrdtoKind),
6830+ ("originatorRole" .=) <$> _nrdtoOriginatorRole,
6831+ ("action" .=) <$> _nrdtoAction,
6832+ ("dbmPartnerId" .=) <$> _nrdtoDBmPartnerId,
6833+ ("notes" .=) <$> _nrdtoNotes,
6834+ ("negotiationId" .=) <$> _nrdtoNegotiationId,
6835+ ("editHistory" .=) <$> _nrdtoEditHistory,
6836+ ("roundNumber" .=) <$> _nrdtoRoundNumber])
6837+
6838+--
6839+-- /See:/ 'statsDTO' smart constructor.
6840+data StatsDTO = StatsDTO
6841+ { _sdtoBids :: !(Maybe Int64)
6842+ , _sdtoSpend :: !(Maybe MoneyDTO)
6843+ , _sdtoImpressions :: !(Maybe Int64)
6844+ , _sdtoGoodBids :: !(Maybe Int64)
6845+ , _sdtoRevenue :: !(Maybe MoneyDTO)
6846+ , _sdtoRequests :: !(Maybe Int64)
68166847 } deriving (Eq,Read,Show,Data,Typeable,Generic)
68176848
6818−-- | Creates a value of 'StatsDto' with the minimum fields required to make a request.
6849+-- | Creates a value of 'StatsDTO' with the minimum fields required to make a request.
68196850--
68206851-- Use one of the following lenses to modify other fields as desired:
68216852--
6822−-- * 'sdBids'
6853+-- * 'sdtoBids'
68236854--
6824−-- * 'sdSpend'
6855+-- * 'sdtoSpend'
68256856--
6826−-- * 'sdImpressions'
6857+-- * 'sdtoImpressions'
68276858--
6828−-- * 'sdGoodBids'
6859+-- * 'sdtoGoodBids'
68296860--
6830−-- * 'sdRevenue'
6861+-- * 'sdtoRevenue'
68316862--
6832−-- * 'sdRequests'
6833−statsDto
6834− :: StatsDto
6835−statsDto =
6836− StatsDto
6837− { _sdBids = Nothing
6838− , _sdSpend = Nothing
6839− , _sdImpressions = Nothing
6840− , _sdGoodBids = Nothing
6841− , _sdRevenue = Nothing
6842− , _sdRequests = Nothing
6863+-- * 'sdtoRequests'
6864+statsDTO
6865+ :: StatsDTO
6866+statsDTO =
6867+ StatsDTO
6868+ { _sdtoBids = Nothing
6869+ , _sdtoSpend = Nothing
6870+ , _sdtoImpressions = Nothing
6871+ , _sdtoGoodBids = Nothing
6872+ , _sdtoRevenue = Nothing
6873+ , _sdtoRequests = Nothing
68436874 }
68446875
6845−sdBids :: Lens' StatsDto (Maybe Int64)
6846−sdBids = lens _sdBids (\ s a -> s{_sdBids = a})
6876+sdtoBids :: Lens' StatsDTO (Maybe Int64)
6877+sdtoBids = lens _sdtoBids (\ s a -> s{_sdtoBids = a})
68476878
6848−sdSpend :: Lens' StatsDto (Maybe MoneyDto)
6849−sdSpend = lens _sdSpend (\ s a -> s{_sdSpend = a})
6879+sdtoSpend :: Lens' StatsDTO (Maybe MoneyDTO)
6880+sdtoSpend
6881+ = lens _sdtoSpend (\ s a -> s{_sdtoSpend = a})
68506882
6851−sdImpressions :: Lens' StatsDto (Maybe Int64)
6852−sdImpressions
6853− = lens _sdImpressions
6854− (\ s a -> s{_sdImpressions = a})
6883+sdtoImpressions :: Lens' StatsDTO (Maybe Int64)
6884+sdtoImpressions
6885+ = lens _sdtoImpressions
6886+ (\ s a -> s{_sdtoImpressions = a})
68556887
6856−sdGoodBids :: Lens' StatsDto (Maybe Int64)
6857−sdGoodBids
6858− = lens _sdGoodBids (\ s a -> s{_sdGoodBids = a})
6888+sdtoGoodBids :: Lens' StatsDTO (Maybe Int64)
6889+sdtoGoodBids
6890+ = lens _sdtoGoodBids (\ s a -> s{_sdtoGoodBids = a})
68596891
6860−sdRevenue :: Lens' StatsDto (Maybe MoneyDto)
6861−sdRevenue
6862− = lens _sdRevenue (\ s a -> s{_sdRevenue = a})
6892+sdtoRevenue :: Lens' StatsDTO (Maybe MoneyDTO)
6893+sdtoRevenue
6894+ = lens _sdtoRevenue (\ s a -> s{_sdtoRevenue = a})
68636895
6864−sdRequests :: Lens' StatsDto (Maybe Int64)
6865−sdRequests
6866− = lens _sdRequests (\ s a -> s{_sdRequests = a})
6896+sdtoRequests :: Lens' StatsDTO (Maybe Int64)
6897+sdtoRequests
6898+ = lens _sdtoRequests (\ s a -> s{_sdtoRequests = a})
68676899
6868−instance FromJSON StatsDto where
6900+instance FromJSON StatsDTO where
68696901 parseJSON
6870− = withObject "StatsDto"
6902+ = withObject "StatsDTO"
68716903 (\ o ->
6872− StatsDto <$>
6904+ StatsDTO <$>
68736905 (o .:? "bids") <*> (o .:? "spend") <*>
68746906 (o .:? "impressions")
68756907 <*> (o .:? "goodBids")
68766908 <*> (o .:? "revenue")
68776909 <*> (o .:? "requests"))
68786910
6879−instance ToJSON StatsDto where
6880− toJSON StatsDto{..}
6911+instance ToJSON StatsDTO where
6912+ toJSON StatsDTO{..}
68816913 = object
68826914 (catMaybes
6883− [("bids" .=) <$> _sdBids, ("spend" .=) <$> _sdSpend,
6884− ("impressions" .=) <$> _sdImpressions,
6885− ("goodBids" .=) <$> _sdGoodBids,
6886− ("revenue" .=) <$> _sdRevenue,
6887− ("requests" .=) <$> _sdRequests])
6915+ [("bids" .=) <$> _sdtoBids,
6916+ ("spend" .=) <$> _sdtoSpend,
6917+ ("impressions" .=) <$> _sdtoImpressions,
6918+ ("goodBids" .=) <$> _sdtoGoodBids,
6919+ ("revenue" .=) <$> _sdtoRevenue,
6920+ ("requests" .=) <$> _sdtoRequests])
68886921
68896922--
68906923-- /See:/ 'getOffersResponse' smart constructor.
@@ -7714,72 +7747,73 @@ instance ToJSON DealTerms where
77147747 ("description" .=) <$> _dtDescription])
77157748
77167749--
7717−-- /See:/ 'editHistoryDto' smart constructor.
7718−data EditHistoryDto = EditHistoryDto
7719− { _ehdLastUpdatedByLoginName :: !(Maybe Text)
7720− , _ehdCreatedByLoginName :: !(Maybe Text)
7721− , _ehdLastUpdateTimeStamp :: !(Maybe Int64)
7722− , _ehdCreatedTimeStamp :: !(Maybe Int64)
7750+-- /See:/ 'editHistoryDTO' smart constructor.
7751+data EditHistoryDTO = EditHistoryDTO
7752+ { _ehdtoLastUpdatedByLoginName :: !(Maybe Text)
7753+ , _ehdtoCreatedByLoginName :: !(Maybe Text)
7754+ , _ehdtoLastUpdateTimeStamp :: !(Maybe Int64)
7755+ , _ehdtoCreatedTimeStamp :: !(Maybe Int64)
77237756 } deriving (Eq,Read,Show,Data,Typeable,Generic)
77247757
7725−-- | Creates a value of 'EditHistoryDto' with the minimum fields required to make a request.
7758+-- | Creates a value of 'EditHistoryDTO' with the minimum fields required to make a request.
77267759--
77277760-- Use one of the following lenses to modify other fields as desired:
77287761--
7729−-- * 'ehdLastUpdatedByLoginName'
7762+-- * 'ehdtoLastUpdatedByLoginName'
77307763--
7731−-- * 'ehdCreatedByLoginName'
7764+-- * 'ehdtoCreatedByLoginName'
77327765--
7733−-- * 'ehdLastUpdateTimeStamp'
7766+-- * 'ehdtoLastUpdateTimeStamp'
77347767--
7735−-- * 'ehdCreatedTimeStamp'
7736−editHistoryDto
7737− :: EditHistoryDto
7738−editHistoryDto =
7739− EditHistoryDto
7740− { _ehdLastUpdatedByLoginName = Nothing
7741− , _ehdCreatedByLoginName = Nothing
7742− , _ehdLastUpdateTimeStamp = Nothing
7743− , _ehdCreatedTimeStamp = Nothing
7768+-- * 'ehdtoCreatedTimeStamp'
7769+editHistoryDTO
7770+ :: EditHistoryDTO
7771+editHistoryDTO =
7772+ EditHistoryDTO
7773+ { _ehdtoLastUpdatedByLoginName = Nothing
7774+ , _ehdtoCreatedByLoginName = Nothing
7775+ , _ehdtoLastUpdateTimeStamp = Nothing
7776+ , _ehdtoCreatedTimeStamp = Nothing
77447777 }
77457778
7746−ehdLastUpdatedByLoginName :: Lens' EditHistoryDto (Maybe Text)
7747−ehdLastUpdatedByLoginName
7748− = lens _ehdLastUpdatedByLoginName
7749− (\ s a -> s{_ehdLastUpdatedByLoginName = a})
7779+ehdtoLastUpdatedByLoginName :: Lens' EditHistoryDTO (Maybe Text)
7780+ehdtoLastUpdatedByLoginName
7781+ = lens _ehdtoLastUpdatedByLoginName
7782+ (\ s a -> s{_ehdtoLastUpdatedByLoginName = a})
77507783
7751−ehdCreatedByLoginName :: Lens' EditHistoryDto (Maybe Text)
7752−ehdCreatedByLoginName
7753− = lens _ehdCreatedByLoginName
7754− (\ s a -> s{_ehdCreatedByLoginName = a})
7784+ehdtoCreatedByLoginName :: Lens' EditHistoryDTO (Maybe Text)
7785+ehdtoCreatedByLoginName
7786+ = lens _ehdtoCreatedByLoginName
7787+ (\ s a -> s{_ehdtoCreatedByLoginName = a})
77557788
7756−ehdLastUpdateTimeStamp :: Lens' EditHistoryDto (Maybe Int64)
7757−ehdLastUpdateTimeStamp
7758− = lens _ehdLastUpdateTimeStamp
7759− (\ s a -> s{_ehdLastUpdateTimeStamp = a})
7789+ehdtoLastUpdateTimeStamp :: Lens' EditHistoryDTO (Maybe Int64)
7790+ehdtoLastUpdateTimeStamp
7791+ = lens _ehdtoLastUpdateTimeStamp
7792+ (\ s a -> s{_ehdtoLastUpdateTimeStamp = a})
77607793
7761−ehdCreatedTimeStamp :: Lens' EditHistoryDto (Maybe Int64)
7762−ehdCreatedTimeStamp
7763− = lens _ehdCreatedTimeStamp
7764− (\ s a -> s{_ehdCreatedTimeStamp = a})
7794+ehdtoCreatedTimeStamp :: Lens' EditHistoryDTO (Maybe Int64)
7795+ehdtoCreatedTimeStamp
7796+ = lens _ehdtoCreatedTimeStamp
7797+ (\ s a -> s{_ehdtoCreatedTimeStamp = a})
77657798
7766−instance FromJSON EditHistoryDto where
7799+instance FromJSON EditHistoryDTO where
77677800 parseJSON
7768− = withObject "EditHistoryDto"
7801+ = withObject "EditHistoryDTO"
77697802 (\ o ->
7770− EditHistoryDto <$>
7803+ EditHistoryDTO <$>
77717804 (o .:? "lastUpdatedByLoginName") <*>
77727805 (o .:? "createdByLoginName")
77737806 <*> (o .:? "lastUpdateTimeStamp")
77747807 <*> (o .:? "createdTimeStamp"))
77757808
7776−instance ToJSON EditHistoryDto where
7777− toJSON EditHistoryDto{..}
7809+instance ToJSON EditHistoryDTO where
7810+ toJSON EditHistoryDTO{..}
77787811 = object
77797812 (catMaybes
77807813 [("lastUpdatedByLoginName" .=) <$>
7781− _ehdLastUpdatedByLoginName,
7782− ("createdByLoginName" .=) <$> _ehdCreatedByLoginName,
7814+ _ehdtoLastUpdatedByLoginName,
7815+ ("createdByLoginName" .=) <$>
7816+ _ehdtoCreatedByLoginName,
77837817 ("lastUpdateTimeStamp" .=) <$>
7784− _ehdLastUpdateTimeStamp,
7785− ("createdTimeStamp" .=) <$> _ehdCreatedTimeStamp])
7818+ _ehdtoLastUpdateTimeStamp,
7819+ ("createdTimeStamp" .=) <$> _ehdtoCreatedTimeStamp])
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Deals/Get.hs+2−2
@@ -57,7 +57,7 @@ type DealsGetResource =
5757 QueryParam "alt" AltJSON :>
5858 ReqBody '[JSON]
5959 GetFinalizedNegotiationByExternalDealIdRequest
60− :> Get '[JSON] NegotiationDto
60+ :> Get '[JSON] NegotiationDTO
6161
6262-- | Gets the requested deal.
6363--
@@ -158,7 +158,7 @@ instance GoogleAuth DealsGet' where
158158 authToken = dgOAuthToken . _Just
159159
160160instance GoogleRequest DealsGet' where
161− type Rs DealsGet' = NegotiationDto
161+ type Rs DealsGet' = NegotiationDTO
162162 request = requestWithRoute defReq adExchangeBuyerURL
163163 requestWithRoute r u DealsGet'{..}
164164 = go _dgDealId _dgQuotaUser (Just _dgPrettyPrint)
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/NegotiationRounds/Insert.hs+14−14
@@ -36,7 +36,7 @@ module Network.Google.Resource.AdExchangeBuyer.NegotiationRounds.Insert
3636 , nriKey
3737 , nriOAuthToken
3838 , nriNegotiationId
39− , nriNegotiationRoundDto
39+ , nriNegotiationRoundDTO
4040 , nriFields
4141 ) where
4242
@@ -56,8 +56,8 @@ type NegotiationRoundsInsertResource =
5656 QueryParam "key" Key :>
5757 QueryParam "oauth_token" OAuthToken :>
5858 QueryParam "alt" AltJSON :>
59− ReqBody '[JSON] NegotiationRoundDto :>
60− Post '[JSON] NegotiationRoundDto
59+ ReqBody '[JSON] NegotiationRoundDTO :>
60+ Post '[JSON] NegotiationRoundDTO
6161
6262-- | Adds the requested negotiationRound to the requested negotiation.
6363--
@@ -69,7 +69,7 @@ data NegotiationRoundsInsert' = NegotiationRoundsInsert'
6969 , _nriKey :: !(Maybe Key)
7070 , _nriOAuthToken :: !(Maybe OAuthToken)
7171 , _nriNegotiationId :: !Int64
72− , _nriNegotiationRoundDto :: !NegotiationRoundDto
72+ , _nriNegotiationRoundDTO :: !NegotiationRoundDTO
7373 , _nriFields :: !(Maybe Text)
7474 } deriving (Eq,Read,Show,Data,Typeable,Generic)
7575
@@ -89,14 +89,14 @@ data NegotiationRoundsInsert' = NegotiationRoundsInsert'
8989--
9090-- * 'nriNegotiationId'
9191--
92−-- * 'nriNegotiationRoundDto'
92+-- * 'nriNegotiationRoundDTO'
9393--
9494-- * 'nriFields'
9595negotiationRoundsInsert'
9696 :: Int64 -- ^ 'negotiationId'
97− -> NegotiationRoundDto -- ^ 'NegotiationRoundDto'
97+ -> NegotiationRoundDTO -- ^ 'NegotiationRoundDTO'
9898 -> NegotiationRoundsInsert'
99−negotiationRoundsInsert' pNriNegotiationId_ pNriNegotiationRoundDto_ =
99+negotiationRoundsInsert' pNriNegotiationId_ pNriNegotiationRoundDTO_ =
100100 NegotiationRoundsInsert'
101101 { _nriQuotaUser = Nothing
102102 , _nriPrettyPrint = True
@@ -104,7 +104,7 @@ negotiationRoundsInsert' pNriNegotiationId_ pNriNegotiationRoundDto_ =
104104 , _nriKey = Nothing
105105 , _nriOAuthToken = Nothing
106106 , _nriNegotiationId = pNriNegotiationId_
107− , _nriNegotiationRoundDto = pNriNegotiationRoundDto_
107+ , _nriNegotiationRoundDTO = pNriNegotiationRoundDTO_
108108 , _nriFields = Nothing
109109 }
110110
@@ -145,10 +145,10 @@ nriNegotiationId
145145 (\ s a -> s{_nriNegotiationId = a})
146146
147147-- | Multipart request metadata.
148−nriNegotiationRoundDto :: Lens' NegotiationRoundsInsert' NegotiationRoundDto
149−nriNegotiationRoundDto
150− = lens _nriNegotiationRoundDto
151− (\ s a -> s{_nriNegotiationRoundDto = a})
148+nriNegotiationRoundDTO :: Lens' NegotiationRoundsInsert' NegotiationRoundDTO
149+nriNegotiationRoundDTO
150+ = lens _nriNegotiationRoundDTO
151+ (\ s a -> s{_nriNegotiationRoundDTO = a})
152152
153153-- | Selector specifying which fields to include in a partial response.
154154nriFields :: Lens' NegotiationRoundsInsert' (Maybe Text)
@@ -161,7 +161,7 @@ instance GoogleAuth NegotiationRoundsInsert' where
161161
162162instance GoogleRequest NegotiationRoundsInsert' where
163163 type Rs NegotiationRoundsInsert' =
164− NegotiationRoundDto
164+ NegotiationRoundDTO
165165 request = requestWithRoute defReq adExchangeBuyerURL
166166 requestWithRoute r u NegotiationRoundsInsert'{..}
167167 = go _nriNegotiationId _nriQuotaUser
@@ -171,7 +171,7 @@ instance GoogleRequest NegotiationRoundsInsert' where
171171 _nriKey
172172 _nriOAuthToken
173173 (Just AltJSON)
174− _nriNegotiationRoundDto
174+ _nriNegotiationRoundDTO
175175 where go
176176 = clientWithRoute
177177 (Proxy :: Proxy NegotiationRoundsInsertResource)
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Negotiations/Get.hs+2−2
@@ -56,7 +56,7 @@ type NegotiationsGetResource =
5656 QueryParam "oauth_token" OAuthToken :>
5757 QueryParam "alt" AltJSON :>
5858 ReqBody '[JSON] GetNegotiationByIdRequest :>
59− Get '[JSON] NegotiationDto
59+ Get '[JSON] NegotiationDTO
6060
6161-- | Gets the requested negotiation.
6262--
@@ -156,7 +156,7 @@ instance GoogleAuth NegotiationsGet' where
156156 authToken = ngOAuthToken . _Just
157157
158158instance GoogleRequest NegotiationsGet' where
159− type Rs NegotiationsGet' = NegotiationDto
159+ type Rs NegotiationsGet' = NegotiationDTO
160160 request = requestWithRoute defReq adExchangeBuyerURL
161161 requestWithRoute r u NegotiationsGet'{..}
162162 = go _ngNegotiationId _ngQuotaUser
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Negotiations/Insert.hs+14−14
@@ -33,7 +33,7 @@ module Network.Google.Resource.AdExchangeBuyer.Negotiations.Insert
3333 , niQuotaUser
3434 , niPrettyPrint
3535 , niUserIP
36− , niNegotiationDto
36+ , niNegotiationDTO
3737 , niKey
3838 , niOAuthToken
3939 , niFields
@@ -53,8 +53,8 @@ type NegotiationsInsertResource =
5353 QueryParam "key" Key :>
5454 QueryParam "oauth_token" OAuthToken :>
5555 QueryParam "alt" AltJSON :>
56− ReqBody '[JSON] NegotiationDto :>
57− Post '[JSON] NegotiationDto
56+ ReqBody '[JSON] NegotiationDTO :>
57+ Post '[JSON] NegotiationDTO
5858
5959-- | Creates or updates the requested negotiation.
6060--
@@ -63,7 +63,7 @@ data NegotiationsInsert' = NegotiationsInsert'
6363 { _niQuotaUser :: !(Maybe Text)
6464 , _niPrettyPrint :: !Bool
6565 , _niUserIP :: !(Maybe Text)
66− , _niNegotiationDto :: !NegotiationDto
66+ , _niNegotiationDTO :: !NegotiationDTO
6767 , _niKey :: !(Maybe Key)
6868 , _niOAuthToken :: !(Maybe OAuthToken)
6969 , _niFields :: !(Maybe Text)
@@ -79,7 +79,7 @@ data NegotiationsInsert' = NegotiationsInsert'
7979--
8080-- * 'niUserIP'
8181--
82−-- * 'niNegotiationDto'
82+-- * 'niNegotiationDTO'
8383--
8484-- * 'niKey'
8585--
@@ -87,14 +87,14 @@ data NegotiationsInsert' = NegotiationsInsert'
8787--
8888-- * 'niFields'
8989negotiationsInsert'
90− :: NegotiationDto -- ^ 'NegotiationDto'
90+ :: NegotiationDTO -- ^ 'NegotiationDTO'
9191 -> NegotiationsInsert'
92−negotiationsInsert' pNiNegotiationDto_ =
92+negotiationsInsert' pNiNegotiationDTO_ =
9393 NegotiationsInsert'
9494 { _niQuotaUser = Nothing
9595 , _niPrettyPrint = True
9696 , _niUserIP = Nothing
97− , _niNegotiationDto = pNiNegotiationDto_
97+ , _niNegotiationDTO = pNiNegotiationDTO_
9898 , _niKey = Nothing
9999 , _niOAuthToken = Nothing
100100 , _niFields = Nothing
@@ -119,10 +119,10 @@ niUserIP :: Lens' NegotiationsInsert' (Maybe Text)
119119niUserIP = lens _niUserIP (\ s a -> s{_niUserIP = a})
120120
121121-- | Multipart request metadata.
122−niNegotiationDto :: Lens' NegotiationsInsert' NegotiationDto
123−niNegotiationDto
124− = lens _niNegotiationDto
125− (\ s a -> s{_niNegotiationDto = a})
122+niNegotiationDTO :: Lens' NegotiationsInsert' NegotiationDTO
123+niNegotiationDTO
124+ = lens _niNegotiationDTO
125+ (\ s a -> s{_niNegotiationDTO = a})
126126
127127-- | API key. Your API key identifies your project and provides you with API
128128-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -144,7 +144,7 @@ instance GoogleAuth NegotiationsInsert' where
144144 authToken = niOAuthToken . _Just
145145
146146instance GoogleRequest NegotiationsInsert' where
147− type Rs NegotiationsInsert' = NegotiationDto
147+ type Rs NegotiationsInsert' = NegotiationDTO
148148 request = requestWithRoute defReq adExchangeBuyerURL
149149 requestWithRoute r u NegotiationsInsert'{..}
150150 = go _niQuotaUser (Just _niPrettyPrint) _niUserIP
@@ -152,7 +152,7 @@ instance GoogleRequest NegotiationsInsert' where
152152 _niKey
153153 _niOAuthToken
154154 (Just AltJSON)
155− _niNegotiationDto
155+ _niNegotiationDTO
156156 where go
157157 = clientWithRoute
158158 (Proxy :: Proxy NegotiationsInsertResource)
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Offers/Get.hs+2−2
@@ -53,7 +53,7 @@ type OffersGetResource =
5353 QueryParam "fields" Text :>
5454 QueryParam "key" Key :>
5555 QueryParam "oauth_token" OAuthToken :>
56− QueryParam "alt" AltJSON :> Get '[JSON] OfferDto
56+ QueryParam "alt" AltJSON :> Get '[JSON] OfferDTO
5757
5858-- | Gets the requested offer.
5959--
@@ -141,7 +141,7 @@ instance GoogleAuth OffersGet' where
141141 authToken = ogOAuthToken . _Just
142142
143143instance GoogleRequest OffersGet' where
144− type Rs OffersGet' = OfferDto
144+ type Rs OffersGet' = OfferDTO
145145 request = requestWithRoute defReq adExchangeBuyerURL
146146 requestWithRoute r u OffersGet'{..}
147147 = go _ogOfferId _ogQuotaUser (Just _ogPrettyPrint)
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Offers/Insert.hs+12−12
@@ -34,7 +34,7 @@ module Network.Google.Resource.AdExchangeBuyer.Offers.Insert
3434 , oiPrettyPrint
3535 , oiUserIP
3636 , oiKey
37− , oiOfferDto
37+ , oiOfferDTO
3838 , oiOAuthToken
3939 , oiFields
4040 ) where
@@ -53,7 +53,7 @@ type OffersInsertResource =
5353 QueryParam "key" Key :>
5454 QueryParam "oauth_token" OAuthToken :>
5555 QueryParam "alt" AltJSON :>
56− ReqBody '[JSON] OfferDto :> Post '[JSON] OfferDto
56+ ReqBody '[JSON] OfferDTO :> Post '[JSON] OfferDTO
5757
5858-- | Creates or updates the requested offer.
5959--
@@ -63,7 +63,7 @@ data OffersInsert' = OffersInsert'
6363 , _oiPrettyPrint :: !Bool
6464 , _oiUserIP :: !(Maybe Text)
6565 , _oiKey :: !(Maybe Key)
66− , _oiOfferDto :: !OfferDto
66+ , _oiOfferDTO :: !OfferDTO
6767 , _oiOAuthToken :: !(Maybe OAuthToken)
6868 , _oiFields :: !(Maybe Text)
6969 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -80,21 +80,21 @@ data OffersInsert' = OffersInsert'
8080--
8181-- * 'oiKey'
8282--
83−-- * 'oiOfferDto'
83+-- * 'oiOfferDTO'
8484--
8585-- * 'oiOAuthToken'
8686--
8787-- * 'oiFields'
8888offersInsert'
89− :: OfferDto -- ^ 'OfferDto'
89+ :: OfferDTO -- ^ 'OfferDTO'
9090 -> OffersInsert'
91−offersInsert' pOiOfferDto_ =
91+offersInsert' pOiOfferDTO_ =
9292 OffersInsert'
9393 { _oiQuotaUser = Nothing
9494 , _oiPrettyPrint = True
9595 , _oiUserIP = Nothing
9696 , _oiKey = Nothing
97− , _oiOfferDto = pOiOfferDto_
97+ , _oiOfferDTO = pOiOfferDTO_
9898 , _oiOAuthToken = Nothing
9999 , _oiFields = Nothing
100100 }
@@ -124,9 +124,9 @@ oiKey :: Lens' OffersInsert' (Maybe Key)
124124oiKey = lens _oiKey (\ s a -> s{_oiKey = a})
125125
126126-- | Multipart request metadata.
127−oiOfferDto :: Lens' OffersInsert' OfferDto
128−oiOfferDto
129− = lens _oiOfferDto (\ s a -> s{_oiOfferDto = a})
127+oiOfferDTO :: Lens' OffersInsert' OfferDTO
128+oiOfferDTO
129+ = lens _oiOfferDTO (\ s a -> s{_oiOfferDTO = a})
130130
131131-- | OAuth 2.0 token for the current user.
132132oiOAuthToken :: Lens' OffersInsert' (Maybe OAuthToken)
@@ -142,7 +142,7 @@ instance GoogleAuth OffersInsert' where
142142 authToken = oiOAuthToken . _Just
143143
144144instance GoogleRequest OffersInsert' where
145− type Rs OffersInsert' = OfferDto
145+ type Rs OffersInsert' = OfferDTO
146146 request = requestWithRoute defReq adExchangeBuyerURL
147147 requestWithRoute r u OffersInsert'{..}
148148 = go _oiQuotaUser (Just _oiPrettyPrint) _oiUserIP
@@ -150,7 +150,7 @@ instance GoogleRequest OffersInsert' where
150150 _oiKey
151151 _oiOAuthToken
152152 (Just AltJSON)
153− _oiOfferDto
153+ _oiOfferDTO
154154 where go
155155 = clientWithRoute
156156 (Proxy :: Proxy OffersInsertResource)
gogol-admin-datatransfer/gen/Network/Google/AdminDataTransfer/Types/Product.hs+2−1
@@ -229,7 +229,7 @@ data DataTransfer = DataTransfer
229229 , _dtOldOwnerUserId :: !(Maybe Text)
230230 , _dtKind :: !Text
231231 , _dtNewOwnerUserId :: !(Maybe Text)
232− , _dtRequestTime :: !(Maybe DateTime)
232+ , _dtRequestTime :: !(Maybe DateTime')
233233 , _dtApplicationDataTransfers :: !(Maybe [ApplicationDataTransfer])
234234 , _dtId :: !(Maybe Text)
235235 , _dtOverallTransferStatusCode :: !(Maybe Text)
@@ -293,6 +293,7 @@ dtRequestTime :: Lens' DataTransfer (Maybe UTCTime)
293293dtRequestTime
294294 = lens _dtRequestTime
295295 (\ s a -> s{_dtRequestTime = a})
296+ . mapping _DateTime
296297
297298-- | List of per application data transfer resources. It contains data
298299-- transfer details of the applications associated with this transfer
gogol-admin-directory/gen/Network/Google/AdminDirectory/Types/Product.hs+25−15
@@ -679,7 +679,7 @@ instance ToJSON Group where
679679--
680680-- /See:/ 'chromeOSDeviceActiveTimeRanges' smart constructor.
681681data ChromeOSDeviceActiveTimeRanges = ChromeOSDeviceActiveTimeRanges
682− { _codatrDate :: !(Maybe Date)
682+ { _codatrDate :: !(Maybe Date')
683683 , _codatrActiveTime :: !(Maybe Int32)
684684 } deriving (Eq,Read,Show,Data,Typeable,Generic)
685685
@@ -699,9 +699,10 @@ chromeOSDeviceActiveTimeRanges =
699699 }
700700
701701-- | Date of usage
702−codatrDate :: Lens' ChromeOSDeviceActiveTimeRanges (Maybe UTCTime)
702+codatrDate :: Lens' ChromeOSDeviceActiveTimeRanges (Maybe LocalTime)
703703codatrDate
704− = lens _codatrDate (\ s a -> s{_codatrDate = a})
704+ = lens _codatrDate (\ s a -> s{_codatrDate = a}) .
705+ mapping _Date
705706
706707-- | Duration in milliseconds
707708codatrActiveTime :: Lens' ChromeOSDeviceActiveTimeRanges (Maybe Int32)
@@ -888,16 +889,16 @@ data ChromeOSDevice = ChromeOSDevice
888889 , _codEtag :: !(Maybe Text)
889890 , _codAnnotatedUser :: !(Maybe Text)
890891 , _codPlatformVersion :: !(Maybe Text)
891− , _codLastSync :: !(Maybe DateTime)
892+ , _codLastSync :: !(Maybe DateTime')
892893 , _codActiveTimeRanges :: !(Maybe [ChromeOSDeviceActiveTimeRanges])
893894 , _codKind :: !Text
894895 , _codEthernetMACAddress :: !(Maybe Text)
895− , _codLastEnrollmentTime :: !(Maybe DateTime)
896+ , _codLastEnrollmentTime :: !(Maybe DateTime')
896897 , _codAnnotatedLocation :: !(Maybe Text)
897898 , _codMACAddress :: !(Maybe Text)
898899 , _codOrgUnitPath :: !(Maybe Text)
899900 , _codRecentUsers :: !(Maybe [ChromeOSDeviceRecentUsers])
900− , _codSupportEndDate :: !(Maybe DateTime)
901+ , _codSupportEndDate :: !(Maybe DateTime')
901902 , _codModel :: !(Maybe Text)
902903 , _codWillAutoRenew :: !(Maybe Bool)
903904 , _codMeid :: !(Maybe Text)
@@ -1020,7 +1021,8 @@ codPlatformVersion
10201021-- in the Google Apps administrator control panel (Read-only)
10211022codLastSync :: Lens' ChromeOSDevice (Maybe UTCTime)
10221023codLastSync
1023− = lens _codLastSync (\ s a -> s{_codLastSync = a})
1024+ = lens _codLastSync (\ s a -> s{_codLastSync = a}) .
1025+ mapping _DateTime
10241026
10251027-- | List of active time ranges (Read-only)
10261028codActiveTimeRanges :: Lens' ChromeOSDevice [ChromeOSDeviceActiveTimeRanges]
@@ -1045,6 +1047,7 @@ codLastEnrollmentTime :: Lens' ChromeOSDevice (Maybe UTCTime)
10451047codLastEnrollmentTime
10461048 = lens _codLastEnrollmentTime
10471049 (\ s a -> s{_codLastEnrollmentTime = a})
1050+ . mapping _DateTime
10481051
10491052-- | Address or location of the device as noted by the administrator
10501053codAnnotatedLocation :: Lens' ChromeOSDevice (Maybe Text)
@@ -1078,6 +1081,7 @@ codSupportEndDate :: Lens' ChromeOSDevice (Maybe UTCTime)
10781081codSupportEndDate
10791082 = lens _codSupportEndDate
10801083 (\ s a -> s{_codSupportEndDate = a})
1084+ . mapping _DateTime
10811085
10821086-- | Chromebook Model (Read-only)
10831087codModel :: Lens' ChromeOSDevice (Maybe Text)
@@ -1386,7 +1390,7 @@ data Notification = Notification
13861390 , _nFromAddress :: !(Maybe Text)
13871391 , _nIsUnread :: !(Maybe Bool)
13881392 , _nNotificationId :: !(Maybe Text)
1389− , _nSendTime :: !(Maybe DateTime)
1393+ , _nSendTime :: !(Maybe DateTime')
13901394 } deriving (Eq,Read,Show,Data,Typeable,Generic)
13911395
13921396-- | Creates a value of 'Notification' with the minimum fields required to make a request.
@@ -1456,7 +1460,8 @@ nNotificationId
14561460-- | Time at which notification was sent (Read-only)
14571461nSendTime :: Lens' Notification (Maybe UTCTime)
14581462nSendTime
1459− = lens _nSendTime (\ s a -> s{_nSendTime = a})
1463+ = lens _nSendTime (\ s a -> s{_nSendTime = a}) .
1464+ mapping _DateTime
14601465
14611466instance FromJSON Notification where
14621467 parseJSON
@@ -2313,8 +2318,8 @@ instance ToJSON MobileDeviceApplications where
23132318--
23142319-- /See:/ 'user' smart constructor.
23152320data User = User
2316− { _useCreationTime :: !(Maybe DateTime)
2317− , _useLastLoginTime :: !(Maybe DateTime)
2321+ { _useCreationTime :: !(Maybe DateTime')
2322+ , _useLastLoginTime :: !(Maybe DateTime')
23182323 , _useThumbnailPhotoEtag :: !(Maybe Text)
23192324 , _useEtag :: !(Maybe Text)
23202325 , _useIPWhiteListed :: !(Maybe Bool)
@@ -2329,7 +2334,7 @@ data User = User
23292334 , _useExternalIds :: !(Maybe JSONValue)
23302335 , _useSuspended :: !(Maybe Bool)
23312336 , _useAgreedToTerms :: !(Maybe Bool)
2332− , _useDeletionTime :: !(Maybe DateTime)
2337+ , _useDeletionTime :: !(Maybe DateTime')
23332338 , _useNonEditableAliases :: !(Maybe [Text])
23342339 , _useOrgUnitPath :: !(Maybe Text)
23352340 , _useCustomerId :: !(Maybe Text)
@@ -2469,12 +2474,14 @@ useCreationTime :: Lens' User (Maybe UTCTime)
24692474useCreationTime
24702475 = lens _useCreationTime
24712476 (\ s a -> s{_useCreationTime = a})
2477+ . mapping _DateTime
24722478
24732479-- | User\'s last login time. (Read-only)
24742480useLastLoginTime :: Lens' User (Maybe UTCTime)
24752481useLastLoginTime
24762482 = lens _useLastLoginTime
24772483 (\ s a -> s{_useLastLoginTime = a})
2484+ . mapping _DateTime
24782485
24792486-- | ETag of the user\'s photo (Read-only)
24802487useThumbnailPhotoEtag :: Lens' User (Maybe Text)
@@ -2553,6 +2560,7 @@ useDeletionTime :: Lens' User (Maybe UTCTime)
25532560useDeletionTime
25542561 = lens _useDeletionTime
25552562 (\ s a -> s{_useDeletionTime = a})
2563+ . mapping _DateTime
25562564
25572565-- | List of non editable aliases (Read-only)
25582566useNonEditableAliases :: Lens' User [Text]
@@ -3565,7 +3573,7 @@ data MobileDevice = MobileDevice
35653573 , _mobResourceId :: !(Maybe Text)
35663574 , _mobBuildNumber :: !(Maybe Text)
35673575 , _mobManagedAccountIsOnOwnerProfile :: !(Maybe Bool)
3568− , _mobLastSync :: !(Maybe DateTime)
3576+ , _mobLastSync :: !(Maybe DateTime')
35693577 , _mobOtherAccountsInfo :: !(Maybe [Text])
35703578 , _mobKind :: !Text
35713579 , _mobAdbStatus :: !(Maybe Bool)
@@ -3578,7 +3586,7 @@ data MobileDevice = MobileDevice
35783586 , _mobUnknownSourcesStatus :: !(Maybe Bool)
35793587 , _mobMeid :: !(Maybe Text)
35803588 , _mobDeviceId :: !(Maybe Text)
3581− , _mobFirstSync :: !(Maybe DateTime)
3589+ , _mobFirstSync :: !(Maybe DateTime')
35823590 , _mobUserAgent :: !(Maybe Text)
35833591 , _mobImei :: !(Maybe Text)
35843592 , _mobType :: !(Maybe Text)
@@ -3733,7 +3741,8 @@ mobManagedAccountIsOnOwnerProfile
37333741-- in the Google Apps administrator control panel (Read-only)
37343742mobLastSync :: Lens' MobileDevice (Maybe UTCTime)
37353743mobLastSync
3736− = lens _mobLastSync (\ s a -> s{_mobLastSync = a})
3744+ = lens _mobLastSync (\ s a -> s{_mobLastSync = a}) .
3745+ mapping _DateTime
37373746
37383747-- | List of accounts added on device (Read-only)
37393748mobOtherAccountsInfo :: Lens' MobileDevice [Text]
@@ -3804,6 +3813,7 @@ mobDeviceId
38043813mobFirstSync :: Lens' MobileDevice (Maybe UTCTime)
38053814mobFirstSync
38063815 = lens _mobFirstSync (\ s a -> s{_mobFirstSync = a})
3816+ . mapping _DateTime
38073817
38083818-- | Mobile Device user agent
38093819mobUserAgent :: Lens' MobileDevice (Maybe Text)
gogol-admin-reports/gen/Network/Google/AdminReports/Types/Product.hs+6−3
@@ -163,7 +163,7 @@ instance ToJSON UsageReports where
163163--
164164-- /See:/ 'activityId' smart constructor.
165165data ActivityId = ActivityId
166− { _aiTime :: !(Maybe DateTime)
166+ { _aiTime :: !(Maybe DateTime')
167167 , _aiUniqueQualifier :: !(Maybe Int64)
168168 , _aiCustomerId :: !(Maybe Text)
169169 , _aiApplicationName :: !(Maybe Text)
@@ -192,7 +192,9 @@ activityId =
192192
193193-- | Time of occurrence of the activity.
194194aiTime :: Lens' ActivityId (Maybe UTCTime)
195−aiTime = lens _aiTime (\ s a -> s{_aiTime = a})
195+aiTime
196+ = lens _aiTime (\ s a -> s{_aiTime = a}) .
197+ mapping _DateTime
196198
197199-- | Unique qualifier if multiple events have the same time.
198200aiUniqueQualifier :: Lens' ActivityId (Maybe Int64)
@@ -983,7 +985,7 @@ instance ToJSON ActivityActor where
983985--
984986-- /See:/ 'usageReportParameters' smart constructor.
985987data UsageReportParameters = UsageReportParameters
986− { _urpDatetimeValue :: !(Maybe DateTime)
988+ { _urpDatetimeValue :: !(Maybe DateTime')
987989 , _urpBoolValue :: !(Maybe Bool)
988990 , _urpIntValue :: !(Maybe Int64)
989991 , _urpStringValue :: !(Maybe Text)
@@ -1023,6 +1025,7 @@ urpDatetimeValue :: Lens' UsageReportParameters (Maybe UTCTime)
10231025urpDatetimeValue
10241026 = lens _urpDatetimeValue
10251027 (\ s a -> s{_urpDatetimeValue = a})
1028+ . mapping _DateTime
10261029
10271030-- | Boolean value of the parameter.
10281031urpBoolValue :: Lens' UsageReportParameters (Maybe Bool)
gogol-affiliates/gen/Network/Google/Affiliates/Types/Product.hs+22−14
@@ -119,7 +119,7 @@ instance ToJSON CcOfferRewards where
119119--
120120-- /See:/ 'event' smart constructor.
121121data Event = Event
122− { _eModifyDate :: !(Maybe DateTime)
122+ { _eModifyDate :: !(Maybe DateTime')
123123 , _eStatus :: !(Maybe Text)
124124 , _eCommissionableSales :: !(Maybe Money)
125125 , _eChargeId :: !(Maybe Text)
@@ -129,7 +129,7 @@ data Event = Event
129129 , _eKind :: !Text
130130 , _eNetworkFee :: !(Maybe Money)
131131 , _eAdvertiserId :: !(Maybe Int64)
132− , _eEventDate :: !(Maybe DateTime)
132+ , _eEventDate :: !(Maybe DateTime')
133133 , _eProducts :: !(Maybe [EventProducts])
134134 , _ePublisherFee :: !(Maybe Money)
135135 , _eType :: !(Maybe Text)
@@ -206,7 +206,8 @@ event =
206206-- value.
207207eModifyDate :: Lens' Event (Maybe UTCTime)
208208eModifyDate
209− = lens _eModifyDate (\ s a -> s{_eModifyDate = a})
209+ = lens _eModifyDate (\ s a -> s{_eModifyDate = a}) .
210+ mapping _DateTime
210211
211212-- | Status of the event (active|canceled). Only returned for charge and
212213-- conversion events.
@@ -262,7 +263,8 @@ eAdvertiserId
262263-- | The date-time this event was initiated as a RFC 3339 date-time value.
263264eEventDate :: Lens' Event (Maybe UTCTime)
264265eEventDate
265− = lens _eEventDate (\ s a -> s{_eEventDate = a})
266+ = lens _eEventDate (\ s a -> s{_eEventDate = a}) .
267+ mapping _DateTime
266268
267269-- | Products associated with the event.
268270eProducts :: Lens' Event [EventProducts]
@@ -353,14 +355,14 @@ data Link = Link
353355 { _lAuthorship :: !(Maybe Text)
354356 , _lDestinationURL :: !(Maybe Text)
355357 , _lClickTrackingURL :: !(Maybe Text)
356− , _lCreateDate :: !(Maybe DateTime)
358+ , _lCreateDate :: !(Maybe DateTime')
357359 , _lKind :: !Text
358360 , _lAdvertiserId :: !(Maybe Int64)
359− , _lEndDate :: !(Maybe DateTime)
361+ , _lEndDate :: !(Maybe DateTime')
360362 , _lImageAltText :: !(Maybe Text)
361363 , _lPromotionType :: !(Maybe Text)
362364 , _lAvailability :: !(Maybe Text)
363− , _lStartDate :: !(Maybe DateTime)
365+ , _lStartDate :: !(Maybe DateTime')
364366 , _lName :: !(Maybe Text)
365367 , _lImpressionTrackingURL :: !(Maybe Text)
366368 , _lSpecialOffers :: !(Maybe LinkSpecialOffers)
@@ -465,7 +467,8 @@ lClickTrackingURL
465467-- | Date that this link was created.
466468lCreateDate :: Lens' Link (Maybe UTCTime)
467469lCreateDate
468− = lens _lCreateDate (\ s a -> s{_lCreateDate = a})
470+ = lens _lCreateDate (\ s a -> s{_lCreateDate = a}) .
471+ mapping _DateTime
469472
470473-- | The kind for one entity.
471474lKind :: Lens' Link Text
@@ -479,7 +482,9 @@ lAdvertiserId
479482
480483-- | Date that this link becomes inactive.
481484lEndDate :: Lens' Link (Maybe UTCTime)
482−lEndDate = lens _lEndDate (\ s a -> s{_lEndDate = a})
485+lEndDate
486+ = lens _lEndDate (\ s a -> s{_lEndDate = a}) .
487+ mapping _DateTime
483488
484489-- | image alt text.
485490lImageAltText :: Lens' Link (Maybe Text)
@@ -502,7 +507,8 @@ lAvailability
502507-- | Date that this link becomes active.
503508lStartDate :: Lens' Link (Maybe UTCTime)
504509lStartDate
505− = lens _lStartDate (\ s a -> s{_lStartDate = a})
510+ = lens _lStartDate (\ s a -> s{_lStartDate = a}) .
511+ mapping _DateTime
506512
507513-- | The logical name for this link.
508514lName :: Lens' Link (Maybe Text)
@@ -1380,7 +1386,7 @@ data Advertiser = Advertiser
13801386 , _advCategory :: !(Maybe Text)
13811387 , _advSiteURL :: !(Maybe Text)
13821388 , _advPayoutRank :: !(Maybe Text)
1383− , _advJoinDate :: !(Maybe DateTime)
1389+ , _advJoinDate :: !(Maybe DateTime')
13841390 , _advDefaultLinkId :: !(Maybe Int64)
13851391 , _advRedirectDomains :: !(Maybe [Text])
13861392 , _advName :: !(Maybe Text)
@@ -1522,7 +1528,8 @@ advPayoutRank
15221528-- advertiser.
15231529advJoinDate :: Lens' Advertiser (Maybe UTCTime)
15241530advJoinDate
1525− = lens _advJoinDate (\ s a -> s{_advJoinDate = a})
1531+ = lens _advJoinDate (\ s a -> s{_advJoinDate = a}) .
1532+ mapping _DateTime
15261533
15271534-- | The default link id for this advertiser.
15281535advDefaultLinkId :: Lens' Advertiser (Maybe Int64)
@@ -2548,7 +2555,7 @@ data Publisher = Publisher
25482555 { _pubStatus :: !(Maybe Text)
25492556 , _pubKind :: !Text
25502557 , _pubPayoutRank :: !(Maybe Text)
2551− , _pubJoinDate :: !(Maybe DateTime)
2558+ , _pubJoinDate :: !(Maybe DateTime')
25522559 , _pubClassification :: !(Maybe Text)
25532560 , _pubName :: !(Maybe Text)
25542561 , _pubEpcSevenDayAverage :: !(Maybe Money)
@@ -2622,7 +2629,8 @@ pubPayoutRank
26222629-- publisher.
26232630pubJoinDate :: Lens' Publisher (Maybe UTCTime)
26242631pubJoinDate
2625− = lens _pubJoinDate (\ s a -> s{_pubJoinDate = a})
2632+ = lens _pubJoinDate (\ s a -> s{_pubJoinDate = a}) .
2633+ mapping _DateTime
26262634
26272635-- | Classification that this publisher belongs to. See this link for all
26282636-- publisher classifications:
gogol-analytics/gen/Network/Google/Analytics/Types/Product.hs+77−47
@@ -366,14 +366,14 @@ data UnSampledReport = UnSampledReport
366366 , _uDriveDownloadDetails :: !(Maybe UnSampledReportDriveDownloadDetails)
367367 , _uWebPropertyId :: !(Maybe Text)
368368 , _uKind :: !Text
369− , _uCreated :: !(Maybe DateTime)
369+ , _uCreated :: !(Maybe DateTime')
370370 , _uFilters :: !(Maybe Text)
371371 , _uProfileId :: !(Maybe Text)
372372 , _uEndDate :: !(Maybe Text)
373373 , _uSelfLink :: !(Maybe Text)
374374 , _uAccountId :: !(Maybe Text)
375375 , _uId :: !(Maybe Text)
376− , _uUpdated :: !(Maybe DateTime)
376+ , _uUpdated :: !(Maybe DateTime')
377377 , _uTitle :: !(Maybe Text)
378378 , _uDimensions :: !(Maybe Text)
379379 , _uSegment :: !(Maybe Text)
@@ -481,7 +481,9 @@ uKind = lens _uKind (\ s a -> s{_uKind = a})
481481
482482-- | Time this unsampled report was created.
483483uCreated :: Lens' UnSampledReport (Maybe UTCTime)
484−uCreated = lens _uCreated (\ s a -> s{_uCreated = a})
484+uCreated
485+ = lens _uCreated (\ s a -> s{_uCreated = a}) .
486+ mapping _DateTime
485487
486488-- | The filters for the unsampled report.
487489uFilters :: Lens' UnSampledReport (Maybe Text)
@@ -512,7 +514,9 @@ uId = lens _uId (\ s a -> s{_uId = a})
512514
513515-- | Time this unsampled report was last modified.
514516uUpdated :: Lens' UnSampledReport (Maybe UTCTime)
515−uUpdated = lens _uUpdated (\ s a -> s{_uUpdated = a})
517+uUpdated
518+ = lens _uUpdated (\ s a -> s{_uUpdated = a}) .
519+ mapping _DateTime
516520
517521-- | Title of the unsampled report.
518522uTitle :: Lens' UnSampledReport (Maybe Text)
@@ -3033,14 +3037,14 @@ data Profile = Profile
30333037 , _proSiteSearchQueryParameters :: !(Maybe Text)
30343038 , _proKind :: !Text
30353039 , _proDefaultPage :: !(Maybe Text)
3036− , _proCreated :: !(Maybe DateTime)
3040+ , _proCreated :: !(Maybe DateTime')
30373041 , _proSelfLink :: !(Maybe Text)
30383042 , _proAccountId :: !(Maybe Text)
30393043 , _proName :: !(Maybe Text)
30403044 , _proCurrency :: !(Maybe Text)
30413045 , _proInternalWebPropertyId :: !(Maybe Text)
30423046 , _proId :: !(Maybe Text)
3043− , _proUpdated :: !(Maybe DateTime)
3047+ , _proUpdated :: !(Maybe DateTime')
30443048 , _proPermissions :: !(Maybe ProfilePermissions)
30453049 , _proWebsiteURL :: !(Maybe Text)
30463050 , _proType :: !(Maybe Text)
@@ -3183,7 +3187,8 @@ proDefaultPage
31833187-- | Time this view (profile) was created.
31843188proCreated :: Lens' Profile (Maybe UTCTime)
31853189proCreated
3186− = lens _proCreated (\ s a -> s{_proCreated = a})
3190+ = lens _proCreated (\ s a -> s{_proCreated = a}) .
3191+ mapping _DateTime
31873192
31883193-- | Link for this view (profile).
31893194proSelfLink :: Lens' Profile (Maybe Text)
@@ -3220,7 +3225,8 @@ proId = lens _proId (\ s a -> s{_proId = a})
32203225-- | Time this view (profile) was last modified.
32213226proUpdated :: Lens' Profile (Maybe UTCTime)
32223227proUpdated
3223− = lens _proUpdated (\ s a -> s{_proUpdated = a})
3228+ = lens _proUpdated (\ s a -> s{_proUpdated = a}) .
3229+ mapping _DateTime
32243230
32253231-- | Permissions the user has for this view (profile).
32263232proPermissions :: Lens' Profile (Maybe ProfilePermissions)
@@ -3801,14 +3807,14 @@ data CustomDataSource = CustomDataSource
38013807 , _cWebPropertyId :: !(Maybe Text)
38023808 , _cChildLink :: !(Maybe CustomDataSourceChildLink)
38033809 , _cKind :: !Text
3804− , _cCreated :: !(Maybe DateTime)
3810+ , _cCreated :: !(Maybe DateTime')
38053811 , _cUploadType :: !(Maybe Text)
38063812 , _cImportBehavior :: !(Maybe Text)
38073813 , _cSelfLink :: !(Maybe Text)
38083814 , _cAccountId :: !(Maybe Text)
38093815 , _cName :: !(Maybe Text)
38103816 , _cId :: !(Maybe Text)
3811− , _cUpdated :: !(Maybe DateTime)
3817+ , _cUpdated :: !(Maybe DateTime')
38123818 , _cType :: !(Maybe Text)
38133819 , _cDescription :: !(Maybe Text)
38143820 , _cProfilesLinked :: !(Maybe [Text])
@@ -3891,7 +3897,9 @@ cKind = lens _cKind (\ s a -> s{_cKind = a})
38913897
38923898-- | Time this custom data source was created.
38933899cCreated :: Lens' CustomDataSource (Maybe UTCTime)
3894−cCreated = lens _cCreated (\ s a -> s{_cCreated = a})
3900+cCreated
3901+ = lens _cCreated (\ s a -> s{_cCreated = a}) .
3902+ mapping _DateTime
38953903
38963904cUploadType :: Lens' CustomDataSource (Maybe Text)
38973905cUploadType
@@ -3922,7 +3930,9 @@ cId = lens _cId (\ s a -> s{_cId = a})
39223930
39233931-- | Time this custom data source was last modified.
39243932cUpdated :: Lens' CustomDataSource (Maybe UTCTime)
3925−cUpdated = lens _cUpdated (\ s a -> s{_cUpdated = a})
3933+cUpdated
3934+ = lens _cUpdated (\ s a -> s{_cUpdated = a}) .
3935+ mapping _DateTime
39263936
39273937-- | Type of the custom data source.
39283938cType :: Lens' CustomDataSource (Maybe Text)
@@ -4276,11 +4286,11 @@ instance ToJSON GoalVisitTimeOnSiteDetails where
42764286data Account = Account
42774287 { _accChildLink :: !(Maybe AccountChildLink)
42784288 , _accKind :: !Text
4279− , _accCreated :: !(Maybe DateTime)
4289+ , _accCreated :: !(Maybe DateTime')
42804290 , _accSelfLink :: !(Maybe Text)
42814291 , _accName :: !(Maybe Text)
42824292 , _accId :: !(Maybe Text)
4283− , _accUpdated :: !(Maybe DateTime)
4293+ , _accUpdated :: !(Maybe DateTime')
42844294 , _accPermissions :: !(Maybe AccountPermissions)
42854295 } deriving (Eq,Read,Show,Data,Typeable,Generic)
42864296
@@ -4330,7 +4340,8 @@ accKind = lens _accKind (\ s a -> s{_accKind = a})
43304340-- | Time the account was created.
43314341accCreated :: Lens' Account (Maybe UTCTime)
43324342accCreated
4333− = lens _accCreated (\ s a -> s{_accCreated = a})
4343+ = lens _accCreated (\ s a -> s{_accCreated = a}) .
4344+ mapping _DateTime
43344345
43354346-- | Link for this account.
43364347accSelfLink :: Lens' Account (Maybe Text)
@@ -4348,7 +4359,8 @@ accId = lens _accId (\ s a -> s{_accId = a})
43484359-- | Time the account was last modified.
43494360accUpdated :: Lens' Account (Maybe UTCTime)
43504361accUpdated
4351− = lens _accUpdated (\ s a -> s{_accUpdated = a})
4362+ = lens _accUpdated (\ s a -> s{_accUpdated = a}) .
4363+ mapping _DateTime
43524364
43534365-- | Permissions the user has for this account.
43544366accPermissions :: Lens' Account (Maybe AccountPermissions)
@@ -4566,10 +4578,10 @@ data Experiment = Experiment
45664578 , _expEqualWeighting :: !(Maybe Bool)
45674579 , _expStatus :: !(Maybe Text)
45684580 , _expWebPropertyId :: !(Maybe Text)
4569− , _expStartTime :: !(Maybe DateTime)
4581+ , _expStartTime :: !(Maybe DateTime')
45704582 , _expSnippet :: !(Maybe Text)
45714583 , _expKind :: !Text
4572− , _expCreated :: !(Maybe DateTime)
4584+ , _expCreated :: !(Maybe DateTime')
45734585 , _expReasonExperimentEnded :: !(Maybe Text)
45744586 , _expTrafficCoverage :: !(Maybe Double)
45754587 , _expEditableInGaUi :: !(Maybe Bool)
@@ -4580,11 +4592,11 @@ data Experiment = Experiment
45804592 , _expAccountId :: !(Maybe Text)
45814593 , _expName :: !(Maybe Text)
45824594 , _expWinnerFound :: !(Maybe Bool)
4583− , _expEndTime :: !(Maybe DateTime)
4595+ , _expEndTime :: !(Maybe DateTime')
45844596 , _expVariations :: !(Maybe [ExperimentVariations])
45854597 , _expInternalWebPropertyId :: !(Maybe Text)
45864598 , _expId :: !(Maybe Text)
4587− , _expUpdated :: !(Maybe DateTime)
4599+ , _expUpdated :: !(Maybe DateTime')
45884600 , _expRewriteVariationURLsAsOriginal :: !(Maybe Bool)
45894601 , _expObjectiveMetric :: !(Maybe Text)
45904602 , _expWinnerConfidenceLevel :: !(Maybe Double)
@@ -4723,6 +4735,7 @@ expWebPropertyId
47234735expStartTime :: Lens' Experiment (Maybe UTCTime)
47244736expStartTime
47254737 = lens _expStartTime (\ s a -> s{_expStartTime = a})
4738+ . mapping _DateTime
47264739
47274740-- | The snippet of code to include on the control page(s). This field is
47284741-- read-only.
@@ -4737,7 +4750,8 @@ expKind = lens _expKind (\ s a -> s{_expKind = a})
47374750-- | Time the experiment was created. This field is read-only.
47384751expCreated :: Lens' Experiment (Maybe UTCTime)
47394752expCreated
4740− = lens _expCreated (\ s a -> s{_expCreated = a})
4753+ = lens _expCreated (\ s a -> s{_expCreated = a}) .
4754+ mapping _DateTime
47414755
47424756-- | Why the experiment ended. Possible values: \"STOPPED_BY_USER\",
47434757-- \"WINNER_FOUND\", \"EXPERIMENT_EXPIRED\", \"ENDED_WITH_NO_WINNER\",
@@ -4816,7 +4830,8 @@ expWinnerFound
48164830-- ended. This field is read-only.
48174831expEndTime :: Lens' Experiment (Maybe UTCTime)
48184832expEndTime
4819− = lens _expEndTime (\ s a -> s{_expEndTime = a})
4833+ = lens _expEndTime (\ s a -> s{_expEndTime = a}) .
4834+ mapping _DateTime
48204835
48214836-- | Array of variations. The first variation in the array is the original.
48224837-- The number of variations may not change once an experiment is in the
@@ -4843,7 +4858,8 @@ expId = lens _expId (\ s a -> s{_expId = a})
48434858-- | Time the experiment was last modified. This field is read-only.
48444859expUpdated :: Lens' Experiment (Maybe UTCTime)
48454860expUpdated
4846− = lens _expUpdated (\ s a -> s{_expUpdated = a})
4861+ = lens _expUpdated (\ s a -> s{_expUpdated = a}) .
4862+ mapping _DateTime
48474863
48484864-- | Boolean specifying whether variations URLS are rewritten to match those
48494865-- of the original. This field may not be changed for an experiments whose
@@ -5577,13 +5593,13 @@ data WebProperty = WebProperty
55775593 , _wChildLink :: !(Maybe WebPropertyChildLink)
55785594 , _wDefaultProfileId :: !(Maybe Int64)
55795595 , _wKind :: !Text
5580− , _wCreated :: !(Maybe DateTime)
5596+ , _wCreated :: !(Maybe DateTime')
55815597 , _wSelfLink :: !(Maybe Text)
55825598 , _wAccountId :: !(Maybe Text)
55835599 , _wName :: !(Maybe Text)
55845600 , _wInternalWebPropertyId :: !(Maybe Text)
55855601 , _wId :: !(Maybe Text)
5586− , _wUpdated :: !(Maybe DateTime)
5602+ , _wUpdated :: !(Maybe DateTime')
55875603 , _wProfileCount :: !(Maybe Int32)
55885604 , _wPermissions :: !(Maybe WebPropertyPermissions)
55895605 , _wWebsiteURL :: !(Maybe Text)
@@ -5672,7 +5688,9 @@ wKind = lens _wKind (\ s a -> s{_wKind = a})
56725688
56735689-- | Time this web property was created.
56745690wCreated :: Lens' WebProperty (Maybe UTCTime)
5675−wCreated = lens _wCreated (\ s a -> s{_wCreated = a})
5691+wCreated
5692+ = lens _wCreated (\ s a -> s{_wCreated = a}) .
5693+ mapping _DateTime
56765694
56775695-- | Link for this web property.
56785696wSelfLink :: Lens' WebProperty (Maybe Text)
@@ -5700,7 +5718,9 @@ wId = lens _wId (\ s a -> s{_wId = a})
57005718
57015719-- | Time this web property was last modified.
57025720wUpdated :: Lens' WebProperty (Maybe UTCTime)
5703−wUpdated = lens _wUpdated (\ s a -> s{_wUpdated = a})
5721+wUpdated
5722+ = lens _wUpdated (\ s a -> s{_wUpdated = a}) .
5723+ mapping _DateTime
57045724
57055725-- | View (Profile) count for this web property.
57065726wProfileCount :: Lens' WebProperty (Maybe Int32)
@@ -5778,7 +5798,7 @@ data CustomMetric = CustomMetric
57785798 , _cusWebPropertyId :: !(Maybe Text)
57795799 , _cusKind :: !Text
57805800 , _cusMaxValue :: !(Maybe Text)
5781− , _cusCreated :: !(Maybe DateTime)
5801+ , _cusCreated :: !(Maybe DateTime')
57825802 , _cusMinValue :: !(Maybe Text)
57835803 , _cusActive :: !(Maybe Bool)
57845804 , _cusSelfLink :: !(Maybe Text)
@@ -5786,7 +5806,7 @@ data CustomMetric = CustomMetric
57865806 , _cusName :: !(Maybe Text)
57875807 , _cusScope :: !(Maybe Text)
57885808 , _cusId :: !(Maybe Text)
5789− , _cusUpdated :: !(Maybe DateTime)
5809+ , _cusUpdated :: !(Maybe DateTime')
57905810 , _cusType :: !(Maybe Text)
57915811 , _cusIndex :: !(Maybe Int32)
57925812 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -5871,7 +5891,8 @@ cusMaxValue
58715891-- | Time the custom metric was created.
58725892cusCreated :: Lens' CustomMetric (Maybe UTCTime)
58735893cusCreated
5874− = lens _cusCreated (\ s a -> s{_cusCreated = a})
5894+ = lens _cusCreated (\ s a -> s{_cusCreated = a}) .
5895+ mapping _DateTime
58755896
58765897-- | Min value of custom metric.
58775898cusMinValue :: Lens' CustomMetric (Maybe Text)
@@ -5908,7 +5929,8 @@ cusId = lens _cusId (\ s a -> s{_cusId = a})
59085929-- | Time the custom metric was last modified.
59095930cusUpdated :: Lens' CustomMetric (Maybe UTCTime)
59105931cusUpdated
5911− = lens _cusUpdated (\ s a -> s{_cusUpdated = a})
5932+ = lens _cusUpdated (\ s a -> s{_cusUpdated = a}) .
5933+ mapping _DateTime
59125934
59135935-- | Data type of custom metric.
59145936cusType :: Lens' CustomMetric (Maybe Text)
@@ -6956,7 +6978,7 @@ data Goal = Goal
69566978 { _goaParentLink :: !(Maybe GoalParentLink)
69576979 , _goaWebPropertyId :: !(Maybe Text)
69586980 , _goaKind :: !Text
6959− , _goaCreated :: !(Maybe DateTime)
6981+ , _goaCreated :: !(Maybe DateTime')
69606982 , _goaValue :: !(Maybe Float)
69616983 , _goaProfileId :: !(Maybe Text)
69626984 , _goaEventDetails :: !(Maybe GoalEventDetails)
@@ -6969,7 +6991,7 @@ data Goal = Goal
69696991 , _goaId :: !(Maybe Text)
69706992 , _goaURLDestinationDetails :: !(Maybe GoalURLDestinationDetails)
69716993 , _goaVisitNumPagesDetails :: !(Maybe GoalVisitNumPagesDetails)
6972− , _goaUpdated :: !(Maybe DateTime)
6994+ , _goaUpdated :: !(Maybe DateTime')
69736995 , _goaType :: !(Maybe Text)
69746996 } deriving (Eq,Read,Show,Data,Typeable,Generic)
69756997
@@ -7057,7 +7079,8 @@ goaKind = lens _goaKind (\ s a -> s{_goaKind = a})
70577079-- | Time this goal was created.
70587080goaCreated :: Lens' Goal (Maybe UTCTime)
70597081goaCreated
7060− = lens _goaCreated (\ s a -> s{_goaCreated = a})
7082+ = lens _goaCreated (\ s a -> s{_goaCreated = a}) .
7083+ mapping _DateTime
70617084
70627085-- | Goal value.
70637086goaValue :: Lens' Goal (Maybe Float)
@@ -7124,7 +7147,8 @@ goaVisitNumPagesDetails
71247147-- | Time this goal was last modified.
71257148goaUpdated :: Lens' Goal (Maybe UTCTime)
71267149goaUpdated
7127− = lens _goaUpdated (\ s a -> s{_goaUpdated = a})
7150+ = lens _goaUpdated (\ s a -> s{_goaUpdated = a}) .
7151+ mapping _DateTime
71287152
71297153-- | Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE,
71307154-- VISIT_NUM_PAGES, AND EVENT.
@@ -7681,14 +7705,14 @@ data Filter = Filter
76817705 , _filUppercaseDetails :: !(Maybe FilterUppercaseDetails)
76827706 , _filLowercaseDetails :: !(Maybe FilterLowercaseDetails)
76837707 , _filKind :: !Text
7684− , _filCreated :: !(Maybe DateTime)
7708+ , _filCreated :: !(Maybe DateTime')
76857709 , _filIncludeDetails :: !(Maybe FilterExpression)
76867710 , _filExcludeDetails :: !(Maybe FilterExpression)
76877711 , _filSelfLink :: !(Maybe Text)
76887712 , _filAccountId :: !(Maybe Text)
76897713 , _filName :: !(Maybe Text)
76907714 , _filId :: !(Maybe Text)
7691− , _filUpdated :: !(Maybe DateTime)
7715+ , _filUpdated :: !(Maybe DateTime')
76927716 , _filType :: !(Maybe Text)
76937717 , _filSearchAndReplaceDetails :: !(Maybe FilterSearchAndReplaceDetails)
76947718 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -7779,7 +7803,8 @@ filKind = lens _filKind (\ s a -> s{_filKind = a})
77797803-- | Time this filter was created.
77807804filCreated :: Lens' Filter (Maybe UTCTime)
77817805filCreated
7782− = lens _filCreated (\ s a -> s{_filCreated = a})
7806+ = lens _filCreated (\ s a -> s{_filCreated = a}) .
7807+ mapping _DateTime
77837808
77847809-- | Details for the filter of the type INCLUDE.
77857810filIncludeDetails :: Lens' Filter (Maybe FilterExpression)
@@ -7814,7 +7839,8 @@ filId = lens _filId (\ s a -> s{_filId = a})
78147839-- | Time this filter was last modified.
78157840filUpdated :: Lens' Filter (Maybe UTCTime)
78167841filUpdated
7817− = lens _filUpdated (\ s a -> s{_filUpdated = a})
7842+ = lens _filUpdated (\ s a -> s{_filUpdated = a}) .
7843+ mapping _DateTime
78187844
78197845-- | Type of this filter. Possible values are INCLUDE, EXCLUDE, LOWERCASE,
78207846-- UPPERCASE, SEARCH_AND_REPLACE and ADVANCED.
@@ -8170,11 +8196,11 @@ instance ToJSON ProfileFilterLinks where
81708196data Segment = Segment
81718197 { _segDefinition :: !(Maybe Text)
81728198 , _segKind :: !Text
8173− , _segCreated :: !(Maybe DateTime)
8199+ , _segCreated :: !(Maybe DateTime')
81748200 , _segSelfLink :: !(Maybe Text)
81758201 , _segName :: !(Maybe Text)
81768202 , _segId :: !(Maybe Text)
8177− , _segUpdated :: !(Maybe DateTime)
8203+ , _segUpdated :: !(Maybe DateTime')
81788204 , _segType :: !(Maybe Text)
81798205 , _segSegmentId :: !(Maybe Text)
81808206 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -8228,7 +8254,8 @@ segKind = lens _segKind (\ s a -> s{_segKind = a})
82288254-- | Time the segment was created.
82298255segCreated :: Lens' Segment (Maybe UTCTime)
82308256segCreated
8231− = lens _segCreated (\ s a -> s{_segCreated = a})
8257+ = lens _segCreated (\ s a -> s{_segCreated = a}) .
8258+ mapping _DateTime
82328259
82338260-- | Link for this segment.
82348261segSelfLink :: Lens' Segment (Maybe Text)
@@ -8246,7 +8273,8 @@ segId = lens _segId (\ s a -> s{_segId = a})
82468273-- | Time the segment was last modified.
82478274segUpdated :: Lens' Segment (Maybe UTCTime)
82488275segUpdated
8249− = lens _segUpdated (\ s a -> s{_segUpdated = a})
8276+ = lens _segUpdated (\ s a -> s{_segUpdated = a}) .
8277+ mapping _DateTime
82508278
82518279-- | Type for a segment. Possible values are \"BUILT_IN\" or \"CUSTOM\".
82528280segType :: Lens' Segment (Maybe Text)
@@ -8565,14 +8593,14 @@ data CustomDimension = CustomDimension
85658593 { _cddParentLink :: !(Maybe CustomDimensionParentLink)
85668594 , _cddWebPropertyId :: !(Maybe Text)
85678595 , _cddKind :: !Text
8568− , _cddCreated :: !(Maybe DateTime)
8596+ , _cddCreated :: !(Maybe DateTime')
85698597 , _cddActive :: !(Maybe Bool)
85708598 , _cddSelfLink :: !(Maybe Text)
85718599 , _cddAccountId :: !(Maybe Text)
85728600 , _cddName :: !(Maybe Text)
85738601 , _cddScope :: !(Maybe Text)
85748602 , _cddId :: !(Maybe Text)
8575− , _cddUpdated :: !(Maybe DateTime)
8603+ , _cddUpdated :: !(Maybe DateTime')
85768604 , _cddIndex :: !(Maybe Int32)
85778605 } deriving (Eq,Read,Show,Data,Typeable,Generic)
85788606
@@ -8642,7 +8670,8 @@ cddKind = lens _cddKind (\ s a -> s{_cddKind = a})
86428670-- | Time the custom dimension was created.
86438671cddCreated :: Lens' CustomDimension (Maybe UTCTime)
86448672cddCreated
8645− = lens _cddCreated (\ s a -> s{_cddCreated = a})
8673+ = lens _cddCreated (\ s a -> s{_cddCreated = a}) .
8674+ mapping _DateTime
86468675
86478676-- | Boolean indicating whether the custom dimension is active.
86488677cddActive :: Lens' CustomDimension (Maybe Bool)
@@ -8674,7 +8703,8 @@ cddId = lens _cddId (\ s a -> s{_cddId = a})
86748703-- | Time the custom dimension was last modified.
86758704cddUpdated :: Lens' CustomDimension (Maybe UTCTime)
86768705cddUpdated
8677− = lens _cddUpdated (\ s a -> s{_cddUpdated = a})
8706+ = lens _cddUpdated (\ s a -> s{_cddUpdated = a}) .
8707+ mapping _DateTime
86788708
86798709-- | Index of the custom dimension.
86808710cddIndex :: Lens' CustomDimension (Maybe Int32)
gogol-apps-calendar/gen/Network/Google/AppsCalendar/Types/Product.hs+44−25
@@ -329,7 +329,7 @@ data Event = Event
329329 , _eAttendees :: !(Maybe [EventAttendee])
330330 , _eReminders :: !(Maybe EventReminders)
331331 , _eKind :: !Text
332− , _eCreated :: !(Maybe DateTime)
332+ , _eCreated :: !(Maybe DateTime')
333333 , _eTransparency :: !Text
334334 , _eRecurringEventId :: !(Maybe Text)
335335 , _eStart :: !(Maybe EventDateTime)
@@ -347,7 +347,7 @@ data Event = Event
347347 , _eSource :: !(Maybe EventSource)
348348 , _eId :: !(Maybe Text)
349349 , _eHTMLLink :: !(Maybe Text)
350− , _eUpdated :: !(Maybe DateTime)
350+ , _eUpdated :: !(Maybe DateTime')
351351 , _eColorId :: !(Maybe Text)
352352 , _eAnyoneCanAddSelf :: !Bool
353353 , _eGuestsCanSeeOtherGuests :: !Bool
@@ -550,7 +550,9 @@ eKind = lens _eKind (\ s a -> s{_eKind = a})
550550
551551-- | Creation time of the event (as a RFC3339 timestamp). Read-only.
552552eCreated :: Lens' Event (Maybe UTCTime)
553−eCreated = lens _eCreated (\ s a -> s{_eCreated = a})
553+eCreated
554+ = lens _eCreated (\ s a -> s{_eCreated = a}) .
555+ mapping _DateTime
554556
555557-- | Whether the event blocks time on the calendar. Optional. Possible values
556558-- are: - \"opaque\" - The event blocks time on the calendar. This is the
@@ -687,7 +689,9 @@ eHTMLLink
687689
688690-- | Last modification time of the event (as a RFC3339 timestamp). Read-only.
689691eUpdated :: Lens' Event (Maybe UTCTime)
690−eUpdated = lens _eUpdated (\ s a -> s{_eUpdated = a})
692+eUpdated
693+ = lens _eUpdated (\ s a -> s{_eUpdated = a}) .
694+ mapping _DateTime
691695
692696-- | The color of the event. This is an ID referring to an entry in the event
693697-- section of the colors definition (see the colors endpoint). Optional.
@@ -1147,8 +1151,8 @@ instance ToJSON EventCreator where
11471151--
11481152-- /See:/ 'timePeriod' smart constructor.
11491153data TimePeriod = TimePeriod
1150− { _tpStart :: !(Maybe DateTime)
1151− , _tpEnd :: !(Maybe DateTime)
1154+ { _tpStart :: !(Maybe DateTime')
1155+ , _tpEnd :: !(Maybe DateTime')
11521156 } deriving (Eq,Read,Show,Data,Typeable,Generic)
11531157
11541158-- | Creates a value of 'TimePeriod' with the minimum fields required to make a request.
@@ -1168,11 +1172,15 @@ timePeriod =
11681172
11691173-- | The (inclusive) start of the time period.
11701174tpStart :: Lens' TimePeriod (Maybe UTCTime)
1171−tpStart = lens _tpStart (\ s a -> s{_tpStart = a})
1175+tpStart
1176+ = lens _tpStart (\ s a -> s{_tpStart = a}) .
1177+ mapping _DateTime
11721178
11731179-- | The (exclusive) end of the time period.
11741180tpEnd :: Lens' TimePeriod (Maybe UTCTime)
1175−tpEnd = lens _tpEnd (\ s a -> s{_tpEnd = a})
1181+tpEnd
1182+ = lens _tpEnd (\ s a -> s{_tpEnd = a}) .
1183+ mapping _DateTime
11761184
11771185instance FromJSON TimePeriod where
11781186 parseJSON
@@ -1733,7 +1741,7 @@ data Events = Events
17331741 , _eveKind :: !Text
17341742 , _eveItems :: !(Maybe [Event])
17351743 , _eveDefaultReminders :: !(Maybe [EventReminder])
1736− , _eveUpdated :: !(Maybe DateTime)
1744+ , _eveUpdated :: !(Maybe DateTime')
17371745 , _eveAccessRole :: !(Maybe Text)
17381746 , _eveTimeZone :: !(Maybe Text)
17391747 , _eveNextSyncToken :: !(Maybe Text)
@@ -1823,7 +1831,8 @@ eveDefaultReminders
18231831-- Read-only.
18241832eveUpdated :: Lens' Events (Maybe UTCTime)
18251833eveUpdated
1826− = lens _eveUpdated (\ s a -> s{_eveUpdated = a})
1834+ = lens _eveUpdated (\ s a -> s{_eveUpdated = a}) .
1835+ mapping _DateTime
18271836
18281837-- | The user\'s access role for this calendar. Read-only. Possible values
18291838-- are: - \"none\" - The user has no access. - \"freeBusyReader\" - The
@@ -1945,10 +1954,10 @@ instance ToJSON EventReminder where
19451954-- /See:/ 'freeBusyResponse' smart constructor.
19461955data FreeBusyResponse = FreeBusyResponse
19471956 { _fbrGroups :: !(Maybe FreeBusyResponseGroups)
1948− , _fbrTimeMin :: !(Maybe DateTime)
1957+ , _fbrTimeMin :: !(Maybe DateTime')
19491958 , _fbrKind :: !Text
19501959 , _fbrCalendars :: !(Maybe FreeBusyResponseCalendars)
1951− , _fbrTimeMax :: !(Maybe DateTime)
1960+ , _fbrTimeMax :: !(Maybe DateTime')
19521961 } deriving (Eq,Read,Show,Data,Typeable,Generic)
19531962
19541963-- | Creates a value of 'FreeBusyResponse' with the minimum fields required to make a request.
@@ -1983,7 +1992,8 @@ fbrGroups
19831992-- | The start of the interval.
19841993fbrTimeMin :: Lens' FreeBusyResponse (Maybe UTCTime)
19851994fbrTimeMin
1986− = lens _fbrTimeMin (\ s a -> s{_fbrTimeMin = a})
1995+ = lens _fbrTimeMin (\ s a -> s{_fbrTimeMin = a}) .
1996+ mapping _DateTime
19871997
19881998-- | Type of the resource (\"calendar#freeBusy\").
19891999fbrKind :: Lens' FreeBusyResponse Text
@@ -1997,7 +2007,8 @@ fbrCalendars
19972007-- | The end of the interval.
19982008fbrTimeMax :: Lens' FreeBusyResponse (Maybe UTCTime)
19992009fbrTimeMax
2000− = lens _fbrTimeMax (\ s a -> s{_fbrTimeMax = a})
2010+ = lens _fbrTimeMax (\ s a -> s{_fbrTimeMax = a}) .
2011+ mapping _DateTime
20012012
20022013instance FromJSON FreeBusyResponse where
20032014 parseJSON
@@ -2385,9 +2396,9 @@ instance ToJSON EventOrganizer where
23852396--
23862397-- /See:/ 'eventDateTime' smart constructor.
23872398data EventDateTime = EventDateTime
2388− { _edtDate :: !(Maybe Date)
2399+ { _edtDate :: !(Maybe Date')
23892400 , _edtTimeZone :: !(Maybe Text)
2390− , _edtDateTime :: !(Maybe DateTime)
2401+ , _edtDateTime :: !(Maybe DateTime')
23912402 } deriving (Eq,Read,Show,Data,Typeable,Generic)
23922403
23932404-- | Creates a value of 'EventDateTime' with the minimum fields required to make a request.
@@ -2409,8 +2420,10 @@ eventDateTime =
24092420 }
24102421
24112422-- | The date, in the format \"yyyy-mm-dd\", if this is an all-day event.
2412−edtDate :: Lens' EventDateTime (Maybe UTCTime)
2413−edtDate = lens _edtDate (\ s a -> s{_edtDate = a})
2423+edtDate :: Lens' EventDateTime (Maybe LocalTime)
2424+edtDate
2425+ = lens _edtDate (\ s a -> s{_edtDate = a}) .
2426+ mapping _Date
24142427
24152428-- | The time zone in which the time is specified. (Formatted as an IANA Time
24162429-- Zone Database name, e.g. \"Europe\/Zurich\".) For recurring events this
@@ -2426,7 +2439,8 @@ edtTimeZone
24262439-- explicitly specified in timeZone.
24272440edtDateTime :: Lens' EventDateTime (Maybe UTCTime)
24282441edtDateTime
2429− = lens _edtDateTime (\ s a -> s{_edtDateTime = a})
2442+ = lens _edtDateTime (\ s a -> s{_edtDateTime = a}) .
2443+ mapping _DateTime
24302444
24312445instance FromJSON EventDateTime where
24322446 parseJSON
@@ -2551,11 +2565,11 @@ instance ToJSON CalendarList where
25512565-- /See:/ 'freeBusyRequest' smart constructor.
25522566data FreeBusyRequest = FreeBusyRequest
25532567 { _fCalendarExpansionMax :: !(Maybe Int32)
2554− , _fTimeMin :: !(Maybe DateTime)
2568+ , _fTimeMin :: !(Maybe DateTime')
25552569 , _fItems :: !(Maybe [FreeBusyRequestItem])
25562570 , _fGroupExpansionMax :: !(Maybe Int32)
25572571 , _fTimeZone :: !Text
2558− , _fTimeMax :: !(Maybe DateTime)
2572+ , _fTimeMax :: !(Maybe DateTime')
25592573 } deriving (Eq,Read,Show,Data,Typeable,Generic)
25602574
25612575-- | Creates a value of 'FreeBusyRequest' with the minimum fields required to make a request.
@@ -2594,7 +2608,9 @@ fCalendarExpansionMax
25942608
25952609-- | The start of the interval for the query.
25962610fTimeMin :: Lens' FreeBusyRequest (Maybe UTCTime)
2597−fTimeMin = lens _fTimeMin (\ s a -> s{_fTimeMin = a})
2611+fTimeMin
2612+ = lens _fTimeMin (\ s a -> s{_fTimeMin = a}) .
2613+ mapping _DateTime
25982614
25992615-- | List of calendars and\/or groups to query.
26002616fItems :: Lens' FreeBusyRequest [FreeBusyRequestItem]
@@ -2617,7 +2633,9 @@ fTimeZone
26172633
26182634-- | The end of the interval for the query.
26192635fTimeMax :: Lens' FreeBusyRequest (Maybe UTCTime)
2620−fTimeMax = lens _fTimeMax (\ s a -> s{_fTimeMax = a})
2636+fTimeMax
2637+ = lens _fTimeMax (\ s a -> s{_fTimeMax = a}) .
2638+ mapping _DateTime
26212639
26222640instance FromJSON FreeBusyRequest where
26232641 parseJSON
@@ -2884,7 +2902,7 @@ data Colors = Colors
28842902 { _colEvent :: !(Maybe ColorsEvent)
28852903 , _colKind :: !Text
28862904 , _colCalendar :: !(Maybe ColorsCalendar)
2887− , _colUpdated :: !(Maybe DateTime)
2905+ , _colUpdated :: !(Maybe DateTime')
28882906 } deriving (Eq,Read,Show,Data,Typeable,Generic)
28892907
28902908-- | Creates a value of 'Colors' with the minimum fields required to make a request.
@@ -2929,7 +2947,8 @@ colCalendar
29292947-- Read-only.
29302948colUpdated :: Lens' Colors (Maybe UTCTime)
29312949colUpdated
2932− = lens _colUpdated (\ s a -> s{_colUpdated = a})
2950+ = lens _colUpdated (\ s a -> s{_colUpdated = a}) .
2951+ mapping _DateTime
29332952
29342953instance FromJSON Colors where
29352954 parseJSON
gogol-apps-calendar/gen/Network/Google/Resource/Calendar/Events/Instances.hs+8−6
@@ -66,8 +66,8 @@ type EventsInstancesResource =
6666 QueryParam "originalStart" Text :>
6767 QueryParam "pageToken" Text :>
6868 QueryParam "showDeleted" Bool :>
69− QueryParam "timeMax" DateTime :>
70− QueryParam "timeMin" DateTime :>
69+ QueryParam "timeMax" DateTime' :>
70+ QueryParam "timeMin" DateTime' :>
7171 QueryParam "timeZone" Text :>
7272 QueryParam "quotaUser" Text :>
7373 QueryParam "prettyPrint" Bool :>
@@ -86,7 +86,7 @@ data EventsInstances' = EventsInstances'
8686 { _eiQuotaUser :: !(Maybe Text)
8787 , _eiCalendarId :: !Text
8888 , _eiPrettyPrint :: !Bool
89− , _eiTimeMin :: !(Maybe DateTime)
89+ , _eiTimeMin :: !(Maybe DateTime')
9090 , _eiUserIP :: !(Maybe Text)
9191 , _eiShowDeleted :: !(Maybe Bool)
9292 , _eiOriginalStart :: !(Maybe Text)
@@ -97,7 +97,7 @@ data EventsInstances' = EventsInstances'
9797 , _eiOAuthToken :: !(Maybe OAuthToken)
9898 , _eiMaxResults :: !(Maybe Int32)
9999 , _eiAlwaysIncludeEmail :: !(Maybe Bool)
100− , _eiTimeMax :: !(Maybe DateTime)
100+ , _eiTimeMax :: !(Maybe DateTime')
101101 , _eiEventId :: !Text
102102 , _eiFields :: !(Maybe Text)
103103 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -189,7 +189,8 @@ eiPrettyPrint
189189-- with mandatory time zone offset.
190190eiTimeMin :: Lens' EventsInstances' (Maybe UTCTime)
191191eiTimeMin
192− = lens _eiTimeMin (\ s a -> s{_eiTimeMin = a})
192+ = lens _eiTimeMin (\ s a -> s{_eiTimeMin = a}) .
193+ mapping _DateTime
193194
194195-- | IP address of the site where the request originates. Use this if you
195196-- want to enforce per-user limits.
@@ -263,7 +264,8 @@ eiAlwaysIncludeEmail
263264-- timestamp with mandatory time zone offset.
264265eiTimeMax :: Lens' EventsInstances' (Maybe UTCTime)
265266eiTimeMax
266− = lens _eiTimeMax (\ s a -> s{_eiTimeMax = a})
267+ = lens _eiTimeMax (\ s a -> s{_eiTimeMax = a}) .
268+ mapping _DateTime
267269
268270-- | Recurring event identifier.
269271eiEventId :: Lens' EventsInstances' Text
gogol-apps-calendar/gen/Network/Google/Resource/Calendar/Events/List.hs+11−8
@@ -78,10 +78,10 @@ type EventsListResource =
7878 QueryParam "showHiddenInvitations" Bool :>
7979 QueryParam "singleEvents" Bool :>
8080 QueryParam "syncToken" Text :>
81− QueryParam "timeMax" DateTime :>
82− QueryParam "timeMin" DateTime :>
81+ QueryParam "timeMax" DateTime' :>
82+ QueryParam "timeMin" DateTime' :>
8383 QueryParam "timeZone" Text :>
84− QueryParam "updatedMin" DateTime :>
84+ QueryParam "updatedMin" DateTime' :>
8585 QueryParam "quotaUser" Text :>
8686 QueryParam "prettyPrint" Bool :>
8787 QueryParam "userIp" Text :>
@@ -102,7 +102,7 @@ data EventsList' = EventsList'
102102 , _elQuotaUser :: !(Maybe Text)
103103 , _elCalendarId :: !Text
104104 , _elPrettyPrint :: !Bool
105− , _elTimeMin :: !(Maybe DateTime)
105+ , _elTimeMin :: !(Maybe DateTime')
106106 , _elOrderBy :: !(Maybe CalendarEventsListOrderBy)
107107 , _elSingleEvents :: !(Maybe Bool)
108108 , _elPrivateExtendedProperty :: !(Maybe Text)
@@ -113,14 +113,14 @@ data EventsList' = EventsList'
113113 , _elMaxAttendees :: !(Maybe Int32)
114114 , _elKey :: !(Maybe Key)
115115 , _elICalUId :: !(Maybe Text)
116− , _elUpdatedMin :: !(Maybe DateTime)
116+ , _elUpdatedMin :: !(Maybe DateTime')
117117 , _elPageToken :: !(Maybe Text)
118118 , _elTimeZone :: !(Maybe Text)
119119 , _elOAuthToken :: !(Maybe OAuthToken)
120120 , _elShowHiddenInvitations :: !(Maybe Bool)
121121 , _elMaxResults :: !(Maybe Int32)
122122 , _elAlwaysIncludeEmail :: !(Maybe Bool)
123− , _elTimeMax :: !(Maybe DateTime)
123+ , _elTimeMax :: !(Maybe DateTime')
124124 , _elFields :: !(Maybe Text)
125125 } deriving (Eq,Read,Show,Data,Typeable,Generic)
126126
@@ -249,7 +249,8 @@ elPrettyPrint
249249-- 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.
250250elTimeMin :: Lens' EventsList' (Maybe UTCTime)
251251elTimeMin
252− = lens _elTimeMin (\ s a -> s{_elTimeMin = a})
252+ = lens _elTimeMin (\ s a -> s{_elTimeMin = a}) .
253+ mapping _DateTime
253254
254255-- | The order of the events returned in the result. Optional. The default is
255256-- an unspecified, stable order.
@@ -329,6 +330,7 @@ elICalUId
329330elUpdatedMin :: Lens' EventsList' (Maybe UTCTime)
330331elUpdatedMin
331332 = lens _elUpdatedMin (\ s a -> s{_elUpdatedMin = a})
333+ . mapping _DateTime
332334
333335-- | Token specifying which result page to return. Optional.
334336elPageToken :: Lens' EventsList' (Maybe Text)
@@ -378,7 +380,8 @@ elAlwaysIncludeEmail
378380-- provided but will be ignored.
379381elTimeMax :: Lens' EventsList' (Maybe UTCTime)
380382elTimeMax
381− = lens _elTimeMax (\ s a -> s{_elTimeMax = a})
383+ = lens _elTimeMax (\ s a -> s{_elTimeMax = a}) .
384+ mapping _DateTime
382385
383386-- | Selector specifying which fields to include in a partial response.
384387elFields :: Lens' EventsList' (Maybe Text)
gogol-apps-calendar/gen/Network/Google/Resource/Calendar/Events/Watch.hs+12−8
@@ -80,10 +80,11 @@ type EventsWatchResource =
8080 QueryParam "showHiddenInvitations" Bool :>
8181 QueryParam "singleEvents" Bool :>
8282 QueryParam "syncToken" Text :>
83− QueryParam "timeMax" DateTime :>
84− QueryParam "timeMin" DateTime :>
83+ QueryParam "timeMax" DateTime' :>
84+ QueryParam "timeMin" DateTime' :>
8585 QueryParam "timeZone" Text :>
86− QueryParam "updatedMin" DateTime :>
86+ QueryParam "updatedMin" DateTime'
87+ :>
8788 QueryParam "quotaUser" Text :>
8889 QueryParam "prettyPrint" Bool
8990 :>
@@ -111,7 +112,7 @@ data EventsWatch' = EventsWatch'
111112 , _ewQuotaUser :: !(Maybe Text)
112113 , _ewCalendarId :: !Text
113114 , _ewPrettyPrint :: !Bool
114− , _ewTimeMin :: !(Maybe DateTime)
115+ , _ewTimeMin :: !(Maybe DateTime')
115116 , _ewOrderBy :: !(Maybe CalendarEventsWatchOrderBy)
116117 , _ewSingleEvents :: !(Maybe Bool)
117118 , _ewPrivateExtendedProperty :: !(Maybe Text)
@@ -123,14 +124,14 @@ data EventsWatch' = EventsWatch'
123124 , _ewMaxAttendees :: !(Maybe Int32)
124125 , _ewKey :: !(Maybe Key)
125126 , _ewICalUId :: !(Maybe Text)
126− , _ewUpdatedMin :: !(Maybe DateTime)
127+ , _ewUpdatedMin :: !(Maybe DateTime')
127128 , _ewPageToken :: !(Maybe Text)
128129 , _ewTimeZone :: !(Maybe Text)
129130 , _ewOAuthToken :: !(Maybe OAuthToken)
130131 , _ewShowHiddenInvitations :: !(Maybe Bool)
131132 , _ewMaxResults :: !(Maybe Int32)
132133 , _ewAlwaysIncludeEmail :: !(Maybe Bool)
133− , _ewTimeMax :: !(Maybe DateTime)
134+ , _ewTimeMax :: !(Maybe DateTime')
134135 , _ewFields :: !(Maybe Text)
135136 } deriving (Eq,Read,Show,Data,Typeable,Generic)
136137
@@ -263,7 +264,8 @@ ewPrettyPrint
263264-- 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored.
264265ewTimeMin :: Lens' EventsWatch' (Maybe UTCTime)
265266ewTimeMin
266− = lens _ewTimeMin (\ s a -> s{_ewTimeMin = a})
267+ = lens _ewTimeMin (\ s a -> s{_ewTimeMin = a}) .
268+ mapping _DateTime
267269
268270-- | The order of the events returned in the result. Optional. The default is
269271-- an unspecified, stable order.
@@ -348,6 +350,7 @@ ewICalUId
348350ewUpdatedMin :: Lens' EventsWatch' (Maybe UTCTime)
349351ewUpdatedMin
350352 = lens _ewUpdatedMin (\ s a -> s{_ewUpdatedMin = a})
353+ . mapping _DateTime
351354
352355-- | Token specifying which result page to return. Optional.
353356ewPageToken :: Lens' EventsWatch' (Maybe Text)
@@ -397,7 +400,8 @@ ewAlwaysIncludeEmail
397400-- provided but will be ignored.
398401ewTimeMax :: Lens' EventsWatch' (Maybe UTCTime)
399402ewTimeMax
400− = lens _ewTimeMax (\ s a -> s{_ewTimeMax = a})
403+ = lens _ewTimeMax (\ s a -> s{_ewTimeMax = a}) .
404+ mapping _DateTime
401405
402406-- | Selector specifying which fields to include in a partial response.
403407ewFields :: Lens' EventsWatch' (Maybe Text)
gogol-apps-tasks/gen/Network/Google/AppsTasks/Types/Product.hs+13−8
@@ -214,7 +214,7 @@ data TaskList = TaskList
214214 , _tasKind :: !Text
215215 , _tasSelfLink :: !(Maybe Text)
216216 , _tasId :: !(Maybe Text)
217− , _tasUpdated :: !(Maybe DateTime)
217+ , _tasUpdated :: !(Maybe DateTime')
218218 , _tasTitle :: !(Maybe Text)
219219 } deriving (Eq,Read,Show,Data,Typeable,Generic)
220220
@@ -266,7 +266,8 @@ tasId = lens _tasId (\ s a -> s{_tasId = a})
266266-- | Last modification time of the task list (as a RFC 3339 timestamp).
267267tasUpdated :: Lens' TaskList (Maybe UTCTime)
268268tasUpdated
269− = lens _tasUpdated (\ s a -> s{_tasUpdated = a})
269+ = lens _tasUpdated (\ s a -> s{_tasUpdated = a}) .
270+ mapping _DateTime
270271
271272-- | Title of the task list.
272273tasTitle :: Lens' TaskList (Maybe Text)
@@ -298,15 +299,15 @@ instance ToJSON TaskList where
298299data Task = Task
299300 { _ttParent :: !(Maybe Text)
300301 , _ttStatus :: !(Maybe Text)
301− , _ttDue :: !(Maybe DateTime)
302+ , _ttDue :: !(Maybe DateTime')
302303 , _ttEtag :: !(Maybe Text)
303304 , _ttKind :: !Text
304305 , _ttSelfLink :: !(Maybe Text)
305306 , _ttHidden :: !(Maybe Bool)
306− , _ttCompleted :: !(Maybe DateTime)
307+ , _ttCompleted :: !(Maybe DateTime')
307308 , _ttId :: !(Maybe Text)
308309 , _ttDeleted :: !(Maybe Bool)
309− , _ttUpdated :: !(Maybe DateTime)
310+ , _ttUpdated :: !(Maybe DateTime')
310311 , _ttTitle :: !(Maybe Text)
311312 , _ttLinks :: !(Maybe [TaskLinks])
312313 , _ttNotes :: !(Maybe Text)
@@ -379,7 +380,9 @@ ttStatus = lens _ttStatus (\ s a -> s{_ttStatus = a})
379380
380381-- | Due date of the task (as a RFC 3339 timestamp). Optional.
381382ttDue :: Lens' Task (Maybe UTCTime)
382−ttDue = lens _ttDue (\ s a -> s{_ttDue = a})
383+ttDue
384+ = lens _ttDue (\ s a -> s{_ttDue = a}) .
385+ mapping _DateTime
383386
384387-- | ETag of the resource.
385388ttEtag :: Lens' Task (Maybe Text)
@@ -405,7 +408,8 @@ ttHidden = lens _ttHidden (\ s a -> s{_ttHidden = a})
405408-- omitted if the task has not been completed.
406409ttCompleted :: Lens' Task (Maybe UTCTime)
407410ttCompleted
408− = lens _ttCompleted (\ s a -> s{_ttCompleted = a})
411+ = lens _ttCompleted (\ s a -> s{_ttCompleted = a}) .
412+ mapping _DateTime
409413
410414-- | Task identifier.
411415ttId :: Lens' Task (Maybe Text)
@@ -419,7 +423,8 @@ ttDeleted
419423-- | Last modification time of the task (as a RFC 3339 timestamp).
420424ttUpdated :: Lens' Task (Maybe UTCTime)
421425ttUpdated
422− = lens _ttUpdated (\ s a -> s{_ttUpdated = a})
426+ = lens _ttUpdated (\ s a -> s{_ttUpdated = a}) .
427+ mapping _DateTime
423428
424429-- | Title of the task.
425430ttTitle :: Lens' Task (Maybe Text)
gogol-blogger/gen/Network/Google/Blogger/Types/Product.hs+28−16
@@ -497,7 +497,7 @@ data Post = Post
497497 , _posReaderComments :: !(Maybe Text)
498498 , _posLocation :: !(Maybe PostLocation)
499499 , _posKind :: !Text
500− , _posPublished :: !(Maybe DateTime)
500+ , _posPublished :: !(Maybe DateTime')
501501 , _posURL :: !(Maybe Text)
502502 , _posBlog :: !(Maybe PostBlog)
503503 , _posCustomMetaData :: !(Maybe Text)
@@ -507,7 +507,7 @@ data Post = Post
507507 , _posAuthor :: !(Maybe PostAuthor)
508508 , _posId :: !(Maybe Text)
509509 , _posLabels :: !(Maybe [Text])
510− , _posUpdated :: !(Maybe DateTime)
510+ , _posUpdated :: !(Maybe DateTime')
511511 , _posTitleLink :: !(Maybe Text)
512512 , _posTitle :: !(Maybe Text)
513513 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -613,6 +613,7 @@ posKind = lens _posKind (\ s a -> s{_posKind = a})
613613posPublished :: Lens' Post (Maybe UTCTime)
614614posPublished
615615 = lens _posPublished (\ s a -> s{_posPublished = a})
616+ . mapping _DateTime
616617
617618-- | The URL where this Post is displayed.
618619posURL :: Lens' Post (Maybe Text)
@@ -662,7 +663,8 @@ posLabels
662663-- | RFC 3339 date-time when this Post was last updated.
663664posUpdated :: Lens' Post (Maybe UTCTime)
664665posUpdated
665− = lens _posUpdated (\ s a -> s{_posUpdated = a})
666+ = lens _posUpdated (\ s a -> s{_posUpdated = a}) .
667+ mapping _DateTime
666668
667669-- | The title link URL, similar to atom\'s related link.
668670posTitleLink :: Lens' Post (Maybe Text)
@@ -725,14 +727,14 @@ data Page = Page
725727 { _pagStatus :: !(Maybe Text)
726728 , _pagEtag :: !(Maybe Text)
727729 , _pagKind :: !Text
728− , _pagPublished :: !(Maybe DateTime)
730+ , _pagPublished :: !(Maybe DateTime')
729731 , _pagURL :: !(Maybe Text)
730732 , _pagBlog :: !(Maybe PageBlog)
731733 , _pagContent :: !(Maybe Text)
732734 , _pagSelfLink :: !(Maybe Text)
733735 , _pagAuthor :: !(Maybe PageAuthor)
734736 , _pagId :: !(Maybe Text)
735− , _pagUpdated :: !(Maybe DateTime)
737+ , _pagUpdated :: !(Maybe DateTime')
736738 , _pagTitle :: !(Maybe Text)
737739 } deriving (Eq,Read,Show,Data,Typeable,Generic)
738740
@@ -798,6 +800,7 @@ pagKind = lens _pagKind (\ s a -> s{_pagKind = a})
798800pagPublished :: Lens' Page (Maybe UTCTime)
799801pagPublished
800802 = lens _pagPublished (\ s a -> s{_pagPublished = a})
803+ . mapping _DateTime
801804
802805-- | The URL that this Page is displayed at.
803806pagURL :: Lens' Page (Maybe Text)
@@ -829,7 +832,8 @@ pagId = lens _pagId (\ s a -> s{_pagId = a})
829832-- | RFC 3339 date-time when this Page was last updated.
830833pagUpdated :: Lens' Page (Maybe UTCTime)
831834pagUpdated
832− = lens _pagUpdated (\ s a -> s{_pagUpdated = a})
835+ = lens _pagUpdated (\ s a -> s{_pagUpdated = a}) .
836+ mapping _DateTime
833837
834838-- | The title of this entity. This is the name displayed in the Admin user
835839-- interface.
@@ -1030,13 +1034,13 @@ data Blog = Blog
10301034 , _bKind :: !Text
10311035 , _bPages :: !(Maybe BlogPages)
10321036 , _bLocale :: !(Maybe BlogLocale)
1033− , _bPublished :: !(Maybe DateTime)
1037+ , _bPublished :: !(Maybe DateTime')
10341038 , _bURL :: !(Maybe Text)
10351039 , _bCustomMetaData :: !(Maybe Text)
10361040 , _bSelfLink :: !(Maybe Text)
10371041 , _bName :: !(Maybe Text)
10381042 , _bId :: !(Maybe Text)
1039− , _bUpdated :: !(Maybe DateTime)
1043+ , _bUpdated :: !(Maybe DateTime')
10401044 , _bPosts :: !(Maybe BlogPosts)
10411045 , _bDescription :: !(Maybe Text)
10421046 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -1108,7 +1112,8 @@ bLocale = lens _bLocale (\ s a -> s{_bLocale = a})
11081112-- | RFC 3339 date-time when this blog was published.
11091113bPublished :: Lens' Blog (Maybe UTCTime)
11101114bPublished
1111− = lens _bPublished (\ s a -> s{_bPublished = a})
1115+ = lens _bPublished (\ s a -> s{_bPublished = a}) .
1116+ mapping _DateTime
11121117
11131118-- | The URL where this blog is published.
11141119bURL :: Lens' Blog (Maybe Text)
@@ -1135,7 +1140,9 @@ bId = lens _bId (\ s a -> s{_bId = a})
11351140
11361141-- | RFC 3339 date-time when this blog was last updated.
11371142bUpdated :: Lens' Blog (Maybe UTCTime)
1138−bUpdated = lens _bUpdated (\ s a -> s{_bUpdated = a})
1143+bUpdated
1144+ = lens _bUpdated (\ s a -> s{_bUpdated = a}) .
1145+ mapping _DateTime
11391146
11401147-- | The container of posts in this blog.
11411148bPosts :: Lens' Blog (Maybe BlogPosts)
@@ -1334,7 +1341,7 @@ instance ToJSON PageList where
13341341data User = User
13351342 { _uBlogs :: !(Maybe UserBlogs)
13361343 , _uKind :: !Text
1337− , _uCreated :: !(Maybe DateTime)
1344+ , _uCreated :: !(Maybe DateTime')
13381345 , _uLocale :: !(Maybe UserLocale)
13391346 , _uURL :: !(Maybe Text)
13401347 , _uSelfLink :: !(Maybe Text)
@@ -1389,7 +1396,9 @@ uKind = lens _uKind (\ s a -> s{_uKind = a})
13891396
13901397-- | The timestamp of when this profile was created, in seconds since epoch.
13911398uCreated :: Lens' User (Maybe UTCTime)
1392−uCreated = lens _uCreated (\ s a -> s{_uCreated = a})
1399+uCreated
1400+ = lens _uCreated (\ s a -> s{_uCreated = a}) .
1401+ mapping _DateTime
13931402
13941403-- | This user\'s locale
13951404uLocale :: Lens' User (Maybe UserLocale)
@@ -1869,13 +1878,13 @@ data Comment = Comment
18691878 { _cStatus :: !(Maybe Text)
18701879 , _cPost :: !(Maybe CommentPost)
18711880 , _cKind :: !Text
1872− , _cPublished :: !(Maybe DateTime)
1881+ , _cPublished :: !(Maybe DateTime')
18731882 , _cBlog :: !(Maybe CommentBlog)
18741883 , _cContent :: !(Maybe Text)
18751884 , _cSelfLink :: !(Maybe Text)
18761885 , _cAuthor :: !(Maybe CommentAuthor)
18771886 , _cId :: !(Maybe Text)
1878− , _cUpdated :: !(Maybe DateTime)
1887+ , _cUpdated :: !(Maybe DateTime')
18791888 , _cInReplyTo :: !(Maybe CommentInReplyTo)
18801889 } deriving (Eq,Read,Show,Data,Typeable,Generic)
18811890
@@ -1936,7 +1945,8 @@ cKind = lens _cKind (\ s a -> s{_cKind = a})
19361945-- | RFC 3339 date-time when this comment was published.
19371946cPublished :: Lens' Comment (Maybe UTCTime)
19381947cPublished
1939− = lens _cPublished (\ s a -> s{_cPublished = a})
1948+ = lens _cPublished (\ s a -> s{_cPublished = a}) .
1949+ mapping _DateTime
19401950
19411951-- | Data about the blog containing this comment.
19421952cBlog :: Lens' Comment (Maybe CommentBlog)
@@ -1961,7 +1971,9 @@ cId = lens _cId (\ s a -> s{_cId = a})
19611971
19621972-- | RFC 3339 date-time when this comment was last updated.
19631973cUpdated :: Lens' Comment (Maybe UTCTime)
1964−cUpdated = lens _cUpdated (\ s a -> s{_cUpdated = a})
1974+cUpdated
1975+ = lens _cUpdated (\ s a -> s{_cUpdated = a}) .
1976+ mapping _DateTime
19651977
19661978-- | Data about the comment this is in reply to.
19671979cInReplyTo :: Lens' Comment (Maybe CommentInReplyTo)
gogol-blogger/gen/Network/Google/Resource/Blogger/Comments/List.hs+8−6
@@ -58,11 +58,11 @@ type CommentsListResource =
5858 "posts" :>
5959 Capture "postId" Text :>
6060 "comments" :>
61− QueryParam "endDate" DateTime :>
61+ QueryParam "endDate" DateTime' :>
6262 QueryParam "fetchBodies" Bool :>
6363 QueryParam "maxResults" Word32 :>
6464 QueryParam "pageToken" Text :>
65− QueryParam "startDate" DateTime :>
65+ QueryParam "startDate" DateTime' :>
6666 QueryParams "status" BloggerCommentsListStatus :>
6767 QueryParam "view" BloggerCommentsListView :>
6868 QueryParam "quotaUser" Text :>
@@ -82,9 +82,9 @@ data CommentsList' = CommentsList'
8282 , _clQuotaUser :: !(Maybe Text)
8383 , _clPrettyPrint :: !Bool
8484 , _clUserIP :: !(Maybe Text)
85− , _clEndDate :: !(Maybe DateTime)
85+ , _clEndDate :: !(Maybe DateTime')
8686 , _clBlogId :: !Text
87− , _clStartDate :: !(Maybe DateTime)
87+ , _clStartDate :: !(Maybe DateTime')
8888 , _clKey :: !(Maybe Key)
8989 , _clFetchBodies :: !(Maybe Bool)
9090 , _clView :: !(Maybe BloggerCommentsListView)
@@ -175,7 +175,8 @@ clUserIP = lens _clUserIP (\ s a -> s{_clUserIP = a})
175175-- | Latest date of comment to fetch, a date-time with RFC 3339 formatting.
176176clEndDate :: Lens' CommentsList' (Maybe UTCTime)
177177clEndDate
178− = lens _clEndDate (\ s a -> s{_clEndDate = a})
178+ = lens _clEndDate (\ s a -> s{_clEndDate = a}) .
179+ mapping _DateTime
179180
180181-- | ID of the blog to fetch comments from.
181182clBlogId :: Lens' CommentsList' Text
@@ -184,7 +185,8 @@ clBlogId = lens _clBlogId (\ s a -> s{_clBlogId = a})
184185-- | Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
185186clStartDate :: Lens' CommentsList' (Maybe UTCTime)
186187clStartDate
187− = lens _clStartDate (\ s a -> s{_clStartDate = a})
188+ = lens _clStartDate (\ s a -> s{_clStartDate = a}) .
189+ mapping _DateTime
188190
189191-- | API key. Your API key identifies your project and provides you with API
190192-- access, quota, and reports. Required unless you provide an OAuth 2.0
gogol-blogger/gen/Network/Google/Resource/Blogger/Comments/ListByBlog.hs+7−5
@@ -54,11 +54,11 @@ type CommentsListByBlogResource =
5454 "blogs" :>
5555 Capture "blogId" Text :>
5656 "comments" :>
57− QueryParam "endDate" DateTime :>
57+ QueryParam "endDate" DateTime' :>
5858 QueryParam "fetchBodies" Bool :>
5959 QueryParam "maxResults" Word32 :>
6060 QueryParam "pageToken" Text :>
61− QueryParam "startDate" DateTime :>
61+ QueryParam "startDate" DateTime' :>
6262 QueryParams "status" BloggerCommentsListByBlogStatus
6363 :>
6464 QueryParam "quotaUser" Text :>
@@ -78,9 +78,9 @@ data CommentsListByBlog' = CommentsListByBlog'
7878 , _clbbQuotaUser :: !(Maybe Text)
7979 , _clbbPrettyPrint :: !Bool
8080 , _clbbUserIP :: !(Maybe Text)
81− , _clbbEndDate :: !(Maybe DateTime)
81+ , _clbbEndDate :: !(Maybe DateTime')
8282 , _clbbBlogId :: !Text
83− , _clbbStartDate :: !(Maybe DateTime)
83+ , _clbbStartDate :: !(Maybe DateTime')
8484 , _clbbKey :: !(Maybe Key)
8585 , _clbbFetchBodies :: !(Maybe Bool)
8686 , _clbbPageToken :: !(Maybe Text)
@@ -165,7 +165,8 @@ clbbUserIP
165165-- | Latest date of comment to fetch, a date-time with RFC 3339 formatting.
166166clbbEndDate :: Lens' CommentsListByBlog' (Maybe UTCTime)
167167clbbEndDate
168− = lens _clbbEndDate (\ s a -> s{_clbbEndDate = a})
168+ = lens _clbbEndDate (\ s a -> s{_clbbEndDate = a}) .
169+ mapping _DateTime
169170
170171-- | ID of the blog to fetch comments from.
171172clbbBlogId :: Lens' CommentsListByBlog' Text
@@ -177,6 +178,7 @@ clbbStartDate :: Lens' CommentsListByBlog' (Maybe UTCTime)
177178clbbStartDate
178179 = lens _clbbStartDate
179180 (\ s a -> s{_clbbStartDate = a})
181+ . mapping _DateTime
180182
181183-- | API key. Your API key identifies your project and provides you with API
182184-- access, quota, and reports. Required unless you provide an OAuth 2.0
gogol-blogger/gen/Network/Google/Resource/Blogger/PostUserInfos/List.hs+7−5
@@ -62,14 +62,14 @@ type PostUserInfosListResource =
6262 "blogs" :>
6363 Capture "blogId" Text :>
6464 "posts" :>
65− QueryParam "endDate" DateTime :>
65+ QueryParam "endDate" DateTime' :>
6666 QueryParam "fetchBodies" Bool :>
6767 QueryParam "labels" Text :>
6868 QueryParam "maxResults" Word32 :>
6969 QueryParam "orderBy" BloggerPostUserInfosListOrderBy
7070 :>
7171 QueryParam "pageToken" Text :>
72− QueryParam "startDate" DateTime :>
72+ QueryParam "startDate" DateTime' :>
7373 QueryParams "status" BloggerPostUserInfosListStatus
7474 :>
7575 QueryParam "view" BloggerPostUserInfosListView :>
@@ -94,10 +94,10 @@ data PostUserInfosList' = PostUserInfosList'
9494 , _puilPrettyPrint :: !Bool
9595 , _puilOrderBy :: !BloggerPostUserInfosListOrderBy
9696 , _puilUserIP :: !(Maybe Text)
97− , _puilEndDate :: !(Maybe DateTime)
97+ , _puilEndDate :: !(Maybe DateTime')
9898 , _puilBlogId :: !Text
9999 , _puilUserId :: !Text
100− , _puilStartDate :: !(Maybe DateTime)
100+ , _puilStartDate :: !(Maybe DateTime')
101101 , _puilKey :: !(Maybe Key)
102102 , _puilFetchBodies :: !Bool
103103 , _puilView :: !(Maybe BloggerPostUserInfosListView)
@@ -202,7 +202,8 @@ puilUserIP
202202-- | Latest post date to fetch, a date-time with RFC 3339 formatting.
203203puilEndDate :: Lens' PostUserInfosList' (Maybe UTCTime)
204204puilEndDate
205− = lens _puilEndDate (\ s a -> s{_puilEndDate = a})
205+ = lens _puilEndDate (\ s a -> s{_puilEndDate = a}) .
206+ mapping _DateTime
206207
207208-- | ID of the blog to fetch posts from.
208209puilBlogId :: Lens' PostUserInfosList' Text
@@ -220,6 +221,7 @@ puilStartDate :: Lens' PostUserInfosList' (Maybe UTCTime)
220221puilStartDate
221222 = lens _puilStartDate
222223 (\ s a -> s{_puilStartDate = a})
224+ . mapping _DateTime
223225
224226-- | API key. Your API key identifies your project and provides you with API
225227-- access, quota, and reports. Required unless you provide an OAuth 2.0
gogol-blogger/gen/Network/Google/Resource/Blogger/Posts/List.hs+7−5
@@ -58,14 +58,14 @@ type PostsListResource =
5858 "blogs" :>
5959 Capture "blogId" Text :>
6060 "posts" :>
61− QueryParam "endDate" DateTime :>
61+ QueryParam "endDate" DateTime' :>
6262 QueryParam "fetchBodies" Bool :>
6363 QueryParam "fetchImages" Bool :>
6464 QueryParam "labels" Text :>
6565 QueryParam "maxResults" Word32 :>
6666 QueryParam "orderBy" BloggerPostsListOrderBy :>
6767 QueryParam "pageToken" Text :>
68− QueryParam "startDate" DateTime :>
68+ QueryParam "startDate" DateTime' :>
6969 QueryParams "status" BloggerPostsListStatus :>
7070 QueryParam "view" BloggerPostsListView :>
7171 QueryParam "quotaUser" Text :>
@@ -87,9 +87,9 @@ data PostsList' = PostsList'
8787 , _pllOrderBy :: !BloggerPostsListOrderBy
8888 , _pllUserIP :: !(Maybe Text)
8989 , _pllFetchImages :: !(Maybe Bool)
90− , _pllEndDate :: !(Maybe DateTime)
90+ , _pllEndDate :: !(Maybe DateTime')
9191 , _pllBlogId :: !Text
92− , _pllStartDate :: !(Maybe DateTime)
92+ , _pllStartDate :: !(Maybe DateTime')
9393 , _pllKey :: !(Maybe Key)
9494 , _pllFetchBodies :: !Bool
9595 , _pllView :: !(Maybe BloggerPostsListView)
@@ -199,7 +199,8 @@ pllFetchImages
199199-- | Latest post date to fetch, a date-time with RFC 3339 formatting.
200200pllEndDate :: Lens' PostsList' (Maybe UTCTime)
201201pllEndDate
202− = lens _pllEndDate (\ s a -> s{_pllEndDate = a})
202+ = lens _pllEndDate (\ s a -> s{_pllEndDate = a}) .
203+ mapping _DateTime
203204
204205-- | ID of the blog to fetch posts from.
205206pllBlogId :: Lens' PostsList' Text
@@ -210,6 +211,7 @@ pllBlogId
210211pllStartDate :: Lens' PostsList' (Maybe UTCTime)
211212pllStartDate
212213 = lens _pllStartDate (\ s a -> s{_pllStartDate = a})
214+ . mapping _DateTime
213215
214216-- | API key. Your API key identifies your project and provides you with API
215217-- access, quota, and reports. Required unless you provide an OAuth 2.0
gogol-blogger/gen/Network/Google/Resource/Blogger/Posts/Publish.hs+3−2
@@ -53,7 +53,7 @@ type PostsPublishResource =
5353 "posts" :>
5454 Capture "postId" Text :>
5555 "publish" :>
56− QueryParam "publishDate" DateTime :>
56+ QueryParam "publishDate" DateTime' :>
5757 QueryParam "quotaUser" Text :>
5858 QueryParam "prettyPrint" Bool :>
5959 QueryParam "userIp" Text :>
@@ -69,7 +69,7 @@ type PostsPublishResource =
6969data PostsPublish' = PostsPublish'
7070 { _posQuotaUser :: !(Maybe Text)
7171 , _posPrettyPrint :: !Bool
72− , _posPublishDate :: !(Maybe DateTime)
72+ , _posPublishDate :: !(Maybe DateTime')
7373 , _posUserIP :: !(Maybe Text)
7474 , _posBlogId :: !Text
7575 , _posKey :: !(Maybe Key)
@@ -137,6 +137,7 @@ posPublishDate :: Lens' PostsPublish' (Maybe UTCTime)
137137posPublishDate
138138 = lens _posPublishDate
139139 (\ s a -> s{_posPublishDate = a})
140+ . mapping _DateTime
140141
141142-- | IP address of the site where the request originates. Use this if you
142143-- want to enforce per-user limits.
gogol-books/gen/Network/Google/Books/Types/Product.hs+40−24
@@ -390,7 +390,7 @@ data Annotation = Annotation
390390 , _aaPageIds :: !(Maybe [Text])
391391 , _aaKind :: !Text
392392 , _aaData :: !(Maybe Text)
393− , _aaCreated :: !(Maybe DateTime)
393+ , _aaCreated :: !(Maybe DateTime')
394394 , _aaAfterSelectedText :: !(Maybe Text)
395395 , _aaSelfLink :: !(Maybe Text)
396396 , _aaCurrentVersionRanges :: !(Maybe AnnotationCurrentVersionRanges)
@@ -398,7 +398,7 @@ data Annotation = Annotation
398398 , _aaBeforeSelectedText :: !(Maybe Text)
399399 , _aaId :: !(Maybe Text)
400400 , _aaDeleted :: !(Maybe Bool)
401− , _aaUpdated :: !(Maybe DateTime)
401+ , _aaUpdated :: !(Maybe DateTime')
402402 , _aaLayerId :: !(Maybe Text)
403403 } deriving (Eq,Read,Show,Data,Typeable,Generic)
404404
@@ -503,7 +503,8 @@ aaData = lens _aaData (\ s a -> s{_aaData = a})
503503-- | Timestamp for the created time of this annotation.
504504aaCreated :: Lens' Annotation (Maybe UTCTime)
505505aaCreated
506− = lens _aaCreated (\ s a -> s{_aaCreated = a})
506+ = lens _aaCreated (\ s a -> s{_aaCreated = a}) .
507+ mapping _DateTime
507508
508509-- | Anchor text after excerpt. For requests, if the user bookmarked a screen
509510-- that has no flowing text on it, then this field should be empty.
@@ -547,7 +548,8 @@ aaDeleted
547548-- | Timestamp for the last time this annotation was modified.
548549aaUpdated :: Lens' Annotation (Maybe UTCTime)
549550aaUpdated
550− = lens _aaUpdated (\ s a -> s{_aaUpdated = a})
551+ = lens _aaUpdated (\ s a -> s{_aaUpdated = a}) .
552+ mapping _DateTime
551553
552554-- | The layer this annotation is for.
553555aaLayerId :: Lens' Annotation (Maybe Text)
@@ -759,7 +761,7 @@ data Layersummary = Layersummary
759761 , _lSelfLink :: !(Maybe Text)
760762 , _lVolumeId :: !(Maybe Text)
761763 , _lId :: !(Maybe Text)
762− , _lUpdated :: !(Maybe DateTime)
764+ , _lUpdated :: !(Maybe DateTime')
763765 , _lLayerId :: !(Maybe Text)
764766 } deriving (Eq,Read,Show,Data,Typeable,Generic)
765767
@@ -877,7 +879,9 @@ lId = lens _lId (\ s a -> s{_lId = a})
877879-- | Timestamp for the last time an item in this layer was updated. (RFC 3339
878880-- UTC date-time format).
879881lUpdated :: Lens' Layersummary (Maybe UTCTime)
880−lUpdated = lens _lUpdated (\ s a -> s{_lUpdated = a})
882+lUpdated
883+ = lens _lUpdated (\ s a -> s{_lUpdated = a}) .
884+ mapping _DateTime
881885
882886-- | The layer id for this summary.
883887lLayerId :: Lens' Layersummary (Maybe Text)
@@ -933,7 +937,7 @@ data VolumeUserInfo = VolumeUserInfo
933937 , _vuiIsPreOrdered :: !(Maybe Bool)
934938 , _vuiReview :: !(Maybe Review)
935939 , _vuiRentalPeriod :: !(Maybe VolumeUserInfoRentalPeriod)
936− , _vuiUpdated :: !(Maybe DateTime)
940+ , _vuiUpdated :: !(Maybe DateTime')
937941 , _vuiIsUploaded :: !(Maybe Bool)
938942 , _vuiIsInMyBooks :: !(Maybe Bool)
939943 , _vuiReadingPosition :: !(Maybe ReadingPosition)
@@ -1026,7 +1030,8 @@ vuiRentalPeriod
10261030-- UTC date-time format).
10271031vuiUpdated :: Lens' VolumeUserInfo (Maybe UTCTime)
10281032vuiUpdated
1029− = lens _vuiUpdated (\ s a -> s{_vuiUpdated = a})
1033+ = lens _vuiUpdated (\ s a -> s{_vuiUpdated = a}) .
1034+ mapping _DateTime
10301035
10311036-- | Whether or not this volume was user uploaded.
10321037vuiIsUploaded :: Lens' VolumeUserInfo (Maybe Bool)
@@ -1150,7 +1155,7 @@ data Annotationdata = Annotationdata
11501155 , _annnAnnotationType :: !(Maybe Text)
11511156 , _annnVolumeId :: !(Maybe Text)
11521157 , _annnId :: !(Maybe Text)
1153− , _annnUpdated :: !(Maybe DateTime)
1158+ , _annnUpdated :: !(Maybe DateTime')
11541159 , _annnLayerId :: !(Maybe Text)
11551160 } deriving (Eq,Read,Show,Data,Typeable,Generic)
11561161
@@ -1227,7 +1232,8 @@ annnId = lens _annnId (\ s a -> s{_annnId = a})
12271232-- date-time format).
12281233annnUpdated :: Lens' Annotationdata (Maybe UTCTime)
12291234annnUpdated
1230− = lens _annnUpdated (\ s a -> s{_annnUpdated = a})
1235+ = lens _annnUpdated (\ s a -> s{_annnUpdated = a}) .
1236+ mapping _DateTime
12311237
12321238-- | The Layer id for this data. *
12331239annnLayerId :: Lens' Annotationdata (Maybe Text)
@@ -1278,7 +1284,7 @@ data Volumeannotation = Volumeannotation
12781284 , _volVolumeId :: !(Maybe Text)
12791285 , _volId :: !(Maybe Text)
12801286 , _volDeleted :: !(Maybe Bool)
1281− , _volUpdated :: !(Maybe DateTime)
1287+ , _volUpdated :: !(Maybe DateTime')
12821288 , _volLayerId :: !(Maybe Text)
12831289 } deriving (Eq,Read,Show,Data,Typeable,Generic)
12841290
@@ -1401,7 +1407,8 @@ volDeleted
14011407-- date-time format).
14021408volUpdated :: Lens' Volumeannotation (Maybe UTCTime)
14031409volUpdated
1404− = lens _volUpdated (\ s a -> s{_volUpdated = a})
1410+ = lens _volUpdated (\ s a -> s{_volUpdated = a}) .
1411+ mapping _DateTime
14051412
14061413-- | The Layer this annotation is for.
14071414volLayerId :: Lens' Volumeannotation (Maybe Text)
@@ -1868,7 +1875,7 @@ instance ToJSON VolumeAccessInfo where
18681875data VolumeUserInfoCopy = VolumeUserInfoCopy
18691876 { _vuicLimitType :: !(Maybe Text)
18701877 , _vuicAllowedCharacterCount :: !(Maybe Int32)
1871− , _vuicUpdated :: !(Maybe DateTime)
1878+ , _vuicUpdated :: !(Maybe DateTime')
18721879 , _vuicRemainingCharacterCount :: !(Maybe Int32)
18731880 } deriving (Eq,Read,Show,Data,Typeable,Generic)
18741881
@@ -1905,7 +1912,8 @@ vuicAllowedCharacterCount
19051912
19061913vuicUpdated :: Lens' VolumeUserInfoCopy (Maybe UTCTime)
19071914vuicUpdated
1908− = lens _vuicUpdated (\ s a -> s{_vuicUpdated = a})
1915+ = lens _vuicUpdated (\ s a -> s{_vuicUpdated = a}) .
1916+ mapping _DateTime
19091917
19101918vuicRemainingCharacterCount :: Lens' VolumeUserInfoCopy (Maybe Int32)
19111919vuicRemainingCharacterCount
@@ -2071,13 +2079,13 @@ instance ToJSON DictlayerdataDictWordsExamples where
20712079-- /See:/ 'bookshelf' smart constructor.
20722080data Bookshelf = Bookshelf
20732081 { _bAccess :: !(Maybe Text)
2074− , _bVolumesLastUpdated :: !(Maybe DateTime)
2082+ , _bVolumesLastUpdated :: !(Maybe DateTime')
20752083 , _bKind :: !Text
2076− , _bCreated :: !(Maybe DateTime)
2084+ , _bCreated :: !(Maybe DateTime')
20772085 , _bVolumeCount :: !(Maybe Int32)
20782086 , _bSelfLink :: !(Maybe Text)
20792087 , _bId :: !(Maybe Int32)
2080− , _bUpdated :: !(Maybe DateTime)
2088+ , _bUpdated :: !(Maybe DateTime')
20812089 , _bTitle :: !(Maybe Text)
20822090 , _bDescription :: !(Maybe Text)
20832091 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -2131,6 +2139,7 @@ bVolumesLastUpdated :: Lens' Bookshelf (Maybe UTCTime)
21312139bVolumesLastUpdated
21322140 = lens _bVolumesLastUpdated
21332141 (\ s a -> s{_bVolumesLastUpdated = a})
2142+ . mapping _DateTime
21342143
21352144-- | Resource type for bookshelf metadata.
21362145bKind :: Lens' Bookshelf Text
@@ -2139,7 +2148,9 @@ bKind = lens _bKind (\ s a -> s{_bKind = a})
21392148-- | Created time for this bookshelf (formatted UTC timestamp with
21402149-- millisecond resolution).
21412150bCreated :: Lens' Bookshelf (Maybe UTCTime)
2142−bCreated = lens _bCreated (\ s a -> s{_bCreated = a})
2151+bCreated
2152+ = lens _bCreated (\ s a -> s{_bCreated = a}) .
2153+ mapping _DateTime
21432154
21442155-- | Number of volumes in this bookshelf.
21452156bVolumeCount :: Lens' Bookshelf (Maybe Int32)
@@ -2158,7 +2169,9 @@ bId = lens _bId (\ s a -> s{_bId = a})
21582169-- | Last modified time of this bookshelf (formatted UTC timestamp with
21592170-- millisecond resolution).
21602171bUpdated :: Lens' Bookshelf (Maybe UTCTime)
2161−bUpdated = lens _bUpdated (\ s a -> s{_bUpdated = a})
2172+bUpdated
2173+ = lens _bUpdated (\ s a -> s{_bUpdated = a}) .
2174+ mapping _DateTime
21622175
21632176-- | Title of this bookshelf.
21642177bTitle :: Lens' Bookshelf (Maybe Text)
@@ -3970,7 +3983,7 @@ instance ToJSON VolumeLayerInfo where
39703983-- /See:/ 'volumeSaleInfo' smart constructor.
39713984data VolumeSaleInfo = VolumeSaleInfo
39723985 { _vsiCountry :: !(Maybe Text)
3973− , _vsiOnSaleDate :: !(Maybe DateTime)
3986+ , _vsiOnSaleDate :: !(Maybe DateTime')
39743987 , _vsiListPrice :: !(Maybe VolumeSaleInfoListPrice)
39753988 , _vsiRetailPrice :: !(Maybe VolumeSaleInfoRetailPrice)
39763989 , _vsiOffers :: !(Maybe [VolumeSaleInfoOffers])
@@ -4023,6 +4036,7 @@ vsiOnSaleDate :: Lens' VolumeSaleInfo (Maybe UTCTime)
40234036vsiOnSaleDate
40244037 = lens _vsiOnSaleDate
40254038 (\ s a -> s{_vsiOnSaleDate = a})
4039+ . mapping _DateTime
40264040
40274041-- | Suggested retail price. (In LITE projection.)
40284042vsiListPrice :: Lens' VolumeSaleInfo (Maybe VolumeSaleInfoListPrice)
@@ -4615,7 +4629,7 @@ instance ToJSON AnnotationClientVersionRanges where
46154629data AnnotationsSummaryLayers = AnnotationsSummaryLayers
46164630 { _aslLimitType :: !(Maybe Text)
46174631 , _aslAllowedCharacterCount :: !(Maybe Int32)
4618− , _aslUpdated :: !(Maybe DateTime)
4632+ , _aslUpdated :: !(Maybe DateTime')
46194633 , _aslLayerId :: !(Maybe Text)
46204634 , _aslRemainingCharacterCount :: !(Maybe Int32)
46214635 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -4655,7 +4669,8 @@ aslAllowedCharacterCount
46554669
46564670aslUpdated :: Lens' AnnotationsSummaryLayers (Maybe UTCTime)
46574671aslUpdated
4658− = lens _aslUpdated (\ s a -> s{_aslUpdated = a})
4672+ = lens _aslUpdated (\ s a -> s{_aslUpdated = a}) .
4673+ mapping _DateTime
46594674
46604675aslLayerId :: Lens' AnnotationsSummaryLayers (Maybe Text)
46614676aslLayerId
@@ -4790,7 +4805,7 @@ data ReadingPosition = ReadingPosition
47904805 , _rpGbImagePosition :: !(Maybe Text)
47914806 , _rpPdfPosition :: !(Maybe Text)
47924807 , _rpVolumeId :: !(Maybe Text)
4793− , _rpUpdated :: !(Maybe DateTime)
4808+ , _rpUpdated :: !(Maybe DateTime')
47944809 , _rpGbTextPosition :: !(Maybe Text)
47954810 } deriving (Eq,Read,Show,Data,Typeable,Generic)
47964811
@@ -4855,7 +4870,8 @@ rpVolumeId
48554870-- timestamp with millisecond resolution).
48564871rpUpdated :: Lens' ReadingPosition (Maybe UTCTime)
48574872rpUpdated
4858− = lens _rpUpdated (\ s a -> s{_rpUpdated = a})
4873+ = lens _rpUpdated (\ s a -> s{_rpUpdated = a}) .
4874+ mapping _DateTime
48594875
48604876-- | Position in a volume for text-based content.
48614877rpGbTextPosition :: Lens' ReadingPosition (Maybe Text)
gogol-datastore/gen/Network/Google/Datastore/Types/Product.hs+4−2
@@ -199,7 +199,7 @@ instance ToJSON QueryResultBatch where
199199data Property = Property
200200 { _pKeyValue :: !(Maybe Key)
201201 , _pBlobKeyValue :: !(Maybe Text)
202− , _pDateTimeValue :: !(Maybe DateTime)
202+ , _pDateTimeValue :: !(Maybe DateTime')
203203 , _pIntegerValue :: !(Maybe Int64)
204204 , _pEntityValue :: !(Maybe Entity)
205205 , _pDoubleValue :: !(Maybe Double)
@@ -272,6 +272,7 @@ pDateTimeValue :: Lens' Property (Maybe UTCTime)
272272pDateTimeValue
273273 = lens _pDateTimeValue
274274 (\ s a -> s{_pDateTimeValue = a})
275+ . mapping _DateTime
275276
276277-- | An integer value.
277278pIntegerValue :: Lens' Property (Maybe Int64)
@@ -865,7 +866,7 @@ instance ToJSON AllocateIdsResponse where
865866data Value = Value
866867 { _vKeyValue :: !(Maybe Key)
867868 , _vBlobKeyValue :: !(Maybe Text)
868− , _vDateTimeValue :: !(Maybe DateTime)
869+ , _vDateTimeValue :: !(Maybe DateTime')
869870 , _vIntegerValue :: !(Maybe Int64)
870871 , _vEntityValue :: !(Maybe Entity)
871872 , _vDoubleValue :: !(Maybe Double)
@@ -938,6 +939,7 @@ vDateTimeValue :: Lens' Value (Maybe UTCTime)
938939vDateTimeValue
939940 = lens _vDateTimeValue
940941 (\ s a -> s{_vDateTimeValue = a})
942+ . mapping _DateTime
941943
942944-- | An integer value.
943945vIntegerValue :: Lens' Value (Maybe Int64)
gogol-dfareporting/gen/Network/Google/DFAReporting/Types/Product.hs+90−62
@@ -3414,9 +3414,9 @@ instance ToJSON FloodlightConfigurationsListResponse
34143414-- /See:/ 'dimensionValueRequest' smart constructor.
34153415data DimensionValueRequest = DimensionValueRequest
34163416 { _dvrKind :: !Text
3417− , _dvrEndDate :: !(Maybe Date)
3417+ , _dvrEndDate :: !(Maybe Date')
34183418 , _dvrFilters :: !(Maybe [DimensionFilter])
3419− , _dvrStartDate :: !(Maybe Date)
3419+ , _dvrStartDate :: !(Maybe Date')
34203420 , _dvrDimensionName :: !(Maybe Text)
34213421 } deriving (Eq,Read,Show,Data,Typeable,Generic)
34223422
@@ -3451,9 +3451,10 @@ dvrKind = lens _dvrKind (\ s a -> s{_dvrKind = a})
34513451
34523452-- | The end date of the date range for which to retrieve dimension values. A
34533453-- string of the format \"yyyy-MM-dd\".
3454−dvrEndDate :: Lens' DimensionValueRequest (Maybe UTCTime)
3454+dvrEndDate :: Lens' DimensionValueRequest (Maybe LocalTime)
34553455dvrEndDate
3456− = lens _dvrEndDate (\ s a -> s{_dvrEndDate = a})
3456+ = lens _dvrEndDate (\ s a -> s{_dvrEndDate = a}) .
3457+ mapping _Date
34573458
34583459-- | The list of filters by which to filter values. The filters are ANDed.
34593460dvrFilters :: Lens' DimensionValueRequest [DimensionFilter]
@@ -3464,9 +3465,10 @@ dvrFilters
34643465
34653466-- | The start date of the date range for which to retrieve dimension values.
34663467-- A string of the format \"yyyy-MM-dd\".
3467−dvrStartDate :: Lens' DimensionValueRequest (Maybe UTCTime)
3468+dvrStartDate :: Lens' DimensionValueRequest (Maybe LocalTime)
34683469dvrStartDate
34693470 = lens _dvrStartDate (\ s a -> s{_dvrStartDate = a})
3471+ . mapping _Date
34703472
34713473-- | The name of the dimension for which values should be requested.
34723474dvrDimensionName :: Lens' DimensionValueRequest (Maybe Text)
@@ -3507,7 +3509,7 @@ data Ad = Ad
35073509 , _addAudienceSegmentId :: !(Maybe Int64)
35083510 , _addDayPartTargeting :: !(Maybe DayPartTargeting)
35093511 , _addSize :: !(Maybe Size)
3510− , _addStartTime :: !(Maybe DateTime)
3512+ , _addStartTime :: !(Maybe DateTime')
35113513 , _addKind :: !Text
35123514 , _addClickThroughURLSuffixProperties :: !(Maybe ClickThroughURLSuffixProperties)
35133515 , _addCampaignIdDimensionValue :: !(Maybe DimensionValue)
@@ -3523,7 +3525,7 @@ data Ad = Ad
35233525 , _addAccountId :: !(Maybe Int64)
35243526 , _addName :: !(Maybe Text)
35253527 , _addKeyValueTargetingExpression :: !(Maybe KeyValueTargetingExpression)
3526− , _addEndTime :: !(Maybe DateTime)
3528+ , _addEndTime :: !(Maybe DateTime')
35273529 , _addCreateInfo :: !(Maybe LastModifiedInfo)
35283530 , _addLastModifiedInfo :: !(Maybe LastModifiedInfo)
35293531 , _addId :: !(Maybe Int64)
@@ -3716,6 +3718,7 @@ addSize = lens _addSize (\ s a -> s{_addSize = a})
37163718addStartTime :: Lens' Ad (Maybe UTCTime)
37173719addStartTime
37183720 = lens _addStartTime (\ s a -> s{_addStartTime = a})
3721+ . mapping _DateTime
37193722
37203723-- | Identifies what kind of resource this is. Value: the fixed string
37213724-- \"dfareporting#ad\".
@@ -3819,7 +3822,8 @@ addKeyValueTargetingExpression
38193822-- start time. This is a required field on insertion.
38203823addEndTime :: Lens' Ad (Maybe UTCTime)
38213824addEndTime
3822− = lens _addEndTime (\ s a -> s{_addEndTime = a})
3825+ = lens _addEndTime (\ s a -> s{_addEndTime = a}) .
3826+ mapping _DateTime
38233827
38243828-- | Information about the creation of this ad.This is a read-only field.
38253829addCreateInfo :: Lens' Ad (Maybe LastModifiedInfo)
@@ -4520,10 +4524,10 @@ data Project = Project
45204524 , _pBudget :: !(Maybe Int64)
45214525 , _pKind :: !Text
45224526 , _pAdvertiserId :: !(Maybe Int64)
4523− , _pEndDate :: !(Maybe Date)
4527+ , _pEndDate :: !(Maybe Date')
45244528 , _pOverview :: !(Maybe Text)
45254529 , _pTargetImpressions :: !(Maybe Int64)
4526− , _pStartDate :: !(Maybe Date)
4530+ , _pStartDate :: !(Maybe Date')
45274531 , _pTargetCpcNanos :: !(Maybe Int64)
45284532 , _pAccountId :: !(Maybe Int64)
45294533 , _pName :: !(Maybe Text)
@@ -4651,8 +4655,10 @@ pAdvertiserId
46514655 (\ s a -> s{_pAdvertiserId = a})
46524656
46534657-- | End date of the project.
4654−pEndDate :: Lens' Project (Maybe UTCTime)
4655−pEndDate = lens _pEndDate (\ s a -> s{_pEndDate = a})
4658+pEndDate :: Lens' Project (Maybe LocalTime)
4659+pEndDate
4660+ = lens _pEndDate (\ s a -> s{_pEndDate = a}) .
4661+ mapping _Date
46564662
46574663-- | Overview of this project.
46584664pOverview :: Lens' Project (Maybe Text)
@@ -4666,9 +4672,10 @@ pTargetImpressions
46664672 (\ s a -> s{_pTargetImpressions = a})
46674673
46684674-- | Start date of the project.
4669−pStartDate :: Lens' Project (Maybe UTCTime)
4675+pStartDate :: Lens' Project (Maybe LocalTime)
46704676pStartDate
4671− = lens _pStartDate (\ s a -> s{_pStartDate = a})
4677+ = lens _pStartDate (\ s a -> s{_pStartDate = a}) .
4678+ mapping _Date
46724679
46734680-- | CPC that the advertiser is targeting.
46744681pTargetCpcNanos :: Lens' Project (Maybe Int64)
@@ -4931,11 +4938,11 @@ instance ToJSON PlacementStrategiesListResponse where
49314938--
49324939-- /See:/ 'pricingSchedule' smart constructor.
49334940data PricingSchedule = PricingSchedule
4934− { _psTestingStartDate :: !(Maybe Date)
4941+ { _psTestingStartDate :: !(Maybe Date')
49354942 , _psFloodlightActivityId :: !(Maybe Int64)
4936− , _psEndDate :: !(Maybe Date)
4943+ , _psEndDate :: !(Maybe Date')
49374944 , _psDisregardOverdelivery :: !(Maybe Bool)
4938− , _psStartDate :: !(Maybe Date)
4945+ , _psStartDate :: !(Maybe Date')
49394946 , _psCapCostOption :: !(Maybe PricingScheduleCapCostOption)
49404947 , _psPricingType :: !(Maybe PricingSchedulePricingType)
49414948 , _psPricingPeriods :: !(Maybe [PricingSchedulePricingPeriod])
@@ -4980,10 +4987,11 @@ pricingSchedule =
49804987
49814988-- | Testing start date of this placement. The hours, minutes, and seconds of
49824989-- the start date should not be set, as doing so will result in an error.
4983−psTestingStartDate :: Lens' PricingSchedule (Maybe UTCTime)
4990+psTestingStartDate :: Lens' PricingSchedule (Maybe LocalTime)
49844991psTestingStartDate
49854992 = lens _psTestingStartDate
49864993 (\ s a -> s{_psTestingStartDate = a})
4994+ . mapping _Date
49874995
49884996-- | Floodlight activity ID associated with this placement. This field should
49894997-- be set when placement pricing type is set to PRICING_TYPE_CPA.
@@ -4998,9 +5006,10 @@ psFloodlightActivityId
49985006-- effective placement date is just that day only, 6\/25\/2015. The hours,
49995007-- minutes, and seconds of the end date should not be set, as doing so will
50005008-- result in an error. This field is required on insertion.
5001−psEndDate :: Lens' PricingSchedule (Maybe UTCTime)
5009+psEndDate :: Lens' PricingSchedule (Maybe LocalTime)
50025010psEndDate
5003− = lens _psEndDate (\ s a -> s{_psEndDate = a})
5011+ = lens _psEndDate (\ s a -> s{_psEndDate = a}) .
5012+ mapping _Date
50045013
50055014-- | Whether cap costs are ignored by ad serving.
50065015psDisregardOverdelivery :: Lens' PricingSchedule (Maybe Bool)
@@ -5012,9 +5021,10 @@ psDisregardOverdelivery
50125021-- the campaign start date. The hours, minutes, and seconds of the start
50135022-- date should not be set, as doing so will result in an error. This field
50145023-- is required on insertion.
5015−psStartDate :: Lens' PricingSchedule (Maybe UTCTime)
5024+psStartDate :: Lens' PricingSchedule (Maybe LocalTime)
50165025psStartDate
5017− = lens _psStartDate (\ s a -> s{_psStartDate = a})
5026+ = lens _psStartDate (\ s a -> s{_psStartDate = a}) .
5027+ mapping _Date
50185028
50195029-- | Placement cap cost option.
50205030psCapCostOption :: Lens' PricingSchedule (Maybe PricingScheduleCapCostOption)
@@ -5800,8 +5810,8 @@ instance ToJSON Country where
58005810--
58015811-- /See:/ 'pricing' smart constructor.
58025812data Pricing = Pricing
5803− { _priEndDate :: !(Maybe Date)
5804− , _priStartDate :: !(Maybe Date)
5813+ { _priEndDate :: !(Maybe Date')
5814+ , _priStartDate :: !(Maybe Date')
58055815 , _priGroupType :: !(Maybe PricingGroupType)
58065816 , _priPricingType :: !(Maybe PricingPricingType)
58075817 , _priFlights :: !(Maybe [Flight])
@@ -5836,14 +5846,16 @@ pricing =
58365846 }
58375847
58385848-- | End date of this inventory item.
5839−priEndDate :: Lens' Pricing (Maybe UTCTime)
5849+priEndDate :: Lens' Pricing (Maybe LocalTime)
58405850priEndDate
5841− = lens _priEndDate (\ s a -> s{_priEndDate = a})
5851+ = lens _priEndDate (\ s a -> s{_priEndDate = a}) .
5852+ mapping _Date
58425853
58435854-- | Start date of this inventory item.
5844−priStartDate :: Lens' Pricing (Maybe UTCTime)
5855+priStartDate :: Lens' Pricing (Maybe LocalTime)
58455856priStartDate
58465857 = lens _priStartDate (\ s a -> s{_priStartDate = a})
5858+ . mapping _Date
58475859
58485860-- | Group type of this inventory item if it represents a placement group. Is
58495861-- null otherwise. There are two type of placement groups:
@@ -6065,8 +6077,8 @@ instance ToJSON Dimension where
60656077-- /See:/ 'flight' smart constructor.
60666078data Flight = Flight
60676079 { _fRateOrCost :: !(Maybe Int64)
6068− , _fEndDate :: !(Maybe Date)
6069− , _fStartDate :: !(Maybe Date)
6080+ , _fEndDate :: !(Maybe Date')
6081+ , _fStartDate :: !(Maybe Date')
60706082 , _fUnits :: !(Maybe Int64)
60716083 } deriving (Eq,Read,Show,Data,Typeable,Generic)
60726084
@@ -6097,13 +6109,16 @@ fRateOrCost
60976109 = lens _fRateOrCost (\ s a -> s{_fRateOrCost = a})
60986110
60996111-- | Inventory item flight end date.
6100−fEndDate :: Lens' Flight (Maybe UTCTime)
6101−fEndDate = lens _fEndDate (\ s a -> s{_fEndDate = a})
6112+fEndDate :: Lens' Flight (Maybe LocalTime)
6113+fEndDate
6114+ = lens _fEndDate (\ s a -> s{_fEndDate = a}) .
6115+ mapping _Date
61026116
61036117-- | Inventory item flight start date.
6104−fStartDate :: Lens' Flight (Maybe UTCTime)
6118+fStartDate :: Lens' Flight (Maybe LocalTime)
61056119fStartDate
6106− = lens _fStartDate (\ s a -> s{_fStartDate = a})
6120+ = lens _fStartDate (\ s a -> s{_fStartDate = a}) .
6121+ mapping _Date
61076122
61086123-- | Units of this flight.
61096124fUnits :: Lens' Flight (Maybe Int64)
@@ -7372,8 +7387,8 @@ instance ToJSON SiteContact where
73727387-- /See:/ 'dateRange' smart constructor.
73737388data DateRange = DateRange
73747389 { _drKind :: !Text
7375− , _drEndDate :: !(Maybe Date)
7376− , _drStartDate :: !(Maybe Date)
7390+ , _drEndDate :: !(Maybe Date')
7391+ , _drStartDate :: !(Maybe Date')
73777392 , _drRelativeDateRange :: !(Maybe DateRangeRelativeDateRange)
73787393 } deriving (Eq,Read,Show,Data,Typeable,Generic)
73797394
@@ -7404,15 +7419,17 @@ drKind = lens _drKind (\ s a -> s{_drKind = a})
74047419
74057420-- | The end date of the date range, inclusive. A string of the format:
74067421-- \"yyyy-MM-dd\".
7407−drEndDate :: Lens' DateRange (Maybe UTCTime)
7422+drEndDate :: Lens' DateRange (Maybe LocalTime)
74087423drEndDate
7409− = lens _drEndDate (\ s a -> s{_drEndDate = a})
7424+ = lens _drEndDate (\ s a -> s{_drEndDate = a}) .
7425+ mapping _Date
74107426
74117427-- | The start date of the date range, inclusive. A string of the format:
74127428-- \"yyyy-MM-dd\".
7413−drStartDate :: Lens' DateRange (Maybe UTCTime)
7429+drStartDate :: Lens' DateRange (Maybe LocalTime)
74147430drStartDate
7415− = lens _drStartDate (\ s a -> s{_drStartDate = a})
7431+ = lens _drStartDate (\ s a -> s{_drStartDate = a}) .
7432+ mapping _Date
74167433
74177434-- | The date range relative to the date of when the report is run.
74187435drRelativeDateRange :: Lens' DateRange (Maybe DateRangeRelativeDateRange)
@@ -8362,12 +8379,12 @@ data Campaign = Campaign
83628379 , _camKind :: !Text
83638380 , _camClickThroughURLSuffixProperties :: !(Maybe ClickThroughURLSuffixProperties)
83648381 , _camAdvertiserId :: !(Maybe Int64)
8365− , _camEndDate :: !(Maybe Date)
8382+ , _camEndDate :: !(Maybe Date')
83668383 , _camAdvertiserIdDimensionValue :: !(Maybe DimensionValue)
83678384 , _camIdDimensionValue :: !(Maybe DimensionValue)
83688385 , _camEventTagOverrides :: !(Maybe [EventTagOverride])
83698386 , _camLookbackConfiguration :: !(Maybe LookbackConfiguration)
8370− , _camStartDate :: !(Maybe Date)
8387+ , _camStartDate :: !(Maybe Date')
83718388 , _camAccountId :: !(Maybe Int64)
83728389 , _camComscoreVceEnabled :: !(Maybe Bool)
83738390 , _camName :: !(Maybe Text)
@@ -8524,9 +8541,10 @@ camAdvertiserId
85248541-- day only, 6\/25\/2015. The hours, minutes, and seconds of the end date
85258542-- should not be set, as doing so will result in an error. This is a
85268543-- required field.
8527−camEndDate :: Lens' Campaign (Maybe UTCTime)
8544+camEndDate :: Lens' Campaign (Maybe LocalTime)
85288545camEndDate
8529− = lens _camEndDate (\ s a -> s{_camEndDate = a})
8546+ = lens _camEndDate (\ s a -> s{_camEndDate = a}) .
8547+ mapping _Date
85308548
85318549-- | Dimension value for the advertiser ID of this campaign. This is a
85328550-- read-only, auto-generated field.
@@ -8560,9 +8578,10 @@ camLookbackConfiguration
85608578-- | Date on which the campaign starts running. The start date can be any
85618579-- date. The hours, minutes, and seconds of the start date should not be
85628580-- set, as doing so will result in an error. This is a required field.
8563−camStartDate :: Lens' Campaign (Maybe UTCTime)
8581+camStartDate :: Lens' Campaign (Maybe LocalTime)
85648582camStartDate
85658583 = lens _camStartDate (\ s a -> s{_camStartDate = a})
8584+ . mapping _Date
85668585
85678586-- | Account ID of this campaign. This is a read-only field that can be left
85688587-- blank.
@@ -12782,7 +12801,7 @@ data ChangeLog = ChangeLog
1278212801 , _clFieldName :: !(Maybe Text)
1278312802 , _clId :: !(Maybe Int64)
1278412803 , _clSubAccountId :: !(Maybe Int64)
12785− , _clChangeTime :: !(Maybe DateTime)
12804+ , _clChangeTime :: !(Maybe DateTime')
1278612805 } deriving (Eq,Read,Show,Data,Typeable,Generic)
1278712806
1278812807-- | Creates a value of 'ChangeLog' with the minimum fields required to make a request.
@@ -12910,6 +12929,7 @@ clSubAccountId
1291012929clChangeTime :: Lens' ChangeLog (Maybe UTCTime)
1291112930clChangeTime
1291212931 = lens _clChangeTime (\ s a -> s{_clChangeTime = a})
12932+ . mapping _DateTime
1291312933
1291412934instance FromJSON ChangeLog where
1291512935 parseJSON
@@ -14346,9 +14366,9 @@ instance ToJSON DimensionFilter where
1434614366--
1434714367-- /See:/ 'pricingSchedulePricingPeriod' smart constructor.
1434814368data PricingSchedulePricingPeriod = PricingSchedulePricingPeriod
14349− { _psppEndDate :: !(Maybe Date)
14369+ { _psppEndDate :: !(Maybe Date')
1435014370 , _psppRateOrCostNanos :: !(Maybe Int64)
14351− , _psppStartDate :: !(Maybe Date)
14371+ , _psppStartDate :: !(Maybe Date')
1435214372 , _psppUnits :: !(Maybe Int64)
1435314373 , _psppPricingComment :: !(Maybe Text)
1435414374 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -14384,9 +14404,10 @@ pricingSchedulePricingPeriod =
1438414404-- the effective pricing period date is just that day only, 6\/25\/2015.
1438514405-- The hours, minutes, and seconds of the end date should not be set, as
1438614406-- doing so will result in an error.
14387−psppEndDate :: Lens' PricingSchedulePricingPeriod (Maybe UTCTime)
14407+psppEndDate :: Lens' PricingSchedulePricingPeriod (Maybe LocalTime)
1438814408psppEndDate
14389− = lens _psppEndDate (\ s a -> s{_psppEndDate = a})
14409+ = lens _psppEndDate (\ s a -> s{_psppEndDate = a}) .
14410+ mapping _Date
1439014411
1439114412-- | Rate or cost of this pricing period.
1439214413psppRateOrCostNanos :: Lens' PricingSchedulePricingPeriod (Maybe Int64)
@@ -14397,10 +14418,11 @@ psppRateOrCostNanos
1439714418-- | Pricing period start date. This date must be later than, or the same day
1439814419-- as, the placement start date. The hours, minutes, and seconds of the
1439914420-- start date should not be set, as doing so will result in an error.
14400−psppStartDate :: Lens' PricingSchedulePricingPeriod (Maybe UTCTime)
14421+psppStartDate :: Lens' PricingSchedulePricingPeriod (Maybe LocalTime)
1440114422psppStartDate
1440214423 = lens _psppStartDate
1440314424 (\ s a -> s{_psppStartDate = a})
14425+ . mapping _Date
1440414426
1440514427-- | Units of this pricing period.
1440614428psppUnits :: Lens' PricingSchedulePricingPeriod (Maybe Int64)
@@ -14915,7 +14937,7 @@ instance ToJSON RichMediaExitOverride where
1491514937-- /See:/ 'creativeAssignment' smart constructor.
1491614938data CreativeAssignment = CreativeAssignment
1491714939 { _caCreativeGroupAssignments :: !(Maybe [CreativeGroupAssignment])
14918− , _caStartTime :: !(Maybe DateTime)
14940+ , _caStartTime :: !(Maybe DateTime')
1491914941 , _caWeight :: !(Maybe Int32)
1492014942 , _caRichMediaExitOverrides :: !(Maybe [RichMediaExitOverride])
1492114943 , _caSSLCompliant :: !(Maybe Bool)
@@ -14924,7 +14946,7 @@ data CreativeAssignment = CreativeAssignment
1492414946 , _caApplyEventTags :: !(Maybe Bool)
1492514947 , _caActive :: !(Maybe Bool)
1492614948 , _caSequence :: !(Maybe Int32)
14927− , _caEndTime :: !(Maybe DateTime)
14949+ , _caEndTime :: !(Maybe DateTime')
1492814950 , _caCompanionCreativeOverrides :: !(Maybe [CompanionClickThroughOverride])
1492914951 , _caCreativeIdDimensionValue :: !(Maybe DimensionValue)
1493014952 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -14990,7 +15012,8 @@ caCreativeGroupAssignments
1499015012-- | Date and time that the assigned creative should start serving.
1499115013caStartTime :: Lens' CreativeAssignment (Maybe UTCTime)
1499215014caStartTime
14993− = lens _caStartTime (\ s a -> s{_caStartTime = a})
15015+ = lens _caStartTime (\ s a -> s{_caStartTime = a}) .
15016+ mapping _DateTime
1499415017
1499515018-- | Weight of the creative assignment, applicable when the rotation type is
1499615019-- CREATIVE_ROTATION_TYPE_RANDOM.
@@ -15053,7 +15076,8 @@ caSequence
1505315076-- later than the start time.
1505415077caEndTime :: Lens' CreativeAssignment (Maybe UTCTime)
1505515078caEndTime
15056− = lens _caEndTime (\ s a -> s{_caEndTime = a})
15079+ = lens _caEndTime (\ s a -> s{_caEndTime = a}) .
15080+ mapping _DateTime
1505715081
1505815082-- | Companion creative overrides for this creative assignment. Applicable to
1505915083-- video ads.
@@ -16530,8 +16554,8 @@ data ReportSchedule = ReportSchedule
1653016554 { _rsEvery :: !(Maybe Int32)
1653116555 , _rsActive :: !(Maybe Bool)
1653216556 , _rsRepeats :: !(Maybe Text)
16533− , _rsStartDate :: !(Maybe Date)
16534− , _rsExpirationDate :: !(Maybe Date)
16557+ , _rsStartDate :: !(Maybe Date')
16558+ , _rsExpirationDate :: !(Maybe Date')
1653516559 , _rsRunsOnDayOfMonth :: !(Maybe ReportScheduleRunsOnDayOfMonth)
1653616560 , _rsRepeatsOnWeekDays :: !(Maybe [ReportScheduleRepeatsOnWeekDays])
1653716561 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -16586,15 +16610,17 @@ rsRepeats
1658616610 = lens _rsRepeats (\ s a -> s{_rsRepeats = a})
1658716611
1658816612-- | Start date of date range for which scheduled reports should be run.
16589−rsStartDate :: Lens' ReportSchedule (Maybe UTCTime)
16613+rsStartDate :: Lens' ReportSchedule (Maybe LocalTime)
1659016614rsStartDate
16591− = lens _rsStartDate (\ s a -> s{_rsStartDate = a})
16615+ = lens _rsStartDate (\ s a -> s{_rsStartDate = a}) .
16616+ mapping _Date
1659216617
1659316618-- | The expiration date when the scheduled report stops running.
16594−rsExpirationDate :: Lens' ReportSchedule (Maybe UTCTime)
16619+rsExpirationDate :: Lens' ReportSchedule (Maybe LocalTime)
1659516620rsExpirationDate
1659616621 = lens _rsExpirationDate
1659716622 (\ s a -> s{_rsExpirationDate = a})
16623+ . mapping _Date
1659816624
1659916625-- | Enum to define for \"MONTHLY\" scheduled reports whether reports should
1660016626-- be repeated on the same day of the month as \"startDate\" or the same
@@ -19462,10 +19488,10 @@ data OrderDocument = OrderDocument
1946219488 { _odSigned :: !(Maybe Bool)
1946319489 , _odKind :: !Text
1946419490 , _odAdvertiserId :: !(Maybe Int64)
19465− , _odLastSentTime :: !(Maybe DateTime)
19491+ , _odLastSentTime :: !(Maybe DateTime')
1946619492 , _odAmendedOrderDocumentId :: !(Maybe Int64)
1946719493 , _odLastSentRecipients :: !(Maybe [Text])
19468− , _odEffectiveDate :: !(Maybe Date)
19494+ , _odEffectiveDate :: !(Maybe Date')
1946919495 , _odApprovedByUserProfileIds :: !(Maybe [Int64])
1947019496 , _odAccountId :: !(Maybe Int64)
1947119497 , _odId :: !(Maybe Int64)
@@ -19558,6 +19584,7 @@ odLastSentTime :: Lens' OrderDocument (Maybe UTCTime)
1955819584odLastSentTime
1955919585 = lens _odLastSentTime
1956019586 (\ s a -> s{_odLastSentTime = a})
19587+ . mapping _DateTime
1956119588
1956219589-- | The amended order document ID of this order document. An order document
1956319590-- can be created by optionally amending another order document so that the
@@ -19576,10 +19603,11 @@ odLastSentRecipients
1957619603 . _Coerce
1957719604
1957819605-- | Effective date of this order document.
19579−odEffectiveDate :: Lens' OrderDocument (Maybe UTCTime)
19606+odEffectiveDate :: Lens' OrderDocument (Maybe LocalTime)
1958019607odEffectiveDate
1958119608 = lens _odEffectiveDate
1958219609 (\ s a -> s{_odEffectiveDate = a})
19610+ . mapping _Date
1958319611
1958419612-- | IDs of users who have approved this order document.
1958519613odApprovedByUserProfileIds :: Lens' OrderDocument [Int64]
gogol-doubleclick-search/gen/Network/Google/DoubleClickSearch/Types/Product.hs+4−2
@@ -944,9 +944,9 @@ instance ToJSON ReportAPIColumnSpec where
944944-- /See:/ 'reportRequestTimeRange' smart constructor.
945945data ReportRequestTimeRange = ReportRequestTimeRange
946946 { _rrtrEndDate :: !(Maybe Text)
947− , _rrtrChangedAttributesSinceTimestamp :: !(Maybe DateTime)
947+ , _rrtrChangedAttributesSinceTimestamp :: !(Maybe DateTime')
948948 , _rrtrStartDate :: !(Maybe Text)
949− , _rrtrChangedMetricsSinceTimestamp :: !(Maybe DateTime)
949+ , _rrtrChangedMetricsSinceTimestamp :: !(Maybe DateTime')
950950 } deriving (Eq,Read,Show,Data,Typeable,Generic)
951951
952952-- | Creates a value of 'ReportRequestTimeRange' with the minimum fields required to make a request.
@@ -982,6 +982,7 @@ rrtrChangedAttributesSinceTimestamp
982982 = lens _rrtrChangedAttributesSinceTimestamp
983983 (\ s a ->
984984 s{_rrtrChangedAttributesSinceTimestamp = a})
985+ . mapping _DateTime
985986
986987-- | Inclusive date in YYYY-MM-DD format.
987988rrtrStartDate :: Lens' ReportRequestTimeRange (Maybe Text)
@@ -995,6 +996,7 @@ rrtrChangedMetricsSinceTimestamp :: Lens' ReportRequestTimeRange (Maybe UTCTime)
995996rrtrChangedMetricsSinceTimestamp
996997 = lens _rrtrChangedMetricsSinceTimestamp
997998 (\ s a -> s{_rrtrChangedMetricsSinceTimestamp = a})
999+ . mapping _DateTime
9981000
9991001instance FromJSON ReportRequestTimeRange where
10001002 parseJSON
gogol-drive/gen/Network/Google/Drive/Types/Product.hs+24−12
@@ -1094,7 +1094,7 @@ instance ToJSON FileVideoMediaMetadata where
10941094data Change = Change
10951095 { _chaKind :: !Text
10961096 , _chaSelfLink :: !(Maybe Text)
1097− , _chaModificationDate :: !(Maybe DateTime)
1097+ , _chaModificationDate :: !(Maybe DateTime')
10981098 , _chaId :: !(Maybe Int64)
10991099 , _chaDeleted :: !(Maybe Bool)
11001100 , _chaFileId :: !(Maybe Text)
@@ -1145,6 +1145,7 @@ chaModificationDate :: Lens' Change (Maybe UTCTime)
11451145chaModificationDate
11461146 = lens _chaModificationDate
11471147 (\ s a -> s{_chaModificationDate = a})
1148+ . mapping _DateTime
11481149
11491150-- | The ID of the change.
11501151chaId :: Lens' Change (Maybe Int64)
@@ -1727,10 +1728,10 @@ data CommentReply = CommentReply
17271728 { _comHTMLContent :: !(Maybe Text)
17281729 , _comKind :: !Text
17291730 , _comContent :: !(Maybe Text)
1730− , _comCreatedDate :: !(Maybe DateTime)
1731+ , _comCreatedDate :: !(Maybe DateTime')
17311732 , _comReplyId :: !(Maybe Text)
17321733 , _comAuthor :: !(Maybe User)
1733− , _comModifiedDate :: !(Maybe DateTime)
1734+ , _comModifiedDate :: !(Maybe DateTime')
17341735 , _comDeleted :: !(Maybe Bool)
17351736 , _comVerb :: !(Maybe Text)
17361737 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -1794,6 +1795,7 @@ comCreatedDate :: Lens' CommentReply (Maybe UTCTime)
17941795comCreatedDate
17951796 = lens _comCreatedDate
17961797 (\ s a -> s{_comCreatedDate = a})
1798+ . mapping _DateTime
17971799
17981800-- | The ID of the reply.
17991801comReplyId :: Lens' CommentReply (Maybe Text)
@@ -1810,6 +1812,7 @@ comModifiedDate :: Lens' CommentReply (Maybe UTCTime)
18101812comModifiedDate
18111813 = lens _comModifiedDate
18121814 (\ s a -> s{_comModifiedDate = a})
1815+ . mapping _DateTime
18131816
18141817-- | Whether this reply has been deleted. If a reply has been deleted the
18151818-- content will be cleared and this will only represent a reply that once
@@ -2886,7 +2889,7 @@ data Revision = Revision
28862889 , _rExportLinks :: !(Maybe RevisionExportLinks)
28872890 , _rPublishedOutsideDomain :: !(Maybe Bool)
28882891 , _rId :: !(Maybe Text)
2889− , _rModifiedDate :: !(Maybe DateTime)
2892+ , _rModifiedDate :: !(Maybe DateTime')
28902893 } deriving (Eq,Read,Show,Data,Typeable,Generic)
28912894
28922895-- | Creates a value of 'Revision' with the minimum fields required to make a request.
@@ -3054,6 +3057,7 @@ rModifiedDate :: Lens' Revision (Maybe UTCTime)
30543057rModifiedDate
30553058 = lens _rModifiedDate
30563059 (\ s a -> s{_rModifiedDate = a})
3060+ . mapping _DateTime
30573061
30583062instance FromJSON Revision where
30593063 parseJSON
@@ -3301,10 +3305,10 @@ data Comment = Comment
33013305 , _ccAnchor :: !(Maybe Text)
33023306 , _ccContent :: !(Maybe Text)
33033307 , _ccReplies :: !(Maybe [CommentReply])
3304− , _ccCreatedDate :: !(Maybe DateTime)
3308+ , _ccCreatedDate :: !(Maybe DateTime')
33053309 , _ccSelfLink :: !(Maybe Text)
33063310 , _ccAuthor :: !(Maybe User)
3307− , _ccModifiedDate :: !(Maybe DateTime)
3311+ , _ccModifiedDate :: !(Maybe DateTime')
33083312 , _ccDeleted :: !(Maybe Bool)
33093313 , _ccFileId :: !(Maybe Text)
33103314 , _ccCommentId :: !(Maybe Text)
@@ -3416,6 +3420,7 @@ ccCreatedDate :: Lens' Comment (Maybe UTCTime)
34163420ccCreatedDate
34173421 = lens _ccCreatedDate
34183422 (\ s a -> s{_ccCreatedDate = a})
3423+ . mapping _DateTime
34193424
34203425-- | A link back to this comment.
34213426ccSelfLink :: Lens' Comment (Maybe Text)
@@ -3431,6 +3436,7 @@ ccModifiedDate :: Lens' Comment (Maybe UTCTime)
34313436ccModifiedDate
34323437 = lens _ccModifiedDate
34333438 (\ s a -> s{_ccModifiedDate = a})
3439+ . mapping _DateTime
34343440
34353441-- | Whether this comment has been deleted. If a comment has been deleted the
34363442-- content will be cleared and this will only represent a comment that once
@@ -3541,7 +3547,7 @@ data File = File
35413547 , _fThumbnailLink :: !(Maybe Text)
35423548 , _fFullFileExtension :: !(Maybe Text)
35433549 , _fThumbnail :: !(Maybe FileThumbnail)
3544− , _fMarkedViewedByMeDate :: !(Maybe DateTime)
3550+ , _fMarkedViewedByMeDate :: !(Maybe DateTime')
35453551 , _fEtag :: !(Maybe Text)
35463552 , _fFileExtension :: !(Maybe Text)
35473553 , _fCanComment :: !(Maybe Bool)
@@ -3559,13 +3565,13 @@ data File = File
35593565 , _fImageMediaMetadata :: !(Maybe FileImageMediaMetadata)
35603566 , _fExplicitlyTrashed :: !(Maybe Bool)
35613567 , _fEditable :: !(Maybe Bool)
3562− , _fModifiedByMeDate :: !(Maybe DateTime)
3563− , _fLastViewedByMeDate :: !(Maybe DateTime)
3568+ , _fModifiedByMeDate :: !(Maybe DateTime')
3569+ , _fLastViewedByMeDate :: !(Maybe DateTime')
35643570 , _fShared :: !(Maybe Bool)
35653571 , _fMD5Checksum :: !(Maybe Text)
35663572 , _fFolderColorRgb :: !(Maybe Text)
35673573 , _fMimeType :: !(Maybe Text)
3568− , _fCreatedDate :: !(Maybe DateTime)
3574+ , _fCreatedDate :: !(Maybe DateTime')
35693575 , _fSelfLink :: !(Maybe Text)
35703576 , _fLastModifyingUserName :: !(Maybe Text)
35713577 , _fShareable :: !(Maybe Bool)
@@ -3573,7 +3579,7 @@ data File = File
35733579 , _fExportLinks :: !(Maybe FileExportLinks)
35743580 , _fCopyable :: !(Maybe Bool)
35753581 , _fParents :: !(Maybe [ParentReference])
3576− , _fSharedWithMeDate :: !(Maybe DateTime)
3582+ , _fSharedWithMeDate :: !(Maybe DateTime')
35773583 , _fSpaces :: !(Maybe [Text])
35783584 , _fVersion :: !(Maybe Int64)
35793585 , _fUserPermission :: !(Maybe Permission)
@@ -3581,7 +3587,7 @@ data File = File
35813587 , _fDefaultOpenWithLink :: !(Maybe Text)
35823588 , _fId :: !(Maybe Text)
35833589 , _fLabels :: !(Maybe FileLabels)
3584− , _fModifiedDate :: !(Maybe DateTime)
3590+ , _fModifiedDate :: !(Maybe DateTime')
35853591 , _fPermissions :: !(Maybe [Permission])
35863592 , _fQuotaBytesUsed :: !(Maybe Int64)
35873593 , _fTitle :: !(Maybe Text)
@@ -3807,6 +3813,7 @@ fMarkedViewedByMeDate :: Lens' File (Maybe UTCTime)
38073813fMarkedViewedByMeDate
38083814 = lens _fMarkedViewedByMeDate
38093815 (\ s a -> s{_fMarkedViewedByMeDate = a})
3816+ . mapping _DateTime
38103817
38113818-- | ETag of the file.
38123819fEtag :: Lens' File (Maybe Text)
@@ -3923,6 +3930,7 @@ fModifiedByMeDate :: Lens' File (Maybe UTCTime)
39233930fModifiedByMeDate
39243931 = lens _fModifiedByMeDate
39253932 (\ s a -> s{_fModifiedByMeDate = a})
3933+ . mapping _DateTime
39263934
39273935-- | Last time this file was viewed by the user (formatted RFC 3339
39283936-- timestamp).
@@ -3930,6 +3938,7 @@ fLastViewedByMeDate :: Lens' File (Maybe UTCTime)
39303938fLastViewedByMeDate
39313939 = lens _fLastViewedByMeDate
39323940 (\ s a -> s{_fLastViewedByMeDate = a})
3941+ . mapping _DateTime
39333942
39343943-- | Whether the file has been shared.
39353944fShared :: Lens' File (Maybe Bool)
@@ -3962,6 +3971,7 @@ fMimeType
39623971fCreatedDate :: Lens' File (Maybe UTCTime)
39633972fCreatedDate
39643973 = lens _fCreatedDate (\ s a -> s{_fCreatedDate = a})
3974+ . mapping _DateTime
39653975
39663976-- | A link back to this file.
39673977fSelfLink :: Lens' File (Maybe Text)
@@ -4010,6 +4020,7 @@ fSharedWithMeDate :: Lens' File (Maybe UTCTime)
40104020fSharedWithMeDate
40114021 = lens _fSharedWithMeDate
40124022 (\ s a -> s{_fSharedWithMeDate = a})
4023+ . mapping _DateTime
40134024
40144025-- | The list of spaces which contain the file. Supported values are
40154026-- \'drive\', \'appDataFolder\' and \'photos\'.
@@ -4058,6 +4069,7 @@ fModifiedDate :: Lens' File (Maybe UTCTime)
40584069fModifiedDate
40594070 = lens _fModifiedDate
40604071 (\ s a -> s{_fModifiedDate = a})
4072+ . mapping _DateTime
40614073
40624074-- | The list of permissions for users with access to this file.
40634075fPermissions :: Lens' File [Permission]
gogol-fonts/gen/Network/Google/Fonts/Types/Product.hs+3−2
@@ -28,7 +28,7 @@ data Webfont = Webfont
2828 , _wVersion :: !(Maybe Text)
2929 , _wFiles :: !(Maybe WebfontFiles)
3030 , _wSubsets :: !(Maybe [Text])
31− , _wLastModified :: !(Maybe Date)
31+ , _wLastModified :: !(Maybe Date')
3232 } deriving (Eq,Read,Show,Data,Typeable,Generic)
3333
3434-- | Creates a value of 'Webfont' with the minimum fields required to make a request.
@@ -102,10 +102,11 @@ wSubsets
102102
103103-- | The date (format \"yyyy-MM-dd\") the font was modified for the last
104104-- time.
105−wLastModified :: Lens' Webfont (Maybe UTCTime)
105+wLastModified :: Lens' Webfont (Maybe LocalTime)
106106wLastModified
107107 = lens _wLastModified
108108 (\ s a -> s{_wLastModified = a})
109+ . mapping _Date
109110
110111instance FromJSON Webfont where
111112 parseJSON
gogol-maps-engine/gen/Network/Google/MapsEngine/Types/Product.hs+36−18
@@ -743,12 +743,12 @@ instance ToJSON MapFolder where
743743--
744744-- /See:/ 'rasterCollection' smart constructor.
745745data RasterCollection = RasterCollection
746− { _rcCreationTime :: !(Maybe DateTime)
746+ { _rcCreationTime :: !(Maybe DateTime')
747747 , _rcWritersCanEditPermissions :: !(Maybe Bool)
748748 , _rcEtag :: !(Maybe Text)
749749 , _rcCreatorEmail :: !(Maybe Text)
750750 , _rcRasterType :: !(Maybe RasterCollectionRasterType)
751− , _rcLastModifiedTime :: !(Maybe DateTime)
751+ , _rcLastModifiedTime :: !(Maybe DateTime')
752752 , _rcLastModifierEmail :: !(Maybe Text)
753753 , _rcName :: !(Maybe Text)
754754 , _rcBbox :: !(Maybe [Double])
@@ -828,6 +828,7 @@ rcCreationTime :: Lens' RasterCollection (Maybe UTCTime)
828828rcCreationTime
829829 = lens _rcCreationTime
830830 (\ s a -> s{_rcCreationTime = a})
831+ . mapping _DateTime
831832
832833-- | If true, WRITERs of the asset are able to edit the asset permissions.
833834rcWritersCanEditPermissions :: Lens' RasterCollection (Maybe Bool)
@@ -857,6 +858,7 @@ rcLastModifiedTime :: Lens' RasterCollection (Maybe UTCTime)
857858rcLastModifiedTime
858859 = lens _rcLastModifiedTime
859860 (\ s a -> s{_rcLastModifiedTime = a})
861+ . mapping _DateTime
860862
861863-- | The email address of the last modifier of this raster collection. This
862864-- is only returned on GET requests and not LIST requests.
@@ -1128,11 +1130,11 @@ instance ToJSON Color where
11281130--
11291131-- /See:/ 'asset' smart constructor.
11301132data Asset = Asset
1131− { _aCreationTime :: !(Maybe DateTime)
1133+ { _aCreationTime :: !(Maybe DateTime')
11321134 , _aWritersCanEditPermissions :: !(Maybe Bool)
11331135 , _aEtag :: !(Maybe Text)
11341136 , _aCreatorEmail :: !(Maybe Text)
1135− , _aLastModifiedTime :: !(Maybe DateTime)
1137+ , _aLastModifiedTime :: !(Maybe DateTime')
11361138 , _aLastModifierEmail :: !(Maybe Text)
11371139 , _aName :: !(Maybe Text)
11381140 , _aBbox :: !(Maybe [Double])
@@ -1201,6 +1203,7 @@ aCreationTime :: Lens' Asset (Maybe UTCTime)
12011203aCreationTime
12021204 = lens _aCreationTime
12031205 (\ s a -> s{_aCreationTime = a})
1206+ . mapping _DateTime
12041207
12051208-- | If true, WRITERs of the asset are able to edit the asset permissions.
12061209aWritersCanEditPermissions :: Lens' Asset (Maybe Bool)
@@ -1225,6 +1228,7 @@ aLastModifiedTime :: Lens' Asset (Maybe UTCTime)
12251228aLastModifiedTime
12261229 = lens _aLastModifiedTime
12271230 (\ s a -> s{_aLastModifiedTime = a})
1231+ . mapping _DateTime
12281232
12291233-- | The email address of the last modifier of this asset. This is only
12301234-- returned on GET requests and not LIST requests.
@@ -2012,9 +2016,9 @@ instance ToJSON Schema where
20122016--
20132017-- /See:/ 'acquisitionTime' smart constructor.
20142018data AcquisitionTime = AcquisitionTime
2015− { _atStart :: !(Maybe DateTime)
2019+ { _atStart :: !(Maybe DateTime')
20162020 , _atPrecision :: !(Maybe AcquisitionTimePrecision)
2017− , _atEnd :: !(Maybe DateTime)
2021+ , _atEnd :: !(Maybe DateTime')
20182022 } deriving (Eq,Read,Show,Data,Typeable,Generic)
20192023
20202024-- | Creates a value of 'AcquisitionTime' with the minimum fields required to make a request.
@@ -2038,7 +2042,9 @@ acquisitionTime =
20382042-- | The acquisition time, or start time if acquisition time is a range. The
20392043-- value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z).
20402044atStart :: Lens' AcquisitionTime (Maybe UTCTime)
2041−atStart = lens _atStart (\ s a -> s{_atStart = a})
2045+atStart
2046+ = lens _atStart (\ s a -> s{_atStart = a}) .
2047+ mapping _DateTime
20422048
20432049-- | The precision of acquisition time.
20442050atPrecision :: Lens' AcquisitionTime (Maybe AcquisitionTimePrecision)
@@ -2048,7 +2054,9 @@ atPrecision
20482054-- | The end time if acquisition time is a range. The value is an RFC 3339
20492055-- formatted date-time value (1970-01-01T00:00:00Z).
20502056atEnd :: Lens' AcquisitionTime (Maybe UTCTime)
2051−atEnd = lens _atEnd (\ s a -> s{_atEnd = a})
2057+atEnd
2058+ = lens _atEnd (\ s a -> s{_atEnd = a}) .
2059+ mapping _DateTime
20522060
20532061instance FromJSON AcquisitionTime where
20542062 parseJSON
@@ -2125,14 +2133,14 @@ instance ToJSON TablesListResponse where
21252133--
21262134-- /See:/ 'map'' smart constructor.
21272135data Map = Map
2128− { _mapaCreationTime :: !(Maybe DateTime)
2136+ { _mapaCreationTime :: !(Maybe DateTime')
21292137 , _mapaWritersCanEditPermissions :: !(Maybe Bool)
21302138 , _mapaEtag :: !(Maybe Text)
21312139 , _mapaDefaultViewport :: !(Maybe [Double])
21322140 , _mapaContents :: !(Maybe [MapItem])
21332141 , _mapaPublishingStatus :: !(Maybe MapPublishingStatus)
21342142 , _mapaCreatorEmail :: !(Maybe Text)
2135− , _mapaLastModifiedTime :: !(Maybe DateTime)
2143+ , _mapaLastModifiedTime :: !(Maybe DateTime')
21362144 , _mapaLastModifierEmail :: !(Maybe Text)
21372145 , _mapaVersions :: !(Maybe [Text])
21382146 , _mapaName :: !(Maybe Text)
@@ -2218,6 +2226,7 @@ mapaCreationTime :: Lens' Map (Maybe UTCTime)
22182226mapaCreationTime
22192227 = lens _mapaCreationTime
22202228 (\ s a -> s{_mapaCreationTime = a})
2229+ . mapping _DateTime
22212230
22222231-- | If true, WRITERs of the asset are able to edit the asset permissions.
22232232mapaWritersCanEditPermissions :: Lens' Map (Maybe Bool)
@@ -2265,6 +2274,7 @@ mapaLastModifiedTime :: Lens' Map (Maybe UTCTime)
22652274mapaLastModifiedTime
22662275 = lens _mapaLastModifiedTime
22672276 (\ s a -> s{_mapaLastModifiedTime = a})
2277+ . mapping _DateTime
22682278
22692279-- | The email address of the last modifier of this map. This is only
22702280-- returned on GET requests and not LIST requests.
@@ -3014,9 +3024,9 @@ instance ToJSON PublishResponse where
30143024--
30153025-- /See:/ 'rasterCollectionsRaster' smart constructor.
30163026data RasterCollectionsRaster = RasterCollectionsRaster
3017− { _rcrCreationTime :: !(Maybe DateTime)
3027+ { _rcrCreationTime :: !(Maybe DateTime')
30183028 , _rcrRasterType :: !Text
3019− , _rcrLastModifiedTime :: !(Maybe DateTime)
3029+ , _rcrLastModifiedTime :: !(Maybe DateTime')
30203030 , _rcrName :: !(Maybe Text)
30213031 , _rcrBbox :: !(Maybe [Double])
30223032 , _rcrId :: !(Maybe Text)
@@ -3067,6 +3077,7 @@ rcrCreationTime :: Lens' RasterCollectionsRaster (Maybe UTCTime)
30673077rcrCreationTime
30683078 = lens _rcrCreationTime
30693079 (\ s a -> s{_rcrCreationTime = a})
3080+ . mapping _DateTime
30703081
30713082-- | The type of this Raster. Always \"image\" today.
30723083rcrRasterType :: Lens' RasterCollectionsRaster Text
@@ -3080,6 +3091,7 @@ rcrLastModifiedTime :: Lens' RasterCollectionsRaster (Maybe UTCTime)
30803091rcrLastModifiedTime
30813092 = lens _rcrLastModifiedTime
30823093 (\ s a -> s{_rcrLastModifiedTime = a})
3094+ . mapping _DateTime
30833095
30843096-- | The name of this Raster, supplied by the author.
30853097rcrName :: Lens' RasterCollectionsRaster (Maybe Text)
@@ -3385,13 +3397,13 @@ instance ToJSON GeoJSONMultiPoint where
33853397--
33863398-- /See:/ 'raster' smart constructor.
33873399data Raster = Raster
3388− { _rrCreationTime :: !(Maybe DateTime)
3400+ { _rrCreationTime :: !(Maybe DateTime')
33893401 , _rrWritersCanEditPermissions :: !(Maybe Bool)
33903402 , _rrMaskType :: !Text
33913403 , _rrEtag :: !(Maybe Text)
33923404 , _rrCreatorEmail :: !(Maybe Text)
33933405 , _rrRasterType :: !(Maybe RasterRasterType)
3394− , _rrLastModifiedTime :: !(Maybe DateTime)
3406+ , _rrLastModifiedTime :: !(Maybe DateTime')
33953407 , _rrLastModifierEmail :: !(Maybe Text)
33963408 , _rrAcquisitionTime :: !(Maybe AcquisitionTime)
33973409 , _rrName :: !(Maybe Text)
@@ -3478,6 +3490,7 @@ rrCreationTime :: Lens' Raster (Maybe UTCTime)
34783490rrCreationTime
34793491 = lens _rrCreationTime
34803492 (\ s a -> s{_rrCreationTime = a})
3493+ . mapping _DateTime
34813494
34823495-- | If true, WRITERs of the asset are able to edit the asset permissions.
34833496rrWritersCanEditPermissions :: Lens' Raster (Maybe Bool)
@@ -3512,6 +3525,7 @@ rrLastModifiedTime :: Lens' Raster (Maybe UTCTime)
35123525rrLastModifiedTime
35133526 = lens _rrLastModifiedTime
35143527 (\ s a -> s{_rrLastModifiedTime = a})
3528+ . mapping _DateTime
35153529
35163530-- | The email address of the last modifier of this raster. This is only
35173531-- returned on GET requests and not LIST requests.
@@ -3838,7 +3852,7 @@ instance ToJSON Permission where
38383852--
38393853-- /See:/ 'layer' smart constructor.
38403854data Layer = Layer
3841− { _layaCreationTime :: !(Maybe DateTime)
3855+ { _layaCreationTime :: !(Maybe DateTime')
38423856 , _layaWritersCanEditPermissions :: !(Maybe Bool)
38433857 , _layaStyle :: !(Maybe VectorStyle)
38443858 , _layaEtag :: !(Maybe Text)
@@ -3846,7 +3860,7 @@ data Layer = Layer
38463860 , _layaPublishingStatus :: !(Maybe LayerPublishingStatus)
38473861 , _layaCreatorEmail :: !(Maybe Text)
38483862 , _layaLayerType :: !(Maybe LayerLayerType)
3849− , _layaLastModifiedTime :: !(Maybe DateTime)
3863+ , _layaLastModifiedTime :: !(Maybe DateTime')
38503864 , _layaDatasources :: !(Maybe [Datasource])
38513865 , _layaLastModifierEmail :: !(Maybe Text)
38523866 , _layaName :: !(Maybe Text)
@@ -3935,6 +3949,7 @@ layaCreationTime :: Lens' Layer (Maybe UTCTime)
39353949layaCreationTime
39363950 = lens _layaCreationTime
39373951 (\ s a -> s{_layaCreationTime = a})
3952+ . mapping _DateTime
39383953
39393954-- | If true, WRITERs of the asset are able to edit the asset permissions.
39403955layaWritersCanEditPermissions :: Lens' Layer (Maybe Bool)
@@ -3989,6 +4004,7 @@ layaLastModifiedTime :: Lens' Layer (Maybe UTCTime)
39894004layaLastModifiedTime
39904005 = lens _layaLastModifiedTime
39914006 (\ s a -> s{_layaLastModifiedTime = a})
4007+ . mapping _DateTime
39924008
39934009-- | An array of datasources used to build this layer. If layerType is
39944010-- \"image\", or layerType is not specified and datasourceType is
@@ -4433,11 +4449,11 @@ instance ToJSON PermissionsBatchDeleteResponse where
44334449--
44344450-- /See:/ 'table' smart constructor.
44354451data Table = Table
4436− { _ttCreationTime :: !(Maybe DateTime)
4452+ { _ttCreationTime :: !(Maybe DateTime')
44374453 , _ttWritersCanEditPermissions :: !(Maybe Bool)
44384454 , _ttEtag :: !(Maybe Text)
44394455 , _ttCreatorEmail :: !(Maybe Text)
4440− , _ttLastModifiedTime :: !(Maybe DateTime)
4456+ , _ttLastModifiedTime :: !(Maybe DateTime')
44414457 , _ttSchema :: !(Maybe Schema)
44424458 , _ttLastModifierEmail :: !(Maybe Text)
44434459 , _ttName :: !(Maybe Text)
@@ -4522,6 +4538,7 @@ ttCreationTime :: Lens' Table (Maybe UTCTime)
45224538ttCreationTime
45234539 = lens _ttCreationTime
45244540 (\ s a -> s{_ttCreationTime = a})
4541+ . mapping _DateTime
45254542
45264543-- | If true, WRITERs of the asset are able to edit the asset permissions.
45274544ttWritersCanEditPermissions :: Lens' Table (Maybe Bool)
@@ -4546,6 +4563,7 @@ ttLastModifiedTime :: Lens' Table (Maybe UTCTime)
45464563ttLastModifiedTime
45474564 = lens _ttLastModifiedTime
45484565 (\ s a -> s{_ttLastModifiedTime = a})
4566+ . mapping _DateTime
45494567
45504568-- | The schema for this table. Note: The schema is returned in response to a
45514569-- get request but not a list request. After requesting a list of tables,
gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Assets/List.hs+12−8
@@ -59,12 +59,12 @@ import Network.Google.Prelude
5959type AssetsListResource =
6060 "assets" :>
6161 QueryParam "bbox" Text :>
62− QueryParam "createdAfter" DateTime :>
63− QueryParam "createdBefore" DateTime :>
62+ QueryParam "createdAfter" DateTime' :>
63+ QueryParam "createdBefore" DateTime' :>
6464 QueryParam "creatorEmail" Text :>
6565 QueryParam "maxResults" Word32 :>
66− QueryParam "modifiedAfter" DateTime :>
67− QueryParam "modifiedBefore" DateTime :>
66+ QueryParam "modifiedAfter" DateTime' :>
67+ QueryParam "modifiedBefore" DateTime' :>
6868 QueryParam "pageToken" Text :>
6969 QueryParam "projectId" Text :>
7070 QueryParam "role" MapsEngineAssetsListRole :>
@@ -85,7 +85,7 @@ type AssetsListResource =
8585--
8686-- /See:/ 'assetsList'' smart constructor.
8787data AssetsList' = AssetsList'
88− { _alCreatedAfter :: !(Maybe DateTime)
88+ { _alCreatedAfter :: !(Maybe DateTime')
8989 , _alQuotaUser :: !(Maybe Text)
9090 , _alPrettyPrint :: !Bool
9191 , _alUserIP :: !(Maybe Text)
@@ -93,8 +93,8 @@ data AssetsList' = AssetsList'
9393 , _alRole :: !(Maybe MapsEngineAssetsListRole)
9494 , _alKey :: !(Maybe Key)
9595 , _alBbox :: !(Maybe Text)
96− , _alModifiedAfter :: !(Maybe DateTime)
97− , _alModifiedBefore :: !(Maybe DateTime)
96+ , _alModifiedAfter :: !(Maybe DateTime')
97+ , _alModifiedBefore :: !(Maybe DateTime')
9898 , _alPageToken :: !(Maybe Text)
9999 , _alProjectId :: !(Maybe Text)
100100 , _alType :: !(Maybe Text)
@@ -103,7 +103,7 @@ data AssetsList' = AssetsList'
103103 , _alMaxResults :: !(Maybe Word32)
104104 , _alTags :: !(Maybe Text)
105105 , _alFields :: !(Maybe Text)
106− , _alCreatedBefore :: !(Maybe DateTime)
106+ , _alCreatedBefore :: !(Maybe DateTime')
107107 } deriving (Eq,Read,Show,Data,Typeable,Generic)
108108
109109-- | Creates a value of 'AssetsList'' with the minimum fields required to make a request.
@@ -178,6 +178,7 @@ alCreatedAfter :: Lens' AssetsList' (Maybe UTCTime)
178178alCreatedAfter
179179 = lens _alCreatedAfter
180180 (\ s a -> s{_alCreatedAfter = a})
181+ . mapping _DateTime
181182
182183-- | Available to use for quota purposes for server-side applications. Can be
183184-- any arbitrary string assigned to a user, but should not exceed 40
@@ -226,6 +227,7 @@ alModifiedAfter :: Lens' AssetsList' (Maybe UTCTime)
226227alModifiedAfter
227228 = lens _alModifiedAfter
228229 (\ s a -> s{_alModifiedAfter = a})
230+ . mapping _DateTime
229231
230232-- | An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
231233-- Returned assets will have been modified at or before this time.
@@ -233,6 +235,7 @@ alModifiedBefore :: Lens' AssetsList' (Maybe UTCTime)
233235alModifiedBefore
234236 = lens _alModifiedBefore
235237 (\ s a -> s{_alModifiedBefore = a})
238+ . mapping _DateTime
236239
237240-- | The continuation token, used to page through large result sets. To get
238241-- the next page of results, set this parameter to the value of
@@ -286,6 +289,7 @@ alCreatedBefore :: Lens' AssetsList' (Maybe UTCTime)
286289alCreatedBefore
287290 = lens _alCreatedBefore
288291 (\ s a -> s{_alCreatedBefore = a})
292+ . mapping _DateTime
289293
290294instance GoogleAuth AssetsList' where
291295 authKey = alKey . _Just
gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Layers/List.hs+12−8
@@ -59,12 +59,12 @@ import Network.Google.Prelude
5959type LayersListResource =
6060 "layers" :>
6161 QueryParam "bbox" Text :>
62− QueryParam "createdAfter" DateTime :>
63− QueryParam "createdBefore" DateTime :>
62+ QueryParam "createdAfter" DateTime' :>
63+ QueryParam "createdBefore" DateTime' :>
6464 QueryParam "creatorEmail" Text :>
6565 QueryParam "maxResults" Word32 :>
66− QueryParam "modifiedAfter" DateTime :>
67− QueryParam "modifiedBefore" DateTime :>
66+ QueryParam "modifiedAfter" DateTime' :>
67+ QueryParam "modifiedBefore" DateTime' :>
6868 QueryParam "pageToken" Text :>
6969 QueryParam "processingStatus"
7070 MapsEngineLayersListProcessingStatus
@@ -87,7 +87,7 @@ type LayersListResource =
8787--
8888-- /See:/ 'layersList'' smart constructor.
8989data LayersList' = LayersList'
90− { _llCreatedAfter :: !(Maybe DateTime)
90+ { _llCreatedAfter :: !(Maybe DateTime')
9191 , _llQuotaUser :: !(Maybe Text)
9292 , _llPrettyPrint :: !Bool
9393 , _llUserIP :: !(Maybe Text)
@@ -96,8 +96,8 @@ data LayersList' = LayersList'
9696 , _llKey :: !(Maybe Key)
9797 , _llBbox :: !(Maybe Text)
9898 , _llProcessingStatus :: !(Maybe MapsEngineLayersListProcessingStatus)
99− , _llModifiedAfter :: !(Maybe DateTime)
100− , _llModifiedBefore :: !(Maybe DateTime)
99+ , _llModifiedAfter :: !(Maybe DateTime')
100+ , _llModifiedBefore :: !(Maybe DateTime')
101101 , _llPageToken :: !(Maybe Text)
102102 , _llProjectId :: !(Maybe Text)
103103 , _llOAuthToken :: !(Maybe OAuthToken)
@@ -105,7 +105,7 @@ data LayersList' = LayersList'
105105 , _llMaxResults :: !(Maybe Word32)
106106 , _llTags :: !(Maybe Text)
107107 , _llFields :: !(Maybe Text)
108− , _llCreatedBefore :: !(Maybe DateTime)
108+ , _llCreatedBefore :: !(Maybe DateTime')
109109 } deriving (Eq,Read,Show,Data,Typeable,Generic)
110110
111111-- | Creates a value of 'LayersList'' with the minimum fields required to make a request.
@@ -180,6 +180,7 @@ llCreatedAfter :: Lens' LayersList' (Maybe UTCTime)
180180llCreatedAfter
181181 = lens _llCreatedAfter
182182 (\ s a -> s{_llCreatedAfter = a})
183+ . mapping _DateTime
183184
184185-- | Available to use for quota purposes for server-side applications. Can be
185186-- any arbitrary string assigned to a user, but should not exceed 40
@@ -233,6 +234,7 @@ llModifiedAfter :: Lens' LayersList' (Maybe UTCTime)
233234llModifiedAfter
234235 = lens _llModifiedAfter
235236 (\ s a -> s{_llModifiedAfter = a})
237+ . mapping _DateTime
236238
237239-- | An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
238240-- Returned assets will have been modified at or before this time.
@@ -240,6 +242,7 @@ llModifiedBefore :: Lens' LayersList' (Maybe UTCTime)
240242llModifiedBefore
241243 = lens _llModifiedBefore
242244 (\ s a -> s{_llModifiedBefore = a})
245+ . mapping _DateTime
243246
244247-- | The continuation token, used to page through large result sets. To get
245248-- the next page of results, set this parameter to the value of
@@ -287,6 +290,7 @@ llCreatedBefore :: Lens' LayersList' (Maybe UTCTime)
287290llCreatedBefore
288291 = lens _llCreatedBefore
289292 (\ s a -> s{_llCreatedBefore = a})
293+ . mapping _DateTime
290294
291295instance GoogleAuth LayersList' where
292296 authKey = llKey . _Just
gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Maps/List.hs+12−8
@@ -59,12 +59,12 @@ import Network.Google.Prelude
5959type MapsListResource =
6060 "maps" :>
6161 QueryParam "bbox" Text :>
62− QueryParam "createdAfter" DateTime :>
63− QueryParam "createdBefore" DateTime :>
62+ QueryParam "createdAfter" DateTime' :>
63+ QueryParam "createdBefore" DateTime' :>
6464 QueryParam "creatorEmail" Text :>
6565 QueryParam "maxResults" Word32 :>
66− QueryParam "modifiedAfter" DateTime :>
67− QueryParam "modifiedBefore" DateTime :>
66+ QueryParam "modifiedAfter" DateTime' :>
67+ QueryParam "modifiedBefore" DateTime' :>
6868 QueryParam "pageToken" Text :>
6969 QueryParam "processingStatus"
7070 MapsEngineMapsListProcessingStatus
@@ -87,7 +87,7 @@ type MapsListResource =
8787--
8888-- /See:/ 'mapsList'' smart constructor.
8989data MapsList' = MapsList'
90− { _mapCreatedAfter :: !(Maybe DateTime)
90+ { _mapCreatedAfter :: !(Maybe DateTime')
9191 , _mapQuotaUser :: !(Maybe Text)
9292 , _mapPrettyPrint :: !Bool
9393 , _mapUserIP :: !(Maybe Text)
@@ -96,8 +96,8 @@ data MapsList' = MapsList'
9696 , _mapKey :: !(Maybe Key)
9797 , _mapBbox :: !(Maybe Text)
9898 , _mapProcessingStatus :: !(Maybe MapsEngineMapsListProcessingStatus)
99− , _mapModifiedAfter :: !(Maybe DateTime)
100− , _mapModifiedBefore :: !(Maybe DateTime)
99+ , _mapModifiedAfter :: !(Maybe DateTime')
100+ , _mapModifiedBefore :: !(Maybe DateTime')
101101 , _mapPageToken :: !(Maybe Text)
102102 , _mapProjectId :: !(Maybe Text)
103103 , _mapOAuthToken :: !(Maybe OAuthToken)
@@ -105,7 +105,7 @@ data MapsList' = MapsList'
105105 , _mapMaxResults :: !(Maybe Word32)
106106 , _mapTags :: !(Maybe Text)
107107 , _mapFields :: !(Maybe Text)
108− , _mapCreatedBefore :: !(Maybe DateTime)
108+ , _mapCreatedBefore :: !(Maybe DateTime')
109109 } deriving (Eq,Read,Show,Data,Typeable,Generic)
110110
111111-- | Creates a value of 'MapsList'' with the minimum fields required to make a request.
@@ -180,6 +180,7 @@ mapCreatedAfter :: Lens' MapsList' (Maybe UTCTime)
180180mapCreatedAfter
181181 = lens _mapCreatedAfter
182182 (\ s a -> s{_mapCreatedAfter = a})
183+ . mapping _DateTime
183184
184185-- | Available to use for quota purposes for server-side applications. Can be
185186-- any arbitrary string assigned to a user, but should not exceed 40
@@ -234,6 +235,7 @@ mapModifiedAfter :: Lens' MapsList' (Maybe UTCTime)
234235mapModifiedAfter
235236 = lens _mapModifiedAfter
236237 (\ s a -> s{_mapModifiedAfter = a})
238+ . mapping _DateTime
237239
238240-- | An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
239241-- Returned assets will have been modified at or before this time.
@@ -241,6 +243,7 @@ mapModifiedBefore :: Lens' MapsList' (Maybe UTCTime)
241243mapModifiedBefore
242244 = lens _mapModifiedBefore
243245 (\ s a -> s{_mapModifiedBefore = a})
246+ . mapping _DateTime
244247
245248-- | The continuation token, used to page through large result sets. To get
246249-- the next page of results, set this parameter to the value of
@@ -292,6 +295,7 @@ mapCreatedBefore :: Lens' MapsList' (Maybe UTCTime)
292295mapCreatedBefore
293296 = lens _mapCreatedBefore
294297 (\ s a -> s{_mapCreatedBefore = a})
298+ . mapping _DateTime
295299
296300instance GoogleAuth MapsList' where
297301 authKey = mapKey . _Just
gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/RasterCollections/List.hs+12−8
@@ -59,12 +59,12 @@ import Network.Google.Prelude
5959type RasterCollectionsListResource =
6060 "rasterCollections" :>
6161 QueryParam "bbox" Text :>
62− QueryParam "createdAfter" DateTime :>
63− QueryParam "createdBefore" DateTime :>
62+ QueryParam "createdAfter" DateTime' :>
63+ QueryParam "createdBefore" DateTime' :>
6464 QueryParam "creatorEmail" Text :>
6565 QueryParam "maxResults" Word32 :>
66− QueryParam "modifiedAfter" DateTime :>
67− QueryParam "modifiedBefore" DateTime :>
66+ QueryParam "modifiedAfter" DateTime' :>
67+ QueryParam "modifiedBefore" DateTime' :>
6868 QueryParam "pageToken" Text :>
6969 QueryParam "processingStatus"
7070 MapsEngineRasterCollectionsListProcessingStatus
@@ -89,7 +89,7 @@ type RasterCollectionsListResource =
8989--
9090-- /See:/ 'rasterCollectionsList'' smart constructor.
9191data RasterCollectionsList' = RasterCollectionsList'
92− { _rclCreatedAfter :: !(Maybe DateTime)
92+ { _rclCreatedAfter :: !(Maybe DateTime')
9393 , _rclQuotaUser :: !(Maybe Text)
9494 , _rclPrettyPrint :: !Bool
9595 , _rclUserIP :: !(Maybe Text)
@@ -98,8 +98,8 @@ data RasterCollectionsList' = RasterCollectionsList'
9898 , _rclKey :: !(Maybe Key)
9999 , _rclBbox :: !(Maybe Text)
100100 , _rclProcessingStatus :: !(Maybe MapsEngineRasterCollectionsListProcessingStatus)
101− , _rclModifiedAfter :: !(Maybe DateTime)
102− , _rclModifiedBefore :: !(Maybe DateTime)
101+ , _rclModifiedAfter :: !(Maybe DateTime')
102+ , _rclModifiedBefore :: !(Maybe DateTime')
103103 , _rclPageToken :: !(Maybe Text)
104104 , _rclProjectId :: !(Maybe Text)
105105 , _rclOAuthToken :: !(Maybe OAuthToken)
@@ -107,7 +107,7 @@ data RasterCollectionsList' = RasterCollectionsList'
107107 , _rclMaxResults :: !(Maybe Word32)
108108 , _rclTags :: !(Maybe Text)
109109 , _rclFields :: !(Maybe Text)
110− , _rclCreatedBefore :: !(Maybe DateTime)
110+ , _rclCreatedBefore :: !(Maybe DateTime')
111111 } deriving (Eq,Read,Show,Data,Typeable,Generic)
112112
113113-- | Creates a value of 'RasterCollectionsList'' with the minimum fields required to make a request.
@@ -182,6 +182,7 @@ rclCreatedAfter :: Lens' RasterCollectionsList' (Maybe UTCTime)
182182rclCreatedAfter
183183 = lens _rclCreatedAfter
184184 (\ s a -> s{_rclCreatedAfter = a})
185+ . mapping _DateTime
185186
186187-- | Available to use for quota purposes for server-side applications. Can be
187188-- any arbitrary string assigned to a user, but should not exceed 40
@@ -236,6 +237,7 @@ rclModifiedAfter :: Lens' RasterCollectionsList' (Maybe UTCTime)
236237rclModifiedAfter
237238 = lens _rclModifiedAfter
238239 (\ s a -> s{_rclModifiedAfter = a})
240+ . mapping _DateTime
239241
240242-- | An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
241243-- Returned assets will have been modified at or before this time.
@@ -243,6 +245,7 @@ rclModifiedBefore :: Lens' RasterCollectionsList' (Maybe UTCTime)
243245rclModifiedBefore
244246 = lens _rclModifiedBefore
245247 (\ s a -> s{_rclModifiedBefore = a})
248+ . mapping _DateTime
246249
247250-- | The continuation token, used to page through large result sets. To get
248251-- the next page of results, set this parameter to the value of
@@ -294,6 +297,7 @@ rclCreatedBefore :: Lens' RasterCollectionsList' (Maybe UTCTime)
294297rclCreatedBefore
295298 = lens _rclCreatedBefore
296299 (\ s a -> s{_rclCreatedBefore = a})
300+ . mapping _DateTime
297301
298302instance GoogleAuth RasterCollectionsList' where
299303 authKey = rclKey . _Just
gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/RasterCollections/Rasters/List.hs+12−8
@@ -60,12 +60,12 @@ type RasterCollectionsRastersListResource =
6060 Capture "id" Text :>
6161 "rasters" :>
6262 QueryParam "bbox" Text :>
63− QueryParam "createdAfter" DateTime :>
64− QueryParam "createdBefore" DateTime :>
63+ QueryParam "createdAfter" DateTime' :>
64+ QueryParam "createdBefore" DateTime' :>
6565 QueryParam "creatorEmail" Text :>
6666 QueryParam "maxResults" Word32 :>
67− QueryParam "modifiedAfter" DateTime :>
68− QueryParam "modifiedBefore" DateTime :>
67+ QueryParam "modifiedAfter" DateTime' :>
68+ QueryParam "modifiedBefore" DateTime' :>
6969 QueryParam "pageToken" Text :>
7070 QueryParam "role"
7171 MapsEngineRasterCollectionsRastersListRole
@@ -87,7 +87,7 @@ type RasterCollectionsRastersListResource =
8787--
8888-- /See:/ 'rasterCollectionsRastersList'' smart constructor.
8989data RasterCollectionsRastersList' = RasterCollectionsRastersList'
90− { _rcrlCreatedAfter :: !(Maybe DateTime)
90+ { _rcrlCreatedAfter :: !(Maybe DateTime')
9191 , _rcrlQuotaUser :: !(Maybe Text)
9292 , _rcrlPrettyPrint :: !Bool
9393 , _rcrlUserIP :: !(Maybe Text)
@@ -96,15 +96,15 @@ data RasterCollectionsRastersList' = RasterCollectionsRastersList'
9696 , _rcrlKey :: !(Maybe Key)
9797 , _rcrlBbox :: !(Maybe Text)
9898 , _rcrlId :: !Text
99− , _rcrlModifiedAfter :: !(Maybe DateTime)
100− , _rcrlModifiedBefore :: !(Maybe DateTime)
99+ , _rcrlModifiedAfter :: !(Maybe DateTime')
100+ , _rcrlModifiedBefore :: !(Maybe DateTime')
101101 , _rcrlPageToken :: !(Maybe Text)
102102 , _rcrlOAuthToken :: !(Maybe OAuthToken)
103103 , _rcrlSearch :: !(Maybe Text)
104104 , _rcrlMaxResults :: !(Maybe Word32)
105105 , _rcrlTags :: !(Maybe Text)
106106 , _rcrlFields :: !(Maybe Text)
107− , _rcrlCreatedBefore :: !(Maybe DateTime)
107+ , _rcrlCreatedBefore :: !(Maybe DateTime')
108108 } deriving (Eq,Read,Show,Data,Typeable,Generic)
109109
110110-- | Creates a value of 'RasterCollectionsRastersList'' with the minimum fields required to make a request.
@@ -177,6 +177,7 @@ rcrlCreatedAfter :: Lens' RasterCollectionsRastersList' (Maybe UTCTime)
177177rcrlCreatedAfter
178178 = lens _rcrlCreatedAfter
179179 (\ s a -> s{_rcrlCreatedAfter = a})
180+ . mapping _DateTime
180181
181182-- | Available to use for quota purposes for server-side applications. Can be
182183-- any arbitrary string assigned to a user, but should not exceed 40
@@ -231,6 +232,7 @@ rcrlModifiedAfter :: Lens' RasterCollectionsRastersList' (Maybe UTCTime)
231232rcrlModifiedAfter
232233 = lens _rcrlModifiedAfter
233234 (\ s a -> s{_rcrlModifiedAfter = a})
235+ . mapping _DateTime
234236
235237-- | An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
236238-- Returned assets will have been modified at or before this time.
@@ -238,6 +240,7 @@ rcrlModifiedBefore :: Lens' RasterCollectionsRastersList' (Maybe UTCTime)
238240rcrlModifiedBefore
239241 = lens _rcrlModifiedBefore
240242 (\ s a -> s{_rcrlModifiedBefore = a})
243+ . mapping _DateTime
241244
242245-- | The continuation token, used to page through large result sets. To get
243246-- the next page of results, set this parameter to the value of
@@ -282,6 +285,7 @@ rcrlCreatedBefore :: Lens' RasterCollectionsRastersList' (Maybe UTCTime)
282285rcrlCreatedBefore
283286 = lens _rcrlCreatedBefore
284287 (\ s a -> s{_rcrlCreatedBefore = a})
288+ . mapping _DateTime
285289
286290instance GoogleAuth RasterCollectionsRastersList'
287291 where
gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Rasters/List.hs+12−8
@@ -59,12 +59,12 @@ import Network.Google.Prelude
5959type RastersListResource =
6060 "rasters" :>
6161 QueryParam "bbox" Text :>
62− QueryParam "createdAfter" DateTime :>
63− QueryParam "createdBefore" DateTime :>
62+ QueryParam "createdAfter" DateTime' :>
63+ QueryParam "createdBefore" DateTime' :>
6464 QueryParam "creatorEmail" Text :>
6565 QueryParam "maxResults" Word32 :>
66− QueryParam "modifiedAfter" DateTime :>
67− QueryParam "modifiedBefore" DateTime :>
66+ QueryParam "modifiedAfter" DateTime' :>
67+ QueryParam "modifiedBefore" DateTime' :>
6868 QueryParam "pageToken" Text :>
6969 QueryParam "processingStatus"
7070 MapsEngineRastersListProcessingStatus
@@ -87,7 +87,7 @@ type RastersListResource =
8787--
8888-- /See:/ 'rastersList'' smart constructor.
8989data RastersList' = RastersList'
90− { _rlCreatedAfter :: !(Maybe DateTime)
90+ { _rlCreatedAfter :: !(Maybe DateTime')
9191 , _rlQuotaUser :: !(Maybe Text)
9292 , _rlPrettyPrint :: !Bool
9393 , _rlUserIP :: !(Maybe Text)
@@ -96,8 +96,8 @@ data RastersList' = RastersList'
9696 , _rlKey :: !(Maybe Key)
9797 , _rlBbox :: !(Maybe Text)
9898 , _rlProcessingStatus :: !(Maybe MapsEngineRastersListProcessingStatus)
99− , _rlModifiedAfter :: !(Maybe DateTime)
100− , _rlModifiedBefore :: !(Maybe DateTime)
99+ , _rlModifiedAfter :: !(Maybe DateTime')
100+ , _rlModifiedBefore :: !(Maybe DateTime')
101101 , _rlPageToken :: !(Maybe Text)
102102 , _rlProjectId :: !Text
103103 , _rlOAuthToken :: !(Maybe OAuthToken)
@@ -105,7 +105,7 @@ data RastersList' = RastersList'
105105 , _rlMaxResults :: !(Maybe Word32)
106106 , _rlTags :: !(Maybe Text)
107107 , _rlFields :: !(Maybe Text)
108− , _rlCreatedBefore :: !(Maybe DateTime)
108+ , _rlCreatedBefore :: !(Maybe DateTime')
109109 } deriving (Eq,Read,Show,Data,Typeable,Generic)
110110
111111-- | Creates a value of 'RastersList'' with the minimum fields required to make a request.
@@ -181,6 +181,7 @@ rlCreatedAfter :: Lens' RastersList' (Maybe UTCTime)
181181rlCreatedAfter
182182 = lens _rlCreatedAfter
183183 (\ s a -> s{_rlCreatedAfter = a})
184+ . mapping _DateTime
184185
185186-- | Available to use for quota purposes for server-side applications. Can be
186187-- any arbitrary string assigned to a user, but should not exceed 40
@@ -234,6 +235,7 @@ rlModifiedAfter :: Lens' RastersList' (Maybe UTCTime)
234235rlModifiedAfter
235236 = lens _rlModifiedAfter
236237 (\ s a -> s{_rlModifiedAfter = a})
238+ . mapping _DateTime
237239
238240-- | An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
239241-- Returned assets will have been modified at or before this time.
@@ -241,6 +243,7 @@ rlModifiedBefore :: Lens' RastersList' (Maybe UTCTime)
241243rlModifiedBefore
242244 = lens _rlModifiedBefore
243245 (\ s a -> s{_rlModifiedBefore = a})
246+ . mapping _DateTime
244247
245248-- | The continuation token, used to page through large result sets. To get
246249-- the next page of results, set this parameter to the value of
@@ -288,6 +291,7 @@ rlCreatedBefore :: Lens' RastersList' (Maybe UTCTime)
288291rlCreatedBefore
289292 = lens _rlCreatedBefore
290293 (\ s a -> s{_rlCreatedBefore = a})
294+ . mapping _DateTime
291295
292296instance GoogleAuth RastersList' where
293297 authKey = rlKey . _Just
gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Tables/List.hs+12−8
@@ -59,12 +59,12 @@ import Network.Google.Prelude
5959type TablesListResource =
6060 "tables" :>
6161 QueryParam "bbox" Text :>
62− QueryParam "createdAfter" DateTime :>
63− QueryParam "createdBefore" DateTime :>
62+ QueryParam "createdAfter" DateTime' :>
63+ QueryParam "createdBefore" DateTime' :>
6464 QueryParam "creatorEmail" Text :>
6565 QueryParam "maxResults" Word32 :>
66− QueryParam "modifiedAfter" DateTime :>
67− QueryParam "modifiedBefore" DateTime :>
66+ QueryParam "modifiedAfter" DateTime' :>
67+ QueryParam "modifiedBefore" DateTime' :>
6868 QueryParam "pageToken" Text :>
6969 QueryParam "processingStatus"
7070 MapsEngineTablesListProcessingStatus
@@ -87,7 +87,7 @@ type TablesListResource =
8787--
8888-- /See:/ 'tablesList'' smart constructor.
8989data TablesList' = TablesList'
90− { _tlCreatedAfter :: !(Maybe DateTime)
90+ { _tlCreatedAfter :: !(Maybe DateTime')
9191 , _tlQuotaUser :: !(Maybe Text)
9292 , _tlPrettyPrint :: !Bool
9393 , _tlUserIP :: !(Maybe Text)
@@ -96,8 +96,8 @@ data TablesList' = TablesList'
9696 , _tlKey :: !(Maybe Key)
9797 , _tlBbox :: !(Maybe Text)
9898 , _tlProcessingStatus :: !(Maybe MapsEngineTablesListProcessingStatus)
99− , _tlModifiedAfter :: !(Maybe DateTime)
100− , _tlModifiedBefore :: !(Maybe DateTime)
99+ , _tlModifiedAfter :: !(Maybe DateTime')
100+ , _tlModifiedBefore :: !(Maybe DateTime')
101101 , _tlPageToken :: !(Maybe Text)
102102 , _tlProjectId :: !(Maybe Text)
103103 , _tlOAuthToken :: !(Maybe OAuthToken)
@@ -105,7 +105,7 @@ data TablesList' = TablesList'
105105 , _tlMaxResults :: !(Maybe Word32)
106106 , _tlTags :: !(Maybe Text)
107107 , _tlFields :: !(Maybe Text)
108− , _tlCreatedBefore :: !(Maybe DateTime)
108+ , _tlCreatedBefore :: !(Maybe DateTime')
109109 } deriving (Eq,Read,Show,Data,Typeable,Generic)
110110
111111-- | Creates a value of 'TablesList'' with the minimum fields required to make a request.
@@ -180,6 +180,7 @@ tlCreatedAfter :: Lens' TablesList' (Maybe UTCTime)
180180tlCreatedAfter
181181 = lens _tlCreatedAfter
182182 (\ s a -> s{_tlCreatedAfter = a})
183+ . mapping _DateTime
183184
184185-- | Available to use for quota purposes for server-side applications. Can be
185186-- any arbitrary string assigned to a user, but should not exceed 40
@@ -233,6 +234,7 @@ tlModifiedAfter :: Lens' TablesList' (Maybe UTCTime)
233234tlModifiedAfter
234235 = lens _tlModifiedAfter
235236 (\ s a -> s{_tlModifiedAfter = a})
237+ . mapping _DateTime
236238
237239-- | An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
238240-- Returned assets will have been modified at or before this time.
@@ -240,6 +242,7 @@ tlModifiedBefore :: Lens' TablesList' (Maybe UTCTime)
240242tlModifiedBefore
241243 = lens _tlModifiedBefore
242244 (\ s a -> s{_tlModifiedBefore = a})
245+ . mapping _DateTime
243246
244247-- | The continuation token, used to page through large result sets. To get
245248-- the next page of results, set this parameter to the value of
@@ -287,6 +290,7 @@ tlCreatedBefore :: Lens' TablesList' (Maybe UTCTime)
287290tlCreatedBefore
288291 = lens _tlCreatedBefore
289292 (\ s a -> s{_tlCreatedBefore = a})
293+ . mapping _DateTime
290294
291295instance GoogleAuth TablesList' where
292296 authKey = tlKey . _Just
gogol-mirror/gen/Network/Google/Mirror/Types/Product.hs+16−10
@@ -109,7 +109,7 @@ instance ToJSON LocationsListResponse where
109109--
110110-- /See:/ 'notificationConfig' smart constructor.
111111data NotificationConfig = NotificationConfig
112− { _ncDeliveryTime :: !(Maybe DateTime)
112+ { _ncDeliveryTime :: !(Maybe DateTime')
113113 , _ncLevel :: !(Maybe Text)
114114 } deriving (Eq,Read,Show,Data,Typeable,Generic)
115115
@@ -133,6 +133,7 @@ ncDeliveryTime :: Lens' NotificationConfig (Maybe UTCTime)
133133ncDeliveryTime
134134 = lens _ncDeliveryTime
135135 (\ s a -> s{_ncDeliveryTime = a})
136+ . mapping _DateTime
136137
137138-- | Describes how important the notification is. Allowed values are: -
138139-- DEFAULT - Notifications of default importance. A chime will be played to
@@ -165,7 +166,7 @@ data Location = Location
165166 , _lId :: !(Maybe Text)
166167 , _lAccuracy :: !(Maybe Double)
167168 , _lLongitude :: !(Maybe Double)
168− , _lTimestamp :: !(Maybe DateTime)
169+ , _lTimestamp :: !(Maybe DateTime')
169170 } deriving (Eq,Read,Show,Data,Typeable,Generic)
170171
171172-- | Creates a value of 'Location' with the minimum fields required to make a request.
@@ -238,7 +239,8 @@ lLongitude
238239-- 3339.
239240lTimestamp :: Lens' Location (Maybe UTCTime)
240241lTimestamp
241− = lens _lTimestamp (\ s a -> s{_lTimestamp = a})
242+ = lens _lTimestamp (\ s a -> s{_lTimestamp = a}) .
243+ mapping _DateTime
242244
243245instance FromJSON Location where
244246 parseJSON
@@ -1259,7 +1261,7 @@ data Subscription = Subscription
12591261 , _subVerifyToken :: !(Maybe Text)
12601262 , _subUserToken :: !(Maybe Text)
12611263 , _subId :: !(Maybe Text)
1262− , _subUpdated :: !(Maybe DateTime)
1264+ , _subUpdated :: !(Maybe DateTime')
12631265 } deriving (Eq,Read,Show,Data,Typeable,Generic)
12641266
12651267-- | Creates a value of 'Subscription' with the minimum fields required to make a request.
@@ -1356,7 +1358,8 @@ subId = lens _subId (\ s a -> s{_subId = a})
13561358-- according to RFC 3339.
13571359subUpdated :: Lens' Subscription (Maybe UTCTime)
13581360subUpdated
1359− = lens _subUpdated (\ s a -> s{_subUpdated = a})
1361+ = lens _subUpdated (\ s a -> s{_subUpdated = a}) .
1362+ mapping _DateTime
13601363
13611364instance FromJSON Subscription where
13621365 parseJSON
@@ -1393,7 +1396,7 @@ instance ToJSON Subscription where
13931396-- /See:/ 'timelineItem' smart constructor.
13941397data TimelineItem = TimelineItem
13951398 { _tiCreator :: !(Maybe Contact)
1396− , _tiDisplayTime :: !(Maybe DateTime)
1399+ , _tiDisplayTime :: !(Maybe DateTime')
13971400 , _tiEtag :: !(Maybe Text)
13981401 , _tiIsDeleted :: !(Maybe Bool)
13991402 , _tiPinScore :: !(Maybe Int32)
@@ -1403,7 +1406,7 @@ data TimelineItem = TimelineItem
14031406 , _tiNotification :: !(Maybe NotificationConfig)
14041407 , _tiText :: !(Maybe Text)
14051408 , _tiKind :: !Text
1406− , _tiCreated :: !(Maybe DateTime)
1409+ , _tiCreated :: !(Maybe DateTime')
14071410 , _tiSpeakableText :: !(Maybe Text)
14081411 , _tiIsBundleCover :: !(Maybe Bool)
14091412 , _tiSpeakableType :: !(Maybe Text)
@@ -1414,7 +1417,7 @@ data TimelineItem = TimelineItem
14141417 , _tiSourceItemId :: !(Maybe Text)
14151418 , _tiId :: !(Maybe Text)
14161419 , _tiHTML :: !(Maybe Text)
1417− , _tiUpdated :: !(Maybe DateTime)
1420+ , _tiUpdated :: !(Maybe DateTime')
14181421 , _tiRecipients :: !(Maybe [Contact])
14191422 , _tiTitle :: !(Maybe Text)
14201423 , _tiInReplyTo :: !(Maybe Text)
@@ -1521,6 +1524,7 @@ tiDisplayTime :: Lens' TimelineItem (Maybe UTCTime)
15211524tiDisplayTime
15221525 = lens _tiDisplayTime
15231526 (\ s a -> s{_tiDisplayTime = a})
1527+ . mapping _DateTime
15241528
15251529-- | ETag for this item.
15261530tiEtag :: Lens' TimelineItem (Maybe Text)
@@ -1584,7 +1588,8 @@ tiKind = lens _tiKind (\ s a -> s{_tiKind = a})
15841588-- 3339.
15851589tiCreated :: Lens' TimelineItem (Maybe UTCTime)
15861590tiCreated
1587− = lens _tiCreated (\ s a -> s{_tiCreated = a})
1591+ = lens _tiCreated (\ s a -> s{_tiCreated = a}) .
1592+ mapping _DateTime
15881593
15891594-- | The speakable version of the content of this item. Along with the
15901595-- READ_ALOUD menu item, use this field to provide text that would be
@@ -1683,7 +1688,8 @@ tiHTML = lens _tiHTML (\ s a -> s{_tiHTML = a})
16831688-- RFC 3339.
16841689tiUpdated :: Lens' TimelineItem (Maybe UTCTime)
16851690tiUpdated
1686− = lens _tiUpdated (\ s a -> s{_tiUpdated = a})
1691+ = lens _tiUpdated (\ s a -> s{_tiUpdated = a}) .
1692+ mapping _DateTime
16871693
16881694-- | A list of users or groups that this item has been shared with.
16891695tiRecipients :: Lens' TimelineItem [Contact]
gogol-monitoring/gen/Network/Google/Monitoring/Types/Product.hs+21−12
@@ -76,8 +76,8 @@ instance ToJSON MetricDescriptorTypeDescriptor where
7676data ListTimeseriesResponse = ListTimeseriesResponse
7777 { _ltrNextPageToken :: !(Maybe Text)
7878 , _ltrKind :: !Text
79− , _ltrOldest :: !(Maybe DateTime)
80− , _ltrYoungest :: !(Maybe DateTime)
79+ , _ltrOldest :: !(Maybe DateTime')
80+ , _ltrYoungest :: !(Maybe DateTime')
8181 , _ltrTimeseries :: !(Maybe [Timeseries])
8282 } deriving (Eq,Read,Show,Data,Typeable,Generic)
8383
@@ -124,13 +124,15 @@ ltrKind = lens _ltrKind (\ s a -> s{_ltrKind = a})
124124-- string.
125125ltrOldest :: Lens' ListTimeseriesResponse (Maybe UTCTime)
126126ltrOldest
127− = lens _ltrOldest (\ s a -> s{_ltrOldest = a})
127+ = lens _ltrOldest (\ s a -> s{_ltrOldest = a}) .
128+ mapping _DateTime
128129
129130-- | The youngest timestamp of the interval of this query as an RFC 3339
130131-- string.
131132ltrYoungest :: Lens' ListTimeseriesResponse (Maybe UTCTime)
132133ltrYoungest
133− = lens _ltrYoungest (\ s a -> s{_ltrYoungest = a})
134+ = lens _ltrYoungest (\ s a -> s{_ltrYoungest = a}) .
135+ mapping _DateTime
134136
135137-- | The returned time series.
136138ltrTimeseries :: Lens' ListTimeseriesResponse [Timeseries]
@@ -764,11 +766,11 @@ instance ToJSON PointDistribution where
764766-- /See:/ 'point' smart constructor.
765767data Point = Point
766768 { _pBoolValue :: !(Maybe Bool)
767− , _pStart :: !(Maybe DateTime)
769+ , _pStart :: !(Maybe DateTime')
768770 , _pDoubleValue :: !(Maybe Double)
769771 , _pStringValue :: !(Maybe Text)
770772 , _pDistributionValue :: !(Maybe PointDistribution)
771− , _pEnd :: !(Maybe DateTime)
773+ , _pEnd :: !(Maybe DateTime')
772774 , _pInt64Value :: !(Maybe Int64)
773775 } deriving (Eq,Read,Show,Data,Typeable,Generic)
774776
@@ -813,7 +815,9 @@ pBoolValue
813815-- metrics (of which deltas and rates are special cases), the interval
814816-- should be non-empty. Both start and end are RFC 3339 strings.
815817pStart :: Lens' Point (Maybe UTCTime)
816−pStart = lens _pStart (\ s a -> s{_pStart = a})
818+pStart
819+ = lens _pStart (\ s a -> s{_pStart = a}) .
820+ mapping _DateTime
817821
818822-- | The value of this data point as a double-precision floating-point
819823-- number.
@@ -841,7 +845,9 @@ pDistributionValue
841845-- metrics (of which deltas and rates are special cases), the interval
842846-- should be non-empty. Both start and end are RFC 3339 strings.
843847pEnd :: Lens' Point (Maybe UTCTime)
844−pEnd = lens _pEnd (\ s a -> s{_pEnd = a})
848+pEnd
849+ = lens _pEnd (\ s a -> s{_pEnd = a}) .
850+ mapping _DateTime
845851
846852-- | The value of this data point as a 64-bit integer.
847853pInt64Value :: Lens' Point (Maybe Int64)
@@ -930,8 +936,8 @@ instance ToJSON PointDistributionOverflowBucket where
930936data ListTimeseriesDescriptorsResponse = ListTimeseriesDescriptorsResponse
931937 { _lNextPageToken :: !(Maybe Text)
932938 , _lKind :: !Text
933− , _lOldest :: !(Maybe DateTime)
934− , _lYoungest :: !(Maybe DateTime)
939+ , _lOldest :: !(Maybe DateTime')
940+ , _lYoungest :: !(Maybe DateTime')
935941 , _lTimeseries :: !(Maybe [TimeseriesDescriptor])
936942 } deriving (Eq,Read,Show,Data,Typeable,Generic)
937943
@@ -975,13 +981,16 @@ lKind = lens _lKind (\ s a -> s{_lKind = a})
975981-- | The oldest timestamp of the interval of this query, as an RFC 3339
976982-- string.
977983lOldest :: Lens' ListTimeseriesDescriptorsResponse (Maybe UTCTime)
978−lOldest = lens _lOldest (\ s a -> s{_lOldest = a})
984+lOldest
985+ = lens _lOldest (\ s a -> s{_lOldest = a}) .
986+ mapping _DateTime
979987
980988-- | The youngest timestamp of the interval of this query, as an RFC 3339
981989-- string.
982990lYoungest :: Lens' ListTimeseriesDescriptorsResponse (Maybe UTCTime)
983991lYoungest
984− = lens _lYoungest (\ s a -> s{_lYoungest = a})
992+ = lens _lYoungest (\ s a -> s{_lYoungest = a}) .
993+ mapping _DateTime
985994
986995-- | The returned time series descriptors.
987996lTimeseries :: Lens' ListTimeseriesDescriptorsResponse [TimeseriesDescriptor]
gogol-plus-domains/gen/Network/Google/PlusDomains/Types/Product.hs+30−18
@@ -2259,7 +2259,7 @@ data Media = Media
22592259 , _mVideoDuration :: !(Maybe Int64)
22602260 , _mVideoStatus :: !(Maybe Text)
22612261 , _mKind :: !Text
2262− , _mPublished :: !(Maybe DateTime)
2262+ , _mPublished :: !(Maybe DateTime')
22632263 , _mURL :: !(Maybe Text)
22642264 , _mWidth :: !(Maybe Word32)
22652265 , _mMediaURL :: !(Maybe Text)
@@ -2268,8 +2268,8 @@ data Media = Media
22682268 , _mDisplayName :: !(Maybe Text)
22692269 , _mAuthor :: !(Maybe MediaAuthor)
22702270 , _mId :: !(Maybe Text)
2271− , _mUpdated :: !(Maybe DateTime)
2272− , _mMediaCreatedTime :: !(Maybe DateTime)
2271+ , _mUpdated :: !(Maybe DateTime')
2272+ , _mMediaCreatedTime :: !(Maybe DateTime')
22732273 } deriving (Eq,Read,Show,Data,Typeable,Generic)
22742274
22752275-- | Creates a value of 'Media' with the minimum fields required to make a request.
@@ -2375,7 +2375,8 @@ mKind = lens _mKind (\ s a -> s{_mKind = a})
23752375-- timestamp.
23762376mPublished :: Lens' Media (Maybe UTCTime)
23772377mPublished
2378− = lens _mPublished (\ s a -> s{_mPublished = a})
2378+ = lens _mPublished (\ s a -> s{_mPublished = a}) .
2379+ mapping _DateTime
23792380
23802381-- | The URL for the page that hosts this media.
23812382mURL :: Lens' Media (Maybe Text)
@@ -2419,7 +2420,9 @@ mId = lens _mId (\ s a -> s{_mId = a})
24192420-- | The time at which this media was last updated. This includes changes to
24202421-- media metadata. Formatted as an RFC 3339 timestamp.
24212422mUpdated :: Lens' Media (Maybe UTCTime)
2422−mUpdated = lens _mUpdated (\ s a -> s{_mUpdated = a})
2423+mUpdated
2424+ = lens _mUpdated (\ s a -> s{_mUpdated = a}) .
2425+ mapping _DateTime
24232426
24242427-- | The time at which this media was originally created in UTC. Formatted as
24252428-- an RFC 3339 timestamp that matches this example:
@@ -2428,6 +2431,7 @@ mMediaCreatedTime :: Lens' Media (Maybe UTCTime)
24282431mMediaCreatedTime
24292432 = lens _mMediaCreatedTime
24302433 (\ s a -> s{_mMediaCreatedTime = a})
2434+ . mapping _DateTime
24312435
24322436instance FromJSON Media where
24332437 parseJSON
@@ -2551,7 +2555,7 @@ data ActivityFeed = ActivityFeed
25512555 , _afItems :: !(Maybe [Activity])
25522556 , _afSelfLink :: !(Maybe Text)
25532557 , _afId :: !(Maybe Text)
2554− , _afUpdated :: !(Maybe DateTime)
2558+ , _afUpdated :: !(Maybe DateTime')
25552559 , _afTitle :: !(Maybe Text)
25562560 } deriving (Eq,Read,Show,Data,Typeable,Generic)
25572561
@@ -2632,7 +2636,8 @@ afId = lens _afId (\ s a -> s{_afId = a})
26322636-- Formatted as an RFC 3339 timestamp.
26332637afUpdated :: Lens' ActivityFeed (Maybe UTCTime)
26342638afUpdated
2635− = lens _afUpdated (\ s a -> s{_afUpdated = a})
2639+ = lens _afUpdated (\ s a -> s{_afUpdated = a}) .
2640+ mapping _DateTime
26362641
26372642-- | The title of this collection of activities, which is a truncated portion
26382643-- of the content.
@@ -3212,13 +3217,13 @@ data Activity = Activity
32123217 , _aaGeocode :: !(Maybe Text)
32133218 , _aaKind :: !Text
32143219 , _aaRadius :: !(Maybe Text)
3215− , _aaPublished :: !(Maybe DateTime)
3220+ , _aaPublished :: !(Maybe DateTime')
32163221 , _aaURL :: !(Maybe Text)
32173222 , _aaActor :: !(Maybe ActivityActor)
32183223 , _aaAddress :: !(Maybe Text)
32193224 , _aaObject :: !(Maybe ActivityObject)
32203225 , _aaId :: !(Maybe Text)
3221− , _aaUpdated :: !(Maybe DateTime)
3226+ , _aaUpdated :: !(Maybe DateTime')
32223227 , _aaTitle :: !(Maybe Text)
32233228 , _aaVerb :: !(Maybe Text)
32243229 , _aaCrosspostSource :: !(Maybe Text)
@@ -3338,7 +3343,8 @@ aaRadius = lens _aaRadius (\ s a -> s{_aaRadius = a})
33383343-- RFC 3339 timestamp.
33393344aaPublished :: Lens' Activity (Maybe UTCTime)
33403345aaPublished
3341− = lens _aaPublished (\ s a -> s{_aaPublished = a})
3346+ = lens _aaPublished (\ s a -> s{_aaPublished = a}) .
3347+ mapping _DateTime
33423348
33433349-- | The link to this activity.
33443350aaURL :: Lens' Activity (Maybe Text)
@@ -3365,7 +3371,8 @@ aaId = lens _aaId (\ s a -> s{_aaId = a})
33653371-- 3339 timestamp.
33663372aaUpdated :: Lens' Activity (Maybe UTCTime)
33673373aaUpdated
3368− = lens _aaUpdated (\ s a -> s{_aaUpdated = a})
3374+ = lens _aaUpdated (\ s a -> s{_aaUpdated = a}) .
3375+ mapping _DateTime
33693376
33703377-- | Title of this activity.
33713378aaTitle :: Lens' Activity (Maybe Text)
@@ -3683,12 +3690,12 @@ data Comment = Comment
36833690 { _comEtag :: !(Maybe Text)
36843691 , _comPlusoners :: !(Maybe CommentPlusoners)
36853692 , _comKind :: !Text
3686− , _comPublished :: !(Maybe DateTime)
3693+ , _comPublished :: !(Maybe DateTime')
36873694 , _comActor :: !(Maybe CommentActor)
36883695 , _comSelfLink :: !(Maybe Text)
36893696 , _comObject :: !(Maybe CommentObject)
36903697 , _comId :: !(Maybe Text)
3691− , _comUpdated :: !(Maybe DateTime)
3698+ , _comUpdated :: !(Maybe DateTime')
36923699 , _comVerb :: !Text
36933700 , _comInReplyTo :: !(Maybe [CommentInReplyTo])
36943701 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -3753,6 +3760,7 @@ comKind = lens _comKind (\ s a -> s{_comKind = a})
37533760comPublished :: Lens' Comment (Maybe UTCTime)
37543761comPublished
37553762 = lens _comPublished (\ s a -> s{_comPublished = a})
3763+ . mapping _DateTime
37563764
37573765-- | The person who posted this comment.
37583766comActor :: Lens' Comment (Maybe CommentActor)
@@ -3776,7 +3784,8 @@ comId = lens _comId (\ s a -> s{_comId = a})
37763784-- 3339 timestamp.
37773785comUpdated :: Lens' Comment (Maybe UTCTime)
37783786comUpdated
3779− = lens _comUpdated (\ s a -> s{_comUpdated = a})
3787+ = lens _comUpdated (\ s a -> s{_comUpdated = a}) .
3788+ mapping _DateTime
37803789
37813790-- | This comment\'s verb, indicating what action was performed. Possible
37823791-- values are: - \"post\" - Publish content to the stream.
@@ -4118,7 +4127,7 @@ instance ToJSON ACL where
41184127--
41194128-- /See:/ 'mediaExif' smart constructor.
41204129newtype MediaExif = MediaExif
4121− { _meTime :: Maybe DateTime
4130+ { _meTime :: Maybe DateTime'
41224131 } deriving (Eq,Read,Show,Data,Typeable,Generic)
41234132
41244133-- | Creates a value of 'MediaExif' with the minimum fields required to make a request.
@@ -4135,7 +4144,9 @@ mediaExif =
41354144
41364145-- | The time the media was captured. Formatted as an RFC 3339 timestamp.
41374146meTime :: Lens' MediaExif (Maybe UTCTime)
4138−meTime = lens _meTime (\ s a -> s{_meTime = a})
4147+meTime
4148+ = lens _meTime (\ s a -> s{_meTime = a}) .
4149+ mapping _DateTime
41394150
41404151instance FromJSON MediaExif where
41414152 parseJSON
@@ -4155,7 +4166,7 @@ data CommentFeed = CommentFeed
41554166 , _cffKind :: !Text
41564167 , _cffItems :: !(Maybe [Comment])
41574168 , _cffId :: !(Maybe Text)
4158− , _cffUpdated :: !(Maybe DateTime)
4169+ , _cffUpdated :: !(Maybe DateTime')
41594170 , _cffTitle :: !(Maybe Text)
41604171 } deriving (Eq,Read,Show,Data,Typeable,Generic)
41614172
@@ -4229,7 +4240,8 @@ cffId = lens _cffId (\ s a -> s{_cffId = a})
42294240-- Formatted as an RFC 3339 timestamp.
42304241cffUpdated :: Lens' CommentFeed (Maybe UTCTime)
42314242cffUpdated
4232− = lens _cffUpdated (\ s a -> s{_cffUpdated = a})
4243+ = lens _cffUpdated (\ s a -> s{_cffUpdated = a}) .
4244+ mapping _DateTime
42334245
42344246-- | The title of this collection of comments.
42354247cffTitle :: Lens' CommentFeed (Maybe Text)
gogol-plus/gen/Network/Google/Plus/Types/Product.hs+25−16
@@ -1155,7 +1155,7 @@ instance ToJSON CommentActor where
11551155data Moment = Moment
11561156 { _mKind :: !Text
11571157 , _mResult :: !(Maybe ItemScope)
1158− , _mStartDate :: !(Maybe DateTime)
1158+ , _mStartDate :: !(Maybe DateTime')
11591159 , _mObject :: !(Maybe ItemScope)
11601160 , _mId :: !(Maybe Text)
11611161 , _mType :: !(Maybe Text)
@@ -1205,7 +1205,8 @@ mResult = lens _mResult (\ s a -> s{_mResult = a})
12051205-- | Time stamp of when the action occurred in RFC3339 format.
12061206mStartDate :: Lens' Moment (Maybe UTCTime)
12071207mStartDate
1208− = lens _mStartDate (\ s a -> s{_mStartDate = a})
1208+ = lens _mStartDate (\ s a -> s{_mStartDate = a}) .
1209+ mapping _DateTime
12091210
12101211-- | The object on which the action was performed. Specifying this is
12111212-- equivalent with specifying \"target\". Note that responses from the
@@ -2568,7 +2569,7 @@ data ActivityFeed = ActivityFeed
25682569 , _afItems :: !(Maybe [Activity])
25692570 , _afSelfLink :: !(Maybe Text)
25702571 , _afId :: !(Maybe Text)
2571− , _afUpdated :: !(Maybe DateTime)
2572+ , _afUpdated :: !(Maybe DateTime')
25722573 , _afTitle :: !(Maybe Text)
25732574 } deriving (Eq,Read,Show,Data,Typeable,Generic)
25742575
@@ -2649,7 +2650,8 @@ afId = lens _afId (\ s a -> s{_afId = a})
26492650-- Formatted as an RFC 3339 timestamp.
26502651afUpdated :: Lens' ActivityFeed (Maybe UTCTime)
26512652afUpdated
2652− = lens _afUpdated (\ s a -> s{_afUpdated = a})
2653+ = lens _afUpdated (\ s a -> s{_afUpdated = a}) .
2654+ mapping _DateTime
26532655
26542656-- | The title of this collection of activities, which is a truncated portion
26552657-- of the content.
@@ -3121,13 +3123,13 @@ data Activity = Activity
31213123 , _aaGeocode :: !(Maybe Text)
31223124 , _aaKind :: !Text
31233125 , _aaRadius :: !(Maybe Text)
3124− , _aaPublished :: !(Maybe DateTime)
3126+ , _aaPublished :: !(Maybe DateTime')
31253127 , _aaURL :: !(Maybe Text)
31263128 , _aaActor :: !(Maybe ActivityActor)
31273129 , _aaAddress :: !(Maybe Text)
31283130 , _aaObject :: !(Maybe ActivityObject)
31293131 , _aaId :: !(Maybe Text)
3130− , _aaUpdated :: !(Maybe DateTime)
3132+ , _aaUpdated :: !(Maybe DateTime')
31313133 , _aaTitle :: !(Maybe Text)
31323134 , _aaVerb :: !(Maybe Text)
31333135 , _aaCrosspostSource :: !(Maybe Text)
@@ -3247,7 +3249,8 @@ aaRadius = lens _aaRadius (\ s a -> s{_aaRadius = a})
32473249-- RFC 3339 timestamp.
32483250aaPublished :: Lens' Activity (Maybe UTCTime)
32493251aaPublished
3250− = lens _aaPublished (\ s a -> s{_aaPublished = a})
3252+ = lens _aaPublished (\ s a -> s{_aaPublished = a}) .
3253+ mapping _DateTime
32513254
32523255-- | The link to this activity.
32533256aaURL :: Lens' Activity (Maybe Text)
@@ -3274,7 +3277,8 @@ aaId = lens _aaId (\ s a -> s{_aaId = a})
32743277-- 3339 timestamp.
32753278aaUpdated :: Lens' Activity (Maybe UTCTime)
32763279aaUpdated
3277− = lens _aaUpdated (\ s a -> s{_aaUpdated = a})
3280+ = lens _aaUpdated (\ s a -> s{_aaUpdated = a}) .
3281+ mapping _DateTime
32783282
32793283-- | Title of this activity.
32803284aaTitle :: Lens' Activity (Maybe Text)
@@ -3592,12 +3596,12 @@ data Comment = Comment
35923596 { _cEtag :: !(Maybe Text)
35933597 , _cPlusoners :: !(Maybe CommentPlusoners)
35943598 , _cKind :: !Text
3595− , _cPublished :: !(Maybe DateTime)
3599+ , _cPublished :: !(Maybe DateTime')
35963600 , _cActor :: !(Maybe CommentActor)
35973601 , _cSelfLink :: !(Maybe Text)
35983602 , _cObject :: !(Maybe CommentObject)
35993603 , _cId :: !(Maybe Text)
3600− , _cUpdated :: !(Maybe DateTime)
3604+ , _cUpdated :: !(Maybe DateTime')
36013605 , _cVerb :: !Text
36023606 , _cInReplyTo :: !(Maybe [CommentInReplyTo])
36033607 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -3661,7 +3665,8 @@ cKind = lens _cKind (\ s a -> s{_cKind = a})
36613665-- RFC 3339 timestamp.
36623666cPublished :: Lens' Comment (Maybe UTCTime)
36633667cPublished
3664− = lens _cPublished (\ s a -> s{_cPublished = a})
3668+ = lens _cPublished (\ s a -> s{_cPublished = a}) .
3669+ mapping _DateTime
36653670
36663671-- | The person who posted this comment.
36673672cActor :: Lens' Comment (Maybe CommentActor)
@@ -3683,7 +3688,9 @@ cId = lens _cId (\ s a -> s{_cId = a})
36833688-- | The time at which this comment was last updated. Formatted as an RFC
36843689-- 3339 timestamp.
36853690cUpdated :: Lens' Comment (Maybe UTCTime)
3686−cUpdated = lens _cUpdated (\ s a -> s{_cUpdated = a})
3691+cUpdated
3692+ = lens _cUpdated (\ s a -> s{_cUpdated = a}) .
3693+ mapping _DateTime
36873694
36883695-- | This comment\'s verb, indicating what action was performed. Possible
36893696-- values are: - \"post\" - Publish content to the stream.
@@ -4015,7 +4022,7 @@ data MomentsFeed = MomentsFeed
40154022 , _mfKind :: !Text
40164023 , _mfItems :: !(Maybe [Moment])
40174024 , _mfSelfLink :: !(Maybe Text)
4018− , _mfUpdated :: !(Maybe DateTime)
4025+ , _mfUpdated :: !(Maybe DateTime')
40194026 , _mfTitle :: !(Maybe Text)
40204027 } deriving (Eq,Read,Show,Data,Typeable,Generic)
40214028
@@ -4089,7 +4096,8 @@ mfSelfLink
40894096-- updated.
40904097mfUpdated :: Lens' MomentsFeed (Maybe UTCTime)
40914098mfUpdated
4092− = lens _mfUpdated (\ s a -> s{_mfUpdated = a})
4099+ = lens _mfUpdated (\ s a -> s{_mfUpdated = a}) .
4100+ mapping _DateTime
40934101
40944102-- | The title of this collection of moments.
40954103mfTitle :: Lens' MomentsFeed (Maybe Text)
@@ -4129,7 +4137,7 @@ data CommentFeed = CommentFeed
41294137 , _cfKind :: !Text
41304138 , _cfItems :: !(Maybe [Comment])
41314139 , _cfId :: !(Maybe Text)
4132− , _cfUpdated :: !(Maybe DateTime)
4140+ , _cfUpdated :: !(Maybe DateTime')
41334141 , _cfTitle :: !(Maybe Text)
41344142 } deriving (Eq,Read,Show,Data,Typeable,Generic)
41354143
@@ -4202,7 +4210,8 @@ cfId = lens _cfId (\ s a -> s{_cfId = a})
42024210-- Formatted as an RFC 3339 timestamp.
42034211cfUpdated :: Lens' CommentFeed (Maybe UTCTime)
42044212cfUpdated
4205− = lens _cfUpdated (\ s a -> s{_cfUpdated = a})
4213+ = lens _cfUpdated (\ s a -> s{_cfUpdated = a}) .
4214+ mapping _DateTime
42064215
42074216-- | The title of this collection of comments.
42084217cfTitle :: Lens' CommentFeed (Maybe Text)
gogol-prediction/gen/Network/Google/Prediction/Types/Product.hs+5−3
@@ -368,8 +368,8 @@ data Insert2 = Insert2
368368 { _insStorageDataLocation :: !(Maybe Text)
369369 , _insModelType :: !(Maybe Text)
370370 , _insKind :: !Text
371− , _insCreated :: !(Maybe DateTime)
372− , _insTrainingComplete :: !(Maybe DateTime)
371+ , _insCreated :: !(Maybe DateTime')
372+ , _insTrainingComplete :: !(Maybe DateTime')
373373 , _insSelfLink :: !(Maybe Text)
374374 , _insTrainingStatus :: !(Maybe Text)
375375 , _insStoragePMMLModelLocation :: !(Maybe Text)
@@ -438,13 +438,15 @@ insKind = lens _insKind (\ s a -> s{_insKind = a})
438438-- | Insert time of the model (as a RFC 3339 timestamp).
439439insCreated :: Lens' Insert2 (Maybe UTCTime)
440440insCreated
441− = lens _insCreated (\ s a -> s{_insCreated = a})
441+ = lens _insCreated (\ s a -> s{_insCreated = a}) .
442+ mapping _DateTime
442443
443444-- | Training completion time (as a RFC 3339 timestamp).
444445insTrainingComplete :: Lens' Insert2 (Maybe UTCTime)
445446insTrainingComplete
446447 = lens _insTrainingComplete
447448 (\ s a -> s{_insTrainingComplete = a})
449+ . mapping _DateTime
448450
449451-- | A URL to re-request this resource.
450452insSelfLink :: Lens' Insert2 (Maybe Text)
gogol-sqladmin/gen/Network/Google/SQLAdmin/Types/Product.hs+28−16
@@ -28,8 +28,8 @@ data SSLCert = SSLCert
2828 , _scSelfLink :: !(Maybe Text)
2929 , _scCert :: !(Maybe Text)
3030 , _scSha1Fingerprint :: !(Maybe Text)
31− , _scExpirationTime :: !(Maybe DateTime)
32− , _scCreateTime :: !(Maybe DateTime)
31+ , _scExpirationTime :: !(Maybe DateTime')
32+ , _scCreateTime :: !(Maybe DateTime')
3333 , _scInstance :: !(Maybe Text)
3434 } deriving (Eq,Read,Show,Data,Typeable,Generic)
3535
@@ -105,12 +105,14 @@ scExpirationTime :: Lens' SSLCert (Maybe UTCTime)
105105scExpirationTime
106106 = lens _scExpirationTime
107107 (\ s a -> s{_scExpirationTime = a})
108+ . mapping _DateTime
108109
109110-- | The time when the certificate was created in RFC 3339 format, for
110111-- example 2012-11-15T16:19:00.094Z
111112scCreateTime :: Lens' SSLCert (Maybe UTCTime)
112113scCreateTime
113114 = lens _scCreateTime (\ s a -> s{_scCreateTime = a})
115+ . mapping _DateTime
114116
115117-- | Name of the database instance.
116118scInstance :: Lens' SSLCert (Maybe Text)
@@ -781,7 +783,7 @@ instance ToJSON Database where
781783-- /See:/ 'ipMapping' smart constructor.
782784data IPMapping = IPMapping
783785 { _imIPAddress :: !(Maybe Text)
784− , _imTimeToRetire :: !(Maybe DateTime)
786+ , _imTimeToRetire :: !(Maybe DateTime')
785787 } deriving (Eq,Read,Show,Data,Typeable,Generic)
786788
787789-- | Creates a value of 'IPMapping' with the minimum fields required to make a request.
@@ -811,6 +813,7 @@ imTimeToRetire :: Lens' IPMapping (Maybe UTCTime)
811813imTimeToRetire
812814 = lens _imTimeToRetire
813815 (\ s a -> s{_imTimeToRetire = a})
816+ . mapping _DateTime
814817
815818instance FromJSON IPMapping where
816819 parseJSON
@@ -836,16 +839,16 @@ data Operation = Operation
836839 { _oTargetId :: !(Maybe Text)
837840 , _oTargetProject :: !(Maybe Text)
838841 , _oStatus :: !(Maybe Text)
839− , _oInsertTime :: !(Maybe DateTime)
842+ , _oInsertTime :: !(Maybe DateTime')
840843 , _oImportContext :: !(Maybe ImportContext)
841− , _oStartTime :: !(Maybe DateTime)
844+ , _oStartTime :: !(Maybe DateTime')
842845 , _oKind :: !Text
843846 , _oError :: !(Maybe OperationErrors)
844847 , _oExportContext :: !(Maybe ExportContext)
845848 , _oUser :: !(Maybe Text)
846849 , _oSelfLink :: !(Maybe Text)
847850 , _oName :: !(Maybe Text)
848− , _oEndTime :: !(Maybe DateTime)
851+ , _oEndTime :: !(Maybe DateTime')
849852 , _oOperationType :: !(Maybe Text)
850853 , _oTargetLink :: !(Maybe Text)
851854 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -924,7 +927,8 @@ oStatus = lens _oStatus (\ s a -> s{_oStatus = a})
924927-- for example 2012-11-15T16:19:00.094Z.
925928oInsertTime :: Lens' Operation (Maybe UTCTime)
926929oInsertTime
927− = lens _oInsertTime (\ s a -> s{_oInsertTime = a})
930+ = lens _oInsertTime (\ s a -> s{_oInsertTime = a}) .
931+ mapping _DateTime
928932
929933-- | The context for import operation, if applicable.
930934oImportContext :: Lens' Operation (Maybe ImportContext)
@@ -936,7 +940,8 @@ oImportContext
936940-- format, for example 2012-11-15T16:19:00.094Z.
937941oStartTime :: Lens' Operation (Maybe UTCTime)
938942oStartTime
939− = lens _oStartTime (\ s a -> s{_oStartTime = a})
943+ = lens _oStartTime (\ s a -> s{_oStartTime = a}) .
944+ mapping _DateTime
940945
941946-- | This is always sql#operation.
942947oKind :: Lens' Operation Text
@@ -971,7 +976,9 @@ oName = lens _oName (\ s a -> s{_oName = a})
971976-- | The time this operation finished in UTC timezone in RFC 3339 format, for
972977-- example 2012-11-15T16:19:00.094Z.
973978oEndTime :: Lens' Operation (Maybe UTCTime)
974−oEndTime = lens _oEndTime (\ s a -> s{_oEndTime = a})
979+oEndTime
980+ = lens _oEndTime (\ s a -> s{_oEndTime = a}) .
981+ mapping _DateTime
975982
976983-- | The type of the operation. Valid values are CREATE, DELETE, UPDATE,
977984-- RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME, CREATE_USER,
@@ -2142,14 +2149,14 @@ instance ToJSON CloneContext where
21422149-- /See:/ 'backupRun' smart constructor.
21432150data BackupRun = BackupRun
21442151 { _brStatus :: !(Maybe Text)
2145− , _brStartTime :: !(Maybe DateTime)
2152+ , _brStartTime :: !(Maybe DateTime')
21462153 , _brKind :: !Text
21472154 , _brError :: !(Maybe OperationError)
2148− , _brWindowStartTime :: !(Maybe DateTime)
2155+ , _brWindowStartTime :: !(Maybe DateTime')
21492156 , _brSelfLink :: !(Maybe Text)
2150− , _brEndTime :: !(Maybe DateTime)
2157+ , _brEndTime :: !(Maybe DateTime')
21512158 , _brId :: !(Maybe Int64)
2152− , _brEnqueuedTime :: !(Maybe DateTime)
2159+ , _brEnqueuedTime :: !(Maybe DateTime')
21532160 , _brInstance :: !(Maybe Text)
21542161 } deriving (Eq,Read,Show,Data,Typeable,Generic)
21552162
@@ -2200,7 +2207,8 @@ brStatus = lens _brStatus (\ s a -> s{_brStatus = a})
22002207-- 3339 format, for example 2012-11-15T16:19:00.094Z.
22012208brStartTime :: Lens' BackupRun (Maybe UTCTime)
22022209brStartTime
2203− = lens _brStartTime (\ s a -> s{_brStartTime = a})
2210+ = lens _brStartTime (\ s a -> s{_brStartTime = a}) .
2211+ mapping _DateTime
22042212
22052213-- | This is always sql#backupRun.
22062214brKind :: Lens' BackupRun Text
@@ -2217,6 +2225,7 @@ brWindowStartTime :: Lens' BackupRun (Maybe UTCTime)
22172225brWindowStartTime
22182226 = lens _brWindowStartTime
22192227 (\ s a -> s{_brWindowStartTime = a})
2228+ . mapping _DateTime
22202229
22212230-- | The URI of this resource.
22222231brSelfLink :: Lens' BackupRun (Maybe Text)
@@ -2227,7 +2236,8 @@ brSelfLink
22272236-- format, for example 2012-11-15T16:19:00.094Z.
22282237brEndTime :: Lens' BackupRun (Maybe UTCTime)
22292238brEndTime
2230− = lens _brEndTime (\ s a -> s{_brEndTime = a})
2239+ = lens _brEndTime (\ s a -> s{_brEndTime = a}) .
2240+ mapping _DateTime
22312241
22322242-- | A unique identifier for this backup run. Note that this is unique only
22332243-- within the scope of a particular Cloud SQL instance.
@@ -2240,6 +2250,7 @@ brEnqueuedTime :: Lens' BackupRun (Maybe UTCTime)
22402250brEnqueuedTime
22412251 = lens _brEnqueuedTime
22422252 (\ s a -> s{_brEnqueuedTime = a})
2253+ . mapping _DateTime
22432254
22442255-- | Name of the database instance.
22452256brInstance :: Lens' BackupRun (Maybe Text)
@@ -2281,7 +2292,7 @@ data ACLEntry = ACLEntry
22812292 { _aeKind :: !Text
22822293 , _aeValue :: !(Maybe Text)
22832294 , _aeName :: !(Maybe Text)
2284− , _aeExpirationTime :: !(Maybe DateTime)
2295+ , _aeExpirationTime :: !(Maybe DateTime')
22852296 } deriving (Eq,Read,Show,Data,Typeable,Generic)
22862297
22872298-- | Creates a value of 'ACLEntry' with the minimum fields required to make a request.
@@ -2323,6 +2334,7 @@ aeExpirationTime :: Lens' ACLEntry (Maybe UTCTime)
23232334aeExpirationTime
23242335 = lens _aeExpirationTime
23252336 (\ s a -> s{_aeExpirationTime = a})
2337+ . mapping _DateTime
23262338
23272339instance FromJSON ACLEntry where
23282340 parseJSON
gogol-storage/gen/Network/Google/Storage/Types/Product.hs+10−6
@@ -275,7 +275,7 @@ data BucketLifecycleRuleCondition = BucketLifecycleRuleCondition
275275 { _blrcAge :: !(Maybe Int32)
276276 , _blrcIsLive :: !(Maybe Bool)
277277 , _blrcNumNewerVersions :: !(Maybe Int32)
278− , _blrcCreatedBefore :: !(Maybe Date)
278+ , _blrcCreatedBefore :: !(Maybe Date')
279279 } deriving (Eq,Read,Show,Data,Typeable,Generic)
280280
281281-- | Creates a value of 'BucketLifecycleRuleCondition' with the minimum fields required to make a request.
@@ -322,10 +322,11 @@ blrcNumNewerVersions
322322-- | A date in RFC 3339 format with only the date part, e.g. \"2013-01-15\".
323323-- This condition is satisfied when an object is created before midnight of
324324-- the specified date in UTC.
325−blrcCreatedBefore :: Lens' BucketLifecycleRuleCondition (Maybe UTCTime)
325+blrcCreatedBefore :: Lens' BucketLifecycleRuleCondition (Maybe LocalTime)
326326blrcCreatedBefore
327327 = lens _blrcCreatedBefore
328328 (\ s a -> s{_blrcCreatedBefore = a})
329+ . mapping _Date
329330
330331instance FromJSON BucketLifecycleRuleCondition where
331332 parseJSON
@@ -663,7 +664,7 @@ data Bucket = Bucket
663664 , _bucStorageClass :: !(Maybe Text)
664665 , _bucVersioning :: !(Maybe BucketVersioning)
665666 , _bucCORS :: !(Maybe [BucketCORS])
666− , _bucTimeCreated :: !(Maybe DateTime)
667+ , _bucTimeCreated :: !(Maybe DateTime')
667668 , _bucId :: !(Maybe Text)
668669 , _bucDefaultObjectACL :: !(Maybe [ObjectAccessControl])
669670 , _bucMetageneration :: !(Maybe Int64)
@@ -797,6 +798,7 @@ bucTimeCreated :: Lens' Bucket (Maybe UTCTime)
797798bucTimeCreated
798799 = lens _bucTimeCreated
799800 (\ s a -> s{_bucTimeCreated = a})
801+ . mapping _DateTime
800802
801803-- | The ID of the bucket.
802804bucId :: Lens' Bucket (Maybe Text)
@@ -1417,7 +1419,7 @@ data Object = Object
14171419 { _objEtag :: !(Maybe Text)
14181420 , _objSize :: !(Maybe Word64)
14191421 , _objKind :: !Text
1420− , _objTimeDeleted :: !(Maybe DateTime)
1422+ , _objTimeDeleted :: !(Maybe DateTime')
14211423 , _objCrc32c :: !(Maybe Text)
14221424 , _objBucket :: !(Maybe Text)
14231425 , _objOwner :: !(Maybe ObjectOwner)
@@ -1429,7 +1431,7 @@ data Object = Object
14291431 , _objContentEncoding :: !(Maybe Text)
14301432 , _objMetadata :: !(Maybe ObjectMetadata)
14311433 , _objId :: !(Maybe Text)
1432− , _objUpdated :: !(Maybe DateTime)
1434+ , _objUpdated :: !(Maybe DateTime')
14331435 , _objContentLanguage :: !(Maybe Text)
14341436 , _objCacheControl :: !(Maybe Text)
14351437 , _objMetageneration :: !(Maybe Int64)
@@ -1539,6 +1541,7 @@ objTimeDeleted :: Lens' Object (Maybe UTCTime)
15391541objTimeDeleted
15401542 = lens _objTimeDeleted
15411543 (\ s a -> s{_objTimeDeleted = a})
1544+ . mapping _DateTime
15421545
15431546-- | CRC32c checksum, as described in RFC 4960, Appendix B; encoded using
15441547-- base64.
@@ -1600,7 +1603,8 @@ objId = lens _objId (\ s a -> s{_objId = a})
16001603-- | Modification time of the object metadata in RFC 3339 format.
16011604objUpdated :: Lens' Object (Maybe UTCTime)
16021605objUpdated
1603− = lens _objUpdated (\ s a -> s{_objUpdated = a})
1606+ = lens _objUpdated (\ s a -> s{_objUpdated = a}) .
1607+ mapping _DateTime
16041608
16051609-- | Content-Language of the object data.
16061610objContentLanguage :: Lens' Object (Maybe Text)
gogol-webmaster-tools/gen/Network/Google/WebmasterTools/Types/Product.hs+10−5
@@ -374,7 +374,7 @@ instance ToJSON APIdimensionFilter where
374374-- /See:/ 'urlCrawlErrorCount' smart constructor.
375375data URLCrawlErrorCount = URLCrawlErrorCount
376376 { _ucecCount :: !(Maybe Int64)
377− , _ucecTimestamp :: !(Maybe DateTime)
377+ , _ucecTimestamp :: !(Maybe DateTime')
378378 } deriving (Eq,Read,Show,Data,Typeable,Generic)
379379
380380-- | Creates a value of 'URLCrawlErrorCount' with the minimum fields required to make a request.
@@ -402,6 +402,7 @@ ucecTimestamp :: Lens' URLCrawlErrorCount (Maybe UTCTime)
402402ucecTimestamp
403403 = lens _ucecTimestamp
404404 (\ s a -> s{_ucecTimestamp = a})
405+ . mapping _DateTime
405406
406407instance FromJSON URLCrawlErrorCount where
407408 parseJSON
@@ -565,9 +566,9 @@ instance ToJSON URLCrawlErrorsCountsQueryResponse
565566data URLCrawlErrorsSample = URLCrawlErrorsSample
566567 { _ucesResponseCode :: !(Maybe Int32)
567568 , _ucesURLDetails :: !(Maybe URLSampleDetails)
568− , _ucesLastCrawled :: !(Maybe DateTime)
569+ , _ucesLastCrawled :: !(Maybe DateTime')
569570 , _ucesPageURL :: !(Maybe Text)
570− , _ucesFirstDetected :: !(Maybe DateTime)
571+ , _ucesFirstDetected :: !(Maybe DateTime')
571572 } deriving (Eq,Read,Show,Data,Typeable,Generic)
572573
573574-- | Creates a value of 'URLCrawlErrorsSample' with the minimum fields required to make a request.
@@ -611,6 +612,7 @@ ucesLastCrawled :: Lens' URLCrawlErrorsSample (Maybe UTCTime)
611612ucesLastCrawled
612613 = lens _ucesLastCrawled
613614 (\ s a -> s{_ucesLastCrawled = a})
615+ . mapping _DateTime
614616
615617-- | The URL of an error, relative to the site.
616618ucesPageURL :: Lens' URLCrawlErrorsSample (Maybe Text)
@@ -622,6 +624,7 @@ ucesFirstDetected :: Lens' URLCrawlErrorsSample (Maybe UTCTime)
622624ucesFirstDetected
623625 = lens _ucesFirstDetected
624626 (\ s a -> s{_ucesFirstDetected = a})
627+ . mapping _DateTime
625628
626629instance FromJSON URLCrawlErrorsSample where
627630 parseJSON
@@ -689,9 +692,9 @@ data WmxSitemap = WmxSitemap
689692 { _wsContents :: !(Maybe [WmxSitemapContent])
690693 , _wsPath :: !(Maybe Text)
691694 , _wsIsSitemapsIndex :: !(Maybe Bool)
692− , _wsLastSubmitted :: !(Maybe DateTime)
695+ , _wsLastSubmitted :: !(Maybe DateTime')
693696 , _wsWarnings :: !(Maybe Int64)
694− , _wsLastDownloaded :: !(Maybe DateTime)
697+ , _wsLastDownloaded :: !(Maybe DateTime')
695698 , _wsIsPending :: !(Maybe Bool)
696699 , _wsType :: !(Maybe Text)
697700 , _wsErrors :: !(Maybe Int64)
@@ -756,6 +759,7 @@ wsLastSubmitted :: Lens' WmxSitemap (Maybe UTCTime)
756759wsLastSubmitted
757760 = lens _wsLastSubmitted
758761 (\ s a -> s{_wsLastSubmitted = a})
762+ . mapping _DateTime
759763
760764-- | Number of warnings for the sitemap. These are generally non-critical
761765-- issues with URLs in the sitemaps.
@@ -769,6 +773,7 @@ wsLastDownloaded :: Lens' WmxSitemap (Maybe UTCTime)
769773wsLastDownloaded
770774 = lens _wsLastDownloaded
771775 (\ s a -> s{_wsLastDownloaded = a})
776+ . mapping _DateTime
772777
773778-- | If true, the sitemap has not been processed.
774779wsIsPending :: Lens' WmxSitemap (Maybe Bool)
gogol-youtube-analytics/gen/Network/Google/YouTubeAnalytics/Types/Product.hs+9−5
@@ -337,7 +337,7 @@ instance ToJSON BatchReportDefinition where
337337--
338338-- /See:/ 'groupSnippet' smart constructor.
339339data GroupSnippet = GroupSnippet
340− { _gsPublishedAt :: !(Maybe DateTime)
340+ { _gsPublishedAt :: !(Maybe DateTime')
341341 , _gsTitle :: !(Maybe Text)
342342 } deriving (Eq,Read,Show,Data,Typeable,Generic)
343343
@@ -360,6 +360,7 @@ gsPublishedAt :: Lens' GroupSnippet (Maybe UTCTime)
360360gsPublishedAt
361361 = lens _gsPublishedAt
362362 (\ s a -> s{_gsPublishedAt = a})
363+ . mapping _DateTime
363364
364365gsTitle :: Lens' GroupSnippet (Maybe Text)
365366gsTitle = lens _gsTitle (\ s a -> s{_gsTitle = a})
@@ -382,7 +383,7 @@ instance ToJSON GroupSnippet where
382383--
383384-- /See:/ 'batchReport' smart constructor.
384385data BatchReport = BatchReport
385− { _brTimeUpdated :: !(Maybe DateTime)
386+ { _brTimeUpdated :: !(Maybe DateTime')
386387 , _brKind :: !Text
387388 , _brReportId :: !(Maybe Text)
388389 , _brTimeSpan :: !(Maybe BatchReportTimeSpan)
@@ -422,6 +423,7 @@ brTimeUpdated :: Lens' BatchReport (Maybe UTCTime)
422423brTimeUpdated
423424 = lens _brTimeUpdated
424425 (\ s a -> s{_brTimeUpdated = a})
426+ . mapping _DateTime
425427
426428-- | This value specifies the type of data of this item. For batch report the
427429-- kind property value is youtubeAnalytics#batchReport.
@@ -710,8 +712,8 @@ instance ToJSON BatchReportList where
710712--
711713-- /See:/ 'batchReportTimeSpan' smart constructor.
712714data BatchReportTimeSpan = BatchReportTimeSpan
713− { _brtsStartTime :: !(Maybe DateTime)
714− , _brtsEndTime :: !(Maybe DateTime)
715+ { _brtsStartTime :: !(Maybe DateTime')
716+ , _brtsEndTime :: !(Maybe DateTime')
715717 } deriving (Eq,Read,Show,Data,Typeable,Generic)
716718
717719-- | Creates a value of 'BatchReportTimeSpan' with the minimum fields required to make a request.
@@ -734,12 +736,14 @@ brtsStartTime :: Lens' BatchReportTimeSpan (Maybe UTCTime)
734736brtsStartTime
735737 = lens _brtsStartTime
736738 (\ s a -> s{_brtsStartTime = a})
739+ . mapping _DateTime
737740
738741-- | End of the period included in the report. Inclusive. For reports
739742-- containing all entities endTime is not set.
740743brtsEndTime :: Lens' BatchReportTimeSpan (Maybe UTCTime)
741744brtsEndTime
742− = lens _brtsEndTime (\ s a -> s{_brtsEndTime = a})
745+ = lens _brtsEndTime (\ s a -> s{_brtsEndTime = a}) .
746+ mapping _DateTime
743747
744748instance FromJSON BatchReportTimeSpan where
745749 parseJSON
gogol-youtube/gen/Network/Google/Resource/YouTube/Activities/List.hs+6−4
@@ -63,8 +63,8 @@ type ActivitiesListResource =
6363 QueryParam "maxResults" Word32 :>
6464 QueryParam "mine" Bool :>
6565 QueryParam "pageToken" Text :>
66− QueryParam "publishedAfter" DateTime :>
67− QueryParam "publishedBefore" DateTime :>
66+ QueryParam "publishedAfter" DateTime' :>
67+ QueryParam "publishedBefore" DateTime' :>
6868 QueryParam "regionCode" Text :>
6969 QueryParam "part" Text :>
7070 QueryParam "quotaUser" Text :>
@@ -84,7 +84,7 @@ type ActivitiesListResource =
8484--
8585-- /See:/ 'activitiesList'' smart constructor.
8686data ActivitiesList' = ActivitiesList'
87− { _alPublishedAfter :: !(Maybe DateTime)
87+ { _alPublishedAfter :: !(Maybe DateTime')
8888 , _alQuotaUser :: !(Maybe Text)
8989 , _alPart :: !Text
9090 , _alPrettyPrint :: !Bool
@@ -97,7 +97,7 @@ data ActivitiesList' = ActivitiesList'
9797 , _alPageToken :: !(Maybe Text)
9898 , _alOAuthToken :: !(Maybe OAuthToken)
9999 , _alMaxResults :: !Word32
100− , _alPublishedBefore :: !(Maybe DateTime)
100+ , _alPublishedBefore :: !(Maybe DateTime')
101101 , _alFields :: !(Maybe Text)
102102 } deriving (Eq,Read,Show,Data,Typeable,Generic)
103103
@@ -166,6 +166,7 @@ alPublishedAfter :: Lens' ActivitiesList' (Maybe UTCTime)
166166alPublishedAfter
167167 = lens _alPublishedAfter
168168 (\ s a -> s{_alPublishedAfter = a})
169+ . mapping _DateTime
169170
170171-- | Available to use for quota purposes for server-side applications. Can be
171172-- any arbitrary string assigned to a user, but should not exceed 40
@@ -255,6 +256,7 @@ alPublishedBefore :: Lens' ActivitiesList' (Maybe UTCTime)
255256alPublishedBefore
256257 = lens _alPublishedBefore
257258 (\ s a -> s{_alPublishedBefore = a})
259+ . mapping _DateTime
258260
259261-- | Selector specifying which fields to include in a partial response.
260262alFields :: Lens' ActivitiesList' (Maybe Text)
gogol-youtube/gen/Network/Google/Resource/YouTube/LiveBroadcasts/Control.hs+4−3
@@ -58,7 +58,7 @@ type LiveBroadcastsControlResource =
5858 QueryParam "offsetTimeMs" Word64 :>
5959 QueryParam "onBehalfOfContentOwner" Text :>
6060 QueryParam "onBehalfOfContentOwnerChannel" Text :>
61− QueryParam "walltime" DateTime :>
61+ QueryParam "walltime" DateTime' :>
6262 QueryParam "id" Text :>
6363 QueryParam "part" Text :>
6464 QueryParam "quotaUser" Text :>
@@ -85,7 +85,7 @@ data LiveBroadcastsControl' = LiveBroadcastsControl'
8585 , _lbcId :: !Text
8686 , _lbcDisplaySlate :: !(Maybe Bool)
8787 , _lbcOAuthToken :: !(Maybe OAuthToken)
88− , _lbcWalltime :: !(Maybe DateTime)
88+ , _lbcWalltime :: !(Maybe DateTime')
8989 , _lbcOffsetTimeMs :: !(Maybe Word64)
9090 , _lbcFields :: !(Maybe Text)
9191 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -231,7 +231,8 @@ lbcOAuthToken
231231-- (YYYY-MM-DDThh:mm:ss.sssZ) format.
232232lbcWalltime :: Lens' LiveBroadcastsControl' (Maybe UTCTime)
233233lbcWalltime
234− = lens _lbcWalltime (\ s a -> s{_lbcWalltime = a})
234+ = lens _lbcWalltime (\ s a -> s{_lbcWalltime = a}) .
235+ mapping _DateTime
235236
236237-- | The offsetTimeMs parameter specifies a positive time offset when the
237238-- specified slate change will occur. The value is measured in milliseconds
gogol-youtube/gen/Network/Google/Resource/YouTube/Search/List.hs+6−4
@@ -92,8 +92,8 @@ type SearchListResource =
9292 QueryParam "onBehalfOfContentOwner" Text :>
9393 QueryParam "order" YouTubeSearchListOrder :>
9494 QueryParam "pageToken" Text :>
95− QueryParam "publishedAfter" DateTime :>
96− QueryParam "publishedBefore" DateTime :>
95+ QueryParam "publishedAfter" DateTime' :>
96+ QueryParam "publishedBefore" DateTime' :>
9797 QueryParam "q" Text :>
9898 QueryParam "regionCode" Text :>
9999 QueryParam "relatedToVideoId" Text :>
@@ -180,7 +180,7 @@ type SearchListResource =
180180--
181181-- /See:/ 'searchList'' smart constructor.
182182data SearchList' = SearchList'
183− { _slPublishedAfter :: !(Maybe DateTime)
183+ { _slPublishedAfter :: !(Maybe DateTime')
184184 , _slVideoDefinition :: !(Maybe YouTubeSearchListVideoDefinition)
185185 , _slQuotaUser :: !(Maybe Text)
186186 , _slPart :: !Text
@@ -213,7 +213,7 @@ data SearchList' = SearchList'
213213 , _slRelevanceLanguage :: !(Maybe Text)
214214 , _slOrder :: !YouTubeSearchListOrder
215215 , _slMaxResults :: !Word32
216− , _slPublishedBefore :: !(Maybe DateTime)
216+ , _slPublishedBefore :: !(Maybe DateTime')
217217 , _slVideoType :: !(Maybe YouTubeSearchListVideoType)
218218 , _slVideoDimension :: !(Maybe YouTubeSearchListVideoDimension)
219219 , _slFields :: !(Maybe Text)
@@ -347,6 +347,7 @@ slPublishedAfter :: Lens' SearchList' (Maybe UTCTime)
347347slPublishedAfter
348348 = lens _slPublishedAfter
349349 (\ s a -> s{_slPublishedAfter = a})
350+ . mapping _DateTime
350351
351352-- | The videoDefinition parameter lets you restrict a search to only include
352353-- either high definition (HD) or standard definition (SD) videos. HD
@@ -620,6 +621,7 @@ slPublishedBefore :: Lens' SearchList' (Maybe UTCTime)
620621slPublishedBefore
621622 = lens _slPublishedBefore
622623 (\ s a -> s{_slPublishedBefore = a})
624+ . mapping _DateTime
623625
624626-- | The videoType parameter lets you restrict a search to a particular type
625627-- of videos. If you specify a value for this parameter, you must also set
gogol-youtube/gen/Network/Google/YouTube/Types/Product.hs+48−25
@@ -1023,7 +1023,7 @@ instance ToJSON ChannelStatus where
10231023--
10241024-- /See:/ 'liveStreamSnippet' smart constructor.
10251025data LiveStreamSnippet = LiveStreamSnippet
1026− { _lssPublishedAt :: !(Maybe DateTime)
1026+ { _lssPublishedAt :: !(Maybe DateTime')
10271027 , _lssChannelId :: !(Maybe Text)
10281028 , _lssIsDefaultStream :: !(Maybe Bool)
10291029 , _lssTitle :: !(Maybe Text)
@@ -1060,6 +1060,7 @@ lssPublishedAt :: Lens' LiveStreamSnippet (Maybe UTCTime)
10601060lssPublishedAt
10611061 = lens _lssPublishedAt
10621062 (\ s a -> s{_lssPublishedAt = a})
1063+ . mapping _DateTime
10631064
10641065-- | The ID that YouTube uses to uniquely identify the channel that is
10651066-- transmitting the stream.
@@ -3050,7 +3051,7 @@ data VideoStatus = VideoStatus
30503051 { _vsFailureReason :: !(Maybe VideoStatusFailureReason)
30513052 , _vsPublicStatsViewable :: !(Maybe Bool)
30523053 , _vsRejectionReason :: !(Maybe VideoStatusRejectionReason)
3053− , _vsPublishAt :: !(Maybe DateTime)
3054+ , _vsPublishAt :: !(Maybe DateTime')
30543055 , _vsUploadStatus :: !(Maybe VideoStatusUploadStatus)
30553056 , _vsPrivacyStatus :: !(Maybe VideoStatusPrivacyStatus)
30563057 , _vsEmbeddable :: !(Maybe Bool)
@@ -3118,7 +3119,8 @@ vsRejectionReason
31183119-- specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
31193120vsPublishAt :: Lens' VideoStatus (Maybe UTCTime)
31203121vsPublishAt
3121− = lens _vsPublishAt (\ s a -> s{_vsPublishAt = a})
3122+ = lens _vsPublishAt (\ s a -> s{_vsPublishAt = a}) .
3123+ mapping _DateTime
31223124
31233125-- | The status of the uploaded video.
31243126vsUploadStatus :: Lens' VideoStatus (Maybe VideoStatusUploadStatus)
@@ -3591,7 +3593,7 @@ instance ToJSON ChannelContentDetails where
35913593--
35923594-- /See:/ 'activitySnippet' smart constructor.
35933595data ActivitySnippet = ActivitySnippet
3594− { _asPublishedAt :: !(Maybe DateTime)
3596+ { _asPublishedAt :: !(Maybe DateTime')
35953597 , _asChannelTitle :: !(Maybe Text)
35963598 , _asChannelId :: !(Maybe Text)
35973599 , _asThumbnails :: !(Maybe ThumbnailDetails)
@@ -3640,6 +3642,7 @@ asPublishedAt :: Lens' ActivitySnippet (Maybe UTCTime)
36403642asPublishedAt
36413643 = lens _asPublishedAt
36423644 (\ s a -> s{_asPublishedAt = a})
3645+ . mapping _DateTime
36433646
36443647-- | Channel title for the channel responsible for this activity
36453648asChannelTitle :: Lens' ActivitySnippet (Maybe Text)
@@ -4504,7 +4507,7 @@ instance ToJSON ChannelSectionListResponse where
45044507--
45054508-- /See:/ 'playListSnippet' smart constructor.
45064509data PlayListSnippet = PlayListSnippet
4507− { _plsPublishedAt :: !(Maybe DateTime)
4510+ { _plsPublishedAt :: !(Maybe DateTime')
45084511 , _plsChannelTitle :: !(Maybe Text)
45094512 , _plsChannelId :: !(Maybe Text)
45104513 , _plsThumbnails :: !(Maybe ThumbnailDetails)
@@ -4557,6 +4560,7 @@ plsPublishedAt :: Lens' PlayListSnippet (Maybe UTCTime)
45574560plsPublishedAt
45584561 = lens _plsPublishedAt
45594562 (\ s a -> s{_plsPublishedAt = a})
4563+ . mapping _DateTime
45604564
45614565-- | The channel title of the channel that the video belongs to.
45624566plsChannelTitle :: Lens' PlayListSnippet (Maybe Text)
@@ -5721,7 +5725,7 @@ instance ToJSON ThumbnailDetails where
57215725--
57225726-- /See:/ 'channelSnippet' smart constructor.
57235727data ChannelSnippet = ChannelSnippet
5724− { _csPublishedAt :: !(Maybe DateTime)
5728+ { _csPublishedAt :: !(Maybe DateTime')
57255729 , _csCountry :: !(Maybe Text)
57265730 , _csThumbnails :: !(Maybe ThumbnailDetails)
57275731 , _csLocalized :: !(Maybe ChannelLocalization)
@@ -5766,6 +5770,7 @@ csPublishedAt :: Lens' ChannelSnippet (Maybe UTCTime)
57665770csPublishedAt
57675771 = lens _csPublishedAt
57685772 (\ s a -> s{_csPublishedAt = a})
5773+ . mapping _DateTime
57695774
57705775-- | The country of the channel.
57715776csCountry :: Lens' ChannelSnippet (Maybe Text)
@@ -6924,7 +6929,7 @@ instance ToJSON WatchSettings where
69246929-- /See:/ 'videoSnippet' smart constructor.
69256930data VideoSnippet = VideoSnippet
69266931 { _vsDefaultAudioLanguage :: !(Maybe Text)
6927− , _vsPublishedAt :: !(Maybe DateTime)
6932+ , _vsPublishedAt :: !(Maybe DateTime')
69286933 , _vsChannelTitle :: !(Maybe Text)
69296934 , _vsChannelId :: !(Maybe Text)
69306935 , _vsThumbnails :: !(Maybe ThumbnailDetails)
@@ -6995,6 +7000,7 @@ vsPublishedAt :: Lens' VideoSnippet (Maybe UTCTime)
69957000vsPublishedAt
69967001 = lens _vsPublishedAt
69977002 (\ s a -> s{_vsPublishedAt = a})
7003+ . mapping _DateTime
69987004
69997005-- | Channel title for the channel that the video belongs to.
70007006vsChannelTitle :: Lens' VideoSnippet (Maybe Text)
@@ -7422,15 +7428,15 @@ instance ToJSON VideoStatistics where
74227428--
74237429-- /See:/ 'liveBroadcastSnippet' smart constructor.
74247430data LiveBroadcastSnippet = LiveBroadcastSnippet
7425− { _lbsActualEndTime :: !(Maybe DateTime)
7431+ { _lbsActualEndTime :: !(Maybe DateTime')
74267432 , _lbsLiveChatId :: !(Maybe Text)
7427− , _lbsPublishedAt :: !(Maybe DateTime)
7428− , _lbsScheduledEndTime :: !(Maybe DateTime)
7433+ , _lbsPublishedAt :: !(Maybe DateTime')
7434+ , _lbsScheduledEndTime :: !(Maybe DateTime')
74297435 , _lbsChannelId :: !(Maybe Text)
7430− , _lbsScheduledStartTime :: !(Maybe DateTime)
7436+ , _lbsScheduledStartTime :: !(Maybe DateTime')
74317437 , _lbsThumbnails :: !(Maybe ThumbnailDetails)
74327438 , _lbsTitle :: !(Maybe Text)
7433− , _lbsActualStartTime :: !(Maybe DateTime)
7439+ , _lbsActualStartTime :: !(Maybe DateTime')
74347440 , _lbsIsDefaultBroadcast :: !(Maybe Bool)
74357441 , _lbsDescription :: !(Maybe Text)
74367442 } deriving (Eq,Read,Show,Data,Typeable,Generic)
@@ -7484,6 +7490,7 @@ lbsActualEndTime :: Lens' LiveBroadcastSnippet (Maybe UTCTime)
74847490lbsActualEndTime
74857491 = lens _lbsActualEndTime
74867492 (\ s a -> s{_lbsActualEndTime = a})
7493+ . mapping _DateTime
74877494
74887495-- | The id of the live chat for this broadcast.
74897496lbsLiveChatId :: Lens' LiveBroadcastSnippet (Maybe Text)
@@ -7498,6 +7505,7 @@ lbsPublishedAt :: Lens' LiveBroadcastSnippet (Maybe UTCTime)
74987505lbsPublishedAt
74997506 = lens _lbsPublishedAt
75007507 (\ s a -> s{_lbsPublishedAt = a})
7508+ . mapping _DateTime
75017509
75027510-- | The date and time that the broadcast is scheduled to end. The value is
75037511-- specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
@@ -7505,6 +7513,7 @@ lbsScheduledEndTime :: Lens' LiveBroadcastSnippet (Maybe UTCTime)
75057513lbsScheduledEndTime
75067514 = lens _lbsScheduledEndTime
75077515 (\ s a -> s{_lbsScheduledEndTime = a})
7516+ . mapping _DateTime
75087517
75097518-- | The ID that YouTube uses to uniquely identify the channel that is
75107519-- publishing the broadcast.
@@ -7518,6 +7527,7 @@ lbsScheduledStartTime :: Lens' LiveBroadcastSnippet (Maybe UTCTime)
75187527lbsScheduledStartTime
75197528 = lens _lbsScheduledStartTime
75207529 (\ s a -> s{_lbsScheduledStartTime = a})
7530+ . mapping _DateTime
75217531
75227532-- | A map of thumbnail images associated with the broadcast. For each nested
75237533-- object in this object, the key is the name of the thumbnail image, and
@@ -7542,6 +7552,7 @@ lbsActualStartTime :: Lens' LiveBroadcastSnippet (Maybe UTCTime)
75427552lbsActualStartTime
75437553 = lens _lbsActualStartTime
75447554 (\ s a -> s{_lbsActualStartTime = a})
7555+ . mapping _DateTime
75457556
75467557lbsIsDefaultBroadcast :: Lens' LiveBroadcastSnippet (Maybe Bool)
75477558lbsIsDefaultBroadcast
@@ -8225,7 +8236,7 @@ instance ToJSON PromotedItemId where
82258236--
82268237-- /See:/ 'searchResultSnippet' smart constructor.
82278238data SearchResultSnippet = SearchResultSnippet
8228− { _srsPublishedAt :: !(Maybe DateTime)
8239+ { _srsPublishedAt :: !(Maybe DateTime')
82298240 , _srsChannelTitle :: !(Maybe Text)
82308241 , _srsChannelId :: !(Maybe Text)
82318242 , _srsThumbnails :: !(Maybe ThumbnailDetails)
@@ -8271,6 +8282,7 @@ srsPublishedAt :: Lens' SearchResultSnippet (Maybe UTCTime)
82718282srsPublishedAt
82728283 = lens _srsPublishedAt
82738284 (\ s a -> s{_srsPublishedAt = a})
8285+ . mapping _DateTime
82748286
82758287-- | The title of the channel that published the resource that the search
82768288-- result identifies.
@@ -10691,7 +10703,7 @@ instance ToJSON I18nRegionSnippet where
1069110703data CaptionSnippet = CaptionSnippet
1069210704 { _csFailureReason :: !(Maybe CaptionSnippetFailureReason)
1069310705 , _csStatus :: !(Maybe CaptionSnippetStatus)
10694− , _csLastUpdated :: !(Maybe DateTime)
10706+ , _csLastUpdated :: !(Maybe DateTime')
1069510707 , _csTrackKind :: !(Maybe CaptionSnippetTrackKind)
1069610708 , _csIsDraft :: !(Maybe Bool)
1069710709 , _csIsCC :: !(Maybe Bool)
@@ -10769,6 +10781,7 @@ csLastUpdated :: Lens' CaptionSnippet (Maybe UTCTime)
1076910781csLastUpdated
1077010782 = lens _csLastUpdated
1077110783 (\ s a -> s{_csLastUpdated = a})
10784+ . mapping _DateTime
1077210785
1077310786-- | The caption track\'s type.
1077410787csTrackKind :: Lens' CaptionSnippet (Maybe CaptionSnippetTrackKind)
@@ -10943,7 +10956,7 @@ instance ToJSON Comment where
1094310956-- /See:/ 'playListItemSnippet' smart constructor.
1094410957data PlayListItemSnippet = PlayListItemSnippet
1094510958 { _plisResourceId :: !(Maybe ResourceId)
10946− , _plisPublishedAt :: !(Maybe DateTime)
10959+ , _plisPublishedAt :: !(Maybe DateTime')
1094710960 , _plisChannelTitle :: !(Maybe Text)
1094810961 , _plisChannelId :: !(Maybe Text)
1094910962 , _plisThumbnails :: !(Maybe ThumbnailDetails)
@@ -11002,6 +11015,7 @@ plisPublishedAt :: Lens' PlayListItemSnippet (Maybe UTCTime)
1100211015plisPublishedAt
1100311016 = lens _plisPublishedAt
1100411017 (\ s a -> s{_plisPublishedAt = a})
11018+ . mapping _DateTime
1100511019
1100611020-- | Channel title for the channel that the playlist item belongs to.
1100711021plisChannelTitle :: Lens' PlayListItemSnippet (Maybe Text)
@@ -12207,7 +12221,7 @@ instance ToJSON ContentRating where
1220712221-- /See:/ 'commentSnippet' smart constructor.
1220812222data CommentSnippet = CommentSnippet
1220912223 { _cViewerRating :: !(Maybe CommentSnippetViewerRating)
12210− , _cPublishedAt :: !(Maybe DateTime)
12224+ , _cPublishedAt :: !(Maybe DateTime')
1221112225 , _cAuthorChannelURL :: !(Maybe Text)
1221212226 , _cModerationStatus :: !(Maybe CommentSnippetModerationStatus)
1221312227 , _cLikeCount :: !(Maybe Word32)
@@ -12217,7 +12231,7 @@ data CommentSnippet = CommentSnippet
1221712231 , _cTextDisplay :: !(Maybe Text)
1221812232 , _cAuthorProfileImageURL :: !(Maybe Text)
1221912233 , _cAuthorDisplayName :: !(Maybe Text)
12220− , _cUpdatedAt :: !(Maybe DateTime)
12234+ , _cUpdatedAt :: !(Maybe DateTime')
1222112235 , _cAuthorChannelId :: !(Maybe ChannelId)
1222212236 , _cCanRate :: !(Maybe Bool)
1222312237 , _cAuthorGoogleplusProfileURL :: !(Maybe Text)
@@ -12294,6 +12308,7 @@ cViewerRating
1229412308cPublishedAt :: Lens' CommentSnippet (Maybe UTCTime)
1229512309cPublishedAt
1229612310 = lens _cPublishedAt (\ s a -> s{_cPublishedAt = a})
12311+ . mapping _DateTime
1229712312
1229812313-- | Link to the author\'s YouTube channel, if any.
1229912314cAuthorChannelURL :: Lens' CommentSnippet (Maybe Text)
@@ -12356,7 +12371,8 @@ cAuthorDisplayName
1235612371-- 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
1235712372cUpdatedAt :: Lens' CommentSnippet (Maybe UTCTime)
1235812373cUpdatedAt
12359− = lens _cUpdatedAt (\ s a -> s{_cUpdatedAt = a})
12374+ = lens _cUpdatedAt (\ s a -> s{_cUpdatedAt = a}) .
12375+ mapping _DateTime
1236012376
1236112377-- | The id of the author\'s YouTube channel, if any.
1236212378cAuthorChannelId :: Lens' CommentSnippet (Maybe ChannelId)
@@ -12429,7 +12445,7 @@ instance ToJSON CommentSnippet where
1242912445data VideoRecordingDetails = VideoRecordingDetails
1243012446 { _vrdLocation :: !(Maybe GeoPoint)
1243112447 , _vrdLocationDescription :: !(Maybe Text)
12432− , _vrdRecordingDate :: !(Maybe DateTime)
12448+ , _vrdRecordingDate :: !(Maybe DateTime')
1243312449 } deriving (Eq,Read,Show,Data,Typeable,Generic)
1243412450
1243512451-- | Creates a value of 'VideoRecordingDetails' with the minimum fields required to make a request.
@@ -12467,6 +12483,7 @@ vrdRecordingDate :: Lens' VideoRecordingDetails (Maybe UTCTime)
1246712483vrdRecordingDate
1246812484 = lens _vrdRecordingDate
1246912485 (\ s a -> s{_vrdRecordingDate = a})
12486+ . mapping _DateTime
1247012487
1247112488instance FromJSON VideoRecordingDetails where
1247212489 parseJSON
@@ -12685,7 +12702,7 @@ instance ToJSON ChannelSettings where
1268512702-- /See:/ 'subscriptionSnippet' smart constructor.
1268612703data SubscriptionSnippet = SubscriptionSnippet
1268712704 { _ssResourceId :: !(Maybe ResourceId)
12688− , _ssPublishedAt :: !(Maybe DateTime)
12705+ , _ssPublishedAt :: !(Maybe DateTime')
1268912706 , _ssChannelTitle :: !(Maybe Text)
1269012707 , _ssChannelId :: !(Maybe Text)
1269112708 , _ssThumbnails :: !(Maybe ThumbnailDetails)
@@ -12735,6 +12752,7 @@ ssPublishedAt :: Lens' SubscriptionSnippet (Maybe UTCTime)
1273512752ssPublishedAt
1273612753 = lens _ssPublishedAt
1273712754 (\ s a -> s{_ssPublishedAt = a})
12755+ . mapping _DateTime
1273812756
1273912757-- | Channel title for the channel that the subscription belongs to.
1274012758ssChannelTitle :: Lens' SubscriptionSnippet (Maybe Text)
@@ -12840,11 +12858,11 @@ instance ToJSON LiveStreamStatus where
1284012858--
1284112859-- /See:/ 'videoLiveStreamingDetails' smart constructor.
1284212860data VideoLiveStreamingDetails = VideoLiveStreamingDetails
12843− { _vlsdActualEndTime :: !(Maybe DateTime)
12861+ { _vlsdActualEndTime :: !(Maybe DateTime')
1284412862 , _vlsdConcurrentViewers :: !(Maybe Word64)
12845− , _vlsdScheduledEndTime :: !(Maybe DateTime)
12846− , _vlsdScheduledStartTime :: !(Maybe DateTime)
12847− , _vlsdActualStartTime :: !(Maybe DateTime)
12863+ , _vlsdScheduledEndTime :: !(Maybe DateTime')
12864+ , _vlsdScheduledStartTime :: !(Maybe DateTime')
12865+ , _vlsdActualStartTime :: !(Maybe DateTime')
1284812866 } deriving (Eq,Read,Show,Data,Typeable,Generic)
1284912867
1285012868-- | Creates a value of 'VideoLiveStreamingDetails' with the minimum fields required to make a request.
@@ -12878,6 +12896,7 @@ vlsdActualEndTime :: Lens' VideoLiveStreamingDetails (Maybe UTCTime)
1287812896vlsdActualEndTime
1287912897 = lens _vlsdActualEndTime
1288012898 (\ s a -> s{_vlsdActualEndTime = a})
12899+ . mapping _DateTime
1288112900
1288212901-- | The number of viewers currently watching the broadcast. The property and
1288312902-- its value will be present if the broadcast has current viewers and the
@@ -12899,6 +12918,7 @@ vlsdScheduledEndTime :: Lens' VideoLiveStreamingDetails (Maybe UTCTime)
1289912918vlsdScheduledEndTime
1290012919 = lens _vlsdScheduledEndTime
1290112920 (\ s a -> s{_vlsdScheduledEndTime = a})
12921+ . mapping _DateTime
1290212922
1290312923-- | The time that the broadcast is scheduled to begin. The value is
1290412924-- specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
@@ -12906,6 +12926,7 @@ vlsdScheduledStartTime :: Lens' VideoLiveStreamingDetails (Maybe UTCTime)
1290612926vlsdScheduledStartTime
1290712927 = lens _vlsdScheduledStartTime
1290812928 (\ s a -> s{_vlsdScheduledStartTime = a})
12929+ . mapping _DateTime
1290912930
1291012931-- | The time that the broadcast actually started. The value is specified in
1291112932-- ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. This value will not be
@@ -12914,6 +12935,7 @@ vlsdActualStartTime :: Lens' VideoLiveStreamingDetails (Maybe UTCTime)
1291412935vlsdActualStartTime
1291512936 = lens _vlsdActualStartTime
1291612937 (\ s a -> s{_vlsdActualStartTime = a})
12938+ . mapping _DateTime
1291712939
1291812940instance FromJSON VideoLiveStreamingDetails where
1291912941 parseJSON
@@ -13375,7 +13397,7 @@ instance ToJSON VideoConversionPing where
1337513397--
1337613398-- /See:/ 'channelContentOwnerDetails' smart constructor.
1337713399data ChannelContentOwnerDetails = ChannelContentOwnerDetails
13378− { _ccodTimeLinked :: !(Maybe DateTime)
13400+ { _ccodTimeLinked :: !(Maybe DateTime')
1337913401 , _ccodContentOwner :: !(Maybe Text)
1338013402 } deriving (Eq,Read,Show,Data,Typeable,Generic)
1338113403
@@ -13400,6 +13422,7 @@ ccodTimeLinked :: Lens' ChannelContentOwnerDetails (Maybe UTCTime)
1340013422ccodTimeLinked
1340113423 = lens _ccodTimeLinked
1340213424 (\ s a -> s{_ccodTimeLinked = a})
13425+ . mapping _DateTime
1340313426
1340413427-- | The ID of the content owner linked to the channel.
1340513428ccodContentOwner :: Lens' ChannelContentOwnerDetails (Maybe Text)