on develop help sign in
Regenerating all services
3d73563Brendan Hay
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer.hs+122−448
@@ -58,23 +58,8 @@ module Network.Google.AdExchangeBuyer
58 -- ** adexchangebuyer.budget.update
58 -- ** adexchangebuyer.budget.update
59 , module Network.Google.Resource.AdExchangeBuyer.Budget.Update
59 , module Network.Google.Resource.AdExchangeBuyer.Budget.Update
60
60
61− -- ** adexchangebuyer.clientaccess.delete
61+ -- ** adexchangebuyer.creatives.addDeal
62− , module Network.Google.Resource.AdExchangeBuyer.ClientAccess.Delete
63−
64− -- ** adexchangebuyer.clientaccess.get
65− , module Network.Google.Resource.AdExchangeBuyer.ClientAccess.Get
66−
67− -- ** adexchangebuyer.clientaccess.insert
68− , module Network.Google.Resource.AdExchangeBuyer.ClientAccess.Insert
69−
70− -- ** adexchangebuyer.clientaccess.list
71− , module Network.Google.Resource.AdExchangeBuyer.ClientAccess.List
62+ , module Network.Google.Resource.AdExchangeBuyer.Creatives.AddDeal
72−
73− -- ** adexchangebuyer.clientaccess.patch
74− , module Network.Google.Resource.AdExchangeBuyer.ClientAccess.Patch
75−
76− -- ** adexchangebuyer.clientaccess.update
77− , module Network.Google.Resource.AdExchangeBuyer.ClientAccess.Update
78
63
79 -- ** adexchangebuyer.creatives.get
64 -- ** adexchangebuyer.creatives.get
80 , module Network.Google.Resource.AdExchangeBuyer.Creatives.Get
65 , module Network.Google.Resource.AdExchangeBuyer.Creatives.Get
@@ -85,8 +70,8 @@ module Network.Google.AdExchangeBuyer
85 -- ** adexchangebuyer.creatives.list
70 -- ** adexchangebuyer.creatives.list
86 , module Network.Google.Resource.AdExchangeBuyer.Creatives.List
71 , module Network.Google.Resource.AdExchangeBuyer.Creatives.List
87
72
88− -- ** adexchangebuyer.deals.get
73+ -- ** adexchangebuyer.creatives.removeDeal
89− , module Network.Google.Resource.AdExchangeBuyer.Deals.Get
74+ , module Network.Google.Resource.AdExchangeBuyer.Creatives.RemoveDeal
90
75
91 -- ** adexchangebuyer.marketplacedeals.delete
76 -- ** adexchangebuyer.marketplacedeals.delete
92 , module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
77 , module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
@@ -106,48 +91,6 @@ module Network.Google.AdExchangeBuyer
106 -- ** adexchangebuyer.marketplacenotes.list
91 -- ** adexchangebuyer.marketplacenotes.list
107 , module Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
92 , module Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
108
93
109− -- ** adexchangebuyer.marketplaceoffers.get
110− , module Network.Google.Resource.AdExchangeBuyer.MarketplaceOffers.Get
111−
112− -- ** adexchangebuyer.marketplaceoffers.search
113− , module Network.Google.Resource.AdExchangeBuyer.MarketplaceOffers.Search
114−
115− -- ** adexchangebuyer.marketplaceorders.get
116− , module Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Get
117−
118− -- ** adexchangebuyer.marketplaceorders.insert
119− , module Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Insert
120−
121− -- ** adexchangebuyer.marketplaceorders.patch
122− , module Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Patch
123−
124− -- ** adexchangebuyer.marketplaceorders.search
125− , module Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Search
126−
127− -- ** adexchangebuyer.marketplaceorders.update
128− , module Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Update
129−
130− -- ** adexchangebuyer.negotiationrounds.insert
131− , module Network.Google.Resource.AdExchangeBuyer.NegotiationRounds.Insert
132−
133− -- ** adexchangebuyer.negotiations.get
134− , module Network.Google.Resource.AdExchangeBuyer.Negotiations.Get
135−
136− -- ** adexchangebuyer.negotiations.insert
137− , module Network.Google.Resource.AdExchangeBuyer.Negotiations.Insert
138−
139− -- ** adexchangebuyer.negotiations.list
140− , module Network.Google.Resource.AdExchangeBuyer.Negotiations.List
141−
142− -- ** adexchangebuyer.offers.get
143− , module Network.Google.Resource.AdExchangeBuyer.Offers.Get
144−
145− -- ** adexchangebuyer.offers.insert
146− , module Network.Google.Resource.AdExchangeBuyer.Offers.Insert
147−
148− -- ** adexchangebuyer.offers.list
149− , module Network.Google.Resource.AdExchangeBuyer.Offers.List
150−
151 -- ** adexchangebuyer.performanceReport.list
94 -- ** adexchangebuyer.performanceReport.list
152 , module Network.Google.Resource.AdExchangeBuyer.PerformanceReport.List
95 , module Network.Google.Resource.AdExchangeBuyer.PerformanceReport.List
153
96
@@ -169,17 +112,28 @@ module Network.Google.AdExchangeBuyer
169 -- ** adexchangebuyer.pretargetingConfig.update
112 -- ** adexchangebuyer.pretargetingConfig.update
170 , module Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Update
113 , module Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Update
171
114
172− -- * Types
115+ -- ** adexchangebuyer.products.get
116+ , module Network.Google.Resource.AdExchangeBuyer.Products.Get
117+
118+ -- ** adexchangebuyer.products.search
119+ , module Network.Google.Resource.AdExchangeBuyer.Products.Search
120+
121+ -- ** adexchangebuyer.proposals.get
122+ , module Network.Google.Resource.AdExchangeBuyer.Proposals.Get
173
123
174− -- ** BrandDTO
124+ -- ** adexchangebuyer.proposals.insert
175− , BrandDTO
125+ , module Network.Google.Resource.AdExchangeBuyer.Proposals.Insert
176− , brandDTO
177− , bdtoAdvertiserId
178− , bdtoName
179− , bdtoId
180
126
181− -- ** MarketplaceOrdersUpdateUpdateAction
127+ -- ** adexchangebuyer.proposals.patch
182− , MarketplaceOrdersUpdateUpdateAction (..)
128+ , module Network.Google.Resource.AdExchangeBuyer.Proposals.Patch
129+
130+ -- ** adexchangebuyer.proposals.search
131+ , module Network.Google.Resource.AdExchangeBuyer.Proposals.Search
132+
133+ -- ** adexchangebuyer.proposals.update
134+ , module Network.Google.Resource.AdExchangeBuyer.Proposals.Update
135+
136+ -- * Types
183
137
184 -- ** MarketplaceNote
138 -- ** MarketplaceNote
185 , MarketplaceNote
139 , MarketplaceNote
@@ -187,11 +141,11 @@ module Network.Google.AdExchangeBuyer
187 , mnNote
141 , mnNote
188 , mnKind
142 , mnKind
189 , mnTimestampMs
143 , mnTimestampMs
144+ , mnProposalId
190 , mnDealId
145 , mnDealId
146+ , mnProposalRevisionNumber
191 , mnNoteId
147 , mnNoteId
192 , mnCreatorRole
148 , mnCreatorRole
193− , mnOrderId
194− , mnOrderRevisionNumber
195
149
196 -- ** CreativeNATiveAd
150 -- ** CreativeNATiveAd
197 , CreativeNATiveAd
151 , CreativeNATiveAd
@@ -229,41 +183,10 @@ module Network.Google.AdExchangeBuyer
229 , csriciAuctionType
183 , csriciAuctionType
230 , csriciGeoCriteriaId
184 , csriciGeoCriteriaId
231
185
232− -- ** TermsDTO
233− , TermsDTO
234− , termsDTO
235− , tdtoFinalizeAutomatically
236− , tdtoBuyerBillingType
237− , tdtoTargetingAllAdSlots
238− , tdtoURLs
239− , tdtoEndDate
240− , tdtoCpm
241− , tdtoEstimatedSpend
242− , tdtoAdvertisers
243− , tdtoEstimatedImpressionsPerDay
244− , tdtoMonetizerType
245− , tdtoAudienceSegmentDescription
246− , tdtoCreativeReviewPolicy
247− , tdtoMinimumTrueLooks
248− , tdtoStartDate
249− , tdtoCreativeBlockingLevel
250− , tdtoSemiTransparent
251− , tdtoAudienceSegment
252− , tdtoDealPremium
253− , tdtoIsReservation
254− , tdtoAdSlots
255− , tdtoTermsAttributes
256− , tdtoInventorySegmentTargeting
257− , tdtoDescriptiveName
258− , tdtoMinimumSpendMicros
259− , tdtoTargetByDealId
260− , tdtoBillingTerms
261− , tdtoDescription
262−
263 -- ** CreateOrdersResponse
186 -- ** CreateOrdersResponse
264 , CreateOrdersResponse
187 , CreateOrdersResponse
265 , createOrdersResponse
188 , createOrdersResponse
266− , corOrders
189+ , corProposals
267
190
268 -- ** AccountBidderLocationItem
191 -- ** AccountBidderLocationItem
269 , AccountBidderLocationItem
192 , AccountBidderLocationItem
@@ -293,11 +216,6 @@ module Network.Google.AdExchangeBuyer
293 , addOrderNotesRequest
216 , addOrderNotesRequest
294 , aonrNotes
217 , aonrNotes
295
218
296− -- ** GetFinalizedNegotiationByExternalDealIdRequest
297− , GetFinalizedNegotiationByExternalDealIdRequest
298− , getFinalizedNegotiationByExternalDealIdRequest
299− , gfnbedirIncludePrivateAuctions
300−
301 -- ** DeliveryControlFrequencyCap
219 -- ** DeliveryControlFrequencyCap
302 , DeliveryControlFrequencyCap
220 , DeliveryControlFrequencyCap
303 , deliveryControlFrequencyCap
221 , deliveryControlFrequencyCap
@@ -305,21 +223,6 @@ module Network.Google.AdExchangeBuyer
305 , dcfcNumTimeUnits
223 , dcfcNumTimeUnits
306 , dcfcTimeUnitType
224 , dcfcTimeUnitType
307
225
308− -- ** DealPartyDTO
309− , DealPartyDTO
310− , dealPartyDTO
311− , dpdtoBuyerSellerRole
312− , dpdtoCustomerId
313− , dpdtoName
314− , dpdtoWebProperty
315− , dpdtoBuyer
316−
317− -- ** GetNegotiationsResponse
318− , GetNegotiationsResponse
319− , getNegotiationsResponse
320− , gnrKind
321− , gnrNegotiations
322−
323 -- ** MarketplaceDealParty
226 -- ** MarketplaceDealParty
324 , MarketplaceDealParty
227 , MarketplaceDealParty
325 , marketplaceDealParty
228 , marketplaceDealParty
@@ -331,16 +234,10 @@ module Network.Google.AdExchangeBuyer
331 , getOrderNotesResponse
234 , getOrderNotesResponse
332 , gonrNotes
235 , gonrNotes
333
236
334− -- ** RuleKeyValuePair
335− , RuleKeyValuePair
336− , ruleKeyValuePair
337− , rkvpKeyName
338− , rkvpValue
339−
340 -- ** GetOrdersResponse
237 -- ** GetOrdersResponse
341 , GetOrdersResponse
238 , GetOrdersResponse
342 , getOrdersResponse
239 , getOrdersResponse
343− , gorOrders
240+ , gorProposals
344
241
345 -- ** CreativeServingRestrictionsItemDisApprovalReasonsItem
242 -- ** CreativeServingRestrictionsItemDisApprovalReasonsItem
346 , CreativeServingRestrictionsItemDisApprovalReasonsItem
243 , CreativeServingRestrictionsItemDisApprovalReasonsItem
@@ -357,17 +254,8 @@ module Network.Google.AdExchangeBuyer
357 -- ** CreateOrdersRequest
254 -- ** CreateOrdersRequest
358 , CreateOrdersRequest
255 , CreateOrdersRequest
359 , createOrdersRequest
256 , createOrdersRequest
257+ , cProposals
360 , cWebPropertyCode
258 , cWebPropertyCode
361− , cOrders
362−
363− -- ** AdSize
364− , AdSize
365− , adSize
366− , asHeight
367− , asWidth
368−
369− -- ** MarketplaceOrdersPatchUpdateAction
370− , MarketplaceOrdersPatchUpdateAction (..)
371
259
372 -- ** CreativeCorrectionsItem
260 -- ** CreativeCorrectionsItem
373 , CreativeCorrectionsItem
261 , CreativeCorrectionsItem
@@ -379,11 +267,12 @@ module Network.Google.AdExchangeBuyer
379 , AddOrderDealsResponse
267 , AddOrderDealsResponse
380 , addOrderDealsResponse
268 , addOrderDealsResponse
381 , aodrDeals
269 , aodrDeals
382− , aodrOrderRevisionNumber
270+ , aodrProposalRevisionNumber
383
271
384 -- ** DeliveryControl
272 -- ** DeliveryControl
385 , DeliveryControl
273 , DeliveryControl
386 , deliveryControl
274 , deliveryControl
275+ , dcCreativeBlockingLevel
387 , dcFrequencyCaps
276 , dcFrequencyCaps
388 , dcDeliveryRateType
277 , dcDeliveryRateType
389
278
@@ -437,27 +326,6 @@ module Network.Google.AdExchangeBuyer
437 , pclKind
326 , pclKind
438 , pclItems
327 , pclItems
439
328
440− -- ** BuyerDTO
441− , BuyerDTO
442− , buyerDTO
443− , buySponsorAccountId
444− , buyEnabledForInterestTargetingDeals
445− , buyCustomerId
446− , buyEnabledForPreferredDeals
447− , buyAccountId
448− , buyDisplayName
449− , buyId
450−
451− -- ** AdSlotDTO
452− , AdSlotDTO
453− , adSlotDTO
454− , asdtoWebPropertyId
455− , asdtoSize
456− , asdtoChannelCode
457− , asdtoChannelId
458− , asdtoName
459− , asdtoDescription
460−
461 -- ** DealTermsNonGuaranteedFixedPriceTerms
329 -- ** DealTermsNonGuaranteedFixedPriceTerms
462 , DealTermsNonGuaranteedFixedPriceTerms
330 , DealTermsNonGuaranteedFixedPriceTerms
463 , dealTermsNonGuaranteedFixedPriceTerms
331 , dealTermsNonGuaranteedFixedPriceTerms
@@ -518,7 +386,7 @@ module Network.Google.AdExchangeBuyer
518 , deleteOrderDealsRequest
386 , deleteOrderDealsRequest
519 , dodrUpdateAction
387 , dodrUpdateAction
520 , dodrDealIds
388 , dodrDealIds
521− , dodrOrderRevisionNumber
389+ , dodrProposalRevisionNumber
522
390
523 -- ** CreativesListOpenAuctionStatusFilter
391 -- ** CreativesListOpenAuctionStatusFilter
524 , CreativesListOpenAuctionStatusFilter (..)
392 , CreativesListOpenAuctionStatusFilter (..)
@@ -561,6 +429,7 @@ module Network.Google.AdExchangeBuyer
561 , pcMobileDevices
429 , pcMobileDevices
562 , pcLanguages
430 , pcLanguages
563 , pcVerticals
431 , pcVerticals
432+ , pcVideoPlayerSizes
564 , pcConfigId
433 , pcConfigId
565 , pcPlacements
434 , pcPlacements
566 , pcExcludedUserLists
435 , pcExcludedUserLists
@@ -587,50 +456,30 @@ module Network.Google.AdExchangeBuyer
587 , tvcsCompanionSizes
456 , tvcsCompanionSizes
588 , tvcsCreativeSizeType
457 , tvcsCreativeSizeType
589
458
590− -- ** NegotiationDTO
459+ -- ** Proposal
591− , NegotiationDTO
460+ , Proposal
592− , negotiationDTO
461+ , proposal
593− , ndtoNegotiationState
462+ , pBuyerPrivateData
594− , ndtoExternalDealId
463+ , pIsSetupComplete
595− , ndtoStatus
464+ , pInventorySource
596− , ndtoDealType
465+ , pBuyerContacts
597− , ndtoNegotiationRounds
466+ , pKind
598− , ndtoKind
467+ , pOriginatorRole
599− , ndtoBilledBuyer
468+ , pRevisionNumber
600− , ndtoBuyerEmailContacts
469+ , pBilledBuyer
601− , ndtoStats
470+ , pIsRenegotiating
602− , ndtoSeller
471+ , pHasSellerSignedOff
603− , ndtoLabelNames
472+ , pSeller
604− , ndtoOfferId
473+ , pProposalId
605− , ndtoNegotiationId
474+ , pName
606− , ndtoSellerEmailContacts
475+ , pSellerContacts
607− , ndtoBuyer
476+ , pLastUpdaterRole
608−
477+ , pLabels
609− -- ** OfferDTO
478+ , pRevisionTimeMs
610− , OfferDTO
479+ , pProposalState
611− , offerDTO
480+ , pLastUpdaterOrCommentorRole
612− , odtoCreator
481+ , pHasBuyerSignedOff
613− , odtoStatus
482+ , pBuyer
614− , odtoOfferState
615− , odtoPointOfContact
616− , odtoTerms
617− , odtoKind
618− , odtoBilledBuyer
619− , odtoOpenToDealParties
620− , odtoEmailContacts
621− , odtoLabelNames
622− , odtoOfferId
623− , odtoClosedToDealParties
624− , odtoAnonymous
625− , odtoIsOpen
626−
627− -- ** AudienceSegment
628− , AudienceSegment
629− , audienceSegment
630− , asNumCookies
631− , asName
632− , asId
633− , asDescription
634
483
635 -- ** BillingInfoList
484 -- ** BillingInfoList
636 , BillingInfoList
485 , BillingInfoList
@@ -638,27 +487,6 @@ module Network.Google.AdExchangeBuyer
638 , bilKind
487 , bilKind
639 , bilItems
488 , bilItems
640
489
641− -- ** MarketplaceOffer
642− , MarketplaceOffer
643− , marketplaceOffer
644− , moState
645− , moWebPropertyCode
646− , moCreationTimeMs
647− , moTerms
648− , moLastUpdateTimeMs
649− , moKind
650− , moRevisionNumber
651− , moHasCreatorSignedOff
652− , moFlightStartTimeMs
653− , moSharedTargetings
654− , moSeller
655− , moSyndicationProduct
656− , moFlightEndTimeMs
657− , moName
658− , moCreatorContacts
659− , moOfferId
660− , moLabels
661−
662 -- ** AddOrderNotesResponse
490 -- ** AddOrderNotesResponse
663 , AddOrderNotesResponse
491 , AddOrderNotesResponse
664 , addOrderNotesResponse
492 , addOrderNotesResponse
@@ -670,49 +498,12 @@ module Network.Google.AdExchangeBuyer
670 , tvsHeight
498 , tvsHeight
671 , tvsWidth
499 , tvsWidth
672
500
673− -- ** GetNegotiationsRequest
674− , GetNegotiationsRequest
675− , getNegotiationsRequest
676− , gnrSinceTimestampMillis
677− , gnrFinalized
678− , gnrIncludePrivateAuctions
679−
680− -- ** MoneyDTO
681− , MoneyDTO
682− , moneyDTO
683− , mdtoCurrencyCode
684− , mdtoMicros
685−
686− -- ** GetNegotiationByIdRequest
687− , GetNegotiationByIdRequest
688− , getNegotiationByIdRequest
689− , gnbirIncludePrivateAuctions
690−
691− -- ** ListOffersResponse
692− , ListOffersResponse
693− , listOffersResponse
694− , lorKind
695− , lorOffers
696−
697 -- ** PretargetingConfigDimensionsItem
501 -- ** PretargetingConfigDimensionsItem
698 , PretargetingConfigDimensionsItem
502 , PretargetingConfigDimensionsItem
699 , pretargetingConfigDimensionsItem
503 , pretargetingConfigDimensionsItem
700 , pcdiHeight
504 , pcdiHeight
701 , pcdiWidth
505 , pcdiWidth
702
506
703− -- ** AdvertiserDTO
704− , AdvertiserDTO
705− , advertiserDTO
706− , adtoStatus
707− , adtoBrands
708− , adtoName
709− , adtoId
710−
711− -- ** ListClientAccessCapabilitiesResponse
712− , ListClientAccessCapabilitiesResponse
713− , listClientAccessCapabilitiesResponse
714− , lcacrClientAccessPermissions
715−
716 -- ** TargetingValue
507 -- ** TargetingValue
717 , TargetingValue
508 , TargetingValue
718 , targetingValue
509 , targetingValue
@@ -733,14 +524,22 @@ module Network.Google.AdExchangeBuyer
733 , price
524 , price
734 , pCurrencyCode
525 , pCurrencyCode
735 , pAmountMicros
526 , pAmountMicros
527+ , pPricingType
528+
529+ -- ** PretargetingConfigVideoPlayerSizesItem
530+ , PretargetingConfigVideoPlayerSizesItem
531+ , pretargetingConfigVideoPlayerSizesItem
532+ , pcvpsiMinWidth
533+ , pcvpsiAspectRatio
534+ , pcvpsiMinHeight
736
535
737 -- ** EditAllOrderDealsRequest
536 -- ** EditAllOrderDealsRequest
738 , EditAllOrderDealsRequest
537 , EditAllOrderDealsRequest
739 , editAllOrderDealsRequest
538 , editAllOrderDealsRequest
740 , eUpdateAction
539 , eUpdateAction
741 , eDeals
540 , eDeals
742− , eOrder
541+ , eProposalRevisionNumber
743− , eOrderRevisionNumber
542+ , eProposal
744
543
745 -- ** BillingInfo
544 -- ** BillingInfo
746 , BillingInfo
545 , BillingInfo
@@ -763,51 +562,6 @@ module Network.Google.AdExchangeBuyer
763 , stExclusions
562 , stExclusions
764 , stInclusions
563 , stInclusions
765
564
766− -- ** ListClientAccessCapabilitiesRequest
767− , ListClientAccessCapabilitiesRequest
768− , listClientAccessCapabilitiesRequest
769− , lcacrSponsorAccountId
770−
771− -- ** InventorySegmentTargeting
772− , InventorySegmentTargeting
773− , inventorySegmentTargeting
774− , istNegativeVideoDurationSegments
775− , istNegativeIcmBrands
776− , istNegativeKeyValues
777− , istPositiveAudienceSegments
778− , istPositiveXfpPlacements
779− , istNegativeXfpAdSlots
780− , istPositiveOperatingSystemVersions
781− , istPositiveSizes
782− , istPositiveDeviceCategories
783− , istPositiveLocations
784− , istNegativeAdSizes
785− , istPositiveOperatingSystems
786− , istPositiveSiteURLs
787− , istNegativeInventorySlots
788− , istNegativeVideoAdPositionSegments
789− , istPositiveAdTypeSegments
790− , istPositiveIcmInterests
791− , istPositiveMobileApps
792− , istPositiveKeyValues
793− , istPositiveIcmBrands
794− , istPositiveVideoDurationSegments
795− , istNegativeAudienceSegments
796− , istNegativeXfpPlacements
797− , istPositiveXfpAdSlots
798− , istNegativeOperatingSystemVersions
799− , istNegativeSizes
800− , istNegativeLocations
801− , istNegativeDeviceCategories
802− , istNegativeOperatingSystems
803− , istPositiveAdSizes
804− , istNegativeSiteURLs
805− , istNegativeAdTypeSegments
806− , istPositiveVideoAdPositionSegments
807− , istPositiveInventorySlots
808− , istNegativeMobileApps
809− , istNegativeIcmInterests
810−
811 -- ** CreativeNATiveAdImage
565 -- ** CreativeNATiveAdImage
812 , CreativeNATiveAdImage
566 , CreativeNATiveAdImage
813 , creativeNATiveAdImage
567 , creativeNATiveAdImage
@@ -815,27 +569,27 @@ module Network.Google.AdExchangeBuyer
815 , cnataiURL
569 , cnataiURL
816 , cnataiWidth
570 , cnataiWidth
817
571
818− -- ** WebPropertyDTO
572+ -- ** Product
819− , WebPropertyDTO
573+ , Product
820− , webPropertyDTO
574+ , product
821− , wpdtoEnabledForPreferredDeals
575+ , proState
822− , wpdtoSyndicationProduct
576+ , proInventorySource
823− , wpdtoName
577+ , proWebPropertyCode
824− , wpdtoPropertyCode
578+ , proCreationTimeMs
825− , wpdtoId
579+ , proTerms
826− , wpdtoSiteURLs
580+ , proLastUpdateTimeMs
827− , wpdtoAllowInterestTargetedAds
581+ , proKind
828−
582+ , proRevisionNumber
829− -- ** ListOffersRequest
583+ , proHasCreatorSignedOff
830− , ListOffersRequest
584+ , proFlightStartTimeMs
831− , listOffersRequest
585+ , proSharedTargetings
832− , lorSinceTimestampMillis
586+ , proSeller
833−
587+ , proSyndicationProduct
834− -- ** ClientAccessCapabilities
588+ , proFlightEndTimeMs
835− , ClientAccessCapabilities
589+ , proName
836− , clientAccessCapabilities
590+ , proCreatorContacts
837− , cacClientAccountId
591+ , proLabels
838− , cacCapabilities
592+ , proProductId
839
593
840 -- ** CreativeServingRestrictionsItem
594 -- ** CreativeServingRestrictionsItem
841 , CreativeServingRestrictionsItem
595 , CreativeServingRestrictionsItem
@@ -848,7 +602,7 @@ module Network.Google.AdExchangeBuyer
848 , DeleteOrderDealsResponse
602 , DeleteOrderDealsResponse
849 , deleteOrderDealsResponse
603 , deleteOrderDealsResponse
850 , dDeals
604 , dDeals
851− , dOrderRevisionNumber
605+ , dProposalRevisionNumber
852
606
853 -- ** PretargetingConfigPlacementsItem
607 -- ** PretargetingConfigPlacementsItem
854 , PretargetingConfigPlacementsItem
608 , PretargetingConfigPlacementsItem
@@ -864,35 +618,26 @@ module Network.Google.AdExchangeBuyer
864 , mdWebPropertyCode
618 , mdWebPropertyCode
865 , mdCreationTimeMs
619 , mdCreationTimeMs
866 , mdTerms
620 , mdTerms
867− , mdOfferRevisionNumber
868 , mdLastUpdateTimeMs
621 , mdLastUpdateTimeMs
869 , mdKind
622 , mdKind
870 , mdDeliveryControl
623 , mdDeliveryControl
871 , mdFlightStartTimeMs
624 , mdFlightStartTimeMs
872 , mdSharedTargetings
625 , mdSharedTargetings
626+ , mdProposalId
873 , mdDealId
627 , mdDealId
874 , mdInventoryDescription
628 , mdInventoryDescription
875 , mdSyndicationProduct
629 , mdSyndicationProduct
876 , mdFlightEndTimeMs
630 , mdFlightEndTimeMs
877 , mdName
631 , mdName
878 , mdSellerContacts
632 , mdSellerContacts
879− , mdOfferId
633+ , mdCreativePreApprovalPolicy
880− , mdOrderId
634+ , mdProductRevisionNumber
635+ , mdProductId
881
636
882 -- ** GetOffersResponse
637 -- ** GetOffersResponse
883 , GetOffersResponse
638 , GetOffersResponse
884 , getOffersResponse
639 , getOffersResponse
885− , gorOffers
640+ , gorProducts
886−
887− -- ** StatsDTO
888− , StatsDTO
889− , statsDTO
890− , sdtoBids
891− , sdtoSpend
892− , sdtoImpressions
893− , sdtoGoodBids
894− , sdtoRevenue
895− , sdtoRequests
896
641
897 -- ** DealTermsNonGuaranteedAuctionTerms
642 -- ** DealTermsNonGuaranteedAuctionTerms
898 , DealTermsNonGuaranteedAuctionTerms
643 , DealTermsNonGuaranteedAuctionTerms
@@ -906,18 +651,8 @@ module Network.Google.AdExchangeBuyer
906 , cfrriFilteringStatus
651 , cfrriFilteringStatus
907 , cfrriFilteringCount
652 , cfrriFilteringCount
908
653
909− -- ** NegotiationRoundDTO
654+ -- ** ProposalsPatchUpdateAction
910− , NegotiationRoundDTO
655+ , ProposalsPatchUpdateAction (..)
911− , negotiationRoundDTO
912− , nrdtoTerms
913− , nrdtoKind
914− , nrdtoOriginatorRole
915− , nrdtoAction
916− , nrdtoDBmPartnerId
917− , nrdtoNotes
918− , nrdtoNegotiationId
919− , nrdtoEditHistory
920− , nrdtoRoundNumber
921
656
922 -- ** CreativesListDealsStatusFilter
657 -- ** CreativesListDealsStatusFilter
923 , CreativesListDealsStatusFilter (..)
658 , CreativesListDealsStatusFilter (..)
@@ -925,22 +660,14 @@ module Network.Google.AdExchangeBuyer
925 -- ** DealTerms
660 -- ** DealTerms
926 , DealTerms
661 , DealTerms
927 , dealTerms
662 , dealTerms
663+ , dtEstimatedGrossSpend
928 , dtNonGuaranteedFixedPriceTerms
664 , dtNonGuaranteedFixedPriceTerms
929 , dtNonGuaranteedAuctionTerms
665 , dtNonGuaranteedAuctionTerms
666+ , dtBrandingType
667+ , dtEstimatedImpressionsPerDay
930 , dtGuaranteedFixedPriceTerms
668 , dtGuaranteedFixedPriceTerms
931 , dtDescription
669 , dtDescription
932
670
933− -- ** DateTime
934− , DateTime
935− , dateTime
936− , dtSecond
937− , dtDay
938− , dtYear
939− , dtHour
940− , dtMonth
941− , dtMinute
942− , dtTimeZoneId
943−
944 -- ** MarketplaceLabel
671 -- ** MarketplaceLabel
945 , MarketplaceLabel
672 , MarketplaceLabel
946 , marketplaceLabel
673 , marketplaceLabel
@@ -949,49 +676,20 @@ module Network.Google.AdExchangeBuyer
949 , mlCreateTimeMs
676 , mlCreateTimeMs
950 , mlLabel
677 , mlLabel
951
678
952− -- ** EditHistoryDTO
953− , EditHistoryDTO
954− , editHistoryDTO
955− , ehdtoLastUpdatedByLoginName
956− , ehdtoCreatedByLoginName
957− , ehdtoLastUpdateTimeStamp
958− , ehdtoCreatedTimeStamp
959−
960 -- ** Buyer
679 -- ** Buyer
961 , Buyer
680 , Buyer
962 , buyer
681 , buyer
963− , bbAccountId
682+ , buyAccountId
964−
683+
965− -- ** MarketplaceOrder
684+ -- ** ProposalsUpdateUpdateAction
966− , MarketplaceOrder
685+ , ProposalsUpdateUpdateAction (..)
967− , marketplaceOrder
968− , mBuyerPrivateData
969− , mIsSetupComplete
970− , mBuyerContacts
971− , mKind
972− , mOriginatorRole
973− , mRevisionNumber
974− , mBilledBuyer
975− , mIsRenegotiating
976− , mHasSellerSignedOff
977− , mSeller
978− , mOrderState
979− , mName
980− , mSellerContacts
981− , mLastUpdaterRole
982− , mLabels
983− , mRevisionTimeMs
984− , mOrderId
985− , mLastUpdaterOrCommentorRole
986− , mHasBuyerSignedOff
987− , mBuyer
988
686
989 -- ** AddOrderDealsRequest
687 -- ** AddOrderDealsRequest
990 , AddOrderDealsRequest
688 , AddOrderDealsRequest
991 , addOrderDealsRequest
689 , addOrderDealsRequest
992 , aUpdateAction
690 , aUpdateAction
993 , aDeals
691 , aDeals
994− , aOrderRevisionNumber
692+ , aProposalRevisionNumber
995
693
996 -- ** DealTermsGuaranteedFixedPriceTerms
694 -- ** DealTermsGuaranteedFixedPriceTerms
997 , DealTermsGuaranteedFixedPriceTerms
695 , DealTermsGuaranteedFixedPriceTerms
@@ -1012,36 +710,17 @@ import Network.Google.Resource.AdExchangeBuyer.BillingInfo.List
1012import Network.Google.Resource.AdExchangeBuyer.Budget.Get
710import Network.Google.Resource.AdExchangeBuyer.Budget.Get
1013import Network.Google.Resource.AdExchangeBuyer.Budget.Patch
711import Network.Google.Resource.AdExchangeBuyer.Budget.Patch
1014import Network.Google.Resource.AdExchangeBuyer.Budget.Update
712import Network.Google.Resource.AdExchangeBuyer.Budget.Update
1015−import Network.Google.Resource.AdExchangeBuyer.ClientAccess.Delete
713+import Network.Google.Resource.AdExchangeBuyer.Creatives.AddDeal
1016−import Network.Google.Resource.AdExchangeBuyer.ClientAccess.Get
1017−import Network.Google.Resource.AdExchangeBuyer.ClientAccess.Insert
1018−import Network.Google.Resource.AdExchangeBuyer.ClientAccess.List
1019−import Network.Google.Resource.AdExchangeBuyer.ClientAccess.Patch
1020−import Network.Google.Resource.AdExchangeBuyer.ClientAccess.Update
1021import Network.Google.Resource.AdExchangeBuyer.Creatives.Get
714import Network.Google.Resource.AdExchangeBuyer.Creatives.Get
1022import Network.Google.Resource.AdExchangeBuyer.Creatives.Insert
715import Network.Google.Resource.AdExchangeBuyer.Creatives.Insert
1023import Network.Google.Resource.AdExchangeBuyer.Creatives.List
716import Network.Google.Resource.AdExchangeBuyer.Creatives.List
1024−import Network.Google.Resource.AdExchangeBuyer.Deals.Get
717+import Network.Google.Resource.AdExchangeBuyer.Creatives.RemoveDeal
1025import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
718import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
1026import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Insert
719import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Insert
1027import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.List
720import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.List
1028import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Update
721import Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Update
1029import Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.Insert
722import Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.Insert
1030import Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
723import Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
1031−import Network.Google.Resource.AdExchangeBuyer.MarketplaceOffers.Get
1032−import Network.Google.Resource.AdExchangeBuyer.MarketplaceOffers.Search
1033−import Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Get
1034−import Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Insert
1035−import Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Patch
1036−import Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Search
1037−import Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Update
1038−import Network.Google.Resource.AdExchangeBuyer.NegotiationRounds.Insert
1039−import Network.Google.Resource.AdExchangeBuyer.Negotiations.Get
1040−import Network.Google.Resource.AdExchangeBuyer.Negotiations.Insert
1041−import Network.Google.Resource.AdExchangeBuyer.Negotiations.List
1042−import Network.Google.Resource.AdExchangeBuyer.Offers.Get
1043−import Network.Google.Resource.AdExchangeBuyer.Offers.Insert
1044−import Network.Google.Resource.AdExchangeBuyer.Offers.List
1045import Network.Google.Resource.AdExchangeBuyer.PerformanceReport.List
724import Network.Google.Resource.AdExchangeBuyer.PerformanceReport.List
1046import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Delete
725import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Delete
1047import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Get
726import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Get
@@ -1049,6 +728,13 @@ import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Inse
1049import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.List
728import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.List
1050import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Patch
729import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Patch
1051import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Update
730import Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Update
731+import Network.Google.Resource.AdExchangeBuyer.Products.Get
732+import Network.Google.Resource.AdExchangeBuyer.Products.Search
733+import Network.Google.Resource.AdExchangeBuyer.Proposals.Get
734+import Network.Google.Resource.AdExchangeBuyer.Proposals.Insert
735+import Network.Google.Resource.AdExchangeBuyer.Proposals.Patch
736+import Network.Google.Resource.AdExchangeBuyer.Proposals.Search
737+import Network.Google.Resource.AdExchangeBuyer.Proposals.Update
1052
738
1053{- $resources
739{- $resources
1054TODO
740TODO
@@ -1058,8 +744,11 @@ TODO
1058type AdExchangeBuyerAPI =
744type AdExchangeBuyerAPI =
1059 MarketplaceNotesInsertResource :<|>
745 MarketplaceNotesInsertResource :<|>
1060 MarketplaceNotesListResource
746 MarketplaceNotesListResource
1061− :<|> DealsGetResource
747+ :<|> ProposalsInsertResource
1062− :<|> NegotiationRoundsInsertResource
748+ :<|> ProposalsPatchResource
749+ :<|> ProposalsGetResource
750+ :<|> ProposalsSearchResource
751+ :<|> ProposalsUpdateResource
1063 :<|> AccountsListResource
752 :<|> AccountsListResource
1064 :<|> AccountsPatchResource
753 :<|> AccountsPatchResource
1065 :<|> AccountsGetResource
754 :<|> AccountsGetResource
@@ -1068,37 +757,22 @@ type AdExchangeBuyerAPI =
1068 :<|> BudgetGetResource
757 :<|> BudgetGetResource
1069 :<|> BudgetUpdateResource
758 :<|> BudgetUpdateResource
1070 :<|> CreativesInsertResource
759 :<|> CreativesInsertResource
760+ :<|> CreativesRemoveDealResource
1071 :<|> CreativesListResource
761 :<|> CreativesListResource
1072 :<|> CreativesGetResource
762 :<|> CreativesGetResource
763+ :<|> CreativesAddDealResource
1073 :<|> PerformanceReportListResource
764 :<|> PerformanceReportListResource
1074− :<|> MarketplaceOffersGetResource
1075− :<|> MarketplaceOffersSearchResource
1076 :<|> PretargetingConfigInsertResource
765 :<|> PretargetingConfigInsertResource
1077 :<|> PretargetingConfigListResource
766 :<|> PretargetingConfigListResource
1078 :<|> PretargetingConfigPatchResource
767 :<|> PretargetingConfigPatchResource
1079 :<|> PretargetingConfigGetResource
768 :<|> PretargetingConfigGetResource
1080 :<|> PretargetingConfigDeleteResource
769 :<|> PretargetingConfigDeleteResource
1081 :<|> PretargetingConfigUpdateResource
770 :<|> PretargetingConfigUpdateResource
1082− :<|> MarketplaceOrdersInsertResource
1083− :<|> MarketplaceOrdersPatchResource
1084− :<|> MarketplaceOrdersGetResource
1085− :<|> MarketplaceOrdersSearchResource
1086− :<|> MarketplaceOrdersUpdateResource
1087− :<|> ClientAccessInsertResource
1088− :<|> ClientAccessListResource
1089− :<|> ClientAccessPatchResource
1090− :<|> ClientAccessGetResource
1091− :<|> ClientAccessDeleteResource
1092− :<|> ClientAccessUpdateResource
1093 :<|> BillingInfoListResource
771 :<|> BillingInfoListResource
1094 :<|> BillingInfoGetResource
772 :<|> BillingInfoGetResource
773+ :<|> ProductsGetResource
774+ :<|> ProductsSearchResource
1095 :<|> MarketplaceDealsInsertResource
775 :<|> MarketplaceDealsInsertResource
1096 :<|> MarketplaceDealsListResource
776 :<|> MarketplaceDealsListResource
1097 :<|> MarketplaceDealsDeleteResource
777 :<|> MarketplaceDealsDeleteResource
1098 :<|> MarketplaceDealsUpdateResource
778 :<|> MarketplaceDealsUpdateResource
1099− :<|> NegotiationsInsertResource
1100− :<|> NegotiationsListResource
1101− :<|> NegotiationsGetResource
1102− :<|> OffersInsertResource
1103− :<|> OffersListResource
1104− :<|> OffersGetResource
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types.hs+81−347
@@ -21,27 +21,17 @@ module Network.Google.AdExchangeBuyer.Types
21 -- * OAuth Scopes
21 -- * OAuth Scopes
22 , adexchangeBuyerScope
22 , adexchangeBuyerScope
23
23
24− -- * BrandDTO
25− , BrandDTO
26− , brandDTO
27− , bdtoAdvertiserId
28− , bdtoName
29− , bdtoId
30−
31− -- * MarketplaceOrdersUpdateUpdateAction
32− , MarketplaceOrdersUpdateUpdateAction (..)
33−
34 -- * MarketplaceNote
24 -- * MarketplaceNote
35 , MarketplaceNote
25 , MarketplaceNote
36 , marketplaceNote
26 , marketplaceNote
37 , mnNote
27 , mnNote
38 , mnKind
28 , mnKind
39 , mnTimestampMs
29 , mnTimestampMs
30+ , mnProposalId
40 , mnDealId
31 , mnDealId
32+ , mnProposalRevisionNumber
41 , mnNoteId
33 , mnNoteId
42 , mnCreatorRole
34 , mnCreatorRole
43− , mnOrderId
44− , mnOrderRevisionNumber
45
35
46 -- * CreativeNATiveAd
36 -- * CreativeNATiveAd
47 , CreativeNATiveAd
37 , CreativeNATiveAd
@@ -79,41 +69,10 @@ module Network.Google.AdExchangeBuyer.Types
79 , csriciAuctionType
69 , csriciAuctionType
80 , csriciGeoCriteriaId
70 , csriciGeoCriteriaId
81
71
82− -- * TermsDTO
83− , TermsDTO
84− , termsDTO
85− , tdtoFinalizeAutomatically
86− , tdtoBuyerBillingType
87− , tdtoTargetingAllAdSlots
88− , tdtoURLs
89− , tdtoEndDate
90− , tdtoCpm
91− , tdtoEstimatedSpend
92− , tdtoAdvertisers
93− , tdtoEstimatedImpressionsPerDay
94− , tdtoMonetizerType
95− , tdtoAudienceSegmentDescription
96− , tdtoCreativeReviewPolicy
97− , tdtoMinimumTrueLooks
98− , tdtoStartDate
99− , tdtoCreativeBlockingLevel
100− , tdtoSemiTransparent
101− , tdtoAudienceSegment
102− , tdtoDealPremium
103− , tdtoIsReservation
104− , tdtoAdSlots
105− , tdtoTermsAttributes
106− , tdtoInventorySegmentTargeting
107− , tdtoDescriptiveName
108− , tdtoMinimumSpendMicros
109− , tdtoTargetByDealId
110− , tdtoBillingTerms
111− , tdtoDescription
112−
113 -- * CreateOrdersResponse
72 -- * CreateOrdersResponse
114 , CreateOrdersResponse
73 , CreateOrdersResponse
115 , createOrdersResponse
74 , createOrdersResponse
116− , corOrders
75+ , corProposals
117
76
118 -- * AccountBidderLocationItem
77 -- * AccountBidderLocationItem
119 , AccountBidderLocationItem
78 , AccountBidderLocationItem
@@ -143,11 +102,6 @@ module Network.Google.AdExchangeBuyer.Types
143 , addOrderNotesRequest
102 , addOrderNotesRequest
144 , aonrNotes
103 , aonrNotes
145
104
146− -- * GetFinalizedNegotiationByExternalDealIdRequest
147− , GetFinalizedNegotiationByExternalDealIdRequest
148− , getFinalizedNegotiationByExternalDealIdRequest
149− , gfnbedirIncludePrivateAuctions
150−
151 -- * DeliveryControlFrequencyCap
105 -- * DeliveryControlFrequencyCap
152 , DeliveryControlFrequencyCap
106 , DeliveryControlFrequencyCap
153 , deliveryControlFrequencyCap
107 , deliveryControlFrequencyCap
@@ -155,21 +109,6 @@ module Network.Google.AdExchangeBuyer.Types
155 , dcfcNumTimeUnits
109 , dcfcNumTimeUnits
156 , dcfcTimeUnitType
110 , dcfcTimeUnitType
157
111
158− -- * DealPartyDTO
159− , DealPartyDTO
160− , dealPartyDTO
161− , dpdtoBuyerSellerRole
162− , dpdtoCustomerId
163− , dpdtoName
164− , dpdtoWebProperty
165− , dpdtoBuyer
166−
167− -- * GetNegotiationsResponse
168− , GetNegotiationsResponse
169− , getNegotiationsResponse
170− , gnrKind
171− , gnrNegotiations
172−
173 -- * MarketplaceDealParty
112 -- * MarketplaceDealParty
174 , MarketplaceDealParty
113 , MarketplaceDealParty
175 , marketplaceDealParty
114 , marketplaceDealParty
@@ -181,16 +120,10 @@ module Network.Google.AdExchangeBuyer.Types
181 , getOrderNotesResponse
120 , getOrderNotesResponse
182 , gonrNotes
121 , gonrNotes
183
122
184− -- * RuleKeyValuePair
185− , RuleKeyValuePair
186− , ruleKeyValuePair
187− , rkvpKeyName
188− , rkvpValue
189−
190 -- * GetOrdersResponse
123 -- * GetOrdersResponse
191 , GetOrdersResponse
124 , GetOrdersResponse
192 , getOrdersResponse
125 , getOrdersResponse
193− , gorOrders
126+ , gorProposals
194
127
195 -- * CreativeServingRestrictionsItemDisApprovalReasonsItem
128 -- * CreativeServingRestrictionsItemDisApprovalReasonsItem
196 , CreativeServingRestrictionsItemDisApprovalReasonsItem
129 , CreativeServingRestrictionsItemDisApprovalReasonsItem
@@ -207,17 +140,8 @@ module Network.Google.AdExchangeBuyer.Types
207 -- * CreateOrdersRequest
140 -- * CreateOrdersRequest
208 , CreateOrdersRequest
141 , CreateOrdersRequest
209 , createOrdersRequest
142 , createOrdersRequest
143+ , cProposals
210 , cWebPropertyCode
144 , cWebPropertyCode
211− , cOrders
212−
213− -- * AdSize
214− , AdSize
215− , adSize
216− , asHeight
217− , asWidth
218−
219− -- * MarketplaceOrdersPatchUpdateAction
220− , MarketplaceOrdersPatchUpdateAction (..)
221
145
222 -- * CreativeCorrectionsItem
146 -- * CreativeCorrectionsItem
223 , CreativeCorrectionsItem
147 , CreativeCorrectionsItem
@@ -229,11 +153,12 @@ module Network.Google.AdExchangeBuyer.Types
229 , AddOrderDealsResponse
153 , AddOrderDealsResponse
230 , addOrderDealsResponse
154 , addOrderDealsResponse
231 , aodrDeals
155 , aodrDeals
232− , aodrOrderRevisionNumber
156+ , aodrProposalRevisionNumber
233
157
234 -- * DeliveryControl
158 -- * DeliveryControl
235 , DeliveryControl
159 , DeliveryControl
236 , deliveryControl
160 , deliveryControl
161+ , dcCreativeBlockingLevel
237 , dcFrequencyCaps
162 , dcFrequencyCaps
238 , dcDeliveryRateType
163 , dcDeliveryRateType
239
164
@@ -287,27 +212,6 @@ module Network.Google.AdExchangeBuyer.Types
287 , pclKind
212 , pclKind
288 , pclItems
213 , pclItems
289
214
290− -- * BuyerDTO
291− , BuyerDTO
292− , buyerDTO
293− , buySponsorAccountId
294− , buyEnabledForInterestTargetingDeals
295− , buyCustomerId
296− , buyEnabledForPreferredDeals
297− , buyAccountId
298− , buyDisplayName
299− , buyId
300−
301− -- * AdSlotDTO
302− , AdSlotDTO
303− , adSlotDTO
304− , asdtoWebPropertyId
305− , asdtoSize
306− , asdtoChannelCode
307− , asdtoChannelId
308− , asdtoName
309− , asdtoDescription
310−
311 -- * DealTermsNonGuaranteedFixedPriceTerms
215 -- * DealTermsNonGuaranteedFixedPriceTerms
312 , DealTermsNonGuaranteedFixedPriceTerms
216 , DealTermsNonGuaranteedFixedPriceTerms
313 , dealTermsNonGuaranteedFixedPriceTerms
217 , dealTermsNonGuaranteedFixedPriceTerms
@@ -368,7 +272,7 @@ module Network.Google.AdExchangeBuyer.Types
368 , deleteOrderDealsRequest
272 , deleteOrderDealsRequest
369 , dodrUpdateAction
273 , dodrUpdateAction
370 , dodrDealIds
274 , dodrDealIds
371− , dodrOrderRevisionNumber
275+ , dodrProposalRevisionNumber
372
276
373 -- * CreativesListOpenAuctionStatusFilter
277 -- * CreativesListOpenAuctionStatusFilter
374 , CreativesListOpenAuctionStatusFilter (..)
278 , CreativesListOpenAuctionStatusFilter (..)
@@ -411,6 +315,7 @@ module Network.Google.AdExchangeBuyer.Types
411 , pcMobileDevices
315 , pcMobileDevices
412 , pcLanguages
316 , pcLanguages
413 , pcVerticals
317 , pcVerticals
318+ , pcVideoPlayerSizes
414 , pcConfigId
319 , pcConfigId
415 , pcPlacements
320 , pcPlacements
416 , pcExcludedUserLists
321 , pcExcludedUserLists
@@ -437,50 +342,30 @@ module Network.Google.AdExchangeBuyer.Types
437 , tvcsCompanionSizes
342 , tvcsCompanionSizes
438 , tvcsCreativeSizeType
343 , tvcsCreativeSizeType
439
344
440− -- * NegotiationDTO
345+ -- * Proposal
441− , NegotiationDTO
346+ , Proposal
442− , negotiationDTO
347+ , proposal
443− , ndtoNegotiationState
348+ , pBuyerPrivateData
444− , ndtoExternalDealId
349+ , pIsSetupComplete
445− , ndtoStatus
350+ , pInventorySource
446− , ndtoDealType
351+ , pBuyerContacts
447− , ndtoNegotiationRounds
352+ , pKind
448− , ndtoKind
353+ , pOriginatorRole
449− , ndtoBilledBuyer
354+ , pRevisionNumber
450− , ndtoBuyerEmailContacts
355+ , pBilledBuyer
451− , ndtoStats
356+ , pIsRenegotiating
452− , ndtoSeller
357+ , pHasSellerSignedOff
453− , ndtoLabelNames
358+ , pSeller
454− , ndtoOfferId
359+ , pProposalId
455− , ndtoNegotiationId
360+ , pName
456− , ndtoSellerEmailContacts
361+ , pSellerContacts
457− , ndtoBuyer
362+ , pLastUpdaterRole
458−
363+ , pLabels
459− -- * OfferDTO
364+ , pRevisionTimeMs
460− , OfferDTO
365+ , pProposalState
461− , offerDTO
366+ , pLastUpdaterOrCommentorRole
462− , odtoCreator
367+ , pHasBuyerSignedOff
463− , odtoStatus
368+ , pBuyer
464− , odtoOfferState
465− , odtoPointOfContact
466− , odtoTerms
467− , odtoKind
468− , odtoBilledBuyer
469− , odtoOpenToDealParties
470− , odtoEmailContacts
471− , odtoLabelNames
472− , odtoOfferId
473− , odtoClosedToDealParties
474− , odtoAnonymous
475− , odtoIsOpen
476−
477− -- * AudienceSegment
478− , AudienceSegment
479− , audienceSegment
480− , asNumCookies
481− , asName
482− , asId
483− , asDescription
484
369
485 -- * BillingInfoList
370 -- * BillingInfoList
486 , BillingInfoList
371 , BillingInfoList
@@ -488,27 +373,6 @@ module Network.Google.AdExchangeBuyer.Types
488 , bilKind
373 , bilKind
489 , bilItems
374 , bilItems
490
375
491− -- * MarketplaceOffer
492− , MarketplaceOffer
493− , marketplaceOffer
494− , moState
495− , moWebPropertyCode
496− , moCreationTimeMs
497− , moTerms
498− , moLastUpdateTimeMs
499− , moKind
500− , moRevisionNumber
501− , moHasCreatorSignedOff
502− , moFlightStartTimeMs
503− , moSharedTargetings
504− , moSeller
505− , moSyndicationProduct
506− , moFlightEndTimeMs
507− , moName
508− , moCreatorContacts
509− , moOfferId
510− , moLabels
511−
512 -- * AddOrderNotesResponse
376 -- * AddOrderNotesResponse
513 , AddOrderNotesResponse
377 , AddOrderNotesResponse
514 , addOrderNotesResponse
378 , addOrderNotesResponse
@@ -520,49 +384,12 @@ module Network.Google.AdExchangeBuyer.Types
520 , tvsHeight
384 , tvsHeight
521 , tvsWidth
385 , tvsWidth
522
386
523− -- * GetNegotiationsRequest
524− , GetNegotiationsRequest
525− , getNegotiationsRequest
526− , gnrSinceTimestampMillis
527− , gnrFinalized
528− , gnrIncludePrivateAuctions
529−
530− -- * MoneyDTO
531− , MoneyDTO
532− , moneyDTO
533− , mdtoCurrencyCode
534− , mdtoMicros
535−
536− -- * GetNegotiationByIdRequest
537− , GetNegotiationByIdRequest
538− , getNegotiationByIdRequest
539− , gnbirIncludePrivateAuctions
540−
541− -- * ListOffersResponse
542− , ListOffersResponse
543− , listOffersResponse
544− , lorKind
545− , lorOffers
546−
547 -- * PretargetingConfigDimensionsItem
387 -- * PretargetingConfigDimensionsItem
548 , PretargetingConfigDimensionsItem
388 , PretargetingConfigDimensionsItem
549 , pretargetingConfigDimensionsItem
389 , pretargetingConfigDimensionsItem
550 , pcdiHeight
390 , pcdiHeight
551 , pcdiWidth
391 , pcdiWidth
552
392
553− -- * AdvertiserDTO
554− , AdvertiserDTO
555− , advertiserDTO
556− , adtoStatus
557− , adtoBrands
558− , adtoName
559− , adtoId
560−
561− -- * ListClientAccessCapabilitiesResponse
562− , ListClientAccessCapabilitiesResponse
563− , listClientAccessCapabilitiesResponse
564− , lcacrClientAccessPermissions
565−
566 -- * TargetingValue
393 -- * TargetingValue
567 , TargetingValue
394 , TargetingValue
568 , targetingValue
395 , targetingValue
@@ -583,14 +410,22 @@ module Network.Google.AdExchangeBuyer.Types
583 , price
410 , price
584 , pCurrencyCode
411 , pCurrencyCode
585 , pAmountMicros
412 , pAmountMicros
413+ , pPricingType
414+
415+ -- * PretargetingConfigVideoPlayerSizesItem
416+ , PretargetingConfigVideoPlayerSizesItem
417+ , pretargetingConfigVideoPlayerSizesItem
418+ , pcvpsiMinWidth
419+ , pcvpsiAspectRatio
420+ , pcvpsiMinHeight
586
421
587 -- * EditAllOrderDealsRequest
422 -- * EditAllOrderDealsRequest
588 , EditAllOrderDealsRequest
423 , EditAllOrderDealsRequest
589 , editAllOrderDealsRequest
424 , editAllOrderDealsRequest
590 , eUpdateAction
425 , eUpdateAction
591 , eDeals
426 , eDeals
592− , eOrder
427+ , eProposalRevisionNumber
593− , eOrderRevisionNumber
428+ , eProposal
594
429
595 -- * BillingInfo
430 -- * BillingInfo
596 , BillingInfo
431 , BillingInfo
@@ -613,51 +448,6 @@ module Network.Google.AdExchangeBuyer.Types
613 , stExclusions
448 , stExclusions
614 , stInclusions
449 , stInclusions
615
450
616− -- * ListClientAccessCapabilitiesRequest
617− , ListClientAccessCapabilitiesRequest
618− , listClientAccessCapabilitiesRequest
619− , lcacrSponsorAccountId
620−
621− -- * InventorySegmentTargeting
622− , InventorySegmentTargeting
623− , inventorySegmentTargeting
624− , istNegativeVideoDurationSegments
625− , istNegativeIcmBrands
626− , istNegativeKeyValues
627− , istPositiveAudienceSegments
628− , istPositiveXfpPlacements
629− , istNegativeXfpAdSlots
630− , istPositiveOperatingSystemVersions
631− , istPositiveSizes
632− , istPositiveDeviceCategories
633− , istPositiveLocations
634− , istNegativeAdSizes
635− , istPositiveOperatingSystems
636− , istPositiveSiteURLs
637− , istNegativeInventorySlots
638− , istNegativeVideoAdPositionSegments
639− , istPositiveAdTypeSegments
640− , istPositiveIcmInterests
641− , istPositiveMobileApps
642− , istPositiveKeyValues
643− , istPositiveIcmBrands
644− , istPositiveVideoDurationSegments
645− , istNegativeAudienceSegments
646− , istNegativeXfpPlacements
647− , istPositiveXfpAdSlots
648− , istNegativeOperatingSystemVersions
649− , istNegativeSizes
650− , istNegativeLocations
651− , istNegativeDeviceCategories
652− , istNegativeOperatingSystems
653− , istPositiveAdSizes
654− , istNegativeSiteURLs
655− , istNegativeAdTypeSegments
656− , istPositiveVideoAdPositionSegments
657− , istPositiveInventorySlots
658− , istNegativeMobileApps
659− , istNegativeIcmInterests
660−
661 -- * CreativeNATiveAdImage
451 -- * CreativeNATiveAdImage
662 , CreativeNATiveAdImage
452 , CreativeNATiveAdImage
663 , creativeNATiveAdImage
453 , creativeNATiveAdImage
@@ -665,27 +455,27 @@ module Network.Google.AdExchangeBuyer.Types
665 , cnataiURL
455 , cnataiURL
666 , cnataiWidth
456 , cnataiWidth
667
457
668− -- * WebPropertyDTO
458+ -- * Product
669− , WebPropertyDTO
459+ , Product
670− , webPropertyDTO
460+ , product
671− , wpdtoEnabledForPreferredDeals
461+ , proState
672− , wpdtoSyndicationProduct
462+ , proInventorySource
673− , wpdtoName
463+ , proWebPropertyCode
674− , wpdtoPropertyCode
464+ , proCreationTimeMs
675− , wpdtoId
465+ , proTerms
676− , wpdtoSiteURLs
466+ , proLastUpdateTimeMs
677− , wpdtoAllowInterestTargetedAds
467+ , proKind
678−
468+ , proRevisionNumber
679− -- * ListOffersRequest
469+ , proHasCreatorSignedOff
680− , ListOffersRequest
470+ , proFlightStartTimeMs
681− , listOffersRequest
471+ , proSharedTargetings
682− , lorSinceTimestampMillis
472+ , proSeller
683−
473+ , proSyndicationProduct
684− -- * ClientAccessCapabilities
474+ , proFlightEndTimeMs
685− , ClientAccessCapabilities
475+ , proName
686− , clientAccessCapabilities
476+ , proCreatorContacts
687− , cacClientAccountId
477+ , proLabels
688− , cacCapabilities
478+ , proProductId
689
479
690 -- * CreativeServingRestrictionsItem
480 -- * CreativeServingRestrictionsItem
691 , CreativeServingRestrictionsItem
481 , CreativeServingRestrictionsItem
@@ -698,7 +488,7 @@ module Network.Google.AdExchangeBuyer.Types
698 , DeleteOrderDealsResponse
488 , DeleteOrderDealsResponse
699 , deleteOrderDealsResponse
489 , deleteOrderDealsResponse
700 , dDeals
490 , dDeals
701− , dOrderRevisionNumber
491+ , dProposalRevisionNumber
702
492
703 -- * PretargetingConfigPlacementsItem
493 -- * PretargetingConfigPlacementsItem
704 , PretargetingConfigPlacementsItem
494 , PretargetingConfigPlacementsItem
@@ -714,35 +504,26 @@ module Network.Google.AdExchangeBuyer.Types
714 , mdWebPropertyCode
504 , mdWebPropertyCode
715 , mdCreationTimeMs
505 , mdCreationTimeMs
716 , mdTerms
506 , mdTerms
717− , mdOfferRevisionNumber
718 , mdLastUpdateTimeMs
507 , mdLastUpdateTimeMs
719 , mdKind
508 , mdKind
720 , mdDeliveryControl
509 , mdDeliveryControl
721 , mdFlightStartTimeMs
510 , mdFlightStartTimeMs
722 , mdSharedTargetings
511 , mdSharedTargetings
512+ , mdProposalId
723 , mdDealId
513 , mdDealId
724 , mdInventoryDescription
514 , mdInventoryDescription
725 , mdSyndicationProduct
515 , mdSyndicationProduct
726 , mdFlightEndTimeMs
516 , mdFlightEndTimeMs
727 , mdName
517 , mdName
728 , mdSellerContacts
518 , mdSellerContacts
729− , mdOfferId
519+ , mdCreativePreApprovalPolicy
730− , mdOrderId
520+ , mdProductRevisionNumber
521+ , mdProductId
731
522
732 -- * GetOffersResponse
523 -- * GetOffersResponse
733 , GetOffersResponse
524 , GetOffersResponse
734 , getOffersResponse
525 , getOffersResponse
735− , gorOffers
526+ , gorProducts
736−
737− -- * StatsDTO
738− , StatsDTO
739− , statsDTO
740− , sdtoBids
741− , sdtoSpend
742− , sdtoImpressions
743− , sdtoGoodBids
744− , sdtoRevenue
745− , sdtoRequests
746
527
747 -- * DealTermsNonGuaranteedAuctionTerms
528 -- * DealTermsNonGuaranteedAuctionTerms
748 , DealTermsNonGuaranteedAuctionTerms
529 , DealTermsNonGuaranteedAuctionTerms
@@ -756,18 +537,8 @@ module Network.Google.AdExchangeBuyer.Types
756 , cfrriFilteringStatus
537 , cfrriFilteringStatus
757 , cfrriFilteringCount
538 , cfrriFilteringCount
758
539
759− -- * NegotiationRoundDTO
540+ -- * ProposalsPatchUpdateAction
760− , NegotiationRoundDTO
541+ , ProposalsPatchUpdateAction (..)
761− , negotiationRoundDTO
762− , nrdtoTerms
763− , nrdtoKind
764− , nrdtoOriginatorRole
765− , nrdtoAction
766− , nrdtoDBmPartnerId
767− , nrdtoNotes
768− , nrdtoNegotiationId
769− , nrdtoEditHistory
770− , nrdtoRoundNumber
771
542
772 -- * CreativesListDealsStatusFilter
543 -- * CreativesListDealsStatusFilter
773 , CreativesListDealsStatusFilter (..)
544 , CreativesListDealsStatusFilter (..)
@@ -775,22 +546,14 @@ module Network.Google.AdExchangeBuyer.Types
775 -- * DealTerms
546 -- * DealTerms
776 , DealTerms
547 , DealTerms
777 , dealTerms
548 , dealTerms
549+ , dtEstimatedGrossSpend
778 , dtNonGuaranteedFixedPriceTerms
550 , dtNonGuaranteedFixedPriceTerms
779 , dtNonGuaranteedAuctionTerms
551 , dtNonGuaranteedAuctionTerms
552+ , dtBrandingType
553+ , dtEstimatedImpressionsPerDay
780 , dtGuaranteedFixedPriceTerms
554 , dtGuaranteedFixedPriceTerms
781 , dtDescription
555 , dtDescription
782
556
783− -- * DateTime
784− , DateTime
785− , dateTime
786− , dtSecond
787− , dtDay
788− , dtYear
789− , dtHour
790− , dtMonth
791− , dtMinute
792− , dtTimeZoneId
793−
794 -- * MarketplaceLabel
557 -- * MarketplaceLabel
795 , MarketplaceLabel
558 , MarketplaceLabel
796 , marketplaceLabel
559 , marketplaceLabel
@@ -799,49 +562,20 @@ module Network.Google.AdExchangeBuyer.Types
799 , mlCreateTimeMs
562 , mlCreateTimeMs
800 , mlLabel
563 , mlLabel
801
564
802− -- * EditHistoryDTO
803− , EditHistoryDTO
804− , editHistoryDTO
805− , ehdtoLastUpdatedByLoginName
806− , ehdtoCreatedByLoginName
807− , ehdtoLastUpdateTimeStamp
808− , ehdtoCreatedTimeStamp
809−
810 -- * Buyer
565 -- * Buyer
811 , Buyer
566 , Buyer
812 , buyer
567 , buyer
813− , bbAccountId
568+ , buyAccountId
814−
569+
815− -- * MarketplaceOrder
570+ -- * ProposalsUpdateUpdateAction
816− , MarketplaceOrder
571+ , ProposalsUpdateUpdateAction (..)
817− , marketplaceOrder
818− , mBuyerPrivateData
819− , mIsSetupComplete
820− , mBuyerContacts
821− , mKind
822− , mOriginatorRole
823− , mRevisionNumber
824− , mBilledBuyer
825− , mIsRenegotiating
826− , mHasSellerSignedOff
827− , mSeller
828− , mOrderState
829− , mName
830− , mSellerContacts
831− , mLastUpdaterRole
832− , mLabels
833− , mRevisionTimeMs
834− , mOrderId
835− , mLastUpdaterOrCommentorRole
836− , mHasBuyerSignedOff
837− , mBuyer
838
572
839 -- * AddOrderDealsRequest
573 -- * AddOrderDealsRequest
840 , AddOrderDealsRequest
574 , AddOrderDealsRequest
841 , addOrderDealsRequest
575 , addOrderDealsRequest
842 , aUpdateAction
576 , aUpdateAction
843 , aDeals
577 , aDeals
844− , aOrderRevisionNumber
578+ , aProposalRevisionNumber
845
579
846 -- * DealTermsGuaranteedFixedPriceTerms
580 -- * DealTermsGuaranteedFixedPriceTerms
847 , DealTermsGuaranteedFixedPriceTerms
581 , DealTermsGuaranteedFixedPriceTerms
@@ -856,7 +590,7 @@ import Network.Google.AdExchangeBuyer.Types.Sum
856import Network.Google.Prelude
590import Network.Google.Prelude
857
591
858-- | Default request referring to version 'v1.4' of the Ad Exchange Buyer API. This contains the host and root path used as a starting point for constructing service requests.
592-- | Default request referring to version 'v1.4' of the Ad Exchange Buyer API. This contains the host and root path used as a starting point for constructing service requests.
859−adExchangeBuyerService :: Service
593+adExchangeBuyerService :: ServiceConfig
860adExchangeBuyerService
594adExchangeBuyerService
861 = defaultService (ServiceId "adexchangebuyer:v1.4")
595 = defaultService (ServiceId "adexchangebuyer:v1.4")
862 "www.googleapis.com"
596 "www.googleapis.com"
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Product.hs+971−3553
@@ -20,74 +20,19 @@ module Network.Google.AdExchangeBuyer.Types.Product where
20import Network.Google.AdExchangeBuyer.Types.Sum
20import Network.Google.AdExchangeBuyer.Types.Sum
21import Network.Google.Prelude
21import Network.Google.Prelude
22
22
23−--
24−-- /See:/ 'brandDTO' smart constructor.
25−data BrandDTO = BrandDTO
26− { _bdtoAdvertiserId :: !(Maybe (Textual Int64))
27− , _bdtoName :: !(Maybe Text)
28− , _bdtoId :: !(Maybe (Textual Int64))
29− } deriving (Eq,Show,Data,Typeable,Generic)
30−
31−-- | Creates a value of 'BrandDTO' with the minimum fields required to make a request.
32−--
33−-- Use one of the following lenses to modify other fields as desired:
34−--
35−-- * 'bdtoAdvertiserId'
36−--
37−-- * 'bdtoName'
38−--
39−-- * 'bdtoId'
40−brandDTO
41− :: BrandDTO
42−brandDTO =
43− BrandDTO
44− { _bdtoAdvertiserId = Nothing
45− , _bdtoName = Nothing
46− , _bdtoId = Nothing
47− }
48−
49−bdtoAdvertiserId :: Lens' BrandDTO (Maybe Int64)
50−bdtoAdvertiserId
51− = lens _bdtoAdvertiserId
52− (\ s a -> s{_bdtoAdvertiserId = a})
53− . mapping _Coerce
54−
55−bdtoName :: Lens' BrandDTO (Maybe Text)
56−bdtoName = lens _bdtoName (\ s a -> s{_bdtoName = a})
57−
58−bdtoId :: Lens' BrandDTO (Maybe Int64)
59−bdtoId
60− = lens _bdtoId (\ s a -> s{_bdtoId = a}) .
61− mapping _Coerce
62−
63−instance FromJSON BrandDTO where
64− parseJSON
65− = withObject "BrandDTO"
66− (\ o ->
67− BrandDTO <$>
68− (o .:? "advertiserId") <*> (o .:? "name") <*>
69− (o .:? "id"))
70−
71−instance ToJSON BrandDTO where
72− toJSON BrandDTO{..}
73− = object
74− (catMaybes
75− [("advertiserId" .=) <$> _bdtoAdvertiserId,
76− ("name" .=) <$> _bdtoName, ("id" .=) <$> _bdtoId])
77−
78−-- | An order is associated with a bunch of notes which may optionally be
23+-- | A proposal is associated with a bunch of notes which may optionally be
79-- associated with a deal and\/or revision number.
24-- associated with a deal and\/or revision number.
80--
25--
81-- /See:/ 'marketplaceNote' smart constructor.
26-- /See:/ 'marketplaceNote' smart constructor.
82data MarketplaceNote = MarketplaceNote
27data MarketplaceNote = MarketplaceNote
83− { _mnNote :: !(Maybe Text)
28+ { _mnNote :: !(Maybe Text)
84− , _mnKind :: !Text
29+ , _mnKind :: !Text
85− , _mnTimestampMs :: !(Maybe (Textual Int64))
30+ , _mnTimestampMs :: !(Maybe (Textual Int64))
31+ , _mnProposalId :: !(Maybe Text)
86− , _mnDealId :: !(Maybe Text)
32+ , _mnDealId :: !(Maybe Text)
33+ , _mnProposalRevisionNumber :: !(Maybe (Textual Int64))
87− , _mnNoteId :: !(Maybe Text)
34+ , _mnNoteId :: !(Maybe Text)
88− , _mnCreatorRole :: !(Maybe Text)
35+ , _mnCreatorRole :: !(Maybe Text)
89− , _mnOrderId :: !(Maybe Text)
90− , _mnOrderRevisionNumber :: !(Maybe (Textual Int64))
91 } deriving (Eq,Show,Data,Typeable,Generic)
36 } deriving (Eq,Show,Data,Typeable,Generic)
92
37
93-- | Creates a value of 'MarketplaceNote' with the minimum fields required to make a request.
38-- | Creates a value of 'MarketplaceNote' with the minimum fields required to make a request.
@@ -100,15 +45,15 @@ data MarketplaceNote = MarketplaceNote
100--
45--
101-- * 'mnTimestampMs'
46-- * 'mnTimestampMs'
102--
47--
48+-- * 'mnProposalId'
49+--
103-- * 'mnDealId'
50-- * 'mnDealId'
104--
51--
52+-- * 'mnProposalRevisionNumber'
53+--
105-- * 'mnNoteId'
54-- * 'mnNoteId'
106--
55--
107-- * 'mnCreatorRole'
56-- * 'mnCreatorRole'
108−--
109−-- * 'mnOrderId'
110−--
111−-- * 'mnOrderRevisionNumber'
112marketplaceNote
57marketplaceNote
113 :: MarketplaceNote
58 :: MarketplaceNote
114marketplaceNote =
59marketplaceNote =
@@ -116,11 +61,11 @@ marketplaceNote =
116 { _mnNote = Nothing
61 { _mnNote = Nothing
117 , _mnKind = "adexchangebuyer#marketplaceNote"
62 , _mnKind = "adexchangebuyer#marketplaceNote"
118 , _mnTimestampMs = Nothing
63 , _mnTimestampMs = Nothing
64+ , _mnProposalId = Nothing
119 , _mnDealId = Nothing
65 , _mnDealId = Nothing
66+ , _mnProposalRevisionNumber = Nothing
120 , _mnNoteId = Nothing
67 , _mnNoteId = Nothing
121 , _mnCreatorRole = Nothing
68 , _mnCreatorRole = Nothing
122− , _mnOrderId = Nothing
123− , _mnOrderRevisionNumber = Nothing
124 }
69 }
125
70
126-- | The actual note to attach. (readonly, except on create)
71-- | The actual note to attach. (readonly, except on create)
@@ -139,11 +84,24 @@ mnTimestampMs
139 (\ s a -> s{_mnTimestampMs = a})
84 (\ s a -> s{_mnTimestampMs = a})
140 . mapping _Coerce
85 . mapping _Coerce
141
86
87+-- | The proposalId that a note is attached to. (readonly)
88+mnProposalId :: Lens' MarketplaceNote (Maybe Text)
89+mnProposalId
90+ = lens _mnProposalId (\ s a -> s{_mnProposalId = a})
91+
142-- | Notes can optionally be associated with a deal. (readonly, except on
92-- | Notes can optionally be associated with a deal. (readonly, except on
143-- create)
93-- create)
144mnDealId :: Lens' MarketplaceNote (Maybe Text)
94mnDealId :: Lens' MarketplaceNote (Maybe Text)
145mnDealId = lens _mnDealId (\ s a -> s{_mnDealId = a})
95mnDealId = lens _mnDealId (\ s a -> s{_mnDealId = a})
146
96
97+-- | If the note is associated with a proposal revision number, then store
98+-- that here. (readonly, except on create)
99+mnProposalRevisionNumber :: Lens' MarketplaceNote (Maybe Int64)
100+mnProposalRevisionNumber
101+ = lens _mnProposalRevisionNumber
102+ (\ s a -> s{_mnProposalRevisionNumber = a})
103+ . mapping _Coerce
104+
147-- | The unique id for the note. (readonly)
105-- | The unique id for the note. (readonly)
148mnNoteId :: Lens' MarketplaceNote (Maybe Text)
106mnNoteId :: Lens' MarketplaceNote (Maybe Text)
149mnNoteId = lens _mnNoteId (\ s a -> s{_mnNoteId = a})
107mnNoteId = lens _mnNoteId (\ s a -> s{_mnNoteId = a})
@@ -154,19 +112,6 @@ mnCreatorRole
154 = lens _mnCreatorRole
112 = lens _mnCreatorRole
155 (\ s a -> s{_mnCreatorRole = a})
113 (\ s a -> s{_mnCreatorRole = a})
156
114
157−-- | The order_id that a note is attached to. (readonly)
158−mnOrderId :: Lens' MarketplaceNote (Maybe Text)
159−mnOrderId
160− = lens _mnOrderId (\ s a -> s{_mnOrderId = a})
161−
162−-- | If the note is associated with an order revision number, then store that
163−-- here. (readonly, except on create)
164−mnOrderRevisionNumber :: Lens' MarketplaceNote (Maybe Int64)
165−mnOrderRevisionNumber
166− = lens _mnOrderRevisionNumber
167− (\ s a -> s{_mnOrderRevisionNumber = a})
168− . mapping _Coerce
169−
170instance FromJSON MarketplaceNote where
115instance FromJSON MarketplaceNote where
171 parseJSON
116 parseJSON
172 = withObject "MarketplaceNote"
117 = withObject "MarketplaceNote"
@@ -175,11 +120,11 @@ instance FromJSON MarketplaceNote where
175 (o .:? "note") <*>
120 (o .:? "note") <*>
176 (o .:? "kind" .!= "adexchangebuyer#marketplaceNote")
121 (o .:? "kind" .!= "adexchangebuyer#marketplaceNote")
177 <*> (o .:? "timestampMs")
122 <*> (o .:? "timestampMs")
123+ <*> (o .:? "proposalId")
178 <*> (o .:? "dealId")
124 <*> (o .:? "dealId")
125+ <*> (o .:? "proposalRevisionNumber")
179 <*> (o .:? "noteId")
126 <*> (o .:? "noteId")
180− <*> (o .:? "creatorRole")
127+ <*> (o .:? "creatorRole"))
181− <*> (o .:? "orderId")
182− <*> (o .:? "orderRevisionNumber"))
183
128
184instance ToJSON MarketplaceNote where
129instance ToJSON MarketplaceNote where
185 toJSON MarketplaceNote{..}
130 toJSON MarketplaceNote{..}
@@ -187,12 +132,12 @@ instance ToJSON MarketplaceNote where
187 (catMaybes
132 (catMaybes
188 [("note" .=) <$> _mnNote, Just ("kind" .= _mnKind),
133 [("note" .=) <$> _mnNote, Just ("kind" .= _mnKind),
189 ("timestampMs" .=) <$> _mnTimestampMs,
134 ("timestampMs" .=) <$> _mnTimestampMs,
135+ ("proposalId" .=) <$> _mnProposalId,
190 ("dealId" .=) <$> _mnDealId,
136 ("dealId" .=) <$> _mnDealId,
137+ ("proposalRevisionNumber" .=) <$>
138+ _mnProposalRevisionNumber,
191 ("noteId" .=) <$> _mnNoteId,
139 ("noteId" .=) <$> _mnNoteId,
192− ("creatorRole" .=) <$> _mnCreatorRole,
140+ ("creatorRole" .=) <$> _mnCreatorRole])
193− ("orderId" .=) <$> _mnOrderId,
194− ("orderRevisionNumber" .=) <$>
195− _mnOrderRevisionNumber])
196
141
197-- | If nativeAd is set, HTMLSnippet and videoURL should not be set.
142-- | If nativeAd is set, HTMLSnippet and videoURL should not be set.
198--
143--
@@ -378,7 +323,7 @@ editAllOrderDealsResponse =
378 { _eaodrDeals = Nothing
323 { _eaodrDeals = Nothing
379 }
324 }
380
325
381−-- | List of all deals in the order after edit.
326+-- | List of all deals in the proposal after edit.
382eaodrDeals :: Lens' EditAllOrderDealsResponse [MarketplaceDeal]
327eaodrDeals :: Lens' EditAllOrderDealsResponse [MarketplaceDeal]
383eaodrDeals
328eaodrDeals
384 = lens _eaodrDeals (\ s a -> s{_eaodrDeals = a}) .
329 = lens _eaodrDeals (\ s a -> s{_eaodrDeals = a}) .
@@ -544,403 +489,42 @@ instance ToJSON
544 ("auctionType" .=) <$> _csriciAuctionType,
489 ("auctionType" .=) <$> _csriciAuctionType,
545 ("geoCriteriaId" .=) <$> _csriciGeoCriteriaId])
490 ("geoCriteriaId" .=) <$> _csriciGeoCriteriaId])
546
491
547−--
548−-- /See:/ 'termsDTO' smart constructor.
549−data TermsDTO = TermsDTO
550− { _tdtoFinalizeAutomatically :: !(Maybe Bool)
551− , _tdtoBuyerBillingType :: !(Maybe Text)
552− , _tdtoTargetingAllAdSlots :: !(Maybe Bool)
553− , _tdtoURLs :: !(Maybe [Text])
554− , _tdtoEndDate :: !(Maybe DateTime)
555− , _tdtoCpm :: !(Maybe MoneyDTO)
556− , _tdtoEstimatedSpend :: !(Maybe MoneyDTO)
557− , _tdtoAdvertisers :: !(Maybe [AdvertiserDTO])
558− , _tdtoEstimatedImpressionsPerDay :: !(Maybe (Textual Int64))
559− , _tdtoMonetizerType :: !(Maybe Text)
560− , _tdtoAudienceSegmentDescription :: !(Maybe Text)
561− , _tdtoCreativeReviewPolicy :: !(Maybe Text)
562− , _tdtoMinimumTrueLooks :: !(Maybe (Textual Int64))
563− , _tdtoStartDate :: !(Maybe DateTime)
564− , _tdtoCreativeBlockingLevel :: !(Maybe Text)
565− , _tdtoSemiTransparent :: !(Maybe Bool)
566− , _tdtoAudienceSegment :: !(Maybe AudienceSegment)
567− , _tdtoDealPremium :: !(Maybe MoneyDTO)
568− , _tdtoIsReservation :: !(Maybe Bool)
569− , _tdtoAdSlots :: !(Maybe [AdSlotDTO])
570− , _tdtoTermsAttributes :: !(Maybe [Text])
571− , _tdtoInventorySegmentTargeting :: !(Maybe InventorySegmentTargeting)
572− , _tdtoDescriptiveName :: !(Maybe Text)
573− , _tdtoMinimumSpendMicros :: !(Maybe (Textual Int64))
574− , _tdtoTargetByDealId :: !(Maybe Bool)
575− , _tdtoBillingTerms :: !(Maybe Text)
576− , _tdtoDescription :: !(Maybe Text)
577− } deriving (Eq,Show,Data,Typeable,Generic)
578−
579−-- | Creates a value of 'TermsDTO' with the minimum fields required to make a request.
580−--
581−-- Use one of the following lenses to modify other fields as desired:
582−--
583−-- * 'tdtoFinalizeAutomatically'
584−--
585−-- * 'tdtoBuyerBillingType'
586−--
587−-- * 'tdtoTargetingAllAdSlots'
588−--
589−-- * 'tdtoURLs'
590−--
591−-- * 'tdtoEndDate'
592−--
593−-- * 'tdtoCpm'
594−--
595−-- * 'tdtoEstimatedSpend'
596−--
597−-- * 'tdtoAdvertisers'
598−--
599−-- * 'tdtoEstimatedImpressionsPerDay'
600−--
601−-- * 'tdtoMonetizerType'
602−--
603−-- * 'tdtoAudienceSegmentDescription'
604−--
605−-- * 'tdtoCreativeReviewPolicy'
606−--
607−-- * 'tdtoMinimumTrueLooks'
608−--
609−-- * 'tdtoStartDate'
610−--
611−-- * 'tdtoCreativeBlockingLevel'
612−--
613−-- * 'tdtoSemiTransparent'
614−--
615−-- * 'tdtoAudienceSegment'
616−--
617−-- * 'tdtoDealPremium'
618−--
619−-- * 'tdtoIsReservation'
620−--
621−-- * 'tdtoAdSlots'
622−--
623−-- * 'tdtoTermsAttributes'
624−--
625−-- * 'tdtoInventorySegmentTargeting'
626−--
627−-- * 'tdtoDescriptiveName'
628−--
629−-- * 'tdtoMinimumSpendMicros'
630−--
631−-- * 'tdtoTargetByDealId'
632−--
633−-- * 'tdtoBillingTerms'
634−--
635−-- * 'tdtoDescription'
636−termsDTO
637− :: TermsDTO
638−termsDTO =
639− TermsDTO
640− { _tdtoFinalizeAutomatically = Nothing
641− , _tdtoBuyerBillingType = Nothing
642− , _tdtoTargetingAllAdSlots = Nothing
643− , _tdtoURLs = Nothing
644− , _tdtoEndDate = Nothing
645− , _tdtoCpm = Nothing
646− , _tdtoEstimatedSpend = Nothing
647− , _tdtoAdvertisers = Nothing
648− , _tdtoEstimatedImpressionsPerDay = Nothing
649− , _tdtoMonetizerType = Nothing
650− , _tdtoAudienceSegmentDescription = Nothing
651− , _tdtoCreativeReviewPolicy = Nothing
652− , _tdtoMinimumTrueLooks = Nothing
653− , _tdtoStartDate = Nothing
654− , _tdtoCreativeBlockingLevel = Nothing
655− , _tdtoSemiTransparent = Nothing
656− , _tdtoAudienceSegment = Nothing
657− , _tdtoDealPremium = Nothing
658− , _tdtoIsReservation = Nothing
659− , _tdtoAdSlots = Nothing
660− , _tdtoTermsAttributes = Nothing
661− , _tdtoInventorySegmentTargeting = Nothing
662− , _tdtoDescriptiveName = Nothing
663− , _tdtoMinimumSpendMicros = Nothing
664− , _tdtoTargetByDealId = Nothing
665− , _tdtoBillingTerms = Nothing
666− , _tdtoDescription = Nothing
667− }
668−
669−-- | If true, the offer will finalize automatically when accepted.
670−tdtoFinalizeAutomatically :: Lens' TermsDTO (Maybe Bool)
671−tdtoFinalizeAutomatically
672− = lens _tdtoFinalizeAutomatically
673− (\ s a -> s{_tdtoFinalizeAutomatically = a})
674−
675−-- | The buyer billing type.
676−tdtoBuyerBillingType :: Lens' TermsDTO (Maybe Text)
677−tdtoBuyerBillingType
678− = lens _tdtoBuyerBillingType
679− (\ s a -> s{_tdtoBuyerBillingType = a})
680−
681−-- | If true, the offer targets all ad slots.
682−tdtoTargetingAllAdSlots :: Lens' TermsDTO (Maybe Bool)
683−tdtoTargetingAllAdSlots
684− = lens _tdtoTargetingAllAdSlots
685− (\ s a -> s{_tdtoTargetingAllAdSlots = a})
686−
687−-- | The urls applicable to the offer.
688−tdtoURLs :: Lens' TermsDTO [Text]
689−tdtoURLs
690− = lens _tdtoURLs (\ s a -> s{_tdtoURLs = a}) .
691− _Default
692− . _Coerce
693−
694−-- | The end date for the offer.
695−tdtoEndDate :: Lens' TermsDTO (Maybe DateTime)
696−tdtoEndDate
697− = lens _tdtoEndDate (\ s a -> s{_tdtoEndDate = a})
698−
699−-- | The cpm terms.
700−tdtoCpm :: Lens' TermsDTO (Maybe MoneyDTO)
701−tdtoCpm = lens _tdtoCpm (\ s a -> s{_tdtoCpm = a})
702−
703−-- | The estimated spend for the offer.
704−tdtoEstimatedSpend :: Lens' TermsDTO (Maybe MoneyDTO)
705−tdtoEstimatedSpend
706− = lens _tdtoEstimatedSpend
707− (\ s a -> s{_tdtoEstimatedSpend = a})
708−
709−-- | A list of advertisers for this offer.
710−tdtoAdvertisers :: Lens' TermsDTO [AdvertiserDTO]
711−tdtoAdvertisers
712− = lens _tdtoAdvertisers
713− (\ s a -> s{_tdtoAdvertisers = a})
714− . _Default
715− . _Coerce
716−
717−-- | The estimated daily impressions for the offer.
718−tdtoEstimatedImpressionsPerDay :: Lens' TermsDTO (Maybe Int64)
719−tdtoEstimatedImpressionsPerDay
720− = lens _tdtoEstimatedImpressionsPerDay
721− (\ s a -> s{_tdtoEstimatedImpressionsPerDay = a})
722− . mapping _Coerce
723−
724−-- | The monetizer type.
725−tdtoMonetizerType :: Lens' TermsDTO (Maybe Text)
726−tdtoMonetizerType
727− = lens _tdtoMonetizerType
728− (\ s a -> s{_tdtoMonetizerType = a})
729−
730−-- | A description of the audience segment for the offer.
731−tdtoAudienceSegmentDescription :: Lens' TermsDTO (Maybe Text)
732−tdtoAudienceSegmentDescription
733− = lens _tdtoAudienceSegmentDescription
734− (\ s a -> s{_tdtoAudienceSegmentDescription = a})
735−
736−-- | Whether to use publisher review policy or AdX review policy.
737−tdtoCreativeReviewPolicy :: Lens' TermsDTO (Maybe Text)
738−tdtoCreativeReviewPolicy
739− = lens _tdtoCreativeReviewPolicy
740− (\ s a -> s{_tdtoCreativeReviewPolicy = a})
741−
742−-- | The minimum true looks for the offer.
743−tdtoMinimumTrueLooks :: Lens' TermsDTO (Maybe Int64)
744−tdtoMinimumTrueLooks
745− = lens _tdtoMinimumTrueLooks
746− (\ s a -> s{_tdtoMinimumTrueLooks = a})
747− . mapping _Coerce
748−
749−-- | The start date for the offer.
750−tdtoStartDate :: Lens' TermsDTO (Maybe DateTime)
751−tdtoStartDate
752− = lens _tdtoStartDate
753− (\ s a -> s{_tdtoStartDate = a})
754−
755−-- | Whether to use or ignore publisher blocking rules.
756−tdtoCreativeBlockingLevel :: Lens' TermsDTO (Maybe Text)
757−tdtoCreativeBlockingLevel
758− = lens _tdtoCreativeBlockingLevel
759− (\ s a -> s{_tdtoCreativeBlockingLevel = a})
760−
761−-- | Whether this offer is semi-transparent.
762−tdtoSemiTransparent :: Lens' TermsDTO (Maybe Bool)
763−tdtoSemiTransparent
764− = lens _tdtoSemiTransparent
765− (\ s a -> s{_tdtoSemiTransparent = a})
766−
767−-- | The audience segment for the offer.
768−tdtoAudienceSegment :: Lens' TermsDTO (Maybe AudienceSegment)
769−tdtoAudienceSegment
770− = lens _tdtoAudienceSegment
771− (\ s a -> s{_tdtoAudienceSegment = a})
772−
773−-- | The premium terms.
774−tdtoDealPremium :: Lens' TermsDTO (Maybe MoneyDTO)
775−tdtoDealPremium
776− = lens _tdtoDealPremium
777− (\ s a -> s{_tdtoDealPremium = a})
778−
779−-- | Whether the offer is a reservation.
780−tdtoIsReservation :: Lens' TermsDTO (Maybe Bool)
781−tdtoIsReservation
782− = lens _tdtoIsReservation
783− (\ s a -> s{_tdtoIsReservation = a})
784−
785−-- | The particular ad slots targeted by the offer.
786−tdtoAdSlots :: Lens' TermsDTO [AdSlotDTO]
787−tdtoAdSlots
788− = lens _tdtoAdSlots (\ s a -> s{_tdtoAdSlots = a}) .
789− _Default
790− . _Coerce
791−
792−-- | A list of terms attributes.
793−tdtoTermsAttributes :: Lens' TermsDTO [Text]
794−tdtoTermsAttributes
795− = lens _tdtoTermsAttributes
796− (\ s a -> s{_tdtoTermsAttributes = a})
797− . _Default
798− . _Coerce
799−
800−-- | The inventory segment targeting for the offer.
801−tdtoInventorySegmentTargeting :: Lens' TermsDTO (Maybe InventorySegmentTargeting)
802−tdtoInventorySegmentTargeting
803− = lens _tdtoInventorySegmentTargeting
804− (\ s a -> s{_tdtoInventorySegmentTargeting = a})
805−
806−-- | A descriptive name for these terms.
807−tdtoDescriptiveName :: Lens' TermsDTO (Maybe Text)
808−tdtoDescriptiveName
809− = lens _tdtoDescriptiveName
810− (\ s a -> s{_tdtoDescriptiveName = a})
811−
812−-- | The minimum spend for the offer.
813−tdtoMinimumSpendMicros :: Lens' TermsDTO (Maybe Int64)
814−tdtoMinimumSpendMicros
815− = lens _tdtoMinimumSpendMicros
816− (\ s a -> s{_tdtoMinimumSpendMicros = a})
817− . mapping _Coerce
818−
819−-- | Whether to target by deal id.
820−tdtoTargetByDealId :: Lens' TermsDTO (Maybe Bool)
821−tdtoTargetByDealId
822− = lens _tdtoTargetByDealId
823− (\ s a -> s{_tdtoTargetByDealId = a})
824−
825−-- | The billing terms.
826−tdtoBillingTerms :: Lens' TermsDTO (Maybe Text)
827−tdtoBillingTerms
828− = lens _tdtoBillingTerms
829− (\ s a -> s{_tdtoBillingTerms = a})
830−
831−-- | A description for these terms.
832−tdtoDescription :: Lens' TermsDTO (Maybe Text)
833−tdtoDescription
834− = lens _tdtoDescription
835− (\ s a -> s{_tdtoDescription = a})
836−
837−instance FromJSON TermsDTO where
838− parseJSON
839− = withObject "TermsDTO"
840− (\ o ->
841− TermsDTO <$>
842− (o .:? "finalizeAutomatically") <*>
843− (o .:? "buyerBillingType")
844− <*> (o .:? "targetingAllAdSlots")
845− <*> (o .:? "urls" .!= mempty)
846− <*> (o .:? "endDate")
847− <*> (o .:? "cpm")
848− <*> (o .:? "estimatedSpend")
849− <*> (o .:? "advertisers" .!= mempty)
850− <*> (o .:? "estimatedImpressionsPerDay")
851− <*> (o .:? "monetizerType")
852− <*> (o .:? "audienceSegmentDescription")
853− <*> (o .:? "creativeReviewPolicy")
854− <*> (o .:? "minimumTrueLooks")
855− <*> (o .:? "startDate")
856− <*> (o .:? "creativeBlockingLevel")
857− <*> (o .:? "semiTransparent")
858− <*> (o .:? "audienceSegment")
859− <*> (o .:? "dealPremium")
860− <*> (o .:? "isReservation")
861− <*> (o .:? "adSlots" .!= mempty)
862− <*> (o .:? "termsAttributes" .!= mempty)
863− <*> (o .:? "inventorySegmentTargeting")
864− <*> (o .:? "descriptiveName")
865− <*> (o .:? "minimumSpendMicros")
866− <*> (o .:? "targetByDealId")
867− <*> (o .:? "billingTerms")
868− <*> (o .:? "description"))
869−
870−instance ToJSON TermsDTO where
871− toJSON TermsDTO{..}
872− = object
873− (catMaybes
874− [("finalizeAutomatically" .=) <$>
875− _tdtoFinalizeAutomatically,
876− ("buyerBillingType" .=) <$> _tdtoBuyerBillingType,
877− ("targetingAllAdSlots" .=) <$>
878− _tdtoTargetingAllAdSlots,
879− ("urls" .=) <$> _tdtoURLs,
880− ("endDate" .=) <$> _tdtoEndDate,
881− ("cpm" .=) <$> _tdtoCpm,
882− ("estimatedSpend" .=) <$> _tdtoEstimatedSpend,
883− ("advertisers" .=) <$> _tdtoAdvertisers,
884− ("estimatedImpressionsPerDay" .=) <$>
885− _tdtoEstimatedImpressionsPerDay,
886− ("monetizerType" .=) <$> _tdtoMonetizerType,
887− ("audienceSegmentDescription" .=) <$>
888− _tdtoAudienceSegmentDescription,
889− ("creativeReviewPolicy" .=) <$>
890− _tdtoCreativeReviewPolicy,
891− ("minimumTrueLooks" .=) <$> _tdtoMinimumTrueLooks,
892− ("startDate" .=) <$> _tdtoStartDate,
893− ("creativeBlockingLevel" .=) <$>
894− _tdtoCreativeBlockingLevel,
895− ("semiTransparent" .=) <$> _tdtoSemiTransparent,
896− ("audienceSegment" .=) <$> _tdtoAudienceSegment,
897− ("dealPremium" .=) <$> _tdtoDealPremium,
898− ("isReservation" .=) <$> _tdtoIsReservation,
899− ("adSlots" .=) <$> _tdtoAdSlots,
900− ("termsAttributes" .=) <$> _tdtoTermsAttributes,
901− ("inventorySegmentTargeting" .=) <$>
902− _tdtoInventorySegmentTargeting,
903− ("descriptiveName" .=) <$> _tdtoDescriptiveName,
904− ("minimumSpendMicros" .=) <$>
905− _tdtoMinimumSpendMicros,
906− ("targetByDealId" .=) <$> _tdtoTargetByDealId,
907− ("billingTerms" .=) <$> _tdtoBillingTerms,
908− ("description" .=) <$> _tdtoDescription])
909−
910--
492--
911-- /See:/ 'createOrdersResponse' smart constructor.
493-- /See:/ 'createOrdersResponse' smart constructor.
912newtype CreateOrdersResponse = CreateOrdersResponse
494newtype CreateOrdersResponse = CreateOrdersResponse
913− { _corOrders :: Maybe [MarketplaceOrder]
495+ { _corProposals :: Maybe [Proposal]
914 } deriving (Eq,Show,Data,Typeable,Generic)
496 } deriving (Eq,Show,Data,Typeable,Generic)
915
497
916-- | Creates a value of 'CreateOrdersResponse' with the minimum fields required to make a request.
498-- | Creates a value of 'CreateOrdersResponse' with the minimum fields required to make a request.
917--
499--
918-- Use one of the following lenses to modify other fields as desired:
500-- Use one of the following lenses to modify other fields as desired:
919--
501--
920−-- * 'corOrders'
502+-- * 'corProposals'
921createOrdersResponse
503createOrdersResponse
922 :: CreateOrdersResponse
504 :: CreateOrdersResponse
923createOrdersResponse =
505createOrdersResponse =
924 CreateOrdersResponse
506 CreateOrdersResponse
925− { _corOrders = Nothing
507+ { _corProposals = Nothing
926 }
508 }
927
509
928−-- | The list of orders successfully created.
510+-- | The list of proposals successfully created.
929−corOrders :: Lens' CreateOrdersResponse [MarketplaceOrder]
511+corProposals :: Lens' CreateOrdersResponse [Proposal]
930−corOrders
512+corProposals
931− = lens _corOrders (\ s a -> s{_corOrders = a}) .
513+ = lens _corProposals (\ s a -> s{_corProposals = a})
932− _Default
514+ . _Default
933 . _Coerce
515 . _Coerce
934
516
935instance FromJSON CreateOrdersResponse where
517instance FromJSON CreateOrdersResponse where
936 parseJSON
518 parseJSON
937 = withObject "CreateOrdersResponse"
519 = withObject "CreateOrdersResponse"
938 (\ o ->
520 (\ o ->
939− CreateOrdersResponse <$> (o .:? "orders" .!= mempty))
521+ CreateOrdersResponse <$>
522+ (o .:? "proposals" .!= mempty))
940
523
941instance ToJSON CreateOrdersResponse where
524instance ToJSON CreateOrdersResponse where
942 toJSON CreateOrdersResponse{..}
525 toJSON CreateOrdersResponse{..}
943− = object (catMaybes [("orders" .=) <$> _corOrders])
526+ = object
527+ (catMaybes [("proposals" .=) <$> _corProposals])
944
528
945--
529--
946-- /See:/ 'accountBidderLocationItem' smart constructor.
530-- /See:/ 'accountBidderLocationItem' smart constructor.
@@ -1098,8 +682,8 @@ bCurrencyCode
1098bKind :: Lens' Budget Text
682bKind :: Lens' Budget Text
1099bKind = lens _bKind (\ s a -> s{_bKind = a})
683bKind = lens _bKind (\ s a -> s{_bKind = a})
1100
684
685+-- | The daily budget amount in unit amount of the account currency to apply
1101−-- | The budget amount to apply for the billingId provided. This is required
686+-- for the billingId provided. This is required for update requests.
1102−-- for update requests.
1103bBudgetAmount :: Lens' Budget (Maybe Int64)
687bBudgetAmount :: Lens' Budget (Maybe Int64)
1104bBudgetAmount
688bBudgetAmount
1105 = lens _bBudgetAmount
689 = lens _bBudgetAmount
@@ -1180,47 +764,6 @@ instance ToJSON AddOrderNotesRequest where
1180 toJSON AddOrderNotesRequest{..}
764 toJSON AddOrderNotesRequest{..}
1181 = object (catMaybes [("notes" .=) <$> _aonrNotes])
765 = object (catMaybes [("notes" .=) <$> _aonrNotes])
1182
766
1183−--
1184−-- /See:/ 'getFinalizedNegotiationByExternalDealIdRequest' smart constructor.
1185−newtype GetFinalizedNegotiationByExternalDealIdRequest = GetFinalizedNegotiationByExternalDealIdRequest
1186− { _gfnbedirIncludePrivateAuctions :: Maybe Bool
1187− } deriving (Eq,Show,Data,Typeable,Generic)
1188−
1189−-- | Creates a value of 'GetFinalizedNegotiationByExternalDealIdRequest' with the minimum fields required to make a request.
1190−--
1191−-- Use one of the following lenses to modify other fields as desired:
1192−--
1193−-- * 'gfnbedirIncludePrivateAuctions'
1194−getFinalizedNegotiationByExternalDealIdRequest
1195− :: GetFinalizedNegotiationByExternalDealIdRequest
1196−getFinalizedNegotiationByExternalDealIdRequest =
1197− GetFinalizedNegotiationByExternalDealIdRequest
1198− { _gfnbedirIncludePrivateAuctions = Nothing
1199− }
1200−
1201−gfnbedirIncludePrivateAuctions :: Lens' GetFinalizedNegotiationByExternalDealIdRequest (Maybe Bool)
1202−gfnbedirIncludePrivateAuctions
1203− = lens _gfnbedirIncludePrivateAuctions
1204− (\ s a -> s{_gfnbedirIncludePrivateAuctions = a})
1205−
1206−instance FromJSON
1207− GetFinalizedNegotiationByExternalDealIdRequest where
1208− parseJSON
1209− = withObject
1210− "GetFinalizedNegotiationByExternalDealIdRequest"
1211− (\ o ->
1212− GetFinalizedNegotiationByExternalDealIdRequest <$>
1213− (o .:? "includePrivateAuctions"))
1214−
1215−instance ToJSON
1216− GetFinalizedNegotiationByExternalDealIdRequest where
1217− toJSON
1218− GetFinalizedNegotiationByExternalDealIdRequest{..}
1219− = object
1220− (catMaybes
1221− [("includePrivateAuctions" .=) <$>
1222− _gfnbedirIncludePrivateAuctions])
1223−
1224--
767--
1225-- /See:/ 'deliveryControlFrequencyCap' smart constructor.
768-- /See:/ 'deliveryControlFrequencyCap' smart constructor.
1226data DeliveryControlFrequencyCap = DeliveryControlFrequencyCap
769data DeliveryControlFrequencyCap = DeliveryControlFrequencyCap
@@ -1280,131 +823,6 @@ instance ToJSON DeliveryControlFrequencyCap where
1280 ("numTimeUnits" .=) <$> _dcfcNumTimeUnits,
823 ("numTimeUnits" .=) <$> _dcfcNumTimeUnits,
1281 ("timeUnitType" .=) <$> _dcfcTimeUnitType])
824 ("timeUnitType" .=) <$> _dcfcTimeUnitType])
1282
825
1283−--
1284−-- /See:/ 'dealPartyDTO' smart constructor.
1285−data DealPartyDTO = DealPartyDTO
1286− { _dpdtoBuyerSellerRole :: !(Maybe Text)
1287− , _dpdtoCustomerId :: !(Maybe (Textual Int32))
1288− , _dpdtoName :: !(Maybe Text)
1289− , _dpdtoWebProperty :: !(Maybe WebPropertyDTO)
1290− , _dpdtoBuyer :: !(Maybe BuyerDTO)
1291− } deriving (Eq,Show,Data,Typeable,Generic)
1292−
1293−-- | Creates a value of 'DealPartyDTO' with the minimum fields required to make a request.
1294−--
1295−-- Use one of the following lenses to modify other fields as desired:
1296−--
1297−-- * 'dpdtoBuyerSellerRole'
1298−--
1299−-- * 'dpdtoCustomerId'
1300−--
1301−-- * 'dpdtoName'
1302−--
1303−-- * 'dpdtoWebProperty'
1304−--
1305−-- * 'dpdtoBuyer'
1306−dealPartyDTO
1307− :: DealPartyDTO
1308−dealPartyDTO =
1309− DealPartyDTO
1310− { _dpdtoBuyerSellerRole = Nothing
1311− , _dpdtoCustomerId = Nothing
1312− , _dpdtoName = Nothing
1313− , _dpdtoWebProperty = Nothing
1314− , _dpdtoBuyer = Nothing
1315− }
1316−
1317−dpdtoBuyerSellerRole :: Lens' DealPartyDTO (Maybe Text)
1318−dpdtoBuyerSellerRole
1319− = lens _dpdtoBuyerSellerRole
1320− (\ s a -> s{_dpdtoBuyerSellerRole = a})
1321−
1322−dpdtoCustomerId :: Lens' DealPartyDTO (Maybe Int32)
1323−dpdtoCustomerId
1324− = lens _dpdtoCustomerId
1325− (\ s a -> s{_dpdtoCustomerId = a})
1326− . mapping _Coerce
1327−
1328−dpdtoName :: Lens' DealPartyDTO (Maybe Text)
1329−dpdtoName
1330− = lens _dpdtoName (\ s a -> s{_dpdtoName = a})
1331−
1332−dpdtoWebProperty :: Lens' DealPartyDTO (Maybe WebPropertyDTO)
1333−dpdtoWebProperty
1334− = lens _dpdtoWebProperty
1335− (\ s a -> s{_dpdtoWebProperty = a})
1336−
1337−dpdtoBuyer :: Lens' DealPartyDTO (Maybe BuyerDTO)
1338−dpdtoBuyer
1339− = lens _dpdtoBuyer (\ s a -> s{_dpdtoBuyer = a})
1340−
1341−instance FromJSON DealPartyDTO where
1342− parseJSON
1343− = withObject "DealPartyDTO"
1344− (\ o ->
1345− DealPartyDTO <$>
1346− (o .:? "buyerSellerRole") <*> (o .:? "customerId")
1347− <*> (o .:? "name")
1348− <*> (o .:? "webProperty")
1349− <*> (o .:? "buyer"))
1350−
1351−instance ToJSON DealPartyDTO where
1352− toJSON DealPartyDTO{..}
1353− = object
1354− (catMaybes
1355− [("buyerSellerRole" .=) <$> _dpdtoBuyerSellerRole,
1356− ("customerId" .=) <$> _dpdtoCustomerId,
1357− ("name" .=) <$> _dpdtoName,
1358− ("webProperty" .=) <$> _dpdtoWebProperty,
1359− ("buyer" .=) <$> _dpdtoBuyer])
1360−
1361−--
1362−-- /See:/ 'getNegotiationsResponse' smart constructor.
1363−data GetNegotiationsResponse = GetNegotiationsResponse
1364− { _gnrKind :: !Text
1365− , _gnrNegotiations :: !(Maybe [NegotiationDTO])
1366− } deriving (Eq,Show,Data,Typeable,Generic)
1367−
1368−-- | Creates a value of 'GetNegotiationsResponse' with the minimum fields required to make a request.
1369−--
1370−-- Use one of the following lenses to modify other fields as desired:
1371−--
1372−-- * 'gnrKind'
1373−--
1374−-- * 'gnrNegotiations'
1375−getNegotiationsResponse
1376− :: GetNegotiationsResponse
1377−getNegotiationsResponse =
1378− GetNegotiationsResponse
1379− { _gnrKind = "adexchangebuyer#negotiationsList"
1380− , _gnrNegotiations = Nothing
1381− }
1382−
1383−gnrKind :: Lens' GetNegotiationsResponse Text
1384−gnrKind = lens _gnrKind (\ s a -> s{_gnrKind = a})
1385−
1386−gnrNegotiations :: Lens' GetNegotiationsResponse [NegotiationDTO]
1387−gnrNegotiations
1388− = lens _gnrNegotiations
1389− (\ s a -> s{_gnrNegotiations = a})
1390− . _Default
1391− . _Coerce
1392−
1393−instance FromJSON GetNegotiationsResponse where
1394− parseJSON
1395− = withObject "GetNegotiationsResponse"
1396− (\ o ->
1397− GetNegotiationsResponse <$>
1398− (o .:? "kind" .!= "adexchangebuyer#negotiationsList")
1399− <*> (o .:? "negotiations" .!= mempty))
1400−
1401−instance ToJSON GetNegotiationsResponse where
1402− toJSON GetNegotiationsResponse{..}
1403− = object
1404− (catMaybes
1405− [Just ("kind" .= _gnrKind),
1406− ("negotiations" .=) <$> _gnrNegotiations])
1407−
1408--
826--
1409-- /See:/ 'marketplaceDealParty' smart constructor.
827-- /See:/ 'marketplaceDealParty' smart constructor.
1410data MarketplaceDealParty = MarketplaceDealParty
828data MarketplaceDealParty = MarketplaceDealParty
@@ -1487,84 +905,41 @@ instance ToJSON GetOrderNotesResponse where
1487 toJSON GetOrderNotesResponse{..}
905 toJSON GetOrderNotesResponse{..}
1488 = object (catMaybes [("notes" .=) <$> _gonrNotes])
906 = object (catMaybes [("notes" .=) <$> _gonrNotes])
1489
907
1490−--
1491−-- /See:/ 'ruleKeyValuePair' smart constructor.
1492−data RuleKeyValuePair = RuleKeyValuePair
1493− { _rkvpKeyName :: !(Maybe Text)
1494− , _rkvpValue :: !(Maybe Text)
1495− } deriving (Eq,Show,Data,Typeable,Generic)
1496−
1497−-- | Creates a value of 'RuleKeyValuePair' with the minimum fields required to make a request.
1498−--
1499−-- Use one of the following lenses to modify other fields as desired:
1500−--
1501−-- * 'rkvpKeyName'
1502−--
1503−-- * 'rkvpValue'
1504−ruleKeyValuePair
1505− :: RuleKeyValuePair
1506−ruleKeyValuePair =
1507− RuleKeyValuePair
1508− { _rkvpKeyName = Nothing
1509− , _rkvpValue = Nothing
1510− }
1511−
1512−rkvpKeyName :: Lens' RuleKeyValuePair (Maybe Text)
1513−rkvpKeyName
1514− = lens _rkvpKeyName (\ s a -> s{_rkvpKeyName = a})
1515−
1516−rkvpValue :: Lens' RuleKeyValuePair (Maybe Text)
1517−rkvpValue
1518− = lens _rkvpValue (\ s a -> s{_rkvpValue = a})
1519−
1520−instance FromJSON RuleKeyValuePair where
1521− parseJSON
1522− = withObject "RuleKeyValuePair"
1523− (\ o ->
1524− RuleKeyValuePair <$>
1525− (o .:? "keyName") <*> (o .:? "value"))
1526−
1527−instance ToJSON RuleKeyValuePair where
1528− toJSON RuleKeyValuePair{..}
1529− = object
1530− (catMaybes
1531− [("keyName" .=) <$> _rkvpKeyName,
1532− ("value" .=) <$> _rkvpValue])
1533−
1534--
908--
1535-- /See:/ 'getOrdersResponse' smart constructor.
909-- /See:/ 'getOrdersResponse' smart constructor.
1536newtype GetOrdersResponse = GetOrdersResponse
910newtype GetOrdersResponse = GetOrdersResponse
1537− { _gorOrders :: Maybe [MarketplaceOrder]
911+ { _gorProposals :: Maybe [Proposal]
1538 } deriving (Eq,Show,Data,Typeable,Generic)
912 } deriving (Eq,Show,Data,Typeable,Generic)
1539
913
1540-- | Creates a value of 'GetOrdersResponse' with the minimum fields required to make a request.
914-- | Creates a value of 'GetOrdersResponse' with the minimum fields required to make a request.
1541--
915--
1542-- Use one of the following lenses to modify other fields as desired:
916-- Use one of the following lenses to modify other fields as desired:
1543--
917--
1544−-- * 'gorOrders'
918+-- * 'gorProposals'
1545getOrdersResponse
919getOrdersResponse
1546 :: GetOrdersResponse
920 :: GetOrdersResponse
1547getOrdersResponse =
921getOrdersResponse =
1548 GetOrdersResponse
922 GetOrdersResponse
1549− { _gorOrders = Nothing
923+ { _gorProposals = Nothing
1550 }
924 }
1551
925
1552−-- | The list of matching orders.
926+-- | The list of matching proposals.
1553−gorOrders :: Lens' GetOrdersResponse [MarketplaceOrder]
927+gorProposals :: Lens' GetOrdersResponse [Proposal]
1554−gorOrders
928+gorProposals
1555− = lens _gorOrders (\ s a -> s{_gorOrders = a}) .
929+ = lens _gorProposals (\ s a -> s{_gorProposals = a})
1556− _Default
930+ . _Default
1557 . _Coerce
931 . _Coerce
1558
932
1559instance FromJSON GetOrdersResponse where
933instance FromJSON GetOrdersResponse where
1560 parseJSON
934 parseJSON
1561 = withObject "GetOrdersResponse"
935 = withObject "GetOrdersResponse"
1562 (\ o ->
936 (\ o ->
1563− GetOrdersResponse <$> (o .:? "orders" .!= mempty))
937+ GetOrdersResponse <$> (o .:? "proposals" .!= mempty))
1564
938
1565instance ToJSON GetOrdersResponse where
939instance ToJSON GetOrdersResponse where
1566 toJSON GetOrdersResponse{..}
940 toJSON GetOrdersResponse{..}
1567− = object (catMaybes [("orders" .=) <$> _gorOrders])
941+ = object
942+ (catMaybes [("proposals" .=) <$> _gorProposals])
1568
943
1569--
944--
1570-- /See:/ 'creativeServingRestrictionsItemDisApprovalReasonsItem' smart constructor.
945-- /See:/ 'creativeServingRestrictionsItemDisApprovalReasonsItem' smart constructor.
@@ -1675,95 +1050,51 @@ instance ToJSON AccountsList where
1675--
1050--
1676-- /See:/ 'createOrdersRequest' smart constructor.
1051-- /See:/ 'createOrdersRequest' smart constructor.
1677data CreateOrdersRequest = CreateOrdersRequest
1052data CreateOrdersRequest = CreateOrdersRequest
1053+ { _cProposals :: !(Maybe [Proposal])
1678− { _cWebPropertyCode :: !(Maybe Text)
1054+ , _cWebPropertyCode :: !(Maybe Text)
1679− , _cOrders :: !(Maybe [MarketplaceOrder])
1680 } deriving (Eq,Show,Data,Typeable,Generic)
1055 } deriving (Eq,Show,Data,Typeable,Generic)
1681
1056
1682-- | Creates a value of 'CreateOrdersRequest' with the minimum fields required to make a request.
1057-- | Creates a value of 'CreateOrdersRequest' with the minimum fields required to make a request.
1683--
1058--
1684-- Use one of the following lenses to modify other fields as desired:
1059-- Use one of the following lenses to modify other fields as desired:
1685--
1060--
1686−-- * 'cWebPropertyCode'
1061+-- * 'cProposals'
1687--
1062--
1688−-- * 'cOrders'
1063+-- * 'cWebPropertyCode'
1689createOrdersRequest
1064createOrdersRequest
1690 :: CreateOrdersRequest
1065 :: CreateOrdersRequest
1691createOrdersRequest =
1066createOrdersRequest =
1692 CreateOrdersRequest
1067 CreateOrdersRequest
1693− { _cWebPropertyCode = Nothing
1068+ { _cProposals = Nothing
1694− , _cOrders = Nothing
1069+ , _cWebPropertyCode = Nothing
1695 }
1070 }
1696
1071
1072+-- | The list of proposals to create.
1073+cProposals :: Lens' CreateOrdersRequest [Proposal]
1074+cProposals
1075+ = lens _cProposals (\ s a -> s{_cProposals = a}) .
1076+ _Default
1077+ . _Coerce
1078+
1697cWebPropertyCode :: Lens' CreateOrdersRequest (Maybe Text)
1079cWebPropertyCode :: Lens' CreateOrdersRequest (Maybe Text)
1698cWebPropertyCode
1080cWebPropertyCode
1699 = lens _cWebPropertyCode
1081 = lens _cWebPropertyCode
1700 (\ s a -> s{_cWebPropertyCode = a})
1082 (\ s a -> s{_cWebPropertyCode = a})
1701
1083
1702−-- | The list of orders to create.
1703−cOrders :: Lens' CreateOrdersRequest [MarketplaceOrder]
1704−cOrders
1705− = lens _cOrders (\ s a -> s{_cOrders = a}) . _Default
1706− . _Coerce
1707−
1708instance FromJSON CreateOrdersRequest where
1084instance FromJSON CreateOrdersRequest where
1709 parseJSON
1085 parseJSON
1710 = withObject "CreateOrdersRequest"
1086 = withObject "CreateOrdersRequest"
1711 (\ o ->
1087 (\ o ->
1712 CreateOrdersRequest <$>
1088 CreateOrdersRequest <$>
1713− (o .:? "webPropertyCode") <*>
1089+ (o .:? "proposals" .!= mempty) <*>
1714− (o .:? "orders" .!= mempty))
1090+ (o .:? "webPropertyCode"))
1715
1091
1716instance ToJSON CreateOrdersRequest where
1092instance ToJSON CreateOrdersRequest where
1717 toJSON CreateOrdersRequest{..}
1093 toJSON CreateOrdersRequest{..}
1718 = object
1094 = object
1719 (catMaybes
1095 (catMaybes
1096+ [("proposals" .=) <$> _cProposals,
1720− [("webPropertyCode" .=) <$> _cWebPropertyCode,
1097+ ("webPropertyCode" .=) <$> _cWebPropertyCode])
1721− ("orders" .=) <$> _cOrders])
1722−
1723−--
1724−-- /See:/ 'adSize' smart constructor.
1725−data AdSize = AdSize
1726− { _asHeight :: !(Maybe (Textual Int32))
1727− , _asWidth :: !(Maybe (Textual Int32))
1728− } deriving (Eq,Show,Data,Typeable,Generic)
1729−
1730−-- | Creates a value of 'AdSize' with the minimum fields required to make a request.
1731−--
1732−-- Use one of the following lenses to modify other fields as desired:
1733−--
1734−-- * 'asHeight'
1735−--
1736−-- * 'asWidth'
1737−adSize
1738− :: AdSize
1739−adSize =
1740− AdSize
1741− { _asHeight = Nothing
1742− , _asWidth = Nothing
1743− }
1744−
1745−asHeight :: Lens' AdSize (Maybe Int32)
1746−asHeight
1747− = lens _asHeight (\ s a -> s{_asHeight = a}) .
1748− mapping _Coerce
1749−
1750−asWidth :: Lens' AdSize (Maybe Int32)
1751−asWidth
1752− = lens _asWidth (\ s a -> s{_asWidth = a}) .
1753− mapping _Coerce
1754−
1755−instance FromJSON AdSize where
1756− parseJSON
1757− = withObject "AdSize"
1758− (\ o ->
1759− AdSize <$> (o .:? "height") <*> (o .:? "width"))
1760−
1761−instance ToJSON AdSize where
1762− toJSON AdSize{..}
1763− = object
1764− (catMaybes
1765− [("height" .=) <$> _asHeight,
1766− ("width" .=) <$> _asWidth])
1767
1098
1768--
1099--
1769-- /See:/ 'creativeCorrectionsItem' smart constructor.
1100-- /See:/ 'creativeCorrectionsItem' smart constructor.
@@ -1816,8 +1147,8 @@ instance ToJSON CreativeCorrectionsItem where
1816--
1147--
1817-- /See:/ 'addOrderDealsResponse' smart constructor.
1148-- /See:/ 'addOrderDealsResponse' smart constructor.
1818data AddOrderDealsResponse = AddOrderDealsResponse
1149data AddOrderDealsResponse = AddOrderDealsResponse
1819− { _aodrDeals :: !(Maybe [MarketplaceDeal])
1150+ { _aodrDeals :: !(Maybe [MarketplaceDeal])
1820− , _aodrOrderRevisionNumber :: !(Maybe (Textual Int64))
1151+ , _aodrProposalRevisionNumber :: !(Maybe (Textual Int64))
1821 } deriving (Eq,Show,Data,Typeable,Generic)
1152 } deriving (Eq,Show,Data,Typeable,Generic)
1822
1153
1823-- | Creates a value of 'AddOrderDealsResponse' with the minimum fields required to make a request.
1154-- | Creates a value of 'AddOrderDealsResponse' with the minimum fields required to make a request.
@@ -1826,27 +1157,27 @@ data AddOrderDealsResponse = AddOrderDealsResponse
1826--
1157--
1827-- * 'aodrDeals'
1158-- * 'aodrDeals'
1828--
1159--
1829−-- * 'aodrOrderRevisionNumber'
1160+-- * 'aodrProposalRevisionNumber'
1830addOrderDealsResponse
1161addOrderDealsResponse
1831 :: AddOrderDealsResponse
1162 :: AddOrderDealsResponse
1832addOrderDealsResponse =
1163addOrderDealsResponse =
1833 AddOrderDealsResponse
1164 AddOrderDealsResponse
1834 { _aodrDeals = Nothing
1165 { _aodrDeals = Nothing
1835− , _aodrOrderRevisionNumber = Nothing
1166+ , _aodrProposalRevisionNumber = Nothing
1836 }
1167 }
1837
1168
1838−-- | List of deals added (in the same order as passed in the request)
1169+-- | List of deals added (in the same proposal as passed in the request)
1839aodrDeals :: Lens' AddOrderDealsResponse [MarketplaceDeal]
1170aodrDeals :: Lens' AddOrderDealsResponse [MarketplaceDeal]
1840aodrDeals
1171aodrDeals
1841 = lens _aodrDeals (\ s a -> s{_aodrDeals = a}) .
1172 = lens _aodrDeals (\ s a -> s{_aodrDeals = a}) .
1842 _Default
1173 _Default
1843 . _Coerce
1174 . _Coerce
1844
1175
1845−-- | The updated revision number for the order.
1176+-- | The updated revision number for the proposal.
1846−aodrOrderRevisionNumber :: Lens' AddOrderDealsResponse (Maybe Int64)
1177+aodrProposalRevisionNumber :: Lens' AddOrderDealsResponse (Maybe Int64)
1847−aodrOrderRevisionNumber
1178+aodrProposalRevisionNumber
1848− = lens _aodrOrderRevisionNumber
1179+ = lens _aodrProposalRevisionNumber
1849− (\ s a -> s{_aodrOrderRevisionNumber = a})
1180+ (\ s a -> s{_aodrProposalRevisionNumber = a})
1850 . mapping _Coerce
1181 . mapping _Coerce
1851
1182
1852instance FromJSON AddOrderDealsResponse where
1183instance FromJSON AddOrderDealsResponse where
@@ -1855,27 +1186,30 @@ instance FromJSON AddOrderDealsResponse where
1855 (\ o ->
1186 (\ o ->
1856 AddOrderDealsResponse <$>
1187 AddOrderDealsResponse <$>
1857 (o .:? "deals" .!= mempty) <*>
1188 (o .:? "deals" .!= mempty) <*>
1858− (o .:? "orderRevisionNumber"))
1189+ (o .:? "proposalRevisionNumber"))
1859
1190
1860instance ToJSON AddOrderDealsResponse where
1191instance ToJSON AddOrderDealsResponse where
1861 toJSON AddOrderDealsResponse{..}
1192 toJSON AddOrderDealsResponse{..}
1862 = object
1193 = object
1863 (catMaybes
1194 (catMaybes
1864 [("deals" .=) <$> _aodrDeals,
1195 [("deals" .=) <$> _aodrDeals,
1865− ("orderRevisionNumber" .=) <$>
1196+ ("proposalRevisionNumber" .=) <$>
1866− _aodrOrderRevisionNumber])
1197+ _aodrProposalRevisionNumber])
1867
1198
1868--
1199--
1869-- /See:/ 'deliveryControl' smart constructor.
1200-- /See:/ 'deliveryControl' smart constructor.
1870data DeliveryControl = DeliveryControl
1201data DeliveryControl = DeliveryControl
1202+ { _dcCreativeBlockingLevel :: !(Maybe Text)
1871− { _dcFrequencyCaps :: !(Maybe [DeliveryControlFrequencyCap])
1203+ , _dcFrequencyCaps :: !(Maybe [DeliveryControlFrequencyCap])
1872− , _dcDeliveryRateType :: !(Maybe Text)
1204+ , _dcDeliveryRateType :: !(Maybe Text)
1873 } deriving (Eq,Show,Data,Typeable,Generic)
1205 } deriving (Eq,Show,Data,Typeable,Generic)
1874
1206
1875-- | Creates a value of 'DeliveryControl' with the minimum fields required to make a request.
1207-- | Creates a value of 'DeliveryControl' with the minimum fields required to make a request.
1876--
1208--
1877-- Use one of the following lenses to modify other fields as desired:
1209-- Use one of the following lenses to modify other fields as desired:
1878--
1210--
1211+-- * 'dcCreativeBlockingLevel'
1212+--
1879-- * 'dcFrequencyCaps'
1213-- * 'dcFrequencyCaps'
1880--
1214--
1881-- * 'dcDeliveryRateType'
1215-- * 'dcDeliveryRateType'
@@ -1883,10 +1217,16 @@ deliveryControl
1883 :: DeliveryControl
1217 :: DeliveryControl
1884deliveryControl =
1218deliveryControl =
1885 DeliveryControl
1219 DeliveryControl
1220+ { _dcCreativeBlockingLevel = Nothing
1886− { _dcFrequencyCaps = Nothing
1221+ , _dcFrequencyCaps = Nothing
1887 , _dcDeliveryRateType = Nothing
1222 , _dcDeliveryRateType = Nothing
1888 }
1223 }
1889
1224
1225+dcCreativeBlockingLevel :: Lens' DeliveryControl (Maybe Text)
1226+dcCreativeBlockingLevel
1227+ = lens _dcCreativeBlockingLevel
1228+ (\ s a -> s{_dcCreativeBlockingLevel = a})
1229+
1890dcFrequencyCaps :: Lens' DeliveryControl [DeliveryControlFrequencyCap]
1230dcFrequencyCaps :: Lens' DeliveryControl [DeliveryControlFrequencyCap]
1891dcFrequencyCaps
1231dcFrequencyCaps
1892 = lens _dcFrequencyCaps
1232 = lens _dcFrequencyCaps
@@ -1904,23 +1244,26 @@ instance FromJSON DeliveryControl where
1904 = withObject "DeliveryControl"
1244 = withObject "DeliveryControl"
1905 (\ o ->
1245 (\ o ->
1906 DeliveryControl <$>
1246 DeliveryControl <$>
1247+ (o .:? "creativeBlockingLevel") <*>
1907− (o .:? "frequencyCaps" .!= mempty) <*>
1248+ (o .:? "frequencyCaps" .!= mempty)
1908− (o .:? "deliveryRateType"))
1249+ <*> (o .:? "deliveryRateType"))
1909
1250
1910instance ToJSON DeliveryControl where
1251instance ToJSON DeliveryControl where
1911 toJSON DeliveryControl{..}
1252 toJSON DeliveryControl{..}
1912 = object
1253 = object
1913 (catMaybes
1254 (catMaybes
1255+ [("creativeBlockingLevel" .=) <$>
1256+ _dcCreativeBlockingLevel,
1914− [("frequencyCaps" .=) <$> _dcFrequencyCaps,
1257+ ("frequencyCaps" .=) <$> _dcFrequencyCaps,
1915 ("deliveryRateType" .=) <$> _dcDeliveryRateType])
1258 ("deliveryRateType" .=) <$> _dcDeliveryRateType])
1916
1259
1917-- | Used to specify pricing rules for buyers\/advertisers. Each
1260-- | Used to specify pricing rules for buyers\/advertisers. Each
1918−-- PricePerBuyer in an offer can become [0,1] deals. To check if there is a
1261+-- PricePerBuyer in an product can become [0,1] deals. To check if there is
1919−-- PricePerBuyer for a particular buyer or buyer\/advertiser pair, we look
1262+-- a PricePerBuyer for a particular buyer or buyer\/advertiser pair, we
1920−-- for the most specific matching rule - we first look for a rule matching
1263+-- look for the most specific matching rule - we first look for a rule
1921−-- the buyer and advertiser, next a rule with the buyer but an empty
1264+-- matching the buyer and advertiser, next a rule with the buyer but an
1922−-- advertiser list, and otherwise look for a matching rule where no buyer
1265+-- empty advertiser list, and otherwise look for a matching rule where no
1923−-- is set.
1266+-- buyer is set.
1924--
1267--
1925-- /See:/ 'pricePerBuyer' smart constructor.
1268-- /See:/ 'pricePerBuyer' smart constructor.
1926data PricePerBuyer = PricePerBuyer
1269data PricePerBuyer = PricePerBuyer
@@ -2291,7 +1634,7 @@ instance FromJSON Creative where
2291 <*> (o .:? "version")
1634 <*> (o .:? "version")
2292 <*> (o .:? "sensitiveCategories" .!= mempty)
1635 <*> (o .:? "sensitiveCategories" .!= mempty)
2293 <*> (o .:? "videoURL")
1636 <*> (o .:? "videoURL")
2294− <*> (o .:? "api_upload_timestamp")
1637+ <*> (o .:? "apiUploadTimestamp")
2295 <*> (o .:? "servingRestrictions" .!= mempty)
1638 <*> (o .:? "servingRestrictions" .!= mempty)
2296 <*> (o .:? "openAuctionStatus"))
1639 <*> (o .:? "openAuctionStatus"))
2297
1640
@@ -2323,7 +1666,7 @@ instance ToJSON Creative where
2323 ("version" .=) <$> _cVersion,
1666 ("version" .=) <$> _cVersion,
2324 ("sensitiveCategories" .=) <$> _cSensitiveCategories,
1667 ("sensitiveCategories" .=) <$> _cSensitiveCategories,
2325 ("videoURL" .=) <$> _cVideoURL,
1668 ("videoURL" .=) <$> _cVideoURL,
2326− ("api_upload_timestamp" .=) <$> _cAPIUploadTimestamp,
1669+ ("apiUploadTimestamp" .=) <$> _cAPIUploadTimestamp,
2327 ("servingRestrictions" .=) <$> _cServingRestrictions,
1670 ("servingRestrictions" .=) <$> _cServingRestrictions,
2328 ("openAuctionStatus" .=) <$> _cOpenAuctionStatus])
1671 ("openAuctionStatus" .=) <$> _cOpenAuctionStatus])
2329
1672
@@ -2462,244 +1805,47 @@ instance ToJSON PretargetingConfigList where
2462 ("items" .=) <$> _pclItems])
1805 ("items" .=) <$> _pclItems])
2463
1806
2464--
1807--
2465−-- /See:/ 'buyerDTO' smart constructor.
1808+-- /See:/ 'dealTermsNonGuaranteedFixedPriceTerms' smart constructor.
2466−data BuyerDTO = BuyerDTO
1809+newtype DealTermsNonGuaranteedFixedPriceTerms = DealTermsNonGuaranteedFixedPriceTerms
2467− { _buySponsorAccountId :: !(Maybe (Textual Int32))
1810+ { _dtngfptFixedPrices :: Maybe [PricePerBuyer]
2468− , _buyEnabledForInterestTargetingDeals :: !(Maybe Bool)
2469− , _buyCustomerId :: !(Maybe (Textual Int32))
2470− , _buyEnabledForPreferredDeals :: !(Maybe Bool)
2471− , _buyAccountId :: !(Maybe (Textual Int32))
2472− , _buyDisplayName :: !(Maybe Text)
2473− , _buyId :: !(Maybe (Textual Int32))
2474 } deriving (Eq,Show,Data,Typeable,Generic)
1811 } deriving (Eq,Show,Data,Typeable,Generic)
2475
1812
2476−-- | Creates a value of 'BuyerDTO' with the minimum fields required to make a request.
1813+-- | Creates a value of 'DealTermsNonGuaranteedFixedPriceTerms' with the minimum fields required to make a request.
2477--
1814--
2478-- Use one of the following lenses to modify other fields as desired:
1815-- Use one of the following lenses to modify other fields as desired:
2479--
1816--
2480−-- * 'buySponsorAccountId'
1817+-- * 'dtngfptFixedPrices'
2481−--
1818+dealTermsNonGuaranteedFixedPriceTerms
2482−-- * 'buyEnabledForInterestTargetingDeals'
1819+ :: DealTermsNonGuaranteedFixedPriceTerms
2483−--
1820+dealTermsNonGuaranteedFixedPriceTerms =
2484−-- * 'buyCustomerId'
1821+ DealTermsNonGuaranteedFixedPriceTerms
2485−--
1822+ { _dtngfptFixedPrices = Nothing
2486−-- * 'buyEnabledForPreferredDeals'
2487−--
2488−-- * 'buyAccountId'
2489−--
2490−-- * 'buyDisplayName'
2491−--
2492−-- * 'buyId'
2493−buyerDTO
2494− :: BuyerDTO
2495−buyerDTO =
2496− BuyerDTO
2497− { _buySponsorAccountId = Nothing
2498− , _buyEnabledForInterestTargetingDeals = Nothing
2499− , _buyCustomerId = Nothing
2500− , _buyEnabledForPreferredDeals = Nothing
2501− , _buyAccountId = Nothing
2502− , _buyDisplayName = Nothing
2503− , _buyId = Nothing
2504 }
1823 }
2505
1824
2506−buySponsorAccountId :: Lens' BuyerDTO (Maybe Int32)
1825+-- | Fixed price for the specified buyer.
2507−buySponsorAccountId
1826+dtngfptFixedPrices :: Lens' DealTermsNonGuaranteedFixedPriceTerms [PricePerBuyer]
2508− = lens _buySponsorAccountId
1827+dtngfptFixedPrices
2509− (\ s a -> s{_buySponsorAccountId = a})
1828+ = lens _dtngfptFixedPrices
2510− . mapping _Coerce
1829+ (\ s a -> s{_dtngfptFixedPrices = a})
2511−
1830+ . _Default
2512−buyEnabledForInterestTargetingDeals :: Lens' BuyerDTO (Maybe Bool)
2513−buyEnabledForInterestTargetingDeals
2514− = lens _buyEnabledForInterestTargetingDeals
2515− (\ s a ->
2516− s{_buyEnabledForInterestTargetingDeals = a})
2517−
2518−buyCustomerId :: Lens' BuyerDTO (Maybe Int32)
2519−buyCustomerId
2520− = lens _buyCustomerId
2521− (\ s a -> s{_buyCustomerId = a})
2522− . mapping _Coerce
2523−
2524−buyEnabledForPreferredDeals :: Lens' BuyerDTO (Maybe Bool)
2525−buyEnabledForPreferredDeals
2526− = lens _buyEnabledForPreferredDeals
2527− (\ s a -> s{_buyEnabledForPreferredDeals = a})
2528−
2529−buyAccountId :: Lens' BuyerDTO (Maybe Int32)
2530−buyAccountId
2531− = lens _buyAccountId (\ s a -> s{_buyAccountId = a})
2532− . mapping _Coerce
2533−
2534−buyDisplayName :: Lens' BuyerDTO (Maybe Text)
2535−buyDisplayName
2536− = lens _buyDisplayName
2537− (\ s a -> s{_buyDisplayName = a})
2538−
2539−buyId :: Lens' BuyerDTO (Maybe Int32)
2540−buyId
2541− = lens _buyId (\ s a -> s{_buyId = a}) .
2542− mapping _Coerce
1831+ . _Coerce
2543
1832
2544−instance FromJSON BuyerDTO where
1833+instance FromJSON
1834+ DealTermsNonGuaranteedFixedPriceTerms where
2545 parseJSON
1835 parseJSON
2546− = withObject "BuyerDTO"
1836+ = withObject "DealTermsNonGuaranteedFixedPriceTerms"
2547 (\ o ->
1837 (\ o ->
2548− BuyerDTO <$>
1838+ DealTermsNonGuaranteedFixedPriceTerms <$>
2549− (o .:? "sponsorAccountId") <*>
1839+ (o .:? "fixedPrices" .!= mempty))
2550− (o .:? "enabledForInterestTargetingDeals")
2551− <*> (o .:? "customerId")
2552− <*> (o .:? "enabledForPreferredDeals")
2553− <*> (o .:? "accountId")
2554− <*> (o .:? "displayName")
2555− <*> (o .:? "id"))
2556
1840
2557−instance ToJSON BuyerDTO where
1841+instance ToJSON DealTermsNonGuaranteedFixedPriceTerms
2558− toJSON BuyerDTO{..}
1842+ where
1843+ toJSON DealTermsNonGuaranteedFixedPriceTerms{..}
2559 = object
1844 = object
2560 (catMaybes
1845 (catMaybes
2561− [("sponsorAccountId" .=) <$> _buySponsorAccountId,
1846+ [("fixedPrices" .=) <$> _dtngfptFixedPrices])
2562− ("enabledForInterestTargetingDeals" .=) <$>
2563− _buyEnabledForInterestTargetingDeals,
2564− ("customerId" .=) <$> _buyCustomerId,
2565− ("enabledForPreferredDeals" .=) <$>
2566− _buyEnabledForPreferredDeals,
2567− ("accountId" .=) <$> _buyAccountId,
2568− ("displayName" .=) <$> _buyDisplayName,
2569− ("id" .=) <$> _buyId])
2570−
2571−--
2572−-- /See:/ 'adSlotDTO' smart constructor.
2573−data AdSlotDTO = AdSlotDTO
2574− { _asdtoWebPropertyId :: !(Maybe (Textual Int32))
2575− , _asdtoSize :: !(Maybe Text)
2576− , _asdtoChannelCode :: !(Maybe Text)
2577− , _asdtoChannelId :: !(Maybe (Textual Int32))
2578− , _asdtoName :: !(Maybe Text)
2579− , _asdtoDescription :: !(Maybe Text)
2580− } deriving (Eq,Show,Data,Typeable,Generic)
2581
1847
2582−-- | Creates a value of 'AdSlotDTO' with the minimum fields required to make a request.
2583−--
2584−-- Use one of the following lenses to modify other fields as desired:
2585−--
2586−-- * 'asdtoWebPropertyId'
2587−--
2588−-- * 'asdtoSize'
2589−--
2590−-- * 'asdtoChannelCode'
2591−--
2592−-- * 'asdtoChannelId'
2593−--
2594−-- * 'asdtoName'
2595−--
2596−-- * 'asdtoDescription'
2597−adSlotDTO
2598− :: AdSlotDTO
2599−adSlotDTO =
2600− AdSlotDTO
2601− { _asdtoWebPropertyId = Nothing
2602− , _asdtoSize = Nothing
2603− , _asdtoChannelCode = Nothing
2604− , _asdtoChannelId = Nothing
2605− , _asdtoName = Nothing
2606− , _asdtoDescription = Nothing
2607− }
2608−
2609−asdtoWebPropertyId :: Lens' AdSlotDTO (Maybe Int32)
2610−asdtoWebPropertyId
2611− = lens _asdtoWebPropertyId
2612− (\ s a -> s{_asdtoWebPropertyId = a})
2613− . mapping _Coerce
2614−
2615−asdtoSize :: Lens' AdSlotDTO (Maybe Text)
2616−asdtoSize
2617− = lens _asdtoSize (\ s a -> s{_asdtoSize = a})
2618−
2619−asdtoChannelCode :: Lens' AdSlotDTO (Maybe Text)
2620−asdtoChannelCode
2621− = lens _asdtoChannelCode
2622− (\ s a -> s{_asdtoChannelCode = a})
2623−
2624−asdtoChannelId :: Lens' AdSlotDTO (Maybe Int32)
2625−asdtoChannelId
2626− = lens _asdtoChannelId
2627− (\ s a -> s{_asdtoChannelId = a})
2628− . mapping _Coerce
2629−
2630−asdtoName :: Lens' AdSlotDTO (Maybe Text)
2631−asdtoName
2632− = lens _asdtoName (\ s a -> s{_asdtoName = a})
2633−
2634−asdtoDescription :: Lens' AdSlotDTO (Maybe Text)
2635−asdtoDescription
2636− = lens _asdtoDescription
2637− (\ s a -> s{_asdtoDescription = a})
2638−
2639−instance FromJSON AdSlotDTO where
2640− parseJSON
2641− = withObject "AdSlotDTO"
2642− (\ o ->
2643− AdSlotDTO <$>
2644− (o .:? "webPropertyId") <*> (o .:? "size") <*>
2645− (o .:? "channelCode")
2646− <*> (o .:? "channelId")
2647− <*> (o .:? "name")
2648− <*> (o .:? "description"))
2649−
2650−instance ToJSON AdSlotDTO where
2651− toJSON AdSlotDTO{..}
2652− = object
2653− (catMaybes
2654− [("webPropertyId" .=) <$> _asdtoWebPropertyId,
2655− ("size" .=) <$> _asdtoSize,
2656− ("channelCode" .=) <$> _asdtoChannelCode,
2657− ("channelId" .=) <$> _asdtoChannelId,
2658− ("name" .=) <$> _asdtoName,
2659− ("description" .=) <$> _asdtoDescription])
2660−
2661−--
2662−-- /See:/ 'dealTermsNonGuaranteedFixedPriceTerms' smart constructor.
2663−newtype DealTermsNonGuaranteedFixedPriceTerms = DealTermsNonGuaranteedFixedPriceTerms
2664− { _dtngfptFixedPrices :: Maybe [PricePerBuyer]
2665− } deriving (Eq,Show,Data,Typeable,Generic)
2666−
2667−-- | Creates a value of 'DealTermsNonGuaranteedFixedPriceTerms' with the minimum fields required to make a request.
2668−--
2669−-- Use one of the following lenses to modify other fields as desired:
2670−--
2671−-- * 'dtngfptFixedPrices'
2672−dealTermsNonGuaranteedFixedPriceTerms
2673− :: DealTermsNonGuaranteedFixedPriceTerms
2674−dealTermsNonGuaranteedFixedPriceTerms =
2675− DealTermsNonGuaranteedFixedPriceTerms
2676− { _dtngfptFixedPrices = Nothing
2677− }
2678−
2679−-- | Fixed price for the specified buyer.
2680−dtngfptFixedPrices :: Lens' DealTermsNonGuaranteedFixedPriceTerms [PricePerBuyer]
2681−dtngfptFixedPrices
2682− = lens _dtngfptFixedPrices
2683− (\ s a -> s{_dtngfptFixedPrices = a})
2684− . _Default
2685− . _Coerce
2686−
2687−instance FromJSON
2688− DealTermsNonGuaranteedFixedPriceTerms where
2689− parseJSON
2690− = withObject "DealTermsNonGuaranteedFixedPriceTerms"
2691− (\ o ->
2692− DealTermsNonGuaranteedFixedPriceTerms <$>
2693− (o .:? "fixedPrices" .!= mempty))
2694−
2695−instance ToJSON DealTermsNonGuaranteedFixedPriceTerms
2696− where
2697− toJSON DealTermsNonGuaranteedFixedPriceTerms{..}
2698− = object
2699− (catMaybes
2700− [("fixedPrices" .=) <$> _dtngfptFixedPrices])
2701−
2702−-- | The configuration data for an Ad Exchange performance report list.
1848+-- | The configuration data for an Ad Exchange performance report list.
2703--
1849--
2704-- /See:/ 'performanceReport' smart constructor.
1850-- /See:/ 'performanceReport' smart constructor.
2705data PerformanceReport = PerformanceReport
1851data PerformanceReport = PerformanceReport
@@ -3099,7 +2245,7 @@ seller =
3099 }
2245 }
3100
2246
3101-- | The unique id for the seller. The seller fills in this field. The seller
2247-- | The unique id for the seller. The seller fills in this field. The seller
3102−-- account id is then available to buyer in the offer.
2248+-- account id is then available to buyer in the product.
3103sAccountId :: Lens' Seller (Maybe Text)
2249sAccountId :: Lens' Seller (Maybe Text)
3104sAccountId
2250sAccountId
3105 = lens _sAccountId (\ s a -> s{_sAccountId = a})
2251 = lens _sAccountId (\ s a -> s{_sAccountId = a})
@@ -3260,9 +2406,9 @@ instance ToJSON Account where
3260--
2406--
3261-- /See:/ 'deleteOrderDealsRequest' smart constructor.
2407-- /See:/ 'deleteOrderDealsRequest' smart constructor.
3262data DeleteOrderDealsRequest = DeleteOrderDealsRequest
2408data DeleteOrderDealsRequest = DeleteOrderDealsRequest
3263− { _dodrUpdateAction :: !(Maybe Text)
2409+ { _dodrUpdateAction :: !(Maybe Text)
3264− , _dodrDealIds :: !(Maybe [Text])
2410+ , _dodrDealIds :: !(Maybe [Text])
3265− , _dodrOrderRevisionNumber :: !(Maybe (Textual Int64))
2411+ , _dodrProposalRevisionNumber :: !(Maybe (Textual Int64))
3266 } deriving (Eq,Show,Data,Typeable,Generic)
2412 } deriving (Eq,Show,Data,Typeable,Generic)
3267
2413
3268-- | Creates a value of 'DeleteOrderDealsRequest' with the minimum fields required to make a request.
2414-- | Creates a value of 'DeleteOrderDealsRequest' with the minimum fields required to make a request.
@@ -3273,14 +2419,14 @@ data DeleteOrderDealsRequest = DeleteOrderDealsRequest
3273--
2419--
3274-- * 'dodrDealIds'
2420-- * 'dodrDealIds'
3275--
2421--
3276−-- * 'dodrOrderRevisionNumber'
2422+-- * 'dodrProposalRevisionNumber'
3277deleteOrderDealsRequest
2423deleteOrderDealsRequest
3278 :: DeleteOrderDealsRequest
2424 :: DeleteOrderDealsRequest
3279deleteOrderDealsRequest =
2425deleteOrderDealsRequest =
3280 DeleteOrderDealsRequest
2426 DeleteOrderDealsRequest
3281 { _dodrUpdateAction = Nothing
2427 { _dodrUpdateAction = Nothing
3282 , _dodrDealIds = Nothing
2428 , _dodrDealIds = Nothing
3283− , _dodrOrderRevisionNumber = Nothing
2429+ , _dodrProposalRevisionNumber = Nothing
3284 }
2430 }
3285
2431
3286dodrUpdateAction :: Lens' DeleteOrderDealsRequest (Maybe Text)
2432dodrUpdateAction :: Lens' DeleteOrderDealsRequest (Maybe Text)
@@ -3288,18 +2434,18 @@ dodrUpdateAction
3288 = lens _dodrUpdateAction
2434 = lens _dodrUpdateAction
3289 (\ s a -> s{_dodrUpdateAction = a})
2435 (\ s a -> s{_dodrUpdateAction = a})
3290
2436
3291−-- | List of deals to delete for a given order
2437+-- | List of deals to delete for a given proposal
3292dodrDealIds :: Lens' DeleteOrderDealsRequest [Text]
2438dodrDealIds :: Lens' DeleteOrderDealsRequest [Text]
3293dodrDealIds
2439dodrDealIds
3294 = lens _dodrDealIds (\ s a -> s{_dodrDealIds = a}) .
2440 = lens _dodrDealIds (\ s a -> s{_dodrDealIds = a}) .
3295 _Default
2441 _Default
3296 . _Coerce
2442 . _Coerce
3297
2443
3298−-- | The last known order revision number.
2444+-- | The last known proposal revision number.
3299−dodrOrderRevisionNumber :: Lens' DeleteOrderDealsRequest (Maybe Int64)
2445+dodrProposalRevisionNumber :: Lens' DeleteOrderDealsRequest (Maybe Int64)
3300−dodrOrderRevisionNumber
2446+dodrProposalRevisionNumber
3301− = lens _dodrOrderRevisionNumber
2447+ = lens _dodrProposalRevisionNumber
3302− (\ s a -> s{_dodrOrderRevisionNumber = a})
2448+ (\ s a -> s{_dodrProposalRevisionNumber = a})
3303 . mapping _Coerce
2449 . mapping _Coerce
3304
2450
3305instance FromJSON DeleteOrderDealsRequest where
2451instance FromJSON DeleteOrderDealsRequest where
@@ -3309,7 +2455,7 @@ instance FromJSON DeleteOrderDealsRequest where
3309 DeleteOrderDealsRequest <$>
2455 DeleteOrderDealsRequest <$>
3310 (o .:? "updateAction") <*>
2456 (o .:? "updateAction") <*>
3311 (o .:? "dealIds" .!= mempty)
2457 (o .:? "dealIds" .!= mempty)
3312− <*> (o .:? "orderRevisionNumber"))
2458+ <*> (o .:? "proposalRevisionNumber"))
3313
2459
3314instance ToJSON DeleteOrderDealsRequest where
2460instance ToJSON DeleteOrderDealsRequest where
3315 toJSON DeleteOrderDealsRequest{..}
2461 toJSON DeleteOrderDealsRequest{..}
@@ -3317,8 +2463,8 @@ instance ToJSON DeleteOrderDealsRequest where
3317 (catMaybes
2463 (catMaybes
3318 [("updateAction" .=) <$> _dodrUpdateAction,
2464 [("updateAction" .=) <$> _dodrUpdateAction,
3319 ("dealIds" .=) <$> _dodrDealIds,
2465 ("dealIds" .=) <$> _dodrDealIds,
3320− ("orderRevisionNumber" .=) <$>
2466+ ("proposalRevisionNumber" .=) <$>
3321− _dodrOrderRevisionNumber])
2467+ _dodrProposalRevisionNumber])
3322
2468
3323--
2469--
3324-- /See:/ 'contactInformation' smart constructor.
2470-- /See:/ 'contactInformation' smart constructor.
@@ -3438,7 +2584,7 @@ getOrderDealsResponse =
3438 { _godrDeals = Nothing
2584 { _godrDeals = Nothing
3439 }
2585 }
3440
2586
3441−-- | List of deals for the order
2587+-- | List of deals for the proposal
3442godrDeals :: Lens' GetOrderDealsResponse [MarketplaceDeal]
2588godrDeals :: Lens' GetOrderDealsResponse [MarketplaceDeal]
3443godrDeals
2589godrDeals
3444 = lens _godrDeals (\ s a -> s{_godrDeals = a}) .
2590 = lens _godrDeals (\ s a -> s{_godrDeals = a}) .
@@ -3522,6 +2668,7 @@ data PretargetingConfig = PretargetingConfig
3522 , _pcMobileDevices :: !(Maybe [Textual Int64])
2668 , _pcMobileDevices :: !(Maybe [Textual Int64])
3523 , _pcLanguages :: !(Maybe [Text])
2669 , _pcLanguages :: !(Maybe [Text])
3524 , _pcVerticals :: !(Maybe [Textual Int64])
2670 , _pcVerticals :: !(Maybe [Textual Int64])
2671+ , _pcVideoPlayerSizes :: !(Maybe [PretargetingConfigVideoPlayerSizesItem])
3525 , _pcConfigId :: !(Maybe (Textual Int64))
2672 , _pcConfigId :: !(Maybe (Textual Int64))
3526 , _pcPlacements :: !(Maybe [PretargetingConfigPlacementsItem])
2673 , _pcPlacements :: !(Maybe [PretargetingConfigPlacementsItem])
3527 , _pcExcludedUserLists :: !(Maybe [Textual Int64])
2674 , _pcExcludedUserLists :: !(Maybe [Textual Int64])
@@ -3562,6 +2709,8 @@ data PretargetingConfig = PretargetingConfig
3562--
2709--
3563-- * 'pcVerticals'
2710-- * 'pcVerticals'
3564--
2711--
2712+-- * 'pcVideoPlayerSizes'
2713+--
3565-- * 'pcConfigId'
2714-- * 'pcConfigId'
3566--
2715--
3567-- * 'pcPlacements'
2716-- * 'pcPlacements'
@@ -3600,6 +2749,7 @@ pretargetingConfig =
3600 , _pcMobileDevices = Nothing
2749 , _pcMobileDevices = Nothing
3601 , _pcLanguages = Nothing
2750 , _pcLanguages = Nothing
3602 , _pcVerticals = Nothing
2751 , _pcVerticals = Nothing
2752+ , _pcVideoPlayerSizes = Nothing
3603 , _pcConfigId = Nothing
2753 , _pcConfigId = Nothing
3604 , _pcPlacements = Nothing
2754 , _pcPlacements = Nothing
3605 , _pcExcludedUserLists = Nothing
2755 , _pcExcludedUserLists = Nothing
@@ -3702,6 +2852,15 @@ pcVerticals
3702 _Default
2852 _Default
3703 . _Coerce
2853 . _Coerce
3704
2854
2855+-- | Video requests satisfying any of these player size constraints will
2856+-- match.
2857+pcVideoPlayerSizes :: Lens' PretargetingConfig [PretargetingConfigVideoPlayerSizesItem]
2858+pcVideoPlayerSizes
2859+ = lens _pcVideoPlayerSizes
2860+ (\ s a -> s{_pcVideoPlayerSizes = a})
2861+ . _Default
2862+ . _Coerce
2863+
3705-- | The config id; generated automatically. Leave this field blank for
2864-- | The config id; generated automatically. Leave this field blank for
3706-- insert requests.
2865-- insert requests.
3707pcConfigId :: Lens' PretargetingConfig (Maybe Int64)
2866pcConfigId :: Lens' PretargetingConfig (Maybe Int64)
@@ -3812,6 +2971,7 @@ instance FromJSON PretargetingConfig where
3812 <*> (o .:? "mobileDevices" .!= mempty)
2971 <*> (o .:? "mobileDevices" .!= mempty)
3813 <*> (o .:? "languages" .!= mempty)
2972 <*> (o .:? "languages" .!= mempty)
3814 <*> (o .:? "verticals" .!= mempty)
2973 <*> (o .:? "verticals" .!= mempty)
2974+ <*> (o .:? "videoPlayerSizes" .!= mempty)
3815 <*> (o .:? "configId")
2975 <*> (o .:? "configId")
3816 <*> (o .:? "placements" .!= mempty)
2976 <*> (o .:? "placements" .!= mempty)
3817 <*> (o .:? "excludedUserLists" .!= mempty)
2977 <*> (o .:? "excludedUserLists" .!= mempty)
@@ -3843,6 +3003,7 @@ instance ToJSON PretargetingConfig where
3843 ("mobileDevices" .=) <$> _pcMobileDevices,
3003 ("mobileDevices" .=) <$> _pcMobileDevices,
3844 ("languages" .=) <$> _pcLanguages,
3004 ("languages" .=) <$> _pcLanguages,
3845 ("verticals" .=) <$> _pcVerticals,
3005 ("verticals" .=) <$> _pcVerticals,
3006+ ("videoPlayerSizes" .=) <$> _pcVideoPlayerSizes,
3846 ("configId" .=) <$> _pcConfigId,
3007 ("configId" .=) <$> _pcConfigId,
3847 ("placements" .=) <$> _pcPlacements,
3008 ("placements" .=) <$> _pcPlacements,
3848 ("excludedUserLists" .=) <$> _pcExcludedUserLists,
3009 ("excludedUserLists" .=) <$> _pcExcludedUserLists,
@@ -3934,7 +3095,8 @@ targetingValueCreativeSize =
3934 , _tvcsCreativeSizeType = Nothing
3095 , _tvcsCreativeSizeType = Nothing
3935 }
3096 }
3936
3097
3937−-- | For regular creative size type, specifies the size of the creative.
3098+-- | For regular or video creative size type, specifies the size of the
3099+-- creative.
3938tvcsSize :: Lens' TargetingValueCreativeSize (Maybe TargetingValueSize)
3100tvcsSize :: Lens' TargetingValueCreativeSize (Maybe TargetingValueSize)
3939tvcsSize = lens _tvcsSize (\ s a -> s{_tvcsSize = a})
3101tvcsSize = lens _tvcsSize (\ s a -> s{_tvcsSize = a})
3940
3102
@@ -3969,474 +3131,293 @@ instance ToJSON TargetingValueCreativeSize where
3969 ("companionSizes" .=) <$> _tvcsCompanionSizes,
3131 ("companionSizes" .=) <$> _tvcsCompanionSizes,
3970 ("creativeSizeType" .=) <$> _tvcsCreativeSizeType])
3132 ("creativeSizeType" .=) <$> _tvcsCreativeSizeType])
3971
3133
3134+-- | Represents a proposal in the marketplace. A proposal is the unit of
3135+-- negotiation between a seller and a buyer and contains deals which are
3136+-- served. Each field in a proposal can have one of the following setting:
3137+-- (readonly) - It is an error to try and set this field. (buyer-readonly)
3138+-- - Only the seller can set this field. (seller-readonly) - Only the buyer
3139+-- can set this field. (updatable) - The field is updatable at all times by
3140+-- either buyer or the seller.
3972--
3141--
3973−-- /See:/ 'negotiationDTO' smart constructor.
3142+-- /See:/ 'proposal' smart constructor.
3974−data NegotiationDTO = NegotiationDTO
3143+data Proposal = Proposal
3975− { _ndtoNegotiationState :: !(Maybe Text)
3144+ { _pBuyerPrivateData :: !(Maybe PrivateData)
3976− , _ndtoExternalDealId :: !(Maybe (Textual Int64))
3145+ , _pIsSetupComplete :: !(Maybe Bool)
3977− , _ndtoStatus :: !(Maybe Text)
3146+ , _pInventorySource :: !(Maybe Text)
3978− , _ndtoDealType :: !(Maybe Text)
3147+ , _pBuyerContacts :: !(Maybe [ContactInformation])
3979− , _ndtoNegotiationRounds :: !(Maybe [NegotiationRoundDTO])
3148+ , _pKind :: !Text
3980− , _ndtoKind :: !Text
3149+ , _pOriginatorRole :: !(Maybe Text)
3981− , _ndtoBilledBuyer :: !(Maybe DealPartyDTO)
3150+ , _pRevisionNumber :: !(Maybe (Textual Int64))
3982− , _ndtoBuyerEmailContacts :: !(Maybe [Text])
3151+ , _pBilledBuyer :: !(Maybe Buyer)
3983− , _ndtoStats :: !(Maybe StatsDTO)
3152+ , _pIsRenegotiating :: !(Maybe Bool)
3984− , _ndtoSeller :: !(Maybe DealPartyDTO)
3153+ , _pHasSellerSignedOff :: !(Maybe Bool)
3985− , _ndtoLabelNames :: !(Maybe [Text])
3154+ , _pSeller :: !(Maybe Seller)
3986− , _ndtoOfferId :: !(Maybe (Textual Int64))
3155+ , _pProposalId :: !(Maybe Text)
3987− , _ndtoNegotiationId :: !(Maybe (Textual Int64))
3156+ , _pName :: !(Maybe Text)
3988− , _ndtoSellerEmailContacts :: !(Maybe [Text])
3157+ , _pSellerContacts :: !(Maybe [ContactInformation])
3989− , _ndtoBuyer :: !(Maybe DealPartyDTO)
3158+ , _pLastUpdaterRole :: !(Maybe Text)
3159+ , _pLabels :: !(Maybe [MarketplaceLabel])
3160+ , _pRevisionTimeMs :: !(Maybe (Textual Int64))
3161+ , _pProposalState :: !(Maybe Text)
3162+ , _pLastUpdaterOrCommentorRole :: !(Maybe Text)
3163+ , _pHasBuyerSignedOff :: !(Maybe Bool)
3164+ , _pBuyer :: !(Maybe Buyer)
3990 } deriving (Eq,Show,Data,Typeable,Generic)
3165 } deriving (Eq,Show,Data,Typeable,Generic)
3991
3166
3992−-- | Creates a value of 'NegotiationDTO' with the minimum fields required to make a request.
3167+-- | Creates a value of 'Proposal' with the minimum fields required to make a request.
3993--
3168--
3994-- Use one of the following lenses to modify other fields as desired:
3169-- Use one of the following lenses to modify other fields as desired:
3995--
3170--
3996−-- * 'ndtoNegotiationState'
3171+-- * 'pBuyerPrivateData'
3997−--
3998−-- * 'ndtoExternalDealId'
3999−--
4000−-- * 'ndtoStatus'
4001−--
4002−-- * 'ndtoDealType'
4003−--
4004−-- * 'ndtoNegotiationRounds'
4005−--
4006−-- * 'ndtoKind'
4007−--
4008−-- * 'ndtoBilledBuyer'
4009--
3172--
4010−-- * 'ndtoBuyerEmailContacts'
3173+-- * 'pIsSetupComplete'
4011--
3174--
4012−-- * 'ndtoStats'
3175+-- * 'pInventorySource'
4013--
3176--
4014−-- * 'ndtoSeller'
3177+-- * 'pBuyerContacts'
4015--
3178--
4016−-- * 'ndtoLabelNames'
3179+-- * 'pKind'
4017--
3180--
4018−-- * 'ndtoOfferId'
3181+-- * 'pOriginatorRole'
4019−--
4020−-- * 'ndtoNegotiationId'
4021−--
4022−-- * 'ndtoSellerEmailContacts'
4023−--
4024−-- * 'ndtoBuyer'
4025−negotiationDTO
4026− :: NegotiationDTO
4027−negotiationDTO =
4028− NegotiationDTO
4029− { _ndtoNegotiationState = Nothing
4030− , _ndtoExternalDealId = Nothing
4031− , _ndtoStatus = Nothing
4032− , _ndtoDealType = Nothing
4033− , _ndtoNegotiationRounds = Nothing
4034− , _ndtoKind = "adexchangebuyer#negotiation"
4035− , _ndtoBilledBuyer = Nothing
4036− , _ndtoBuyerEmailContacts = Nothing
4037− , _ndtoStats = Nothing
4038− , _ndtoSeller = Nothing
4039− , _ndtoLabelNames = Nothing
4040− , _ndtoOfferId = Nothing
4041− , _ndtoNegotiationId = Nothing
4042− , _ndtoSellerEmailContacts = Nothing
4043− , _ndtoBuyer = Nothing
4044− }
4045−
4046−-- | The state of this negotiation.
4047−ndtoNegotiationState :: Lens' NegotiationDTO (Maybe Text)
4048−ndtoNegotiationState
4049− = lens _ndtoNegotiationState
4050− (\ s a -> s{_ndtoNegotiationState = a})
4051−
4052−-- | For finalized negotiations, the ID of the finalized deal.
4053−ndtoExternalDealId :: Lens' NegotiationDTO (Maybe Int64)
4054−ndtoExternalDealId
4055− = lens _ndtoExternalDealId
4056− (\ s a -> s{_ndtoExternalDealId = a})
4057− . mapping _Coerce
4058−
4059−-- | The status of this negotiation.
4060−ndtoStatus :: Lens' NegotiationDTO (Maybe Text)
4061−ndtoStatus
4062− = lens _ndtoStatus (\ s a -> s{_ndtoStatus = a})
4063−
4064−-- | The type of this deal.
4065−ndtoDealType :: Lens' NegotiationDTO (Maybe Text)
4066−ndtoDealType
4067− = lens _ndtoDealType (\ s a -> s{_ndtoDealType = a})
4068−
4069−-- | The series of negotiation rounds for this negotiation.
4070−ndtoNegotiationRounds :: Lens' NegotiationDTO [NegotiationRoundDTO]
4071−ndtoNegotiationRounds
4072− = lens _ndtoNegotiationRounds
4073− (\ s a -> s{_ndtoNegotiationRounds = a})
4074− . _Default
4075− . _Coerce
4076−
4077−ndtoKind :: Lens' NegotiationDTO Text
4078−ndtoKind = lens _ndtoKind (\ s a -> s{_ndtoKind = a})
4079−
4080−-- | The billed buyer; Specified by a buyer buying through an intermediary.
4081−ndtoBilledBuyer :: Lens' NegotiationDTO (Maybe DealPartyDTO)
4082−ndtoBilledBuyer
4083− = lens _ndtoBilledBuyer
4084− (\ s a -> s{_ndtoBilledBuyer = a})
4085−
4086−-- | The buyer party\'s contact email.
4087−ndtoBuyerEmailContacts :: Lens' NegotiationDTO [Text]
4088−ndtoBuyerEmailContacts
4089− = lens _ndtoBuyerEmailContacts
4090− (\ s a -> s{_ndtoBuyerEmailContacts = a})
4091− . _Default
4092− . _Coerce
4093−
4094−-- | The stats for this negotiation.
4095−ndtoStats :: Lens' NegotiationDTO (Maybe StatsDTO)
4096−ndtoStats
4097− = lens _ndtoStats (\ s a -> s{_ndtoStats = a})
4098−
4099−-- | Details of the seller party in this negotiation.
4100−ndtoSeller :: Lens' NegotiationDTO (Maybe DealPartyDTO)
4101−ndtoSeller
4102− = lens _ndtoSeller (\ s a -> s{_ndtoSeller = a})
4103−
4104−-- | A list of label names applicable to this negotiation.
4105−ndtoLabelNames :: Lens' NegotiationDTO [Text]
4106−ndtoLabelNames
4107− = lens _ndtoLabelNames
4108− (\ s a -> s{_ndtoLabelNames = a})
4109− . _Default
4110− . _Coerce
4111−
4112−-- | The ID of this negotiation\'s original offer.
4113−ndtoOfferId :: Lens' NegotiationDTO (Maybe Int64)
4114−ndtoOfferId
4115− = lens _ndtoOfferId (\ s a -> s{_ndtoOfferId = a}) .
4116− mapping _Coerce
4117−
4118−-- | The unique ID of this negotiation.
4119−ndtoNegotiationId :: Lens' NegotiationDTO (Maybe Int64)
4120−ndtoNegotiationId
4121− = lens _ndtoNegotiationId
4122− (\ s a -> s{_ndtoNegotiationId = a})
4123− . mapping _Coerce
4124−
4125−-- | The seller party\'s contact email.
4126−ndtoSellerEmailContacts :: Lens' NegotiationDTO [Text]
4127−ndtoSellerEmailContacts
4128− = lens _ndtoSellerEmailContacts
4129− (\ s a -> s{_ndtoSellerEmailContacts = a})
4130− . _Default
4131− . _Coerce
4132−
4133−-- | Details of the buyer party in this negotiation.
4134−ndtoBuyer :: Lens' NegotiationDTO (Maybe DealPartyDTO)
4135−ndtoBuyer
4136− = lens _ndtoBuyer (\ s a -> s{_ndtoBuyer = a})
4137−
4138−instance FromJSON NegotiationDTO where
4139− parseJSON
4140− = withObject "NegotiationDTO"
4141− (\ o ->
4142− NegotiationDTO <$>
4143− (o .:? "negotiationState") <*>
4144− (o .:? "externalDealId")
4145− <*> (o .:? "status")
4146− <*> (o .:? "dealType")
4147− <*> (o .:? "negotiationRounds" .!= mempty)
4148− <*> (o .:? "kind" .!= "adexchangebuyer#negotiation")
4149− <*> (o .:? "billedBuyer")
4150− <*> (o .:? "buyerEmailContacts" .!= mempty)
4151− <*> (o .:? "stats")
4152− <*> (o .:? "seller")
4153− <*> (o .:? "labelNames" .!= mempty)
4154− <*> (o .:? "offerId")
4155− <*> (o .:? "negotiationId")
4156− <*> (o .:? "sellerEmailContacts" .!= mempty)
4157− <*> (o .:? "buyer"))
4158−
4159−instance ToJSON NegotiationDTO where
4160− toJSON NegotiationDTO{..}
4161− = object
4162− (catMaybes
4163− [("negotiationState" .=) <$> _ndtoNegotiationState,
4164− ("externalDealId" .=) <$> _ndtoExternalDealId,
4165− ("status" .=) <$> _ndtoStatus,
4166− ("dealType" .=) <$> _ndtoDealType,
4167− ("negotiationRounds" .=) <$> _ndtoNegotiationRounds,
4168− Just ("kind" .= _ndtoKind),
4169− ("billedBuyer" .=) <$> _ndtoBilledBuyer,
4170− ("buyerEmailContacts" .=) <$>
4171− _ndtoBuyerEmailContacts,
4172− ("stats" .=) <$> _ndtoStats,
4173− ("seller" .=) <$> _ndtoSeller,
4174− ("labelNames" .=) <$> _ndtoLabelNames,
4175− ("offerId" .=) <$> _ndtoOfferId,
4176− ("negotiationId" .=) <$> _ndtoNegotiationId,
4177− ("sellerEmailContacts" .=) <$>
4178− _ndtoSellerEmailContacts,
4179− ("buyer" .=) <$> _ndtoBuyer])
4180−
4181−--
4182−-- /See:/ 'offerDTO' smart constructor.
4183−data OfferDTO = OfferDTO
4184− { _odtoCreator :: !(Maybe DealPartyDTO)
4185− , _odtoStatus :: !(Maybe Text)
4186− , _odtoOfferState :: !(Maybe Text)
4187− , _odtoPointOfContact :: !(Maybe Text)
4188− , _odtoTerms :: !(Maybe TermsDTO)
4189− , _odtoKind :: !Text
4190− , _odtoBilledBuyer :: !(Maybe DealPartyDTO)
4191− , _odtoOpenToDealParties :: !(Maybe [DealPartyDTO])
4192− , _odtoEmailContacts :: !(Maybe [Text])
4193− , _odtoLabelNames :: !(Maybe [Text])
4194− , _odtoOfferId :: !(Maybe (Textual Int64))
4195− , _odtoClosedToDealParties :: !(Maybe [DealPartyDTO])
4196− , _odtoAnonymous :: !(Maybe Bool)
4197− , _odtoIsOpen :: !(Maybe Bool)
4198− } deriving (Eq,Show,Data,Typeable,Generic)
4199−
4200−-- | Creates a value of 'OfferDTO' with the minimum fields required to make a request.
4201--
3182--
4202−-- Use one of the following lenses to modify other fields as desired:
3183+-- * 'pRevisionNumber'
4203--
3184--
4204−-- * 'odtoCreator'
3185+-- * 'pBilledBuyer'
4205--
3186--
4206−-- * 'odtoStatus'
3187+-- * 'pIsRenegotiating'
4207--
3188--
4208−-- * 'odtoOfferState'
3189+-- * 'pHasSellerSignedOff'
4209--
3190--
4210−-- * 'odtoPointOfContact'
3191+-- * 'pSeller'
4211--
3192--
4212−-- * 'odtoTerms'
3193+-- * 'pProposalId'
4213--
3194--
4214−-- * 'odtoKind'
3195+-- * 'pName'
4215--
3196--
4216−-- * 'odtoBilledBuyer'
3197+-- * 'pSellerContacts'
4217--
3198--
4218−-- * 'odtoOpenToDealParties'
3199+-- * 'pLastUpdaterRole'
4219--
3200--
4220−-- * 'odtoEmailContacts'
3201+-- * 'pLabels'
4221--
3202--
4222−-- * 'odtoLabelNames'
3203+-- * 'pRevisionTimeMs'
4223--
3204--
4224−-- * 'odtoOfferId'
3205+-- * 'pProposalState'
4225--
3206--
4226−-- * 'odtoClosedToDealParties'
3207+-- * 'pLastUpdaterOrCommentorRole'
4227--
3208--
4228−-- * 'odtoAnonymous'
3209+-- * 'pHasBuyerSignedOff'
4229--
3210--
4230−-- * 'odtoIsOpen'
3211+-- * 'pBuyer'
4231−offerDTO
3212+proposal
4232− :: OfferDTO
3213+ :: Proposal
4233−offerDTO =
3214+proposal =
4234− OfferDTO
3215+ Proposal
4235− { _odtoCreator = Nothing
3216+ { _pBuyerPrivateData = Nothing
4236− , _odtoStatus = Nothing
3217+ , _pIsSetupComplete = Nothing
4237− , _odtoOfferState = Nothing
3218+ , _pInventorySource = Nothing
4238− , _odtoPointOfContact = Nothing
3219+ , _pBuyerContacts = Nothing
4239− , _odtoTerms = Nothing
4240− , _odtoKind = "adexchangebuyer#offer"
3220+ , _pKind = "adexchangebuyer#proposal"
4241− , _odtoBilledBuyer = Nothing
3221+ , _pOriginatorRole = Nothing
4242− , _odtoOpenToDealParties = Nothing
3222+ , _pRevisionNumber = Nothing
4243− , _odtoEmailContacts = Nothing
3223+ , _pBilledBuyer = Nothing
4244− , _odtoLabelNames = Nothing
3224+ , _pIsRenegotiating = Nothing
4245− , _odtoOfferId = Nothing
3225+ , _pHasSellerSignedOff = Nothing
4246− , _odtoClosedToDealParties = Nothing
3226+ , _pSeller = Nothing
4247− , _odtoAnonymous = Nothing
3227+ , _pProposalId = Nothing
3228+ , _pName = Nothing
3229+ , _pSellerContacts = Nothing
3230+ , _pLastUpdaterRole = Nothing
3231+ , _pLabels = Nothing
3232+ , _pRevisionTimeMs = Nothing
3233+ , _pProposalState = Nothing
3234+ , _pLastUpdaterOrCommentorRole = Nothing
3235+ , _pHasBuyerSignedOff = Nothing
4248− , _odtoIsOpen = Nothing
3236+ , _pBuyer = Nothing
4249 }
3237 }
4250
3238
4251−-- | The creator of this offer.
3239+-- | Private data for buyer. (hidden from seller).
4252−odtoCreator :: Lens' OfferDTO (Maybe DealPartyDTO)
3240+pBuyerPrivateData :: Lens' Proposal (Maybe PrivateData)
4253−odtoCreator
3241+pBuyerPrivateData
4254− = lens _odtoCreator (\ s a -> s{_odtoCreator = a})
3242+ = lens _pBuyerPrivateData
4255−
3243+ (\ s a -> s{_pBuyerPrivateData = a})
4256−-- | The status of this offer.
4257−odtoStatus :: Lens' OfferDTO (Maybe Text)
4258−odtoStatus
4259− = lens _odtoStatus (\ s a -> s{_odtoStatus = a})
4260−
4261−-- | The state of this offer.
4262−odtoOfferState :: Lens' OfferDTO (Maybe Text)
4263−odtoOfferState
4264− = lens _odtoOfferState
4265− (\ s a -> s{_odtoOfferState = a})
4266−
4267−-- | The point of contact for this offer.
4268−odtoPointOfContact :: Lens' OfferDTO (Maybe Text)
4269−odtoPointOfContact
4270− = lens _odtoPointOfContact
4271− (\ s a -> s{_odtoPointOfContact = a})
4272−
4273−-- | The terms of this offer.
4274−odtoTerms :: Lens' OfferDTO (Maybe TermsDTO)
4275−odtoTerms
4276− = lens _odtoTerms (\ s a -> s{_odtoTerms = a})
4277−
4278−odtoKind :: Lens' OfferDTO Text
4279−odtoKind = lens _odtoKind (\ s a -> s{_odtoKind = a})
4280−
4281−-- | The billed buyer; For buyer initiated offers, buying through an
4282−-- intermediary.
4283−odtoBilledBuyer :: Lens' OfferDTO (Maybe DealPartyDTO)
4284−odtoBilledBuyer
4285− = lens _odtoBilledBuyer
4286− (\ s a -> s{_odtoBilledBuyer = a})
4287−
4288−-- | The list of buyer or seller parties this offer is open to.
4289−odtoOpenToDealParties :: Lens' OfferDTO [DealPartyDTO]
4290−odtoOpenToDealParties
4291− = lens _odtoOpenToDealParties
4292− (\ s a -> s{_odtoOpenToDealParties = a})
4293− . _Default
4294− . _Coerce
4295
3244
4296−-- | The list of email contacts for this offer.
3245+-- | True, if the buyside inventory setup is complete for this proposal.
4297−odtoEmailContacts :: Lens' OfferDTO [Text]
3246+-- (readonly)
4298−odtoEmailContacts
3247+pIsSetupComplete :: Lens' Proposal (Maybe Bool)
4299− = lens _odtoEmailContacts
3248+pIsSetupComplete
4300− (\ s a -> s{_odtoEmailContacts = a})
3249+ = lens _pIsSetupComplete
4301− . _Default
3250+ (\ s a -> s{_pIsSetupComplete = a})
4302− . _Coerce
3251+
3252+-- | What exchange will provide this inventory (readonly, except on create).
3253+pInventorySource :: Lens' Proposal (Maybe Text)
3254+pInventorySource
3255+ = lens _pInventorySource
3256+ (\ s a -> s{_pInventorySource = a})
4303
3257
4304−-- | The list of label names applicable to this offer.
3258+-- | Optional contact information fort the buyer. (seller-readonly)
4305−odtoLabelNames :: Lens' OfferDTO [Text]
3259+pBuyerContacts :: Lens' Proposal [ContactInformation]
4306−odtoLabelNames
3260+pBuyerContacts
4307− = lens _odtoLabelNames
3261+ = lens _pBuyerContacts
4308− (\ s a -> s{_odtoLabelNames = a})
3262+ (\ s a -> s{_pBuyerContacts = a})
4309 . _Default
3263 . _Default
4310 . _Coerce
3264 . _Coerce
4311
3265
4312−-- | The unique ID of this offer.
3266+-- | Identifies what kind of resource this is. Value: the fixed string
3267+-- \"adexchangebuyer#proposal\".
3268+pKind :: Lens' Proposal Text
3269+pKind = lens _pKind (\ s a -> s{_pKind = a})
3270+
3271+-- | Indicates whether the buyer\/seller created the proposal.(readonly)
3272+pOriginatorRole :: Lens' Proposal (Maybe Text)
3273+pOriginatorRole
3274+ = lens _pOriginatorRole
3275+ (\ s a -> s{_pOriginatorRole = a})
3276+
3277+-- | The revision number for the proposal (readonly).
4313−odtoOfferId :: Lens' OfferDTO (Maybe Int64)
3278+pRevisionNumber :: Lens' Proposal (Maybe Int64)
4314−odtoOfferId
3279+pRevisionNumber
4315− = lens _odtoOfferId (\ s a -> s{_odtoOfferId = a}) .
3280+ = lens _pRevisionNumber
3281+ (\ s a -> s{_pRevisionNumber = a})
4316− mapping _Coerce
3282+ . mapping _Coerce
4317
3283
4318−-- | The list of buyer or seller parties this offer is closed to.
3284+-- | Reference to the buyer that will get billed for this proposal.
4319−odtoClosedToDealParties :: Lens' OfferDTO [DealPartyDTO]
3285+-- (readonly)
4320−odtoClosedToDealParties
3286+pBilledBuyer :: Lens' Proposal (Maybe Buyer)
4321− = lens _odtoClosedToDealParties
3287+pBilledBuyer
4322− (\ s a -> s{_odtoClosedToDealParties = a})
3288+ = lens _pBilledBuyer (\ s a -> s{_pBilledBuyer = a})
3289+
3290+-- | True if the proposal is being renegotiated (readonly).
3291+pIsRenegotiating :: Lens' Proposal (Maybe Bool)
3292+pIsRenegotiating
3293+ = lens _pIsRenegotiating
3294+ (\ s a -> s{_pIsRenegotiating = a})
3295+
3296+-- | When an proposal is in an accepted state, indicates whether the buyer
3297+-- has signed off Once both sides have signed off on a deal, the proposal
3298+-- can be finalized by the seller. (buyer-readonly)
3299+pHasSellerSignedOff :: Lens' Proposal (Maybe Bool)
3300+pHasSellerSignedOff
3301+ = lens _pHasSellerSignedOff
3302+ (\ s a -> s{_pHasSellerSignedOff = a})
3303+
3304+-- | Reference to the seller on the proposal. (readonly, except on create)
3305+pSeller :: Lens' Proposal (Maybe Seller)
3306+pSeller = lens _pSeller (\ s a -> s{_pSeller = a})
3307+
3308+-- | The unique id of the proposal. (readonly).
3309+pProposalId :: Lens' Proposal (Maybe Text)
3310+pProposalId
3311+ = lens _pProposalId (\ s a -> s{_pProposalId = a})
3312+
3313+-- | The name for the proposal (updatable)
3314+pName :: Lens' Proposal (Maybe Text)
3315+pName = lens _pName (\ s a -> s{_pName = a})
3316+
3317+-- | Optional contact information for the seller (buyer-readonly).
3318+pSellerContacts :: Lens' Proposal [ContactInformation]
3319+pSellerContacts
3320+ = lens _pSellerContacts
3321+ (\ s a -> s{_pSellerContacts = a})
4323 . _Default
3322 . _Default
4324 . _Coerce
3323 . _Coerce
4325
3324
4326−-- | Whether this offer is anonymous.
3325+pLastUpdaterRole :: Lens' Proposal (Maybe Text)
4327−odtoAnonymous :: Lens' OfferDTO (Maybe Bool)
3326+pLastUpdaterRole
4328−odtoAnonymous
3327+ = lens _pLastUpdaterRole
4329− = lens _odtoAnonymous
3328+ (\ s a -> s{_pLastUpdaterRole = a})
4330− (\ s a -> s{_odtoAnonymous = a})
4331−
4332−-- | Whether this offer is open.
4333−odtoIsOpen :: Lens' OfferDTO (Maybe Bool)
4334−odtoIsOpen
4335− = lens _odtoIsOpen (\ s a -> s{_odtoIsOpen = a})
4336−
4337−instance FromJSON OfferDTO where
4338− parseJSON
4339− = withObject "OfferDTO"
4340− (\ o ->
4341− OfferDTO <$>
4342− (o .:? "creator") <*> (o .:? "status") <*>
4343− (o .:? "offerState")
4344− <*> (o .:? "pointOfContact")
4345− <*> (o .:? "terms")
4346− <*> (o .:? "kind" .!= "adexchangebuyer#offer")
4347− <*> (o .:? "billedBuyer")
4348− <*> (o .:? "openToDealParties" .!= mempty)
4349− <*> (o .:? "emailContacts" .!= mempty)
4350− <*> (o .:? "labelNames" .!= mempty)
4351− <*> (o .:? "offerId")
4352− <*> (o .:? "closedToDealParties" .!= mempty)
4353− <*> (o .:? "anonymous")
4354− <*> (o .:? "isOpen"))
4355−
4356−instance ToJSON OfferDTO where
4357− toJSON OfferDTO{..}
4358− = object
4359− (catMaybes
4360− [("creator" .=) <$> _odtoCreator,
4361− ("status" .=) <$> _odtoStatus,
4362− ("offerState" .=) <$> _odtoOfferState,
4363− ("pointOfContact" .=) <$> _odtoPointOfContact,
4364− ("terms" .=) <$> _odtoTerms,
4365− Just ("kind" .= _odtoKind),
4366− ("billedBuyer" .=) <$> _odtoBilledBuyer,
4367− ("openToDealParties" .=) <$> _odtoOpenToDealParties,
4368− ("emailContacts" .=) <$> _odtoEmailContacts,
4369− ("labelNames" .=) <$> _odtoLabelNames,
4370− ("offerId" .=) <$> _odtoOfferId,
4371− ("closedToDealParties" .=) <$>
4372− _odtoClosedToDealParties,
4373− ("anonymous" .=) <$> _odtoAnonymous,
4374− ("isOpen" .=) <$> _odtoIsOpen])
4375−
4376−--
4377−-- /See:/ 'audienceSegment' smart constructor.
4378−data AudienceSegment = AudienceSegment
4379− { _asNumCookies :: !(Maybe (Textual Int64))
4380− , _asName :: !(Maybe Text)
4381− , _asId :: !(Maybe (Textual Int64))
4382− , _asDescription :: !(Maybe Text)
4383− } deriving (Eq,Show,Data,Typeable,Generic)
4384
3329
4385−-- | Creates a value of 'AudienceSegment' with the minimum fields required to make a request.
3330+-- | List of labels associated with the proposal. (readonly)
4386−--
3331+pLabels :: Lens' Proposal [MarketplaceLabel]
4387−-- Use one of the following lenses to modify other fields as desired:
3332+pLabels
4388−--
3333+ = lens _pLabels (\ s a -> s{_pLabels = a}) . _Default
4389−-- * 'asNumCookies'
3334+ . _Coerce
4390−--
4391−-- * 'asName'
4392−--
4393−-- * 'asId'
4394−--
4395−-- * 'asDescription'
4396−audienceSegment
4397− :: AudienceSegment
4398−audienceSegment =
4399− AudienceSegment
4400− { _asNumCookies = Nothing
4401− , _asName = Nothing
4402− , _asId = Nothing
4403− , _asDescription = Nothing
4404− }
4405
3335
4406−asNumCookies :: Lens' AudienceSegment (Maybe Int64)
3336+-- | The time (ms since epoch) when the proposal was last revised (readonly).
4407−asNumCookies
3337+pRevisionTimeMs :: Lens' Proposal (Maybe Int64)
4408− = lens _asNumCookies (\ s a -> s{_asNumCookies = a})
3338+pRevisionTimeMs
3339+ = lens _pRevisionTimeMs
3340+ (\ s a -> s{_pRevisionTimeMs = a})
4409 . mapping _Coerce
3341 . mapping _Coerce
4410
3342
4411−asName :: Lens' AudienceSegment (Maybe Text)
3343+-- | The current state of the proposal. (readonly)
4412−asName = lens _asName (\ s a -> s{_asName = a})
3344+pProposalState :: Lens' Proposal (Maybe Text)
3345+pProposalState
3346+ = lens _pProposalState
3347+ (\ s a -> s{_pProposalState = a})
4413
3348
4414−asId :: Lens' AudienceSegment (Maybe Int64)
3349+-- | The role of the last user that either updated the proposal or left a
4415−asId
3350+-- comment. (readonly)
4416− = lens _asId (\ s a -> s{_asId = a}) .
3351+pLastUpdaterOrCommentorRole :: Lens' Proposal (Maybe Text)
4417− mapping _Coerce
3352+pLastUpdaterOrCommentorRole
4418−
3353+ = lens _pLastUpdaterOrCommentorRole
4419−asDescription :: Lens' AudienceSegment (Maybe Text)
3354+ (\ s a -> s{_pLastUpdaterOrCommentorRole = a})
4420−asDescription
3355+
4421− = lens _asDescription
3356+-- | When an proposal is in an accepted state, indicates whether the buyer
4422− (\ s a -> s{_asDescription = a})
3357+-- has signed off Once both sides have signed off on a deal, the proposal
4423−
3358+-- can be finalized by the seller. (seller-readonly)
3359+pHasBuyerSignedOff :: Lens' Proposal (Maybe Bool)
3360+pHasBuyerSignedOff
3361+ = lens _pHasBuyerSignedOff
3362+ (\ s a -> s{_pHasBuyerSignedOff = a})
3363+
3364+-- | Reference to the buyer on the proposal. (readonly, except on create)
3365+pBuyer :: Lens' Proposal (Maybe Buyer)
3366+pBuyer = lens _pBuyer (\ s a -> s{_pBuyer = a})
3367+
4424−instance FromJSON AudienceSegment where
3368+instance FromJSON Proposal where
4425 parseJSON
3369 parseJSON
4426− = withObject "AudienceSegment"
3370+ = withObject "Proposal"
4427 (\ o ->
3371 (\ o ->
4428− AudienceSegment <$>
3372+ Proposal <$>
3373+ (o .:? "buyerPrivateData") <*>
3374+ (o .:? "isSetupComplete")
3375+ <*> (o .:? "inventorySource")
3376+ <*> (o .:? "buyerContacts" .!= mempty)
3377+ <*> (o .:? "kind" .!= "adexchangebuyer#proposal")
3378+ <*> (o .:? "originatorRole")
3379+ <*> (o .:? "revisionNumber")
3380+ <*> (o .:? "billedBuyer")
3381+ <*> (o .:? "isRenegotiating")
3382+ <*> (o .:? "hasSellerSignedOff")
3383+ <*> (o .:? "seller")
3384+ <*> (o .:? "proposalId")
4429− (o .:? "numCookies") <*> (o .:? "name") <*>
3385+ <*> (o .:? "name")
4430− (o .:? "id")
3386+ <*> (o .:? "sellerContacts" .!= mempty)
4431− <*> (o .:? "description"))
3387+ <*> (o .:? "lastUpdaterRole")
3388+ <*> (o .:? "labels" .!= mempty)
3389+ <*> (o .:? "revisionTimeMs")
3390+ <*> (o .:? "proposalState")
3391+ <*> (o .:? "lastUpdaterOrCommentorRole")
3392+ <*> (o .:? "hasBuyerSignedOff")
3393+ <*> (o .:? "buyer"))
4432
3394
4433−instance ToJSON AudienceSegment where
3395+instance ToJSON Proposal where
4434− toJSON AudienceSegment{..}
3396+ toJSON Proposal{..}
4435 = object
3397 = object
4436 (catMaybes
3398 (catMaybes
4437− [("numCookies" .=) <$> _asNumCookies,
3399+ [("buyerPrivateData" .=) <$> _pBuyerPrivateData,
4438− ("name" .=) <$> _asName, ("id" .=) <$> _asId,
3400+ ("isSetupComplete" .=) <$> _pIsSetupComplete,
4439− ("description" .=) <$> _asDescription])
3401+ ("inventorySource" .=) <$> _pInventorySource,
3402+ ("buyerContacts" .=) <$> _pBuyerContacts,
3403+ Just ("kind" .= _pKind),
3404+ ("originatorRole" .=) <$> _pOriginatorRole,
3405+ ("revisionNumber" .=) <$> _pRevisionNumber,
3406+ ("billedBuyer" .=) <$> _pBilledBuyer,
3407+ ("isRenegotiating" .=) <$> _pIsRenegotiating,
3408+ ("hasSellerSignedOff" .=) <$> _pHasSellerSignedOff,
3409+ ("seller" .=) <$> _pSeller,
3410+ ("proposalId" .=) <$> _pProposalId,
3411+ ("name" .=) <$> _pName,
3412+ ("sellerContacts" .=) <$> _pSellerContacts,
3413+ ("lastUpdaterRole" .=) <$> _pLastUpdaterRole,
3414+ ("labels" .=) <$> _pLabels,
3415+ ("revisionTimeMs" .=) <$> _pRevisionTimeMs,
3416+ ("proposalState" .=) <$> _pProposalState,
3417+ ("lastUpdaterOrCommentorRole" .=) <$>
3418+ _pLastUpdaterOrCommentorRole,
3419+ ("hasBuyerSignedOff" .=) <$> _pHasBuyerSignedOff,
3420+ ("buyer" .=) <$> _pBuyer])
4440
3421
4441-- | A billing info feed lists Billing Info the Ad Exchange buyer account has
3422-- | A billing info feed lists Billing Info the Ad Exchange buyer account has
4442-- access to. Each entry in the feed corresponds to a single billing info.
3423-- access to. Each entry in the feed corresponds to a single billing info.
@@ -4488,520 +3469,86 @@ instance ToJSON BillingInfoList where
4488 [Just ("kind" .= _bilKind),
3469 [Just ("kind" .= _bilKind),
4489 ("items" .=) <$> _bilItems])
3470 ("items" .=) <$> _bilItems])
4490
3471
4491−-- | An offer is segment of inventory that a seller wishes to sell. It is
4492−-- associated with certain terms and targeting information which helps
4493−-- buyer know more about the inventory. Each field in an order can have one
4494−-- of the following setting: (readonly) - It is an error to try and set
4495−-- this field. (buyer-readonly) - Only the seller can set this field.
4496−-- (seller-readonly) - Only the buyer can set this field. (updatable) - The
4497−-- field is updatable at all times by either buyer or the seller.
4498--
3472--
4499−-- /See:/ 'marketplaceOffer' smart constructor.
3473+-- /See:/ 'addOrderNotesResponse' smart constructor.
4500−data MarketplaceOffer = MarketplaceOffer
3474+newtype AddOrderNotesResponse = AddOrderNotesResponse
4501− { _moState :: !(Maybe Text)
3475+ { _aNotes :: Maybe [MarketplaceNote]
4502− , _moWebPropertyCode :: !(Maybe Text)
4503− , _moCreationTimeMs :: !(Maybe (Textual Int64))
4504− , _moTerms :: !(Maybe DealTerms)
4505− , _moLastUpdateTimeMs :: !(Maybe (Textual Int64))
4506− , _moKind :: !Text
4507− , _moRevisionNumber :: !(Maybe (Textual Int64))
4508− , _moHasCreatorSignedOff :: !(Maybe Bool)
4509− , _moFlightStartTimeMs :: !(Maybe (Textual Int64))
4510− , _moSharedTargetings :: !(Maybe [SharedTargeting])
4511− , _moSeller :: !(Maybe Seller)
4512− , _moSyndicationProduct :: !(Maybe Text)
4513− , _moFlightEndTimeMs :: !(Maybe (Textual Int64))
4514− , _moName :: !(Maybe Text)
4515− , _moCreatorContacts :: !(Maybe [ContactInformation])
4516− , _moOfferId :: !(Maybe Text)
4517− , _moLabels :: !(Maybe [MarketplaceLabel])
4518 } deriving (Eq,Show,Data,Typeable,Generic)
3476 } deriving (Eq,Show,Data,Typeable,Generic)
4519
3477
4520−-- | Creates a value of 'MarketplaceOffer' with the minimum fields required to make a request.
3478+-- | Creates a value of 'AddOrderNotesResponse' with the minimum fields required to make a request.
4521--
3479--
4522-- Use one of the following lenses to modify other fields as desired:
3480-- Use one of the following lenses to modify other fields as desired:
4523--
3481--
4524−-- * 'moState'
3482+-- * 'aNotes'
4525−--
3483+addOrderNotesResponse
4526−-- * 'moWebPropertyCode'
3484+ :: AddOrderNotesResponse
4527−--
3485+addOrderNotesResponse =
4528−-- * 'moCreationTimeMs'
3486+ AddOrderNotesResponse
4529−--
3487+ { _aNotes = Nothing
4530−-- * 'moTerms'
3488+ }
4531−--
3489+
4532−-- * 'moLastUpdateTimeMs'
3490+aNotes :: Lens' AddOrderNotesResponse [MarketplaceNote]
4533−--
3491+aNotes
4534−-- * 'moKind'
3492+ = lens _aNotes (\ s a -> s{_aNotes = a}) . _Default .
4535−--
3493+ _Coerce
4536−-- * 'moRevisionNumber'
3494+
4537−--
3495+instance FromJSON AddOrderNotesResponse where
4538−-- * 'moHasCreatorSignedOff'
3496+ parseJSON
4539−--
3497+ = withObject "AddOrderNotesResponse"
4540−-- * 'moFlightStartTimeMs'
3498+ (\ o ->
4541−--
3499+ AddOrderNotesResponse <$> (o .:? "notes" .!= mempty))
4542−-- * 'moSharedTargetings'
3500+
4543−--
3501+instance ToJSON AddOrderNotesResponse where
4544−-- * 'moSeller'
3502+ toJSON AddOrderNotesResponse{..}
4545−--
3503+ = object (catMaybes [("notes" .=) <$> _aNotes])
4546−-- * 'moSyndicationProduct'
3504+
4547−--
4548−-- * 'moFlightEndTimeMs'
4549--
3505--
4550−-- * 'moName'
3506+-- /See:/ 'targetingValueSize' smart constructor.
3507+data TargetingValueSize = TargetingValueSize
3508+ { _tvsHeight :: !(Maybe (Textual Int32))
3509+ , _tvsWidth :: !(Maybe (Textual Int32))
3510+ } deriving (Eq,Show,Data,Typeable,Generic)
3511+
3512+-- | Creates a value of 'TargetingValueSize' with the minimum fields required to make a request.
4551--
3513--
4552−-- * 'moCreatorContacts'
3514+-- Use one of the following lenses to modify other fields as desired:
4553--
3515--
4554−-- * 'moOfferId'
3516+-- * 'tvsHeight'
4555--
3517--
4556−-- * 'moLabels'
3518+-- * 'tvsWidth'
4557−marketplaceOffer
3519+targetingValueSize
4558− :: MarketplaceOffer
3520+ :: TargetingValueSize
4559−marketplaceOffer =
3521+targetingValueSize =
4560− MarketplaceOffer
3522+ TargetingValueSize
4561− { _moState = Nothing
4562− , _moWebPropertyCode = Nothing
4563− , _moCreationTimeMs = Nothing
4564− , _moTerms = Nothing
4565− , _moLastUpdateTimeMs = Nothing
4566− , _moKind = "adexchangebuyer#marketplaceOffer"
4567− , _moRevisionNumber = Nothing
4568− , _moHasCreatorSignedOff = Nothing
4569− , _moFlightStartTimeMs = Nothing
4570− , _moSharedTargetings = Nothing
4571− , _moSeller = Nothing
4572− , _moSyndicationProduct = Nothing
4573− , _moFlightEndTimeMs = Nothing
4574− , _moName = Nothing
4575− , _moCreatorContacts = Nothing
4576− , _moOfferId = Nothing
3523+ { _tvsHeight = Nothing
4577− , _moLabels = Nothing
3524+ , _tvsWidth = Nothing
4578 }
3525 }
4579
3526
4580−-- | The state of the offer. (buyer-readonly)
3527+-- | The height of the creative.
4581−moState :: Lens' MarketplaceOffer (Maybe Text)
3528+tvsHeight :: Lens' TargetingValueSize (Maybe Int32)
4582−moState = lens _moState (\ s a -> s{_moState = a})
3529+tvsHeight
3530+ = lens _tvsHeight (\ s a -> s{_tvsHeight = a}) .
3531+ mapping _Coerce
4583
3532
4584−moWebPropertyCode :: Lens' MarketplaceOffer (Maybe Text)
3533+-- | The width of the creative.
4585−moWebPropertyCode
3534+tvsWidth :: Lens' TargetingValueSize (Maybe Int32)
4586− = lens _moWebPropertyCode
3535+tvsWidth
4587− (\ s a -> s{_moWebPropertyCode = a})
3536+ = lens _tvsWidth (\ s a -> s{_tvsWidth = a}) .
3537+ mapping _Coerce
4588
3538
4589−-- | Creation time in ms. since epoch (readonly)
3539+instance FromJSON TargetingValueSize where
4590−moCreationTimeMs :: Lens' MarketplaceOffer (Maybe Int64)
3540+ parseJSON
4591−moCreationTimeMs
3541+ = withObject "TargetingValueSize"
4592− = lens _moCreationTimeMs
3542+ (\ o ->
4593− (\ s a -> s{_moCreationTimeMs = a})
3543+ TargetingValueSize <$>
4594− . mapping _Coerce
3544+ (o .:? "height") <*> (o .:? "width"))
4595
3545
4596−-- | The negotiable terms of the deal (buyer-readonly)
4597−moTerms :: Lens' MarketplaceOffer (Maybe DealTerms)
4598−moTerms = lens _moTerms (\ s a -> s{_moTerms = a})
4599−
4600−-- | Time of last update in ms. since epoch (readonly)
4601−moLastUpdateTimeMs :: Lens' MarketplaceOffer (Maybe Int64)
4602−moLastUpdateTimeMs
4603− = lens _moLastUpdateTimeMs
4604− (\ s a -> s{_moLastUpdateTimeMs = a})
4605− . mapping _Coerce
4606−
4607−-- | Identifies what kind of resource this is. Value: the fixed string
4608−-- \"adexchangebuyer#marketplaceOffer\".
4609−moKind :: Lens' MarketplaceOffer Text
4610−moKind = lens _moKind (\ s a -> s{_moKind = a})
4611−
4612−-- | The revision number of the offer. (readonly)
4613−moRevisionNumber :: Lens' MarketplaceOffer (Maybe Int64)
4614−moRevisionNumber
4615− = lens _moRevisionNumber
4616− (\ s a -> s{_moRevisionNumber = a})
4617− . mapping _Coerce
4618−
4619−-- | If the creator has already signed off on the offer, then the buyer can
4620−-- finalize the deal by accepting the offer as is. When copying to an
4621−-- order, if any of the terms are changed, then auto_finalize is
4622−-- automatically set to false.
4623−moHasCreatorSignedOff :: Lens' MarketplaceOffer (Maybe Bool)
4624−moHasCreatorSignedOff
4625− = lens _moHasCreatorSignedOff
4626− (\ s a -> s{_moHasCreatorSignedOff = a})
4627−
4628−-- | Inventory availability dates. (times are in ms since epoch) The
4629−-- granularity is generally in the order of seconds. (buyer-readonly)
4630−moFlightStartTimeMs :: Lens' MarketplaceOffer (Maybe Int64)
4631−moFlightStartTimeMs
4632− = lens _moFlightStartTimeMs
4633− (\ s a -> s{_moFlightStartTimeMs = a})
4634− . mapping _Coerce
4635−
4636−-- | Targeting that is shared between the buyer and the seller. Each
4637−-- targeting criteria has a specified key and for each key there is a list
4638−-- of inclusion value or exclusion values. (buyer-readonly)
4639−moSharedTargetings :: Lens' MarketplaceOffer [SharedTargeting]
4640−moSharedTargetings
4641− = lens _moSharedTargetings
4642− (\ s a -> s{_moSharedTargetings = a})
4643− . _Default
4644− . _Coerce
4645−
4646−-- | Information about the seller that created this offer (readonly, except
4647−-- on create)
4648−moSeller :: Lens' MarketplaceOffer (Maybe Seller)
4649−moSeller = lens _moSeller (\ s a -> s{_moSeller = a})
4650−
4651−-- | The syndication product associated with the deal. (readonly, except on
4652−-- create)
4653−moSyndicationProduct :: Lens' MarketplaceOffer (Maybe Text)
4654−moSyndicationProduct
4655− = lens _moSyndicationProduct
4656− (\ s a -> s{_moSyndicationProduct = a})
4657−
4658−-- | The proposed end time for the deal (ms since epoch) (buyer-readonly)
4659−moFlightEndTimeMs :: Lens' MarketplaceOffer (Maybe Int64)
4660−moFlightEndTimeMs
4661− = lens _moFlightEndTimeMs
4662− (\ s a -> s{_moFlightEndTimeMs = a})
4663− . mapping _Coerce
4664−
4665−-- | The name for this offer as set by the seller. (buyer-readonly)
4666−moName :: Lens' MarketplaceOffer (Maybe Text)
4667−moName = lens _moName (\ s a -> s{_moName = a})
4668−
4669−-- | Optional contact information for the creator of this offer.
4670−-- (buyer-readonly)
4671−moCreatorContacts :: Lens' MarketplaceOffer [ContactInformation]
4672−moCreatorContacts
4673− = lens _moCreatorContacts
4674− (\ s a -> s{_moCreatorContacts = a})
4675− . _Default
4676− . _Coerce
4677−
4678−-- | The unique id for the offer (readonly)
4679−moOfferId :: Lens' MarketplaceOffer (Maybe Text)
4680−moOfferId
4681− = lens _moOfferId (\ s a -> s{_moOfferId = a})
4682−
4683−-- | Optional List of labels for the offer (optional, buyer-readonly).
4684−moLabels :: Lens' MarketplaceOffer [MarketplaceLabel]
4685−moLabels
4686− = lens _moLabels (\ s a -> s{_moLabels = a}) .
4687− _Default
4688− . _Coerce
4689−
4690−instance FromJSON MarketplaceOffer where
4691− parseJSON
4692− = withObject "MarketplaceOffer"
4693− (\ o ->
4694− MarketplaceOffer <$>
4695− (o .:? "state") <*> (o .:? "webPropertyCode") <*>
4696− (o .:? "creationTimeMs")
4697− <*> (o .:? "terms")
4698− <*> (o .:? "lastUpdateTimeMs")
4699− <*>
4700− (o .:? "kind" .!= "adexchangebuyer#marketplaceOffer")
4701− <*> (o .:? "revisionNumber")
4702− <*> (o .:? "hasCreatorSignedOff")
4703− <*> (o .:? "flightStartTimeMs")
4704− <*> (o .:? "sharedTargetings" .!= mempty)
4705− <*> (o .:? "seller")
4706− <*> (o .:? "syndicationProduct")
4707− <*> (o .:? "flightEndTimeMs")
4708− <*> (o .:? "name")
4709− <*> (o .:? "creatorContacts" .!= mempty)
4710− <*> (o .:? "offerId")
4711− <*> (o .:? "labels" .!= mempty))
4712−
4713−instance ToJSON MarketplaceOffer where
4714− toJSON MarketplaceOffer{..}
4715− = object
4716− (catMaybes
4717− [("state" .=) <$> _moState,
4718− ("webPropertyCode" .=) <$> _moWebPropertyCode,
4719− ("creationTimeMs" .=) <$> _moCreationTimeMs,
4720− ("terms" .=) <$> _moTerms,
4721− ("lastUpdateTimeMs" .=) <$> _moLastUpdateTimeMs,
4722− Just ("kind" .= _moKind),
4723− ("revisionNumber" .=) <$> _moRevisionNumber,
4724− ("hasCreatorSignedOff" .=) <$>
4725− _moHasCreatorSignedOff,
4726− ("flightStartTimeMs" .=) <$> _moFlightStartTimeMs,
4727− ("sharedTargetings" .=) <$> _moSharedTargetings,
4728− ("seller" .=) <$> _moSeller,
4729− ("syndicationProduct" .=) <$> _moSyndicationProduct,
4730− ("flightEndTimeMs" .=) <$> _moFlightEndTimeMs,
4731− ("name" .=) <$> _moName,
4732− ("creatorContacts" .=) <$> _moCreatorContacts,
4733− ("offerId" .=) <$> _moOfferId,
4734− ("labels" .=) <$> _moLabels])
4735−
4736−--
4737−-- /See:/ 'addOrderNotesResponse' smart constructor.
4738−newtype AddOrderNotesResponse = AddOrderNotesResponse
4739− { _aNotes :: Maybe [MarketplaceNote]
4740− } deriving (Eq,Show,Data,Typeable,Generic)
4741−
4742−-- | Creates a value of 'AddOrderNotesResponse' with the minimum fields required to make a request.
4743−--
4744−-- Use one of the following lenses to modify other fields as desired:
4745−--
4746−-- * 'aNotes'
4747−addOrderNotesResponse
4748− :: AddOrderNotesResponse
4749−addOrderNotesResponse =
4750− AddOrderNotesResponse
4751− { _aNotes = Nothing
4752− }
4753−
4754−aNotes :: Lens' AddOrderNotesResponse [MarketplaceNote]
4755−aNotes
4756− = lens _aNotes (\ s a -> s{_aNotes = a}) . _Default .
4757− _Coerce
4758−
4759−instance FromJSON AddOrderNotesResponse where
4760− parseJSON
4761− = withObject "AddOrderNotesResponse"
4762− (\ o ->
4763− AddOrderNotesResponse <$> (o .:? "notes" .!= mempty))
4764−
4765−instance ToJSON AddOrderNotesResponse where
4766− toJSON AddOrderNotesResponse{..}
4767− = object (catMaybes [("notes" .=) <$> _aNotes])
4768−
4769−--
4770−-- /See:/ 'targetingValueSize' smart constructor.
4771−data TargetingValueSize = TargetingValueSize
4772− { _tvsHeight :: !(Maybe (Textual Int32))
4773− , _tvsWidth :: !(Maybe (Textual Int32))
4774− } deriving (Eq,Show,Data,Typeable,Generic)
4775−
4776−-- | Creates a value of 'TargetingValueSize' with the minimum fields required to make a request.
4777−--
4778−-- Use one of the following lenses to modify other fields as desired:
4779−--
4780−-- * 'tvsHeight'
4781−--
4782−-- * 'tvsWidth'
4783−targetingValueSize
4784− :: TargetingValueSize
4785−targetingValueSize =
4786− TargetingValueSize
4787− { _tvsHeight = Nothing
4788− , _tvsWidth = Nothing
4789− }
4790−
4791−-- | The height of the creative.
4792−tvsHeight :: Lens' TargetingValueSize (Maybe Int32)
4793−tvsHeight
4794− = lens _tvsHeight (\ s a -> s{_tvsHeight = a}) .
4795− mapping _Coerce
4796−
4797−-- | The width of the creative.
4798−tvsWidth :: Lens' TargetingValueSize (Maybe Int32)
4799−tvsWidth
4800− = lens _tvsWidth (\ s a -> s{_tvsWidth = a}) .
4801− mapping _Coerce
4802−
4803−instance FromJSON TargetingValueSize where
4804− parseJSON
4805− = withObject "TargetingValueSize"
4806− (\ o ->
4807− TargetingValueSize <$>
4808− (o .:? "height") <*> (o .:? "width"))
4809−
4810−instance ToJSON TargetingValueSize where
3546+instance ToJSON TargetingValueSize where
4811− toJSON TargetingValueSize{..}
3547+ toJSON TargetingValueSize{..}
4812− = object
3548+ = object
4813− (catMaybes
3549+ (catMaybes
4814− [("height" .=) <$> _tvsHeight,
3550+ [("height" .=) <$> _tvsHeight,
4815− ("width" .=) <$> _tvsWidth])
3551+ ("width" .=) <$> _tvsWidth])
4816−
4817−--
4818−-- /See:/ 'getNegotiationsRequest' smart constructor.
4819−data GetNegotiationsRequest = GetNegotiationsRequest
4820− { _gnrSinceTimestampMillis :: !(Maybe (Textual Int64))
4821− , _gnrFinalized :: !(Maybe Bool)
4822− , _gnrIncludePrivateAuctions :: !(Maybe Bool)
4823− } deriving (Eq,Show,Data,Typeable,Generic)
4824−
4825−-- | Creates a value of 'GetNegotiationsRequest' with the minimum fields required to make a request.
4826−--
4827−-- Use one of the following lenses to modify other fields as desired:
4828−--
4829−-- * 'gnrSinceTimestampMillis'
4830−--
4831−-- * 'gnrFinalized'
4832−--
4833−-- * 'gnrIncludePrivateAuctions'
4834−getNegotiationsRequest
4835− :: GetNegotiationsRequest
4836−getNegotiationsRequest =
4837− GetNegotiationsRequest
4838− { _gnrSinceTimestampMillis = Nothing
4839− , _gnrFinalized = Nothing
4840− , _gnrIncludePrivateAuctions = Nothing
4841− }
4842−
4843−gnrSinceTimestampMillis :: Lens' GetNegotiationsRequest (Maybe Int64)
4844−gnrSinceTimestampMillis
4845− = lens _gnrSinceTimestampMillis
4846− (\ s a -> s{_gnrSinceTimestampMillis = a})
4847− . mapping _Coerce
4848−
4849−gnrFinalized :: Lens' GetNegotiationsRequest (Maybe Bool)
4850−gnrFinalized
4851− = lens _gnrFinalized (\ s a -> s{_gnrFinalized = a})
4852−
4853−gnrIncludePrivateAuctions :: Lens' GetNegotiationsRequest (Maybe Bool)
4854−gnrIncludePrivateAuctions
4855− = lens _gnrIncludePrivateAuctions
4856− (\ s a -> s{_gnrIncludePrivateAuctions = a})
4857−
4858−instance FromJSON GetNegotiationsRequest where
4859− parseJSON
4860− = withObject "GetNegotiationsRequest"
4861− (\ o ->
4862− GetNegotiationsRequest <$>
4863− (o .:? "sinceTimestampMillis") <*>
4864− (o .:? "finalized")
4865− <*> (o .:? "includePrivateAuctions"))
4866−
4867−instance ToJSON GetNegotiationsRequest where
4868− toJSON GetNegotiationsRequest{..}
4869− = object
4870− (catMaybes
4871− [("sinceTimestampMillis" .=) <$>
4872− _gnrSinceTimestampMillis,
4873− ("finalized" .=) <$> _gnrFinalized,
4874− ("includePrivateAuctions" .=) <$>
4875− _gnrIncludePrivateAuctions])
4876−
4877−--
4878−-- /See:/ 'moneyDTO' smart constructor.
4879−data MoneyDTO = MoneyDTO
4880− { _mdtoCurrencyCode :: !(Maybe Text)
4881− , _mdtoMicros :: !(Maybe (Textual Int64))
4882− } deriving (Eq,Show,Data,Typeable,Generic)
4883−
4884−-- | Creates a value of 'MoneyDTO' with the minimum fields required to make a request.
4885−--
4886−-- Use one of the following lenses to modify other fields as desired:
4887−--
4888−-- * 'mdtoCurrencyCode'
4889−--
4890−-- * 'mdtoMicros'
4891−moneyDTO
4892− :: MoneyDTO
4893−moneyDTO =
4894− MoneyDTO
4895− { _mdtoCurrencyCode = Nothing
4896− , _mdtoMicros = Nothing
4897− }
4898−
4899−mdtoCurrencyCode :: Lens' MoneyDTO (Maybe Text)
4900−mdtoCurrencyCode
4901− = lens _mdtoCurrencyCode
4902− (\ s a -> s{_mdtoCurrencyCode = a})
4903−
4904−mdtoMicros :: Lens' MoneyDTO (Maybe Int64)
4905−mdtoMicros
4906− = lens _mdtoMicros (\ s a -> s{_mdtoMicros = a}) .
4907− mapping _Coerce
4908−
4909−instance FromJSON MoneyDTO where
4910− parseJSON
4911− = withObject "MoneyDTO"
4912− (\ o ->
4913− MoneyDTO <$>
4914− (o .:? "currencyCode") <*> (o .:? "micros"))
4915−
4916−instance ToJSON MoneyDTO where
4917− toJSON MoneyDTO{..}
4918− = object
4919− (catMaybes
4920− [("currencyCode" .=) <$> _mdtoCurrencyCode,
4921− ("micros" .=) <$> _mdtoMicros])
4922−
4923−--
4924−-- /See:/ 'getNegotiationByIdRequest' smart constructor.
4925−newtype GetNegotiationByIdRequest = GetNegotiationByIdRequest
4926− { _gnbirIncludePrivateAuctions :: Maybe Bool
4927− } deriving (Eq,Show,Data,Typeable,Generic)
4928−
4929−-- | Creates a value of 'GetNegotiationByIdRequest' with the minimum fields required to make a request.
4930−--
4931−-- Use one of the following lenses to modify other fields as desired:
4932−--
4933−-- * 'gnbirIncludePrivateAuctions'
4934−getNegotiationByIdRequest
4935− :: GetNegotiationByIdRequest
4936−getNegotiationByIdRequest =
4937− GetNegotiationByIdRequest
4938− { _gnbirIncludePrivateAuctions = Nothing
4939− }
4940−
4941−gnbirIncludePrivateAuctions :: Lens' GetNegotiationByIdRequest (Maybe Bool)
4942−gnbirIncludePrivateAuctions
4943− = lens _gnbirIncludePrivateAuctions
4944− (\ s a -> s{_gnbirIncludePrivateAuctions = a})
4945−
4946−instance FromJSON GetNegotiationByIdRequest where
4947− parseJSON
4948− = withObject "GetNegotiationByIdRequest"
4949− (\ o ->
4950− GetNegotiationByIdRequest <$>
4951− (o .:? "includePrivateAuctions"))
4952−
4953−instance ToJSON GetNegotiationByIdRequest where
4954− toJSON GetNegotiationByIdRequest{..}
4955− = object
4956− (catMaybes
4957− [("includePrivateAuctions" .=) <$>
4958− _gnbirIncludePrivateAuctions])
4959−
4960−--
4961−-- /See:/ 'listOffersResponse' smart constructor.
4962−data ListOffersResponse = ListOffersResponse
4963− { _lorKind :: !Text
4964− , _lorOffers :: !(Maybe [OfferDTO])
4965− } deriving (Eq,Show,Data,Typeable,Generic)
4966−
4967−-- | Creates a value of 'ListOffersResponse' with the minimum fields required to make a request.
4968−--
4969−-- Use one of the following lenses to modify other fields as desired:
4970−--
4971−-- * 'lorKind'
4972−--
4973−-- * 'lorOffers'
4974−listOffersResponse
4975− :: ListOffersResponse
4976−listOffersResponse =
4977− ListOffersResponse
4978− { _lorKind = "adexchangebuyer#offersList"
4979− , _lorOffers = Nothing
4980− }
4981−
4982−lorKind :: Lens' ListOffersResponse Text
4983−lorKind = lens _lorKind (\ s a -> s{_lorKind = a})
4984−
4985−lorOffers :: Lens' ListOffersResponse [OfferDTO]
4986−lorOffers
4987− = lens _lorOffers (\ s a -> s{_lorOffers = a}) .
4988− _Default
4989− . _Coerce
4990−
4991−instance FromJSON ListOffersResponse where
4992− parseJSON
4993− = withObject "ListOffersResponse"
4994− (\ o ->
4995− ListOffersResponse <$>
4996− (o .:? "kind" .!= "adexchangebuyer#offersList") <*>
4997− (o .:? "offers" .!= mempty))
4998−
4999−instance ToJSON ListOffersResponse where
5000− toJSON ListOffersResponse{..}
5001− = object
5002− (catMaybes
5003− [Just ("kind" .= _lorKind),
5004− ("offers" .=) <$> _lorOffers])
5005
3552
5006--
3553--
5007-- /See:/ 'pretargetingConfigDimensionsItem' smart constructor.
3554-- /See:/ 'pretargetingConfigDimensionsItem' smart constructor.
@@ -5053,112 +3600,6 @@ instance ToJSON PretargetingConfigDimensionsItem
5053 [("height" .=) <$> _pcdiHeight,
3600 [("height" .=) <$> _pcdiHeight,
5054 ("width" .=) <$> _pcdiWidth])
3601 ("width" .=) <$> _pcdiWidth])
5055
3602
5056−--
5057−-- /See:/ 'advertiserDTO' smart constructor.
5058−data AdvertiserDTO = AdvertiserDTO
5059− { _adtoStatus :: !(Maybe Text)
5060− , _adtoBrands :: !(Maybe [BrandDTO])
5061− , _adtoName :: !(Maybe Text)
5062− , _adtoId :: !(Maybe (Textual Int64))
5063− } deriving (Eq,Show,Data,Typeable,Generic)
5064−
5065−-- | Creates a value of 'AdvertiserDTO' with the minimum fields required to make a request.
5066−--
5067−-- Use one of the following lenses to modify other fields as desired:
5068−--
5069−-- * 'adtoStatus'
5070−--
5071−-- * 'adtoBrands'
5072−--
5073−-- * 'adtoName'
5074−--
5075−-- * 'adtoId'
5076−advertiserDTO
5077− :: AdvertiserDTO
5078−advertiserDTO =
5079− AdvertiserDTO
5080− { _adtoStatus = Nothing
5081− , _adtoBrands = Nothing
5082− , _adtoName = Nothing
5083− , _adtoId = Nothing
5084− }
5085−
5086−adtoStatus :: Lens' AdvertiserDTO (Maybe Text)
5087−adtoStatus
5088− = lens _adtoStatus (\ s a -> s{_adtoStatus = a})
5089−
5090−adtoBrands :: Lens' AdvertiserDTO [BrandDTO]
5091−adtoBrands
5092− = lens _adtoBrands (\ s a -> s{_adtoBrands = a}) .
5093− _Default
5094− . _Coerce
5095−
5096−adtoName :: Lens' AdvertiserDTO (Maybe Text)
5097−adtoName = lens _adtoName (\ s a -> s{_adtoName = a})
5098−
5099−adtoId :: Lens' AdvertiserDTO (Maybe Int64)
5100−adtoId
5101− = lens _adtoId (\ s a -> s{_adtoId = a}) .
5102− mapping _Coerce
5103−
5104−instance FromJSON AdvertiserDTO where
5105− parseJSON
5106− = withObject "AdvertiserDTO"
5107− (\ o ->
5108− AdvertiserDTO <$>
5109− (o .:? "status") <*> (o .:? "brands" .!= mempty) <*>
5110− (o .:? "name")
5111− <*> (o .:? "id"))
5112−
5113−instance ToJSON AdvertiserDTO where
5114− toJSON AdvertiserDTO{..}
5115− = object
5116− (catMaybes
5117− [("status" .=) <$> _adtoStatus,
5118− ("brands" .=) <$> _adtoBrands,
5119− ("name" .=) <$> _adtoName, ("id" .=) <$> _adtoId])
5120−
5121−--
5122−-- /See:/ 'listClientAccessCapabilitiesResponse' smart constructor.
5123−newtype ListClientAccessCapabilitiesResponse = ListClientAccessCapabilitiesResponse
5124− { _lcacrClientAccessPermissions :: Maybe [ClientAccessCapabilities]
5125− } deriving (Eq,Show,Data,Typeable,Generic)
5126−
5127−-- | Creates a value of 'ListClientAccessCapabilitiesResponse' with the minimum fields required to make a request.
5128−--
5129−-- Use one of the following lenses to modify other fields as desired:
5130−--
5131−-- * 'lcacrClientAccessPermissions'
5132−listClientAccessCapabilitiesResponse
5133− :: ListClientAccessCapabilitiesResponse
5134−listClientAccessCapabilitiesResponse =
5135− ListClientAccessCapabilitiesResponse
5136− { _lcacrClientAccessPermissions = Nothing
5137− }
5138−
5139−lcacrClientAccessPermissions :: Lens' ListClientAccessCapabilitiesResponse [ClientAccessCapabilities]
5140−lcacrClientAccessPermissions
5141− = lens _lcacrClientAccessPermissions
5142− (\ s a -> s{_lcacrClientAccessPermissions = a})
5143− . _Default
5144− . _Coerce
5145−
5146−instance FromJSON
5147− ListClientAccessCapabilitiesResponse where
5148− parseJSON
5149− = withObject "ListClientAccessCapabilitiesResponse"
5150− (\ o ->
5151− ListClientAccessCapabilitiesResponse <$>
5152− (o .:? "clientAccessPermissions" .!= mempty))
5153−
5154−instance ToJSON ListClientAccessCapabilitiesResponse
5155− where
5156− toJSON ListClientAccessCapabilitiesResponse{..}
5157− = object
5158− (catMaybes
5159− [("clientAccessPermissions" .=) <$>
5160− _lcacrClientAccessPermissions])
5161−
5162--
3603--
5163-- /See:/ 'targetingValue' smart constructor.
3604-- /See:/ 'targetingValue' smart constructor.
5164data TargetingValue = TargetingValue
3605data TargetingValue = TargetingValue
@@ -5296,6 +3737,7 @@ instance ToJSON CreativeNATiveAdAppIcon where
5296data Price = Price
3737data Price = Price
5297 { _pCurrencyCode :: !(Maybe Text)
3738 { _pCurrencyCode :: !(Maybe Text)
5298 , _pAmountMicros :: !(Maybe (Textual Double))
3739 , _pAmountMicros :: !(Maybe (Textual Double))
3740+ , _pPricingType :: !(Maybe Text)
5299 } deriving (Eq,Show,Data,Typeable,Generic)
3741 } deriving (Eq,Show,Data,Typeable,Generic)
5300
3742
5301-- | Creates a value of 'Price' with the minimum fields required to make a request.
3743-- | Creates a value of 'Price' with the minimum fields required to make a request.
@@ -5305,12 +3747,15 @@ data Price = Price
5305-- * 'pCurrencyCode'
3747-- * 'pCurrencyCode'
5306--
3748--
5307-- * 'pAmountMicros'
3749-- * 'pAmountMicros'
3750+--
3751+-- * 'pPricingType'
5308price
3752price
5309 :: Price
3753 :: Price
5310price =
3754price =
5311 Price
3755 Price
5312 { _pCurrencyCode = Nothing
3756 { _pCurrencyCode = Nothing
5313 , _pAmountMicros = Nothing
3757 , _pAmountMicros = Nothing
3758+ , _pPricingType = Nothing
5314 }
3759 }
5315
3760
5316-- | The currency code for the price.
3761-- | The currency code for the price.
@@ -5319,34 +3764,108 @@ pCurrencyCode
5319 = lens _pCurrencyCode
3764 = lens _pCurrencyCode
5320 (\ s a -> s{_pCurrencyCode = a})
3765 (\ s a -> s{_pCurrencyCode = a})
5321
3766
5322−-- | The CPM value in micros.
3767+-- | The price value in micros.
5323pAmountMicros :: Lens' Price (Maybe Double)
3768pAmountMicros :: Lens' Price (Maybe Double)
5324pAmountMicros
3769pAmountMicros
5325 = lens _pAmountMicros
3770 = lens _pAmountMicros
5326 (\ s a -> s{_pAmountMicros = a})
3771 (\ s a -> s{_pAmountMicros = a})
5327 . mapping _Coerce
3772 . mapping _Coerce
5328
3773
3774+-- | The pricing type for the deal\/product.
3775+pPricingType :: Lens' Price (Maybe Text)
3776+pPricingType
3777+ = lens _pPricingType (\ s a -> s{_pPricingType = a})
3778+
5329instance FromJSON Price where
3779instance FromJSON Price where
5330 parseJSON
3780 parseJSON
5331 = withObject "Price"
3781 = withObject "Price"
5332 (\ o ->
3782 (\ o ->
5333 Price <$>
3783 Price <$>
5334− (o .:? "currencyCode") <*> (o .:? "amountMicros"))
3784+ (o .:? "currencyCode") <*> (o .:? "amountMicros") <*>
3785+ (o .:? "pricingType"))
5335
3786
5336instance ToJSON Price where
3787instance ToJSON Price where
5337 toJSON Price{..}
3788 toJSON Price{..}
5338 = object
3789 = object
5339 (catMaybes
3790 (catMaybes
5340 [("currencyCode" .=) <$> _pCurrencyCode,
3791 [("currencyCode" .=) <$> _pCurrencyCode,
5341− ("amountMicros" .=) <$> _pAmountMicros])
3792+ ("amountMicros" .=) <$> _pAmountMicros,
3793+ ("pricingType" .=) <$> _pPricingType])
3794+
3795+--
3796+-- /See:/ 'pretargetingConfigVideoPlayerSizesItem' smart constructor.
3797+data PretargetingConfigVideoPlayerSizesItem = PretargetingConfigVideoPlayerSizesItem
3798+ { _pcvpsiMinWidth :: !(Maybe (Textual Int64))
3799+ , _pcvpsiAspectRatio :: !(Maybe Text)
3800+ , _pcvpsiMinHeight :: !(Maybe (Textual Int64))
3801+ } deriving (Eq,Show,Data,Typeable,Generic)
3802+
3803+-- | Creates a value of 'PretargetingConfigVideoPlayerSizesItem' with the minimum fields required to make a request.
3804+--
3805+-- Use one of the following lenses to modify other fields as desired:
3806+--
3807+-- * 'pcvpsiMinWidth'
3808+--
3809+-- * 'pcvpsiAspectRatio'
3810+--
3811+-- * 'pcvpsiMinHeight'
3812+pretargetingConfigVideoPlayerSizesItem
3813+ :: PretargetingConfigVideoPlayerSizesItem
3814+pretargetingConfigVideoPlayerSizesItem =
3815+ PretargetingConfigVideoPlayerSizesItem
3816+ { _pcvpsiMinWidth = Nothing
3817+ , _pcvpsiAspectRatio = Nothing
3818+ , _pcvpsiMinHeight = Nothing
3819+ }
3820+
3821+-- | The minimum player width in pixels. Leave this field blank to match any
3822+-- player width.
3823+pcvpsiMinWidth :: Lens' PretargetingConfigVideoPlayerSizesItem (Maybe Int64)
3824+pcvpsiMinWidth
3825+ = lens _pcvpsiMinWidth
3826+ (\ s a -> s{_pcvpsiMinWidth = a})
3827+ . mapping _Coerce
3828+
3829+-- | The type of aspect ratio. Leave this field blank to match all aspect
3830+-- ratios.
3831+pcvpsiAspectRatio :: Lens' PretargetingConfigVideoPlayerSizesItem (Maybe Text)
3832+pcvpsiAspectRatio
3833+ = lens _pcvpsiAspectRatio
3834+ (\ s a -> s{_pcvpsiAspectRatio = a})
3835+
3836+-- | The minimum player height in pixels. Leave this field blank to match any
3837+-- player height.
3838+pcvpsiMinHeight :: Lens' PretargetingConfigVideoPlayerSizesItem (Maybe Int64)
3839+pcvpsiMinHeight
3840+ = lens _pcvpsiMinHeight
3841+ (\ s a -> s{_pcvpsiMinHeight = a})
3842+ . mapping _Coerce
3843+
3844+instance FromJSON
3845+ PretargetingConfigVideoPlayerSizesItem where
3846+ parseJSON
3847+ = withObject "PretargetingConfigVideoPlayerSizesItem"
3848+ (\ o ->
3849+ PretargetingConfigVideoPlayerSizesItem <$>
3850+ (o .:? "minWidth") <*> (o .:? "aspectRatio") <*>
3851+ (o .:? "minHeight"))
3852+
3853+instance ToJSON
3854+ PretargetingConfigVideoPlayerSizesItem where
3855+ toJSON PretargetingConfigVideoPlayerSizesItem{..}
3856+ = object
3857+ (catMaybes
3858+ [("minWidth" .=) <$> _pcvpsiMinWidth,
3859+ ("aspectRatio" .=) <$> _pcvpsiAspectRatio,
3860+ ("minHeight" .=) <$> _pcvpsiMinHeight])
5342
3861
5343--
3862--
5344-- /See:/ 'editAllOrderDealsRequest' smart constructor.
3863-- /See:/ 'editAllOrderDealsRequest' smart constructor.
5345data EditAllOrderDealsRequest = EditAllOrderDealsRequest
3864data EditAllOrderDealsRequest = EditAllOrderDealsRequest
5346− { _eUpdateAction :: !(Maybe Text)
3865+ { _eUpdateAction :: !(Maybe Text)
5347− , _eDeals :: !(Maybe [MarketplaceDeal])
3866+ , _eDeals :: !(Maybe [MarketplaceDeal])
5348− , _eOrder :: !(Maybe MarketplaceOrder)
5349− , _eOrderRevisionNumber :: !(Maybe (Textual Int64))
3867+ , _eProposalRevisionNumber :: !(Maybe (Textual Int64))
3868+ , _eProposal :: !(Maybe Proposal)
5350 } deriving (Eq,Show,Data,Typeable,Generic)
3869 } deriving (Eq,Show,Data,Typeable,Generic)
5351
3870
5352-- | Creates a value of 'EditAllOrderDealsRequest' with the minimum fields required to make a request.
3871-- | Creates a value of 'EditAllOrderDealsRequest' with the minimum fields required to make a request.
@@ -5357,20 +3876,20 @@ data EditAllOrderDealsRequest = EditAllOrderDealsRequest
5357--
3876--
5358-- * 'eDeals'
3877-- * 'eDeals'
5359--
3878--
5360−-- * 'eOrder'
3879+-- * 'eProposalRevisionNumber'
5361--
3880--
5362−-- * 'eOrderRevisionNumber'
3881+-- * 'eProposal'
5363editAllOrderDealsRequest
3882editAllOrderDealsRequest
5364 :: EditAllOrderDealsRequest
3883 :: EditAllOrderDealsRequest
5365editAllOrderDealsRequest =
3884editAllOrderDealsRequest =
5366 EditAllOrderDealsRequest
3885 EditAllOrderDealsRequest
5367 { _eUpdateAction = Nothing
3886 { _eUpdateAction = Nothing
5368 , _eDeals = Nothing
3887 , _eDeals = Nothing
5369− , _eOrder = Nothing
3888+ , _eProposalRevisionNumber = Nothing
5370− , _eOrderRevisionNumber = Nothing
3889+ , _eProposal = Nothing
5371 }
3890 }
5372
3891
5373−-- | Indicates an optional action to take on the order
3892+-- | Indicates an optional action to take on the proposal
5374eUpdateAction :: Lens' EditAllOrderDealsRequest (Maybe Text)
3893eUpdateAction :: Lens' EditAllOrderDealsRequest (Maybe Text)
5375eUpdateAction
3894eUpdateAction
5376 = lens _eUpdateAction
3895 = lens _eUpdateAction
@@ -5378,50 +3897,52 @@ eUpdateAction
5378
3897
5379-- | List of deals to edit. Service may perform 3 different operations based
3898-- | List of deals to edit. Service may perform 3 different operations based
5380-- on comparison of deals in this list vs deals already persisted in
3899-- on comparison of deals in this list vs deals already persisted in
5381−-- database: 1. Add new deal to order If a deal in this list does not exist
3900+-- database: 1. Add new deal to proposal If a deal in this list does not
5382−-- in the order, the service will create a new deal and add it to the
3901+-- exist in the proposal, the service will create a new deal and add it to
5383−-- order. Validation will follow AddOrderDealsRequest. 2. Update existing
3902+-- the proposal. Validation will follow AddOrderDealsRequest. 2. Update
5384−-- deal in the order If a deal in this list already exist in the order, the
3903+-- existing deal in the proposal If a deal in this list already exist in
5385−-- service will update that existing deal to this new deal in the request.
3904+-- the proposal, the service will update that existing deal to this new
5386−-- Validation will follow UpdateOrderDealsRequest. 3. Delete deals from the
3905+-- deal in the request. Validation will follow UpdateOrderDealsRequest. 3.
5387−-- order (just need the id) If a existing deal in the order is not present
3906+-- Delete deals from the proposal (just need the id) If a existing deal in
5388−-- in this list, the service will delete that deal from the order.
3907+-- the proposal is not present in this list, the service will delete that
5389−-- Validation will follow DeleteOrderDealsRequest.
3908+-- deal from the proposal. Validation will follow DeleteOrderDealsRequest.
5390eDeals :: Lens' EditAllOrderDealsRequest [MarketplaceDeal]
3909eDeals :: Lens' EditAllOrderDealsRequest [MarketplaceDeal]
5391eDeals
3910eDeals
5392 = lens _eDeals (\ s a -> s{_eDeals = a}) . _Default .
3911 = lens _eDeals (\ s a -> s{_eDeals = a}) . _Default .
5393 _Coerce
3912 _Coerce
5394
3913
5395−-- | If specified, also updates the order in the batch transaction. This is
5396−-- useful when the order and the deals need to be updated in one
5397−-- transaction.
5398−eOrder :: Lens' EditAllOrderDealsRequest (Maybe MarketplaceOrder)
5399−eOrder = lens _eOrder (\ s a -> s{_eOrder = a})
5400−
5401−-- | The last known revision number for the order.
3914+-- | The last known revision number for the proposal.
5402−eOrderRevisionNumber :: Lens' EditAllOrderDealsRequest (Maybe Int64)
3915+eProposalRevisionNumber :: Lens' EditAllOrderDealsRequest (Maybe Int64)
5403−eOrderRevisionNumber
3916+eProposalRevisionNumber
5404− = lens _eOrderRevisionNumber
3917+ = lens _eProposalRevisionNumber
5405− (\ s a -> s{_eOrderRevisionNumber = a})
3918+ (\ s a -> s{_eProposalRevisionNumber = a})
5406 . mapping _Coerce
3919 . mapping _Coerce
5407
3920
3921+-- | If specified, also updates the proposal in the batch transaction. This
3922+-- is useful when the proposal and the deals need to be updated in one
3923+-- transaction.
3924+eProposal :: Lens' EditAllOrderDealsRequest (Maybe Proposal)
3925+eProposal
3926+ = lens _eProposal (\ s a -> s{_eProposal = a})
3927+
5408instance FromJSON EditAllOrderDealsRequest where
3928instance FromJSON EditAllOrderDealsRequest where
5409 parseJSON
3929 parseJSON
5410 = withObject "EditAllOrderDealsRequest"
3930 = withObject "EditAllOrderDealsRequest"
5411 (\ o ->
3931 (\ o ->
5412 EditAllOrderDealsRequest <$>
3932 EditAllOrderDealsRequest <$>
5413 (o .:? "updateAction") <*> (o .:? "deals" .!= mempty)
3933 (o .:? "updateAction") <*> (o .:? "deals" .!= mempty)
5414− <*> (o .:? "order")
3934+ <*> (o .:? "proposalRevisionNumber")
5415− <*> (o .:? "orderRevisionNumber"))
3935+ <*> (o .:? "proposal"))
5416
3936
5417instance ToJSON EditAllOrderDealsRequest where
3937instance ToJSON EditAllOrderDealsRequest where
5418 toJSON EditAllOrderDealsRequest{..}
3938 toJSON EditAllOrderDealsRequest{..}
5419 = object
3939 = object
5420 (catMaybes
3940 (catMaybes
5421 [("updateAction" .=) <$> _eUpdateAction,
3941 [("updateAction" .=) <$> _eUpdateAction,
5422− ("deals" .=) <$> _eDeals, ("order" .=) <$> _eOrder,
3942+ ("deals" .=) <$> _eDeals,
5423− ("orderRevisionNumber" .=) <$>
3943+ ("proposalRevisionNumber" .=) <$>
5424− _eOrderRevisionNumber])
3944+ _eProposalRevisionNumber,
3945+ ("proposal" .=) <$> _eProposal])
5425
3946
5426-- | The configuration data for an Ad Exchange billing info.
3947-- | The configuration data for an Ad Exchange billing info.
5427--
3948--
@@ -5608,563 +4129,6 @@ instance ToJSON SharedTargeting where
5608 ("exclusions" .=) <$> _stExclusions,
4129 ("exclusions" .=) <$> _stExclusions,
5609 ("inclusions" .=) <$> _stInclusions])
4130 ("inclusions" .=) <$> _stInclusions])
5610
4131
5611−--
5612−-- /See:/ 'listClientAccessCapabilitiesRequest' smart constructor.
5613−newtype ListClientAccessCapabilitiesRequest = ListClientAccessCapabilitiesRequest
5614− { _lcacrSponsorAccountId :: Maybe (Textual Int64)
5615− } deriving (Eq,Show,Data,Typeable,Generic)
5616−
5617−-- | Creates a value of 'ListClientAccessCapabilitiesRequest' with the minimum fields required to make a request.
5618−--
5619−-- Use one of the following lenses to modify other fields as desired:
5620−--
5621−-- * 'lcacrSponsorAccountId'
5622−listClientAccessCapabilitiesRequest
5623− :: ListClientAccessCapabilitiesRequest
5624−listClientAccessCapabilitiesRequest =
5625− ListClientAccessCapabilitiesRequest
5626− { _lcacrSponsorAccountId = Nothing
5627− }
5628−
5629−lcacrSponsorAccountId :: Lens' ListClientAccessCapabilitiesRequest (Maybe Int64)
5630−lcacrSponsorAccountId
5631− = lens _lcacrSponsorAccountId
5632− (\ s a -> s{_lcacrSponsorAccountId = a})
5633− . mapping _Coerce
5634−
5635−instance FromJSON ListClientAccessCapabilitiesRequest
5636− where
5637− parseJSON
5638− = withObject "ListClientAccessCapabilitiesRequest"
5639− (\ o ->
5640− ListClientAccessCapabilitiesRequest <$>
5641− (o .:? "sponsorAccountId"))
5642−
5643−instance ToJSON ListClientAccessCapabilitiesRequest
5644− where
5645− toJSON ListClientAccessCapabilitiesRequest{..}
5646− = object
5647− (catMaybes
5648− [("sponsorAccountId" .=) <$> _lcacrSponsorAccountId])
5649−
5650−--
5651−-- /See:/ 'inventorySegmentTargeting' smart constructor.
5652−data InventorySegmentTargeting = InventorySegmentTargeting
5653− { _istNegativeVideoDurationSegments :: !(Maybe [Textual Int64])
5654− , _istNegativeIcmBrands :: !(Maybe [Textual Int64])
5655− , _istNegativeKeyValues :: !(Maybe [RuleKeyValuePair])
5656− , _istPositiveAudienceSegments :: !(Maybe [Textual Int64])
5657− , _istPositiveXfpPlacements :: !(Maybe [Textual Int64])
5658− , _istNegativeXfpAdSlots :: !(Maybe [Textual Int64])
5659− , _istPositiveOperatingSystemVersions :: !(Maybe [Textual Int64])
5660− , _istPositiveSizes :: !(Maybe [Textual Int64])
5661− , _istPositiveDeviceCategories :: !(Maybe [Textual Int64])
5662− , _istPositiveLocations :: !(Maybe [Textual Int64])
5663− , _istNegativeAdSizes :: !(Maybe [AdSize])
5664− , _istPositiveOperatingSystems :: !(Maybe [Textual Int64])
5665− , _istPositiveSiteURLs :: !(Maybe [Text])
5666− , _istNegativeInventorySlots :: !(Maybe [Text])
5667− , _istNegativeVideoAdPositionSegments :: !(Maybe [Text])
5668− , _istPositiveAdTypeSegments :: !(Maybe [Text])
5669− , _istPositiveIcmInterests :: !(Maybe [Textual Int64])
5670− , _istPositiveMobileApps :: !(Maybe [Text])
5671− , _istPositiveKeyValues :: !(Maybe [RuleKeyValuePair])
5672− , _istPositiveIcmBrands :: !(Maybe [Textual Int64])
5673− , _istPositiveVideoDurationSegments :: !(Maybe [Textual Int64])
5674− , _istNegativeAudienceSegments :: !(Maybe [Textual Int64])
5675− , _istNegativeXfpPlacements :: !(Maybe [Textual Int64])
5676− , _istPositiveXfpAdSlots :: !(Maybe [Textual Int64])
5677− , _istNegativeOperatingSystemVersions :: !(Maybe [Textual Int64])
5678− , _istNegativeSizes :: !(Maybe [Textual Int64])
5679− , _istNegativeLocations :: !(Maybe [Textual Int64])
5680− , _istNegativeDeviceCategories :: !(Maybe [Textual Int64])
5681− , _istNegativeOperatingSystems :: !(Maybe [Textual Int64])
5682− , _istPositiveAdSizes :: !(Maybe [AdSize])
5683− , _istNegativeSiteURLs :: !(Maybe [Text])
5684− , _istNegativeAdTypeSegments :: !(Maybe [Text])
5685− , _istPositiveVideoAdPositionSegments :: !(Maybe [Text])
5686− , _istPositiveInventorySlots :: !(Maybe [Text])
5687− , _istNegativeMobileApps :: !(Maybe [Text])
5688− , _istNegativeIcmInterests :: !(Maybe [Textual Int64])
5689− } deriving (Eq,Show,Data,Typeable,Generic)
5690−
5691−-- | Creates a value of 'InventorySegmentTargeting' with the minimum fields required to make a request.
5692−--
5693−-- Use one of the following lenses to modify other fields as desired:
5694−--
5695−-- * 'istNegativeVideoDurationSegments'
5696−--
5697−-- * 'istNegativeIcmBrands'
5698−--
5699−-- * 'istNegativeKeyValues'
5700−--
5701−-- * 'istPositiveAudienceSegments'
5702−--
5703−-- * 'istPositiveXfpPlacements'
5704−--
5705−-- * 'istNegativeXfpAdSlots'
5706−--
5707−-- * 'istPositiveOperatingSystemVersions'
5708−--
5709−-- * 'istPositiveSizes'
5710−--
5711−-- * 'istPositiveDeviceCategories'
5712−--
5713−-- * 'istPositiveLocations'
5714−--
5715−-- * 'istNegativeAdSizes'
5716−--
5717−-- * 'istPositiveOperatingSystems'
5718−--
5719−-- * 'istPositiveSiteURLs'
5720−--
5721−-- * 'istNegativeInventorySlots'
5722−--
5723−-- * 'istNegativeVideoAdPositionSegments'
5724−--
5725−-- * 'istPositiveAdTypeSegments'
5726−--
5727−-- * 'istPositiveIcmInterests'
5728−--
5729−-- * 'istPositiveMobileApps'
5730−--
5731−-- * 'istPositiveKeyValues'
5732−--
5733−-- * 'istPositiveIcmBrands'
5734−--
5735−-- * 'istPositiveVideoDurationSegments'
5736−--
5737−-- * 'istNegativeAudienceSegments'
5738−--
5739−-- * 'istNegativeXfpPlacements'
5740−--
5741−-- * 'istPositiveXfpAdSlots'
5742−--
5743−-- * 'istNegativeOperatingSystemVersions'
5744−--
5745−-- * 'istNegativeSizes'
5746−--
5747−-- * 'istNegativeLocations'
5748−--
5749−-- * 'istNegativeDeviceCategories'
5750−--
5751−-- * 'istNegativeOperatingSystems'
5752−--
5753−-- * 'istPositiveAdSizes'
5754−--
5755−-- * 'istNegativeSiteURLs'
5756−--
5757−-- * 'istNegativeAdTypeSegments'
5758−--
5759−-- * 'istPositiveVideoAdPositionSegments'
5760−--
5761−-- * 'istPositiveInventorySlots'
5762−--
5763−-- * 'istNegativeMobileApps'
5764−--
5765−-- * 'istNegativeIcmInterests'
5766−inventorySegmentTargeting
5767− :: InventorySegmentTargeting
5768−inventorySegmentTargeting =
5769− InventorySegmentTargeting
5770− { _istNegativeVideoDurationSegments = Nothing
5771− , _istNegativeIcmBrands = Nothing
5772− , _istNegativeKeyValues = Nothing
5773− , _istPositiveAudienceSegments = Nothing
5774− , _istPositiveXfpPlacements = Nothing
5775− , _istNegativeXfpAdSlots = Nothing
5776− , _istPositiveOperatingSystemVersions = Nothing
5777− , _istPositiveSizes = Nothing
5778− , _istPositiveDeviceCategories = Nothing
5779− , _istPositiveLocations = Nothing
5780− , _istNegativeAdSizes = Nothing
5781− , _istPositiveOperatingSystems = Nothing
5782− , _istPositiveSiteURLs = Nothing
5783− , _istNegativeInventorySlots = Nothing
5784− , _istNegativeVideoAdPositionSegments = Nothing
5785− , _istPositiveAdTypeSegments = Nothing
5786− , _istPositiveIcmInterests = Nothing
5787− , _istPositiveMobileApps = Nothing
5788− , _istPositiveKeyValues = Nothing
5789− , _istPositiveIcmBrands = Nothing
5790− , _istPositiveVideoDurationSegments = Nothing
5791− , _istNegativeAudienceSegments = Nothing
5792− , _istNegativeXfpPlacements = Nothing
5793− , _istPositiveXfpAdSlots = Nothing
5794− , _istNegativeOperatingSystemVersions = Nothing
5795− , _istNegativeSizes = Nothing
5796− , _istNegativeLocations = Nothing
5797− , _istNegativeDeviceCategories = Nothing
5798− , _istNegativeOperatingSystems = Nothing
5799− , _istPositiveAdSizes = Nothing
5800− , _istNegativeSiteURLs = Nothing
5801− , _istNegativeAdTypeSegments = Nothing
5802− , _istPositiveVideoAdPositionSegments = Nothing
5803− , _istPositiveInventorySlots = Nothing
5804− , _istNegativeMobileApps = Nothing
5805− , _istNegativeIcmInterests = Nothing
5806− }
5807−
5808−istNegativeVideoDurationSegments :: Lens' InventorySegmentTargeting [Int64]
5809−istNegativeVideoDurationSegments
5810− = lens _istNegativeVideoDurationSegments
5811− (\ s a -> s{_istNegativeVideoDurationSegments = a})
5812− . _Default
5813− . _Coerce
5814−
5815−istNegativeIcmBrands :: Lens' InventorySegmentTargeting [Int64]
5816−istNegativeIcmBrands
5817− = lens _istNegativeIcmBrands
5818− (\ s a -> s{_istNegativeIcmBrands = a})
5819− . _Default
5820− . _Coerce
5821−
5822−istNegativeKeyValues :: Lens' InventorySegmentTargeting [RuleKeyValuePair]
5823−istNegativeKeyValues
5824− = lens _istNegativeKeyValues
5825− (\ s a -> s{_istNegativeKeyValues = a})
5826− . _Default
5827− . _Coerce
5828−
5829−istPositiveAudienceSegments :: Lens' InventorySegmentTargeting [Int64]
5830−istPositiveAudienceSegments
5831− = lens _istPositiveAudienceSegments
5832− (\ s a -> s{_istPositiveAudienceSegments = a})
5833− . _Default
5834− . _Coerce
5835−
5836−istPositiveXfpPlacements :: Lens' InventorySegmentTargeting [Int64]
5837−istPositiveXfpPlacements
5838− = lens _istPositiveXfpPlacements
5839− (\ s a -> s{_istPositiveXfpPlacements = a})
5840− . _Default
5841− . _Coerce
5842−
5843−istNegativeXfpAdSlots :: Lens' InventorySegmentTargeting [Int64]
5844−istNegativeXfpAdSlots
5845− = lens _istNegativeXfpAdSlots
5846− (\ s a -> s{_istNegativeXfpAdSlots = a})
5847− . _Default
5848− . _Coerce
5849−
5850−istPositiveOperatingSystemVersions :: Lens' InventorySegmentTargeting [Int64]
5851−istPositiveOperatingSystemVersions
5852− = lens _istPositiveOperatingSystemVersions
5853− (\ s a -> s{_istPositiveOperatingSystemVersions = a})
5854− . _Default
5855− . _Coerce
5856−
5857−istPositiveSizes :: Lens' InventorySegmentTargeting [Int64]
5858−istPositiveSizes
5859− = lens _istPositiveSizes
5860− (\ s a -> s{_istPositiveSizes = a})
5861− . _Default
5862− . _Coerce
5863−
5864−istPositiveDeviceCategories :: Lens' InventorySegmentTargeting [Int64]
5865−istPositiveDeviceCategories
5866− = lens _istPositiveDeviceCategories
5867− (\ s a -> s{_istPositiveDeviceCategories = a})
5868− . _Default
5869− . _Coerce
5870−
5871−istPositiveLocations :: Lens' InventorySegmentTargeting [Int64]
5872−istPositiveLocations
5873− = lens _istPositiveLocations
5874− (\ s a -> s{_istPositiveLocations = a})
5875− . _Default
5876− . _Coerce
5877−
5878−istNegativeAdSizes :: Lens' InventorySegmentTargeting [AdSize]
5879−istNegativeAdSizes
5880− = lens _istNegativeAdSizes
5881− (\ s a -> s{_istNegativeAdSizes = a})
5882− . _Default
5883− . _Coerce
5884−
5885−istPositiveOperatingSystems :: Lens' InventorySegmentTargeting [Int64]
5886−istPositiveOperatingSystems
5887− = lens _istPositiveOperatingSystems
5888− (\ s a -> s{_istPositiveOperatingSystems = a})
5889− . _Default
5890− . _Coerce
5891−
5892−istPositiveSiteURLs :: Lens' InventorySegmentTargeting [Text]
5893−istPositiveSiteURLs
5894− = lens _istPositiveSiteURLs
5895− (\ s a -> s{_istPositiveSiteURLs = a})
5896− . _Default
5897− . _Coerce
5898−
5899−istNegativeInventorySlots :: Lens' InventorySegmentTargeting [Text]
5900−istNegativeInventorySlots
5901− = lens _istNegativeInventorySlots
5902− (\ s a -> s{_istNegativeInventorySlots = a})
5903− . _Default
5904− . _Coerce
5905−
5906−istNegativeVideoAdPositionSegments :: Lens' InventorySegmentTargeting [Text]
5907−istNegativeVideoAdPositionSegments
5908− = lens _istNegativeVideoAdPositionSegments
5909− (\ s a -> s{_istNegativeVideoAdPositionSegments = a})
5910− . _Default
5911− . _Coerce
5912−
5913−istPositiveAdTypeSegments :: Lens' InventorySegmentTargeting [Text]
5914−istPositiveAdTypeSegments
5915− = lens _istPositiveAdTypeSegments
5916− (\ s a -> s{_istPositiveAdTypeSegments = a})
5917− . _Default
5918− . _Coerce
5919−
5920−istPositiveIcmInterests :: Lens' InventorySegmentTargeting [Int64]
5921−istPositiveIcmInterests
5922− = lens _istPositiveIcmInterests
5923− (\ s a -> s{_istPositiveIcmInterests = a})
5924− . _Default
5925− . _Coerce
5926−
5927−istPositiveMobileApps :: Lens' InventorySegmentTargeting [Text]
5928−istPositiveMobileApps
5929− = lens _istPositiveMobileApps
5930− (\ s a -> s{_istPositiveMobileApps = a})
5931− . _Default
5932− . _Coerce
5933−
5934−istPositiveKeyValues :: Lens' InventorySegmentTargeting [RuleKeyValuePair]
5935−istPositiveKeyValues
5936− = lens _istPositiveKeyValues
5937− (\ s a -> s{_istPositiveKeyValues = a})
5938− . _Default
5939− . _Coerce
5940−
5941−istPositiveIcmBrands :: Lens' InventorySegmentTargeting [Int64]
5942−istPositiveIcmBrands
5943− = lens _istPositiveIcmBrands
5944− (\ s a -> s{_istPositiveIcmBrands = a})
5945− . _Default
5946− . _Coerce
5947−
5948−istPositiveVideoDurationSegments :: Lens' InventorySegmentTargeting [Int64]
5949−istPositiveVideoDurationSegments
5950− = lens _istPositiveVideoDurationSegments
5951− (\ s a -> s{_istPositiveVideoDurationSegments = a})
5952− . _Default
5953− . _Coerce
5954−
5955−istNegativeAudienceSegments :: Lens' InventorySegmentTargeting [Int64]
5956−istNegativeAudienceSegments
5957− = lens _istNegativeAudienceSegments
5958− (\ s a -> s{_istNegativeAudienceSegments = a})
5959− . _Default
5960− . _Coerce
5961−
5962−istNegativeXfpPlacements :: Lens' InventorySegmentTargeting [Int64]
5963−istNegativeXfpPlacements
5964− = lens _istNegativeXfpPlacements
5965− (\ s a -> s{_istNegativeXfpPlacements = a})
5966− . _Default
5967− . _Coerce
5968−
5969−istPositiveXfpAdSlots :: Lens' InventorySegmentTargeting [Int64]
5970−istPositiveXfpAdSlots
5971− = lens _istPositiveXfpAdSlots
5972− (\ s a -> s{_istPositiveXfpAdSlots = a})
5973− . _Default
5974− . _Coerce
5975−
5976−istNegativeOperatingSystemVersions :: Lens' InventorySegmentTargeting [Int64]
5977−istNegativeOperatingSystemVersions
5978− = lens _istNegativeOperatingSystemVersions
5979− (\ s a -> s{_istNegativeOperatingSystemVersions = a})
5980− . _Default
5981− . _Coerce
5982−
5983−istNegativeSizes :: Lens' InventorySegmentTargeting [Int64]
5984−istNegativeSizes
5985− = lens _istNegativeSizes
5986− (\ s a -> s{_istNegativeSizes = a})
5987− . _Default
5988− . _Coerce
5989−
5990−istNegativeLocations :: Lens' InventorySegmentTargeting [Int64]
5991−istNegativeLocations
5992− = lens _istNegativeLocations
5993− (\ s a -> s{_istNegativeLocations = a})
5994− . _Default
5995− . _Coerce
5996−
5997−istNegativeDeviceCategories :: Lens' InventorySegmentTargeting [Int64]
5998−istNegativeDeviceCategories
5999− = lens _istNegativeDeviceCategories
6000− (\ s a -> s{_istNegativeDeviceCategories = a})
6001− . _Default
6002− . _Coerce
6003−
6004−istNegativeOperatingSystems :: Lens' InventorySegmentTargeting [Int64]
6005−istNegativeOperatingSystems
6006− = lens _istNegativeOperatingSystems
6007− (\ s a -> s{_istNegativeOperatingSystems = a})
6008− . _Default
6009− . _Coerce
6010−
6011−istPositiveAdSizes :: Lens' InventorySegmentTargeting [AdSize]
6012−istPositiveAdSizes
6013− = lens _istPositiveAdSizes
6014− (\ s a -> s{_istPositiveAdSizes = a})
6015− . _Default
6016− . _Coerce
6017−
6018−istNegativeSiteURLs :: Lens' InventorySegmentTargeting [Text]
6019−istNegativeSiteURLs
6020− = lens _istNegativeSiteURLs
6021− (\ s a -> s{_istNegativeSiteURLs = a})
6022− . _Default
6023− . _Coerce
6024−
6025−istNegativeAdTypeSegments :: Lens' InventorySegmentTargeting [Text]
6026−istNegativeAdTypeSegments
6027− = lens _istNegativeAdTypeSegments
6028− (\ s a -> s{_istNegativeAdTypeSegments = a})
6029− . _Default
6030− . _Coerce
6031−
6032−istPositiveVideoAdPositionSegments :: Lens' InventorySegmentTargeting [Text]
6033−istPositiveVideoAdPositionSegments
6034− = lens _istPositiveVideoAdPositionSegments
6035− (\ s a -> s{_istPositiveVideoAdPositionSegments = a})
6036− . _Default
6037− . _Coerce
6038−
6039−istPositiveInventorySlots :: Lens' InventorySegmentTargeting [Text]
6040−istPositiveInventorySlots
6041− = lens _istPositiveInventorySlots
6042− (\ s a -> s{_istPositiveInventorySlots = a})
6043− . _Default
6044− . _Coerce
6045−
6046−istNegativeMobileApps :: Lens' InventorySegmentTargeting [Text]
6047−istNegativeMobileApps
6048− = lens _istNegativeMobileApps
6049− (\ s a -> s{_istNegativeMobileApps = a})
6050− . _Default
6051− . _Coerce
6052−
6053−istNegativeIcmInterests :: Lens' InventorySegmentTargeting [Int64]
6054−istNegativeIcmInterests
6055− = lens _istNegativeIcmInterests
6056− (\ s a -> s{_istNegativeIcmInterests = a})
6057− . _Default
6058− . _Coerce
6059−
6060−instance FromJSON InventorySegmentTargeting where
6061− parseJSON
6062− = withObject "InventorySegmentTargeting"
6063− (\ o ->
6064− InventorySegmentTargeting <$>
6065− (o .:? "negativeVideoDurationSegments" .!= mempty)
6066− <*> (o .:? "negativeIcmBrands" .!= mempty)
6067− <*> (o .:? "negativeKeyValues" .!= mempty)
6068− <*> (o .:? "positiveAudienceSegments" .!= mempty)
6069− <*> (o .:? "positiveXfpPlacements" .!= mempty)
6070− <*> (o .:? "negativeXfpAdSlots" .!= mempty)
6071− <*>
6072− (o .:? "positiveOperatingSystemVersions" .!= mempty)
6073− <*> (o .:? "positiveSizes" .!= mempty)
6074− <*> (o .:? "positiveDeviceCategories" .!= mempty)
6075− <*> (o .:? "positiveLocations" .!= mempty)
6076− <*> (o .:? "negativeAdSizes" .!= mempty)
6077− <*> (o .:? "positiveOperatingSystems" .!= mempty)
6078− <*> (o .:? "positiveSiteUrls" .!= mempty)
6079− <*> (o .:? "negativeInventorySlots" .!= mempty)
6080− <*>
6081− (o .:? "negativeVideoAdPositionSegments" .!= mempty)
6082− <*> (o .:? "positiveAdTypeSegments" .!= mempty)
6083− <*> (o .:? "positiveIcmInterests" .!= mempty)
6084− <*> (o .:? "positiveMobileApps" .!= mempty)
6085− <*> (o .:? "positiveKeyValues" .!= mempty)
6086− <*> (o .:? "positiveIcmBrands" .!= mempty)
6087− <*>
6088− (o .:? "positiveVideoDurationSegments" .!= mempty)
6089− <*> (o .:? "negativeAudienceSegments" .!= mempty)
6090− <*> (o .:? "negativeXfpPlacements" .!= mempty)
6091− <*> (o .:? "positiveXfpAdSlots" .!= mempty)
6092− <*>
6093− (o .:? "negativeOperatingSystemVersions" .!= mempty)
6094− <*> (o .:? "negativeSizes" .!= mempty)
6095− <*> (o .:? "negativeLocations" .!= mempty)
6096− <*> (o .:? "negativeDeviceCategories" .!= mempty)
6097− <*> (o .:? "negativeOperatingSystems" .!= mempty)
6098− <*> (o .:? "positiveAdSizes" .!= mempty)
6099− <*> (o .:? "negativeSiteUrls" .!= mempty)
6100− <*> (o .:? "negativeAdTypeSegments" .!= mempty)
6101− <*>
6102− (o .:? "positiveVideoAdPositionSegments" .!= mempty)
6103− <*> (o .:? "positiveInventorySlots" .!= mempty)
6104− <*> (o .:? "negativeMobileApps" .!= mempty)
6105− <*> (o .:? "negativeIcmInterests" .!= mempty))
6106−
6107−instance ToJSON InventorySegmentTargeting where
6108− toJSON InventorySegmentTargeting{..}
6109− = object
6110− (catMaybes
6111− [("negativeVideoDurationSegments" .=) <$>
6112− _istNegativeVideoDurationSegments,
6113− ("negativeIcmBrands" .=) <$> _istNegativeIcmBrands,
6114− ("negativeKeyValues" .=) <$> _istNegativeKeyValues,
6115− ("positiveAudienceSegments" .=) <$>
6116− _istPositiveAudienceSegments,
6117− ("positiveXfpPlacements" .=) <$>
6118− _istPositiveXfpPlacements,
6119− ("negativeXfpAdSlots" .=) <$> _istNegativeXfpAdSlots,
6120− ("positiveOperatingSystemVersions" .=) <$>
6121− _istPositiveOperatingSystemVersions,
6122− ("positiveSizes" .=) <$> _istPositiveSizes,
6123− ("positiveDeviceCategories" .=) <$>
6124− _istPositiveDeviceCategories,
6125− ("positiveLocations" .=) <$> _istPositiveLocations,
6126− ("negativeAdSizes" .=) <$> _istNegativeAdSizes,
6127− ("positiveOperatingSystems" .=) <$>
6128− _istPositiveOperatingSystems,
6129− ("positiveSiteUrls" .=) <$> _istPositiveSiteURLs,
6130− ("negativeInventorySlots" .=) <$>
6131− _istNegativeInventorySlots,
6132− ("negativeVideoAdPositionSegments" .=) <$>
6133− _istNegativeVideoAdPositionSegments,
6134− ("positiveAdTypeSegments" .=) <$>
6135− _istPositiveAdTypeSegments,
6136− ("positiveIcmInterests" .=) <$>
6137− _istPositiveIcmInterests,
6138− ("positiveMobileApps" .=) <$> _istPositiveMobileApps,
6139− ("positiveKeyValues" .=) <$> _istPositiveKeyValues,
6140− ("positiveIcmBrands" .=) <$> _istPositiveIcmBrands,
6141− ("positiveVideoDurationSegments" .=) <$>
6142− _istPositiveVideoDurationSegments,
6143− ("negativeAudienceSegments" .=) <$>
6144− _istNegativeAudienceSegments,
6145− ("negativeXfpPlacements" .=) <$>
6146− _istNegativeXfpPlacements,
6147− ("positiveXfpAdSlots" .=) <$> _istPositiveXfpAdSlots,
6148− ("negativeOperatingSystemVersions" .=) <$>
6149− _istNegativeOperatingSystemVersions,
6150− ("negativeSizes" .=) <$> _istNegativeSizes,
6151− ("negativeLocations" .=) <$> _istNegativeLocations,
6152− ("negativeDeviceCategories" .=) <$>
6153− _istNegativeDeviceCategories,
6154− ("negativeOperatingSystems" .=) <$>
6155− _istNegativeOperatingSystems,
6156− ("positiveAdSizes" .=) <$> _istPositiveAdSizes,
6157− ("negativeSiteUrls" .=) <$> _istNegativeSiteURLs,
6158− ("negativeAdTypeSegments" .=) <$>
6159− _istNegativeAdTypeSegments,
6160− ("positiveVideoAdPositionSegments" .=) <$>
6161− _istPositiveVideoAdPositionSegments,
6162− ("positiveInventorySlots" .=) <$>
6163− _istPositiveInventorySlots,
6164− ("negativeMobileApps" .=) <$> _istNegativeMobileApps,
6165− ("negativeIcmInterests" .=) <$>
6166− _istNegativeIcmInterests])
6167−
6168-- | A large image.
4132-- | A large image.
6169--
4133--
6170-- /See:/ 'creativeNATiveAdImage' smart constructor.
4134-- /See:/ 'creativeNATiveAdImage' smart constructor.
@@ -6222,198 +4186,262 @@ instance ToJSON CreativeNATiveAdImage where
6222 ("url" .=) <$> _cnataiURL,
4186 ("url" .=) <$> _cnataiURL,
6223 ("width" .=) <$> _cnataiWidth])
4187 ("width" .=) <$> _cnataiWidth])
6224
4188
4189+-- | A product is segment of inventory that a seller wishes to sell. It is
4190+-- associated with certain terms and targeting information which helps
4191+-- buyer know more about the inventory. Each field in a product can have
4192+-- one of the following setting: (readonly) - It is an error to try and set
4193+-- this field. (buyer-readonly) - Only the seller can set this field.
4194+-- (seller-readonly) - Only the buyer can set this field. (updatable) - The
4195+-- field is updatable at all times by either buyer or the seller.
6225--
4196--
6226−-- /See:/ 'webPropertyDTO' smart constructor.
4197+-- /See:/ 'product' smart constructor.
6227−data WebPropertyDTO = WebPropertyDTO
4198+data Product = Product
6228− { _wpdtoEnabledForPreferredDeals :: !(Maybe Bool)
4199+ { _proState :: !(Maybe Text)
6229− , _wpdtoSyndicationProduct :: !(Maybe Text)
4200+ , _proInventorySource :: !(Maybe Text)
6230− , _wpdtoName :: !(Maybe Text)
4201+ , _proWebPropertyCode :: !(Maybe Text)
6231− , _wpdtoPropertyCode :: !(Maybe Text)
4202+ , _proCreationTimeMs :: !(Maybe (Textual Int64))
6232− , _wpdtoId :: !(Maybe (Textual Int32))
4203+ , _proTerms :: !(Maybe DealTerms)
6233− , _wpdtoSiteURLs :: !(Maybe [Text])
4204+ , _proLastUpdateTimeMs :: !(Maybe (Textual Int64))
6234− , _wpdtoAllowInterestTargetedAds :: !(Maybe Bool)
4205+ , _proKind :: !Text
4206+ , _proRevisionNumber :: !(Maybe (Textual Int64))
4207+ , _proHasCreatorSignedOff :: !(Maybe Bool)
4208+ , _proFlightStartTimeMs :: !(Maybe (Textual Int64))
4209+ , _proSharedTargetings :: !(Maybe [SharedTargeting])
4210+ , _proSeller :: !(Maybe Seller)
4211+ , _proSyndicationProduct :: !(Maybe Text)
4212+ , _proFlightEndTimeMs :: !(Maybe (Textual Int64))
4213+ , _proName :: !(Maybe Text)
4214+ , _proCreatorContacts :: !(Maybe [ContactInformation])
4215+ , _proLabels :: !(Maybe [MarketplaceLabel])
4216+ , _proProductId :: !(Maybe Text)
6235 } deriving (Eq,Show,Data,Typeable,Generic)
4217 } deriving (Eq,Show,Data,Typeable,Generic)
6236
4218
6237−-- | Creates a value of 'WebPropertyDTO' with the minimum fields required to make a request.
4219+-- | Creates a value of 'Product' with the minimum fields required to make a request.
6238--
4220--
6239-- Use one of the following lenses to modify other fields as desired:
4221-- Use one of the following lenses to modify other fields as desired:
6240--
4222--
6241−-- * 'wpdtoEnabledForPreferredDeals'
4223+-- * 'proState'
4224+--
4225+-- * 'proInventorySource'
4226+--
4227+-- * 'proWebPropertyCode'
4228+--
4229+-- * 'proCreationTimeMs'
4230+--
4231+-- * 'proTerms'
4232+--
4233+-- * 'proLastUpdateTimeMs'
6242--
4234--
6243−-- * 'wpdtoSyndicationProduct'
4235+-- * 'proKind'
6244--
4236--
6245−-- * 'wpdtoName'
4237+-- * 'proRevisionNumber'
6246--
4238--
6247−-- * 'wpdtoPropertyCode'
4239+-- * 'proHasCreatorSignedOff'
6248--
4240--
6249−-- * 'wpdtoId'
4241+-- * 'proFlightStartTimeMs'
6250--
4242--
6251−-- * 'wpdtoSiteURLs'
4243+-- * 'proSharedTargetings'
6252--
4244--
6253−-- * 'wpdtoAllowInterestTargetedAds'
4245+-- * 'proSeller'
6254−webPropertyDTO
4246+--
6255− :: WebPropertyDTO
4247+-- * 'proSyndicationProduct'
6256−webPropertyDTO =
4248+--
6257− WebPropertyDTO
4249+-- * 'proFlightEndTimeMs'
6258− { _wpdtoEnabledForPreferredDeals = Nothing
4250+--
6259− , _wpdtoSyndicationProduct = Nothing
4251+-- * 'proName'
6260− , _wpdtoName = Nothing
4252+--
6261− , _wpdtoPropertyCode = Nothing
4253+-- * 'proCreatorContacts'
4254+--
4255+-- * 'proLabels'
4256+--
4257+-- * 'proProductId'
4258+product
4259+ :: Product
4260+product =
4261+ Product
4262+ { _proState = Nothing
4263+ , _proInventorySource = Nothing
4264+ , _proWebPropertyCode = Nothing
4265+ , _proCreationTimeMs = Nothing
6262− , _wpdtoId = Nothing
4266+ , _proTerms = Nothing
6263− , _wpdtoSiteURLs = Nothing
4267+ , _proLastUpdateTimeMs = Nothing
6264− , _wpdtoAllowInterestTargetedAds = Nothing
4268+ , _proKind = "adexchangebuyer#product"
4269+ , _proRevisionNumber = Nothing
4270+ , _proHasCreatorSignedOff = Nothing
4271+ , _proFlightStartTimeMs = Nothing
4272+ , _proSharedTargetings = Nothing
4273+ , _proSeller = Nothing
4274+ , _proSyndicationProduct = Nothing
4275+ , _proFlightEndTimeMs = Nothing
4276+ , _proName = Nothing
4277+ , _proCreatorContacts = Nothing
4278+ , _proLabels = Nothing
4279+ , _proProductId = Nothing
6265 }
4280 }
6266
4281
6267−wpdtoEnabledForPreferredDeals :: Lens' WebPropertyDTO (Maybe Bool)
4282+-- | The state of the product. (buyer-readonly)
6268−wpdtoEnabledForPreferredDeals
4283+proState :: Lens' Product (Maybe Text)
6269− = lens _wpdtoEnabledForPreferredDeals
4284+proState = lens _proState (\ s a -> s{_proState = a})
6270− (\ s a -> s{_wpdtoEnabledForPreferredDeals = a})
6271
4285
6272−wpdtoSyndicationProduct :: Lens' WebPropertyDTO (Maybe Text)
4286+-- | What exchange will provide this inventory (readonly, except on create).
6273−wpdtoSyndicationProduct
4287+proInventorySource :: Lens' Product (Maybe Text)
6274− = lens _wpdtoSyndicationProduct
4288+proInventorySource
6275− (\ s a -> s{_wpdtoSyndicationProduct = a})
4289+ = lens _proInventorySource
4290+ (\ s a -> s{_proInventorySource = a})
6276
4291
6277−wpdtoName :: Lens' WebPropertyDTO (Maybe Text)
4292+proWebPropertyCode :: Lens' Product (Maybe Text)
6278−wpdtoName
4293+proWebPropertyCode
6279− = lens _wpdtoName (\ s a -> s{_wpdtoName = a})
4294+ = lens _proWebPropertyCode
4295+ (\ s a -> s{_proWebPropertyCode = a})
6280
4296
6281−wpdtoPropertyCode :: Lens' WebPropertyDTO (Maybe Text)
4297+-- | Creation time in ms. since epoch (readonly)
6282−wpdtoPropertyCode
4298+proCreationTimeMs :: Lens' Product (Maybe Int64)
6283− = lens _wpdtoPropertyCode
4299+proCreationTimeMs
6284− (\ s a -> s{_wpdtoPropertyCode = a})
4300+ = lens _proCreationTimeMs
6285−
4301+ (\ s a -> s{_proCreationTimeMs = a})
6286−wpdtoId :: Lens' WebPropertyDTO (Maybe Int32)
6287−wpdtoId
6288− = lens _wpdtoId (\ s a -> s{_wpdtoId = a}) .
6289− mapping _Coerce
4302+ . mapping _Coerce
6290−
6291−wpdtoSiteURLs :: Lens' WebPropertyDTO [Text]
6292−wpdtoSiteURLs
6293− = lens _wpdtoSiteURLs
6294− (\ s a -> s{_wpdtoSiteURLs = a})
6295− . _Default
6296− . _Coerce
6297
4303
6298−wpdtoAllowInterestTargetedAds :: Lens' WebPropertyDTO (Maybe Bool)
4304+-- | The negotiable terms of the deal (buyer-readonly)
6299−wpdtoAllowInterestTargetedAds
4305+proTerms :: Lens' Product (Maybe DealTerms)
6300− = lens _wpdtoAllowInterestTargetedAds
4306+proTerms = lens _proTerms (\ s a -> s{_proTerms = a})
6301− (\ s a -> s{_wpdtoAllowInterestTargetedAds = a})
6302
4307
6303−instance FromJSON WebPropertyDTO where
4308+-- | Time of last update in ms. since epoch (readonly)
6304− parseJSON
4309+proLastUpdateTimeMs :: Lens' Product (Maybe Int64)
6305− = withObject "WebPropertyDTO"
4310+proLastUpdateTimeMs
6306− (\ o ->
4311+ = lens _proLastUpdateTimeMs
6307− WebPropertyDTO <$>
4312+ (\ s a -> s{_proLastUpdateTimeMs = a})
6308− (o .:? "enabledForPreferredDeals") <*>
4313+ . mapping _Coerce
6309− (o .:? "syndicationProduct")
6310− <*> (o .:? "name")
6311− <*> (o .:? "propertyCode")
6312− <*> (o .:? "id")
6313− <*> (o .:? "siteUrls" .!= mempty)
6314− <*> (o .:? "allowInterestTargetedAds"))
6315
4314
6316−instance ToJSON WebPropertyDTO where
4315+-- | Identifies what kind of resource this is. Value: the fixed string
6317− toJSON WebPropertyDTO{..}
4316+-- \"adexchangebuyer#product\".
6318− = object
4317+proKind :: Lens' Product Text
6319− (catMaybes
4318+proKind = lens _proKind (\ s a -> s{_proKind = a})
6320− [("enabledForPreferredDeals" .=) <$>
4319+
6321− _wpdtoEnabledForPreferredDeals,
4320+-- | The revision number of the product. (readonly)
6322− ("syndicationProduct" .=) <$>
4321+proRevisionNumber :: Lens' Product (Maybe Int64)
6323− _wpdtoSyndicationProduct,
4322+proRevisionNumber
6324− ("name" .=) <$> _wpdtoName,
4323+ = lens _proRevisionNumber
6325− ("propertyCode" .=) <$> _wpdtoPropertyCode,
4324+ (\ s a -> s{_proRevisionNumber = a})
6326− ("id" .=) <$> _wpdtoId,
4325+ . mapping _Coerce
6327− ("siteUrls" .=) <$> _wpdtoSiteURLs,
6328− ("allowInterestTargetedAds" .=) <$>
6329− _wpdtoAllowInterestTargetedAds])
6330−
6331−--
6332−-- /See:/ 'listOffersRequest' smart constructor.
6333−newtype ListOffersRequest = ListOffersRequest
6334− { _lorSinceTimestampMillis :: Maybe (Textual Int64)
6335− } deriving (Eq,Show,Data,Typeable,Generic)
6336
4326
6337−-- | Creates a value of 'ListOffersRequest' with the minimum fields required to make a request.
4327+-- | If the creator has already signed off on the product, then the buyer can
6338−--
4328+-- finalize the deal by accepting the product as is. When copying to a
6339−-- Use one of the following lenses to modify other fields as desired:
4329+-- proposal, if any of the terms are changed, then auto_finalize is
6340−--
4330+-- automatically set to false.
6341−-- * 'lorSinceTimestampMillis'
4331+proHasCreatorSignedOff :: Lens' Product (Maybe Bool)
6342−listOffersRequest
4332+proHasCreatorSignedOff
6343− :: ListOffersRequest
4333+ = lens _proHasCreatorSignedOff
6344−listOffersRequest =
4334+ (\ s a -> s{_proHasCreatorSignedOff = a})
6345− ListOffersRequest
6346− { _lorSinceTimestampMillis = Nothing
6347− }
6348
4335
6349−lorSinceTimestampMillis :: Lens' ListOffersRequest (Maybe Int64)
4336+-- | Inventory availability dates. (times are in ms since epoch) The
6350−lorSinceTimestampMillis
4337+-- granularity is generally in the order of seconds. (buyer-readonly)
6351− = lens _lorSinceTimestampMillis
4338+proFlightStartTimeMs :: Lens' Product (Maybe Int64)
6352− (\ s a -> s{_lorSinceTimestampMillis = a})
4339+proFlightStartTimeMs
4340+ = lens _proFlightStartTimeMs
4341+ (\ s a -> s{_proFlightStartTimeMs = a})
6353 . mapping _Coerce
4342 . mapping _Coerce
6354
4343
6355−instance FromJSON ListOffersRequest where
4344+-- | Targeting that is shared between the buyer and the seller. Each
6356− parseJSON
4345+-- targeting criteria has a specified key and for each key there is a list
6357− = withObject "ListOffersRequest"
4346+-- of inclusion value or exclusion values. (buyer-readonly)
6358− (\ o ->
4347+proSharedTargetings :: Lens' Product [SharedTargeting]
6359− ListOffersRequest <$> (o .:? "sinceTimestampMillis"))
4348+proSharedTargetings
6360−
4349+ = lens _proSharedTargetings
6361−instance ToJSON ListOffersRequest where
4350+ (\ s a -> s{_proSharedTargetings = a})
6362− toJSON ListOffersRequest{..}
4351+ . _Default
6363− = object
4352+ . _Coerce
6364− (catMaybes
6365− [("sinceTimestampMillis" .=) <$>
6366− _lorSinceTimestampMillis])
6367
4353
6368−--
4354+-- | Information about the seller that created this product (readonly, except
6369−-- /See:/ 'clientAccessCapabilities' smart constructor.
4355+-- on create)
6370−data ClientAccessCapabilities = ClientAccessCapabilities
4356+proSeller :: Lens' Product (Maybe Seller)
6371− { _cacClientAccountId :: !(Maybe (Textual Int64))
4357+proSeller
6372− , _cacCapabilities :: !(Maybe [Textual Int32])
4358+ = lens _proSeller (\ s a -> s{_proSeller = a})
6373− } deriving (Eq,Show,Data,Typeable,Generic)
6374
4359
6375−-- | Creates a value of 'ClientAccessCapabilities' with the minimum fields required to make a request.
4360+-- | The syndication product associated with the deal. (readonly, except on
6376−--
4361+-- create)
6377−-- Use one of the following lenses to modify other fields as desired:
4362+proSyndicationProduct :: Lens' Product (Maybe Text)
6378−--
4363+proSyndicationProduct
6379−-- * 'cacClientAccountId'
4364+ = lens _proSyndicationProduct
6380−--
4365+ (\ s a -> s{_proSyndicationProduct = a})
6381−-- * 'cacCapabilities'
6382−clientAccessCapabilities
6383− :: ClientAccessCapabilities
6384−clientAccessCapabilities =
6385− ClientAccessCapabilities
6386− { _cacClientAccountId = Nothing
6387− , _cacCapabilities = Nothing
6388− }
6389
4366
6390−cacClientAccountId :: Lens' ClientAccessCapabilities (Maybe Int64)
4367+-- | The proposed end time for the deal (ms since epoch) (buyer-readonly)
6391−cacClientAccountId
4368+proFlightEndTimeMs :: Lens' Product (Maybe Int64)
6392− = lens _cacClientAccountId
4369+proFlightEndTimeMs
6393− (\ s a -> s{_cacClientAccountId = a})
4370+ = lens _proFlightEndTimeMs
4371+ (\ s a -> s{_proFlightEndTimeMs = a})
6394 . mapping _Coerce
4372 . mapping _Coerce
6395
4373
6396−cacCapabilities :: Lens' ClientAccessCapabilities [Int32]
4374+-- | The name for this product as set by the seller. (buyer-readonly)
6397−cacCapabilities
4375+proName :: Lens' Product (Maybe Text)
6398− = lens _cacCapabilities
4376+proName = lens _proName (\ s a -> s{_proName = a})
6399− (\ s a -> s{_cacCapabilities = a})
4377+
4378+-- | Optional contact information for the creator of this product.
4379+-- (buyer-readonly)
4380+proCreatorContacts :: Lens' Product [ContactInformation]
4381+proCreatorContacts
4382+ = lens _proCreatorContacts
4383+ (\ s a -> s{_proCreatorContacts = a})
6400 . _Default
4384 . _Default
6401 . _Coerce
4385 . _Coerce
6402
4386
4387+-- | Optional List of labels for the product (optional, buyer-readonly).
4388+proLabels :: Lens' Product [MarketplaceLabel]
4389+proLabels
4390+ = lens _proLabels (\ s a -> s{_proLabels = a}) .
4391+ _Default
4392+ . _Coerce
4393+
4394+-- | The unique id for the product (readonly)
4395+proProductId :: Lens' Product (Maybe Text)
4396+proProductId
4397+ = lens _proProductId (\ s a -> s{_proProductId = a})
4398+
6403−instance FromJSON ClientAccessCapabilities where
4399+instance FromJSON Product where
6404 parseJSON
4400 parseJSON
6405− = withObject "ClientAccessCapabilities"
4401+ = withObject "Product"
6406 (\ o ->
4402 (\ o ->
6407− ClientAccessCapabilities <$>
4403+ Product <$>
6408− (o .:? "clientAccountId") <*>
4404+ (o .:? "state") <*> (o .:? "inventorySource") <*>
6409− (o .:? "capabilities" .!= mempty))
4405+ (o .:? "webPropertyCode")
4406+ <*> (o .:? "creationTimeMs")
4407+ <*> (o .:? "terms")
4408+ <*> (o .:? "lastUpdateTimeMs")
4409+ <*> (o .:? "kind" .!= "adexchangebuyer#product")
4410+ <*> (o .:? "revisionNumber")
4411+ <*> (o .:? "hasCreatorSignedOff")
4412+ <*> (o .:? "flightStartTimeMs")
4413+ <*> (o .:? "sharedTargetings" .!= mempty)
4414+ <*> (o .:? "seller")
4415+ <*> (o .:? "syndicationProduct")
4416+ <*> (o .:? "flightEndTimeMs")
4417+ <*> (o .:? "name")
4418+ <*> (o .:? "creatorContacts" .!= mempty)
4419+ <*> (o .:? "labels" .!= mempty)
4420+ <*> (o .:? "productId"))
6410
4421
6411−instance ToJSON ClientAccessCapabilities where
4422+instance ToJSON Product where
6412− toJSON ClientAccessCapabilities{..}
4423+ toJSON Product{..}
6413 = object
4424 = object
6414 (catMaybes
4425 (catMaybes
6415− [("clientAccountId" .=) <$> _cacClientAccountId,
4426+ [("state" .=) <$> _proState,
6416− ("capabilities" .=) <$> _cacCapabilities])
4427+ ("inventorySource" .=) <$> _proInventorySource,
4428+ ("webPropertyCode" .=) <$> _proWebPropertyCode,
4429+ ("creationTimeMs" .=) <$> _proCreationTimeMs,
4430+ ("terms" .=) <$> _proTerms,
4431+ ("lastUpdateTimeMs" .=) <$> _proLastUpdateTimeMs,
4432+ Just ("kind" .= _proKind),
4433+ ("revisionNumber" .=) <$> _proRevisionNumber,
4434+ ("hasCreatorSignedOff" .=) <$>
4435+ _proHasCreatorSignedOff,
4436+ ("flightStartTimeMs" .=) <$> _proFlightStartTimeMs,
4437+ ("sharedTargetings" .=) <$> _proSharedTargetings,
4438+ ("seller" .=) <$> _proSeller,
4439+ ("syndicationProduct" .=) <$> _proSyndicationProduct,
4440+ ("flightEndTimeMs" .=) <$> _proFlightEndTimeMs,
4441+ ("name" .=) <$> _proName,
4442+ ("creatorContacts" .=) <$> _proCreatorContacts,
4443+ ("labels" .=) <$> _proLabels,
4444+ ("productId" .=) <$> _proProductId])
6417
4445
6418--
4446--
6419-- /See:/ 'creativeServingRestrictionsItem' smart constructor.
4447-- /See:/ 'creativeServingRestrictionsItem' smart constructor.
@@ -6487,8 +4515,8 @@ instance ToJSON CreativeServingRestrictionsItem where
6487--
4515--
6488-- /See:/ 'deleteOrderDealsResponse' smart constructor.
4516-- /See:/ 'deleteOrderDealsResponse' smart constructor.
6489data DeleteOrderDealsResponse = DeleteOrderDealsResponse
4517data DeleteOrderDealsResponse = DeleteOrderDealsResponse
6490− { _dDeals :: !(Maybe [MarketplaceDeal])
4518+ { _dDeals :: !(Maybe [MarketplaceDeal])
6491− , _dOrderRevisionNumber :: !(Maybe (Textual Int64))
4519+ , _dProposalRevisionNumber :: !(Maybe (Textual Int64))
6492 } deriving (Eq,Show,Data,Typeable,Generic)
4520 } deriving (Eq,Show,Data,Typeable,Generic)
6493
4521
6494-- | Creates a value of 'DeleteOrderDealsResponse' with the minimum fields required to make a request.
4522-- | Creates a value of 'DeleteOrderDealsResponse' with the minimum fields required to make a request.
@@ -6497,26 +4525,26 @@ data DeleteOrderDealsResponse = DeleteOrderDealsResponse
6497--
4525--
6498-- * 'dDeals'
4526-- * 'dDeals'
6499--
4527--
6500−-- * 'dOrderRevisionNumber'
4528+-- * 'dProposalRevisionNumber'
6501deleteOrderDealsResponse
4529deleteOrderDealsResponse
6502 :: DeleteOrderDealsResponse
4530 :: DeleteOrderDealsResponse
6503deleteOrderDealsResponse =
4531deleteOrderDealsResponse =
6504 DeleteOrderDealsResponse
4532 DeleteOrderDealsResponse
6505 { _dDeals = Nothing
4533 { _dDeals = Nothing
6506− , _dOrderRevisionNumber = Nothing
4534+ , _dProposalRevisionNumber = Nothing
6507 }
4535 }
6508
4536
6509−-- | List of deals deleted (in the same order as passed in the request)
4537+-- | List of deals deleted (in the same proposal as passed in the request)
6510dDeals :: Lens' DeleteOrderDealsResponse [MarketplaceDeal]
4538dDeals :: Lens' DeleteOrderDealsResponse [MarketplaceDeal]
6511dDeals
4539dDeals
6512 = lens _dDeals (\ s a -> s{_dDeals = a}) . _Default .
4540 = lens _dDeals (\ s a -> s{_dDeals = a}) . _Default .
6513 _Coerce
4541 _Coerce
6514
4542
6515−-- | The updated revision number for the order.
4543+-- | The updated revision number for the proposal.
6516−dOrderRevisionNumber :: Lens' DeleteOrderDealsResponse (Maybe Int64)
4544+dProposalRevisionNumber :: Lens' DeleteOrderDealsResponse (Maybe Int64)
6517−dOrderRevisionNumber
4545+dProposalRevisionNumber
6518− = lens _dOrderRevisionNumber
4546+ = lens _dProposalRevisionNumber
6519− (\ s a -> s{_dOrderRevisionNumber = a})
4547+ (\ s a -> s{_dProposalRevisionNumber = a})
6520 . mapping _Coerce
4548 . mapping _Coerce
6521
4549
6522instance FromJSON DeleteOrderDealsResponse where
4550instance FromJSON DeleteOrderDealsResponse where
@@ -6525,15 +4553,15 @@ instance FromJSON DeleteOrderDealsResponse where
6525 (\ o ->
4553 (\ o ->
6526 DeleteOrderDealsResponse <$>
4554 DeleteOrderDealsResponse <$>
6527 (o .:? "deals" .!= mempty) <*>
4555 (o .:? "deals" .!= mempty) <*>
6528− (o .:? "orderRevisionNumber"))
4556+ (o .:? "proposalRevisionNumber"))
6529
4557
6530instance ToJSON DeleteOrderDealsResponse where
4558instance ToJSON DeleteOrderDealsResponse where
6531 toJSON DeleteOrderDealsResponse{..}
4559 toJSON DeleteOrderDealsResponse{..}
6532 = object
4560 = object
6533 (catMaybes
4561 (catMaybes
6534 [("deals" .=) <$> _dDeals,
4562 [("deals" .=) <$> _dDeals,
6535− ("orderRevisionNumber" .=) <$>
4563+ ("proposalRevisionNumber" .=) <$>
6536− _dOrderRevisionNumber])
4564+ _dProposalRevisionNumber])
6537
4565
6538--
4566--
6539-- /See:/ 'pretargetingConfigPlacementsItem' smart constructor.
4567-- /See:/ 'pretargetingConfigPlacementsItem' smart constructor.
@@ -6584,30 +4612,31 @@ instance ToJSON PretargetingConfigPlacementsItem
6584 [("token" .=) <$> _pcpiToken,
4612 [("token" .=) <$> _pcpiToken,
6585 ("type" .=) <$> _pcpiType])
4613 ("type" .=) <$> _pcpiType])
6586
4614
6587−-- | An order can contain multiple deals. A deal contains the terms and
4615+-- | A proposal can contain multiple deals. A deal contains the terms and
6588-- targeting information that is used for serving.
4616-- targeting information that is used for serving.
6589--
4617--
6590-- /See:/ 'marketplaceDeal' smart constructor.
4618-- /See:/ 'marketplaceDeal' smart constructor.
6591data MarketplaceDeal = MarketplaceDeal
4619data MarketplaceDeal = MarketplaceDeal
6592− { _mdExternalDealId :: !(Maybe Text)
4620+ { _mdExternalDealId :: !(Maybe Text)
6593− , _mdBuyerPrivateData :: !(Maybe PrivateData)
4621+ , _mdBuyerPrivateData :: !(Maybe PrivateData)
6594− , _mdWebPropertyCode :: !(Maybe Text)
4622+ , _mdWebPropertyCode :: !(Maybe Text)
6595− , _mdCreationTimeMs :: !(Maybe (Textual Int64))
4623+ , _mdCreationTimeMs :: !(Maybe (Textual Int64))
6596− , _mdTerms :: !(Maybe DealTerms)
4624+ , _mdTerms :: !(Maybe DealTerms)
6597− , _mdOfferRevisionNumber :: !(Maybe (Textual Int64))
6598− , _mdLastUpdateTimeMs :: !(Maybe (Textual Int64))
4625+ , _mdLastUpdateTimeMs :: !(Maybe (Textual Int64))
6599− , _mdKind :: !Text
4626+ , _mdKind :: !Text
6600− , _mdDeliveryControl :: !(Maybe DeliveryControl)
4627+ , _mdDeliveryControl :: !(Maybe DeliveryControl)
6601− , _mdFlightStartTimeMs :: !(Maybe (Textual Int64))
4628+ , _mdFlightStartTimeMs :: !(Maybe (Textual Int64))
6602− , _mdSharedTargetings :: !(Maybe [SharedTargeting])
4629+ , _mdSharedTargetings :: !(Maybe [SharedTargeting])
4630+ , _mdProposalId :: !(Maybe Text)
6603− , _mdDealId :: !(Maybe Text)
4631+ , _mdDealId :: !(Maybe Text)
6604− , _mdInventoryDescription :: !(Maybe Text)
4632+ , _mdInventoryDescription :: !(Maybe Text)
6605− , _mdSyndicationProduct :: !(Maybe Text)
4633+ , _mdSyndicationProduct :: !(Maybe Text)
6606− , _mdFlightEndTimeMs :: !(Maybe (Textual Int64))
4634+ , _mdFlightEndTimeMs :: !(Maybe (Textual Int64))
6607− , _mdName :: !(Maybe Text)
4635+ , _mdName :: !(Maybe Text)
6608− , _mdSellerContacts :: !(Maybe [ContactInformation])
4636+ , _mdSellerContacts :: !(Maybe [ContactInformation])
6609− , _mdOfferId :: !(Maybe Text)
4637+ , _mdCreativePreApprovalPolicy :: !(Maybe Text)
4638+ , _mdProductRevisionNumber :: !(Maybe (Textual Int64))
6610− , _mdOrderId :: !(Maybe Text)
4639+ , _mdProductId :: !(Maybe Text)
6611 } deriving (Eq,Show,Data,Typeable,Generic)
4640 } deriving (Eq,Show,Data,Typeable,Generic)
6612
4641
6613-- | Creates a value of 'MarketplaceDeal' with the minimum fields required to make a request.
4642-- | Creates a value of 'MarketplaceDeal' with the minimum fields required to make a request.
@@ -6624,8 +4653,6 @@ data MarketplaceDeal = MarketplaceDeal
6624--
4653--
6625-- * 'mdTerms'
4654-- * 'mdTerms'
6626--
4655--
6627−-- * 'mdOfferRevisionNumber'
6628−--
6629-- * 'mdLastUpdateTimeMs'
4656-- * 'mdLastUpdateTimeMs'
6630--
4657--
6631-- * 'mdKind'
4658-- * 'mdKind'
@@ -6636,6 +4663,8 @@ data MarketplaceDeal = MarketplaceDeal
6636--
4663--
6637-- * 'mdSharedTargetings'
4664-- * 'mdSharedTargetings'
6638--
4665--
4666+-- * 'mdProposalId'
4667+--
6639-- * 'mdDealId'
4668-- * 'mdDealId'
6640--
4669--
6641-- * 'mdInventoryDescription'
4670-- * 'mdInventoryDescription'
@@ -6648,9 +4677,11 @@ data MarketplaceDeal = MarketplaceDeal
6648--
4677--
6649-- * 'mdSellerContacts'
4678-- * 'mdSellerContacts'
6650--
4679--
6651−-- * 'mdOfferId'
4680+-- * 'mdCreativePreApprovalPolicy'
4681+--
4682+-- * 'mdProductRevisionNumber'
6652--
4683--
6653−-- * 'mdOrderId'
4684+-- * 'mdProductId'
6654marketplaceDeal
4685marketplaceDeal
6655 :: MarketplaceDeal
4686 :: MarketplaceDeal
6656marketplaceDeal =
4687marketplaceDeal =
@@ -6660,20 +4691,21 @@ marketplaceDeal =
6660 , _mdWebPropertyCode = Nothing
4691 , _mdWebPropertyCode = Nothing
6661 , _mdCreationTimeMs = Nothing
4692 , _mdCreationTimeMs = Nothing
6662 , _mdTerms = Nothing
4693 , _mdTerms = Nothing
6663− , _mdOfferRevisionNumber = Nothing
6664 , _mdLastUpdateTimeMs = Nothing
4694 , _mdLastUpdateTimeMs = Nothing
6665 , _mdKind = "adexchangebuyer#marketplaceDeal"
4695 , _mdKind = "adexchangebuyer#marketplaceDeal"
6666 , _mdDeliveryControl = Nothing
4696 , _mdDeliveryControl = Nothing
6667 , _mdFlightStartTimeMs = Nothing
4697 , _mdFlightStartTimeMs = Nothing
6668 , _mdSharedTargetings = Nothing
4698 , _mdSharedTargetings = Nothing
4699+ , _mdProposalId = Nothing
6669 , _mdDealId = Nothing
4700 , _mdDealId = Nothing
6670 , _mdInventoryDescription = Nothing
4701 , _mdInventoryDescription = Nothing
6671 , _mdSyndicationProduct = Nothing
4702 , _mdSyndicationProduct = Nothing
6672 , _mdFlightEndTimeMs = Nothing
4703 , _mdFlightEndTimeMs = Nothing
6673 , _mdName = Nothing
4704 , _mdName = Nothing
6674 , _mdSellerContacts = Nothing
4705 , _mdSellerContacts = Nothing
6675− , _mdOfferId = Nothing
4706+ , _mdCreativePreApprovalPolicy = Nothing
6676− , _mdOrderId = Nothing
4707+ , _mdProductRevisionNumber = Nothing
4708+ , _mdProductId = Nothing
6677 }
4709 }
6678
4710
6679-- | The external deal id assigned to this deal once the deal is finalized.
4711-- | The external deal id assigned to this deal once the deal is finalized.
@@ -6705,14 +4737,6 @@ mdCreationTimeMs
6705mdTerms :: Lens' MarketplaceDeal (Maybe DealTerms)
4737mdTerms :: Lens' MarketplaceDeal (Maybe DealTerms)
6706mdTerms = lens _mdTerms (\ s a -> s{_mdTerms = a})
4738mdTerms = lens _mdTerms (\ s a -> s{_mdTerms = a})
6707
4739
6708−-- | The revision number of the offer that the deal was created from
6709−-- (readonly, except on create)
6710−mdOfferRevisionNumber :: Lens' MarketplaceDeal (Maybe Int64)
6711−mdOfferRevisionNumber
6712− = lens _mdOfferRevisionNumber
6713− (\ s a -> s{_mdOfferRevisionNumber = a})
6714− . mapping _Coerce
6715−
6716-- | The time (ms since epoch) when the deal was last updated. (readonly)
4740-- | The time (ms since epoch) when the deal was last updated. (readonly)
6717mdLastUpdateTimeMs :: Lens' MarketplaceDeal (Maybe Int64)
4741mdLastUpdateTimeMs :: Lens' MarketplaceDeal (Maybe Int64)
6718mdLastUpdateTimeMs
4742mdLastUpdateTimeMs
@@ -6750,6 +4774,10 @@ mdSharedTargetings
6750 . _Default
4774 . _Default
6751 . _Coerce
4775 . _Coerce
6752
4776
4777+mdProposalId :: Lens' MarketplaceDeal (Maybe Text)
4778+mdProposalId
4779+ = lens _mdProposalId (\ s a -> s{_mdProposalId = a})
4780+
6753-- | A unique deal=id for the deal (readonly).
4781-- | A unique deal=id for the deal (readonly).
6754mdDealId :: Lens' MarketplaceDeal (Maybe Text)
4782mdDealId :: Lens' MarketplaceDeal (Maybe Text)
6755mdDealId = lens _mdDealId (\ s a -> s{_mdDealId = a})
4783mdDealId = lens _mdDealId (\ s a -> s{_mdDealId = a})
@@ -6787,15 +4815,25 @@ mdSellerContacts
6787 . _Default
4815 . _Default
6788 . _Coerce
4816 . _Coerce
6789
4817
4818+-- | Specifies the creative pre-approval policy (buyer-readonly)
4819+mdCreativePreApprovalPolicy :: Lens' MarketplaceDeal (Maybe Text)
4820+mdCreativePreApprovalPolicy
4821+ = lens _mdCreativePreApprovalPolicy
4822+ (\ s a -> s{_mdCreativePreApprovalPolicy = a})
4823+
4824+-- | The revision number of the product that the deal was created from
6790−-- | The offer-id from which this deal was created. (readonly, except on
4825+-- (readonly, except on create)
6791−-- create)
6792−mdOfferId :: Lens' MarketplaceDeal (Maybe Text)
4826+mdProductRevisionNumber :: Lens' MarketplaceDeal (Maybe Int64)
6793−mdOfferId
4827+mdProductRevisionNumber
6794− = lens _mdOfferId (\ s a -> s{_mdOfferId = a})
4828+ = lens _mdProductRevisionNumber
4829+ (\ s a -> s{_mdProductRevisionNumber = a})
4830+ . mapping _Coerce
6795
4831
4832+-- | The product-id from which this deal was created. (readonly, except on
4833+-- create)
6796−mdOrderId :: Lens' MarketplaceDeal (Maybe Text)
4834+mdProductId :: Lens' MarketplaceDeal (Maybe Text)
6797−mdOrderId
4835+mdProductId
6798− = lens _mdOrderId (\ s a -> s{_mdOrderId = a})
4836+ = lens _mdProductId (\ s a -> s{_mdProductId = a})
6799
4837
6800instance FromJSON MarketplaceDeal where
4838instance FromJSON MarketplaceDeal where
6801 parseJSON
4839 parseJSON
@@ -6807,21 +4845,22 @@ instance FromJSON MarketplaceDeal where
6807 <*> (o .:? "webPropertyCode")
4845 <*> (o .:? "webPropertyCode")
6808 <*> (o .:? "creationTimeMs")
4846 <*> (o .:? "creationTimeMs")
6809 <*> (o .:? "terms")
4847 <*> (o .:? "terms")
6810− <*> (o .:? "offerRevisionNumber")
6811 <*> (o .:? "lastUpdateTimeMs")
4848 <*> (o .:? "lastUpdateTimeMs")
6812 <*>
4849 <*>
6813 (o .:? "kind" .!= "adexchangebuyer#marketplaceDeal")
4850 (o .:? "kind" .!= "adexchangebuyer#marketplaceDeal")
6814 <*> (o .:? "deliveryControl")
4851 <*> (o .:? "deliveryControl")
6815 <*> (o .:? "flightStartTimeMs")
4852 <*> (o .:? "flightStartTimeMs")
6816 <*> (o .:? "sharedTargetings" .!= mempty)
4853 <*> (o .:? "sharedTargetings" .!= mempty)
4854+ <*> (o .:? "proposalId")
6817 <*> (o .:? "dealId")
4855 <*> (o .:? "dealId")
6818 <*> (o .:? "inventoryDescription")
4856 <*> (o .:? "inventoryDescription")
6819 <*> (o .:? "syndicationProduct")
4857 <*> (o .:? "syndicationProduct")
6820 <*> (o .:? "flightEndTimeMs")
4858 <*> (o .:? "flightEndTimeMs")
6821 <*> (o .:? "name")
4859 <*> (o .:? "name")
6822 <*> (o .:? "sellerContacts" .!= mempty)
4860 <*> (o .:? "sellerContacts" .!= mempty)
6823− <*> (o .:? "offerId")
4861+ <*> (o .:? "creativePreApprovalPolicy")
6824− <*> (o .:? "orderId"))
4862+ <*> (o .:? "productRevisionNumber")
4863+ <*> (o .:? "productId"))
6825
4864
6826instance ToJSON MarketplaceDeal where
4865instance ToJSON MarketplaceDeal where
6827 toJSON MarketplaceDeal{..}
4866 toJSON MarketplaceDeal{..}
@@ -6832,13 +4871,12 @@ instance ToJSON MarketplaceDeal where
6832 ("webPropertyCode" .=) <$> _mdWebPropertyCode,
4871 ("webPropertyCode" .=) <$> _mdWebPropertyCode,
6833 ("creationTimeMs" .=) <$> _mdCreationTimeMs,
4872 ("creationTimeMs" .=) <$> _mdCreationTimeMs,
6834 ("terms" .=) <$> _mdTerms,
4873 ("terms" .=) <$> _mdTerms,
6835− ("offerRevisionNumber" .=) <$>
6836− _mdOfferRevisionNumber,
6837 ("lastUpdateTimeMs" .=) <$> _mdLastUpdateTimeMs,
4874 ("lastUpdateTimeMs" .=) <$> _mdLastUpdateTimeMs,
6838 Just ("kind" .= _mdKind),
4875 Just ("kind" .= _mdKind),
6839 ("deliveryControl" .=) <$> _mdDeliveryControl,
4876 ("deliveryControl" .=) <$> _mdDeliveryControl,
6840 ("flightStartTimeMs" .=) <$> _mdFlightStartTimeMs,
4877 ("flightStartTimeMs" .=) <$> _mdFlightStartTimeMs,
6841 ("sharedTargetings" .=) <$> _mdSharedTargetings,
4878 ("sharedTargetings" .=) <$> _mdSharedTargetings,
4879+ ("proposalId" .=) <$> _mdProposalId,
6842 ("dealId" .=) <$> _mdDealId,
4880 ("dealId" .=) <$> _mdDealId,
6843 ("inventoryDescription" .=) <$>
4881 ("inventoryDescription" .=) <$>
6844 _mdInventoryDescription,
4882 _mdInventoryDescription,
@@ -6846,31 +4884,34 @@ instance ToJSON MarketplaceDeal where
6846 ("flightEndTimeMs" .=) <$> _mdFlightEndTimeMs,
4884 ("flightEndTimeMs" .=) <$> _mdFlightEndTimeMs,
6847 ("name" .=) <$> _mdName,
4885 ("name" .=) <$> _mdName,
6848 ("sellerContacts" .=) <$> _mdSellerContacts,
4886 ("sellerContacts" .=) <$> _mdSellerContacts,
6849− ("offerId" .=) <$> _mdOfferId,
4887+ ("creativePreApprovalPolicy" .=) <$>
6850− ("orderId" .=) <$> _mdOrderId])
4888+ _mdCreativePreApprovalPolicy,
4889+ ("productRevisionNumber" .=) <$>
4890+ _mdProductRevisionNumber,
4891+ ("productId" .=) <$> _mdProductId])
6851
4892
6852--
4893--
6853-- /See:/ 'getOffersResponse' smart constructor.
4894-- /See:/ 'getOffersResponse' smart constructor.
6854newtype GetOffersResponse = GetOffersResponse
4895newtype GetOffersResponse = GetOffersResponse
6855− { _gorOffers :: Maybe [MarketplaceOffer]
4896+ { _gorProducts :: Maybe [Product]
6856 } deriving (Eq,Show,Data,Typeable,Generic)
4897 } deriving (Eq,Show,Data,Typeable,Generic)
6857
4898
6858-- | Creates a value of 'GetOffersResponse' with the minimum fields required to make a request.
4899-- | Creates a value of 'GetOffersResponse' with the minimum fields required to make a request.
6859--
4900--
6860-- Use one of the following lenses to modify other fields as desired:
4901-- Use one of the following lenses to modify other fields as desired:
6861--
4902--
6862−-- * 'gorOffers'
4903+-- * 'gorProducts'
6863getOffersResponse
4904getOffersResponse
6864 :: GetOffersResponse
4905 :: GetOffersResponse
6865getOffersResponse =
4906getOffersResponse =
6866 GetOffersResponse
4907 GetOffersResponse
6867− { _gorOffers = Nothing
4908+ { _gorProducts = Nothing
6868 }
4909 }
6869
4910
6870−-- | The returned list of offers.
4911+-- | The returned list of products.
6871−gorOffers :: Lens' GetOffersResponse [MarketplaceOffer]
4912+gorProducts :: Lens' GetOffersResponse [Product]
6872−gorOffers
4913+gorProducts
6873− = lens _gorOffers (\ s a -> s{_gorOffers = a}) .
4914+ = lens _gorProducts (\ s a -> s{_gorProducts = a}) .
6874 _Default
4915 _Default
6875 . _Coerce
4916 . _Coerce
6876
4917
@@ -6878,100 +4919,12 @@ instance FromJSON GetOffersResponse where
6878 parseJSON
4919 parseJSON
6879 = withObject "GetOffersResponse"
4920 = withObject "GetOffersResponse"
6880 (\ o ->
4921 (\ o ->
6881− GetOffersResponse <$> (o .:? "offers" .!= mempty))
4922+ GetOffersResponse <$> (o .:? "products" .!= mempty))
6882
4923
6883instance ToJSON GetOffersResponse where
4924instance ToJSON GetOffersResponse where
6884 toJSON GetOffersResponse{..}
4925 toJSON GetOffersResponse{..}
6885− = object (catMaybes [("offers" .=) <$> _gorOffers])
6886−
6887−--
6888−-- /See:/ 'statsDTO' smart constructor.
6889−data StatsDTO = StatsDTO
6890− { _sdtoBids :: !(Maybe (Textual Int64))
6891− , _sdtoSpend :: !(Maybe MoneyDTO)
6892− , _sdtoImpressions :: !(Maybe (Textual Int64))
6893− , _sdtoGoodBids :: !(Maybe (Textual Int64))
6894− , _sdtoRevenue :: !(Maybe MoneyDTO)
6895− , _sdtoRequests :: !(Maybe (Textual Int64))
6896− } deriving (Eq,Show,Data,Typeable,Generic)
6897−
6898−-- | Creates a value of 'StatsDTO' with the minimum fields required to make a request.
6899−--
6900−-- Use one of the following lenses to modify other fields as desired:
6901−--
6902−-- * 'sdtoBids'
6903−--
6904−-- * 'sdtoSpend'
6905−--
6906−-- * 'sdtoImpressions'
6907−--
6908−-- * 'sdtoGoodBids'
6909−--
6910−-- * 'sdtoRevenue'
6911−--
6912−-- * 'sdtoRequests'
6913−statsDTO
6914− :: StatsDTO
6915−statsDTO =
6916− StatsDTO
6917− { _sdtoBids = Nothing
6918− , _sdtoSpend = Nothing
6919− , _sdtoImpressions = Nothing
6920− , _sdtoGoodBids = Nothing
6921− , _sdtoRevenue = Nothing
6922− , _sdtoRequests = Nothing
6923− }
6924−
6925−sdtoBids :: Lens' StatsDTO (Maybe Int64)
6926−sdtoBids
6927− = lens _sdtoBids (\ s a -> s{_sdtoBids = a}) .
6928− mapping _Coerce
6929−
6930−sdtoSpend :: Lens' StatsDTO (Maybe MoneyDTO)
6931−sdtoSpend
6932− = lens _sdtoSpend (\ s a -> s{_sdtoSpend = a})
6933−
6934−sdtoImpressions :: Lens' StatsDTO (Maybe Int64)
6935−sdtoImpressions
6936− = lens _sdtoImpressions
6937− (\ s a -> s{_sdtoImpressions = a})
6938− . mapping _Coerce
6939−
6940−sdtoGoodBids :: Lens' StatsDTO (Maybe Int64)
6941−sdtoGoodBids
6942− = lens _sdtoGoodBids (\ s a -> s{_sdtoGoodBids = a})
6943− . mapping _Coerce
6944−
6945−sdtoRevenue :: Lens' StatsDTO (Maybe MoneyDTO)
6946−sdtoRevenue
6947− = lens _sdtoRevenue (\ s a -> s{_sdtoRevenue = a})
6948−
6949−sdtoRequests :: Lens' StatsDTO (Maybe Int64)
6950−sdtoRequests
6951− = lens _sdtoRequests (\ s a -> s{_sdtoRequests = a})
6952− . mapping _Coerce
6953−
6954−instance FromJSON StatsDTO where
6955− parseJSON
6956− = withObject "StatsDTO"
6957− (\ o ->
6958− StatsDTO <$>
6959− (o .:? "bids") <*> (o .:? "spend") <*>
6960− (o .:? "impressions")
6961− <*> (o .:? "goodBids")
6962− <*> (o .:? "revenue")
6963− <*> (o .:? "requests"))
6964−
6965−instance ToJSON StatsDTO where
6966− toJSON StatsDTO{..}
6967 = object
4926 = object
6968− (catMaybes
4927+ (catMaybes [("products" .=) <$> _gorProducts])
6969− [("bids" .=) <$> _sdtoBids,
6970− ("spend" .=) <$> _sdtoSpend,
6971− ("impressions" .=) <$> _sdtoImpressions,
6972− ("goodBids" .=) <$> _sdtoGoodBids,
6973− ("revenue" .=) <$> _sdtoRevenue,
6974− ("requests" .=) <$> _sdtoRequests])
6975
4928
6976--
4929--
6977-- /See:/ 'dealTermsNonGuaranteedAuctionTerms' smart constructor.
4930-- /See:/ 'dealTermsNonGuaranteedAuctionTerms' smart constructor.
@@ -7082,142 +5035,14 @@ instance ToJSON CreativeFilteringReasonsReasonsItem
7082 [("filteringStatus" .=) <$> _cfrriFilteringStatus,
5035 [("filteringStatus" .=) <$> _cfrriFilteringStatus,
7083 ("filteringCount" .=) <$> _cfrriFilteringCount])
5036 ("filteringCount" .=) <$> _cfrriFilteringCount])
7084
5037
7085−--
7086−-- /See:/ 'negotiationRoundDTO' smart constructor.
7087−data NegotiationRoundDTO = NegotiationRoundDTO
7088− { _nrdtoTerms :: !(Maybe TermsDTO)
7089− , _nrdtoKind :: !Text
7090− , _nrdtoOriginatorRole :: !(Maybe Text)
7091− , _nrdtoAction :: !(Maybe Text)
7092− , _nrdtoDBmPartnerId :: !(Maybe (Textual Int64))
7093− , _nrdtoNotes :: !(Maybe Text)
7094− , _nrdtoNegotiationId :: !(Maybe (Textual Int64))
7095− , _nrdtoEditHistory :: !(Maybe EditHistoryDTO)
7096− , _nrdtoRoundNumber :: !(Maybe (Textual Int64))
7097− } deriving (Eq,Show,Data,Typeable,Generic)
7098−
7099−-- | Creates a value of 'NegotiationRoundDTO' with the minimum fields required to make a request.
7100−--
7101−-- Use one of the following lenses to modify other fields as desired:
7102−--
7103−-- * 'nrdtoTerms'
7104−--
7105−-- * 'nrdtoKind'
7106−--
7107−-- * 'nrdtoOriginatorRole'
7108−--
7109−-- * 'nrdtoAction'
7110−--
7111−-- * 'nrdtoDBmPartnerId'
7112−--
7113−-- * 'nrdtoNotes'
7114−--
7115−-- * 'nrdtoNegotiationId'
7116−--
7117−-- * 'nrdtoEditHistory'
7118−--
7119−-- * 'nrdtoRoundNumber'
7120−negotiationRoundDTO
7121− :: NegotiationRoundDTO
7122−negotiationRoundDTO =
7123− NegotiationRoundDTO
7124− { _nrdtoTerms = Nothing
7125− , _nrdtoKind = "adexchangebuyer#negotiationRound"
7126− , _nrdtoOriginatorRole = Nothing
7127− , _nrdtoAction = Nothing
7128− , _nrdtoDBmPartnerId = Nothing
7129− , _nrdtoNotes = Nothing
7130− , _nrdtoNegotiationId = Nothing
7131− , _nrdtoEditHistory = Nothing
7132− , _nrdtoRoundNumber = Nothing
7133− }
7134−
7135−-- | The detailed terms proposed in this negotiation round.
7136−nrdtoTerms :: Lens' NegotiationRoundDTO (Maybe TermsDTO)
7137−nrdtoTerms
7138− = lens _nrdtoTerms (\ s a -> s{_nrdtoTerms = a})
7139−
7140−nrdtoKind :: Lens' NegotiationRoundDTO Text
7141−nrdtoKind
7142− = lens _nrdtoKind (\ s a -> s{_nrdtoKind = a})
7143−
7144−-- | The role, either buyer or seller, initiating this negotiation round.
7145−nrdtoOriginatorRole :: Lens' NegotiationRoundDTO (Maybe Text)
7146−nrdtoOriginatorRole
7147− = lens _nrdtoOriginatorRole
7148− (\ s a -> s{_nrdtoOriginatorRole = a})
7149−
7150−-- | The action performed by this negotiation round.
7151−nrdtoAction :: Lens' NegotiationRoundDTO (Maybe Text)
7152−nrdtoAction
7153− = lens _nrdtoAction (\ s a -> s{_nrdtoAction = a})
7154−
7155−-- | Stores DBM partner ID for use by DBM
7156−nrdtoDBmPartnerId :: Lens' NegotiationRoundDTO (Maybe Int64)
7157−nrdtoDBmPartnerId
7158− = lens _nrdtoDBmPartnerId
7159− (\ s a -> s{_nrdtoDBmPartnerId = a})
7160− . mapping _Coerce
7161−
7162−-- | Notes regarding this negotiation round.
7163−nrdtoNotes :: Lens' NegotiationRoundDTO (Maybe Text)
7164−nrdtoNotes
7165− = lens _nrdtoNotes (\ s a -> s{_nrdtoNotes = a})
7166−
7167−-- | The ID of the negotiation to which this negotiation round applies.
7168−nrdtoNegotiationId :: Lens' NegotiationRoundDTO (Maybe Int64)
7169−nrdtoNegotiationId
7170− = lens _nrdtoNegotiationId
7171− (\ s a -> s{_nrdtoNegotiationId = a})
7172− . mapping _Coerce
7173−
7174−-- | The edit history of this negotiation round.
7175−nrdtoEditHistory :: Lens' NegotiationRoundDTO (Maybe EditHistoryDTO)
7176−nrdtoEditHistory
7177− = lens _nrdtoEditHistory
7178− (\ s a -> s{_nrdtoEditHistory = a})
7179−
7180−-- | The number of this negotiation round, in sequence.
7181−nrdtoRoundNumber :: Lens' NegotiationRoundDTO (Maybe Int64)
7182−nrdtoRoundNumber
7183− = lens _nrdtoRoundNumber
7184− (\ s a -> s{_nrdtoRoundNumber = a})
7185− . mapping _Coerce
7186−
7187−instance FromJSON NegotiationRoundDTO where
7188− parseJSON
7189− = withObject "NegotiationRoundDTO"
7190− (\ o ->
7191− NegotiationRoundDTO <$>
7192− (o .:? "terms") <*>
7193− (o .:? "kind" .!= "adexchangebuyer#negotiationRound")
7194− <*> (o .:? "originatorRole")
7195− <*> (o .:? "action")
7196− <*> (o .:? "dbmPartnerId")
7197− <*> (o .:? "notes")
7198− <*> (o .:? "negotiationId")
7199− <*> (o .:? "editHistory")
7200− <*> (o .:? "roundNumber"))
7201−
7202−instance ToJSON NegotiationRoundDTO where
7203− toJSON NegotiationRoundDTO{..}
7204− = object
7205− (catMaybes
7206− [("terms" .=) <$> _nrdtoTerms,
7207− Just ("kind" .= _nrdtoKind),
7208− ("originatorRole" .=) <$> _nrdtoOriginatorRole,
7209− ("action" .=) <$> _nrdtoAction,
7210− ("dbmPartnerId" .=) <$> _nrdtoDBmPartnerId,
7211− ("notes" .=) <$> _nrdtoNotes,
7212− ("negotiationId" .=) <$> _nrdtoNegotiationId,
7213− ("editHistory" .=) <$> _nrdtoEditHistory,
7214− ("roundNumber" .=) <$> _nrdtoRoundNumber])
7215−
7216--
5038--
7217-- /See:/ 'dealTerms' smart constructor.
5039-- /See:/ 'dealTerms' smart constructor.
7218data DealTerms = DealTerms
5040data DealTerms = DealTerms
5041+ { _dtEstimatedGrossSpend :: !(Maybe Price)
7219− { _dtNonGuaranteedFixedPriceTerms :: !(Maybe DealTermsNonGuaranteedFixedPriceTerms)
5042+ , _dtNonGuaranteedFixedPriceTerms :: !(Maybe DealTermsNonGuaranteedFixedPriceTerms)
7220 , _dtNonGuaranteedAuctionTerms :: !(Maybe DealTermsNonGuaranteedAuctionTerms)
5043 , _dtNonGuaranteedAuctionTerms :: !(Maybe DealTermsNonGuaranteedAuctionTerms)
5044+ , _dtBrandingType :: !(Maybe Text)
5045+ , _dtEstimatedImpressionsPerDay :: !(Maybe (Textual Int64))
7221 , _dtGuaranteedFixedPriceTerms :: !(Maybe DealTermsGuaranteedFixedPriceTerms)
5046 , _dtGuaranteedFixedPriceTerms :: !(Maybe DealTermsGuaranteedFixedPriceTerms)
7222 , _dtDescription :: !(Maybe Text)
5047 , _dtDescription :: !(Maybe Text)
7223 } deriving (Eq,Show,Data,Typeable,Generic)
5048 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -7226,10 +5051,16 @@ data DealTerms = DealTerms
7226--
5051--
7227-- Use one of the following lenses to modify other fields as desired:
5052-- Use one of the following lenses to modify other fields as desired:
7228--
5053--
5054+-- * 'dtEstimatedGrossSpend'
5055+--
7229-- * 'dtNonGuaranteedFixedPriceTerms'
5056-- * 'dtNonGuaranteedFixedPriceTerms'
7230--
5057--
7231-- * 'dtNonGuaranteedAuctionTerms'
5058-- * 'dtNonGuaranteedAuctionTerms'
7232--
5059--
5060+-- * 'dtBrandingType'
5061+--
5062+-- * 'dtEstimatedImpressionsPerDay'
5063+--
7233-- * 'dtGuaranteedFixedPriceTerms'
5064-- * 'dtGuaranteedFixedPriceTerms'
7234--
5065--
7235-- * 'dtDescription'
5066-- * 'dtDescription'
@@ -7237,12 +5068,22 @@ dealTerms
7237 :: DealTerms
5068 :: DealTerms
7238dealTerms =
5069dealTerms =
7239 DealTerms
5070 DealTerms
5071+ { _dtEstimatedGrossSpend = Nothing
7240− { _dtNonGuaranteedFixedPriceTerms = Nothing
5072+ , _dtNonGuaranteedFixedPriceTerms = Nothing
7241 , _dtNonGuaranteedAuctionTerms = Nothing
5073 , _dtNonGuaranteedAuctionTerms = Nothing
5074+ , _dtBrandingType = Nothing
5075+ , _dtEstimatedImpressionsPerDay = Nothing
7242 , _dtGuaranteedFixedPriceTerms = Nothing
5076 , _dtGuaranteedFixedPriceTerms = Nothing
7243 , _dtDescription = Nothing
5077 , _dtDescription = Nothing
7244 }
5078 }
7245
5079
5080+-- | Non-binding estimate of the estimated gross spend for this deal Can be
5081+-- set by buyer or seller.
5082+dtEstimatedGrossSpend :: Lens' DealTerms (Maybe Price)
5083+dtEstimatedGrossSpend
5084+ = lens _dtEstimatedGrossSpend
5085+ (\ s a -> s{_dtEstimatedGrossSpend = a})
5086+
7246-- | The terms for non-guaranteed fixed price deals.
5087-- | The terms for non-guaranteed fixed price deals.
7247dtNonGuaranteedFixedPriceTerms :: Lens' DealTerms (Maybe DealTermsNonGuaranteedFixedPriceTerms)
5088dtNonGuaranteedFixedPriceTerms :: Lens' DealTerms (Maybe DealTermsNonGuaranteedFixedPriceTerms)
7248dtNonGuaranteedFixedPriceTerms
5089dtNonGuaranteedFixedPriceTerms
@@ -7255,6 +5096,20 @@ dtNonGuaranteedAuctionTerms
7255 = lens _dtNonGuaranteedAuctionTerms
5096 = lens _dtNonGuaranteedAuctionTerms
7256 (\ s a -> s{_dtNonGuaranteedAuctionTerms = a})
5097 (\ s a -> s{_dtNonGuaranteedAuctionTerms = a})
7257
5098
5099+-- | Visibilty of the URL in bid requests.
5100+dtBrandingType :: Lens' DealTerms (Maybe Text)
5101+dtBrandingType
5102+ = lens _dtBrandingType
5103+ (\ s a -> s{_dtBrandingType = a})
5104+
5105+-- | Non-binding estimate of the impressions served per day Can be set by
5106+-- buyer or seller.
5107+dtEstimatedImpressionsPerDay :: Lens' DealTerms (Maybe Int64)
5108+dtEstimatedImpressionsPerDay
5109+ = lens _dtEstimatedImpressionsPerDay
5110+ (\ s a -> s{_dtEstimatedImpressionsPerDay = a})
5111+ . mapping _Coerce
5112+
7258-- | The terms for guaranteed fixed price deals.
5113-- | The terms for guaranteed fixed price deals.
7259dtGuaranteedFixedPriceTerms :: Lens' DealTerms (Maybe DealTermsGuaranteedFixedPriceTerms)
5114dtGuaranteedFixedPriceTerms :: Lens' DealTerms (Maybe DealTermsGuaranteedFixedPriceTerms)
7260dtGuaranteedFixedPriceTerms
5115dtGuaranteedFixedPriceTerms
@@ -7272,8 +5127,11 @@ instance FromJSON DealTerms where
7272 = withObject "DealTerms"
5127 = withObject "DealTerms"
7273 (\ o ->
5128 (\ o ->
7274 DealTerms <$>
5129 DealTerms <$>
5130+ (o .:? "estimatedGrossSpend") <*>
7275− (o .:? "nonGuaranteedFixedPriceTerms") <*>
5131+ (o .:? "nonGuaranteedFixedPriceTerms")
7276− (o .:? "nonGuaranteedAuctionTerms")
5132+ <*> (o .:? "nonGuaranteedAuctionTerms")
5133+ <*> (o .:? "brandingType")
5134+ <*> (o .:? "estimatedImpressionsPerDay")
7277 <*> (o .:? "guaranteedFixedPriceTerms")
5135 <*> (o .:? "guaranteedFixedPriceTerms")
7278 <*> (o .:? "description"))
5136 <*> (o .:? "description"))
7279
5137
@@ -7281,111 +5139,19 @@ instance ToJSON DealTerms where
7281 toJSON DealTerms{..}
5139 toJSON DealTerms{..}
7282 = object
5140 = object
7283 (catMaybes
5141 (catMaybes
5142+ [("estimatedGrossSpend" .=) <$>
5143+ _dtEstimatedGrossSpend,
7284− [("nonGuaranteedFixedPriceTerms" .=) <$>
5144+ ("nonGuaranteedFixedPriceTerms" .=) <$>
7285 _dtNonGuaranteedFixedPriceTerms,
5145 _dtNonGuaranteedFixedPriceTerms,
7286 ("nonGuaranteedAuctionTerms" .=) <$>
5146 ("nonGuaranteedAuctionTerms" .=) <$>
7287 _dtNonGuaranteedAuctionTerms,
5147 _dtNonGuaranteedAuctionTerms,
5148+ ("brandingType" .=) <$> _dtBrandingType,
5149+ ("estimatedImpressionsPerDay" .=) <$>
5150+ _dtEstimatedImpressionsPerDay,
7288 ("guaranteedFixedPriceTerms" .=) <$>
5151 ("guaranteedFixedPriceTerms" .=) <$>
7289 _dtGuaranteedFixedPriceTerms,
5152 _dtGuaranteedFixedPriceTerms,
7290 ("description" .=) <$> _dtDescription])
5153 ("description" .=) <$> _dtDescription])
7291
5154
7292−--
7293−-- /See:/ 'dateTime' smart constructor.
7294−data DateTime = DateTime
7295− { _dtSecond :: !(Maybe (Textual Int32))
7296− , _dtDay :: !(Maybe (Textual Int32))
7297− , _dtYear :: !(Maybe (Textual Int32))
7298− , _dtHour :: !(Maybe (Textual Int32))
7299− , _dtMonth :: !(Maybe (Textual Int32))
7300− , _dtMinute :: !(Maybe (Textual Int32))
7301− , _dtTimeZoneId :: !(Maybe Text)
7302− } deriving (Eq,Show,Data,Typeable,Generic)
7303−
7304−-- | Creates a value of 'DateTime' with the minimum fields required to make a request.
7305−--
7306−-- Use one of the following lenses to modify other fields as desired:
7307−--
7308−-- * 'dtSecond'
7309−--
7310−-- * 'dtDay'
7311−--
7312−-- * 'dtYear'
7313−--
7314−-- * 'dtHour'
7315−--
7316−-- * 'dtMonth'
7317−--
7318−-- * 'dtMinute'
7319−--
7320−-- * 'dtTimeZoneId'
7321−dateTime
7322− :: DateTime
7323−dateTime =
7324− DateTime
7325− { _dtSecond = Nothing
7326− , _dtDay = Nothing
7327− , _dtYear = Nothing
7328− , _dtHour = Nothing
7329− , _dtMonth = Nothing
7330− , _dtMinute = Nothing
7331− , _dtTimeZoneId = Nothing
7332− }
7333−
7334−dtSecond :: Lens' DateTime (Maybe Int32)
7335−dtSecond
7336− = lens _dtSecond (\ s a -> s{_dtSecond = a}) .
7337− mapping _Coerce
7338−
7339−dtDay :: Lens' DateTime (Maybe Int32)
7340−dtDay
7341− = lens _dtDay (\ s a -> s{_dtDay = a}) .
7342− mapping _Coerce
7343−
7344−dtYear :: Lens' DateTime (Maybe Int32)
7345−dtYear
7346− = lens _dtYear (\ s a -> s{_dtYear = a}) .
7347− mapping _Coerce
7348−
7349−dtHour :: Lens' DateTime (Maybe Int32)
7350−dtHour
7351− = lens _dtHour (\ s a -> s{_dtHour = a}) .
7352− mapping _Coerce
7353−
7354−dtMonth :: Lens' DateTime (Maybe Int32)
7355−dtMonth
7356− = lens _dtMonth (\ s a -> s{_dtMonth = a}) .
7357− mapping _Coerce
7358−
7359−dtMinute :: Lens' DateTime (Maybe Int32)
7360−dtMinute
7361− = lens _dtMinute (\ s a -> s{_dtMinute = a}) .
7362− mapping _Coerce
7363−
7364−dtTimeZoneId :: Lens' DateTime (Maybe Text)
7365−dtTimeZoneId
7366− = lens _dtTimeZoneId (\ s a -> s{_dtTimeZoneId = a})
7367−
7368−instance FromJSON DateTime where
7369− parseJSON
7370− = withObject "DateTime"
7371− (\ o ->
7372− DateTime <$>
7373− (o .:? "second") <*> (o .:? "day") <*> (o .:? "year")
7374− <*> (o .:? "hour")
7375− <*> (o .:? "month")
7376− <*> (o .:? "minute")
7377− <*> (o .:? "timeZoneId"))
7378−
7379−instance ToJSON DateTime where
7380− toJSON DateTime{..}
7381− = object
7382− (catMaybes
7383− [("second" .=) <$> _dtSecond, ("day" .=) <$> _dtDay,
7384− ("year" .=) <$> _dtYear, ("hour" .=) <$> _dtHour,
7385− ("month" .=) <$> _dtMonth,
7386− ("minute" .=) <$> _dtMinute,
7387− ("timeZoneId" .=) <$> _dtTimeZoneId])
7388−
7389--
5155--
7390-- /See:/ 'marketplaceLabel' smart constructor.
5156-- /See:/ 'marketplaceLabel' smart constructor.
7391data MarketplaceLabel = MarketplaceLabel
5157data MarketplaceLabel = MarketplaceLabel
@@ -7458,102 +5224,28 @@ instance ToJSON MarketplaceLabel where
7458 ("createTimeMs" .=) <$> _mlCreateTimeMs,
5224 ("createTimeMs" .=) <$> _mlCreateTimeMs,
7459 ("label" .=) <$> _mlLabel])
5225 ("label" .=) <$> _mlLabel])
7460
5226
7461−--
7462−-- /See:/ 'editHistoryDTO' smart constructor.
7463−data EditHistoryDTO = EditHistoryDTO
7464− { _ehdtoLastUpdatedByLoginName :: !(Maybe Text)
7465− , _ehdtoCreatedByLoginName :: !(Maybe Text)
7466− , _ehdtoLastUpdateTimeStamp :: !(Maybe (Textual Int64))
7467− , _ehdtoCreatedTimeStamp :: !(Maybe (Textual Int64))
7468− } deriving (Eq,Show,Data,Typeable,Generic)
7469−
7470−-- | Creates a value of 'EditHistoryDTO' with the minimum fields required to make a request.
7471−--
7472−-- Use one of the following lenses to modify other fields as desired:
7473−--
7474−-- * 'ehdtoLastUpdatedByLoginName'
7475−--
7476−-- * 'ehdtoCreatedByLoginName'
7477−--
7478−-- * 'ehdtoLastUpdateTimeStamp'
7479−--
7480−-- * 'ehdtoCreatedTimeStamp'
7481−editHistoryDTO
7482− :: EditHistoryDTO
7483−editHistoryDTO =
7484− EditHistoryDTO
7485− { _ehdtoLastUpdatedByLoginName = Nothing
7486− , _ehdtoCreatedByLoginName = Nothing
7487− , _ehdtoLastUpdateTimeStamp = Nothing
7488− , _ehdtoCreatedTimeStamp = Nothing
7489− }
7490−
7491−ehdtoLastUpdatedByLoginName :: Lens' EditHistoryDTO (Maybe Text)
7492−ehdtoLastUpdatedByLoginName
7493− = lens _ehdtoLastUpdatedByLoginName
7494− (\ s a -> s{_ehdtoLastUpdatedByLoginName = a})
7495−
7496−ehdtoCreatedByLoginName :: Lens' EditHistoryDTO (Maybe Text)
7497−ehdtoCreatedByLoginName
7498− = lens _ehdtoCreatedByLoginName
7499− (\ s a -> s{_ehdtoCreatedByLoginName = a})
7500−
7501−ehdtoLastUpdateTimeStamp :: Lens' EditHistoryDTO (Maybe Int64)
7502−ehdtoLastUpdateTimeStamp
7503− = lens _ehdtoLastUpdateTimeStamp
7504− (\ s a -> s{_ehdtoLastUpdateTimeStamp = a})
7505− . mapping _Coerce
7506−
7507−ehdtoCreatedTimeStamp :: Lens' EditHistoryDTO (Maybe Int64)
7508−ehdtoCreatedTimeStamp
7509− = lens _ehdtoCreatedTimeStamp
7510− (\ s a -> s{_ehdtoCreatedTimeStamp = a})
7511− . mapping _Coerce
7512−
7513−instance FromJSON EditHistoryDTO where
7514− parseJSON
7515− = withObject "EditHistoryDTO"
7516− (\ o ->
7517− EditHistoryDTO <$>
7518− (o .:? "lastUpdatedByLoginName") <*>
7519− (o .:? "createdByLoginName")
7520− <*> (o .:? "lastUpdateTimeStamp")
7521− <*> (o .:? "createdTimeStamp"))
7522−
7523−instance ToJSON EditHistoryDTO where
7524− toJSON EditHistoryDTO{..}
7525− = object
7526− (catMaybes
7527− [("lastUpdatedByLoginName" .=) <$>
7528− _ehdtoLastUpdatedByLoginName,
7529− ("createdByLoginName" .=) <$>
7530− _ehdtoCreatedByLoginName,
7531− ("lastUpdateTimeStamp" .=) <$>
7532− _ehdtoLastUpdateTimeStamp,
7533− ("createdTimeStamp" .=) <$> _ehdtoCreatedTimeStamp])
7534−
7535--
5227--
7536-- /See:/ 'buyer' smart constructor.
5228-- /See:/ 'buyer' smart constructor.
7537newtype Buyer = Buyer
5229newtype Buyer = Buyer
7538− { _bbAccountId :: Maybe Text
5230+ { _buyAccountId :: Maybe Text
7539 } deriving (Eq,Show,Data,Typeable,Generic)
5231 } deriving (Eq,Show,Data,Typeable,Generic)
7540
5232
7541-- | Creates a value of 'Buyer' with the minimum fields required to make a request.
5233-- | Creates a value of 'Buyer' with the minimum fields required to make a request.
7542--
5234--
7543-- Use one of the following lenses to modify other fields as desired:
5235-- Use one of the following lenses to modify other fields as desired:
7544--
5236--
7545−-- * 'bbAccountId'
5237+-- * 'buyAccountId'
7546buyer
5238buyer
7547 :: Buyer
5239 :: Buyer
7548buyer =
5240buyer =
7549 Buyer
5241 Buyer
7550− { _bbAccountId = Nothing
5242+ { _buyAccountId = Nothing
7551 }
5243 }
7552
5244
7553-- | Adx account id of the buyer.
5245-- | Adx account id of the buyer.
7554−bbAccountId :: Lens' Buyer (Maybe Text)
5246+buyAccountId :: Lens' Buyer (Maybe Text)
7555−bbAccountId
5247+buyAccountId
7556− = lens _bbAccountId (\ s a -> s{_bbAccountId = a})
5248+ = lens _buyAccountId (\ s a -> s{_buyAccountId = a})
7557
5249
7558instance FromJSON Buyer where
5250instance FromJSON Buyer where
7559 parseJSON
5251 parseJSON
@@ -7563,288 +5255,14 @@ instance FromJSON Buyer where
7563instance ToJSON Buyer where
5255instance ToJSON Buyer where
7564 toJSON Buyer{..}
5256 toJSON Buyer{..}
7565 = object
5257 = object
7566− (catMaybes [("accountId" .=) <$> _bbAccountId])
5258+ (catMaybes [("accountId" .=) <$> _buyAccountId])
7567−
7568−-- | Represents an order in the marketplace. An order is the unit of
7569−-- negotiation between a seller and a buyer and contains deals which are
7570−-- served. Each field in an order can have one of the following setting:
7571−-- (readonly) - It is an error to try and set this field. (buyer-readonly)
7572−-- - Only the seller can set this field. (seller-readonly) - Only the buyer
7573−-- can set this field. (updatable) - The field is updatable at all times by
7574−-- either buyer or the seller.
7575−--
7576−-- /See:/ 'marketplaceOrder' smart constructor.
7577−data MarketplaceOrder = MarketplaceOrder
7578− { _mBuyerPrivateData :: !(Maybe PrivateData)
7579− , _mIsSetupComplete :: !(Maybe Bool)
7580− , _mBuyerContacts :: !(Maybe [ContactInformation])
7581− , _mKind :: !Text
7582− , _mOriginatorRole :: !(Maybe Text)
7583− , _mRevisionNumber :: !(Maybe (Textual Int64))
7584− , _mBilledBuyer :: !(Maybe Buyer)
7585− , _mIsRenegotiating :: !(Maybe Bool)
7586− , _mHasSellerSignedOff :: !(Maybe Bool)
7587− , _mSeller :: !(Maybe Seller)
7588− , _mOrderState :: !(Maybe Text)
7589− , _mName :: !(Maybe Text)
7590− , _mSellerContacts :: !(Maybe [ContactInformation])
7591− , _mLastUpdaterRole :: !(Maybe Text)
7592− , _mLabels :: !(Maybe [MarketplaceLabel])
7593− , _mRevisionTimeMs :: !(Maybe (Textual Int64))
7594− , _mOrderId :: !(Maybe Text)
7595− , _mLastUpdaterOrCommentorRole :: !(Maybe Text)
7596− , _mHasBuyerSignedOff :: !(Maybe Bool)
7597− , _mBuyer :: !(Maybe Buyer)
7598− } deriving (Eq,Show,Data,Typeable,Generic)
7599−
7600−-- | Creates a value of 'MarketplaceOrder' with the minimum fields required to make a request.
7601−--
7602−-- Use one of the following lenses to modify other fields as desired:
7603−--
7604−-- * 'mBuyerPrivateData'
7605−--
7606−-- * 'mIsSetupComplete'
7607−--
7608−-- * 'mBuyerContacts'
7609−--
7610−-- * 'mKind'
7611−--
7612−-- * 'mOriginatorRole'
7613−--
7614−-- * 'mRevisionNumber'
7615−--
7616−-- * 'mBilledBuyer'
7617−--
7618−-- * 'mIsRenegotiating'
7619−--
7620−-- * 'mHasSellerSignedOff'
7621−--
7622−-- * 'mSeller'
7623−--
7624−-- * 'mOrderState'
7625−--
7626−-- * 'mName'
7627−--
7628−-- * 'mSellerContacts'
7629−--
7630−-- * 'mLastUpdaterRole'
7631−--
7632−-- * 'mLabels'
7633−--
7634−-- * 'mRevisionTimeMs'
7635−--
7636−-- * 'mOrderId'
7637−--
7638−-- * 'mLastUpdaterOrCommentorRole'
7639−--
7640−-- * 'mHasBuyerSignedOff'
7641−--
7642−-- * 'mBuyer'
7643−marketplaceOrder
7644− :: MarketplaceOrder
7645−marketplaceOrder =
7646− MarketplaceOrder
7647− { _mBuyerPrivateData = Nothing
7648− , _mIsSetupComplete = Nothing
7649− , _mBuyerContacts = Nothing
7650− , _mKind = "adexchangebuyer#marketplaceOrder"
7651− , _mOriginatorRole = Nothing
7652− , _mRevisionNumber = Nothing
7653− , _mBilledBuyer = Nothing
7654− , _mIsRenegotiating = Nothing
7655− , _mHasSellerSignedOff = Nothing
7656− , _mSeller = Nothing
7657− , _mOrderState = Nothing
7658− , _mName = Nothing
7659− , _mSellerContacts = Nothing
7660− , _mLastUpdaterRole = Nothing
7661− , _mLabels = Nothing
7662− , _mRevisionTimeMs = Nothing
7663− , _mOrderId = Nothing
7664− , _mLastUpdaterOrCommentorRole = Nothing
7665− , _mHasBuyerSignedOff = Nothing
7666− , _mBuyer = Nothing
7667− }
7668−
7669−-- | Private data for buyer. (hidden from seller).
7670−mBuyerPrivateData :: Lens' MarketplaceOrder (Maybe PrivateData)
7671−mBuyerPrivateData
7672− = lens _mBuyerPrivateData
7673− (\ s a -> s{_mBuyerPrivateData = a})
7674−
7675−-- | True, if the buyside inventory setup is complete for this order.
7676−-- (readonly)
7677−mIsSetupComplete :: Lens' MarketplaceOrder (Maybe Bool)
7678−mIsSetupComplete
7679− = lens _mIsSetupComplete
7680− (\ s a -> s{_mIsSetupComplete = a})
7681−
7682−-- | Optional contact information fort the buyer. (seller-readonly)
7683−mBuyerContacts :: Lens' MarketplaceOrder [ContactInformation]
7684−mBuyerContacts
7685− = lens _mBuyerContacts
7686− (\ s a -> s{_mBuyerContacts = a})
7687− . _Default
7688− . _Coerce
7689−
7690−-- | Identifies what kind of resource this is. Value: the fixed string
7691−-- \"adexchangebuyer#marketplaceOrder\".
7692−mKind :: Lens' MarketplaceOrder Text
7693−mKind = lens _mKind (\ s a -> s{_mKind = a})
7694−
7695−-- | Indicates whether the buyer\/seller created the offer.(readonly)
7696−mOriginatorRole :: Lens' MarketplaceOrder (Maybe Text)
7697−mOriginatorRole
7698− = lens _mOriginatorRole
7699− (\ s a -> s{_mOriginatorRole = a})
7700−
7701−-- | The revision number for the order (readonly).
7702−mRevisionNumber :: Lens' MarketplaceOrder (Maybe Int64)
7703−mRevisionNumber
7704− = lens _mRevisionNumber
7705− (\ s a -> s{_mRevisionNumber = a})
7706− . mapping _Coerce
7707−
7708−-- | Reference to the buyer that will get billed for this order. (readonly)
7709−mBilledBuyer :: Lens' MarketplaceOrder (Maybe Buyer)
7710−mBilledBuyer
7711− = lens _mBilledBuyer (\ s a -> s{_mBilledBuyer = a})
7712−
7713−-- | True if the order is being renegotiated (readonly).
7714−mIsRenegotiating :: Lens' MarketplaceOrder (Maybe Bool)
7715−mIsRenegotiating
7716− = lens _mIsRenegotiating
7717− (\ s a -> s{_mIsRenegotiating = a})
7718−
7719−-- | When an order is in an accepted state, indicates whether the buyer has
7720−-- signed off Once both sides have signed off on a deal, the order can be
7721−-- finalized by the seller. (buyer-readonly)
7722−mHasSellerSignedOff :: Lens' MarketplaceOrder (Maybe Bool)
7723−mHasSellerSignedOff
7724− = lens _mHasSellerSignedOff
7725− (\ s a -> s{_mHasSellerSignedOff = a})
7726−
7727−-- | Reference to the seller on the order. (readonly, except on create)
7728−mSeller :: Lens' MarketplaceOrder (Maybe Seller)
7729−mSeller = lens _mSeller (\ s a -> s{_mSeller = a})
7730−
7731−-- | The current state of the order. (readonly)
7732−mOrderState :: Lens' MarketplaceOrder (Maybe Text)
7733−mOrderState
7734− = lens _mOrderState (\ s a -> s{_mOrderState = a})
7735−
7736−-- | The name for the order (updatable)
7737−mName :: Lens' MarketplaceOrder (Maybe Text)
7738−mName = lens _mName (\ s a -> s{_mName = a})
7739−
7740−-- | Optional contact information for the seller (buyer-readonly).
7741−mSellerContacts :: Lens' MarketplaceOrder [ContactInformation]
7742−mSellerContacts
7743− = lens _mSellerContacts
7744− (\ s a -> s{_mSellerContacts = a})
7745− . _Default
7746− . _Coerce
7747−
7748−mLastUpdaterRole :: Lens' MarketplaceOrder (Maybe Text)
7749−mLastUpdaterRole
7750− = lens _mLastUpdaterRole
7751− (\ s a -> s{_mLastUpdaterRole = a})
7752−
7753−-- | List of labels associated with the order. (readonly)
7754−mLabels :: Lens' MarketplaceOrder [MarketplaceLabel]
7755−mLabels
7756− = lens _mLabels (\ s a -> s{_mLabels = a}) . _Default
7757− . _Coerce
7758−
7759−-- | The time (ms since epoch) when the order was last revised (readonly).
7760−mRevisionTimeMs :: Lens' MarketplaceOrder (Maybe Int64)
7761−mRevisionTimeMs
7762− = lens _mRevisionTimeMs
7763− (\ s a -> s{_mRevisionTimeMs = a})
7764− . mapping _Coerce
7765−
7766−-- | The unique id of the order. (readonly).
7767−mOrderId :: Lens' MarketplaceOrder (Maybe Text)
7768−mOrderId = lens _mOrderId (\ s a -> s{_mOrderId = a})
7769−
7770−-- | The role of the last user that either updated the order or left a
7771−-- comment. (readonly)
7772−mLastUpdaterOrCommentorRole :: Lens' MarketplaceOrder (Maybe Text)
7773−mLastUpdaterOrCommentorRole
7774− = lens _mLastUpdaterOrCommentorRole
7775− (\ s a -> s{_mLastUpdaterOrCommentorRole = a})
7776−
7777−-- | When an order is in an accepted state, indicates whether the buyer has
7778−-- signed off Once both sides have signed off on a deal, the order can be
7779−-- finalized by the seller. (seller-readonly)
7780−mHasBuyerSignedOff :: Lens' MarketplaceOrder (Maybe Bool)
7781−mHasBuyerSignedOff
7782− = lens _mHasBuyerSignedOff
7783− (\ s a -> s{_mHasBuyerSignedOff = a})
7784−
7785−-- | Reference to the buyer on the order. (readonly, except on create)
7786−mBuyer :: Lens' MarketplaceOrder (Maybe Buyer)
7787−mBuyer = lens _mBuyer (\ s a -> s{_mBuyer = a})
7788−
7789−instance FromJSON MarketplaceOrder where
7790− parseJSON
7791− = withObject "MarketplaceOrder"
7792− (\ o ->
7793− MarketplaceOrder <$>
7794− (o .:? "buyerPrivateData") <*>
7795− (o .:? "isSetupComplete")
7796− <*> (o .:? "buyerContacts" .!= mempty)
7797− <*>
7798− (o .:? "kind" .!= "adexchangebuyer#marketplaceOrder")
7799− <*> (o .:? "originatorRole")
7800− <*> (o .:? "revisionNumber")
7801− <*> (o .:? "billedBuyer")
7802− <*> (o .:? "isRenegotiating")
7803− <*> (o .:? "hasSellerSignedOff")
7804− <*> (o .:? "seller")
7805− <*> (o .:? "orderState")
7806− <*> (o .:? "name")
7807− <*> (o .:? "sellerContacts" .!= mempty)
7808− <*> (o .:? "lastUpdaterRole")
7809− <*> (o .:? "labels" .!= mempty)
7810− <*> (o .:? "revisionTimeMs")
7811− <*> (o .:? "orderId")
7812− <*> (o .:? "lastUpdaterOrCommentorRole")
7813− <*> (o .:? "hasBuyerSignedOff")
7814− <*> (o .:? "buyer"))
7815−
7816−instance ToJSON MarketplaceOrder where
7817− toJSON MarketplaceOrder{..}
7818− = object
7819− (catMaybes
7820− [("buyerPrivateData" .=) <$> _mBuyerPrivateData,
7821− ("isSetupComplete" .=) <$> _mIsSetupComplete,
7822− ("buyerContacts" .=) <$> _mBuyerContacts,
7823− Just ("kind" .= _mKind),
7824− ("originatorRole" .=) <$> _mOriginatorRole,
7825− ("revisionNumber" .=) <$> _mRevisionNumber,
7826− ("billedBuyer" .=) <$> _mBilledBuyer,
7827− ("isRenegotiating" .=) <$> _mIsRenegotiating,
7828− ("hasSellerSignedOff" .=) <$> _mHasSellerSignedOff,
7829− ("seller" .=) <$> _mSeller,
7830− ("orderState" .=) <$> _mOrderState,
7831− ("name" .=) <$> _mName,
7832− ("sellerContacts" .=) <$> _mSellerContacts,
7833− ("lastUpdaterRole" .=) <$> _mLastUpdaterRole,
7834− ("labels" .=) <$> _mLabels,
7835− ("revisionTimeMs" .=) <$> _mRevisionTimeMs,
7836− ("orderId" .=) <$> _mOrderId,
7837− ("lastUpdaterOrCommentorRole" .=) <$>
7838− _mLastUpdaterOrCommentorRole,
7839− ("hasBuyerSignedOff" .=) <$> _mHasBuyerSignedOff,
7840− ("buyer" .=) <$> _mBuyer])
7841
5259
7842--
5260--
7843-- /See:/ 'addOrderDealsRequest' smart constructor.
5261-- /See:/ 'addOrderDealsRequest' smart constructor.
7844data AddOrderDealsRequest = AddOrderDealsRequest
5262data AddOrderDealsRequest = AddOrderDealsRequest
7845− { _aUpdateAction :: !(Maybe Text)
5263+ { _aUpdateAction :: !(Maybe Text)
7846− , _aDeals :: !(Maybe [MarketplaceDeal])
5264+ , _aDeals :: !(Maybe [MarketplaceDeal])
7847− , _aOrderRevisionNumber :: !(Maybe (Textual Int64))
5265+ , _aProposalRevisionNumber :: !(Maybe (Textual Int64))
7848 } deriving (Eq,Show,Data,Typeable,Generic)
5266 } deriving (Eq,Show,Data,Typeable,Generic)
7849
5267
7850-- | Creates a value of 'AddOrderDealsRequest' with the minimum fields required to make a request.
5268-- | Creates a value of 'AddOrderDealsRequest' with the minimum fields required to make a request.
@@ -7855,17 +5273,17 @@ data AddOrderDealsRequest = AddOrderDealsRequest
7855--
5273--
7856-- * 'aDeals'
5274-- * 'aDeals'
7857--
5275--
7858−-- * 'aOrderRevisionNumber'
5276+-- * 'aProposalRevisionNumber'
7859addOrderDealsRequest
5277addOrderDealsRequest
7860 :: AddOrderDealsRequest
5278 :: AddOrderDealsRequest
7861addOrderDealsRequest =
5279addOrderDealsRequest =
7862 AddOrderDealsRequest
5280 AddOrderDealsRequest
7863 { _aUpdateAction = Nothing
5281 { _aUpdateAction = Nothing
7864 , _aDeals = Nothing
5282 , _aDeals = Nothing
7865− , _aOrderRevisionNumber = Nothing
5283+ , _aProposalRevisionNumber = Nothing
7866 }
5284 }
7867
5285
7868−-- | Indicates an optional action to take on the order
5286+-- | Indicates an optional action to take on the proposal
7869aUpdateAction :: Lens' AddOrderDealsRequest (Maybe Text)
5287aUpdateAction :: Lens' AddOrderDealsRequest (Maybe Text)
7870aUpdateAction
5288aUpdateAction
7871 = lens _aUpdateAction
5289 = lens _aUpdateAction
@@ -7877,11 +5295,11 @@ aDeals
7877 = lens _aDeals (\ s a -> s{_aDeals = a}) . _Default .
5295 = lens _aDeals (\ s a -> s{_aDeals = a}) . _Default .
7878 _Coerce
5296 _Coerce
7879
5297
7880−-- | The last known order revision number.
5298+-- | The last known proposal revision number.
7881−aOrderRevisionNumber :: Lens' AddOrderDealsRequest (Maybe Int64)
5299+aProposalRevisionNumber :: Lens' AddOrderDealsRequest (Maybe Int64)
7882−aOrderRevisionNumber
5300+aProposalRevisionNumber
7883− = lens _aOrderRevisionNumber
5301+ = lens _aProposalRevisionNumber
7884− (\ s a -> s{_aOrderRevisionNumber = a})
5302+ (\ s a -> s{_aProposalRevisionNumber = a})
7885 . mapping _Coerce
5303 . mapping _Coerce
7886
5304
7887instance FromJSON AddOrderDealsRequest where
5305instance FromJSON AddOrderDealsRequest where
@@ -7890,7 +5308,7 @@ instance FromJSON AddOrderDealsRequest where
7890 (\ o ->
5308 (\ o ->
7891 AddOrderDealsRequest <$>
5309 AddOrderDealsRequest <$>
7892 (o .:? "updateAction") <*> (o .:? "deals" .!= mempty)
5310 (o .:? "updateAction") <*> (o .:? "deals" .!= mempty)
7893− <*> (o .:? "orderRevisionNumber"))
5311+ <*> (o .:? "proposalRevisionNumber"))
7894
5312
7895instance ToJSON AddOrderDealsRequest where
5313instance ToJSON AddOrderDealsRequest where
7896 toJSON AddOrderDealsRequest{..}
5314 toJSON AddOrderDealsRequest{..}
@@ -7898,8 +5316,8 @@ instance ToJSON AddOrderDealsRequest where
7898 (catMaybes
5316 (catMaybes
7899 [("updateAction" .=) <$> _aUpdateAction,
5317 [("updateAction" .=) <$> _aUpdateAction,
7900 ("deals" .=) <$> _aDeals,
5318 ("deals" .=) <$> _aDeals,
7901− ("orderRevisionNumber" .=) <$>
5319+ ("proposalRevisionNumber" .=) <$>
7902− _aOrderRevisionNumber])
5320+ _aProposalRevisionNumber])
7903
5321
7904--
5322--
7905-- /See:/ 'dealTermsGuaranteedFixedPriceTerms' smart constructor.
5323-- /See:/ 'dealTermsGuaranteedFixedPriceTerms' smart constructor.
@@ -7927,7 +5345,7 @@ dealTermsGuaranteedFixedPriceTerms =
7927 , _dtgfptFixedPrices = Nothing
5345 , _dtgfptFixedPrices = Nothing
7928 }
5346 }
7929
5347
7930−-- | Count of guaranteed looks. Required for deal, optional for offer.
5348+-- | Count of guaranteed looks. Required for deal, optional for product.
7931dtgfptGuaranteedLooks :: Lens' DealTermsGuaranteedFixedPriceTerms (Maybe Int64)
5349dtgfptGuaranteedLooks :: Lens' DealTermsGuaranteedFixedPriceTerms (Maybe Int64)
7932dtgfptGuaranteedLooks
5350dtgfptGuaranteedLooks
7933 = lens _dtgfptGuaranteedLooks
5351 = lens _dtgfptGuaranteedLooks
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Sum.hs+83−84
@@ -18,84 +18,6 @@ module Network.Google.AdExchangeBuyer.Types.Sum where
18
18
19import Network.Google.Prelude
19import Network.Google.Prelude
20
20
21−-- | The proposed action to take on the order.
22−data MarketplaceOrdersUpdateUpdateAction
23− = Accept
24− -- ^ @accept@
25− | Cancel
26− -- ^ @cancel@
27− | Propose
28− -- ^ @propose@
29− | UnknownAction
30− -- ^ @unknownAction@
31− | UpdateFinalized
32− -- ^ @updateFinalized@
33− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
34−
35−instance Hashable MarketplaceOrdersUpdateUpdateAction
36−
37−instance FromText MarketplaceOrdersUpdateUpdateAction where
38− fromText = \case
39− "accept" -> Just Accept
40− "cancel" -> Just Cancel
41− "propose" -> Just Propose
42− "unknownAction" -> Just UnknownAction
43− "updateFinalized" -> Just UpdateFinalized
44− _ -> Nothing
45−
46−instance ToText MarketplaceOrdersUpdateUpdateAction where
47− toText = \case
48− Accept -> "accept"
49− Cancel -> "cancel"
50− Propose -> "propose"
51− UnknownAction -> "unknownAction"
52− UpdateFinalized -> "updateFinalized"
53−
54−instance FromJSON MarketplaceOrdersUpdateUpdateAction where
55− parseJSON = parseJSONText "MarketplaceOrdersUpdateUpdateAction"
56−
57−instance ToJSON MarketplaceOrdersUpdateUpdateAction where
58− toJSON = toJSONText
59−
60−-- | The proposed action to take on the order.
61−data MarketplaceOrdersPatchUpdateAction
62− = MOPUAAccept
63− -- ^ @accept@
64− | MOPUACancel
65− -- ^ @cancel@
66− | MOPUAPropose
67− -- ^ @propose@
68− | MOPUAUnknownAction
69− -- ^ @unknownAction@
70− | MOPUAUpdateFinalized
71− -- ^ @updateFinalized@
72− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
73−
74−instance Hashable MarketplaceOrdersPatchUpdateAction
75−
76−instance FromText MarketplaceOrdersPatchUpdateAction where
77− fromText = \case
78− "accept" -> Just MOPUAAccept
79− "cancel" -> Just MOPUACancel
80− "propose" -> Just MOPUAPropose
81− "unknownAction" -> Just MOPUAUnknownAction
82− "updateFinalized" -> Just MOPUAUpdateFinalized
83− _ -> Nothing
84−
85−instance ToText MarketplaceOrdersPatchUpdateAction where
86− toText = \case
87− MOPUAAccept -> "accept"
88− MOPUACancel -> "cancel"
89− MOPUAPropose -> "propose"
90− MOPUAUnknownAction -> "unknownAction"
91− MOPUAUpdateFinalized -> "updateFinalized"
92−
93−instance FromJSON MarketplaceOrdersPatchUpdateAction where
94− parseJSON = parseJSONText "MarketplaceOrdersPatchUpdateAction"
95−
96−instance ToJSON MarketplaceOrdersPatchUpdateAction where
97− toJSON = toJSONText
98−
99-- | When specified, only creatives having the given open auction status are
21-- | When specified, only creatives having the given open auction status are
100-- returned.
22-- returned.
101data CreativesListOpenAuctionStatusFilter
23data CreativesListOpenAuctionStatusFilter
@@ -137,22 +59,60 @@ instance FromJSON CreativesListOpenAuctionStatusFilter where
137instance ToJSON CreativesListOpenAuctionStatusFilter where
59instance ToJSON CreativesListOpenAuctionStatusFilter where
138 toJSON = toJSONText
60 toJSON = toJSONText
139
61
62+-- | The proposed action to take on the proposal.
63+data ProposalsPatchUpdateAction
64+ = Accept
65+ -- ^ @accept@
66+ | Cancel
67+ -- ^ @cancel@
68+ | Propose
69+ -- ^ @propose@
70+ | UnknownAction
71+ -- ^ @unknownAction@
72+ | UpdateFinalized
73+ -- ^ @updateFinalized@
74+ deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
75+
76+instance Hashable ProposalsPatchUpdateAction
77+
78+instance FromText ProposalsPatchUpdateAction where
79+ fromText = \case
80+ "accept" -> Just Accept
81+ "cancel" -> Just Cancel
82+ "propose" -> Just Propose
83+ "unknownAction" -> Just UnknownAction
84+ "updateFinalized" -> Just UpdateFinalized
85+ _ -> Nothing
86+
87+instance ToText ProposalsPatchUpdateAction where
88+ toText = \case
89+ Accept -> "accept"
90+ Cancel -> "cancel"
91+ Propose -> "propose"
92+ UnknownAction -> "unknownAction"
93+ UpdateFinalized -> "updateFinalized"
94+
95+instance FromJSON ProposalsPatchUpdateAction where
96+ parseJSON = parseJSONText "ProposalsPatchUpdateAction"
97+
98+instance ToJSON ProposalsPatchUpdateAction where
99+ toJSON = toJSONText
100+
140−-- | When specified, only creatives having the given direct deals status are
101+-- | When specified, only creatives having the given deals status are
141-- returned.
102-- returned.
142data CreativesListDealsStatusFilter
103data CreativesListDealsStatusFilter
143 = CLDSFApproved
104 = CLDSFApproved
144 -- ^ @approved@
105 -- ^ @approved@
145− -- Creatives which have been approved for serving on direct deals.
106+ -- Creatives which have been approved for serving on deals.
146 | CLDSFConditionallyApproved
107 | CLDSFConditionallyApproved
147 -- ^ @conditionally_approved@
108 -- ^ @conditionally_approved@
148− -- Creatives which have been conditionally approved for serving on direct
109+ -- Creatives which have been conditionally approved for serving on deals.
149− -- deals.
150 | CLDSFDisApproved
110 | CLDSFDisApproved
151 -- ^ @disapproved@
111 -- ^ @disapproved@
152− -- Creatives which have been disapproved for serving on direct deals.
112+ -- Creatives which have been disapproved for serving on deals.
153 | CLDSFNotChecked
113 | CLDSFNotChecked
154 -- ^ @not_checked@
114 -- ^ @not_checked@
155− -- Creatives whose direct deals status is not yet checked.
115+ -- Creatives whose deals status is not yet checked.
156 deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
116 deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
157
117
158instance Hashable CreativesListDealsStatusFilter
118instance Hashable CreativesListDealsStatusFilter
@@ -177,3 +137,42 @@ instance FromJSON CreativesListDealsStatusFilter where
177
137
178instance ToJSON CreativesListDealsStatusFilter where
138instance ToJSON CreativesListDealsStatusFilter where
179 toJSON = toJSONText
139 toJSON = toJSONText
140+
141+-- | The proposed action to take on the proposal.
142+data ProposalsUpdateUpdateAction
143+ = PUUAAccept
144+ -- ^ @accept@
145+ | PUUACancel
146+ -- ^ @cancel@
147+ | PUUAPropose
148+ -- ^ @propose@
149+ | PUUAUnknownAction
150+ -- ^ @unknownAction@
151+ | PUUAUpdateFinalized
152+ -- ^ @updateFinalized@
153+ deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
154+
155+instance Hashable ProposalsUpdateUpdateAction
156+
157+instance FromText ProposalsUpdateUpdateAction where
158+ fromText = \case
159+ "accept" -> Just PUUAAccept
160+ "cancel" -> Just PUUACancel
161+ "propose" -> Just PUUAPropose
162+ "unknownAction" -> Just PUUAUnknownAction
163+ "updateFinalized" -> Just PUUAUpdateFinalized
164+ _ -> Nothing
165+
166+instance ToText ProposalsUpdateUpdateAction where
167+ toText = \case
168+ PUUAAccept -> "accept"
169+ PUUACancel -> "cancel"
170+ PUUAPropose -> "propose"
171+ PUUAUnknownAction -> "unknownAction"
172+ PUUAUpdateFinalized -> "updateFinalized"
173+
174+instance FromJSON ProposalsUpdateUpdateAction where
175+ parseJSON = parseJSONText "ProposalsUpdateUpdateAction"
176+
177+instance ToJSON ProposalsUpdateUpdateAction where
178+ toJSON = toJSONText
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Creatives/AddDeal.hsnew file+113
@@ -0,0 +1,113 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.Creatives.AddDeal
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Add a deal id association for the creative.
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.creatives.addDeal@.
26+module Network.Google.Resource.AdExchangeBuyer.Creatives.AddDeal
27+ (
28+ -- * REST Resource
29+ CreativesAddDealResource
30+
31+ -- * Creating a Request
32+ , creativesAddDeal
33+ , CreativesAddDeal
34+
35+ -- * Request Lenses
36+ , cadBuyerCreativeId
37+ , cadDealId
38+ , cadAccountId
39+ ) where
40+
41+import Network.Google.AdExchangeBuyer.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @adexchangebuyer.creatives.addDeal@ method which the
45+-- 'CreativesAddDeal' request conforms to.
46+type CreativesAddDealResource =
47+ "adexchangebuyer" :>
48+ "v1.4" :>
49+ "creatives" :>
50+ Capture "accountId" (Textual Int32) :>
51+ Capture "buyerCreativeId" Text :>
52+ "addDeal" :>
53+ Capture "dealId" (Textual Int64) :>
54+ QueryParam "alt" AltJSON :> Post '[JSON] ()
55+
56+-- | Add a deal id association for the creative.
57+--
58+-- /See:/ 'creativesAddDeal' smart constructor.
59+data CreativesAddDeal = CreativesAddDeal
60+ { _cadBuyerCreativeId :: !Text
61+ , _cadDealId :: !(Textual Int64)
62+ , _cadAccountId :: !(Textual Int32)
63+ } deriving (Eq,Show,Data,Typeable,Generic)
64+
65+-- | Creates a value of 'CreativesAddDeal' with the minimum fields required to make a request.
66+--
67+-- Use one of the following lenses to modify other fields as desired:
68+--
69+-- * 'cadBuyerCreativeId'
70+--
71+-- * 'cadDealId'
72+--
73+-- * 'cadAccountId'
74+creativesAddDeal
75+ :: Text -- ^ 'cadBuyerCreativeId'
76+ -> Int64 -- ^ 'cadDealId'
77+ -> Int32 -- ^ 'cadAccountId'
78+ -> CreativesAddDeal
79+creativesAddDeal pCadBuyerCreativeId_ pCadDealId_ pCadAccountId_ =
80+ CreativesAddDeal
81+ { _cadBuyerCreativeId = pCadBuyerCreativeId_
82+ , _cadDealId = _Coerce # pCadDealId_
83+ , _cadAccountId = _Coerce # pCadAccountId_
84+ }
85+
86+-- | The buyer-specific id for this creative.
87+cadBuyerCreativeId :: Lens' CreativesAddDeal Text
88+cadBuyerCreativeId
89+ = lens _cadBuyerCreativeId
90+ (\ s a -> s{_cadBuyerCreativeId = a})
91+
92+-- | The id of the deal id to associate with this creative.
93+cadDealId :: Lens' CreativesAddDeal Int64
94+cadDealId
95+ = lens _cadDealId (\ s a -> s{_cadDealId = a}) .
96+ _Coerce
97+
98+-- | The id for the account that will serve this creative.
99+cadAccountId :: Lens' CreativesAddDeal Int32
100+cadAccountId
101+ = lens _cadAccountId (\ s a -> s{_cadAccountId = a})
102+ . _Coerce
103+
104+instance GoogleRequest CreativesAddDeal where
105+ type Rs CreativesAddDeal = ()
106+ requestClient CreativesAddDeal{..}
107+ = go _cadAccountId _cadBuyerCreativeId _cadDealId
108+ (Just AltJSON)
109+ adExchangeBuyerService
110+ where go
111+ = buildClient
112+ (Proxy :: Proxy CreativesAddDealResource)
113+ mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Creatives/List.hs+1−1
@@ -133,7 +133,7 @@ clPageToken :: Lens' CreativesList' (Maybe Text)
133clPageToken
133clPageToken
134 = lens _clPageToken (\ s a -> s{_clPageToken = a})
134 = lens _clPageToken (\ s a -> s{_clPageToken = a})
135
135
136−-- | When specified, only creatives having the given direct deals status are
136+-- | When specified, only creatives having the given deals status are
137-- returned.
137-- returned.
138clDealsStatusFilter :: Lens' CreativesList' (Maybe CreativesListDealsStatusFilter)
138clDealsStatusFilter :: Lens' CreativesList' (Maybe CreativesListDealsStatusFilter)
139clDealsStatusFilter
139clDealsStatusFilter
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Creatives/RemoveDeal.hsnew file+113
@@ -0,0 +1,113 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.Creatives.RemoveDeal
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Remove a deal id associated with the creative.
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.creatives.removeDeal@.
26+module Network.Google.Resource.AdExchangeBuyer.Creatives.RemoveDeal
27+ (
28+ -- * REST Resource
29+ CreativesRemoveDealResource
30+
31+ -- * Creating a Request
32+ , creativesRemoveDeal
33+ , CreativesRemoveDeal
34+
35+ -- * Request Lenses
36+ , crdBuyerCreativeId
37+ , crdDealId
38+ , crdAccountId
39+ ) where
40+
41+import Network.Google.AdExchangeBuyer.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @adexchangebuyer.creatives.removeDeal@ method which the
45+-- 'CreativesRemoveDeal' request conforms to.
46+type CreativesRemoveDealResource =
47+ "adexchangebuyer" :>
48+ "v1.4" :>
49+ "creatives" :>
50+ Capture "accountId" (Textual Int32) :>
51+ Capture "buyerCreativeId" Text :>
52+ "removeDeal" :>
53+ Capture "dealId" (Textual Int64) :>
54+ QueryParam "alt" AltJSON :> Post '[JSON] ()
55+
56+-- | Remove a deal id associated with the creative.
57+--
58+-- /See:/ 'creativesRemoveDeal' smart constructor.
59+data CreativesRemoveDeal = CreativesRemoveDeal
60+ { _crdBuyerCreativeId :: !Text
61+ , _crdDealId :: !(Textual Int64)
62+ , _crdAccountId :: !(Textual Int32)
63+ } deriving (Eq,Show,Data,Typeable,Generic)
64+
65+-- | Creates a value of 'CreativesRemoveDeal' with the minimum fields required to make a request.
66+--
67+-- Use one of the following lenses to modify other fields as desired:
68+--
69+-- * 'crdBuyerCreativeId'
70+--
71+-- * 'crdDealId'
72+--
73+-- * 'crdAccountId'
74+creativesRemoveDeal
75+ :: Text -- ^ 'crdBuyerCreativeId'
76+ -> Int64 -- ^ 'crdDealId'
77+ -> Int32 -- ^ 'crdAccountId'
78+ -> CreativesRemoveDeal
79+creativesRemoveDeal pCrdBuyerCreativeId_ pCrdDealId_ pCrdAccountId_ =
80+ CreativesRemoveDeal
81+ { _crdBuyerCreativeId = pCrdBuyerCreativeId_
82+ , _crdDealId = _Coerce # pCrdDealId_
83+ , _crdAccountId = _Coerce # pCrdAccountId_
84+ }
85+
86+-- | The buyer-specific id for this creative.
87+crdBuyerCreativeId :: Lens' CreativesRemoveDeal Text
88+crdBuyerCreativeId
89+ = lens _crdBuyerCreativeId
90+ (\ s a -> s{_crdBuyerCreativeId = a})
91+
92+-- | The id of the deal id to disassociate with this creative.
93+crdDealId :: Lens' CreativesRemoveDeal Int64
94+crdDealId
95+ = lens _crdDealId (\ s a -> s{_crdDealId = a}) .
96+ _Coerce
97+
98+-- | The id for the account that will serve this creative.
99+crdAccountId :: Lens' CreativesRemoveDeal Int32
100+crdAccountId
101+ = lens _crdAccountId (\ s a -> s{_crdAccountId = a})
102+ . _Coerce
103+
104+instance GoogleRequest CreativesRemoveDeal where
105+ type Rs CreativesRemoveDeal = ()
106+ requestClient CreativesRemoveDeal{..}
107+ = go _crdAccountId _crdBuyerCreativeId _crdDealId
108+ (Just AltJSON)
109+ adExchangeBuyerService
110+ where go
111+ = buildClient
112+ (Proxy :: Proxy CreativesRemoveDealResource)
113+ mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceDeals/Delete.hs+17−16
@@ -20,7 +20,7 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Delete the specified deals from the order
23+-- Delete the specified deals from the proposal
24--
24--
25-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplacedeals.delete@.
25-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplacedeals.delete@.
26module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
26module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
@@ -34,7 +34,7 @@ module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36 , mddPayload
36 , mddPayload
37− , mddOrderId
37+ , mddProposalId
38 ) where
38 ) where
39
39
40import Network.Google.AdExchangeBuyer.Types
40import Network.Google.AdExchangeBuyer.Types
@@ -45,20 +45,20 @@ import Network.Google.Prelude
45type MarketplaceDealsDeleteResource =
45type MarketplaceDealsDeleteResource =
46 "adexchangebuyer" :>
46 "adexchangebuyer" :>
47 "v1.4" :>
47 "v1.4" :>
48− "marketplaceOrders" :>
48+ "proposals" :>
49− Capture "orderId" Text :>
49+ Capture "proposalId" Text :>
50 "deals" :>
50 "deals" :>
51 "delete" :>
51 "delete" :>
52 QueryParam "alt" AltJSON :>
52 QueryParam "alt" AltJSON :>
53 ReqBody '[JSON] DeleteOrderDealsRequest :>
53 ReqBody '[JSON] DeleteOrderDealsRequest :>
54 Post '[JSON] DeleteOrderDealsResponse
54 Post '[JSON] DeleteOrderDealsResponse
55
55
56−-- | Delete the specified deals from the order
56+-- | Delete the specified deals from the proposal
57--
57--
58-- /See:/ 'marketplaceDealsDelete' smart constructor.
58-- /See:/ 'marketplaceDealsDelete' smart constructor.
59data MarketplaceDealsDelete = MarketplaceDealsDelete
59data MarketplaceDealsDelete = MarketplaceDealsDelete
60− { _mddPayload :: !DeleteOrderDealsRequest
60+ { _mddPayload :: !DeleteOrderDealsRequest
61− , _mddOrderId :: !Text
61+ , _mddProposalId :: !Text
62 } deriving (Eq,Show,Data,Typeable,Generic)
62 } deriving (Eq,Show,Data,Typeable,Generic)
63
63
64-- | Creates a value of 'MarketplaceDealsDelete' with the minimum fields required to make a request.
64-- | Creates a value of 'MarketplaceDealsDelete' with the minimum fields required to make a request.
@@ -67,15 +67,15 @@ data MarketplaceDealsDelete = MarketplaceDealsDelete
67--
67--
68-- * 'mddPayload'
68-- * 'mddPayload'
69--
69--
70−-- * 'mddOrderId'
70+-- * 'mddProposalId'
71marketplaceDealsDelete
71marketplaceDealsDelete
72 :: DeleteOrderDealsRequest -- ^ 'mddPayload'
72 :: DeleteOrderDealsRequest -- ^ 'mddPayload'
73− -> Text -- ^ 'mddOrderId'
73+ -> Text -- ^ 'mddProposalId'
74 -> MarketplaceDealsDelete
74 -> MarketplaceDealsDelete
75−marketplaceDealsDelete pMddPayload_ pMddOrderId_ =
75+marketplaceDealsDelete pMddPayload_ pMddProposalId_ =
76 MarketplaceDealsDelete
76 MarketplaceDealsDelete
77 { _mddPayload = pMddPayload_
77 { _mddPayload = pMddPayload_
78− , _mddOrderId = pMddOrderId_
78+ , _mddProposalId = pMddProposalId_
79 }
79 }
80
80
81-- | Multipart request metadata.
81-- | Multipart request metadata.
@@ -83,16 +83,17 @@ mddPayload :: Lens' MarketplaceDealsDelete DeleteOrderDealsRequest
83mddPayload
83mddPayload
84 = lens _mddPayload (\ s a -> s{_mddPayload = a})
84 = lens _mddPayload (\ s a -> s{_mddPayload = a})
85
85
86−-- | The orderId to delete deals from.
86+-- | The proposalId to delete deals from.
87−mddOrderId :: Lens' MarketplaceDealsDelete Text
87+mddProposalId :: Lens' MarketplaceDealsDelete Text
88−mddOrderId
88+mddProposalId
89− = lens _mddOrderId (\ s a -> s{_mddOrderId = a})
89+ = lens _mddProposalId
90+ (\ s a -> s{_mddProposalId = a})
90
91
91instance GoogleRequest MarketplaceDealsDelete where
92instance GoogleRequest MarketplaceDealsDelete where
92 type Rs MarketplaceDealsDelete =
93 type Rs MarketplaceDealsDelete =
93 DeleteOrderDealsResponse
94 DeleteOrderDealsResponse
94 requestClient MarketplaceDealsDelete{..}
95 requestClient MarketplaceDealsDelete{..}
95− = go _mddOrderId (Just AltJSON) _mddPayload
96+ = go _mddProposalId (Just AltJSON) _mddPayload
96 adExchangeBuyerService
97 adExchangeBuyerService
97 where go
98 where go
98 = buildClient
99 = buildClient
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceDeals/Insert.hs+17−16
@@ -20,7 +20,7 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Add new deals for the specified order
23+-- Add new deals for the specified proposal
24--
24--
25-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplacedeals.insert@.
25-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplacedeals.insert@.
26module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Insert
26module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Insert
@@ -34,7 +34,7 @@ module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Insert
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36 , mdiPayload
36 , mdiPayload
37− , mdiOrderId
37+ , mdiProposalId
38 ) where
38 ) where
39
39
40import Network.Google.AdExchangeBuyer.Types
40import Network.Google.AdExchangeBuyer.Types
@@ -45,20 +45,20 @@ import Network.Google.Prelude
45type MarketplaceDealsInsertResource =
45type MarketplaceDealsInsertResource =
46 "adexchangebuyer" :>
46 "adexchangebuyer" :>
47 "v1.4" :>
47 "v1.4" :>
48− "marketplaceOrders" :>
48+ "proposals" :>
49− Capture "orderId" Text :>
49+ Capture "proposalId" Text :>
50 "deals" :>
50 "deals" :>
51 "insert" :>
51 "insert" :>
52 QueryParam "alt" AltJSON :>
52 QueryParam "alt" AltJSON :>
53 ReqBody '[JSON] AddOrderDealsRequest :>
53 ReqBody '[JSON] AddOrderDealsRequest :>
54 Post '[JSON] AddOrderDealsResponse
54 Post '[JSON] AddOrderDealsResponse
55
55
56−-- | Add new deals for the specified order
56+-- | Add new deals for the specified proposal
57--
57--
58-- /See:/ 'marketplaceDealsInsert' smart constructor.
58-- /See:/ 'marketplaceDealsInsert' smart constructor.
59data MarketplaceDealsInsert = MarketplaceDealsInsert
59data MarketplaceDealsInsert = MarketplaceDealsInsert
60− { _mdiPayload :: !AddOrderDealsRequest
60+ { _mdiPayload :: !AddOrderDealsRequest
61− , _mdiOrderId :: !Text
61+ , _mdiProposalId :: !Text
62 } deriving (Eq,Show,Data,Typeable,Generic)
62 } deriving (Eq,Show,Data,Typeable,Generic)
63
63
64-- | Creates a value of 'MarketplaceDealsInsert' with the minimum fields required to make a request.
64-- | Creates a value of 'MarketplaceDealsInsert' with the minimum fields required to make a request.
@@ -67,15 +67,15 @@ data MarketplaceDealsInsert = MarketplaceDealsInsert
67--
67--
68-- * 'mdiPayload'
68-- * 'mdiPayload'
69--
69--
70−-- * 'mdiOrderId'
70+-- * 'mdiProposalId'
71marketplaceDealsInsert
71marketplaceDealsInsert
72 :: AddOrderDealsRequest -- ^ 'mdiPayload'
72 :: AddOrderDealsRequest -- ^ 'mdiPayload'
73− -> Text -- ^ 'mdiOrderId'
73+ -> Text -- ^ 'mdiProposalId'
74 -> MarketplaceDealsInsert
74 -> MarketplaceDealsInsert
75−marketplaceDealsInsert pMdiPayload_ pMdiOrderId_ =
75+marketplaceDealsInsert pMdiPayload_ pMdiProposalId_ =
76 MarketplaceDealsInsert
76 MarketplaceDealsInsert
77 { _mdiPayload = pMdiPayload_
77 { _mdiPayload = pMdiPayload_
78− , _mdiOrderId = pMdiOrderId_
78+ , _mdiProposalId = pMdiProposalId_
79 }
79 }
80
80
81-- | Multipart request metadata.
81-- | Multipart request metadata.
@@ -83,16 +83,17 @@ mdiPayload :: Lens' MarketplaceDealsInsert AddOrderDealsRequest
83mdiPayload
83mdiPayload
84 = lens _mdiPayload (\ s a -> s{_mdiPayload = a})
84 = lens _mdiPayload (\ s a -> s{_mdiPayload = a})
85
85
86−-- | OrderId for which deals need to be added.
86+-- | proposalId for which deals need to be added.
87−mdiOrderId :: Lens' MarketplaceDealsInsert Text
87+mdiProposalId :: Lens' MarketplaceDealsInsert Text
88−mdiOrderId
88+mdiProposalId
89− = lens _mdiOrderId (\ s a -> s{_mdiOrderId = a})
89+ = lens _mdiProposalId
90+ (\ s a -> s{_mdiProposalId = a})
90
91
91instance GoogleRequest MarketplaceDealsInsert where
92instance GoogleRequest MarketplaceDealsInsert where
92 type Rs MarketplaceDealsInsert =
93 type Rs MarketplaceDealsInsert =
93 AddOrderDealsResponse
94 AddOrderDealsResponse
94 requestClient MarketplaceDealsInsert{..}
95 requestClient MarketplaceDealsInsert{..}
95− = go _mdiOrderId (Just AltJSON) _mdiPayload
96+ = go _mdiProposalId (Just AltJSON) _mdiPayload
96 adExchangeBuyerService
97 adExchangeBuyerService
97 where go
98 where go
98 = buildClient
99 = buildClient
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceDeals/List.hs+16−15
@@ -20,7 +20,7 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- List all the deals for a given order
23+-- List all the deals for a given proposal
24--
24--
25-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplacedeals.list@.
25-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplacedeals.list@.
26module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.List
26module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.List
@@ -33,7 +33,7 @@ module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.List
33 , MarketplaceDealsList
33 , MarketplaceDealsList
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36− , mdlOrderId
36+ , mdlProposalId
37 ) where
37 ) where
38
38
39import Network.Google.AdExchangeBuyer.Types
39import Network.Google.AdExchangeBuyer.Types
@@ -44,41 +44,42 @@ import Network.Google.Prelude
44type MarketplaceDealsListResource =
44type MarketplaceDealsListResource =
45 "adexchangebuyer" :>
45 "adexchangebuyer" :>
46 "v1.4" :>
46 "v1.4" :>
47− "marketplaceOrders" :>
47+ "proposals" :>
48− Capture "orderId" Text :>
48+ Capture "proposalId" Text :>
49 "deals" :>
49 "deals" :>
50 QueryParam "alt" AltJSON :>
50 QueryParam "alt" AltJSON :>
51 Get '[JSON] GetOrderDealsResponse
51 Get '[JSON] GetOrderDealsResponse
52
52
53−-- | List all the deals for a given order
53+-- | List all the deals for a given proposal
54--
54--
55-- /See:/ 'marketplaceDealsList' smart constructor.
55-- /See:/ 'marketplaceDealsList' smart constructor.
56newtype MarketplaceDealsList = MarketplaceDealsList
56newtype MarketplaceDealsList = MarketplaceDealsList
57− { _mdlOrderId :: Text
57+ { _mdlProposalId :: Text
58 } deriving (Eq,Show,Data,Typeable,Generic)
58 } deriving (Eq,Show,Data,Typeable,Generic)
59
59
60-- | Creates a value of 'MarketplaceDealsList' with the minimum fields required to make a request.
60-- | Creates a value of 'MarketplaceDealsList' with the minimum fields required to make a request.
61--
61--
62-- Use one of the following lenses to modify other fields as desired:
62-- Use one of the following lenses to modify other fields as desired:
63--
63--
64−-- * 'mdlOrderId'
64+-- * 'mdlProposalId'
65marketplaceDealsList
65marketplaceDealsList
66− :: Text -- ^ 'mdlOrderId'
66+ :: Text -- ^ 'mdlProposalId'
67 -> MarketplaceDealsList
67 -> MarketplaceDealsList
68−marketplaceDealsList pMdlOrderId_ =
68+marketplaceDealsList pMdlProposalId_ =
69 MarketplaceDealsList
69 MarketplaceDealsList
70− { _mdlOrderId = pMdlOrderId_
70+ { _mdlProposalId = pMdlProposalId_
71 }
71 }
72
72
73−-- | The orderId to get deals for.
73+-- | The proposalId to get deals for.
74−mdlOrderId :: Lens' MarketplaceDealsList Text
74+mdlProposalId :: Lens' MarketplaceDealsList Text
75−mdlOrderId
75+mdlProposalId
76− = lens _mdlOrderId (\ s a -> s{_mdlOrderId = a})
76+ = lens _mdlProposalId
77+ (\ s a -> s{_mdlProposalId = a})
77
78
78instance GoogleRequest MarketplaceDealsList where
79instance GoogleRequest MarketplaceDealsList where
79 type Rs MarketplaceDealsList = GetOrderDealsResponse
80 type Rs MarketplaceDealsList = GetOrderDealsResponse
80 requestClient MarketplaceDealsList{..}
81 requestClient MarketplaceDealsList{..}
81− = go _mdlOrderId (Just AltJSON)
82+ = go _mdlProposalId (Just AltJSON)
82 adExchangeBuyerService
83 adExchangeBuyerService
83 where go
84 where go
84 = buildClient
85 = buildClient
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceDeals/Update.hs+17−16
@@ -20,7 +20,7 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Replaces all the deals in the order with the passed in deals
23+-- Replaces all the deals in the proposal with the passed in deals
24--
24--
25-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplacedeals.update@.
25-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplacedeals.update@.
26module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Update
26module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Update
@@ -34,7 +34,7 @@ module Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Update
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36 , mduPayload
36 , mduPayload
37− , mduOrderId
37+ , mduProposalId
38 ) where
38 ) where
39
39
40import Network.Google.AdExchangeBuyer.Types
40import Network.Google.AdExchangeBuyer.Types
@@ -45,20 +45,20 @@ import Network.Google.Prelude
45type MarketplaceDealsUpdateResource =
45type MarketplaceDealsUpdateResource =
46 "adexchangebuyer" :>
46 "adexchangebuyer" :>
47 "v1.4" :>
47 "v1.4" :>
48− "marketplaceOrders" :>
48+ "proposals" :>
49− Capture "orderId" Text :>
49+ Capture "proposalId" Text :>
50 "deals" :>
50 "deals" :>
51 "update" :>
51 "update" :>
52 QueryParam "alt" AltJSON :>
52 QueryParam "alt" AltJSON :>
53 ReqBody '[JSON] EditAllOrderDealsRequest :>
53 ReqBody '[JSON] EditAllOrderDealsRequest :>
54 Post '[JSON] EditAllOrderDealsResponse
54 Post '[JSON] EditAllOrderDealsResponse
55
55
56−-- | Replaces all the deals in the order with the passed in deals
56+-- | Replaces all the deals in the proposal with the passed in deals
57--
57--
58-- /See:/ 'marketplaceDealsUpdate' smart constructor.
58-- /See:/ 'marketplaceDealsUpdate' smart constructor.
59data MarketplaceDealsUpdate = MarketplaceDealsUpdate
59data MarketplaceDealsUpdate = MarketplaceDealsUpdate
60− { _mduPayload :: !EditAllOrderDealsRequest
60+ { _mduPayload :: !EditAllOrderDealsRequest
61− , _mduOrderId :: !Text
61+ , _mduProposalId :: !Text
62 } deriving (Eq,Show,Data,Typeable,Generic)
62 } deriving (Eq,Show,Data,Typeable,Generic)
63
63
64-- | Creates a value of 'MarketplaceDealsUpdate' with the minimum fields required to make a request.
64-- | Creates a value of 'MarketplaceDealsUpdate' with the minimum fields required to make a request.
@@ -67,15 +67,15 @@ data MarketplaceDealsUpdate = MarketplaceDealsUpdate
67--
67--
68-- * 'mduPayload'
68-- * 'mduPayload'
69--
69--
70−-- * 'mduOrderId'
70+-- * 'mduProposalId'
71marketplaceDealsUpdate
71marketplaceDealsUpdate
72 :: EditAllOrderDealsRequest -- ^ 'mduPayload'
72 :: EditAllOrderDealsRequest -- ^ 'mduPayload'
73− -> Text -- ^ 'mduOrderId'
73+ -> Text -- ^ 'mduProposalId'
74 -> MarketplaceDealsUpdate
74 -> MarketplaceDealsUpdate
75−marketplaceDealsUpdate pMduPayload_ pMduOrderId_ =
75+marketplaceDealsUpdate pMduPayload_ pMduProposalId_ =
76 MarketplaceDealsUpdate
76 MarketplaceDealsUpdate
77 { _mduPayload = pMduPayload_
77 { _mduPayload = pMduPayload_
78− , _mduOrderId = pMduOrderId_
78+ , _mduProposalId = pMduProposalId_
79 }
79 }
80
80
81-- | Multipart request metadata.
81-- | Multipart request metadata.
@@ -83,16 +83,17 @@ mduPayload :: Lens' MarketplaceDealsUpdate EditAllOrderDealsRequest
83mduPayload
83mduPayload
84 = lens _mduPayload (\ s a -> s{_mduPayload = a})
84 = lens _mduPayload (\ s a -> s{_mduPayload = a})
85
85
86−-- | The orderId to edit deals on.
86+-- | The proposalId to edit deals on.
87−mduOrderId :: Lens' MarketplaceDealsUpdate Text
87+mduProposalId :: Lens' MarketplaceDealsUpdate Text
88−mduOrderId
88+mduProposalId
89− = lens _mduOrderId (\ s a -> s{_mduOrderId = a})
89+ = lens _mduProposalId
90+ (\ s a -> s{_mduProposalId = a})
90
91
91instance GoogleRequest MarketplaceDealsUpdate where
92instance GoogleRequest MarketplaceDealsUpdate where
92 type Rs MarketplaceDealsUpdate =
93 type Rs MarketplaceDealsUpdate =
93 EditAllOrderDealsResponse
94 EditAllOrderDealsResponse
94 requestClient MarketplaceDealsUpdate{..}
95 requestClient MarketplaceDealsUpdate{..}
95− = go _mduOrderId (Just AltJSON) _mduPayload
96+ = go _mduProposalId (Just AltJSON) _mduPayload
96 adExchangeBuyerService
97 adExchangeBuyerService
97 where go
98 where go
98 = buildClient
99 = buildClient
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceNotes/Insert.hs+17−16
@@ -20,7 +20,7 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Add notes to the order
23+-- Add notes to the proposal
24--
24--
25-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplacenotes.insert@.
25-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplacenotes.insert@.
26module Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.Insert
26module Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.Insert
@@ -34,7 +34,7 @@ module Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.Insert
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36 , mniPayload
36 , mniPayload
37− , mniOrderId
37+ , mniProposalId
38 ) where
38 ) where
39
39
40import Network.Google.AdExchangeBuyer.Types
40import Network.Google.AdExchangeBuyer.Types
@@ -45,20 +45,20 @@ import Network.Google.Prelude
45type MarketplaceNotesInsertResource =
45type MarketplaceNotesInsertResource =
46 "adexchangebuyer" :>
46 "adexchangebuyer" :>
47 "v1.4" :>
47 "v1.4" :>
48− "marketplaceOrders" :>
48+ "proposals" :>
49− Capture "orderId" Text :>
49+ Capture "proposalId" Text :>
50 "notes" :>
50 "notes" :>
51 "insert" :>
51 "insert" :>
52 QueryParam "alt" AltJSON :>
52 QueryParam "alt" AltJSON :>
53 ReqBody '[JSON] AddOrderNotesRequest :>
53 ReqBody '[JSON] AddOrderNotesRequest :>
54 Post '[JSON] AddOrderNotesResponse
54 Post '[JSON] AddOrderNotesResponse
55
55
56−-- | Add notes to the order
56+-- | Add notes to the proposal
57--
57--
58-- /See:/ 'marketplaceNotesInsert' smart constructor.
58-- /See:/ 'marketplaceNotesInsert' smart constructor.
59data MarketplaceNotesInsert = MarketplaceNotesInsert
59data MarketplaceNotesInsert = MarketplaceNotesInsert
60− { _mniPayload :: !AddOrderNotesRequest
60+ { _mniPayload :: !AddOrderNotesRequest
61− , _mniOrderId :: !Text
61+ , _mniProposalId :: !Text
62 } deriving (Eq,Show,Data,Typeable,Generic)
62 } deriving (Eq,Show,Data,Typeable,Generic)
63
63
64-- | Creates a value of 'MarketplaceNotesInsert' with the minimum fields required to make a request.
64-- | Creates a value of 'MarketplaceNotesInsert' with the minimum fields required to make a request.
@@ -67,15 +67,15 @@ data MarketplaceNotesInsert = MarketplaceNotesInsert
67--
67--
68-- * 'mniPayload'
68-- * 'mniPayload'
69--
69--
70−-- * 'mniOrderId'
70+-- * 'mniProposalId'
71marketplaceNotesInsert
71marketplaceNotesInsert
72 :: AddOrderNotesRequest -- ^ 'mniPayload'
72 :: AddOrderNotesRequest -- ^ 'mniPayload'
73− -> Text -- ^ 'mniOrderId'
73+ -> Text -- ^ 'mniProposalId'
74 -> MarketplaceNotesInsert
74 -> MarketplaceNotesInsert
75−marketplaceNotesInsert pMniPayload_ pMniOrderId_ =
75+marketplaceNotesInsert pMniPayload_ pMniProposalId_ =
76 MarketplaceNotesInsert
76 MarketplaceNotesInsert
77 { _mniPayload = pMniPayload_
77 { _mniPayload = pMniPayload_
78− , _mniOrderId = pMniOrderId_
78+ , _mniProposalId = pMniProposalId_
79 }
79 }
80
80
81-- | Multipart request metadata.
81-- | Multipart request metadata.
@@ -83,16 +83,17 @@ mniPayload :: Lens' MarketplaceNotesInsert AddOrderNotesRequest
83mniPayload
83mniPayload
84 = lens _mniPayload (\ s a -> s{_mniPayload = a})
84 = lens _mniPayload (\ s a -> s{_mniPayload = a})
85
85
86−-- | The orderId to add notes for.
86+-- | The proposalId to add notes for.
87−mniOrderId :: Lens' MarketplaceNotesInsert Text
87+mniProposalId :: Lens' MarketplaceNotesInsert Text
88−mniOrderId
88+mniProposalId
89− = lens _mniOrderId (\ s a -> s{_mniOrderId = a})
89+ = lens _mniProposalId
90+ (\ s a -> s{_mniProposalId = a})
90
91
91instance GoogleRequest MarketplaceNotesInsert where
92instance GoogleRequest MarketplaceNotesInsert where
92 type Rs MarketplaceNotesInsert =
93 type Rs MarketplaceNotesInsert =
93 AddOrderNotesResponse
94 AddOrderNotesResponse
94 requestClient MarketplaceNotesInsert{..}
95 requestClient MarketplaceNotesInsert{..}
95− = go _mniOrderId (Just AltJSON) _mniPayload
96+ = go _mniProposalId (Just AltJSON) _mniPayload
96 adExchangeBuyerService
97 adExchangeBuyerService
97 where go
98 where go
98 = buildClient
99 = buildClient
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceNotes/List.hs+16−15
@@ -20,7 +20,7 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Get all the notes associated with an order
23+-- Get all the notes associated with a proposal
24--
24--
25-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplacenotes.list@.
25-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplacenotes.list@.
26module Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
26module Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
@@ -33,7 +33,7 @@ module Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
33 , MarketplaceNotesList
33 , MarketplaceNotesList
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36− , mnlOrderId
36+ , mnlProposalId
37 ) where
37 ) where
38
38
39import Network.Google.AdExchangeBuyer.Types
39import Network.Google.AdExchangeBuyer.Types
@@ -44,41 +44,42 @@ import Network.Google.Prelude
44type MarketplaceNotesListResource =
44type MarketplaceNotesListResource =
45 "adexchangebuyer" :>
45 "adexchangebuyer" :>
46 "v1.4" :>
46 "v1.4" :>
47− "marketplaceOrders" :>
47+ "proposals" :>
48− Capture "orderId" Text :>
48+ Capture "proposalId" Text :>
49 "notes" :>
49 "notes" :>
50 QueryParam "alt" AltJSON :>
50 QueryParam "alt" AltJSON :>
51 Get '[JSON] GetOrderNotesResponse
51 Get '[JSON] GetOrderNotesResponse
52
52
53−-- | Get all the notes associated with an order
53+-- | Get all the notes associated with a proposal
54--
54--
55-- /See:/ 'marketplaceNotesList' smart constructor.
55-- /See:/ 'marketplaceNotesList' smart constructor.
56newtype MarketplaceNotesList = MarketplaceNotesList
56newtype MarketplaceNotesList = MarketplaceNotesList
57− { _mnlOrderId :: Text
57+ { _mnlProposalId :: Text
58 } deriving (Eq,Show,Data,Typeable,Generic)
58 } deriving (Eq,Show,Data,Typeable,Generic)
59
59
60-- | Creates a value of 'MarketplaceNotesList' with the minimum fields required to make a request.
60-- | Creates a value of 'MarketplaceNotesList' with the minimum fields required to make a request.
61--
61--
62-- Use one of the following lenses to modify other fields as desired:
62-- Use one of the following lenses to modify other fields as desired:
63--
63--
64−-- * 'mnlOrderId'
64+-- * 'mnlProposalId'
65marketplaceNotesList
65marketplaceNotesList
66− :: Text -- ^ 'mnlOrderId'
66+ :: Text -- ^ 'mnlProposalId'
67 -> MarketplaceNotesList
67 -> MarketplaceNotesList
68−marketplaceNotesList pMnlOrderId_ =
68+marketplaceNotesList pMnlProposalId_ =
69 MarketplaceNotesList
69 MarketplaceNotesList
70− { _mnlOrderId = pMnlOrderId_
70+ { _mnlProposalId = pMnlProposalId_
71 }
71 }
72
72
73−-- | The orderId to get notes for.
73+-- | The proposalId to get notes for.
74−mnlOrderId :: Lens' MarketplaceNotesList Text
74+mnlProposalId :: Lens' MarketplaceNotesList Text
75−mnlOrderId
75+mnlProposalId
76− = lens _mnlOrderId (\ s a -> s{_mnlOrderId = a})
76+ = lens _mnlProposalId
77+ (\ s a -> s{_mnlProposalId = a})
77
78
78instance GoogleRequest MarketplaceNotesList where
79instance GoogleRequest MarketplaceNotesList where
79 type Rs MarketplaceNotesList = GetOrderNotesResponse
80 type Rs MarketplaceNotesList = GetOrderNotesResponse
80 requestClient MarketplaceNotesList{..}
81 requestClient MarketplaceNotesList{..}
81− = go _mnlOrderId (Just AltJSON)
82+ = go _mnlProposalId (Just AltJSON)
82 adExchangeBuyerService
83 adExchangeBuyerService
83 where go
84 where go
84 = buildClient
85 = buildClient
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Products/Get.hsnew file+83
@@ -0,0 +1,83 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.Products.Get
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Gets the requested product by id.
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.products.get@.
26+module Network.Google.Resource.AdExchangeBuyer.Products.Get
27+ (
28+ -- * REST Resource
29+ ProductsGetResource
30+
31+ -- * Creating a Request
32+ , productsGet
33+ , ProductsGet
34+
35+ -- * Request Lenses
36+ , pgProductId
37+ ) where
38+
39+import Network.Google.AdExchangeBuyer.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @adexchangebuyer.products.get@ method which the
43+-- 'ProductsGet' request conforms to.
44+type ProductsGetResource =
45+ "adexchangebuyer" :>
46+ "v1.4" :>
47+ "products" :>
48+ Capture "productId" Text :>
49+ QueryParam "alt" AltJSON :> Get '[JSON] Product
50+
51+-- | Gets the requested product by id.
52+--
53+-- /See:/ 'productsGet' smart constructor.
54+newtype ProductsGet = ProductsGet
55+ { _pgProductId :: Text
56+ } deriving (Eq,Show,Data,Typeable,Generic)
57+
58+-- | Creates a value of 'ProductsGet' with the minimum fields required to make a request.
59+--
60+-- Use one of the following lenses to modify other fields as desired:
61+--
62+-- * 'pgProductId'
63+productsGet
64+ :: Text -- ^ 'pgProductId'
65+ -> ProductsGet
66+productsGet pPgProductId_ =
67+ ProductsGet
68+ { _pgProductId = pPgProductId_
69+ }
70+
71+-- | The id for the product to get the head revision for.
72+pgProductId :: Lens' ProductsGet Text
73+pgProductId
74+ = lens _pgProductId (\ s a -> s{_pgProductId = a})
75+
76+instance GoogleRequest ProductsGet where
77+ type Rs ProductsGet = Product
78+ requestClient ProductsGet{..}
79+ = go _pgProductId (Just AltJSON)
80+ adExchangeBuyerService
81+ where go
82+ = buildClient (Proxy :: Proxy ProductsGetResource)
83+ mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Products/Search.hsnew file+84
@@ -0,0 +1,84 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.Products.Search
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Gets the requested product.
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.products.search@.
26+module Network.Google.Resource.AdExchangeBuyer.Products.Search
27+ (
28+ -- * REST Resource
29+ ProductsSearchResource
30+
31+ -- * Creating a Request
32+ , productsSearch
33+ , ProductsSearch
34+
35+ -- * Request Lenses
36+ , psPqlQuery
37+ ) where
38+
39+import Network.Google.AdExchangeBuyer.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @adexchangebuyer.products.search@ method which the
43+-- 'ProductsSearch' request conforms to.
44+type ProductsSearchResource =
45+ "adexchangebuyer" :>
46+ "v1.4" :>
47+ "products" :>
48+ "search" :>
49+ QueryParam "pqlQuery" Text :>
50+ QueryParam "alt" AltJSON :>
51+ Get '[JSON] GetOffersResponse
52+
53+-- | Gets the requested product.
54+--
55+-- /See:/ 'productsSearch' smart constructor.
56+newtype ProductsSearch = ProductsSearch
57+ { _psPqlQuery :: Maybe Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'ProductsSearch' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'psPqlQuery'
65+productsSearch
66+ :: ProductsSearch
67+productsSearch =
68+ ProductsSearch
69+ { _psPqlQuery = Nothing
70+ }
71+
72+-- | The pql query used to query for products.
73+psPqlQuery :: Lens' ProductsSearch (Maybe Text)
74+psPqlQuery
75+ = lens _psPqlQuery (\ s a -> s{_psPqlQuery = a})
76+
77+instance GoogleRequest ProductsSearch where
78+ type Rs ProductsSearch = GetOffersResponse
79+ requestClient ProductsSearch{..}
80+ = go _psPqlQuery (Just AltJSON)
81+ adExchangeBuyerService
82+ where go
83+ = buildClient (Proxy :: Proxy ProductsSearchResource)
84+ mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Proposals/Get.hsnew file+83
@@ -0,0 +1,83 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.Proposals.Get
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Get a proposal given its id
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.proposals.get@.
26+module Network.Google.Resource.AdExchangeBuyer.Proposals.Get
27+ (
28+ -- * REST Resource
29+ ProposalsGetResource
30+
31+ -- * Creating a Request
32+ , proposalsGet
33+ , ProposalsGet
34+
35+ -- * Request Lenses
36+ , pgProposalId
37+ ) where
38+
39+import Network.Google.AdExchangeBuyer.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @adexchangebuyer.proposals.get@ method which the
43+-- 'ProposalsGet' request conforms to.
44+type ProposalsGetResource =
45+ "adexchangebuyer" :>
46+ "v1.4" :>
47+ "proposals" :>
48+ Capture "proposalId" Text :>
49+ QueryParam "alt" AltJSON :> Get '[JSON] Proposal
50+
51+-- | Get a proposal given its id
52+--
53+-- /See:/ 'proposalsGet' smart constructor.
54+newtype ProposalsGet = ProposalsGet
55+ { _pgProposalId :: Text
56+ } deriving (Eq,Show,Data,Typeable,Generic)
57+
58+-- | Creates a value of 'ProposalsGet' with the minimum fields required to make a request.
59+--
60+-- Use one of the following lenses to modify other fields as desired:
61+--
62+-- * 'pgProposalId'
63+proposalsGet
64+ :: Text -- ^ 'pgProposalId'
65+ -> ProposalsGet
66+proposalsGet pPgProposalId_ =
67+ ProposalsGet
68+ { _pgProposalId = pPgProposalId_
69+ }
70+
71+-- | Id of the proposal to retrieve.
72+pgProposalId :: Lens' ProposalsGet Text
73+pgProposalId
74+ = lens _pgProposalId (\ s a -> s{_pgProposalId = a})
75+
76+instance GoogleRequest ProposalsGet where
77+ type Rs ProposalsGet = Proposal
78+ requestClient ProposalsGet{..}
79+ = go _pgProposalId (Just AltJSON)
80+ adExchangeBuyerService
81+ where go
82+ = buildClient (Proxy :: Proxy ProposalsGetResource)
83+ mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Proposals/Insert.hsnew file+85
@@ -0,0 +1,85 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.Proposals.Insert
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Create the given list of proposals
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.proposals.insert@.
26+module Network.Google.Resource.AdExchangeBuyer.Proposals.Insert
27+ (
28+ -- * REST Resource
29+ ProposalsInsertResource
30+
31+ -- * Creating a Request
32+ , proposalsInsert
33+ , ProposalsInsert
34+
35+ -- * Request Lenses
36+ , piPayload
37+ ) where
38+
39+import Network.Google.AdExchangeBuyer.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @adexchangebuyer.proposals.insert@ method which the
43+-- 'ProposalsInsert' request conforms to.
44+type ProposalsInsertResource =
45+ "adexchangebuyer" :>
46+ "v1.4" :>
47+ "proposals" :>
48+ "insert" :>
49+ QueryParam "alt" AltJSON :>
50+ ReqBody '[JSON] CreateOrdersRequest :>
51+ Post '[JSON] CreateOrdersResponse
52+
53+-- | Create the given list of proposals
54+--
55+-- /See:/ 'proposalsInsert' smart constructor.
56+newtype ProposalsInsert = ProposalsInsert
57+ { _piPayload :: CreateOrdersRequest
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'ProposalsInsert' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'piPayload'
65+proposalsInsert
66+ :: CreateOrdersRequest -- ^ 'piPayload'
67+ -> ProposalsInsert
68+proposalsInsert pPiPayload_ =
69+ ProposalsInsert
70+ { _piPayload = pPiPayload_
71+ }
72+
73+-- | Multipart request metadata.
74+piPayload :: Lens' ProposalsInsert CreateOrdersRequest
75+piPayload
76+ = lens _piPayload (\ s a -> s{_piPayload = a})
77+
78+instance GoogleRequest ProposalsInsert where
79+ type Rs ProposalsInsert = CreateOrdersResponse
80+ requestClient ProposalsInsert{..}
81+ = go (Just AltJSON) _piPayload adExchangeBuyerService
82+ where go
83+ = buildClient
84+ (Proxy :: Proxy ProposalsInsertResource)
85+ mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Proposals/Patch.hsnew file+127
@@ -0,0 +1,127 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.Proposals.Patch
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Update the given proposal. This method supports patch semantics.
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.proposals.patch@.
26+module Network.Google.Resource.AdExchangeBuyer.Proposals.Patch
27+ (
28+ -- * REST Resource
29+ ProposalsPatchResource
30+
31+ -- * Creating a Request
32+ , proposalsPatch
33+ , ProposalsPatch
34+
35+ -- * Request Lenses
36+ , ppUpdateAction
37+ , ppRevisionNumber
38+ , ppPayload
39+ , ppProposalId
40+ ) where
41+
42+import Network.Google.AdExchangeBuyer.Types
43+import Network.Google.Prelude
44+
45+-- | A resource alias for @adexchangebuyer.proposals.patch@ method which the
46+-- 'ProposalsPatch' request conforms to.
47+type ProposalsPatchResource =
48+ "adexchangebuyer" :>
49+ "v1.4" :>
50+ "proposals" :>
51+ Capture "proposalId" Text :>
52+ Capture "revisionNumber" (Textual Int64) :>
53+ Capture "updateAction" ProposalsPatchUpdateAction :>
54+ QueryParam "alt" AltJSON :>
55+ ReqBody '[JSON] Proposal :> Patch '[JSON] Proposal
56+
57+-- | Update the given proposal. This method supports patch semantics.
58+--
59+-- /See:/ 'proposalsPatch' smart constructor.
60+data ProposalsPatch = ProposalsPatch
61+ { _ppUpdateAction :: !ProposalsPatchUpdateAction
62+ , _ppRevisionNumber :: !(Textual Int64)
63+ , _ppPayload :: !Proposal
64+ , _ppProposalId :: !Text
65+ } deriving (Eq,Show,Data,Typeable,Generic)
66+
67+-- | Creates a value of 'ProposalsPatch' with the minimum fields required to make a request.
68+--
69+-- Use one of the following lenses to modify other fields as desired:
70+--
71+-- * 'ppUpdateAction'
72+--
73+-- * 'ppRevisionNumber'
74+--
75+-- * 'ppPayload'
76+--
77+-- * 'ppProposalId'
78+proposalsPatch
79+ :: ProposalsPatchUpdateAction -- ^ 'ppUpdateAction'
80+ -> Int64 -- ^ 'ppRevisionNumber'
81+ -> Proposal -- ^ 'ppPayload'
82+ -> Text -- ^ 'ppProposalId'
83+ -> ProposalsPatch
84+proposalsPatch pPpUpdateAction_ pPpRevisionNumber_ pPpPayload_ pPpProposalId_ =
85+ ProposalsPatch
86+ { _ppUpdateAction = pPpUpdateAction_
87+ , _ppRevisionNumber = _Coerce # pPpRevisionNumber_
88+ , _ppPayload = pPpPayload_
89+ , _ppProposalId = pPpProposalId_
90+ }
91+
92+-- | The proposed action to take on the proposal.
93+ppUpdateAction :: Lens' ProposalsPatch ProposalsPatchUpdateAction
94+ppUpdateAction
95+ = lens _ppUpdateAction
96+ (\ s a -> s{_ppUpdateAction = a})
97+
98+-- | The last known revision number to update. If the head revision in the
99+-- marketplace database has since changed, an error will be thrown. The
100+-- caller should then fetch the latest proposal at head revision and retry
101+-- the update at that revision.
102+ppRevisionNumber :: Lens' ProposalsPatch Int64
103+ppRevisionNumber
104+ = lens _ppRevisionNumber
105+ (\ s a -> s{_ppRevisionNumber = a})
106+ . _Coerce
107+
108+-- | Multipart request metadata.
109+ppPayload :: Lens' ProposalsPatch Proposal
110+ppPayload
111+ = lens _ppPayload (\ s a -> s{_ppPayload = a})
112+
113+-- | The proposal id to update.
114+ppProposalId :: Lens' ProposalsPatch Text
115+ppProposalId
116+ = lens _ppProposalId (\ s a -> s{_ppProposalId = a})
117+
118+instance GoogleRequest ProposalsPatch where
119+ type Rs ProposalsPatch = Proposal
120+ requestClient ProposalsPatch{..}
121+ = go _ppProposalId _ppRevisionNumber _ppUpdateAction
122+ (Just AltJSON)
123+ _ppPayload
124+ adExchangeBuyerService
125+ where go
126+ = buildClient (Proxy :: Proxy ProposalsPatchResource)
127+ mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Proposals/Search.hsnew file+84
@@ -0,0 +1,84 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.Proposals.Search
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Search for proposals using pql query
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.proposals.search@.
26+module Network.Google.Resource.AdExchangeBuyer.Proposals.Search
27+ (
28+ -- * REST Resource
29+ ProposalsSearchResource
30+
31+ -- * Creating a Request
32+ , proposalsSearch
33+ , ProposalsSearch
34+
35+ -- * Request Lenses
36+ , pPqlQuery
37+ ) where
38+
39+import Network.Google.AdExchangeBuyer.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @adexchangebuyer.proposals.search@ method which the
43+-- 'ProposalsSearch' request conforms to.
44+type ProposalsSearchResource =
45+ "adexchangebuyer" :>
46+ "v1.4" :>
47+ "proposals" :>
48+ "search" :>
49+ QueryParam "pqlQuery" Text :>
50+ QueryParam "alt" AltJSON :>
51+ Get '[JSON] GetOrdersResponse
52+
53+-- | Search for proposals using pql query
54+--
55+-- /See:/ 'proposalsSearch' smart constructor.
56+newtype ProposalsSearch = ProposalsSearch
57+ { _pPqlQuery :: Maybe Text
58+ } deriving (Eq,Show,Data,Typeable,Generic)
59+
60+-- | Creates a value of 'ProposalsSearch' with the minimum fields required to make a request.
61+--
62+-- Use one of the following lenses to modify other fields as desired:
63+--
64+-- * 'pPqlQuery'
65+proposalsSearch
66+ :: ProposalsSearch
67+proposalsSearch =
68+ ProposalsSearch
69+ { _pPqlQuery = Nothing
70+ }
71+
72+-- | Query string to retrieve specific proposals.
73+pPqlQuery :: Lens' ProposalsSearch (Maybe Text)
74+pPqlQuery
75+ = lens _pPqlQuery (\ s a -> s{_pPqlQuery = a})
76+
77+instance GoogleRequest ProposalsSearch where
78+ type Rs ProposalsSearch = GetOrdersResponse
79+ requestClient ProposalsSearch{..}
80+ = go _pPqlQuery (Just AltJSON) adExchangeBuyerService
81+ where go
82+ = buildClient
83+ (Proxy :: Proxy ProposalsSearchResource)
84+ mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Proposals/Update.hsnew file+128
@@ -0,0 +1,128 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AdExchangeBuyer.Proposals.Update
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Update the given proposal
24+--
25+-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.proposals.update@.
26+module Network.Google.Resource.AdExchangeBuyer.Proposals.Update
27+ (
28+ -- * REST Resource
29+ ProposalsUpdateResource
30+
31+ -- * Creating a Request
32+ , proposalsUpdate
33+ , ProposalsUpdate
34+
35+ -- * Request Lenses
36+ , puUpdateAction
37+ , puRevisionNumber
38+ , puPayload
39+ , puProposalId
40+ ) where
41+
42+import Network.Google.AdExchangeBuyer.Types
43+import Network.Google.Prelude
44+
45+-- | A resource alias for @adexchangebuyer.proposals.update@ method which the
46+-- 'ProposalsUpdate' request conforms to.
47+type ProposalsUpdateResource =
48+ "adexchangebuyer" :>
49+ "v1.4" :>
50+ "proposals" :>
51+ Capture "proposalId" Text :>
52+ Capture "revisionNumber" (Textual Int64) :>
53+ Capture "updateAction" ProposalsUpdateUpdateAction :>
54+ QueryParam "alt" AltJSON :>
55+ ReqBody '[JSON] Proposal :> Put '[JSON] Proposal
56+
57+-- | Update the given proposal
58+--
59+-- /See:/ 'proposalsUpdate' smart constructor.
60+data ProposalsUpdate = ProposalsUpdate
61+ { _puUpdateAction :: !ProposalsUpdateUpdateAction
62+ , _puRevisionNumber :: !(Textual Int64)
63+ , _puPayload :: !Proposal
64+ , _puProposalId :: !Text
65+ } deriving (Eq,Show,Data,Typeable,Generic)
66+
67+-- | Creates a value of 'ProposalsUpdate' with the minimum fields required to make a request.
68+--
69+-- Use one of the following lenses to modify other fields as desired:
70+--
71+-- * 'puUpdateAction'
72+--
73+-- * 'puRevisionNumber'
74+--
75+-- * 'puPayload'
76+--
77+-- * 'puProposalId'
78+proposalsUpdate
79+ :: ProposalsUpdateUpdateAction -- ^ 'puUpdateAction'
80+ -> Int64 -- ^ 'puRevisionNumber'
81+ -> Proposal -- ^ 'puPayload'
82+ -> Text -- ^ 'puProposalId'
83+ -> ProposalsUpdate
84+proposalsUpdate pPuUpdateAction_ pPuRevisionNumber_ pPuPayload_ pPuProposalId_ =
85+ ProposalsUpdate
86+ { _puUpdateAction = pPuUpdateAction_
87+ , _puRevisionNumber = _Coerce # pPuRevisionNumber_
88+ , _puPayload = pPuPayload_
89+ , _puProposalId = pPuProposalId_
90+ }
91+
92+-- | The proposed action to take on the proposal.
93+puUpdateAction :: Lens' ProposalsUpdate ProposalsUpdateUpdateAction
94+puUpdateAction
95+ = lens _puUpdateAction
96+ (\ s a -> s{_puUpdateAction = a})
97+
98+-- | The last known revision number to update. If the head revision in the
99+-- marketplace database has since changed, an error will be thrown. The
100+-- caller should then fetch the latest proposal at head revision and retry
101+-- the update at that revision.
102+puRevisionNumber :: Lens' ProposalsUpdate Int64
103+puRevisionNumber
104+ = lens _puRevisionNumber
105+ (\ s a -> s{_puRevisionNumber = a})
106+ . _Coerce
107+
108+-- | Multipart request metadata.
109+puPayload :: Lens' ProposalsUpdate Proposal
110+puPayload
111+ = lens _puPayload (\ s a -> s{_puPayload = a})
112+
113+-- | The proposal id to update.
114+puProposalId :: Lens' ProposalsUpdate Text
115+puProposalId
116+ = lens _puProposalId (\ s a -> s{_puProposalId = a})
117+
118+instance GoogleRequest ProposalsUpdate where
119+ type Rs ProposalsUpdate = Proposal
120+ requestClient ProposalsUpdate{..}
121+ = go _puProposalId _puRevisionNumber _puUpdateAction
122+ (Just AltJSON)
123+ _puPayload
124+ adExchangeBuyerService
125+ where go
126+ = buildClient
127+ (Proxy :: Proxy ProposalsUpdateResource)
128+ mempty
gogol-adexchange-buyer/gogol-adexchange-buyer.cabal+9−21
@@ -46,36 +46,17 @@ library
46 , Network.Google.Resource.AdExchangeBuyer.Budget.Get
46 , Network.Google.Resource.AdExchangeBuyer.Budget.Get
47 , Network.Google.Resource.AdExchangeBuyer.Budget.Patch
47 , Network.Google.Resource.AdExchangeBuyer.Budget.Patch
48 , Network.Google.Resource.AdExchangeBuyer.Budget.Update
48 , Network.Google.Resource.AdExchangeBuyer.Budget.Update
49− , Network.Google.Resource.AdExchangeBuyer.ClientAccess.Delete
49+ , Network.Google.Resource.AdExchangeBuyer.Creatives.AddDeal
50− , Network.Google.Resource.AdExchangeBuyer.ClientAccess.Get
51− , Network.Google.Resource.AdExchangeBuyer.ClientAccess.Insert
52− , Network.Google.Resource.AdExchangeBuyer.ClientAccess.List
53− , Network.Google.Resource.AdExchangeBuyer.ClientAccess.Patch
54− , Network.Google.Resource.AdExchangeBuyer.ClientAccess.Update
55 , Network.Google.Resource.AdExchangeBuyer.Creatives.Get
50 , Network.Google.Resource.AdExchangeBuyer.Creatives.Get
56 , Network.Google.Resource.AdExchangeBuyer.Creatives.Insert
51 , Network.Google.Resource.AdExchangeBuyer.Creatives.Insert
57 , Network.Google.Resource.AdExchangeBuyer.Creatives.List
52 , Network.Google.Resource.AdExchangeBuyer.Creatives.List
58− , Network.Google.Resource.AdExchangeBuyer.Deals.Get
53+ , Network.Google.Resource.AdExchangeBuyer.Creatives.RemoveDeal
59 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
54 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Delete
60 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Insert
55 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Insert
61 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.List
56 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.List
62 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Update
57 , Network.Google.Resource.AdExchangeBuyer.MarketplaceDeals.Update
63 , Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.Insert
58 , Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.Insert
64 , Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
59 , Network.Google.Resource.AdExchangeBuyer.MarketplaceNotes.List
65− , Network.Google.Resource.AdExchangeBuyer.MarketplaceOffers.Get
66− , Network.Google.Resource.AdExchangeBuyer.MarketplaceOffers.Search
67− , Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Get
68− , Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Insert
69− , Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Patch
70− , Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Search
71− , Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Update
72− , Network.Google.Resource.AdExchangeBuyer.NegotiationRounds.Insert
73− , Network.Google.Resource.AdExchangeBuyer.Negotiations.Get
74− , Network.Google.Resource.AdExchangeBuyer.Negotiations.Insert
75− , Network.Google.Resource.AdExchangeBuyer.Negotiations.List
76− , Network.Google.Resource.AdExchangeBuyer.Offers.Get
77− , Network.Google.Resource.AdExchangeBuyer.Offers.Insert
78− , Network.Google.Resource.AdExchangeBuyer.Offers.List
79 , Network.Google.Resource.AdExchangeBuyer.PerformanceReport.List
60 , Network.Google.Resource.AdExchangeBuyer.PerformanceReport.List
80 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Delete
61 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Delete
81 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Get
62 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Get
@@ -83,6 +64,13 @@ library
83 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.List
64 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.List
84 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Patch
65 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Patch
85 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Update
66 , Network.Google.Resource.AdExchangeBuyer.PretargetingConfig.Update
67+ , Network.Google.Resource.AdExchangeBuyer.Products.Get
68+ , Network.Google.Resource.AdExchangeBuyer.Products.Search
69+ , Network.Google.Resource.AdExchangeBuyer.Proposals.Get
70+ , Network.Google.Resource.AdExchangeBuyer.Proposals.Insert
71+ , Network.Google.Resource.AdExchangeBuyer.Proposals.Patch
72+ , Network.Google.Resource.AdExchangeBuyer.Proposals.Search
73+ , Network.Google.Resource.AdExchangeBuyer.Proposals.Update
86
74
87 other-modules:
75 other-modules:
88 Network.Google.AdExchangeBuyer.Types.Product
76 Network.Google.AdExchangeBuyer.Types.Product
gogol-adexchange-seller/gen/Network/Google/AdExchangeSeller/Types.hs+1−1
@@ -183,7 +183,7 @@ import Network.Google.AdExchangeSeller.Types.Sum
183import Network.Google.Prelude
183import Network.Google.Prelude
184
184
185-- | Default request referring to version 'v2.0' of the Ad Exchange Seller API. This contains the host and root path used as a starting point for constructing service requests.
185-- | Default request referring to version 'v2.0' of the Ad Exchange Seller API. This contains the host and root path used as a starting point for constructing service requests.
186−adExchangeSellerService :: Service
186+adExchangeSellerService :: ServiceConfig
187adExchangeSellerService
187adExchangeSellerService
188 = defaultService (ServiceId "adexchangeseller:v2.0")
188 = defaultService (ServiceId "adexchangeseller:v2.0")
189 "www.googleapis.com"
189 "www.googleapis.com"
gogol-admin-datatransfer/gen/Network/Google/DataTransfer.hs+1−2
@@ -13,8 +13,7 @@
13-- Stability : auto-generated
13-- Stability : auto-generated
14-- Portability : non-portable (GHC extensions)
14-- Portability : non-portable (GHC extensions)
15--
15--
16−-- Admin Data Transfer API lets you transfer user data from one user to
16+-- Transfers user data from one user to another.
17−-- another.
18--
17--
19-- /See:/ <https://developers.google.com/admin-sdk/data-transfer/ Admin Data Transfer API Reference>
18-- /See:/ <https://developers.google.com/admin-sdk/data-transfer/ Admin Data Transfer API Reference>
20module Network.Google.DataTransfer
19module Network.Google.DataTransfer
gogol-admin-datatransfer/gen/Network/Google/DataTransfer/Types.hs+1−1
@@ -78,7 +78,7 @@ import Network.Google.DataTransfer.Types.Sum
78import Network.Google.Prelude
78import Network.Google.Prelude
79
79
80-- | Default request referring to version 'datatransfer_v1' of the Admin Data Transfer API. This contains the host and root path used as a starting point for constructing service requests.
80-- | Default request referring to version 'datatransfer_v1' of the Admin Data Transfer API. This contains the host and root path used as a starting point for constructing service requests.
81−dataTransferService :: Service
81+dataTransferService :: ServiceConfig
82dataTransferService
82dataTransferService
83 = defaultService (ServiceId "admin:datatransfer_v1")
83 = defaultService (ServiceId "admin:datatransfer_v1")
84 "www.googleapis.com"
84 "www.googleapis.com"
gogol-admin-datatransfer/gen/Network/Google/Resource/DataTransfer/Applications/List.hs+3−3
@@ -50,7 +50,7 @@ type ApplicationsListResource =
50 "applications" :>
50 "applications" :>
51 QueryParam "customerId" Text :>
51 QueryParam "customerId" Text :>
52 QueryParam "pageToken" Text :>
52 QueryParam "pageToken" Text :>
53− QueryParam "maxResults" (Textual Word32) :>
53+ QueryParam "maxResults" (Textual Int32) :>
54 QueryParam "alt" AltJSON :>
54 QueryParam "alt" AltJSON :>
55 Get '[JSON] ApplicationsListResponse
55 Get '[JSON] ApplicationsListResponse
56
56
@@ -60,7 +60,7 @@ type ApplicationsListResource =
60data ApplicationsList = ApplicationsList
60data ApplicationsList = ApplicationsList
61 { _alCustomerId :: !(Maybe Text)
61 { _alCustomerId :: !(Maybe Text)
62 , _alPageToken :: !(Maybe Text)
62 , _alPageToken :: !(Maybe Text)
63− , _alMaxResults :: !(Maybe (Textual Word32))
63+ , _alMaxResults :: !(Maybe (Textual Int32))
64 } deriving (Eq,Show,Data,Typeable,Generic)
64 } deriving (Eq,Show,Data,Typeable,Generic)
65
65
66-- | Creates a value of 'ApplicationsList' with the minimum fields required to make a request.
66-- | Creates a value of 'ApplicationsList' with the minimum fields required to make a request.
@@ -92,7 +92,7 @@ alPageToken
92 = lens _alPageToken (\ s a -> s{_alPageToken = a})
92 = lens _alPageToken (\ s a -> s{_alPageToken = a})
93
93
94-- | Maximum number of results to return. Default is 100.
94-- | Maximum number of results to return. Default is 100.
95−alMaxResults :: Lens' ApplicationsList (Maybe Word32)
95+alMaxResults :: Lens' ApplicationsList (Maybe Int32)
96alMaxResults
96alMaxResults
97 = lens _alMaxResults (\ s a -> s{_alMaxResults = a})
97 = lens _alMaxResults (\ s a -> s{_alMaxResults = a})
98 . mapping _Coerce
98 . mapping _Coerce
gogol-admin-datatransfer/gogol-admin-datatransfer.cabal+1−2
@@ -14,8 +14,7 @@ cabal-version: >= 1.10
14extra-source-files: README.md
14extra-source-files: README.md
15
15
16description:
16description:
17− Admin Data Transfer API lets you transfer user data from one user to
17+ Transfers user data from one user to another.
18− another.
19 .
18 .
20 /Warning:/ This is an experimental prototype/preview release which is still
19 /Warning:/ This is an experimental prototype/preview release which is still
21 under exploratory development and not intended for public use, caveat emptor!
20 under exploratory development and not intended for public use, caveat emptor!
gogol-admin-directory/gen/Network/Google/Directory.hs+52−1
@@ -31,7 +31,9 @@ module Network.Google.Directory
31 , adminDirectoryUserScope
31 , adminDirectoryUserScope
32 , adminDirectoryGroupMemberReadonlyScope
32 , adminDirectoryGroupMemberReadonlyScope
33 , adminDirectoryUserAliasScope
33 , adminDirectoryUserAliasScope
34+ , adminDirectoryResourceCalendarScope
34 , adminDirectoryDeviceMobileActionScope
35 , adminDirectoryDeviceMobileActionScope
36+ , adminDirectoryResourceCalendarReadonlyScope
35 , adminDirectoryDomainReadonlyScope
37 , adminDirectoryDomainReadonlyScope
36 , adminDirectoryUserschemaScope
38 , adminDirectoryUserschemaScope
37 , adminDirectoryUserschemaReadonlyScope
39 , adminDirectoryUserschemaReadonlyScope
@@ -205,6 +207,24 @@ module Network.Google.Directory
205 -- ** directory.privileges.list
207 -- ** directory.privileges.list
206 , module Network.Google.Resource.Directory.Privileges.List
208 , module Network.Google.Resource.Directory.Privileges.List
207
209
210+ -- ** directory.resources.calendars.delete
211+ , module Network.Google.Resource.Directory.Resources.Calendars.Delete
212+
213+ -- ** directory.resources.calendars.get
214+ , module Network.Google.Resource.Directory.Resources.Calendars.Get
215+
216+ -- ** directory.resources.calendars.insert
217+ , module Network.Google.Resource.Directory.Resources.Calendars.Insert
218+
219+ -- ** directory.resources.calendars.list
220+ , module Network.Google.Resource.Directory.Resources.Calendars.List
221+
222+ -- ** directory.resources.calendars.patch
223+ , module Network.Google.Resource.Directory.Resources.Calendars.Patch
224+
225+ -- ** directory.resources.calendars.update
226+ , module Network.Google.Resource.Directory.Resources.Calendars.Update
227+
208 -- ** directory.roleAssignments.delete
228 -- ** directory.roleAssignments.delete
209 , module Network.Google.Resource.Directory.RoleAssignments.Delete
229 , module Network.Google.Resource.Directory.RoleAssignments.Delete
210
230
@@ -587,6 +607,17 @@ module Network.Google.Directory
587 , aliKind
607 , aliKind
588 , aliAliases
608 , aliAliases
589
609
610+ -- ** CalendarResource
611+ , CalendarResource
612+ , calendarResource
613+ , crEtags
614+ , crResourceId
615+ , crResourceType
616+ , crResourceName
617+ , crKind
618+ , crResourceEmail
619+ , crResourceDescription
620+
590 -- ** UserUndelete
621 -- ** UserUndelete
591 , UserUndelete
622 , UserUndelete
592 , userUndelete
623 , userUndelete
@@ -725,7 +756,7 @@ module Network.Google.Directory
725
756
726 -- ** Role
757 -- ** Role
727 , Role
758 , Role
728− , role
759+ , role'
729 , rrEtag
760 , rrEtag
730 , rrKind
761 , rrKind
731 , rrRoleName
762 , rrRoleName
@@ -922,6 +953,14 @@ module Network.Google.Directory
922 , domDomainName
953 , domDomainName
923 , domIsPrimary
954 , domIsPrimary
924
955
956+ -- ** CalendarResources
957+ , CalendarResources
958+ , calendarResources
959+ , crsEtag
960+ , crsNextPageToken
961+ , crsKind
962+ , crsItems
963+
925 -- ** ChromeosDevicesListOrderBy
964 -- ** ChromeosDevicesListOrderBy
926 , ChromeosDevicesListOrderBy (..)
965 , ChromeosDevicesListOrderBy (..)
927
966
@@ -1058,6 +1097,12 @@ import Network.Google.Resource.Directory.OrgUnits.List
1058import Network.Google.Resource.Directory.OrgUnits.Patch
1097import Network.Google.Resource.Directory.OrgUnits.Patch
1059import Network.Google.Resource.Directory.OrgUnits.Update
1098import Network.Google.Resource.Directory.OrgUnits.Update
1060import Network.Google.Resource.Directory.Privileges.List
1099import Network.Google.Resource.Directory.Privileges.List
1100+import Network.Google.Resource.Directory.Resources.Calendars.Delete
1101+import Network.Google.Resource.Directory.Resources.Calendars.Get
1102+import Network.Google.Resource.Directory.Resources.Calendars.Insert
1103+import Network.Google.Resource.Directory.Resources.Calendars.List
1104+import Network.Google.Resource.Directory.Resources.Calendars.Patch
1105+import Network.Google.Resource.Directory.Resources.Calendars.Update
1061import Network.Google.Resource.Directory.RoleAssignments.Delete
1106import Network.Google.Resource.Directory.RoleAssignments.Delete
1062import Network.Google.Resource.Directory.RoleAssignments.Get
1107import Network.Google.Resource.Directory.RoleAssignments.Get
1063import Network.Google.Resource.Directory.RoleAssignments.Insert
1108import Network.Google.Resource.Directory.RoleAssignments.Insert
@@ -1168,6 +1213,12 @@ type DirectoryAPI =
1168 :<|> MobileDevicesGetResource
1213 :<|> MobileDevicesGetResource
1169 :<|> MobileDevicesActionResource
1214 :<|> MobileDevicesActionResource
1170 :<|> MobileDevicesDeleteResource
1215 :<|> MobileDevicesDeleteResource
1216+ :<|> ResourcesCalendarsInsertResource
1217+ :<|> ResourcesCalendarsListResource
1218+ :<|> ResourcesCalendarsPatchResource
1219+ :<|> ResourcesCalendarsGetResource
1220+ :<|> ResourcesCalendarsDeleteResource
1221+ :<|> ResourcesCalendarsUpdateResource
1171 :<|> OrgUnitsInsertResource
1222 :<|> OrgUnitsInsertResource
1172 :<|> OrgUnitsListResource
1223 :<|> OrgUnitsListResource
1173 :<|> OrgUnitsPatchResource
1224 :<|> OrgUnitsPatchResource
gogol-admin-directory/gen/Network/Google/Directory/Types.hs+31−2
@@ -26,7 +26,9 @@ module Network.Google.Directory.Types
26 , adminDirectoryUserScope
26 , adminDirectoryUserScope
27 , adminDirectoryGroupMemberReadonlyScope
27 , adminDirectoryGroupMemberReadonlyScope
28 , adminDirectoryUserAliasScope
28 , adminDirectoryUserAliasScope
29+ , adminDirectoryResourceCalendarScope
29 , adminDirectoryDeviceMobileActionScope
30 , adminDirectoryDeviceMobileActionScope
31+ , adminDirectoryResourceCalendarReadonlyScope
30 , adminDirectoryDomainReadonlyScope
32 , adminDirectoryDomainReadonlyScope
31 , adminDirectoryUserschemaScope
33 , adminDirectoryUserschemaScope
32 , adminDirectoryUserschemaReadonlyScope
34 , adminDirectoryUserschemaReadonlyScope
@@ -308,6 +310,17 @@ module Network.Google.Directory.Types
308 , aliKind
310 , aliKind
309 , aliAliases
311 , aliAliases
310
312
313+ -- * CalendarResource
314+ , CalendarResource
315+ , calendarResource
316+ , crEtags
317+ , crResourceId
318+ , crResourceType
319+ , crResourceName
320+ , crKind
321+ , crResourceEmail
322+ , crResourceDescription
323+
311 -- * UserUndelete
324 -- * UserUndelete
312 , UserUndelete
325 , UserUndelete
313 , userUndelete
326 , userUndelete
@@ -446,7 +459,7 @@ module Network.Google.Directory.Types
446
459
447 -- * Role
460 -- * Role
448 , Role
461 , Role
449− , role
462+ , role'
450 , rrEtag
463 , rrEtag
451 , rrKind
464 , rrKind
452 , rrRoleName
465 , rrRoleName
@@ -643,6 +656,14 @@ module Network.Google.Directory.Types
643 , domDomainName
656 , domDomainName
644 , domIsPrimary
657 , domIsPrimary
645
658
659+ -- * CalendarResources
660+ , CalendarResources
661+ , calendarResources
662+ , crsEtag
663+ , crsNextPageToken
664+ , crsKind
665+ , crsItems
666+
646 -- * ChromeosDevicesListOrderBy
667 -- * ChromeosDevicesListOrderBy
647 , ChromeosDevicesListOrderBy (..)
668 , ChromeosDevicesListOrderBy (..)
648
669
@@ -732,7 +753,7 @@ import Network.Google.Directory.Types.Sum
732import Network.Google.Prelude
753import Network.Google.Prelude
733
754
734-- | Default request referring to version 'directory_v1' of the Admin Directory API. This contains the host and root path used as a starting point for constructing service requests.
755-- | Default request referring to version 'directory_v1' of the Admin Directory API. This contains the host and root path used as a starting point for constructing service requests.
735−directoryService :: Service
756+directoryService :: ServiceConfig
736directoryService
757directoryService
737 = defaultService (ServiceId "admin:directory_v1")
758 = defaultService (ServiceId "admin:directory_v1")
738 "www.googleapis.com"
759 "www.googleapis.com"
@@ -765,10 +786,18 @@ adminDirectoryGroupMemberReadonlyScope = "https://www.googleapis.com/auth/admin.
765adminDirectoryUserAliasScope :: OAuthScope
786adminDirectoryUserAliasScope :: OAuthScope
766adminDirectoryUserAliasScope = "https://www.googleapis.com/auth/admin.directory.user.alias";
787adminDirectoryUserAliasScope = "https://www.googleapis.com/auth/admin.directory.user.alias";
767
788
789+-- | View and manage the provisioning of calendar resources on your domain
790+adminDirectoryResourceCalendarScope :: OAuthScope
791+adminDirectoryResourceCalendarScope = "https://www.googleapis.com/auth/admin.directory.resource.calendar";
792+
768-- | Manage your mobile devices by performing administrative tasks
793-- | Manage your mobile devices by performing administrative tasks
769adminDirectoryDeviceMobileActionScope :: OAuthScope
794adminDirectoryDeviceMobileActionScope :: OAuthScope
770adminDirectoryDeviceMobileActionScope = "https://www.googleapis.com/auth/admin.directory.device.mobile.action";
795adminDirectoryDeviceMobileActionScope = "https://www.googleapis.com/auth/admin.directory.device.mobile.action";
771
796
797+-- | View calendar resources on your domain
798+adminDirectoryResourceCalendarReadonlyScope :: OAuthScope
799+adminDirectoryResourceCalendarReadonlyScope = "https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly";
800+
772-- | View domains related to your customers
801-- | View domains related to your customers
773adminDirectoryDomainReadonlyScope :: OAuthScope
802adminDirectoryDomainReadonlyScope :: OAuthScope
774adminDirectoryDomainReadonlyScope = "https://www.googleapis.com/auth/admin.directory.domain.readonly";
803adminDirectoryDomainReadonlyScope = "https://www.googleapis.com/auth/admin.directory.domain.readonly";
gogol-admin-directory/gen/Network/Google/Directory/Types/Product.hs+187−3
@@ -2198,6 +2198,116 @@ instance ToJSON Aliases where
2198 [("etag" .=) <$> _aliEtag, Just ("kind" .= _aliKind),
2198 [("etag" .=) <$> _aliEtag, Just ("kind" .= _aliKind),
2199 ("aliases" .=) <$> _aliAliases])
2199 ("aliases" .=) <$> _aliAliases])
2200
2200
2201+-- | JSON template for Calendar Resource object in Directory API.
2202+--
2203+-- /See:/ 'calendarResource' smart constructor.
2204+data CalendarResource = CalendarResource
2205+ { _crEtags :: !(Maybe Text)
2206+ , _crResourceId :: !(Maybe Text)
2207+ , _crResourceType :: !(Maybe Text)
2208+ , _crResourceName :: !(Maybe Text)
2209+ , _crKind :: !Text
2210+ , _crResourceEmail :: !(Maybe Text)
2211+ , _crResourceDescription :: !(Maybe Text)
2212+ } deriving (Eq,Show,Data,Typeable,Generic)
2213+
2214+-- | Creates a value of 'CalendarResource' with the minimum fields required to make a request.
2215+--
2216+-- Use one of the following lenses to modify other fields as desired:
2217+--
2218+-- * 'crEtags'
2219+--
2220+-- * 'crResourceId'
2221+--
2222+-- * 'crResourceType'
2223+--
2224+-- * 'crResourceName'
2225+--
2226+-- * 'crKind'
2227+--
2228+-- * 'crResourceEmail'
2229+--
2230+-- * 'crResourceDescription'
2231+calendarResource
2232+ :: CalendarResource
2233+calendarResource =
2234+ CalendarResource
2235+ { _crEtags = Nothing
2236+ , _crResourceId = Nothing
2237+ , _crResourceType = Nothing
2238+ , _crResourceName = Nothing
2239+ , _crKind = "admin#directory#resources#calendars#CalendarResource"
2240+ , _crResourceEmail = Nothing
2241+ , _crResourceDescription = Nothing
2242+ }
2243+
2244+-- | ETag of the resource.
2245+crEtags :: Lens' CalendarResource (Maybe Text)
2246+crEtags = lens _crEtags (\ s a -> s{_crEtags = a})
2247+
2248+-- | The unique ID for the calendar resource.
2249+crResourceId :: Lens' CalendarResource (Maybe Text)
2250+crResourceId
2251+ = lens _crResourceId (\ s a -> s{_crResourceId = a})
2252+
2253+-- | The type of the calendar resource. Used for grouping resources in the
2254+-- calendar user interface.
2255+crResourceType :: Lens' CalendarResource (Maybe Text)
2256+crResourceType
2257+ = lens _crResourceType
2258+ (\ s a -> s{_crResourceType = a})
2259+
2260+-- | The name of the calendar resource. For example, Training Room 1A
2261+crResourceName :: Lens' CalendarResource (Maybe Text)
2262+crResourceName
2263+ = lens _crResourceName
2264+ (\ s a -> s{_crResourceName = a})
2265+
2266+-- | The type of the resource. For calendar resources, the value is
2267+-- admin#directory#resources#calendars#CalendarResource.
2268+crKind :: Lens' CalendarResource Text
2269+crKind = lens _crKind (\ s a -> s{_crKind = a})
2270+
2271+-- | The read-only email ID for the calendar resource. Generated as part of
2272+-- creating a new calendar resource.
2273+crResourceEmail :: Lens' CalendarResource (Maybe Text)
2274+crResourceEmail
2275+ = lens _crResourceEmail
2276+ (\ s a -> s{_crResourceEmail = a})
2277+
2278+-- | The brief description of the calendar resource.
2279+crResourceDescription :: Lens' CalendarResource (Maybe Text)
2280+crResourceDescription
2281+ = lens _crResourceDescription
2282+ (\ s a -> s{_crResourceDescription = a})
2283+
2284+instance FromJSON CalendarResource where
2285+ parseJSON
2286+ = withObject "CalendarResource"
2287+ (\ o ->
2288+ CalendarResource <$>
2289+ (o .:? "etags") <*> (o .:? "resourceId") <*>
2290+ (o .:? "resourceType")
2291+ <*> (o .:? "resourceName")
2292+ <*>
2293+ (o .:? "kind" .!=
2294+ "admin#directory#resources#calendars#CalendarResource")
2295+ <*> (o .:? "resourceEmail")
2296+ <*> (o .:? "resourceDescription"))
2297+
2298+instance ToJSON CalendarResource where
2299+ toJSON CalendarResource{..}
2300+ = object
2301+ (catMaybes
2302+ [("etags" .=) <$> _crEtags,
2303+ ("resourceId" .=) <$> _crResourceId,
2304+ ("resourceType" .=) <$> _crResourceType,
2305+ ("resourceName" .=) <$> _crResourceName,
2306+ Just ("kind" .= _crKind),
2307+ ("resourceEmail" .=) <$> _crResourceEmail,
2308+ ("resourceDescription" .=) <$>
2309+ _crResourceDescription])
2310+
2201-- | JSON request template to undelete a user in Directory API.
2311-- | JSON request template to undelete a user in Directory API.
2202--
2312--
2203-- /See:/ 'userUndelete' smart constructor.
2313-- /See:/ 'userUndelete' smart constructor.
@@ -3400,7 +3510,7 @@ instance ToJSON User where
3400
3510
3401-- | JSON template for role resource in Directory API.
3511-- | JSON template for role resource in Directory API.
3402--
3512--
3403−-- /See:/ 'role' smart constructor.
3513+-- /See:/ 'role'' smart constructor.
3404data Role = Role
3514data Role = Role
3405 { _rrEtag :: !(Maybe Text)
3515 { _rrEtag :: !(Maybe Text)
3406 , _rrKind :: !Text
3516 , _rrKind :: !Text
@@ -3431,9 +3541,9 @@ data Role = Role
3431-- * 'rrIsSuperAdminRole'
3541-- * 'rrIsSuperAdminRole'
3432--
3542--
3433-- * 'rrRolePrivileges'
3543-- * 'rrRolePrivileges'
3434−role
3544+role'
3435 :: Role
3545 :: Role
3436−role =
3546+role' =
3437 Role
3547 Role
3438 { _rrEtag = Nothing
3548 { _rrEtag = Nothing
3439 , _rrKind = "admin#directory#role"
3549 , _rrKind = "admin#directory#role"
@@ -5078,6 +5188,80 @@ instance ToJSON Domains where
5078 ("domainName" .=) <$> _domDomainName,
5188 ("domainName" .=) <$> _domDomainName,
5079 ("isPrimary" .=) <$> _domIsPrimary])
5189 ("isPrimary" .=) <$> _domIsPrimary])
5080
5190
5191+-- | JSON template for Calendar Resource List Response object in Directory
5192+-- API.
5193+--
5194+-- /See:/ 'calendarResources' smart constructor.
5195+data CalendarResources = CalendarResources
5196+ { _crsEtag :: !(Maybe Text)
5197+ , _crsNextPageToken :: !(Maybe Text)
5198+ , _crsKind :: !Text
5199+ , _crsItems :: !(Maybe [CalendarResource])
5200+ } deriving (Eq,Show,Data,Typeable,Generic)
5201+
5202+-- | Creates a value of 'CalendarResources' with the minimum fields required to make a request.
5203+--
5204+-- Use one of the following lenses to modify other fields as desired:
5205+--
5206+-- * 'crsEtag'
5207+--
5208+-- * 'crsNextPageToken'
5209+--
5210+-- * 'crsKind'
5211+--
5212+-- * 'crsItems'
5213+calendarResources
5214+ :: CalendarResources
5215+calendarResources =
5216+ CalendarResources
5217+ { _crsEtag = Nothing
5218+ , _crsNextPageToken = Nothing
5219+ , _crsKind = "admin#directory#resources#calendars#calendarResourcesList"
5220+ , _crsItems = Nothing
5221+ }
5222+
5223+-- | ETag of the resource.
5224+crsEtag :: Lens' CalendarResources (Maybe Text)
5225+crsEtag = lens _crsEtag (\ s a -> s{_crsEtag = a})
5226+
5227+-- | The continuation token, used to page through large result sets. Provide
5228+-- this value in a subsequent request to return the next page of results.
5229+crsNextPageToken :: Lens' CalendarResources (Maybe Text)
5230+crsNextPageToken
5231+ = lens _crsNextPageToken
5232+ (\ s a -> s{_crsNextPageToken = a})
5233+
5234+-- | Identifies this as a collection of CalendarResources. This is always
5235+-- admin#directory#resources#calendars#calendarResourcesList.
5236+crsKind :: Lens' CalendarResources Text
5237+crsKind = lens _crsKind (\ s a -> s{_crsKind = a})
5238+
5239+-- | The CalendarResources in this page of results.
5240+crsItems :: Lens' CalendarResources [CalendarResource]
5241+crsItems
5242+ = lens _crsItems (\ s a -> s{_crsItems = a}) .
5243+ _Default
5244+ . _Coerce
5245+
5246+instance FromJSON CalendarResources where
5247+ parseJSON
5248+ = withObject "CalendarResources"
5249+ (\ o ->
5250+ CalendarResources <$>
5251+ (o .:? "etag") <*> (o .:? "nextPageToken") <*>
5252+ (o .:? "kind" .!=
5253+ "admin#directory#resources#calendars#calendarResourcesList")
5254+ <*> (o .:? "items" .!= mempty))
5255+
5256+instance ToJSON CalendarResources where
5257+ toJSON CalendarResources{..}
5258+ = object
5259+ (catMaybes
5260+ [("etag" .=) <$> _crsEtag,
5261+ ("nextPageToken" .=) <$> _crsNextPageToken,
5262+ Just ("kind" .= _crsKind),
5263+ ("items" .=) <$> _crsItems])
5264+
5081-- | Template for notifications list response.
5265-- | Template for notifications list response.
5082--
5266--
5083-- /See:/ 'notifications' smart constructor.
5267-- /See:/ 'notifications' smart constructor.
gogol-admin-directory/gen/Network/Google/Resource/Directory/Resources/Calendars/Delete.hsnew file+103
@@ -0,0 +1,103 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Directory.Resources.Calendars.Delete
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Deletes a calendar resource.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @directory.resources.calendars.delete@.
26+module Network.Google.Resource.Directory.Resources.Calendars.Delete
27+ (
28+ -- * REST Resource
29+ ResourcesCalendarsDeleteResource
30+
31+ -- * Creating a Request
32+ , resourcesCalendarsDelete
33+ , ResourcesCalendarsDelete
34+
35+ -- * Request Lenses
36+ , rcdCustomer
37+ , rcdCalendarResourceId
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @directory.resources.calendars.delete@ method which the
44+-- 'ResourcesCalendarsDelete' request conforms to.
45+type ResourcesCalendarsDeleteResource =
46+ "admin" :>
47+ "directory" :>
48+ "v1" :>
49+ "customer" :>
50+ Capture "customer" Text :>
51+ "resources" :>
52+ "calendars" :>
53+ Capture "calendarResourceId" Text :>
54+ QueryParam "alt" AltJSON :> Delete '[JSON] ()
55+
56+-- | Deletes a calendar resource.
57+--
58+-- /See:/ 'resourcesCalendarsDelete' smart constructor.
59+data ResourcesCalendarsDelete = ResourcesCalendarsDelete
60+ { _rcdCustomer :: !Text
61+ , _rcdCalendarResourceId :: !Text
62+ } deriving (Eq,Show,Data,Typeable,Generic)
63+
64+-- | Creates a value of 'ResourcesCalendarsDelete' with the minimum fields required to make a request.
65+--
66+-- Use one of the following lenses to modify other fields as desired:
67+--
68+-- * 'rcdCustomer'
69+--
70+-- * 'rcdCalendarResourceId'
71+resourcesCalendarsDelete
72+ :: Text -- ^ 'rcdCustomer'
73+ -> Text -- ^ 'rcdCalendarResourceId'
74+ -> ResourcesCalendarsDelete
75+resourcesCalendarsDelete pRcdCustomer_ pRcdCalendarResourceId_ =
76+ ResourcesCalendarsDelete
77+ { _rcdCustomer = pRcdCustomer_
78+ , _rcdCalendarResourceId = pRcdCalendarResourceId_
79+ }
80+
81+-- | The unique ID for the customer\'s Google account. As an account
82+-- administrator, you can also use the my_customer alias to represent your
83+-- account\'s customer ID.
84+rcdCustomer :: Lens' ResourcesCalendarsDelete Text
85+rcdCustomer
86+ = lens _rcdCustomer (\ s a -> s{_rcdCustomer = a})
87+
88+-- | The unique ID of the calendar resource to delete.
89+rcdCalendarResourceId :: Lens' ResourcesCalendarsDelete Text
90+rcdCalendarResourceId
91+ = lens _rcdCalendarResourceId
92+ (\ s a -> s{_rcdCalendarResourceId = a})
93+
94+instance GoogleRequest ResourcesCalendarsDelete where
95+ type Rs ResourcesCalendarsDelete = ()
96+ requestClient ResourcesCalendarsDelete{..}
97+ = go _rcdCustomer _rcdCalendarResourceId
98+ (Just AltJSON)
99+ directoryService
100+ where go
101+ = buildClient
102+ (Proxy :: Proxy ResourcesCalendarsDeleteResource)
103+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Resources/Calendars/Get.hsnew file+104
@@ -0,0 +1,104 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Directory.Resources.Calendars.Get
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Retrieves a calendar resource.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @directory.resources.calendars.get@.
26+module Network.Google.Resource.Directory.Resources.Calendars.Get
27+ (
28+ -- * REST Resource
29+ ResourcesCalendarsGetResource
30+
31+ -- * Creating a Request
32+ , resourcesCalendarsGet
33+ , ResourcesCalendarsGet
34+
35+ -- * Request Lenses
36+ , rcgCustomer
37+ , rcgCalendarResourceId
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @directory.resources.calendars.get@ method which the
44+-- 'ResourcesCalendarsGet' request conforms to.
45+type ResourcesCalendarsGetResource =
46+ "admin" :>
47+ "directory" :>
48+ "v1" :>
49+ "customer" :>
50+ Capture "customer" Text :>
51+ "resources" :>
52+ "calendars" :>
53+ Capture "calendarResourceId" Text :>
54+ QueryParam "alt" AltJSON :>
55+ Get '[JSON] CalendarResource
56+
57+-- | Retrieves a calendar resource.
58+--
59+-- /See:/ 'resourcesCalendarsGet' smart constructor.
60+data ResourcesCalendarsGet = ResourcesCalendarsGet
61+ { _rcgCustomer :: !Text
62+ , _rcgCalendarResourceId :: !Text
63+ } deriving (Eq,Show,Data,Typeable,Generic)
64+
65+-- | Creates a value of 'ResourcesCalendarsGet' with the minimum fields required to make a request.
66+--
67+-- Use one of the following lenses to modify other fields as desired:
68+--
69+-- * 'rcgCustomer'
70+--
71+-- * 'rcgCalendarResourceId'
72+resourcesCalendarsGet
73+ :: Text -- ^ 'rcgCustomer'
74+ -> Text -- ^ 'rcgCalendarResourceId'
75+ -> ResourcesCalendarsGet
76+resourcesCalendarsGet pRcgCustomer_ pRcgCalendarResourceId_ =
77+ ResourcesCalendarsGet
78+ { _rcgCustomer = pRcgCustomer_
79+ , _rcgCalendarResourceId = pRcgCalendarResourceId_
80+ }
81+
82+-- | The unique ID for the customer\'s Google account. As an account
83+-- administrator, you can also use the my_customer alias to represent your
84+-- account\'s customer ID.
85+rcgCustomer :: Lens' ResourcesCalendarsGet Text
86+rcgCustomer
87+ = lens _rcgCustomer (\ s a -> s{_rcgCustomer = a})
88+
89+-- | The unique ID of the calendar resource to retrieve.
90+rcgCalendarResourceId :: Lens' ResourcesCalendarsGet Text
91+rcgCalendarResourceId
92+ = lens _rcgCalendarResourceId
93+ (\ s a -> s{_rcgCalendarResourceId = a})
94+
95+instance GoogleRequest ResourcesCalendarsGet where
96+ type Rs ResourcesCalendarsGet = CalendarResource
97+ requestClient ResourcesCalendarsGet{..}
98+ = go _rcgCustomer _rcgCalendarResourceId
99+ (Just AltJSON)
100+ directoryService
101+ where go
102+ = buildClient
103+ (Proxy :: Proxy ResourcesCalendarsGetResource)
104+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Resources/Calendars/Insert.hsnew file+102
@@ -0,0 +1,102 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Directory.Resources.Calendars.Insert
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Inserts a calendar resource.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @directory.resources.calendars.insert@.
26+module Network.Google.Resource.Directory.Resources.Calendars.Insert
27+ (
28+ -- * REST Resource
29+ ResourcesCalendarsInsertResource
30+
31+ -- * Creating a Request
32+ , resourcesCalendarsInsert
33+ , ResourcesCalendarsInsert
34+
35+ -- * Request Lenses
36+ , rciPayload
37+ , rciCustomer
38+ ) where
39+
40+import Network.Google.Directory.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @directory.resources.calendars.insert@ method which the
44+-- 'ResourcesCalendarsInsert' request conforms to.
45+type ResourcesCalendarsInsertResource =
46+ "admin" :>
47+ "directory" :>
48+ "v1" :>
49+ "customer" :>
50+ Capture "customer" Text :>
51+ "resources" :>
52+ "calendars" :>
53+ QueryParam "alt" AltJSON :>
54+ ReqBody '[JSON] CalendarResource :>
55+ Post '[JSON] CalendarResource
56+
57+-- | Inserts a calendar resource.
58+--
59+-- /See:/ 'resourcesCalendarsInsert' smart constructor.
60+data ResourcesCalendarsInsert = ResourcesCalendarsInsert
61+ { _rciPayload :: !CalendarResource
62+ , _rciCustomer :: !Text
63+ } deriving (Eq,Show,Data,Typeable,Generic)
64+
65+-- | Creates a value of 'ResourcesCalendarsInsert' with the minimum fields required to make a request.
66+--
67+-- Use one of the following lenses to modify other fields as desired:
68+--
69+-- * 'rciPayload'
70+--
71+-- * 'rciCustomer'
72+resourcesCalendarsInsert
73+ :: CalendarResource -- ^ 'rciPayload'
74+ -> Text -- ^ 'rciCustomer'
75+ -> ResourcesCalendarsInsert
76+resourcesCalendarsInsert pRciPayload_ pRciCustomer_ =
77+ ResourcesCalendarsInsert
78+ { _rciPayload = pRciPayload_
79+ , _rciCustomer = pRciCustomer_
80+ }
81+
82+-- | Multipart request metadata.
83+rciPayload :: Lens' ResourcesCalendarsInsert CalendarResource
84+rciPayload
85+ = lens _rciPayload (\ s a -> s{_rciPayload = a})
86+
87+-- | The unique ID for the customer\'s Google account. As an account
88+-- administrator, you can also use the my_customer alias to represent your
89+-- account\'s customer ID.
90+rciCustomer :: Lens' ResourcesCalendarsInsert Text
91+rciCustomer
92+ = lens _rciCustomer (\ s a -> s{_rciCustomer = a})
93+
94+instance GoogleRequest ResourcesCalendarsInsert where
95+ type Rs ResourcesCalendarsInsert = CalendarResource
96+ requestClient ResourcesCalendarsInsert{..}
97+ = go _rciCustomer (Just AltJSON) _rciPayload
98+ directoryService
99+ where go
100+ = buildClient
101+ (Proxy :: Proxy ResourcesCalendarsInsertResource)
102+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Resources/Calendars/List.hsnew file+115
@@ -0,0 +1,115 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Directory.Resources.Calendars.List
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Retrieves a list of calendar resources for an account.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @directory.resources.calendars.list@.
26+module Network.Google.Resource.Directory.Resources.Calendars.List
27+ (
28+ -- * REST Resource
29+ ResourcesCalendarsListResource
30+
31+ -- * Creating a Request
32+ , resourcesCalendarsList
33+ , ResourcesCalendarsList
34+
35+ -- * Request Lenses
36+ , rclCustomer
37+ , rclPageToken
38+ , rclMaxResults
39+ ) where
40+
41+import Network.Google.Directory.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @directory.resources.calendars.list@ method which the
45+-- 'ResourcesCalendarsList' request conforms to.
46+type ResourcesCalendarsListResource =
47+ "admin" :>
48+ "directory" :>
49+ "v1" :>
50+ "customer" :>
51+ Capture "customer" Text :>
52+ "resources" :>
53+ "calendars" :>
54+ QueryParam "pageToken" Text :>
55+ QueryParam "maxResults" (Textual Int32) :>
56+ QueryParam "alt" AltJSON :>
57+ Get '[JSON] CalendarResources
58+
59+-- | Retrieves a list of calendar resources for an account.
60+--
61+-- /See:/ 'resourcesCalendarsList' smart constructor.
62+data ResourcesCalendarsList = ResourcesCalendarsList
63+ { _rclCustomer :: !Text
64+ , _rclPageToken :: !(Maybe Text)
65+ , _rclMaxResults :: !(Maybe (Textual Int32))
66+ } deriving (Eq,Show,Data,Typeable,Generic)
67+
68+-- | Creates a value of 'ResourcesCalendarsList' with the minimum fields required to make a request.
69+--
70+-- Use one of the following lenses to modify other fields as desired:
71+--
72+-- * 'rclCustomer'
73+--
74+-- * 'rclPageToken'
75+--
76+-- * 'rclMaxResults'
77+resourcesCalendarsList
78+ :: Text -- ^ 'rclCustomer'
79+ -> ResourcesCalendarsList
80+resourcesCalendarsList pRclCustomer_ =
81+ ResourcesCalendarsList
82+ { _rclCustomer = pRclCustomer_
83+ , _rclPageToken = Nothing
84+ , _rclMaxResults = Nothing
85+ }
86+
87+-- | The unique ID for the customer\'s Google account. As an account
88+-- administrator, you can also use the my_customer alias to represent your
89+-- account\'s customer ID.
90+rclCustomer :: Lens' ResourcesCalendarsList Text
91+rclCustomer
92+ = lens _rclCustomer (\ s a -> s{_rclCustomer = a})
93+
94+-- | Token to specify the next page in the list.
95+rclPageToken :: Lens' ResourcesCalendarsList (Maybe Text)
96+rclPageToken
97+ = lens _rclPageToken (\ s a -> s{_rclPageToken = a})
98+
99+-- | Maximum number of results to return.
100+rclMaxResults :: Lens' ResourcesCalendarsList (Maybe Int32)
101+rclMaxResults
102+ = lens _rclMaxResults
103+ (\ s a -> s{_rclMaxResults = a})
104+ . mapping _Coerce
105+
106+instance GoogleRequest ResourcesCalendarsList where
107+ type Rs ResourcesCalendarsList = CalendarResources
108+ requestClient ResourcesCalendarsList{..}
109+ = go _rclCustomer _rclPageToken _rclMaxResults
110+ (Just AltJSON)
111+ directoryService
112+ where go
113+ = buildClient
114+ (Proxy :: Proxy ResourcesCalendarsListResource)
115+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Resources/Calendars/Patch.hsnew file+117
@@ -0,0 +1,117 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Directory.Resources.Calendars.Patch
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Updates a calendar resource. This method supports patch semantics.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @directory.resources.calendars.patch@.
26+module Network.Google.Resource.Directory.Resources.Calendars.Patch
27+ (
28+ -- * REST Resource
29+ ResourcesCalendarsPatchResource
30+
31+ -- * Creating a Request
32+ , resourcesCalendarsPatch
33+ , ResourcesCalendarsPatch
34+
35+ -- * Request Lenses
36+ , rcpPayload
37+ , rcpCustomer
38+ , rcpCalendarResourceId
39+ ) where
40+
41+import Network.Google.Directory.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @directory.resources.calendars.patch@ method which the
45+-- 'ResourcesCalendarsPatch' request conforms to.
46+type ResourcesCalendarsPatchResource =
47+ "admin" :>
48+ "directory" :>
49+ "v1" :>
50+ "customer" :>
51+ Capture "customer" Text :>
52+ "resources" :>
53+ "calendars" :>
54+ Capture "calendarResourceId" Text :>
55+ QueryParam "alt" AltJSON :>
56+ ReqBody '[JSON] CalendarResource :>
57+ Patch '[JSON] CalendarResource
58+
59+-- | Updates a calendar resource. This method supports patch semantics.
60+--
61+-- /See:/ 'resourcesCalendarsPatch' smart constructor.
62+data ResourcesCalendarsPatch = ResourcesCalendarsPatch
63+ { _rcpPayload :: !CalendarResource
64+ , _rcpCustomer :: !Text
65+ , _rcpCalendarResourceId :: !Text
66+ } deriving (Eq,Show,Data,Typeable,Generic)
67+
68+-- | Creates a value of 'ResourcesCalendarsPatch' with the minimum fields required to make a request.
69+--
70+-- Use one of the following lenses to modify other fields as desired:
71+--
72+-- * 'rcpPayload'
73+--
74+-- * 'rcpCustomer'
75+--
76+-- * 'rcpCalendarResourceId'
77+resourcesCalendarsPatch
78+ :: CalendarResource -- ^ 'rcpPayload'
79+ -> Text -- ^ 'rcpCustomer'
80+ -> Text -- ^ 'rcpCalendarResourceId'
81+ -> ResourcesCalendarsPatch
82+resourcesCalendarsPatch pRcpPayload_ pRcpCustomer_ pRcpCalendarResourceId_ =
83+ ResourcesCalendarsPatch
84+ { _rcpPayload = pRcpPayload_
85+ , _rcpCustomer = pRcpCustomer_
86+ , _rcpCalendarResourceId = pRcpCalendarResourceId_
87+ }
88+
89+-- | Multipart request metadata.
90+rcpPayload :: Lens' ResourcesCalendarsPatch CalendarResource
91+rcpPayload
92+ = lens _rcpPayload (\ s a -> s{_rcpPayload = a})
93+
94+-- | The unique ID for the customer\'s Google account. As an account
95+-- administrator, you can also use the my_customer alias to represent your
96+-- account\'s customer ID.
97+rcpCustomer :: Lens' ResourcesCalendarsPatch Text
98+rcpCustomer
99+ = lens _rcpCustomer (\ s a -> s{_rcpCustomer = a})
100+
101+-- | The unique ID of the calendar resource to update.
102+rcpCalendarResourceId :: Lens' ResourcesCalendarsPatch Text
103+rcpCalendarResourceId
104+ = lens _rcpCalendarResourceId
105+ (\ s a -> s{_rcpCalendarResourceId = a})
106+
107+instance GoogleRequest ResourcesCalendarsPatch where
108+ type Rs ResourcesCalendarsPatch = CalendarResource
109+ requestClient ResourcesCalendarsPatch{..}
110+ = go _rcpCustomer _rcpCalendarResourceId
111+ (Just AltJSON)
112+ _rcpPayload
113+ directoryService
114+ where go
115+ = buildClient
116+ (Proxy :: Proxy ResourcesCalendarsPatchResource)
117+ mempty
gogol-admin-directory/gen/Network/Google/Resource/Directory/Resources/Calendars/Update.hsnew file+117
@@ -0,0 +1,117 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Directory.Resources.Calendars.Update
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Updates a calendar resource.
24+--
25+-- /See:/ <https://developers.google.com/admin-sdk/directory/ Admin Directory API Reference> for @directory.resources.calendars.update@.
26+module Network.Google.Resource.Directory.Resources.Calendars.Update
27+ (
28+ -- * REST Resource
29+ ResourcesCalendarsUpdateResource
30+
31+ -- * Creating a Request
32+ , resourcesCalendarsUpdate
33+ , ResourcesCalendarsUpdate
34+
35+ -- * Request Lenses
36+ , rcuPayload
37+ , rcuCustomer
38+ , rcuCalendarResourceId
39+ ) where
40+
41+import Network.Google.Directory.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @directory.resources.calendars.update@ method which the
45+-- 'ResourcesCalendarsUpdate' request conforms to.
46+type ResourcesCalendarsUpdateResource =
47+ "admin" :>
48+ "directory" :>
49+ "v1" :>
50+ "customer" :>
51+ Capture "customer" Text :>
52+ "resources" :>
53+ "calendars" :>
54+ Capture "calendarResourceId" Text :>
55+ QueryParam "alt" AltJSON :>
56+ ReqBody '[JSON] CalendarResource :>
57+ Put '[JSON] CalendarResource
58+
59+-- | Updates a calendar resource.
60+--
61+-- /See:/ 'resourcesCalendarsUpdate' smart constructor.
62+data ResourcesCalendarsUpdate = ResourcesCalendarsUpdate
63+ { _rcuPayload :: !CalendarResource
64+ , _rcuCustomer :: !Text
65+ , _rcuCalendarResourceId :: !Text
66+ } deriving (Eq,Show,Data,Typeable,Generic)
67+
68+-- | Creates a value of 'ResourcesCalendarsUpdate' with the minimum fields required to make a request.
69+--
70+-- Use one of the following lenses to modify other fields as desired:
71+--
72+-- * 'rcuPayload'
73+--
74+-- * 'rcuCustomer'
75+--
76+-- * 'rcuCalendarResourceId'
77+resourcesCalendarsUpdate
78+ :: CalendarResource -- ^ 'rcuPayload'
79+ -> Text -- ^ 'rcuCustomer'
80+ -> Text -- ^ 'rcuCalendarResourceId'
81+ -> ResourcesCalendarsUpdate
82+resourcesCalendarsUpdate pRcuPayload_ pRcuCustomer_ pRcuCalendarResourceId_ =
83+ ResourcesCalendarsUpdate
84+ { _rcuPayload = pRcuPayload_
85+ , _rcuCustomer = pRcuCustomer_
86+ , _rcuCalendarResourceId = pRcuCalendarResourceId_
87+ }
88+
89+-- | Multipart request metadata.
90+rcuPayload :: Lens' ResourcesCalendarsUpdate CalendarResource
91+rcuPayload
92+ = lens _rcuPayload (\ s a -> s{_rcuPayload = a})
93+
94+-- | The unique ID for the customer\'s Google account. As an account
95+-- administrator, you can also use the my_customer alias to represent your
96+-- account\'s customer ID.
97+rcuCustomer :: Lens' ResourcesCalendarsUpdate Text
98+rcuCustomer
99+ = lens _rcuCustomer (\ s a -> s{_rcuCustomer = a})
100+
101+-- | The unique ID of the calendar resource to update.
102+rcuCalendarResourceId :: Lens' ResourcesCalendarsUpdate Text
103+rcuCalendarResourceId
104+ = lens _rcuCalendarResourceId
105+ (\ s a -> s{_rcuCalendarResourceId = a})
106+
107+instance GoogleRequest ResourcesCalendarsUpdate where
108+ type Rs ResourcesCalendarsUpdate = CalendarResource
109+ requestClient ResourcesCalendarsUpdate{..}
110+ = go _rcuCustomer _rcuCalendarResourceId
111+ (Just AltJSON)
112+ _rcuPayload
113+ directoryService
114+ where go
115+ = buildClient
116+ (Proxy :: Proxy ResourcesCalendarsUpdateResource)
117+ mempty
gogol-admin-directory/gogol-admin-directory.cabal+6
@@ -87,6 +87,12 @@ library
87 , Network.Google.Resource.Directory.OrgUnits.Patch
87 , Network.Google.Resource.Directory.OrgUnits.Patch
88 , Network.Google.Resource.Directory.OrgUnits.Update
88 , Network.Google.Resource.Directory.OrgUnits.Update
89 , Network.Google.Resource.Directory.Privileges.List
89 , Network.Google.Resource.Directory.Privileges.List
90+ , Network.Google.Resource.Directory.Resources.Calendars.Delete
91+ , Network.Google.Resource.Directory.Resources.Calendars.Get
92+ , Network.Google.Resource.Directory.Resources.Calendars.Insert
93+ , Network.Google.Resource.Directory.Resources.Calendars.List
94+ , Network.Google.Resource.Directory.Resources.Calendars.Patch
95+ , Network.Google.Resource.Directory.Resources.Calendars.Update
90 , Network.Google.Resource.Directory.RoleAssignments.Delete
96 , Network.Google.Resource.Directory.RoleAssignments.Delete
91 , Network.Google.Resource.Directory.RoleAssignments.Get
97 , Network.Google.Resource.Directory.RoleAssignments.Get
92 , Network.Google.Resource.Directory.RoleAssignments.Insert
98 , Network.Google.Resource.Directory.RoleAssignments.Insert
gogol-admin-emailmigration/gen/Network/Google/EmailMigration/Types.hs+1−1
@@ -40,7 +40,7 @@ import Network.Google.EmailMigration.Types.Sum
40import Network.Google.Prelude
40import Network.Google.Prelude
41
41
42-- | Default request referring to version 'email_migration_v2' of the Email Migration API v2. This contains the host and root path used as a starting point for constructing service requests.
42-- | Default request referring to version 'email_migration_v2' of the Email Migration API v2. This contains the host and root path used as a starting point for constructing service requests.
43−emailMigrationService :: Service
43+emailMigrationService :: ServiceConfig
44emailMigrationService
44emailMigrationService
45 = defaultService
45 = defaultService
46 (ServiceId "admin:email_migration_v2")
46 (ServiceId "admin:email_migration_v2")
gogol-admin-reports/gen/Network/Google/Reports/Types.hs+1−1
@@ -153,7 +153,7 @@ import Network.Google.Reports.Types.Product
153import Network.Google.Reports.Types.Sum
153import Network.Google.Reports.Types.Sum
154
154
155-- | Default request referring to version 'reports_v1' of the Admin Reports API. This contains the host and root path used as a starting point for constructing service requests.
155-- | Default request referring to version 'reports_v1' of the Admin Reports API. This contains the host and root path used as a starting point for constructing service requests.
156−reportsService :: Service
156+reportsService :: ServiceConfig
157reportsService
157reportsService
158 = defaultService (ServiceId "admin:reports_v1")
158 = defaultService (ServiceId "admin:reports_v1")
159 "www.googleapis.com"
159 "www.googleapis.com"
gogol-adsense-host/gen/Network/Google/AdSenseHost.hs+2−2
@@ -13,8 +13,8 @@
13-- Stability : auto-generated
13-- Stability : auto-generated
14-- Portability : non-portable (GHC extensions)
14-- Portability : non-portable (GHC extensions)
15--
15--
16−-- Gives AdSense Hosts access to report generation, ad code generation, and
16+-- Generates performance reports, generates ad codes, and provides
17−-- publisher management capabilities.
17+-- publisher management capabilities for AdSense Hosts.
18--
18--
19-- /See:/ <https://developers.google.com/adsense/host/ AdSense Host API Reference>
19-- /See:/ <https://developers.google.com/adsense/host/ AdSense Host API Reference>
20module Network.Google.AdSenseHost
20module Network.Google.AdSenseHost
gogol-adsense-host/gen/Network/Google/AdSenseHost/Types.hs+1−1
@@ -195,7 +195,7 @@ import Network.Google.AdSenseHost.Types.Sum
195import Network.Google.Prelude
195import Network.Google.Prelude
196
196
197-- | Default request referring to version 'v4.1' of the AdSense Host API. This contains the host and root path used as a starting point for constructing service requests.
197-- | Default request referring to version 'v4.1' of the AdSense Host API. This contains the host and root path used as a starting point for constructing service requests.
198−adSenseHostService :: Service
198+adSenseHostService :: ServiceConfig
199adSenseHostService
199adSenseHostService
200 = defaultService (ServiceId "adsensehost:v4.1")
200 = defaultService (ServiceId "adsensehost:v4.1")
201 "www.googleapis.com"
201 "www.googleapis.com"
gogol-adsense-host/gen/Network/Google/AdSenseHost/Types/Product.hs+6−5
@@ -165,7 +165,8 @@ asAccountId :: Lens' AssociationSession (Maybe Text)
165asAccountId
165asAccountId
166 = lens _asAccountId (\ s a -> s{_asAccountId = a})
166 = lens _asAccountId (\ s a -> s{_asAccountId = a})
167
167
168−-- | The products to associate with the user. Options: AFC, AFF, AFS, AFMC
168+-- | The products to associate with the user. Options: AFC, AFG, AFV, AFS
169+-- (deprecated), AFMC (deprecated)
169asProductCodes :: Lens' AssociationSession [Text]
170asProductCodes :: Lens' AssociationSession [Text]
170asProductCodes
171asProductCodes
171 = lens _asProductCodes
172 = lens _asProductCodes
@@ -535,7 +536,7 @@ auuStatus :: Lens' AdUnit (Maybe Text)
535auuStatus
536auuStatus
536 = lens _auuStatus (\ s a -> s{_auuStatus = a})
537 = lens _auuStatus (\ s a -> s{_auuStatus = a})
537
538
538−-- | Settings specific to WAP mobile content ads (AFMC).
539+-- | Settings specific to WAP mobile content ads (AFMC - deprecated).
539auuMobileContentAdsSettings :: Lens' AdUnit (Maybe AdUnitMobileContentAdsSettings)
540auuMobileContentAdsSettings :: Lens' AdUnit (Maybe AdUnitMobileContentAdsSettings)
540auuMobileContentAdsSettings
541auuMobileContentAdsSettings
541 = lens _auuMobileContentAdsSettings
542 = lens _auuMobileContentAdsSettings
@@ -556,7 +557,7 @@ auuName :: Lens' AdUnit (Maybe Text)
556auuName = lens _auuName (\ s a -> s{_auuName = a})
557auuName = lens _auuName (\ s a -> s{_auuName = a})
557
558
558-- | Settings specific to content ads (AFC) and highend mobile content ads
559-- | Settings specific to content ads (AFC) and highend mobile content ads
559−-- (AFMC).
560+-- (AFMC - deprecated).
560auuContentAdsSettings :: Lens' AdUnit (Maybe AdUnitContentAdsSettings)
561auuContentAdsSettings :: Lens' AdUnit (Maybe AdUnitContentAdsSettings)
561auuContentAdsSettings
562auuContentAdsSettings
562 = lens _auuContentAdsSettings
563 = lens _auuContentAdsSettings
@@ -829,7 +830,7 @@ instance ToJSON Account where
829 Just ("kind" .= _accKind), ("name" .=) <$> _accName,
830 Just ("kind" .= _accKind), ("name" .=) <$> _accName,
830 ("id" .=) <$> _accId])
831 ("id" .=) <$> _accId])
831
832
832−-- | Settings specific to WAP mobile content ads (AFMC).
833+-- | Settings specific to WAP mobile content ads (AFMC - deprecated).
833--
834--
834-- /See:/ 'adUnitMobileContentAdsSettings' smart constructor.
835-- /See:/ 'adUnitMobileContentAdsSettings' smart constructor.
835data AdUnitMobileContentAdsSettings = AdUnitMobileContentAdsSettings
836data AdUnitMobileContentAdsSettings = AdUnitMobileContentAdsSettings
@@ -1418,7 +1419,7 @@ instance ToJSON AdCode where
1418 ("adCode" .=) <$> _aaAdCode])
1419 ("adCode" .=) <$> _aaAdCode])
1419
1420
1420-- | Settings specific to content ads (AFC) and highend mobile content ads
1421-- | Settings specific to content ads (AFC) and highend mobile content ads
1421−-- (AFMC).
1422+-- (AFMC - deprecated).
1422--
1423--
1423-- /See:/ 'adUnitContentAdsSettings' smart constructor.
1424-- /See:/ 'adUnitContentAdsSettings' smart constructor.
1424data AdUnitContentAdsSettings = AdUnitContentAdsSettings
1425data AdUnitContentAdsSettings = AdUnitContentAdsSettings
gogol-adsense-host/gen/Network/Google/AdSenseHost/Types/Sum.hs+2−2
@@ -28,10 +28,10 @@ data AssociationSessionsStartProductCode
28 -- AdSense For Games
28 -- AdSense For Games
29 | Afmc
29 | Afmc
30 -- ^ @AFMC@
30 -- ^ @AFMC@
31− -- AdSense For Mobile Content
31+ -- AdSense For Mobile Content - deprecated
32 | Afs
32 | Afs
33 -- ^ @AFS@
33 -- ^ @AFS@
34− -- AdSense For Search
34+ -- AdSense For Search - deprecated
35 | Afv
35 | Afv
36 -- ^ @AFV@
36 -- ^ @AFV@
37 -- AdSense For Video
37 -- AdSense For Video
gogol-adsense-host/gogol-adsense-host.cabal+2−2
@@ -14,8 +14,8 @@ cabal-version: >= 1.10
14extra-source-files: README.md
14extra-source-files: README.md
15
15
16description:
16description:
17− Gives AdSense Hosts access to report generation, ad code generation, and
17+ Generates performance reports, generates ad codes, and provides
18− publisher management capabilities.
18+ publisher management capabilities for AdSense Hosts.
19 .
19 .
20 /Warning:/ This is an experimental prototype/preview release which is still
20 /Warning:/ This is an experimental prototype/preview release which is still
21 under exploratory development and not intended for public use, caveat emptor!
21 under exploratory development and not intended for public use, caveat emptor!
gogol-adsense/gen/Network/Google/AdSense.hs+2−3
@@ -13,8 +13,8 @@
13-- Stability : auto-generated
13-- Stability : auto-generated
14-- Portability : non-portable (GHC extensions)
14-- Portability : non-portable (GHC extensions)
15--
15--
16−-- Gives AdSense publishers access to their inventory and the ability to
16+-- Accesses AdSense publishers\' inventory and generates performance
17−-- generate reports
17+-- reports.
18--
18--
19-- /See:/ <https://developers.google.com/adsense/management/ AdSense Management API Reference>
19-- /See:/ <https://developers.google.com/adsense/management/ AdSense Management API Reference>
20module Network.Google.AdSense
20module Network.Google.AdSense
@@ -316,7 +316,6 @@ module Network.Google.AdSense
316 , adSupportsReporting
316 , adSupportsReporting
317 , adId
317 , adId
318 , adProductCode
318 , adProductCode
319− , adArcReviewMode
320
319
321 -- ** SavedAdStyle
320 -- ** SavedAdStyle
322 , SavedAdStyle
321 , SavedAdStyle
gogol-adsense/gen/Network/Google/AdSense/Types.hs+1−2
@@ -191,7 +191,6 @@ module Network.Google.AdSense.Types
191 , adSupportsReporting
191 , adSupportsReporting
192 , adId
192 , adId
193 , adProductCode
193 , adProductCode
194− , adArcReviewMode
195
194
196 -- * SavedAdStyle
195 -- * SavedAdStyle
197 , SavedAdStyle
196 , SavedAdStyle
@@ -285,7 +284,7 @@ import Network.Google.AdSense.Types.Sum
285import Network.Google.Prelude
284import Network.Google.Prelude
286
285
287-- | Default request referring to version 'v1.4' of the AdSense Management API. This contains the host and root path used as a starting point for constructing service requests.
286-- | Default request referring to version 'v1.4' of the AdSense Management API. This contains the host and root path used as a starting point for constructing service requests.
288−adSenseService :: Service
287+adSenseService :: ServiceConfig
289adSenseService
288adSenseService
290 = defaultService (ServiceId "adsense:v1.4")
289 = defaultService (ServiceId "adsense:v1.4")
291 "www.googleapis.com"
290 "www.googleapis.com"
gogol-adsense/gen/Network/Google/AdSense/Types/Product.hs+13−26
@@ -868,7 +868,7 @@ auuStatus :: Lens' AdUnit (Maybe Text)
868auuStatus
868auuStatus
869 = lens _auuStatus (\ s a -> s{_auuStatus = a})
869 = lens _auuStatus (\ s a -> s{_auuStatus = a})
870
870
871−-- | Settings specific to WAP mobile content ads (AFMC).
871+-- | Settings specific to WAP mobile content ads (AFMC) - deprecated.
872auuMobileContentAdsSettings :: Lens' AdUnit (Maybe AdUnitMobileContentAdsSettings)
872auuMobileContentAdsSettings :: Lens' AdUnit (Maybe AdUnitMobileContentAdsSettings)
873auuMobileContentAdsSettings
873auuMobileContentAdsSettings
874 = lens _auuMobileContentAdsSettings
874 = lens _auuMobileContentAdsSettings
@@ -878,7 +878,7 @@ auuMobileContentAdsSettings
878auuKind :: Lens' AdUnit Text
878auuKind :: Lens' AdUnit Text
879auuKind = lens _auuKind (\ s a -> s{_auuKind = a})
879auuKind = lens _auuKind (\ s a -> s{_auuKind = a})
880
880
881−-- | Settings specific to feed ads (AFF).
881+-- | Settings specific to feed ads (AFF) - deprecated.
882auuFeedAdsSettings :: Lens' AdUnit (Maybe AdUnitFeedAdsSettings)
882auuFeedAdsSettings :: Lens' AdUnit (Maybe AdUnitFeedAdsSettings)
883auuFeedAdsSettings
883auuFeedAdsSettings
884 = lens _auuFeedAdsSettings
884 = lens _auuFeedAdsSettings
@@ -901,7 +901,7 @@ auuName :: Lens' AdUnit (Maybe Text)
901auuName = lens _auuName (\ s a -> s{_auuName = a})
901auuName = lens _auuName (\ s a -> s{_auuName = a})
902
902
903-- | Settings specific to content ads (AFC) and highend mobile content ads
903-- | Settings specific to content ads (AFC) and highend mobile content ads
904−-- (AFMC).
904+-- (AFMC - deprecated).
905auuContentAdsSettings :: Lens' AdUnit (Maybe AdUnitContentAdsSettings)
905auuContentAdsSettings :: Lens' AdUnit (Maybe AdUnitContentAdsSettings)
906auuContentAdsSettings
906auuContentAdsSettings
907 = lens _auuContentAdsSettings
907 = lens _auuContentAdsSettings
@@ -1185,7 +1185,7 @@ instance ToJSON Account where
1185 ("timezone" .=) <$> _accTimezone,
1185 ("timezone" .=) <$> _accTimezone,
1186 ("subAccounts" .=) <$> _accSubAccounts])
1186 ("subAccounts" .=) <$> _accSubAccounts])
1187
1187
1188−-- | Settings specific to WAP mobile content ads (AFMC).
1188+-- | Settings specific to WAP mobile content ads (AFMC) - deprecated.
1189--
1189--
1190-- /See:/ 'adUnitMobileContentAdsSettings' smart constructor.
1190-- /See:/ 'adUnitMobileContentAdsSettings' smart constructor.
1191data AdUnitMobileContentAdsSettings = AdUnitMobileContentAdsSettings
1191data AdUnitMobileContentAdsSettings = AdUnitMobileContentAdsSettings
@@ -1473,7 +1473,6 @@ data AdClient = AdClient
1473 , _adSupportsReporting :: !(Maybe Bool)
1473 , _adSupportsReporting :: !(Maybe Bool)
1474 , _adId :: !(Maybe Text)
1474 , _adId :: !(Maybe Text)
1475 , _adProductCode :: !(Maybe Text)
1475 , _adProductCode :: !(Maybe Text)
1476− , _adArcReviewMode :: !(Maybe Text)
1477 } deriving (Eq,Show,Data,Typeable,Generic)
1476 } deriving (Eq,Show,Data,Typeable,Generic)
1478
1477
1479-- | Creates a value of 'AdClient' with the minimum fields required to make a request.
1478-- | Creates a value of 'AdClient' with the minimum fields required to make a request.
@@ -1489,8 +1488,6 @@ data AdClient = AdClient
1489-- * 'adId'
1488-- * 'adId'
1490--
1489--
1491-- * 'adProductCode'
1490-- * 'adProductCode'
1492−--
1493−-- * 'adArcReviewMode'
1494adClient
1491adClient
1495 :: AdClient
1492 :: AdClient
1496adClient =
1493adClient =
@@ -1500,7 +1497,6 @@ adClient =
1500 , _adSupportsReporting = Nothing
1497 , _adSupportsReporting = Nothing
1501 , _adId = Nothing
1498 , _adId = Nothing
1502 , _adProductCode = Nothing
1499 , _adProductCode = Nothing
1503− , _adArcReviewMode = Nothing
1504 }
1500 }
1505
1501
1506-- | Kind of resource this is, in this case adsense#adClient.
1502-- | Kind of resource this is, in this case adsense#adClient.
@@ -1529,13 +1525,6 @@ adProductCode
1529 = lens _adProductCode
1525 = lens _adProductCode
1530 (\ s a -> s{_adProductCode = a})
1526 (\ s a -> s{_adProductCode = a})
1531
1527
1532−-- | ARC review mode this ad client is in. Empty if the client is not opted
1533−-- in to ARC. Possible values: POST_REVIEW, AUTOMATIC_PRE_REVIEW.
1534−adArcReviewMode :: Lens' AdClient (Maybe Text)
1535−adArcReviewMode
1536− = lens _adArcReviewMode
1537− (\ s a -> s{_adArcReviewMode = a})
1538−
1539instance FromJSON AdClient where
1528instance FromJSON AdClient where
1540 parseJSON
1529 parseJSON
1541 = withObject "AdClient"
1530 = withObject "AdClient"
@@ -1545,8 +1534,7 @@ instance FromJSON AdClient where
1545 (o .:? "arcOptIn")
1534 (o .:? "arcOptIn")
1546 <*> (o .:? "supportsReporting")
1535 <*> (o .:? "supportsReporting")
1547 <*> (o .:? "id")
1536 <*> (o .:? "id")
1548− <*> (o .:? "productCode")
1537+ <*> (o .:? "productCode"))
1549− <*> (o .:? "arcReviewMode"))
1550
1538
1551instance ToJSON AdClient where
1539instance ToJSON AdClient where
1552 toJSON AdClient{..}
1540 toJSON AdClient{..}
@@ -1556,8 +1544,7 @@ instance ToJSON AdClient where
1556 ("arcOptIn" .=) <$> _adArcOptIn,
1544 ("arcOptIn" .=) <$> _adArcOptIn,
1557 ("supportsReporting" .=) <$> _adSupportsReporting,
1545 ("supportsReporting" .=) <$> _adSupportsReporting,
1558 ("id" .=) <$> _adId,
1546 ("id" .=) <$> _adId,
1559− ("productCode" .=) <$> _adProductCode,
1547+ ("productCode" .=) <$> _adProductCode])
1560− ("arcReviewMode" .=) <$> _adArcReviewMode])
1561
1548
1562--
1549--
1563-- /See:/ 'savedAdStyle' smart constructor.
1550-- /See:/ 'savedAdStyle' smart constructor.
@@ -1658,11 +1645,11 @@ customChannelTargetingInfo =
1658 }
1645 }
1659
1646
1660-- | The locations in which ads appear. (Only valid for content and mobile
1647-- | The locations in which ads appear. (Only valid for content and mobile
1661−-- content ads). Acceptable values for content ads are: TOP_LEFT,
1648+-- content ads (deprecated)). Acceptable values for content ads are:
1662−-- TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT,
1649+-- TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER,
1663−-- BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable
1650+-- MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT,
1664−-- values for mobile content ads are: TOP, MIDDLE, BOTTOM,
1651+-- MULTIPLE_LOCATIONS. Acceptable values for mobile content ads
1665−-- MULTIPLE_LOCATIONS.
1652+-- (deprecated) are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
1666cctiLocation :: Lens' CustomChannelTargetingInfo (Maybe Text)
1653cctiLocation :: Lens' CustomChannelTargetingInfo (Maybe Text)
1667cctiLocation
1654cctiLocation
1668 = lens _cctiLocation (\ s a -> s{_cctiLocation = a})
1655 = lens _cctiLocation (\ s a -> s{_cctiLocation = a})
@@ -1770,7 +1757,7 @@ instance ToJSON AdStyle where
1770 Just ("kind" .= _asKind), ("font" .=) <$> _asFont,
1757 Just ("kind" .= _asKind), ("font" .=) <$> _asFont,
1771 ("colors" .=) <$> _asColors])
1758 ("colors" .=) <$> _asColors])
1772
1759
1773−-- | Settings specific to feed ads (AFF).
1760+-- | Settings specific to feed ads (AFF) - deprecated.
1774--
1761--
1775-- /See:/ 'adUnitFeedAdsSettings' smart constructor.
1762-- /See:/ 'adUnitFeedAdsSettings' smart constructor.
1776data AdUnitFeedAdsSettings = AdUnitFeedAdsSettings
1763data AdUnitFeedAdsSettings = AdUnitFeedAdsSettings
@@ -2219,7 +2206,7 @@ instance ToJSON AdsenseReportsGenerateResponse where
2219 ("totalMatchedRows" .=) <$> _argrTotalMatchedRows])
2206 ("totalMatchedRows" .=) <$> _argrTotalMatchedRows])
2220
2207
2221-- | Settings specific to content ads (AFC) and highend mobile content ads
2208-- | Settings specific to content ads (AFC) and highend mobile content ads
2222−-- (AFMC).
2209+-- (AFMC - deprecated).
2223--
2210--
2224-- /See:/ 'adUnitContentAdsSettings' smart constructor.
2211-- /See:/ 'adUnitContentAdsSettings' smart constructor.
2225data AdUnitContentAdsSettings = AdUnitContentAdsSettings
2212data AdUnitContentAdsSettings = AdUnitContentAdsSettings
gogol-adsense/gogol-adsense.cabal+2−2
@@ -14,8 +14,8 @@ cabal-version: >= 1.10
14extra-source-files: README.md
14extra-source-files: README.md
15
15
16description:
16description:
17− Gives AdSense publishers access to their inventory and the ability to
17+ Accesses AdSense publishers\' inventory and generates performance
18− generate reports
18+ reports.
19 .
19 .
20 /Warning:/ This is an experimental prototype/preview release which is still
20 /Warning:/ This is an experimental prototype/preview release which is still
21 under exploratory development and not intended for public use, caveat emptor!
21 under exploratory development and not intended for public use, caveat emptor!
gogol-affiliates/gen/Network/Google/Affiliates/Types.hs+1−1
@@ -345,7 +345,7 @@ import Network.Google.Affiliates.Types.Sum
345import Network.Google.Prelude
345import Network.Google.Prelude
346
346
347-- | Default request referring to version 'v1beta1' of the Google Affiliate Network API. This contains the host and root path used as a starting point for constructing service requests.
347-- | Default request referring to version 'v1beta1' of the Google Affiliate Network API. This contains the host and root path used as a starting point for constructing service requests.
348−affiliatesService :: Service
348+affiliatesService :: ServiceConfig
349affiliatesService
349affiliatesService
350 = defaultService (ServiceId "gan:v1beta1")
350 = defaultService (ServiceId "gan:v1beta1")
351 "www.googleapis.com"
351 "www.googleapis.com"
gogol-analytics/gen/Network/Google/Analytics.hs+13−1
@@ -13,7 +13,7 @@
13-- Stability : auto-generated
13-- Stability : auto-generated
14-- Portability : non-portable (GHC extensions)
14-- Portability : non-portable (GHC extensions)
15--
15--
16−-- View and manage your Google Analytics data
16+-- Views and manages your Google Analytics data.
17--
17--
18-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference>
18-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference>
19module Network.Google.Analytics
19module Network.Google.Analytics
@@ -196,6 +196,9 @@ module Network.Google.Analytics
196 -- ** analytics.management.segments.list
196 -- ** analytics.management.segments.list
197 , module Network.Google.Resource.Analytics.Management.Segments.List
197 , module Network.Google.Resource.Analytics.Management.Segments.List
198
198
199+ -- ** analytics.management.unsampledReports.delete
200+ , module Network.Google.Resource.Analytics.Management.UnSampledReports.Delete
201+
199 -- ** analytics.management.unsampledReports.get
202 -- ** analytics.management.unsampledReports.get
200 , module Network.Google.Resource.Analytics.Management.UnSampledReports.Get
203 , module Network.Google.Resource.Analytics.Management.UnSampledReports.Get
201
204
@@ -578,8 +581,10 @@ module Network.Google.Analytics
578 , pCreated
581 , pCreated
579 , pSelfLink
582 , pSelfLink
580 , pAccountId
583 , pAccountId
584+ , pBotFilteringEnabled
581 , pName
585 , pName
582 , pCurrency
586 , pCurrency
587+ , pStarred
583 , pInternalWebPropertyId
588 , pInternalWebPropertyId
584 , pId
589 , pId
585 , pUpdated
590 , pUpdated
@@ -616,6 +621,7 @@ module Network.Google.Analytics
616 , wpsKind
621 , wpsKind
617 , wpsProFiles
622 , wpsProFiles
618 , wpsName
623 , wpsName
624+ , wpsStarred
619 , wpsInternalWebPropertyId
625 , wpsInternalWebPropertyId
620 , wpsId
626 , wpsId
621 , wpsWebsiteURL
627 , wpsWebsiteURL
@@ -725,6 +731,7 @@ module Network.Google.Analytics
725 , accCreated
731 , accCreated
726 , accSelfLink
732 , accSelfLink
727 , accName
733 , accName
734+ , accStarred
728 , accId
735 , accId
729 , accUpdated
736 , accUpdated
730 , accPermissions
737 , accPermissions
@@ -893,6 +900,7 @@ module Network.Google.Analytics
893 , proFileSummary
900 , proFileSummary
894 , pfsKind
901 , pfsKind
895 , pfsName
902 , pfsName
903+ , pfsStarred
896 , pfsId
904 , pfsId
897 , pfsType
905 , pfsType
898
906
@@ -913,6 +921,7 @@ module Network.Google.Analytics
913 , wSelfLink
921 , wSelfLink
914 , wAccountId
922 , wAccountId
915 , wName
923 , wName
924+ , wStarred
916 , wInternalWebPropertyId
925 , wInternalWebPropertyId
917 , wId
926 , wId
918 , wUpdated
927 , wUpdated
@@ -1005,6 +1014,7 @@ module Network.Google.Analytics
1005 , assKind
1014 , assKind
1006 , assWebProperties
1015 , assWebProperties
1007 , assName
1016 , assName
1017+ , assStarred
1008 , assId
1018 , assId
1009
1019
1010 -- ** RealtimeDataQuery
1020 -- ** RealtimeDataQuery
@@ -1313,6 +1323,7 @@ import Network.Google.Resource.Analytics.Management.ProFileUserLinks.I
1313import Network.Google.Resource.Analytics.Management.ProFileUserLinks.List
1323import Network.Google.Resource.Analytics.Management.ProFileUserLinks.List
1314import Network.Google.Resource.Analytics.Management.ProFileUserLinks.Update
1324import Network.Google.Resource.Analytics.Management.ProFileUserLinks.Update
1315import Network.Google.Resource.Analytics.Management.Segments.List
1325import Network.Google.Resource.Analytics.Management.Segments.List
1326+import Network.Google.Resource.Analytics.Management.UnSampledReports.Delete
1316import Network.Google.Resource.Analytics.Management.UnSampledReports.Get
1327import Network.Google.Resource.Analytics.Management.UnSampledReports.Get
1317import Network.Google.Resource.Analytics.Management.UnSampledReports.Insert
1328import Network.Google.Resource.Analytics.Management.UnSampledReports.Insert
1318import Network.Google.Resource.Analytics.Management.UnSampledReports.List
1329import Network.Google.Resource.Analytics.Management.UnSampledReports.List
@@ -1355,6 +1366,7 @@ type AnalyticsAPI =
1355 :<|> ManagementUnSampledReportsInsertResource
1366 :<|> ManagementUnSampledReportsInsertResource
1356 :<|> ManagementUnSampledReportsListResource
1367 :<|> ManagementUnSampledReportsListResource
1357 :<|> ManagementUnSampledReportsGetResource
1368 :<|> ManagementUnSampledReportsGetResource
1369+ :<|> ManagementUnSampledReportsDeleteResource
1358 :<|> ManagementAccountsListResource
1370 :<|> ManagementAccountsListResource
1359 :<|> ManagementExperimentsInsertResource
1371 :<|> ManagementExperimentsInsertResource
1360 :<|> ManagementExperimentsListResource
1372 :<|> ManagementExperimentsListResource
gogol-analytics/gen/Network/Google/Analytics/Types.hs+8−1
@@ -334,8 +334,10 @@ module Network.Google.Analytics.Types
334 , pCreated
334 , pCreated
335 , pSelfLink
335 , pSelfLink
336 , pAccountId
336 , pAccountId
337+ , pBotFilteringEnabled
337 , pName
338 , pName
338 , pCurrency
339 , pCurrency
340+ , pStarred
339 , pInternalWebPropertyId
341 , pInternalWebPropertyId
340 , pId
342 , pId
341 , pUpdated
343 , pUpdated
@@ -372,6 +374,7 @@ module Network.Google.Analytics.Types
372 , wpsKind
374 , wpsKind
373 , wpsProFiles
375 , wpsProFiles
374 , wpsName
376 , wpsName
377+ , wpsStarred
375 , wpsInternalWebPropertyId
378 , wpsInternalWebPropertyId
376 , wpsId
379 , wpsId
377 , wpsWebsiteURL
380 , wpsWebsiteURL
@@ -481,6 +484,7 @@ module Network.Google.Analytics.Types
481 , accCreated
484 , accCreated
482 , accSelfLink
485 , accSelfLink
483 , accName
486 , accName
487+ , accStarred
484 , accId
488 , accId
485 , accUpdated
489 , accUpdated
486 , accPermissions
490 , accPermissions
@@ -649,6 +653,7 @@ module Network.Google.Analytics.Types
649 , proFileSummary
653 , proFileSummary
650 , pfsKind
654 , pfsKind
651 , pfsName
655 , pfsName
656+ , pfsStarred
652 , pfsId
657 , pfsId
653 , pfsType
658 , pfsType
654
659
@@ -669,6 +674,7 @@ module Network.Google.Analytics.Types
669 , wSelfLink
674 , wSelfLink
670 , wAccountId
675 , wAccountId
671 , wName
676 , wName
677+ , wStarred
672 , wInternalWebPropertyId
678 , wInternalWebPropertyId
673 , wId
679 , wId
674 , wUpdated
680 , wUpdated
@@ -761,6 +767,7 @@ module Network.Google.Analytics.Types
761 , assKind
767 , assKind
762 , assWebProperties
768 , assWebProperties
763 , assName
769 , assName
770+ , assStarred
764 , assId
771 , assId
765
772
766 -- * RealtimeDataQuery
773 -- * RealtimeDataQuery
@@ -1018,7 +1025,7 @@ import Network.Google.Analytics.Types.Sum
1018import Network.Google.Prelude
1025import Network.Google.Prelude
1019
1026
1020-- | Default request referring to version 'v3' of the Google Analytics API. This contains the host and root path used as a starting point for constructing service requests.
1027-- | Default request referring to version 'v3' of the Google Analytics API. This contains the host and root path used as a starting point for constructing service requests.
1021−analyticsService :: Service
1028+analyticsService :: ServiceConfig
1022analyticsService
1029analyticsService
1023 = defaultService (ServiceId "analytics:v3")
1030 = defaultService (ServiceId "analytics:v3")
1024 "www.googleapis.com"
1031 "www.googleapis.com"
gogol-analytics/gen/Network/Google/Analytics/Types/Product.hs+84−8
@@ -2836,8 +2836,10 @@ data ProFile = ProFile
2836 , _pCreated :: !(Maybe DateTime')
2836 , _pCreated :: !(Maybe DateTime')
2837 , _pSelfLink :: !(Maybe Text)
2837 , _pSelfLink :: !(Maybe Text)
2838 , _pAccountId :: !(Maybe Text)
2838 , _pAccountId :: !(Maybe Text)
2839+ , _pBotFilteringEnabled :: !(Maybe Bool)
2839 , _pName :: !(Maybe Text)
2840 , _pName :: !(Maybe Text)
2840 , _pCurrency :: !(Maybe Text)
2841 , _pCurrency :: !(Maybe Text)
2842+ , _pStarred :: !(Maybe Bool)
2841 , _pInternalWebPropertyId :: !(Maybe Text)
2843 , _pInternalWebPropertyId :: !(Maybe Text)
2842 , _pId :: !(Maybe Text)
2844 , _pId :: !(Maybe Text)
2843 , _pUpdated :: !(Maybe DateTime')
2845 , _pUpdated :: !(Maybe DateTime')
@@ -2877,10 +2879,14 @@ data ProFile = ProFile
2877--
2879--
2878-- * 'pAccountId'
2880-- * 'pAccountId'
2879--
2881--
2882+-- * 'pBotFilteringEnabled'
2883+--
2880-- * 'pName'
2884-- * 'pName'
2881--
2885--
2882-- * 'pCurrency'
2886-- * 'pCurrency'
2883--
2887--
2888+-- * 'pStarred'
2889+--
2884-- * 'pInternalWebPropertyId'
2890-- * 'pInternalWebPropertyId'
2885--
2891--
2886-- * 'pId'
2892-- * 'pId'
@@ -2917,8 +2923,10 @@ proFile =
2917 , _pCreated = Nothing
2923 , _pCreated = Nothing
2918 , _pSelfLink = Nothing
2924 , _pSelfLink = Nothing
2919 , _pAccountId = Nothing
2925 , _pAccountId = Nothing
2926+ , _pBotFilteringEnabled = Nothing
2920 , _pName = Nothing
2927 , _pName = Nothing
2921 , _pCurrency = Nothing
2928 , _pCurrency = Nothing
2929+ , _pStarred = Nothing
2922 , _pInternalWebPropertyId = Nothing
2930 , _pInternalWebPropertyId = Nothing
2923 , _pId = Nothing
2931 , _pId = Nothing
2924 , _pUpdated = Nothing
2932 , _pUpdated = Nothing
@@ -2994,6 +3002,12 @@ pAccountId :: Lens' ProFile (Maybe Text)
2994pAccountId
3002pAccountId
2995 = lens _pAccountId (\ s a -> s{_pAccountId = a})
3003 = lens _pAccountId (\ s a -> s{_pAccountId = a})
2996
3004
3005+-- | Indicates whether bot filtering is enabled for this view (profile).
3006+pBotFilteringEnabled :: Lens' ProFile (Maybe Bool)
3007+pBotFilteringEnabled
3008+ = lens _pBotFilteringEnabled
3009+ (\ s a -> s{_pBotFilteringEnabled = a})
3010+
2997-- | Name of this view (profile).
3011-- | Name of this view (profile).
2998pName :: Lens' ProFile (Maybe Text)
3012pName :: Lens' ProFile (Maybe Text)
2999pName = lens _pName (\ s a -> s{_pName = a})
3013pName = lens _pName (\ s a -> s{_pName = a})
@@ -3006,6 +3020,10 @@ pCurrency :: Lens' ProFile (Maybe Text)
3006pCurrency
3020pCurrency
3007 = lens _pCurrency (\ s a -> s{_pCurrency = a})
3021 = lens _pCurrency (\ s a -> s{_pCurrency = a})
3008
3022
3023+-- | Indicates whether this view (profile) is starred or not.
3024+pStarred :: Lens' ProFile (Maybe Bool)
3025+pStarred = lens _pStarred (\ s a -> s{_pStarred = a})
3026+
3009-- | Internal ID for the web property to which this view (profile) belongs.
3027-- | Internal ID for the web property to which this view (profile) belongs.
3010pInternalWebPropertyId :: Lens' ProFile (Maybe Text)
3028pInternalWebPropertyId :: Lens' ProFile (Maybe Text)
3011pInternalWebPropertyId
3029pInternalWebPropertyId
@@ -3085,8 +3103,10 @@ instance FromJSON ProFile where
3085 <*> (o .:? "created")
3103 <*> (o .:? "created")
3086 <*> (o .:? "selfLink")
3104 <*> (o .:? "selfLink")
3087 <*> (o .:? "accountId")
3105 <*> (o .:? "accountId")
3106+ <*> (o .:? "botFilteringEnabled")
3088 <*> (o .:? "name")
3107 <*> (o .:? "name")
3089 <*> (o .:? "currency")
3108 <*> (o .:? "currency")
3109+ <*> (o .:? "starred")
3090 <*> (o .:? "internalWebPropertyId")
3110 <*> (o .:? "internalWebPropertyId")
3091 <*> (o .:? "id")
3111 <*> (o .:? "id")
3092 <*> (o .:? "updated")
3112 <*> (o .:? "updated")
@@ -3116,8 +3136,10 @@ instance ToJSON ProFile where
3116 ("created" .=) <$> _pCreated,
3136 ("created" .=) <$> _pCreated,
3117 ("selfLink" .=) <$> _pSelfLink,
3137 ("selfLink" .=) <$> _pSelfLink,
3118 ("accountId" .=) <$> _pAccountId,
3138 ("accountId" .=) <$> _pAccountId,
3139+ ("botFilteringEnabled" .=) <$> _pBotFilteringEnabled,
3119 ("name" .=) <$> _pName,
3140 ("name" .=) <$> _pName,
3120 ("currency" .=) <$> _pCurrency,
3141 ("currency" .=) <$> _pCurrency,
3142+ ("starred" .=) <$> _pStarred,
3121 ("internalWebPropertyId" .=) <$>
3143 ("internalWebPropertyId" .=) <$>
3122 _pInternalWebPropertyId,
3144 _pInternalWebPropertyId,
3123 ("id" .=) <$> _pId, ("updated" .=) <$> _pUpdated,
3145 ("id" .=) <$> _pId, ("updated" .=) <$> _pUpdated,
@@ -3320,6 +3342,7 @@ data WebPropertySummary = WebPropertySummary
3320 { _wpsKind :: !Text
3342 { _wpsKind :: !Text
3321 , _wpsProFiles :: !(Maybe [ProFileSummary])
3343 , _wpsProFiles :: !(Maybe [ProFileSummary])
3322 , _wpsName :: !(Maybe Text)
3344 , _wpsName :: !(Maybe Text)
3345+ , _wpsStarred :: !(Maybe Bool)
3323 , _wpsInternalWebPropertyId :: !(Maybe Text)
3346 , _wpsInternalWebPropertyId :: !(Maybe Text)
3324 , _wpsId :: !(Maybe Text)
3347 , _wpsId :: !(Maybe Text)
3325 , _wpsWebsiteURL :: !(Maybe Text)
3348 , _wpsWebsiteURL :: !(Maybe Text)
@@ -3336,6 +3359,8 @@ data WebPropertySummary = WebPropertySummary
3336--
3359--
3337-- * 'wpsName'
3360-- * 'wpsName'
3338--
3361--
3362+-- * 'wpsStarred'
3363+--
3339-- * 'wpsInternalWebPropertyId'
3364-- * 'wpsInternalWebPropertyId'
3340--
3365--
3341-- * 'wpsId'
3366-- * 'wpsId'
@@ -3350,6 +3375,7 @@ webPropertySummary =
3350 { _wpsKind = "analytics#webPropertySummary"
3375 { _wpsKind = "analytics#webPropertySummary"
3351 , _wpsProFiles = Nothing
3376 , _wpsProFiles = Nothing
3352 , _wpsName = Nothing
3377 , _wpsName = Nothing
3378+ , _wpsStarred = Nothing
3353 , _wpsInternalWebPropertyId = Nothing
3379 , _wpsInternalWebPropertyId = Nothing
3354 , _wpsId = Nothing
3380 , _wpsId = Nothing
3355 , _wpsWebsiteURL = Nothing
3381 , _wpsWebsiteURL = Nothing
@@ -3371,6 +3397,11 @@ wpsProFiles
3371wpsName :: Lens' WebPropertySummary (Maybe Text)
3397wpsName :: Lens' WebPropertySummary (Maybe Text)
3372wpsName = lens _wpsName (\ s a -> s{_wpsName = a})
3398wpsName = lens _wpsName (\ s a -> s{_wpsName = a})
3373
3399
3400+-- | Indicates whether this web property is starred or not.
3401+wpsStarred :: Lens' WebPropertySummary (Maybe Bool)
3402+wpsStarred
3403+ = lens _wpsStarred (\ s a -> s{_wpsStarred = a})
3404+
3374-- | Internal ID for this web property.
3405-- | Internal ID for this web property.
3375wpsInternalWebPropertyId :: Lens' WebPropertySummary (Maybe Text)
3406wpsInternalWebPropertyId :: Lens' WebPropertySummary (Maybe Text)
3376wpsInternalWebPropertyId
3407wpsInternalWebPropertyId
@@ -3399,6 +3430,7 @@ instance FromJSON WebPropertySummary where
3399 (o .:? "kind" .!= "analytics#webPropertySummary") <*>
3430 (o .:? "kind" .!= "analytics#webPropertySummary") <*>
3400 (o .:? "profiles" .!= mempty)
3431 (o .:? "profiles" .!= mempty)
3401 <*> (o .:? "name")
3432 <*> (o .:? "name")
3433+ <*> (o .:? "starred")
3402 <*> (o .:? "internalWebPropertyId")
3434 <*> (o .:? "internalWebPropertyId")
3403 <*> (o .:? "id")
3435 <*> (o .:? "id")
3404 <*> (o .:? "websiteUrl")
3436 <*> (o .:? "websiteUrl")
@@ -3411,6 +3443,7 @@ instance ToJSON WebPropertySummary where
3411 [Just ("kind" .= _wpsKind),
3443 [Just ("kind" .= _wpsKind),
3412 ("profiles" .=) <$> _wpsProFiles,
3444 ("profiles" .=) <$> _wpsProFiles,
3413 ("name" .=) <$> _wpsName,
3445 ("name" .=) <$> _wpsName,
3446+ ("starred" .=) <$> _wpsStarred,
3414 ("internalWebPropertyId" .=) <$>
3447 ("internalWebPropertyId" .=) <$>
3415 _wpsInternalWebPropertyId,
3448 _wpsInternalWebPropertyId,
3416 ("id" .=) <$> _wpsId,
3449 ("id" .=) <$> _wpsId,
@@ -4378,6 +4411,7 @@ data Account = Account
4378 , _accCreated :: !(Maybe DateTime')
4411 , _accCreated :: !(Maybe DateTime')
4379 , _accSelfLink :: !(Maybe Text)
4412 , _accSelfLink :: !(Maybe Text)
4380 , _accName :: !(Maybe Text)
4413 , _accName :: !(Maybe Text)
4414+ , _accStarred :: !(Maybe Bool)
4381 , _accId :: !(Maybe Text)
4415 , _accId :: !(Maybe Text)
4382 , _accUpdated :: !(Maybe DateTime')
4416 , _accUpdated :: !(Maybe DateTime')
4383 , _accPermissions :: !(Maybe AccountPermissions)
4417 , _accPermissions :: !(Maybe AccountPermissions)
@@ -4397,6 +4431,8 @@ data Account = Account
4397--
4431--
4398-- * 'accName'
4432-- * 'accName'
4399--
4433--
4434+-- * 'accStarred'
4435+--
4400-- * 'accId'
4436-- * 'accId'
4401--
4437--
4402-- * 'accUpdated'
4438-- * 'accUpdated'
@@ -4411,6 +4447,7 @@ account =
4411 , _accCreated = Nothing
4447 , _accCreated = Nothing
4412 , _accSelfLink = Nothing
4448 , _accSelfLink = Nothing
4413 , _accName = Nothing
4449 , _accName = Nothing
4450+ , _accStarred = Nothing
4414 , _accId = Nothing
4451 , _accId = Nothing
4415 , _accUpdated = Nothing
4452 , _accUpdated = Nothing
4416 , _accPermissions = Nothing
4453 , _accPermissions = Nothing
@@ -4441,6 +4478,11 @@ accSelfLink
4441accName :: Lens' Account (Maybe Text)
4478accName :: Lens' Account (Maybe Text)
4442accName = lens _accName (\ s a -> s{_accName = a})
4479accName = lens _accName (\ s a -> s{_accName = a})
4443
4480
4481+-- | Indicates whether this account is starred or not.
4482+accStarred :: Lens' Account (Maybe Bool)
4483+accStarred
4484+ = lens _accStarred (\ s a -> s{_accStarred = a})
4485+
4444-- | Account ID.
4486-- | Account ID.
4445accId :: Lens' Account (Maybe Text)
4487accId :: Lens' Account (Maybe Text)
4446accId = lens _accId (\ s a -> s{_accId = a})
4488accId = lens _accId (\ s a -> s{_accId = a})
@@ -4467,6 +4509,7 @@ instance FromJSON Account where
4467 <*> (o .:? "created")
4509 <*> (o .:? "created")
4468 <*> (o .:? "selfLink")
4510 <*> (o .:? "selfLink")
4469 <*> (o .:? "name")
4511 <*> (o .:? "name")
4512+ <*> (o .:? "starred")
4470 <*> (o .:? "id")
4513 <*> (o .:? "id")
4471 <*> (o .:? "updated")
4514 <*> (o .:? "updated")
4472 <*> (o .:? "permissions"))
4515 <*> (o .:? "permissions"))
@@ -4479,7 +4522,8 @@ instance ToJSON Account where
4479 Just ("kind" .= _accKind),
4522 Just ("kind" .= _accKind),
4480 ("created" .=) <$> _accCreated,
4523 ("created" .=) <$> _accCreated,
4481 ("selfLink" .=) <$> _accSelfLink,
4524 ("selfLink" .=) <$> _accSelfLink,
4482− ("name" .=) <$> _accName, ("id" .=) <$> _accId,
4525+ ("name" .=) <$> _accName,
4526+ ("starred" .=) <$> _accStarred, ("id" .=) <$> _accId,
4483 ("updated" .=) <$> _accUpdated,
4527 ("updated" .=) <$> _accUpdated,
4484 ("permissions" .=) <$> _accPermissions])
4528 ("permissions" .=) <$> _accPermissions])
4485
4529
@@ -6110,10 +6154,11 @@ instance ToJSON CustomMetric where
6110--
6154--
6111-- /See:/ 'proFileSummary' smart constructor.
6155-- /See:/ 'proFileSummary' smart constructor.
6112data ProFileSummary = ProFileSummary
6156data ProFileSummary = ProFileSummary
6113− { _pfsKind :: !Text
6157+ { _pfsKind :: !Text
6114− , _pfsName :: !(Maybe Text)
6158+ , _pfsName :: !(Maybe Text)
6159+ , _pfsStarred :: !(Maybe Bool)
6115− , _pfsId :: !(Maybe Text)
6160+ , _pfsId :: !(Maybe Text)
6116− , _pfsType :: !(Maybe Text)
6161+ , _pfsType :: !(Maybe Text)
6117 } deriving (Eq,Show,Data,Typeable,Generic)
6162 } deriving (Eq,Show,Data,Typeable,Generic)
6118
6163
6119-- | Creates a value of 'ProFileSummary' with the minimum fields required to make a request.
6164-- | Creates a value of 'ProFileSummary' with the minimum fields required to make a request.
@@ -6124,6 +6169,8 @@ data ProFileSummary = ProFileSummary
6124--
6169--
6125-- * 'pfsName'
6170-- * 'pfsName'
6126--
6171--
6172+-- * 'pfsStarred'
6173+--
6127-- * 'pfsId'
6174-- * 'pfsId'
6128--
6175--
6129-- * 'pfsType'
6176-- * 'pfsType'
@@ -6133,6 +6180,7 @@ proFileSummary =
6133 ProFileSummary
6180 ProFileSummary
6134 { _pfsKind = "analytics#profileSummary"
6181 { _pfsKind = "analytics#profileSummary"
6135 , _pfsName = Nothing
6182 , _pfsName = Nothing
6183+ , _pfsStarred = Nothing
6136 , _pfsId = Nothing
6184 , _pfsId = Nothing
6137 , _pfsType = Nothing
6185 , _pfsType = Nothing
6138 }
6186 }
@@ -6145,6 +6193,11 @@ pfsKind = lens _pfsKind (\ s a -> s{_pfsKind = a})
6145pfsName :: Lens' ProFileSummary (Maybe Text)
6193pfsName :: Lens' ProFileSummary (Maybe Text)
6146pfsName = lens _pfsName (\ s a -> s{_pfsName = a})
6194pfsName = lens _pfsName (\ s a -> s{_pfsName = a})
6147
6195
6196+-- | Indicates whether this view (profile) is starred or not.
6197+pfsStarred :: Lens' ProFileSummary (Maybe Bool)
6198+pfsStarred
6199+ = lens _pfsStarred (\ s a -> s{_pfsStarred = a})
6200+
6148-- | View (profile) ID.
6201-- | View (profile) ID.
6149pfsId :: Lens' ProFileSummary (Maybe Text)
6202pfsId :: Lens' ProFileSummary (Maybe Text)
6150pfsId = lens _pfsId (\ s a -> s{_pfsId = a})
6203pfsId = lens _pfsId (\ s a -> s{_pfsId = a})
@@ -6160,6 +6213,7 @@ instance FromJSON ProFileSummary where
6160 ProFileSummary <$>
6213 ProFileSummary <$>
6161 (o .:? "kind" .!= "analytics#profileSummary") <*>
6214 (o .:? "kind" .!= "analytics#profileSummary") <*>
6162 (o .:? "name")
6215 (o .:? "name")
6216+ <*> (o .:? "starred")
6163 <*> (o .:? "id")
6217 <*> (o .:? "id")
6164 <*> (o .:? "type"))
6218 <*> (o .:? "type"))
6165
6219
@@ -6168,7 +6222,8 @@ instance ToJSON ProFileSummary where
6168 = object
6222 = object
6169 (catMaybes
6223 (catMaybes
6170 [Just ("kind" .= _pfsKind), ("name" .=) <$> _pfsName,
6224 [Just ("kind" .= _pfsKind), ("name" .=) <$> _pfsName,
6225+ ("starred" .=) <$> _pfsStarred, ("id" .=) <$> _pfsId,
6171− ("id" .=) <$> _pfsId, ("type" .=) <$> _pfsType])
6226+ ("type" .=) <$> _pfsType])
6172
6227
6173-- | Parent link for the custom dimension. Points to the property to which
6228-- | Parent link for the custom dimension. Points to the property to which
6174-- the custom dimension belongs.
6229-- the custom dimension belongs.
@@ -6229,6 +6284,7 @@ data WebProperty = WebProperty
6229 , _wSelfLink :: !(Maybe Text)
6284 , _wSelfLink :: !(Maybe Text)
6230 , _wAccountId :: !(Maybe Text)
6285 , _wAccountId :: !(Maybe Text)
6231 , _wName :: !(Maybe Text)
6286 , _wName :: !(Maybe Text)
6287+ , _wStarred :: !(Maybe Bool)
6232 , _wInternalWebPropertyId :: !(Maybe Text)
6288 , _wInternalWebPropertyId :: !(Maybe Text)
6233 , _wId :: !(Maybe Text)
6289 , _wId :: !(Maybe Text)
6234 , _wUpdated :: !(Maybe DateTime')
6290 , _wUpdated :: !(Maybe DateTime')
@@ -6259,6 +6315,8 @@ data WebProperty = WebProperty
6259--
6315--
6260-- * 'wName'
6316-- * 'wName'
6261--
6317--
6318+-- * 'wStarred'
6319+--
6262-- * 'wInternalWebPropertyId'
6320-- * 'wInternalWebPropertyId'
6263--
6321--
6264-- * 'wId'
6322-- * 'wId'
@@ -6286,6 +6344,7 @@ webProperty =
6286 , _wSelfLink = Nothing
6344 , _wSelfLink = Nothing
6287 , _wAccountId = Nothing
6345 , _wAccountId = Nothing
6288 , _wName = Nothing
6346 , _wName = Nothing
6347+ , _wStarred = Nothing
6289 , _wInternalWebPropertyId = Nothing
6348 , _wInternalWebPropertyId = Nothing
6290 , _wId = Nothing
6349 , _wId = Nothing
6291 , _wUpdated = Nothing
6350 , _wUpdated = Nothing
@@ -6339,6 +6398,10 @@ wAccountId
6339wName :: Lens' WebProperty (Maybe Text)
6398wName :: Lens' WebProperty (Maybe Text)
6340wName = lens _wName (\ s a -> s{_wName = a})
6399wName = lens _wName (\ s a -> s{_wName = a})
6341
6400
6401+-- | Indicates whether this web property is starred or not.
6402+wStarred :: Lens' WebProperty (Maybe Bool)
6403+wStarred = lens _wStarred (\ s a -> s{_wStarred = a})
6404+
6342-- | Internal ID for this web property.
6405-- | Internal ID for this web property.
6343wInternalWebPropertyId :: Lens' WebProperty (Maybe Text)
6406wInternalWebPropertyId :: Lens' WebProperty (Maybe Text)
6344wInternalWebPropertyId
6407wInternalWebPropertyId
@@ -6394,6 +6457,7 @@ instance FromJSON WebProperty where
6394 <*> (o .:? "selfLink")
6457 <*> (o .:? "selfLink")
6395 <*> (o .:? "accountId")
6458 <*> (o .:? "accountId")
6396 <*> (o .:? "name")
6459 <*> (o .:? "name")
6460+ <*> (o .:? "starred")
6397 <*> (o .:? "internalWebPropertyId")
6461 <*> (o .:? "internalWebPropertyId")
6398 <*> (o .:? "id")
6462 <*> (o .:? "id")
6399 <*> (o .:? "updated")
6463 <*> (o .:? "updated")
@@ -6414,7 +6478,7 @@ instance ToJSON WebProperty where
6414 ("created" .=) <$> _wCreated,
6478 ("created" .=) <$> _wCreated,
6415 ("selfLink" .=) <$> _wSelfLink,
6479 ("selfLink" .=) <$> _wSelfLink,
6416 ("accountId" .=) <$> _wAccountId,
6480 ("accountId" .=) <$> _wAccountId,
6417− ("name" .=) <$> _wName,
6481+ ("name" .=) <$> _wName, ("starred" .=) <$> _wStarred,
6418 ("internalWebPropertyId" .=) <$>
6482 ("internalWebPropertyId" .=) <$>
6419 _wInternalWebPropertyId,
6483 _wInternalWebPropertyId,
6420 ("id" .=) <$> _wId, ("updated" .=) <$> _wUpdated,
6484 ("id" .=) <$> _wId, ("updated" .=) <$> _wUpdated,
@@ -7189,6 +7253,7 @@ data AccountSummary = AccountSummary
7189 { _assKind :: !Text
7253 { _assKind :: !Text
7190 , _assWebProperties :: !(Maybe [WebPropertySummary])
7254 , _assWebProperties :: !(Maybe [WebPropertySummary])
7191 , _assName :: !(Maybe Text)
7255 , _assName :: !(Maybe Text)
7256+ , _assStarred :: !(Maybe Bool)
7192 , _assId :: !(Maybe Text)
7257 , _assId :: !(Maybe Text)
7193 } deriving (Eq,Show,Data,Typeable,Generic)
7258 } deriving (Eq,Show,Data,Typeable,Generic)
7194
7259
@@ -7202,6 +7267,8 @@ data AccountSummary = AccountSummary
7202--
7267--
7203-- * 'assName'
7268-- * 'assName'
7204--
7269--
7270+-- * 'assStarred'
7271+--
7205-- * 'assId'
7272-- * 'assId'
7206accountSummary
7273accountSummary
7207 :: AccountSummary
7274 :: AccountSummary
@@ -7210,6 +7277,7 @@ accountSummary =
7210 { _assKind = "analytics#accountSummary"
7277 { _assKind = "analytics#accountSummary"
7211 , _assWebProperties = Nothing
7278 , _assWebProperties = Nothing
7212 , _assName = Nothing
7279 , _assName = Nothing
7280+ , _assStarred = Nothing
7213 , _assId = Nothing
7281 , _assId = Nothing
7214 }
7282 }
7215
7283
@@ -7229,6 +7297,11 @@ assWebProperties
7229assName :: Lens' AccountSummary (Maybe Text)
7297assName :: Lens' AccountSummary (Maybe Text)
7230assName = lens _assName (\ s a -> s{_assName = a})
7298assName = lens _assName (\ s a -> s{_assName = a})
7231
7299
7300+-- | Indicates whether this account is starred or not.
7301+assStarred :: Lens' AccountSummary (Maybe Bool)
7302+assStarred
7303+ = lens _assStarred (\ s a -> s{_assStarred = a})
7304+
7232-- | Account ID.
7305-- | Account ID.
7233assId :: Lens' AccountSummary (Maybe Text)
7306assId :: Lens' AccountSummary (Maybe Text)
7234assId = lens _assId (\ s a -> s{_assId = a})
7307assId = lens _assId (\ s a -> s{_assId = a})
@@ -7241,6 +7314,7 @@ instance FromJSON AccountSummary where
7241 (o .:? "kind" .!= "analytics#accountSummary") <*>
7314 (o .:? "kind" .!= "analytics#accountSummary") <*>
7242 (o .:? "webProperties" .!= mempty)
7315 (o .:? "webProperties" .!= mempty)
7243 <*> (o .:? "name")
7316 <*> (o .:? "name")
7317+ <*> (o .:? "starred")
7244 <*> (o .:? "id"))
7318 <*> (o .:? "id"))
7245
7319
7246instance ToJSON AccountSummary where
7320instance ToJSON AccountSummary where
@@ -7249,7 +7323,9 @@ instance ToJSON AccountSummary where
7249 (catMaybes
7323 (catMaybes
7250 [Just ("kind" .= _assKind),
7324 [Just ("kind" .= _assKind),
7251 ("webProperties" .=) <$> _assWebProperties,
7325 ("webProperties" .=) <$> _assWebProperties,
7252− ("name" .=) <$> _assName, ("id" .=) <$> _assId])
7326+ ("name" .=) <$> _assName,
7327+ ("starred" .=) <$> _assStarred,
7328+ ("id" .=) <$> _assId])
7253
7329
7254-- | Real time data request query parameters.
7330-- | Real time data request query parameters.
7255--
7331--
gogol-analytics/gen/Network/Google/Resource/Analytics/Data/Ga/Get.hs+32−18
@@ -40,6 +40,7 @@ module Network.Google.Resource.Analytics.Data.Ga.Get
40 , dggEndDate
40 , dggEndDate
41 , dggOutput
41 , dggOutput
42 , dggSort
42 , dggSort
43+ , dggIncludeEmptyRows
43 , dggDimensions
44 , dggDimensions
44 , dggStartIndex
45 , dggStartIndex
45 , dggMaxResults
46 , dggMaxResults
@@ -65,29 +66,31 @@ type DataGaGetResource =
65 QueryParam "filters" Text :>
66 QueryParam "filters" Text :>
66 QueryParam "output" DataGaGetOutput :>
67 QueryParam "output" DataGaGetOutput :>
67 QueryParam "sort" Text :>
68 QueryParam "sort" Text :>
69+ QueryParam "include-empty-rows" Bool :>
68− QueryParam "dimensions" Text :>
70+ QueryParam "dimensions" Text :>
69− QueryParam "start-index" (Textual Int32) :>
71+ QueryParam "start-index" (Textual Int32) :>
70− QueryParam "max-results" (Textual Int32) :>
72+ QueryParam "max-results" (Textual Int32) :>
71− QueryParam "segment" Text :>
73+ QueryParam "segment" Text :>
72− QueryParam "alt" AltJSON :>
74+ QueryParam "alt" AltJSON :>
73− Get '[JSON] GaData
75+ Get '[JSON] GaData
74
76
75-- | Returns Analytics data for a view (profile).
77-- | Returns Analytics data for a view (profile).
76--
78--
77-- /See:/ 'dataGaGet' smart constructor.
79-- /See:/ 'dataGaGet' smart constructor.
78data DataGaGet = DataGaGet
80data DataGaGet = DataGaGet
79− { _dggMetrics :: !Text
81+ { _dggMetrics :: !Text
80− , _dggSamplingLevel :: !(Maybe DataGaGetSamplingLevel)
82+ , _dggSamplingLevel :: !(Maybe DataGaGetSamplingLevel)
81− , _dggFilters :: !(Maybe Text)
83+ , _dggFilters :: !(Maybe Text)
82− , _dggIds :: !Text
84+ , _dggIds :: !Text
83− , _dggEndDate :: !Text
85+ , _dggEndDate :: !Text
84− , _dggOutput :: !(Maybe DataGaGetOutput)
86+ , _dggOutput :: !(Maybe DataGaGetOutput)
85− , _dggSort :: !(Maybe Text)
87+ , _dggSort :: !(Maybe Text)
88+ , _dggIncludeEmptyRows :: !(Maybe Bool)
86− , _dggDimensions :: !(Maybe Text)
89+ , _dggDimensions :: !(Maybe Text)
87− , _dggStartIndex :: !(Maybe (Textual Int32))
90+ , _dggStartIndex :: !(Maybe (Textual Int32))
88− , _dggMaxResults :: !(Maybe (Textual Int32))
91+ , _dggMaxResults :: !(Maybe (Textual Int32))
89− , _dggSegment :: !(Maybe Text)
92+ , _dggSegment :: !(Maybe Text)
90− , _dggStartDate :: !Text
93+ , _dggStartDate :: !Text
91 } deriving (Eq,Show,Data,Typeable,Generic)
94 } deriving (Eq,Show,Data,Typeable,Generic)
92
95
93-- | Creates a value of 'DataGaGet' with the minimum fields required to make a request.
96-- | Creates a value of 'DataGaGet' with the minimum fields required to make a request.
@@ -108,6 +111,8 @@ data DataGaGet = DataGaGet
108--
111--
109-- * 'dggSort'
112-- * 'dggSort'
110--
113--
114+-- * 'dggIncludeEmptyRows'
115+--
111-- * 'dggDimensions'
116-- * 'dggDimensions'
112--
117--
113-- * 'dggStartIndex'
118-- * 'dggStartIndex'
@@ -132,6 +137,7 @@ dataGaGet pDggMetrics_ pDggIds_ pDggEndDate_ pDggStartDate_ =
132 , _dggEndDate = pDggEndDate_
137 , _dggEndDate = pDggEndDate_
133 , _dggOutput = Nothing
138 , _dggOutput = Nothing
134 , _dggSort = Nothing
139 , _dggSort = Nothing
140+ , _dggIncludeEmptyRows = Nothing
135 , _dggDimensions = Nothing
141 , _dggDimensions = Nothing
136 , _dggStartIndex = Nothing
142 , _dggStartIndex = Nothing
137 , _dggMaxResults = Nothing
143 , _dggMaxResults = Nothing
@@ -179,6 +185,13 @@ dggOutput
179dggSort :: Lens' DataGaGet (Maybe Text)
185dggSort :: Lens' DataGaGet (Maybe Text)
180dggSort = lens _dggSort (\ s a -> s{_dggSort = a})
186dggSort = lens _dggSort (\ s a -> s{_dggSort = a})
181
187
188+-- | The response will include empty rows if this parameter is set to true,
189+-- the default is true
190+dggIncludeEmptyRows :: Lens' DataGaGet (Maybe Bool)
191+dggIncludeEmptyRows
192+ = lens _dggIncludeEmptyRows
193+ (\ s a -> s{_dggIncludeEmptyRows = a})
194+
182-- | A comma-separated list of Analytics dimensions. E.g.,
195-- | A comma-separated list of Analytics dimensions. E.g.,
183-- \'ga:browser,ga:city\'.
196-- \'ga:browser,ga:city\'.
184dggDimensions :: Lens' DataGaGet (Maybe Text)
197dggDimensions :: Lens' DataGaGet (Maybe Text)
@@ -223,6 +236,7 @@ instance GoogleRequest DataGaGet where
223 _dggFilters
236 _dggFilters
224 _dggOutput
237 _dggOutput
225 _dggSort
238 _dggSort
239+ _dggIncludeEmptyRows
226 _dggDimensions
240 _dggDimensions
227 _dggStartIndex
241 _dggStartIndex
228 _dggMaxResults
242 _dggMaxResults
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/Goals/Patch.hs+2−4
@@ -20,8 +20,7 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Updates an existing view (profile). This method supports patch
23+-- Updates an existing goal. This method supports patch semantics.
24−-- semantics.
25--
24--
26-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference> for @analytics.management.goals.patch@.
25-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference> for @analytics.management.goals.patch@.
27module Network.Google.Resource.Analytics.Management.Goals.Patch
26module Network.Google.Resource.Analytics.Management.Goals.Patch
@@ -61,8 +60,7 @@ type ManagementGoalsPatchResource =
61 QueryParam "alt" AltJSON :>
60 QueryParam "alt" AltJSON :>
62 ReqBody '[JSON] Goal :> Patch '[JSON] Goal
61 ReqBody '[JSON] Goal :> Patch '[JSON] Goal
63
62
64−-- | Updates an existing view (profile). This method supports patch
63+-- | Updates an existing goal. This method supports patch semantics.
65−-- semantics.
66--
64--
67-- /See:/ 'managementGoalsPatch' smart constructor.
65-- /See:/ 'managementGoalsPatch' smart constructor.
68data ManagementGoalsPatch = ManagementGoalsPatch
66data ManagementGoalsPatch = ManagementGoalsPatch
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/Goals/Update.hs+2−2
@@ -20,7 +20,7 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Updates an existing view (profile).
23+-- Updates an existing goal.
24--
24--
25-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference> for @analytics.management.goals.update@.
25-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference> for @analytics.management.goals.update@.
26module Network.Google.Resource.Analytics.Management.Goals.Update
26module Network.Google.Resource.Analytics.Management.Goals.Update
@@ -60,7 +60,7 @@ type ManagementGoalsUpdateResource =
60 QueryParam "alt" AltJSON :>
60 QueryParam "alt" AltJSON :>
61 ReqBody '[JSON] Goal :> Put '[JSON] Goal
61 ReqBody '[JSON] Goal :> Put '[JSON] Goal
62
62
63−-- | Updates an existing view (profile).
63+-- | Updates an existing goal.
64--
64--
65-- /See:/ 'managementGoalsUpdate' smart constructor.
65-- /See:/ 'managementGoalsUpdate' smart constructor.
66data ManagementGoalsUpdate = ManagementGoalsUpdate
66data ManagementGoalsUpdate = ManagementGoalsUpdate
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/ProFiles/Get.hs+3−3
@@ -85,19 +85,19 @@ managementProFilesGet pMpfgWebPropertyId_ pMpfgProFileId_ pMpfgAccountId_ =
85 , _mpfgAccountId = pMpfgAccountId_
85 , _mpfgAccountId = pMpfgAccountId_
86 }
86 }
87
87
88−-- | Web property ID to retrieve the goal for.
88+-- | Web property ID to retrieve the view (profile) for.
89mpfgWebPropertyId :: Lens' ManagementProFilesGet Text
89mpfgWebPropertyId :: Lens' ManagementProFilesGet Text
90mpfgWebPropertyId
90mpfgWebPropertyId
91 = lens _mpfgWebPropertyId
91 = lens _mpfgWebPropertyId
92 (\ s a -> s{_mpfgWebPropertyId = a})
92 (\ s a -> s{_mpfgWebPropertyId = a})
93
93
94−-- | View (Profile) ID to retrieve the goal for.
94+-- | View (Profile) ID to retrieve the view (profile) for.
95mpfgProFileId :: Lens' ManagementProFilesGet Text
95mpfgProFileId :: Lens' ManagementProFilesGet Text
96mpfgProFileId
96mpfgProFileId
97 = lens _mpfgProFileId
97 = lens _mpfgProFileId
98 (\ s a -> s{_mpfgProFileId = a})
98 (\ s a -> s{_mpfgProFileId = a})
99
99
100−-- | Account ID to retrieve the goal for.
100+-- | Account ID to retrieve the view (profile) for.
101mpfgAccountId :: Lens' ManagementProFilesGet Text
101mpfgAccountId :: Lens' ManagementProFilesGet Text
102mpfgAccountId
102mpfgAccountId
103 = lens _mpfgAccountId
103 = lens _mpfgAccountId
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/UnSampledReports/Delete.hsnew file+133
@@ -0,0 +1,133 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Analytics.Management.UnSampledReports.Delete
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Deletes an unsampled report.
24+--
25+-- /See:/ <https://developers.google.com/analytics/ Google Analytics API Reference> for @analytics.management.unsampledReports.delete@.
26+module Network.Google.Resource.Analytics.Management.UnSampledReports.Delete
27+ (
28+ -- * REST Resource
29+ ManagementUnSampledReportsDeleteResource
30+
31+ -- * Creating a Request
32+ , managementUnSampledReportsDelete
33+ , ManagementUnSampledReportsDelete
34+
35+ -- * Request Lenses
36+ , musrdWebPropertyId
37+ , musrdProFileId
38+ , musrdAccountId
39+ , musrdUnSampledReportId
40+ ) where
41+
42+import Network.Google.Analytics.Types
43+import Network.Google.Prelude
44+
45+-- | A resource alias for @analytics.management.unsampledReports.delete@ method which the
46+-- 'ManagementUnSampledReportsDelete' request conforms to.
47+type ManagementUnSampledReportsDeleteResource =
48+ "analytics" :>
49+ "v3" :>
50+ "management" :>
51+ "accounts" :>
52+ Capture "accountId" Text :>
53+ "webproperties" :>
54+ Capture "webPropertyId" Text :>
55+ "profiles" :>
56+ Capture "profileId" Text :>
57+ "unsampledReports" :>
58+ Capture "unsampledReportId" Text :>
59+ QueryParam "alt" AltJSON :> Delete '[JSON] ()
60+
61+-- | Deletes an unsampled report.
62+--
63+-- /See:/ 'managementUnSampledReportsDelete' smart constructor.
64+data ManagementUnSampledReportsDelete = ManagementUnSampledReportsDelete
65+ { _musrdWebPropertyId :: !Text
66+ , _musrdProFileId :: !Text
67+ , _musrdAccountId :: !Text
68+ , _musrdUnSampledReportId :: !Text
69+ } deriving (Eq,Show,Data,Typeable,Generic)
70+
71+-- | Creates a value of 'ManagementUnSampledReportsDelete' with the minimum fields required to make a request.
72+--
73+-- Use one of the following lenses to modify other fields as desired:
74+--
75+-- * 'musrdWebPropertyId'
76+--
77+-- * 'musrdProFileId'
78+--
79+-- * 'musrdAccountId'
80+--
81+-- * 'musrdUnSampledReportId'
82+managementUnSampledReportsDelete
83+ :: Text -- ^ 'musrdWebPropertyId'
84+ -> Text -- ^ 'musrdProFileId'
85+ -> Text -- ^ 'musrdAccountId'
86+ -> Text -- ^ 'musrdUnSampledReportId'
87+ -> ManagementUnSampledReportsDelete
88+managementUnSampledReportsDelete pMusrdWebPropertyId_ pMusrdProFileId_ pMusrdAccountId_ pMusrdUnSampledReportId_ =
89+ ManagementUnSampledReportsDelete
90+ { _musrdWebPropertyId = pMusrdWebPropertyId_
91+ , _musrdProFileId = pMusrdProFileId_
92+ , _musrdAccountId = pMusrdAccountId_
93+ , _musrdUnSampledReportId = pMusrdUnSampledReportId_
94+ }
95+
96+-- | Web property ID to delete the unsampled reports for.
97+musrdWebPropertyId :: Lens' ManagementUnSampledReportsDelete Text
98+musrdWebPropertyId
99+ = lens _musrdWebPropertyId
100+ (\ s a -> s{_musrdWebPropertyId = a})
101+
102+-- | View (Profile) ID to delete the unsampled report for.
103+musrdProFileId :: Lens' ManagementUnSampledReportsDelete Text
104+musrdProFileId
105+ = lens _musrdProFileId
106+ (\ s a -> s{_musrdProFileId = a})
107+
108+-- | Account ID to delete the unsampled report for.
109+musrdAccountId :: Lens' ManagementUnSampledReportsDelete Text
110+musrdAccountId
111+ = lens _musrdAccountId
112+ (\ s a -> s{_musrdAccountId = a})
113+
114+-- | ID of the unsampled report to be deleted.
115+musrdUnSampledReportId :: Lens' ManagementUnSampledReportsDelete Text
116+musrdUnSampledReportId
117+ = lens _musrdUnSampledReportId
118+ (\ s a -> s{_musrdUnSampledReportId = a})
119+
120+instance GoogleRequest
121+ ManagementUnSampledReportsDelete where
122+ type Rs ManagementUnSampledReportsDelete = ()
123+ requestClient ManagementUnSampledReportsDelete{..}
124+ = go _musrdAccountId _musrdWebPropertyId
125+ _musrdProFileId
126+ _musrdUnSampledReportId
127+ (Just AltJSON)
128+ analyticsService
129+ where go
130+ = buildClient
131+ (Proxy ::
132+ Proxy ManagementUnSampledReportsDeleteResource)
133+ mempty
gogol-analytics/gogol-analytics.cabal+2−1
@@ -14,7 +14,7 @@ cabal-version: >= 1.10
14extra-source-files: README.md
14extra-source-files: README.md
15
15
16description:
16description:
17− View and manage your Google Analytics data
17+ Views and manages your Google Analytics data.
18 .
18 .
19 /Warning:/ This is an experimental prototype/preview release which is still
19 /Warning:/ This is an experimental prototype/preview release which is still
20 under exploratory development and not intended for public use, caveat emptor!
20 under exploratory development and not intended for public use, caveat emptor!
@@ -89,6 +89,7 @@ library
89 , Network.Google.Resource.Analytics.Management.ProFiles.Patch
89 , Network.Google.Resource.Analytics.Management.ProFiles.Patch
90 , Network.Google.Resource.Analytics.Management.ProFiles.Update
90 , Network.Google.Resource.Analytics.Management.ProFiles.Update
91 , Network.Google.Resource.Analytics.Management.Segments.List
91 , Network.Google.Resource.Analytics.Management.Segments.List
92+ , Network.Google.Resource.Analytics.Management.UnSampledReports.Delete
92 , Network.Google.Resource.Analytics.Management.UnSampledReports.Get
93 , Network.Google.Resource.Analytics.Management.UnSampledReports.Get
93 , Network.Google.Resource.Analytics.Management.UnSampledReports.Insert
94 , Network.Google.Resource.Analytics.Management.UnSampledReports.Insert
94 , Network.Google.Resource.Analytics.Management.UnSampledReports.List
95 , Network.Google.Resource.Analytics.Management.UnSampledReports.List
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise.hs+115−3
@@ -16,7 +16,7 @@
16-- Allows MDMs\/EMMs and enterprises to manage the deployment of apps to
16-- Allows MDMs\/EMMs and enterprises to manage the deployment of apps to
17-- Android for Work users.
17-- Android for Work users.
18--
18--
19−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference>
19+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference>
20module Network.Google.AndroidEnterprise
20module Network.Google.AndroidEnterprise
21 (
21 (
22 -- * Service Configuration
22 -- * Service Configuration
@@ -84,6 +84,9 @@ module Network.Google.AndroidEnterprise
84 -- ** androidenterprise.enterprises.get
84 -- ** androidenterprise.enterprises.get
85 , module Network.Google.Resource.AndroidEnterprise.Enterprises.Get
85 , module Network.Google.Resource.AndroidEnterprise.Enterprises.Get
86
86
87+ -- ** androidenterprise.enterprises.getStoreLayout
88+ , module Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout
89+
87 -- ** androidenterprise.enterprises.insert
90 -- ** androidenterprise.enterprises.insert
88 , module Network.Google.Resource.AndroidEnterprise.Enterprises.Insert
91 , module Network.Google.Resource.AndroidEnterprise.Enterprises.Insert
89
92
@@ -96,6 +99,9 @@ module Network.Google.AndroidEnterprise
96 -- ** androidenterprise.enterprises.setAccount
99 -- ** androidenterprise.enterprises.setAccount
97 , module Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount
100 , module Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount
98
101
102+ -- ** androidenterprise.enterprises.setStoreLayout
103+ , module Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout
104+
99 -- ** androidenterprise.enterprises.unenroll
105 -- ** androidenterprise.enterprises.unenroll
100 , module Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll
106 , module Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll
101
107
@@ -159,6 +165,42 @@ module Network.Google.AndroidEnterprise
159 -- ** androidenterprise.products.updatePermissions
165 -- ** androidenterprise.products.updatePermissions
160 , module Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
166 , module Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
161
167
168+ -- ** androidenterprise.storelayoutclusters.delete
169+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete
170+
171+ -- ** androidenterprise.storelayoutclusters.get
172+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get
173+
174+ -- ** androidenterprise.storelayoutclusters.insert
175+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert
176+
177+ -- ** androidenterprise.storelayoutclusters.list
178+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List
179+
180+ -- ** androidenterprise.storelayoutclusters.patch
181+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch
182+
183+ -- ** androidenterprise.storelayoutclusters.update
184+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update
185+
186+ -- ** androidenterprise.storelayoutpages.delete
187+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete
188+
189+ -- ** androidenterprise.storelayoutpages.get
190+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get
191+
192+ -- ** androidenterprise.storelayoutpages.insert
193+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert
194+
195+ -- ** androidenterprise.storelayoutpages.list
196+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List
197+
198+ -- ** androidenterprise.storelayoutpages.patch
199+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch
200+
201+ -- ** androidenterprise.storelayoutpages.update
202+ , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update
203+
162 -- ** androidenterprise.users.generateToken
204 -- ** androidenterprise.users.generateToken
163 , module Network.Google.Resource.AndroidEnterprise.Users.GenerateToken
205 , module Network.Google.Resource.AndroidEnterprise.Users.GenerateToken
164
206
@@ -189,6 +231,12 @@ module Network.Google.AndroidEnterprise
189 , glProductId
231 , glProductId
190 , glAcquisitionKind
232 , glAcquisitionKind
191
233
234+ -- ** StoreLayoutPagesListResponse
235+ , StoreLayoutPagesListResponse
236+ , storeLayoutPagesListResponse
237+ , slplrKind
238+ , slplrPage
239+
192 -- ** EnterpriseAccount
240 -- ** EnterpriseAccount
193 , EnterpriseAccount
241 , EnterpriseAccount
194 , enterpriseAccount
242 , enterpriseAccount
@@ -228,6 +276,21 @@ module Network.Google.AndroidEnterprise
228 , auiApprovalURL
276 , auiApprovalURL
229 , auiKind
277 , auiKind
230
278
279+ -- ** StoreLayoutClustersListResponse
280+ , StoreLayoutClustersListResponse
281+ , storeLayoutClustersListResponse
282+ , slclrCluster
283+ , slclrKind
284+
285+ -- ** StoreCluster
286+ , StoreCluster
287+ , storeCluster
288+ , scKind
289+ , scName
290+ , scOrderInPage
291+ , scId
292+ , scProductId
293+
231 -- ** ProductPermission
294 -- ** ProductPermission
232 , ProductPermission
295 , ProductPermission
233 , productPermission
296 , productPermission
@@ -311,6 +374,14 @@ module Network.Google.AndroidEnterprise
311 , productsGenerateApprovalURLResponse
374 , productsGenerateApprovalURLResponse
312 , pgaurURL
375 , pgaurURL
313
376
377+ -- ** StorePage
378+ , StorePage
379+ , storePage
380+ , spKind
381+ , spLink
382+ , spName
383+ , spId
384+
314 -- ** EnterprisesSendTestPushNotificationResponse
385 -- ** EnterprisesSendTestPushNotificationResponse
315 , EnterprisesSendTestPushNotificationResponse
386 , EnterprisesSendTestPushNotificationResponse
316 , enterprisesSendTestPushNotificationResponse
387 , enterprisesSendTestPushNotificationResponse
@@ -329,6 +400,12 @@ module Network.Google.AndroidEnterprise
329 , arsKind
400 , arsKind
330 , arsRestrictions
401 , arsRestrictions
331
402
403+ -- ** LocalizedText
404+ , LocalizedText
405+ , localizedText
406+ , ltText
407+ , ltLocale
408+
332 -- ** UserToken
409 -- ** UserToken
333 , UserToken
410 , UserToken
334 , userToken
411 , userToken
@@ -350,6 +427,12 @@ module Network.Google.AndroidEnterprise
350 , eName
427 , eName
351 , eId
428 , eId
352
429
430+ -- ** StoreLayout
431+ , StoreLayout
432+ , storeLayout
433+ , slKind
434+ , slHomepageId
435+
353 -- ** Product
436 -- ** Product
354 , Product
437 , Product
355 , product
438 , product
@@ -358,6 +441,7 @@ module Network.Google.AndroidEnterprise
358 , pWorkDetailsURL
441 , pWorkDetailsURL
359 , pRequiresContainerApp
442 , pRequiresContainerApp
360 , pAppVersion
443 , pAppVersion
444+ , pProductPricing
361 , pDistributionChannel
445 , pDistributionChannel
362 , pIconURL
446 , pIconURL
363 , pTitle
447 , pTitle
@@ -424,10 +508,12 @@ import Network.Google.Resource.AndroidEnterprise.Devices.SetState
424import Network.Google.Resource.AndroidEnterprise.Enterprises.Delete
508import Network.Google.Resource.AndroidEnterprise.Enterprises.Delete
425import Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll
509import Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll
426import Network.Google.Resource.AndroidEnterprise.Enterprises.Get
510import Network.Google.Resource.AndroidEnterprise.Enterprises.Get
511+import Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout
427import Network.Google.Resource.AndroidEnterprise.Enterprises.Insert
512import Network.Google.Resource.AndroidEnterprise.Enterprises.Insert
428import Network.Google.Resource.AndroidEnterprise.Enterprises.List
513import Network.Google.Resource.AndroidEnterprise.Enterprises.List
429import Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification
514import Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification
430import Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount
515import Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount
516+import Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout
431import Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll
517import Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll
432import Network.Google.Resource.AndroidEnterprise.Entitlements.Delete
518import Network.Google.Resource.AndroidEnterprise.Entitlements.Delete
433import Network.Google.Resource.AndroidEnterprise.Entitlements.Get
519import Network.Google.Resource.AndroidEnterprise.Entitlements.Get
@@ -449,6 +535,18 @@ import Network.Google.Resource.AndroidEnterprise.Products.Get
449import Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema
535import Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema
450import Network.Google.Resource.AndroidEnterprise.Products.GetPermissions
536import Network.Google.Resource.AndroidEnterprise.Products.GetPermissions
451import Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
537import Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
538+import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete
539+import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get
540+import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert
541+import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List
542+import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch
543+import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update
544+import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete
545+import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get
546+import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert
547+import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List
548+import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch
549+import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update
452import Network.Google.Resource.AndroidEnterprise.Users.GenerateToken
550import Network.Google.Resource.AndroidEnterprise.Users.GenerateToken
453import Network.Google.Resource.AndroidEnterprise.Users.Get
551import Network.Google.Resource.AndroidEnterprise.Users.Get
454import Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet
552import Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet
@@ -462,8 +560,14 @@ TODO
462
560
463-- | Represents the entirety of the methods and resources available for the Google Play EMM API service.
561-- | Represents the entirety of the methods and resources available for the Google Play EMM API service.
464type AndroidEnterpriseAPI =
562type AndroidEnterpriseAPI =
563+ StorelayoutclustersInsertResource :<|>
564+ StorelayoutclustersListResource
565+ :<|> StorelayoutclustersPatchResource
566+ :<|> StorelayoutclustersGetResource
567+ :<|> StorelayoutclustersDeleteResource
568+ :<|> StorelayoutclustersUpdateResource
465− CollectionviewersListResource :<|>
569+ :<|> CollectionviewersListResource
466− CollectionviewersPatchResource
570+ :<|> CollectionviewersPatchResource
467 :<|> CollectionviewersGetResource
571 :<|> CollectionviewersGetResource
468 :<|> CollectionviewersDeleteResource
572 :<|> CollectionviewersDeleteResource
469 :<|> CollectionviewersUpdateResource
573 :<|> CollectionviewersUpdateResource
@@ -478,6 +582,12 @@ type AndroidEnterpriseAPI =
478 :<|> InstallsGetResource
582 :<|> InstallsGetResource
479 :<|> InstallsDeleteResource
583 :<|> InstallsDeleteResource
480 :<|> InstallsUpdateResource
584 :<|> InstallsUpdateResource
585+ :<|> StorelayoutpagesInsertResource
586+ :<|> StorelayoutpagesListResource
587+ :<|> StorelayoutpagesPatchResource
588+ :<|> StorelayoutpagesGetResource
589+ :<|> StorelayoutpagesDeleteResource
590+ :<|> StorelayoutpagesUpdateResource
481 :<|> CollectionsInsertResource
591 :<|> CollectionsInsertResource
482 :<|> CollectionsListResource
592 :<|> CollectionsListResource
483 :<|> CollectionsPatchResource
593 :<|> CollectionsPatchResource
@@ -487,10 +597,12 @@ type AndroidEnterpriseAPI =
487 :<|> EnterprisesInsertResource
597 :<|> EnterprisesInsertResource
488 :<|> EnterprisesListResource
598 :<|> EnterprisesListResource
489 :<|> EnterprisesUnenrollResource
599 :<|> EnterprisesUnenrollResource
600+ :<|> EnterprisesGetStoreLayoutResource
490 :<|> EnterprisesSetAccountResource
601 :<|> EnterprisesSetAccountResource
491 :<|> EnterprisesEnrollResource
602 :<|> EnterprisesEnrollResource
492 :<|> EnterprisesGetResource
603 :<|> EnterprisesGetResource
493 :<|> EnterprisesSendTestPushNotificationResource
604 :<|> EnterprisesSendTestPushNotificationResource
605+ :<|> EnterprisesSetStoreLayoutResource
494 :<|> EnterprisesDeleteResource
606 :<|> EnterprisesDeleteResource
495 :<|> GrouplicensesListResource
607 :<|> GrouplicensesListResource
496 :<|> GrouplicensesGetResource
608 :<|> GrouplicensesGetResource
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types.hs+43−1
@@ -31,6 +31,12 @@ module Network.Google.AndroidEnterprise.Types
31 , glProductId
31 , glProductId
32 , glAcquisitionKind
32 , glAcquisitionKind
33
33
34+ -- * StoreLayoutPagesListResponse
35+ , StoreLayoutPagesListResponse
36+ , storeLayoutPagesListResponse
37+ , slplrKind
38+ , slplrPage
39+
34 -- * EnterpriseAccount
40 -- * EnterpriseAccount
35 , EnterpriseAccount
41 , EnterpriseAccount
36 , enterpriseAccount
42 , enterpriseAccount
@@ -70,6 +76,21 @@ module Network.Google.AndroidEnterprise.Types
70 , auiApprovalURL
76 , auiApprovalURL
71 , auiKind
77 , auiKind
72
78
79+ -- * StoreLayoutClustersListResponse
80+ , StoreLayoutClustersListResponse
81+ , storeLayoutClustersListResponse
82+ , slclrCluster
83+ , slclrKind
84+
85+ -- * StoreCluster
86+ , StoreCluster
87+ , storeCluster
88+ , scKind
89+ , scName
90+ , scOrderInPage
91+ , scId
92+ , scProductId
93+
73 -- * ProductPermission
94 -- * ProductPermission
74 , ProductPermission
95 , ProductPermission
75 , productPermission
96 , productPermission
@@ -153,6 +174,14 @@ module Network.Google.AndroidEnterprise.Types
153 , productsGenerateApprovalURLResponse
174 , productsGenerateApprovalURLResponse
154 , pgaurURL
175 , pgaurURL
155
176
177+ -- * StorePage
178+ , StorePage
179+ , storePage
180+ , spKind
181+ , spLink
182+ , spName
183+ , spId
184+
156 -- * EnterprisesSendTestPushNotificationResponse
185 -- * EnterprisesSendTestPushNotificationResponse
157 , EnterprisesSendTestPushNotificationResponse
186 , EnterprisesSendTestPushNotificationResponse
158 , enterprisesSendTestPushNotificationResponse
187 , enterprisesSendTestPushNotificationResponse
@@ -171,6 +200,12 @@ module Network.Google.AndroidEnterprise.Types
171 , arsKind
200 , arsKind
172 , arsRestrictions
201 , arsRestrictions
173
202
203+ -- * LocalizedText
204+ , LocalizedText
205+ , localizedText
206+ , ltText
207+ , ltLocale
208+
174 -- * UserToken
209 -- * UserToken
175 , UserToken
210 , UserToken
176 , userToken
211 , userToken
@@ -192,6 +227,12 @@ module Network.Google.AndroidEnterprise.Types
192 , eName
227 , eName
193 , eId
228 , eId
194
229
230+ -- * StoreLayout
231+ , StoreLayout
232+ , storeLayout
233+ , slKind
234+ , slHomepageId
235+
195 -- * Product
236 -- * Product
196 , Product
237 , Product
197 , product
238 , product
@@ -200,6 +241,7 @@ module Network.Google.AndroidEnterprise.Types
200 , pWorkDetailsURL
241 , pWorkDetailsURL
201 , pRequiresContainerApp
242 , pRequiresContainerApp
202 , pAppVersion
243 , pAppVersion
244+ , pProductPricing
203 , pDistributionChannel
245 , pDistributionChannel
204 , pIconURL
246 , pIconURL
205 , pTitle
247 , pTitle
@@ -251,7 +293,7 @@ import Network.Google.AndroidEnterprise.Types.Sum
251import Network.Google.Prelude
293import Network.Google.Prelude
252
294
253-- | Default request referring to version 'v1' of the Google Play EMM API. This contains the host and root path used as a starting point for constructing service requests.
295-- | Default request referring to version 'v1' of the Google Play EMM API. This contains the host and root path used as a starting point for constructing service requests.
254−androidEnterpriseService :: Service
296+androidEnterpriseService :: ServiceConfig
255androidEnterpriseService
297androidEnterpriseService
256 = defaultService (ServiceId "androidenterprise:v1")
298 = defaultService (ServiceId "androidenterprise:v1")
257 "www.googleapis.com"
299 "www.googleapis.com"
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types/Product.hs+409−22
@@ -145,6 +145,58 @@ instance ToJSON GroupLicense where
145 ("productId" .=) <$> _glProductId,
145 ("productId" .=) <$> _glProductId,
146 ("acquisitionKind" .=) <$> _glAcquisitionKind])
146 ("acquisitionKind" .=) <$> _glAcquisitionKind])
147
147
148+-- | The store page resources for the enterprise.
149+--
150+-- /See:/ 'storeLayoutPagesListResponse' smart constructor.
151+data StoreLayoutPagesListResponse = StoreLayoutPagesListResponse
152+ { _slplrKind :: !Text
153+ , _slplrPage :: !(Maybe [StorePage])
154+ } deriving (Eq,Show,Data,Typeable,Generic)
155+
156+-- | Creates a value of 'StoreLayoutPagesListResponse' with the minimum fields required to make a request.
157+--
158+-- Use one of the following lenses to modify other fields as desired:
159+--
160+-- * 'slplrKind'
161+--
162+-- * 'slplrPage'
163+storeLayoutPagesListResponse
164+ :: StoreLayoutPagesListResponse
165+storeLayoutPagesListResponse =
166+ StoreLayoutPagesListResponse
167+ { _slplrKind = "androidenterprise#storeLayoutPagesListResponse"
168+ , _slplrPage = Nothing
169+ }
170+
171+-- | Identifies what kind of resource this is. Value: the fixed string
172+-- \"androidenterprise#storeLayoutPagesListResponse\".
173+slplrKind :: Lens' StoreLayoutPagesListResponse Text
174+slplrKind
175+ = lens _slplrKind (\ s a -> s{_slplrKind = a})
176+
177+-- | A store page of an enterprise.
178+slplrPage :: Lens' StoreLayoutPagesListResponse [StorePage]
179+slplrPage
180+ = lens _slplrPage (\ s a -> s{_slplrPage = a}) .
181+ _Default
182+ . _Coerce
183+
184+instance FromJSON StoreLayoutPagesListResponse where
185+ parseJSON
186+ = withObject "StoreLayoutPagesListResponse"
187+ (\ o ->
188+ StoreLayoutPagesListResponse <$>
189+ (o .:? "kind" .!=
190+ "androidenterprise#storeLayoutPagesListResponse")
191+ <*> (o .:? "page" .!= mempty))
192+
193+instance ToJSON StoreLayoutPagesListResponse where
194+ toJSON StoreLayoutPagesListResponse{..}
195+ = object
196+ (catMaybes
197+ [Just ("kind" .= _slplrKind),
198+ ("page" .=) <$> _slplrPage])
199+
148-- | A service account that can be used to authenticate as the enterprise to
200-- | A service account that can be used to authenticate as the enterprise to
149-- API calls that require such authentication.
201-- API calls that require such authentication.
150--
202--
@@ -501,6 +553,152 @@ instance ToJSON ApprovalURLInfo where
501 [("approvalUrl" .=) <$> _auiApprovalURL,
553 [("approvalUrl" .=) <$> _auiApprovalURL,
502 Just ("kind" .= _auiKind)])
554 Just ("kind" .= _auiKind)])
503
555
556+-- | The store page resources for the enterprise.
557+--
558+-- /See:/ 'storeLayoutClustersListResponse' smart constructor.
559+data StoreLayoutClustersListResponse = StoreLayoutClustersListResponse
560+ { _slclrCluster :: !(Maybe [StoreCluster])
561+ , _slclrKind :: !Text
562+ } deriving (Eq,Show,Data,Typeable,Generic)
563+
564+-- | Creates a value of 'StoreLayoutClustersListResponse' with the minimum fields required to make a request.
565+--
566+-- Use one of the following lenses to modify other fields as desired:
567+--
568+-- * 'slclrCluster'
569+--
570+-- * 'slclrKind'
571+storeLayoutClustersListResponse
572+ :: StoreLayoutClustersListResponse
573+storeLayoutClustersListResponse =
574+ StoreLayoutClustersListResponse
575+ { _slclrCluster = Nothing
576+ , _slclrKind = "androidenterprise#storeLayoutClustersListResponse"
577+ }
578+
579+-- | A store cluster of an enterprise.
580+slclrCluster :: Lens' StoreLayoutClustersListResponse [StoreCluster]
581+slclrCluster
582+ = lens _slclrCluster (\ s a -> s{_slclrCluster = a})
583+ . _Default
584+ . _Coerce
585+
586+-- | Identifies what kind of resource this is. Value: the fixed string
587+-- \"androidenterprise#storeLayoutClustersListResponse\".
588+slclrKind :: Lens' StoreLayoutClustersListResponse Text
589+slclrKind
590+ = lens _slclrKind (\ s a -> s{_slclrKind = a})
591+
592+instance FromJSON StoreLayoutClustersListResponse
593+ where
594+ parseJSON
595+ = withObject "StoreLayoutClustersListResponse"
596+ (\ o ->
597+ StoreLayoutClustersListResponse <$>
598+ (o .:? "cluster" .!= mempty) <*>
599+ (o .:? "kind" .!=
600+ "androidenterprise#storeLayoutClustersListResponse"))
601+
602+instance ToJSON StoreLayoutClustersListResponse where
603+ toJSON StoreLayoutClustersListResponse{..}
604+ = object
605+ (catMaybes
606+ [("cluster" .=) <$> _slclrCluster,
607+ Just ("kind" .= _slclrKind)])
608+
609+-- | Definition of a Google Play for Work store cluster, a list of products
610+-- displayed as part of a store page.
611+--
612+-- /See:/ 'storeCluster' smart constructor.
613+data StoreCluster = StoreCluster
614+ { _scKind :: !Text
615+ , _scName :: !(Maybe [LocalizedText])
616+ , _scOrderInPage :: !(Maybe Text)
617+ , _scId :: !(Maybe Text)
618+ , _scProductId :: !(Maybe [Text])
619+ } deriving (Eq,Show,Data,Typeable,Generic)
620+
621+-- | Creates a value of 'StoreCluster' with the minimum fields required to make a request.
622+--
623+-- Use one of the following lenses to modify other fields as desired:
624+--
625+-- * 'scKind'
626+--
627+-- * 'scName'
628+--
629+-- * 'scOrderInPage'
630+--
631+-- * 'scId'
632+--
633+-- * 'scProductId'
634+storeCluster
635+ :: StoreCluster
636+storeCluster =
637+ StoreCluster
638+ { _scKind = "androidenterprise#storeCluster"
639+ , _scName = Nothing
640+ , _scOrderInPage = Nothing
641+ , _scId = Nothing
642+ , _scProductId = Nothing
643+ }
644+
645+-- | Identifies what kind of resource this is. Value: the fixed string
646+-- \"androidenterprise#storeCluster\".
647+scKind :: Lens' StoreCluster Text
648+scKind = lens _scKind (\ s a -> s{_scKind = a})
649+
650+-- | Ordered list of localized strings giving the name of this page. The text
651+-- displayed is the one that best matches the user locale, or the first
652+-- entry if there is no good match. There needs to be at least one entry.
653+scName :: Lens' StoreCluster [LocalizedText]
654+scName
655+ = lens _scName (\ s a -> s{_scName = a}) . _Default .
656+ _Coerce
657+
658+-- | String (US-ASCII only) used to determine order of this cluster within
659+-- the parent page\'s elements. Page elements are sorted in lexicographic
660+-- order of this field. Duplicated values are allowed, but ordering between
661+-- elements with duplicate order is undefined. The value of this field is
662+-- never visible to a user, it is used solely for the purpose of defining
663+-- an ordering. Maximum length is 20 characters.
664+scOrderInPage :: Lens' StoreCluster (Maybe Text)
665+scOrderInPage
666+ = lens _scOrderInPage
667+ (\ s a -> s{_scOrderInPage = a})
668+
669+-- | Unique ID of this cluster. Assigned by the server. Immutable once
670+-- assigned.
671+scId :: Lens' StoreCluster (Maybe Text)
672+scId = lens _scId (\ s a -> s{_scId = a})
673+
674+-- | List of products in the order they are displayed in the cluster. There
675+-- should not be duplicates within a cluster.
676+scProductId :: Lens' StoreCluster [Text]
677+scProductId
678+ = lens _scProductId (\ s a -> s{_scProductId = a}) .
679+ _Default
680+ . _Coerce
681+
682+instance FromJSON StoreCluster where
683+ parseJSON
684+ = withObject "StoreCluster"
685+ (\ o ->
686+ StoreCluster <$>
687+ (o .:? "kind" .!= "androidenterprise#storeCluster")
688+ <*> (o .:? "name" .!= mempty)
689+ <*> (o .:? "orderInPage")
690+ <*> (o .:? "id")
691+ <*> (o .:? "productId" .!= mempty))
692+
693+instance ToJSON StoreCluster where
694+ toJSON StoreCluster{..}
695+ = object
696+ (catMaybes
697+ [Just ("kind" .= _scKind), ("name" .=) <$> _scName,
698+ ("orderInPage" .=) <$> _scOrderInPage,
699+ ("id" .=) <$> _scId,
700+ ("productId" .=) <$> _scProductId])
701+
504-- | A product permissions resource represents the set of permissions
702-- | A product permissions resource represents the set of permissions
505-- required by a specific app and whether or not they have been accepted by
703-- required by a specific app and whether or not they have been accepted by
506-- an enterprise admin. The API can be used to read the set of permissions,
704-- an enterprise admin. The API can be used to read the set of permissions,
@@ -552,7 +750,7 @@ instance ToJSON ProductPermission where
552 [("state" .=) <$> _ppState,
750 [("state" .=) <$> _ppState,
553 ("permissionId" .=) <$> _ppPermissionId])
751 ("permissionId" .=) <$> _ppPermissionId])
554
752
555−-- | A device resource represents a mobile device managed by the MDM and
753+-- | A device resource represents a mobile device managed by the EMM and
556-- belonging to a specific enterprise user. This collection cannot be
754-- belonging to a specific enterprise user. This collection cannot be
557-- modified via the API; it is automatically populated as devices are set
755-- modified via the API; it is automatically populated as devices are set
558-- up to be managed.
756-- up to be managed.
@@ -587,11 +785,11 @@ device =
587dKind :: Lens' Device Text
785dKind :: Lens' Device Text
588dKind = lens _dKind (\ s a -> s{_dKind = a})
786dKind = lens _dKind (\ s a -> s{_dKind = a})
589
787
590−-- | The mechanism by which this device is managed by the MDM.
788+-- | The mechanism by which this device is managed by the EMM.
591−-- \"managedDevice\" means that the MDM\'s app is a device owner.
789+-- \"managedDevice\" means that the EMM\'s app is a device owner.
592−-- \"managedProfile\" means that the MDM\'s app is the profile owner (and
790+-- \"managedProfile\" means that the EMM\'s app is the profile owner (and
593-- there is a separate personal profile which is not managed).
791-- there is a separate personal profile which is not managed).
594−-- \"containerApp\" means that the MDM\'s app is managing the Android for
792+-- \"containerApp\" means that the EMM\'s app is managing the Android for
595-- Work container app on the device.
793-- Work container app on the device.
596dManagementType :: Lens' Device (Maybe Text)
794dManagementType :: Lens' Device (Maybe Text)
597dManagementType
795dManagementType
@@ -1192,12 +1390,12 @@ instance ToJSON Install where
1192-- | A user resource represents an individual user within the enterprise\'s
1390-- | A user resource represents an individual user within the enterprise\'s
1193-- domain. Note that each user is associated with a Google account based on
1391-- domain. Note that each user is associated with a Google account based on
1194-- the user\'s corporate email address (which must be in one of the
1392-- the user\'s corporate email address (which must be in one of the
1195−-- enterprise\'s domains). As part of installing an MDM app to manage a
1393+-- enterprise\'s domains). As part of installing the EMM\'s DPC app to
1196−-- device the Google account must be provisioned to the device, and so the
1394+-- manage a device the Google account must be provisioned to the device,
1197−-- user resource must be created before that. This can be done using the
1395+-- and so the user resource must be created before that. This can be done
1198−-- Google Admin SDK Directory API. The ID for a user is an opaque string.
1396+-- using the Google Admin SDK Directory API. The ID for a user is an opaque
1199−-- It can be retrieved using the list method queried by the user\'s primary
1397+-- string. It can be retrieved using the list method queried by the user\'s
1200−-- email address.
1398+-- primary email address.
1201--
1399--
1202-- /See:/ 'user' smart constructor.
1400-- /See:/ 'user' smart constructor.
1203data User = User
1401data User = User
@@ -1233,7 +1431,8 @@ uKind = lens _uKind (\ s a -> s{_uKind = a})
1233uId :: Lens' User (Maybe Text)
1431uId :: Lens' User (Maybe Text)
1234uId = lens _uId (\ s a -> s{_uId = a})
1432uId = lens _uId (\ s a -> s{_uId = a})
1235
1433
1236−-- | The user\'s primary email, e.g. \"jsmith\'example.com\".
1434+-- | The user\'s primary email, e.g. \"jsmith\'example.com\". Will always be
1435+-- set for Google managed users and not set for EMM managed users.
1237uPrimaryEmail :: Lens' User (Maybe Text)
1436uPrimaryEmail :: Lens' User (Maybe Text)
1238uPrimaryEmail
1437uPrimaryEmail
1239 = lens _uPrimaryEmail
1438 = lens _uPrimaryEmail
@@ -1297,6 +1496,84 @@ instance ToJSON ProductsGenerateApprovalURLResponse
1297 toJSON ProductsGenerateApprovalURLResponse{..}
1496 toJSON ProductsGenerateApprovalURLResponse{..}
1298 = object (catMaybes [("url" .=) <$> _pgaurURL])
1497 = object (catMaybes [("url" .=) <$> _pgaurURL])
1299
1498
1499+-- | Definition of a Google Play for Work store page, made of a localized
1500+-- name and links to other pages. A page also contains clusters defined as
1501+-- a subcollection.
1502+--
1503+-- /See:/ 'storePage' smart constructor.
1504+data StorePage = StorePage
1505+ { _spKind :: !Text
1506+ , _spLink :: !(Maybe [Text])
1507+ , _spName :: !(Maybe [LocalizedText])
1508+ , _spId :: !(Maybe Text)
1509+ } deriving (Eq,Show,Data,Typeable,Generic)
1510+
1511+-- | Creates a value of 'StorePage' with the minimum fields required to make a request.
1512+--
1513+-- Use one of the following lenses to modify other fields as desired:
1514+--
1515+-- * 'spKind'
1516+--
1517+-- * 'spLink'
1518+--
1519+-- * 'spName'
1520+--
1521+-- * 'spId'
1522+storePage
1523+ :: StorePage
1524+storePage =
1525+ StorePage
1526+ { _spKind = "androidenterprise#storePage"
1527+ , _spLink = Nothing
1528+ , _spName = Nothing
1529+ , _spId = Nothing
1530+ }
1531+
1532+-- | Identifies what kind of resource this is. Value: the fixed string
1533+-- \"androidenterprise#storePage\".
1534+spKind :: Lens' StorePage Text
1535+spKind = lens _spKind (\ s a -> s{_spKind = a})
1536+
1537+-- | Ordered list of pages a user should be able to reach from this page. The
1538+-- pages must exist, must not be this page, and once a link is created the
1539+-- page linked to cannot be deleted until all links to it are removed. It
1540+-- is recommended that the basic pages are created first, before adding the
1541+-- links between pages. No attempt is made to verify that all pages are
1542+-- reachable from the homepage.
1543+spLink :: Lens' StorePage [Text]
1544+spLink
1545+ = lens _spLink (\ s a -> s{_spLink = a}) . _Default .
1546+ _Coerce
1547+
1548+-- | Ordered list of localized strings giving the name of this page. The text
1549+-- displayed is the one that best matches the user locale, or the first
1550+-- entry if there is no good match. There needs to be at least one entry.
1551+spName :: Lens' StorePage [LocalizedText]
1552+spName
1553+ = lens _spName (\ s a -> s{_spName = a}) . _Default .
1554+ _Coerce
1555+
1556+-- | Unique ID of this page. Assigned by the server. Immutable once assigned.
1557+spId :: Lens' StorePage (Maybe Text)
1558+spId = lens _spId (\ s a -> s{_spId = a})
1559+
1560+instance FromJSON StorePage where
1561+ parseJSON
1562+ = withObject "StorePage"
1563+ (\ o ->
1564+ StorePage <$>
1565+ (o .:? "kind" .!= "androidenterprise#storePage") <*>
1566+ (o .:? "link" .!= mempty)
1567+ <*> (o .:? "name" .!= mempty)
1568+ <*> (o .:? "id"))
1569+
1570+instance ToJSON StorePage where
1571+ toJSON StorePage{..}
1572+ = object
1573+ (catMaybes
1574+ [Just ("kind" .= _spKind), ("link" .=) <$> _spLink,
1575+ ("name" .=) <$> _spName, ("id" .=) <$> _spId])
1576+
1300--
1577--
1301-- /See:/ 'enterprisesSendTestPushNotificationResponse' smart constructor.
1578-- /See:/ 'enterprisesSendTestPushNotificationResponse' smart constructor.
1302data EnterprisesSendTestPushNotificationResponse = EnterprisesSendTestPushNotificationResponse
1579data EnterprisesSendTestPushNotificationResponse = EnterprisesSendTestPushNotificationResponse
@@ -1455,9 +1732,54 @@ instance ToJSON AppRestrictionsSchema where
1455 [Just ("kind" .= _arsKind),
1732 [Just ("kind" .= _arsKind),
1456 ("restrictions" .=) <$> _arsRestrictions])
1733 ("restrictions" .=) <$> _arsRestrictions])
1457
1734
1735+-- | A localized string with its locale.
1736+--
1737+-- /See:/ 'localizedText' smart constructor.
1738+data LocalizedText = LocalizedText
1739+ { _ltText :: !(Maybe Text)
1740+ , _ltLocale :: !(Maybe Text)
1741+ } deriving (Eq,Show,Data,Typeable,Generic)
1742+
1743+-- | Creates a value of 'LocalizedText' with the minimum fields required to make a request.
1744+--
1745+-- Use one of the following lenses to modify other fields as desired:
1746+--
1747+-- * 'ltText'
1748+--
1749+-- * 'ltLocale'
1750+localizedText
1751+ :: LocalizedText
1752+localizedText =
1753+ LocalizedText
1754+ { _ltText = Nothing
1755+ , _ltLocale = Nothing
1756+ }
1757+
1758+-- | The text localized in the associated locale.
1759+ltText :: Lens' LocalizedText (Maybe Text)
1760+ltText = lens _ltText (\ s a -> s{_ltText = a})
1761+
1762+-- | The BCP47 tag for a locale. (e.g. \"en-US\", \"de\").
1763+ltLocale :: Lens' LocalizedText (Maybe Text)
1764+ltLocale = lens _ltLocale (\ s a -> s{_ltLocale = a})
1765+
1766+instance FromJSON LocalizedText where
1767+ parseJSON
1768+ = withObject "LocalizedText"
1769+ (\ o ->
1770+ LocalizedText <$>
1771+ (o .:? "text") <*> (o .:? "locale"))
1772+
1773+instance ToJSON LocalizedText where
1774+ toJSON LocalizedText{..}
1775+ = object
1776+ (catMaybes
1777+ [("text" .=) <$> _ltText,
1778+ ("locale" .=) <$> _ltLocale])
1779+
1458-- | A UserToken is used by a user when setting up a managed device or
1780-- | A UserToken is used by a user when setting up a managed device or
1459-- profile with their work account on a device. When the user enters their
1781-- profile with their work account on a device. When the user enters their
1460−-- email address and token (activation code) the appropriate MDM app can be
1782+-- email address and token (activation code) the appropriate EMM app can be
1461-- automatically downloaded.
1783-- automatically downloaded.
1462--
1784--
1463-- /See:/ 'userToken' smart constructor.
1785-- /See:/ 'userToken' smart constructor.
@@ -1567,20 +1889,20 @@ instance ToJSON DevicesListResponse where
1567 ("device" .=) <$> _dlrDevice])
1889 ("device" .=) <$> _dlrDevice])
1568
1890
1569-- | An enterprise resource represents a binding between an organisation and
1891-- | An enterprise resource represents a binding between an organisation and
1570−-- their MDM. To create an enterprise, an admin of the enterprise must
1892+-- their EMM. To create an enterprise, an admin of the enterprise must
1571-- first go through a Play for Work sign-up flow. At the end of this the
1893-- first go through a Play for Work sign-up flow. At the end of this the
1572-- admin will be presented with a token (a short opaque alphanumeric
1894-- admin will be presented with a token (a short opaque alphanumeric
1573−-- string). They must then present this to the MDM, who then supplies it to
1895+-- string). They must then present this to the EMM, who then supplies it to
1574−-- the enroll method. Until this is done the MDM will not have any access
1896+-- the enroll method. Until this is done the EMM will not have any access
1575−-- to the enterprise. After calling enroll the MDM should call setAccount
1897+-- to the enterprise. After calling enroll the EMM should call setAccount
1576-- to specify the service account that will be allowed to act on behalf of
1898-- to specify the service account that will be allowed to act on behalf of
1577-- the enterprise, which will be required for access to the enterprise\'s
1899-- the enterprise, which will be required for access to the enterprise\'s
1578-- data through this API. Only one call of setAccount is allowed for a
1900-- data through this API. Only one call of setAccount is allowed for a
1579-- given enterprise; the only way to change the account later is to
1901-- given enterprise; the only way to change the account later is to
1580-- unenroll the enterprise and enroll it again (obtaining a new token). The
1902-- unenroll the enterprise and enroll it again (obtaining a new token). The
1581−-- MDM can unenroll an enterprise in order to sever the binding between
1903+-- EMM can unenroll an enterprise in order to sever the binding between
1582-- them. Re-enrolling an enterprise is possible, but requires a new token
1904-- them. Re-enrolling an enterprise is possible, but requires a new token
1583−-- to be retrieved. Enterprises.unenroll requires the MDM\'s credentials
1905+-- to be retrieved. Enterprises.unenroll requires the EMM\'s credentials
1584-- (as enroll does), not the enterprise\'s. Enterprises.unenroll can only
1906-- (as enroll does), not the enterprise\'s. Enterprises.unenroll can only
1585-- be used for enterprises that were previously enrolled with the enroll
1907-- be used for enterprises that were previously enrolled with the enroll
1586-- call. Any enterprises that were enrolled using the (deprecated)
1908-- call. Any enterprises that were enrolled using the (deprecated)
@@ -1656,12 +1978,65 @@ instance ToJSON Enterprise where
1656 ("primaryDomain" .=) <$> _ePrimaryDomain,
1978 ("primaryDomain" .=) <$> _ePrimaryDomain,
1657 ("name" .=) <$> _eName, ("id" .=) <$> _eId])
1979 ("name" .=) <$> _eName, ("id" .=) <$> _eId])
1658
1980
1981+-- | General setting for the Google Play for Work store layout, currently
1982+-- only specifying the page to display the first time the store is opened.
1983+--
1984+-- /See:/ 'storeLayout' smart constructor.
1985+data StoreLayout = StoreLayout
1986+ { _slKind :: !Text
1987+ , _slHomepageId :: !(Maybe Text)
1988+ } deriving (Eq,Show,Data,Typeable,Generic)
1989+
1990+-- | Creates a value of 'StoreLayout' with the minimum fields required to make a request.
1991+--
1992+-- Use one of the following lenses to modify other fields as desired:
1993+--
1994+-- * 'slKind'
1995+--
1996+-- * 'slHomepageId'
1997+storeLayout
1998+ :: StoreLayout
1999+storeLayout =
2000+ StoreLayout
2001+ { _slKind = "androidenterprise#storeLayout"
2002+ , _slHomepageId = Nothing
2003+ }
2004+
2005+-- | Identifies what kind of resource this is. Value: the fixed string
2006+-- \"androidenterprise#storeLayout\".
2007+slKind :: Lens' StoreLayout Text
2008+slKind = lens _slKind (\ s a -> s{_slKind = a})
2009+
2010+-- | The ID of the store page to be used as the homepage. The homepage will
2011+-- be used as the first page shown in the Google Play for Work store. If
2012+-- there is no homepage set, an empty store is shown. The homepage can be
2013+-- unset (by not specifying it) to empty the store. If there exists at
2014+-- least one page, this field must be set to the ID of a valid page.
2015+slHomepageId :: Lens' StoreLayout (Maybe Text)
2016+slHomepageId
2017+ = lens _slHomepageId (\ s a -> s{_slHomepageId = a})
2018+
2019+instance FromJSON StoreLayout where
2020+ parseJSON
2021+ = withObject "StoreLayout"
2022+ (\ o ->
2023+ StoreLayout <$>
2024+ (o .:? "kind" .!= "androidenterprise#storeLayout")
2025+ <*> (o .:? "homepageId"))
2026+
2027+instance ToJSON StoreLayout where
2028+ toJSON StoreLayout{..}
2029+ = object
2030+ (catMaybes
2031+ [Just ("kind" .= _slKind),
2032+ ("homepageId" .=) <$> _slHomepageId])
2033+
1659-- | A product represents an app in the Google Play Store that is available
2034-- | A product represents an app in the Google Play Store that is available
1660-- to at least some users in the enterprise. (Some apps are restricted to a
2035-- to at least some users in the enterprise. (Some apps are restricted to a
1661-- single enterprise, and no information about them is made available
2036-- single enterprise, and no information about them is made available
1662-- outside that enterprise.) The information provided for each product
2037-- outside that enterprise.) The information provided for each product
1663-- (localized name, icon, link to the full Google Play details page) is
2038-- (localized name, icon, link to the full Google Play details page) is
1664−-- intended to allow a basic representation of the product within an MDM
2039+-- intended to allow a basic representation of the product within an EMM
1665-- user interface.
2040-- user interface.
1666--
2041--
1667-- /See:/ 'product' smart constructor.
2042-- /See:/ 'product' smart constructor.
@@ -1671,6 +2046,7 @@ data Product = Product
1671 , _pWorkDetailsURL :: !(Maybe Text)
2046 , _pWorkDetailsURL :: !(Maybe Text)
1672 , _pRequiresContainerApp :: !(Maybe Bool)
2047 , _pRequiresContainerApp :: !(Maybe Bool)
1673 , _pAppVersion :: !(Maybe [AppVersion])
2048 , _pAppVersion :: !(Maybe [AppVersion])
2049+ , _pProductPricing :: !(Maybe Text)
1674 , _pDistributionChannel :: !(Maybe Text)
2050 , _pDistributionChannel :: !(Maybe Text)
1675 , _pIconURL :: !(Maybe Text)
2051 , _pIconURL :: !(Maybe Text)
1676 , _pTitle :: !(Maybe Text)
2052 , _pTitle :: !(Maybe Text)
@@ -1692,6 +2068,8 @@ data Product = Product
1692--
2068--
1693-- * 'pAppVersion'
2069-- * 'pAppVersion'
1694--
2070--
2071+-- * 'pProductPricing'
2072+--
1695-- * 'pDistributionChannel'
2073-- * 'pDistributionChannel'
1696--
2074--
1697-- * 'pIconURL'
2075-- * 'pIconURL'
@@ -1710,6 +2088,7 @@ product =
1710 , _pWorkDetailsURL = Nothing
2088 , _pWorkDetailsURL = Nothing
1711 , _pRequiresContainerApp = Nothing
2089 , _pRequiresContainerApp = Nothing
1712 , _pAppVersion = Nothing
2090 , _pAppVersion = Nothing
2091+ , _pProductPricing = Nothing
1713 , _pDistributionChannel = Nothing
2092 , _pDistributionChannel = Nothing
1714 , _pIconURL = Nothing
2093 , _pIconURL = Nothing
1715 , _pTitle = Nothing
2094 , _pTitle = Nothing
@@ -1749,6 +2128,12 @@ pAppVersion
1749 _Default
2128 _Default
1750 . _Coerce
2129 . _Coerce
1751
2130
2131+-- | Whether this product is free, free with in-app purchases, or paid.
2132+pProductPricing :: Lens' Product (Maybe Text)
2133+pProductPricing
2134+ = lens _pProductPricing
2135+ (\ s a -> s{_pProductPricing = a})
2136+
1752-- | How and to whom the package is made available. The value
2137-- | How and to whom the package is made available. The value
1753-- publicGoogleHosted means that the package is available through the Play
2138-- publicGoogleHosted means that the package is available through the Play
1754-- Store and not restricted to a specific enterprise. The value
2139-- Store and not restricted to a specific enterprise. The value
@@ -1790,6 +2175,7 @@ instance FromJSON Product where
1790 <*> (o .:? "workDetailsUrl")
2175 <*> (o .:? "workDetailsUrl")
1791 <*> (o .:? "requiresContainerApp")
2176 <*> (o .:? "requiresContainerApp")
1792 <*> (o .:? "appVersion" .!= mempty)
2177 <*> (o .:? "appVersion" .!= mempty)
2178+ <*> (o .:? "productPricing")
1793 <*> (o .:? "distributionChannel")
2179 <*> (o .:? "distributionChannel")
1794 <*> (o .:? "iconUrl")
2180 <*> (o .:? "iconUrl")
1795 <*> (o .:? "title")
2181 <*> (o .:? "title")
@@ -1806,6 +2192,7 @@ instance ToJSON Product where
1806 ("requiresContainerApp" .=) <$>
2192 ("requiresContainerApp" .=) <$>
1807 _pRequiresContainerApp,
2193 _pRequiresContainerApp,
1808 ("appVersion" .=) <$> _pAppVersion,
2194 ("appVersion" .=) <$> _pAppVersion,
2195+ ("productPricing" .=) <$> _pProductPricing,
1809 ("distributionChannel" .=) <$> _pDistributionChannel,
2196 ("distributionChannel" .=) <$> _pDistributionChannel,
1810 ("iconUrl" .=) <$> _pIconURL,
2197 ("iconUrl" .=) <$> _pIconURL,
1811 ("title" .=) <$> _pTitle,
2198 ("title" .=) <$> _pTitle,
@@ -1935,7 +2322,7 @@ instance ToJSON ProductPermissions where
1935-- consent to these permissions on behalf of their users before an
2322-- consent to these permissions on behalf of their users before an
1936-- entitlement for the app can be created. The permissions collection is
2323-- entitlement for the app can be created. The permissions collection is
1937-- read-only. The information provided for each permission (localized name
2324-- read-only. The information provided for each permission (localized name
1938−-- and description) is intended to be used in the MDM user interface when
2325+-- and description) is intended to be used in the EMM user interface when
1939-- obtaining consent from the enterprise.
2326-- obtaining consent from the enterprise.
1940--
2327--
1941-- /See:/ 'permission' smart constructor.
2328-- /See:/ 'permission' smart constructor.
@@ -2106,7 +2493,7 @@ instance ToJSON CollectionViewersListResponse where
2106-- true that a user has an app installed on one of their devices only if
2493-- true that a user has an app installed on one of their devices only if
2107-- they have an entitlement to it. So if an entitlement is deleted, the app
2494-- they have an entitlement to it. So if an entitlement is deleted, the app
2108-- will be uninstalled from all devices. Similarly if the user installs an
2495-- will be uninstalled from all devices. Similarly if the user installs an
2109−-- app (and is permitted to do so), or the MDM triggers an install of the
2496+-- app (and is permitted to do so), or the EMM triggers an install of the
2110-- app, an entitlement to that app is automatically created. If this is
2497-- app, an entitlement to that app is automatically created. If this is
2111-- impossible - e.g. the enterprise has not purchased sufficient licenses -
2498-- impossible - e.g. the enterprise has not purchased sufficient licenses -
2112-- then installation fails. Note that entitlements are always user
2499-- then installation fails. Note that entitlements are always user
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Delete.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Deletes a collection.
23-- Deletes a collection.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collections.delete@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.delete@.
26module Network.Google.Resource.AndroidEnterprise.Collections.Delete
26module Network.Google.Resource.AndroidEnterprise.Collections.Delete
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Get.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves the details of a collection.
23-- Retrieves the details of a collection.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collections.get@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.get@.
26module Network.Google.Resource.AndroidEnterprise.Collections.Get
26module Network.Google.Resource.AndroidEnterprise.Collections.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Insert.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Creates a new collection.
23-- Creates a new collection.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collections.insert@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.insert@.
26module Network.Google.Resource.AndroidEnterprise.Collections.Insert
26module Network.Google.Resource.AndroidEnterprise.Collections.Insert
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/List.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves the IDs of all the collections for an enterprise.
23-- Retrieves the IDs of all the collections for an enterprise.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collections.list@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.list@.
26module Network.Google.Resource.AndroidEnterprise.Collections.List
26module Network.Google.Resource.AndroidEnterprise.Collections.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Patch.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Updates a collection. This method supports patch semantics.
23-- Updates a collection. This method supports patch semantics.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collections.patch@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.patch@.
26module Network.Google.Resource.AndroidEnterprise.Collections.Patch
26module Network.Google.Resource.AndroidEnterprise.Collections.Patch
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Update.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Updates a collection.
23-- Updates a collection.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collections.update@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.update@.
26module Network.Google.Resource.AndroidEnterprise.Collections.Update
26module Network.Google.Resource.AndroidEnterprise.Collections.Update
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Delete.hs+1−1
@@ -24,7 +24,7 @@
24-- collection. If the collection\'s visibility is set to viewersOnly then
24-- collection. If the collection\'s visibility is set to viewersOnly then
25-- only such users will see the collection.
25-- only such users will see the collection.
26--
26--
27−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collectionviewers.delete@.
27+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.delete@.
28module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Delete
28module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Delete
29 (
29 (
30 -- * REST Resource
30 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Get.hs+1−1
@@ -24,7 +24,7 @@
24-- see the collection. If the collection\'s visibility is set to
24-- see the collection. If the collection\'s visibility is set to
25-- viewersOnly then only these users will see the collection.
25-- viewersOnly then only these users will see the collection.
26--
26--
27−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collectionviewers.get@.
27+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.get@.
28module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Get
28module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Get
29 (
29 (
30 -- * REST Resource
30 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/List.hs+1−1
@@ -24,7 +24,7 @@
24-- the collection. If the collection\'s visibility is set to viewersOnly
24-- the collection. If the collection\'s visibility is set to viewersOnly
25-- then only these users will see the collection.
25-- then only these users will see the collection.
26--
26--
27−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collectionviewers.list@.
27+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.list@.
28module Network.Google.Resource.AndroidEnterprise.Collectionviewers.List
28module Network.Google.Resource.AndroidEnterprise.Collectionviewers.List
29 (
29 (
30 -- * REST Resource
30 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Patch.hs+1−1
@@ -25,7 +25,7 @@
25-- only such users will see the collection. This method supports patch
25-- only such users will see the collection. This method supports patch
26-- semantics.
26-- semantics.
27--
27--
28−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collectionviewers.patch@.
28+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.patch@.
29module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Patch
29module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Patch
30 (
30 (
31 -- * REST Resource
31 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Update.hs+1−1
@@ -24,7 +24,7 @@
24-- collection. If the collection\'s visibility is set to viewersOnly then
24-- collection. If the collection\'s visibility is set to viewersOnly then
25-- only such users will see the collection.
25-- only such users will see the collection.
26--
26--
27−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.collectionviewers.update@.
27+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.update@.
28module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Update
28module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Update
29 (
29 (
30 -- * REST Resource
30 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Devices/Get.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves the details of a device.
23-- Retrieves the details of a device.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.devices.get@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.get@.
26module Network.Google.Resource.AndroidEnterprise.Devices.Get
26module Network.Google.Resource.AndroidEnterprise.Devices.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Devices/GetState.hs+1−1
@@ -26,7 +26,7 @@
26-- Otherwise, the device state is ignored and all devices are allowed
26-- Otherwise, the device state is ignored and all devices are allowed
27-- access to Google services.
27-- access to Google services.
28--
28--
29−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.devices.getState@.
29+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.getState@.
30module Network.Google.Resource.AndroidEnterprise.Devices.GetState
30module Network.Google.Resource.AndroidEnterprise.Devices.GetState
31 (
31 (
32 -- * REST Resource
32 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Devices/List.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves the IDs of all of a user\'s devices.
23-- Retrieves the IDs of all of a user\'s devices.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.devices.list@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.list@.
26module Network.Google.Resource.AndroidEnterprise.Devices.List
26module Network.Google.Resource.AndroidEnterprise.Devices.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Devices/SetState.hs+1−1
@@ -26,7 +26,7 @@
26-- Otherwise, the device state is ignored and all devices are allowed
26-- Otherwise, the device state is ignored and all devices are allowed
27-- access to Google services.
27-- access to Google services.
28--
28--
29−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.devices.setState@.
29+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.setState@.
30module Network.Google.Resource.AndroidEnterprise.Devices.SetState
30module Network.Google.Resource.AndroidEnterprise.Devices.SetState
31 (
31 (
32 -- * REST Resource
32 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Delete.hs+3−3
@@ -20,12 +20,12 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Deletes the binding between the MDM and enterprise. This is now
23+-- Deletes the binding between the EMM and enterprise. This is now
24-- deprecated; use this to unenroll customers that were previously enrolled
24-- deprecated; use this to unenroll customers that were previously enrolled
25-- with the \'insert\' call, then enroll them again with the \'enroll\'
25-- with the \'insert\' call, then enroll them again with the \'enroll\'
26-- call.
26-- call.
27--
27--
28−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.delete@.
28+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.delete@.
29module Network.Google.Resource.AndroidEnterprise.Enterprises.Delete
29module Network.Google.Resource.AndroidEnterprise.Enterprises.Delete
30 (
30 (
31 -- * REST Resource
31 -- * REST Resource
@@ -51,7 +51,7 @@ type EnterprisesDeleteResource =
51 Capture "enterpriseId" Text :>
51 Capture "enterpriseId" Text :>
52 QueryParam "alt" AltJSON :> Delete '[JSON] ()
52 QueryParam "alt" AltJSON :> Delete '[JSON] ()
53
53
54−-- | Deletes the binding between the MDM and enterprise. This is now
54+-- | Deletes the binding between the EMM and enterprise. This is now
55-- deprecated; use this to unenroll customers that were previously enrolled
55-- deprecated; use this to unenroll customers that were previously enrolled
56-- with the \'insert\' call, then enroll them again with the \'enroll\'
56-- with the \'insert\' call, then enroll them again with the \'enroll\'
57-- call.
57-- call.
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Enroll.hs+4−4
@@ -20,9 +20,9 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Enrolls an enterprise with the calling MDM.
23+-- Enrolls an enterprise with the calling EMM.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.enroll@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.enroll@.
26module Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll
26module Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -51,7 +51,7 @@ type EnterprisesEnrollResource =
51 QueryParam "alt" AltJSON :>
51 QueryParam "alt" AltJSON :>
52 ReqBody '[JSON] Enterprise :> Post '[JSON] Enterprise
52 ReqBody '[JSON] Enterprise :> Post '[JSON] Enterprise
53
53
54−-- | Enrolls an enterprise with the calling MDM.
54+-- | Enrolls an enterprise with the calling EMM.
55--
55--
56-- /See:/ 'enterprisesEnroll' smart constructor.
56-- /See:/ 'enterprisesEnroll' smart constructor.
57data EnterprisesEnroll = EnterprisesEnroll
57data EnterprisesEnroll = EnterprisesEnroll
@@ -76,7 +76,7 @@ enterprisesEnroll pEeToken_ pEePayload_ =
76 , _eePayload = pEePayload_
76 , _eePayload = pEePayload_
77 }
77 }
78
78
79−-- | The token provided by the enterprise to register the MDM.
79+-- | The token provided by the enterprise to register the EMM.
80eeToken :: Lens' EnterprisesEnroll Text
80eeToken :: Lens' EnterprisesEnroll Text
81eeToken = lens _eeToken (\ s a -> s{_eeToken = a})
81eeToken = lens _eeToken (\ s a -> s{_eeToken = a})
82
82
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Get.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves the name and domain of an enterprise.
23-- Retrieves the name and domain of an enterprise.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.get@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.get@.
26module Network.Google.Resource.AndroidEnterprise.Enterprises.Get
26module Network.Google.Resource.AndroidEnterprise.Enterprises.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/GetStoreLayout.hsnew file+87
@@ -0,0 +1,87 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Returns the store layout resource.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.getStoreLayout@.
26+module Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout
27+ (
28+ -- * REST Resource
29+ EnterprisesGetStoreLayoutResource
30+
31+ -- * Creating a Request
32+ , enterprisesGetStoreLayout
33+ , EnterprisesGetStoreLayout
34+
35+ -- * Request Lenses
36+ , egslEnterpriseId
37+ ) where
38+
39+import Network.Google.AndroidEnterprise.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @androidenterprise.enterprises.getStoreLayout@ method which the
43+-- 'EnterprisesGetStoreLayout' request conforms to.
44+type EnterprisesGetStoreLayoutResource =
45+ "androidenterprise" :>
46+ "v1" :>
47+ "enterprises" :>
48+ Capture "enterpriseId" Text :>
49+ "storeLayout" :>
50+ QueryParam "alt" AltJSON :> Get '[JSON] StoreLayout
51+
52+-- | Returns the store layout resource.
53+--
54+-- /See:/ 'enterprisesGetStoreLayout' smart constructor.
55+newtype EnterprisesGetStoreLayout = EnterprisesGetStoreLayout
56+ { _egslEnterpriseId :: Text
57+ } deriving (Eq,Show,Data,Typeable,Generic)
58+
59+-- | Creates a value of 'EnterprisesGetStoreLayout' with the minimum fields required to make a request.
60+--
61+-- Use one of the following lenses to modify other fields as desired:
62+--
63+-- * 'egslEnterpriseId'
64+enterprisesGetStoreLayout
65+ :: Text -- ^ 'egslEnterpriseId'
66+ -> EnterprisesGetStoreLayout
67+enterprisesGetStoreLayout pEgslEnterpriseId_ =
68+ EnterprisesGetStoreLayout
69+ { _egslEnterpriseId = pEgslEnterpriseId_
70+ }
71+
72+-- | The ID of the enterprise.
73+egslEnterpriseId :: Lens' EnterprisesGetStoreLayout Text
74+egslEnterpriseId
75+ = lens _egslEnterpriseId
76+ (\ s a -> s{_egslEnterpriseId = a})
77+
78+instance GoogleRequest EnterprisesGetStoreLayout
79+ where
80+ type Rs EnterprisesGetStoreLayout = StoreLayout
81+ requestClient EnterprisesGetStoreLayout{..}
82+ = go _egslEnterpriseId (Just AltJSON)
83+ androidEnterpriseService
84+ where go
85+ = buildClient
86+ (Proxy :: Proxy EnterprisesGetStoreLayoutResource)
87+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Insert.hs+4−4
@@ -20,10 +20,10 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Establishes the binding between the MDM and an enterprise. This is now
23+-- Establishes the binding between the EMM and an enterprise. This is now
24-- deprecated; use enroll instead.
24-- deprecated; use enroll instead.
25--
25--
26−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.insert@.
26+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.insert@.
27module Network.Google.Resource.AndroidEnterprise.Enterprises.Insert
27module Network.Google.Resource.AndroidEnterprise.Enterprises.Insert
28 (
28 (
29 -- * REST Resource
29 -- * REST Resource
@@ -51,7 +51,7 @@ type EnterprisesInsertResource =
51 QueryParam "alt" AltJSON :>
51 QueryParam "alt" AltJSON :>
52 ReqBody '[JSON] Enterprise :> Post '[JSON] Enterprise
52 ReqBody '[JSON] Enterprise :> Post '[JSON] Enterprise
53
53
54−-- | Establishes the binding between the MDM and an enterprise. This is now
54+-- | Establishes the binding between the EMM and an enterprise. This is now
55-- deprecated; use enroll instead.
55-- deprecated; use enroll instead.
56--
56--
57-- /See:/ 'enterprisesInsert' smart constructor.
57-- /See:/ 'enterprisesInsert' smart constructor.
@@ -77,7 +77,7 @@ enterprisesInsert pEiToken_ pEiPayload_ =
77 , _eiPayload = pEiPayload_
77 , _eiPayload = pEiPayload_
78 }
78 }
79
79
80−-- | The token provided by the enterprise to register the MDM.
80+-- | The token provided by the enterprise to register the EMM.
81eiToken :: Lens' EnterprisesInsert Text
81eiToken :: Lens' EnterprisesInsert Text
82eiToken = lens _eiToken (\ s a -> s{_eiToken = a})
82eiToken = lens _eiToken (\ s a -> s{_eiToken = a})
83
83
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/List.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Looks up an enterprise by domain name.
23-- Looks up an enterprise by domain name.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.list@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.list@.
26module Network.Google.Resource.AndroidEnterprise.Enterprises.List
26module Network.Google.Resource.AndroidEnterprise.Enterprises.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SendTestPushNotification.hs+3−3
@@ -20,10 +20,10 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Sends a test push notification to validate the MDM integration with the
23+-- Sends a test push notification to validate the EMM integration with the
24-- Google Cloud Pub\/Sub service for this enterprise.
24-- Google Cloud Pub\/Sub service for this enterprise.
25--
25--
26−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.sendTestPushNotification@.
26+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.sendTestPushNotification@.
27module Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification
27module Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification
28 (
28 (
29 -- * REST Resource
29 -- * REST Resource
@@ -52,7 +52,7 @@ type EnterprisesSendTestPushNotificationResource =
52 Post '[JSON]
52 Post '[JSON]
53 EnterprisesSendTestPushNotificationResponse
53 EnterprisesSendTestPushNotificationResponse
54
54
55−-- | Sends a test push notification to validate the MDM integration with the
55+-- | Sends a test push notification to validate the EMM integration with the
56-- Google Cloud Pub\/Sub service for this enterprise.
56-- Google Cloud Pub\/Sub service for this enterprise.
57--
57--
58-- /See:/ 'enterprisesSendTestPushNotification' smart constructor.
58-- /See:/ 'enterprisesSendTestPushNotification' smart constructor.
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetAccount.hs+1−1
@@ -23,7 +23,7 @@
23-- Set the account that will be used to authenticate to the API as the
23-- Set the account that will be used to authenticate to the API as the
24-- enterprise.
24-- enterprise.
25--
25--
26−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.setAccount@.
26+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.setAccount@.
27module Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount
27module Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount
28 (
28 (
29 -- * REST Resource
29 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetStoreLayout.hsnew file+100
@@ -0,0 +1,100 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Sets the store layout resource.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.setStoreLayout@.
26+module Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout
27+ (
28+ -- * REST Resource
29+ EnterprisesSetStoreLayoutResource
30+
31+ -- * Creating a Request
32+ , enterprisesSetStoreLayout
33+ , EnterprisesSetStoreLayout
34+
35+ -- * Request Lenses
36+ , esslEnterpriseId
37+ , esslPayload
38+ ) where
39+
40+import Network.Google.AndroidEnterprise.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @androidenterprise.enterprises.setStoreLayout@ method which the
44+-- 'EnterprisesSetStoreLayout' request conforms to.
45+type EnterprisesSetStoreLayoutResource =
46+ "androidenterprise" :>
47+ "v1" :>
48+ "enterprises" :>
49+ Capture "enterpriseId" Text :>
50+ "storeLayout" :>
51+ QueryParam "alt" AltJSON :>
52+ ReqBody '[JSON] StoreLayout :>
53+ Put '[JSON] StoreLayout
54+
55+-- | Sets the store layout resource.
56+--
57+-- /See:/ 'enterprisesSetStoreLayout' smart constructor.
58+data EnterprisesSetStoreLayout = EnterprisesSetStoreLayout
59+ { _esslEnterpriseId :: !Text
60+ , _esslPayload :: !StoreLayout
61+ } deriving (Eq,Show,Data,Typeable,Generic)
62+
63+-- | Creates a value of 'EnterprisesSetStoreLayout' with the minimum fields required to make a request.
64+--
65+-- Use one of the following lenses to modify other fields as desired:
66+--
67+-- * 'esslEnterpriseId'
68+--
69+-- * 'esslPayload'
70+enterprisesSetStoreLayout
71+ :: Text -- ^ 'esslEnterpriseId'
72+ -> StoreLayout -- ^ 'esslPayload'
73+ -> EnterprisesSetStoreLayout
74+enterprisesSetStoreLayout pEsslEnterpriseId_ pEsslPayload_ =
75+ EnterprisesSetStoreLayout
76+ { _esslEnterpriseId = pEsslEnterpriseId_
77+ , _esslPayload = pEsslPayload_
78+ }
79+
80+-- | The ID of the enterprise.
81+esslEnterpriseId :: Lens' EnterprisesSetStoreLayout Text
82+esslEnterpriseId
83+ = lens _esslEnterpriseId
84+ (\ s a -> s{_esslEnterpriseId = a})
85+
86+-- | Multipart request metadata.
87+esslPayload :: Lens' EnterprisesSetStoreLayout StoreLayout
88+esslPayload
89+ = lens _esslPayload (\ s a -> s{_esslPayload = a})
90+
91+instance GoogleRequest EnterprisesSetStoreLayout
92+ where
93+ type Rs EnterprisesSetStoreLayout = StoreLayout
94+ requestClient EnterprisesSetStoreLayout{..}
95+ = go _esslEnterpriseId (Just AltJSON) _esslPayload
96+ androidEnterpriseService
97+ where go
98+ = buildClient
99+ (Proxy :: Proxy EnterprisesSetStoreLayoutResource)
100+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Unenroll.hs+3−3
@@ -20,9 +20,9 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Unenrolls an enterprise from the calling MDM.
23+-- Unenrolls an enterprise from the calling EMM.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.enterprises.unenroll@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.unenroll@.
26module Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll
26module Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -49,7 +49,7 @@ type EnterprisesUnenrollResource =
49 "unenroll" :>
49 "unenroll" :>
50 QueryParam "alt" AltJSON :> Post '[JSON] ()
50 QueryParam "alt" AltJSON :> Post '[JSON] ()
51
51
52−-- | Unenrolls an enterprise from the calling MDM.
52+-- | Unenrolls an enterprise from the calling EMM.
53--
53--
54-- /See:/ 'enterprisesUnenroll' smart constructor.
54-- /See:/ 'enterprisesUnenroll' smart constructor.
55newtype EnterprisesUnenroll = EnterprisesUnenroll
55newtype EnterprisesUnenroll = EnterprisesUnenroll
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Delete.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Removes an entitlement to an app for a user and uninstalls it.
23-- Removes an entitlement to an app for a user and uninstalls it.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.entitlements.delete@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.delete@.
26module Network.Google.Resource.AndroidEnterprise.Entitlements.Delete
26module Network.Google.Resource.AndroidEnterprise.Entitlements.Delete
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Get.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves details of an entitlement.
23-- Retrieves details of an entitlement.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.entitlements.get@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.get@.
26module Network.Google.Resource.AndroidEnterprise.Entitlements.Get
26module Network.Google.Resource.AndroidEnterprise.Entitlements.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Entitlements/List.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- List of all entitlements for the specified user. Only the ID is set.
23-- List of all entitlements for the specified user. Only the ID is set.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.entitlements.list@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.list@.
26module Network.Google.Resource.AndroidEnterprise.Entitlements.List
26module Network.Google.Resource.AndroidEnterprise.Entitlements.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Patch.hs+1−1
@@ -23,7 +23,7 @@
23-- Adds or updates an entitlement to an app for a user. This method
23-- Adds or updates an entitlement to an app for a user. This method
24-- supports patch semantics.
24-- supports patch semantics.
25--
25--
26−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.entitlements.patch@.
26+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.patch@.
27module Network.Google.Resource.AndroidEnterprise.Entitlements.Patch
27module Network.Google.Resource.AndroidEnterprise.Entitlements.Patch
28 (
28 (
29 -- * REST Resource
29 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Update.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Adds or updates an entitlement to an app for a user.
23-- Adds or updates an entitlement to an app for a user.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.entitlements.update@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.update@.
26module Network.Google.Resource.AndroidEnterprise.Entitlements.Update
26module Network.Google.Resource.AndroidEnterprise.Entitlements.Update
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/GrouplicenseUsers/List.hs+1−1
@@ -23,7 +23,7 @@
23-- Retrieves the IDs of the users who have been granted entitlements under
23-- Retrieves the IDs of the users who have been granted entitlements under
24-- the license.
24-- the license.
25--
25--
26−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.grouplicenseusers.list@.
26+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.grouplicenseusers.list@.
27module Network.Google.Resource.AndroidEnterprise.GrouplicenseUsers.List
27module Network.Google.Resource.AndroidEnterprise.GrouplicenseUsers.List
28 (
28 (
29 -- * REST Resource
29 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Grouplicenses/Get.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves details of an enterprise\'s group license for a product.
23-- Retrieves details of an enterprise\'s group license for a product.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.grouplicenses.get@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.grouplicenses.get@.
26module Network.Google.Resource.AndroidEnterprise.Grouplicenses.Get
26module Network.Google.Resource.AndroidEnterprise.Grouplicenses.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Grouplicenses/List.hs+1−1
@@ -23,7 +23,7 @@
23-- Retrieves IDs of all products for which the enterprise has a group
23-- Retrieves IDs of all products for which the enterprise has a group
24-- license.
24-- license.
25--
25--
26−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.grouplicenses.list@.
26+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.grouplicenses.list@.
27module Network.Google.Resource.AndroidEnterprise.Grouplicenses.List
27module Network.Google.Resource.AndroidEnterprise.Grouplicenses.List
28 (
28 (
29 -- * REST Resource
29 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Installs/Delete.hs+1−1
@@ -24,7 +24,7 @@
24-- still show the app as installed on the device until it is actually
24-- still show the app as installed on the device until it is actually
25-- removed.
25-- removed.
26--
26--
27−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.installs.delete@.
27+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.delete@.
28module Network.Google.Resource.AndroidEnterprise.Installs.Delete
28module Network.Google.Resource.AndroidEnterprise.Installs.Delete
29 (
29 (
30 -- * REST Resource
30 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Installs/Get.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves details of an installation of an app on a device.
23-- Retrieves details of an installation of an app on a device.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.installs.get@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.get@.
26module Network.Google.Resource.AndroidEnterprise.Installs.Get
26module Network.Google.Resource.AndroidEnterprise.Installs.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Installs/List.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves the details of all apps installed on the specified device.
23-- Retrieves the details of all apps installed on the specified device.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.installs.list@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.list@.
26module Network.Google.Resource.AndroidEnterprise.Installs.List
26module Network.Google.Resource.AndroidEnterprise.Installs.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Installs/Patch.hs+1−1
@@ -24,7 +24,7 @@
24-- is already installed then it is updated to the latest version if
24-- is already installed then it is updated to the latest version if
25-- necessary. This method supports patch semantics.
25-- necessary. This method supports patch semantics.
26--
26--
27−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.installs.patch@.
27+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.patch@.
28module Network.Google.Resource.AndroidEnterprise.Installs.Patch
28module Network.Google.Resource.AndroidEnterprise.Installs.Patch
29 (
29 (
30 -- * REST Resource
30 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Installs/Update.hs+1−1
@@ -24,7 +24,7 @@
24-- is already installed then it is updated to the latest version if
24-- is already installed then it is updated to the latest version if
25-- necessary.
25-- necessary.
26--
26--
27−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.installs.update@.
27+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.update@.
28module Network.Google.Resource.AndroidEnterprise.Installs.Update
28module Network.Google.Resource.AndroidEnterprise.Installs.Update
29 (
29 (
30 -- * REST Resource
30 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Permissions/Get.hs+1−1
@@ -23,7 +23,7 @@
23-- Retrieves details of an Android app permission for display to an
23-- Retrieves details of an Android app permission for display to an
24-- enterprise admin.
24-- enterprise admin.
25--
25--
26−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.permissions.get@.
26+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.permissions.get@.
27module Network.Google.Resource.AndroidEnterprise.Permissions.Get
27module Network.Google.Resource.AndroidEnterprise.Permissions.Get
28 (
28 (
29 -- * REST Resource
29 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/Approve.hs+1−1
@@ -23,7 +23,7 @@
23-- Approves the specified product (and the relevant app permissions, if
23-- Approves the specified product (and the relevant app permissions, if
24-- any).
24-- any).
25--
25--
26−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.products.approve@.
26+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.approve@.
27module Network.Google.Resource.AndroidEnterprise.Products.Approve
27module Network.Google.Resource.AndroidEnterprise.Products.Approve
28 (
28 (
29 -- * REST Resource
29 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/GenerateApprovalURL.hs+1−1
@@ -29,7 +29,7 @@
29-- property in a Products.approve call to approve the product. This URL can
29-- property in a Products.approve call to approve the product. This URL can
30-- only be used to display permissions for up to 1 day.
30-- only be used to display permissions for up to 1 day.
31--
31--
32−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.products.generateApprovalUrl@.
32+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.generateApprovalUrl@.
33module Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL
33module Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL
34 (
34 (
35 -- * REST Resource
35 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/Get.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves details of a product for display to an enterprise admin.
23-- Retrieves details of a product for display to an enterprise admin.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.products.get@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.get@.
26module Network.Google.Resource.AndroidEnterprise.Products.Get
26module Network.Google.Resource.AndroidEnterprise.Products.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/GetAppRestrictionsSchema.hs+1−1
@@ -24,7 +24,7 @@
24-- product. All products have a schema, but this may be empty if no app
24-- product. All products have a schema, but this may be empty if no app
25-- restrictions are defined.
25-- restrictions are defined.
26--
26--
27−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.products.getAppRestrictionsSchema@.
27+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.getAppRestrictionsSchema@.
28module Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema
28module Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema
29 (
29 (
30 -- * REST Resource
30 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/GetPermissions.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves the Android app permissions required by this app.
23-- Retrieves the Android app permissions required by this app.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.products.getPermissions@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.getPermissions@.
26module Network.Google.Resource.AndroidEnterprise.Products.GetPermissions
26module Network.Google.Resource.AndroidEnterprise.Products.GetPermissions
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/UpdatePermissions.hs+13−5
@@ -20,10 +20,14 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Updates the set of Android app permissions for this app that have been
23+-- This method has been deprecated. To programmatically approve
24+-- applications, you must use the iframe mechanism via the
25+-- generateApprovalUrl and approve methods of the Products resource. For
26+-- more information, see the Play EMM API usage requirements. The
27+-- updatePermissions method (deprecated) updates the set of Android app
24−-- accepted by the enterprise.
28+-- permissions for this app that have been accepted by the enterprise.
25--
29--
26−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.products.updatePermissions@.
30+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.updatePermissions@.
27module Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
31module Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
28 (
32 (
29 -- * REST Resource
33 -- * REST Resource
@@ -56,8 +60,12 @@ type ProductsUpdatePermissionsResource =
56 ReqBody '[JSON] ProductPermissions :>
60 ReqBody '[JSON] ProductPermissions :>
57 Put '[JSON] ProductPermissions
61 Put '[JSON] ProductPermissions
58
62
59−-- | Updates the set of Android app permissions for this app that have been
63+-- | This method has been deprecated. To programmatically approve
64+-- applications, you must use the iframe mechanism via the
65+-- generateApprovalUrl and approve methods of the Products resource. For
66+-- more information, see the Play EMM API usage requirements. The
67+-- updatePermissions method (deprecated) updates the set of Android app
60−-- accepted by the enterprise.
68+-- permissions for this app that have been accepted by the enterprise.
61--
69--
62-- /See:/ 'productsUpdatePermissions' smart constructor.
70-- /See:/ 'productsUpdatePermissions' smart constructor.
63data ProductsUpdatePermissions = ProductsUpdatePermissions
71data ProductsUpdatePermissions = ProductsUpdatePermissions
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Delete.hsnew file+114
@@ -0,0 +1,114 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Deletes a cluster.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.delete@.
26+module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete
27+ (
28+ -- * REST Resource
29+ StorelayoutclustersDeleteResource
30+
31+ -- * Creating a Request
32+ , storelayoutclustersDelete
33+ , StorelayoutclustersDelete
34+
35+ -- * Request Lenses
36+ , sddEnterpriseId
37+ , sddPageId
38+ , sddClusterId
39+ ) where
40+
41+import Network.Google.AndroidEnterprise.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @androidenterprise.storelayoutclusters.delete@ method which the
45+-- 'StorelayoutclustersDelete' request conforms to.
46+type StorelayoutclustersDeleteResource =
47+ "androidenterprise" :>
48+ "v1" :>
49+ "enterprises" :>
50+ Capture "enterpriseId" Text :>
51+ "storeLayout" :>
52+ "pages" :>
53+ Capture "pageId" Text :>
54+ "clusters" :>
55+ Capture "clusterId" Text :>
56+ QueryParam "alt" AltJSON :> Delete '[JSON] ()
57+
58+-- | Deletes a cluster.
59+--
60+-- /See:/ 'storelayoutclustersDelete' smart constructor.
61+data StorelayoutclustersDelete = StorelayoutclustersDelete
62+ { _sddEnterpriseId :: !Text
63+ , _sddPageId :: !Text
64+ , _sddClusterId :: !Text
65+ } deriving (Eq,Show,Data,Typeable,Generic)
66+
67+-- | Creates a value of 'StorelayoutclustersDelete' with the minimum fields required to make a request.
68+--
69+-- Use one of the following lenses to modify other fields as desired:
70+--
71+-- * 'sddEnterpriseId'
72+--
73+-- * 'sddPageId'
74+--
75+-- * 'sddClusterId'
76+storelayoutclustersDelete
77+ :: Text -- ^ 'sddEnterpriseId'
78+ -> Text -- ^ 'sddPageId'
79+ -> Text -- ^ 'sddClusterId'
80+ -> StorelayoutclustersDelete
81+storelayoutclustersDelete pSddEnterpriseId_ pSddPageId_ pSddClusterId_ =
82+ StorelayoutclustersDelete
83+ { _sddEnterpriseId = pSddEnterpriseId_
84+ , _sddPageId = pSddPageId_
85+ , _sddClusterId = pSddClusterId_
86+ }
87+
88+-- | The ID of the enterprise.
89+sddEnterpriseId :: Lens' StorelayoutclustersDelete Text
90+sddEnterpriseId
91+ = lens _sddEnterpriseId
92+ (\ s a -> s{_sddEnterpriseId = a})
93+
94+-- | The ID of the page.
95+sddPageId :: Lens' StorelayoutclustersDelete Text
96+sddPageId
97+ = lens _sddPageId (\ s a -> s{_sddPageId = a})
98+
99+-- | The ID of the cluster.
100+sddClusterId :: Lens' StorelayoutclustersDelete Text
101+sddClusterId
102+ = lens _sddClusterId (\ s a -> s{_sddClusterId = a})
103+
104+instance GoogleRequest StorelayoutclustersDelete
105+ where
106+ type Rs StorelayoutclustersDelete = ()
107+ requestClient StorelayoutclustersDelete{..}
108+ = go _sddEnterpriseId _sddPageId _sddClusterId
109+ (Just AltJSON)
110+ androidEnterpriseService
111+ where go
112+ = buildClient
113+ (Proxy :: Proxy StorelayoutclustersDeleteResource)
114+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Get.hsnew file+113
@@ -0,0 +1,113 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Retrieves details of a cluster.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.get@.
26+module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get
27+ (
28+ -- * REST Resource
29+ StorelayoutclustersGetResource
30+
31+ -- * Creating a Request
32+ , storelayoutclustersGet
33+ , StorelayoutclustersGet
34+
35+ -- * Request Lenses
36+ , stoEnterpriseId
37+ , stoPageId
38+ , stoClusterId
39+ ) where
40+
41+import Network.Google.AndroidEnterprise.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @androidenterprise.storelayoutclusters.get@ method which the
45+-- 'StorelayoutclustersGet' request conforms to.
46+type StorelayoutclustersGetResource =
47+ "androidenterprise" :>
48+ "v1" :>
49+ "enterprises" :>
50+ Capture "enterpriseId" Text :>
51+ "storeLayout" :>
52+ "pages" :>
53+ Capture "pageId" Text :>
54+ "clusters" :>
55+ Capture "clusterId" Text :>
56+ QueryParam "alt" AltJSON :> Get '[JSON] StoreCluster
57+
58+-- | Retrieves details of a cluster.
59+--
60+-- /See:/ 'storelayoutclustersGet' smart constructor.
61+data StorelayoutclustersGet = StorelayoutclustersGet
62+ { _stoEnterpriseId :: !Text
63+ , _stoPageId :: !Text
64+ , _stoClusterId :: !Text
65+ } deriving (Eq,Show,Data,Typeable,Generic)
66+
67+-- | Creates a value of 'StorelayoutclustersGet' with the minimum fields required to make a request.
68+--
69+-- Use one of the following lenses to modify other fields as desired:
70+--
71+-- * 'stoEnterpriseId'
72+--
73+-- * 'stoPageId'
74+--
75+-- * 'stoClusterId'
76+storelayoutclustersGet
77+ :: Text -- ^ 'stoEnterpriseId'
78+ -> Text -- ^ 'stoPageId'
79+ -> Text -- ^ 'stoClusterId'
80+ -> StorelayoutclustersGet
81+storelayoutclustersGet pStoEnterpriseId_ pStoPageId_ pStoClusterId_ =
82+ StorelayoutclustersGet
83+ { _stoEnterpriseId = pStoEnterpriseId_
84+ , _stoPageId = pStoPageId_
85+ , _stoClusterId = pStoClusterId_
86+ }
87+
88+-- | The ID of the enterprise.
89+stoEnterpriseId :: Lens' StorelayoutclustersGet Text
90+stoEnterpriseId
91+ = lens _stoEnterpriseId
92+ (\ s a -> s{_stoEnterpriseId = a})
93+
94+-- | The ID of the page.
95+stoPageId :: Lens' StorelayoutclustersGet Text
96+stoPageId
97+ = lens _stoPageId (\ s a -> s{_stoPageId = a})
98+
99+-- | The ID of the cluster.
100+stoClusterId :: Lens' StorelayoutclustersGet Text
101+stoClusterId
102+ = lens _stoClusterId (\ s a -> s{_stoClusterId = a})
103+
104+instance GoogleRequest StorelayoutclustersGet where
105+ type Rs StorelayoutclustersGet = StoreCluster
106+ requestClient StorelayoutclustersGet{..}
107+ = go _stoEnterpriseId _stoPageId _stoClusterId
108+ (Just AltJSON)
109+ androidEnterpriseService
110+ where go
111+ = buildClient
112+ (Proxy :: Proxy StorelayoutclustersGetResource)
113+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Insert.hsnew file+112
@@ -0,0 +1,112 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Inserts a new cluster in a page.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.insert@.
26+module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert
27+ (
28+ -- * REST Resource
29+ StorelayoutclustersInsertResource
30+
31+ -- * Creating a Request
32+ , storelayoutclustersInsert
33+ , StorelayoutclustersInsert
34+
35+ -- * Request Lenses
36+ , sEnterpriseId
37+ , sPageId
38+ , sPayload
39+ ) where
40+
41+import Network.Google.AndroidEnterprise.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @androidenterprise.storelayoutclusters.insert@ method which the
45+-- 'StorelayoutclustersInsert' request conforms to.
46+type StorelayoutclustersInsertResource =
47+ "androidenterprise" :>
48+ "v1" :>
49+ "enterprises" :>
50+ Capture "enterpriseId" Text :>
51+ "storeLayout" :>
52+ "pages" :>
53+ Capture "pageId" Text :>
54+ "clusters" :>
55+ QueryParam "alt" AltJSON :>
56+ ReqBody '[JSON] StoreCluster :>
57+ Post '[JSON] StoreCluster
58+
59+-- | Inserts a new cluster in a page.
60+--
61+-- /See:/ 'storelayoutclustersInsert' smart constructor.
62+data StorelayoutclustersInsert = StorelayoutclustersInsert
63+ { _sEnterpriseId :: !Text
64+ , _sPageId :: !Text
65+ , _sPayload :: !StoreCluster
66+ } deriving (Eq,Show,Data,Typeable,Generic)
67+
68+-- | Creates a value of 'StorelayoutclustersInsert' with the minimum fields required to make a request.
69+--
70+-- Use one of the following lenses to modify other fields as desired:
71+--
72+-- * 'sEnterpriseId'
73+--
74+-- * 'sPageId'
75+--
76+-- * 'sPayload'
77+storelayoutclustersInsert
78+ :: Text -- ^ 'sEnterpriseId'
79+ -> Text -- ^ 'sPageId'
80+ -> StoreCluster -- ^ 'sPayload'
81+ -> StorelayoutclustersInsert
82+storelayoutclustersInsert pSEnterpriseId_ pSPageId_ pSPayload_ =
83+ StorelayoutclustersInsert
84+ { _sEnterpriseId = pSEnterpriseId_
85+ , _sPageId = pSPageId_
86+ , _sPayload = pSPayload_
87+ }
88+
89+-- | The ID of the enterprise.
90+sEnterpriseId :: Lens' StorelayoutclustersInsert Text
91+sEnterpriseId
92+ = lens _sEnterpriseId
93+ (\ s a -> s{_sEnterpriseId = a})
94+
95+-- | The ID of the page.
96+sPageId :: Lens' StorelayoutclustersInsert Text
97+sPageId = lens _sPageId (\ s a -> s{_sPageId = a})
98+
99+-- | Multipart request metadata.
100+sPayload :: Lens' StorelayoutclustersInsert StoreCluster
101+sPayload = lens _sPayload (\ s a -> s{_sPayload = a})
102+
103+instance GoogleRequest StorelayoutclustersInsert
104+ where
105+ type Rs StorelayoutclustersInsert = StoreCluster
106+ requestClient StorelayoutclustersInsert{..}
107+ = go _sEnterpriseId _sPageId (Just AltJSON) _sPayload
108+ androidEnterpriseService
109+ where go
110+ = buildClient
111+ (Proxy :: Proxy StorelayoutclustersInsertResource)
112+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/List.hsnew file+102
@@ -0,0 +1,102 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Retrieves the details of all clusters on the specified page.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.list@.
26+module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List
27+ (
28+ -- * REST Resource
29+ StorelayoutclustersListResource
30+
31+ -- * Creating a Request
32+ , storelayoutclustersList
33+ , StorelayoutclustersList
34+
35+ -- * Request Lenses
36+ , sllEnterpriseId
37+ , sllPageId
38+ ) where
39+
40+import Network.Google.AndroidEnterprise.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @androidenterprise.storelayoutclusters.list@ method which the
44+-- 'StorelayoutclustersList' request conforms to.
45+type StorelayoutclustersListResource =
46+ "androidenterprise" :>
47+ "v1" :>
48+ "enterprises" :>
49+ Capture "enterpriseId" Text :>
50+ "storeLayout" :>
51+ "pages" :>
52+ Capture "pageId" Text :>
53+ "clusters" :>
54+ QueryParam "alt" AltJSON :>
55+ Get '[JSON] StoreLayoutClustersListResponse
56+
57+-- | Retrieves the details of all clusters on the specified page.
58+--
59+-- /See:/ 'storelayoutclustersList' smart constructor.
60+data StorelayoutclustersList = StorelayoutclustersList
61+ { _sllEnterpriseId :: !Text
62+ , _sllPageId :: !Text
63+ } deriving (Eq,Show,Data,Typeable,Generic)
64+
65+-- | Creates a value of 'StorelayoutclustersList' with the minimum fields required to make a request.
66+--
67+-- Use one of the following lenses to modify other fields as desired:
68+--
69+-- * 'sllEnterpriseId'
70+--
71+-- * 'sllPageId'
72+storelayoutclustersList
73+ :: Text -- ^ 'sllEnterpriseId'
74+ -> Text -- ^ 'sllPageId'
75+ -> StorelayoutclustersList
76+storelayoutclustersList pSllEnterpriseId_ pSllPageId_ =
77+ StorelayoutclustersList
78+ { _sllEnterpriseId = pSllEnterpriseId_
79+ , _sllPageId = pSllPageId_
80+ }
81+
82+-- | The ID of the enterprise.
83+sllEnterpriseId :: Lens' StorelayoutclustersList Text
84+sllEnterpriseId
85+ = lens _sllEnterpriseId
86+ (\ s a -> s{_sllEnterpriseId = a})
87+
88+-- | The ID of the page.
89+sllPageId :: Lens' StorelayoutclustersList Text
90+sllPageId
91+ = lens _sllPageId (\ s a -> s{_sllPageId = a})
92+
93+instance GoogleRequest StorelayoutclustersList where
94+ type Rs StorelayoutclustersList =
95+ StoreLayoutClustersListResponse
96+ requestClient StorelayoutclustersList{..}
97+ = go _sllEnterpriseId _sllPageId (Just AltJSON)
98+ androidEnterpriseService
99+ where go
100+ = buildClient
101+ (Proxy :: Proxy StorelayoutclustersListResource)
102+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Patch.hsnew file+127
@@ -0,0 +1,127 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Updates a cluster. This method supports patch semantics.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.patch@.
26+module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch
27+ (
28+ -- * REST Resource
29+ StorelayoutclustersPatchResource
30+
31+ -- * Creating a Request
32+ , storelayoutclustersPatch
33+ , StorelayoutclustersPatch
34+
35+ -- * Request Lenses
36+ , sppEnterpriseId
37+ , sppPageId
38+ , sppPayload
39+ , sppClusterId
40+ ) where
41+
42+import Network.Google.AndroidEnterprise.Types
43+import Network.Google.Prelude
44+
45+-- | A resource alias for @androidenterprise.storelayoutclusters.patch@ method which the
46+-- 'StorelayoutclustersPatch' request conforms to.
47+type StorelayoutclustersPatchResource =
48+ "androidenterprise" :>
49+ "v1" :>
50+ "enterprises" :>
51+ Capture "enterpriseId" Text :>
52+ "storeLayout" :>
53+ "pages" :>
54+ Capture "pageId" Text :>
55+ "clusters" :>
56+ Capture "clusterId" Text :>
57+ QueryParam "alt" AltJSON :>
58+ ReqBody '[JSON] StoreCluster :>
59+ Patch '[JSON] StoreCluster
60+
61+-- | Updates a cluster. This method supports patch semantics.
62+--
63+-- /See:/ 'storelayoutclustersPatch' smart constructor.
64+data StorelayoutclustersPatch = StorelayoutclustersPatch
65+ { _sppEnterpriseId :: !Text
66+ , _sppPageId :: !Text
67+ , _sppPayload :: !StoreCluster
68+ , _sppClusterId :: !Text
69+ } deriving (Eq,Show,Data,Typeable,Generic)
70+
71+-- | Creates a value of 'StorelayoutclustersPatch' with the minimum fields required to make a request.
72+--
73+-- Use one of the following lenses to modify other fields as desired:
74+--
75+-- * 'sppEnterpriseId'
76+--
77+-- * 'sppPageId'
78+--
79+-- * 'sppPayload'
80+--
81+-- * 'sppClusterId'
82+storelayoutclustersPatch
83+ :: Text -- ^ 'sppEnterpriseId'
84+ -> Text -- ^ 'sppPageId'
85+ -> StoreCluster -- ^ 'sppPayload'
86+ -> Text -- ^ 'sppClusterId'
87+ -> StorelayoutclustersPatch
88+storelayoutclustersPatch pSppEnterpriseId_ pSppPageId_ pSppPayload_ pSppClusterId_ =
89+ StorelayoutclustersPatch
90+ { _sppEnterpriseId = pSppEnterpriseId_
91+ , _sppPageId = pSppPageId_
92+ , _sppPayload = pSppPayload_
93+ , _sppClusterId = pSppClusterId_
94+ }
95+
96+-- | The ID of the enterprise.
97+sppEnterpriseId :: Lens' StorelayoutclustersPatch Text
98+sppEnterpriseId
99+ = lens _sppEnterpriseId
100+ (\ s a -> s{_sppEnterpriseId = a})
101+
102+-- | The ID of the page.
103+sppPageId :: Lens' StorelayoutclustersPatch Text
104+sppPageId
105+ = lens _sppPageId (\ s a -> s{_sppPageId = a})
106+
107+-- | Multipart request metadata.
108+sppPayload :: Lens' StorelayoutclustersPatch StoreCluster
109+sppPayload
110+ = lens _sppPayload (\ s a -> s{_sppPayload = a})
111+
112+-- | The ID of the cluster.
113+sppClusterId :: Lens' StorelayoutclustersPatch Text
114+sppClusterId
115+ = lens _sppClusterId (\ s a -> s{_sppClusterId = a})
116+
117+instance GoogleRequest StorelayoutclustersPatch where
118+ type Rs StorelayoutclustersPatch = StoreCluster
119+ requestClient StorelayoutclustersPatch{..}
120+ = go _sppEnterpriseId _sppPageId _sppClusterId
121+ (Just AltJSON)
122+ _sppPayload
123+ androidEnterpriseService
124+ where go
125+ = buildClient
126+ (Proxy :: Proxy StorelayoutclustersPatchResource)
127+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Update.hsnew file+128
@@ -0,0 +1,128 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Updates a cluster.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.update@.
26+module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update
27+ (
28+ -- * REST Resource
29+ StorelayoutclustersUpdateResource
30+
31+ -- * Creating a Request
32+ , storelayoutclustersUpdate
33+ , StorelayoutclustersUpdate
34+
35+ -- * Request Lenses
36+ , suuEnterpriseId
37+ , suuPageId
38+ , suuPayload
39+ , suuClusterId
40+ ) where
41+
42+import Network.Google.AndroidEnterprise.Types
43+import Network.Google.Prelude
44+
45+-- | A resource alias for @androidenterprise.storelayoutclusters.update@ method which the
46+-- 'StorelayoutclustersUpdate' request conforms to.
47+type StorelayoutclustersUpdateResource =
48+ "androidenterprise" :>
49+ "v1" :>
50+ "enterprises" :>
51+ Capture "enterpriseId" Text :>
52+ "storeLayout" :>
53+ "pages" :>
54+ Capture "pageId" Text :>
55+ "clusters" :>
56+ Capture "clusterId" Text :>
57+ QueryParam "alt" AltJSON :>
58+ ReqBody '[JSON] StoreCluster :>
59+ Put '[JSON] StoreCluster
60+
61+-- | Updates a cluster.
62+--
63+-- /See:/ 'storelayoutclustersUpdate' smart constructor.
64+data StorelayoutclustersUpdate = StorelayoutclustersUpdate
65+ { _suuEnterpriseId :: !Text
66+ , _suuPageId :: !Text
67+ , _suuPayload :: !StoreCluster
68+ , _suuClusterId :: !Text
69+ } deriving (Eq,Show,Data,Typeable,Generic)
70+
71+-- | Creates a value of 'StorelayoutclustersUpdate' with the minimum fields required to make a request.
72+--
73+-- Use one of the following lenses to modify other fields as desired:
74+--
75+-- * 'suuEnterpriseId'
76+--
77+-- * 'suuPageId'
78+--
79+-- * 'suuPayload'
80+--
81+-- * 'suuClusterId'
82+storelayoutclustersUpdate
83+ :: Text -- ^ 'suuEnterpriseId'
84+ -> Text -- ^ 'suuPageId'
85+ -> StoreCluster -- ^ 'suuPayload'
86+ -> Text -- ^ 'suuClusterId'
87+ -> StorelayoutclustersUpdate
88+storelayoutclustersUpdate pSuuEnterpriseId_ pSuuPageId_ pSuuPayload_ pSuuClusterId_ =
89+ StorelayoutclustersUpdate
90+ { _suuEnterpriseId = pSuuEnterpriseId_
91+ , _suuPageId = pSuuPageId_
92+ , _suuPayload = pSuuPayload_
93+ , _suuClusterId = pSuuClusterId_
94+ }
95+
96+-- | The ID of the enterprise.
97+suuEnterpriseId :: Lens' StorelayoutclustersUpdate Text
98+suuEnterpriseId
99+ = lens _suuEnterpriseId
100+ (\ s a -> s{_suuEnterpriseId = a})
101+
102+-- | The ID of the page.
103+suuPageId :: Lens' StorelayoutclustersUpdate Text
104+suuPageId
105+ = lens _suuPageId (\ s a -> s{_suuPageId = a})
106+
107+-- | Multipart request metadata.
108+suuPayload :: Lens' StorelayoutclustersUpdate StoreCluster
109+suuPayload
110+ = lens _suuPayload (\ s a -> s{_suuPayload = a})
111+
112+-- | The ID of the cluster.
113+suuClusterId :: Lens' StorelayoutclustersUpdate Text
114+suuClusterId
115+ = lens _suuClusterId (\ s a -> s{_suuClusterId = a})
116+
117+instance GoogleRequest StorelayoutclustersUpdate
118+ where
119+ type Rs StorelayoutclustersUpdate = StoreCluster
120+ requestClient StorelayoutclustersUpdate{..}
121+ = go _suuEnterpriseId _suuPageId _suuClusterId
122+ (Just AltJSON)
123+ _suuPayload
124+ androidEnterpriseService
125+ where go
126+ = buildClient
127+ (Proxy :: Proxy StorelayoutclustersUpdateResource)
128+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Delete.hsnew file+98
@@ -0,0 +1,98 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Deletes a store page.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.delete@.
26+module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete
27+ (
28+ -- * REST Resource
29+ StorelayoutpagesDeleteResource
30+
31+ -- * Creating a Request
32+ , storelayoutpagesDelete
33+ , StorelayoutpagesDelete
34+
35+ -- * Request Lenses
36+ , sdEnterpriseId
37+ , sdPageId
38+ ) where
39+
40+import Network.Google.AndroidEnterprise.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @androidenterprise.storelayoutpages.delete@ method which the
44+-- 'StorelayoutpagesDelete' request conforms to.
45+type StorelayoutpagesDeleteResource =
46+ "androidenterprise" :>
47+ "v1" :>
48+ "enterprises" :>
49+ Capture "enterpriseId" Text :>
50+ "storeLayout" :>
51+ "pages" :>
52+ Capture "pageId" Text :>
53+ QueryParam "alt" AltJSON :> Delete '[JSON] ()
54+
55+-- | Deletes a store page.
56+--
57+-- /See:/ 'storelayoutpagesDelete' smart constructor.
58+data StorelayoutpagesDelete = StorelayoutpagesDelete
59+ { _sdEnterpriseId :: !Text
60+ , _sdPageId :: !Text
61+ } deriving (Eq,Show,Data,Typeable,Generic)
62+
63+-- | Creates a value of 'StorelayoutpagesDelete' with the minimum fields required to make a request.
64+--
65+-- Use one of the following lenses to modify other fields as desired:
66+--
67+-- * 'sdEnterpriseId'
68+--
69+-- * 'sdPageId'
70+storelayoutpagesDelete
71+ :: Text -- ^ 'sdEnterpriseId'
72+ -> Text -- ^ 'sdPageId'
73+ -> StorelayoutpagesDelete
74+storelayoutpagesDelete pSdEnterpriseId_ pSdPageId_ =
75+ StorelayoutpagesDelete
76+ { _sdEnterpriseId = pSdEnterpriseId_
77+ , _sdPageId = pSdPageId_
78+ }
79+
80+-- | The ID of the enterprise.
81+sdEnterpriseId :: Lens' StorelayoutpagesDelete Text
82+sdEnterpriseId
83+ = lens _sdEnterpriseId
84+ (\ s a -> s{_sdEnterpriseId = a})
85+
86+-- | The ID of the page.
87+sdPageId :: Lens' StorelayoutpagesDelete Text
88+sdPageId = lens _sdPageId (\ s a -> s{_sdPageId = a})
89+
90+instance GoogleRequest StorelayoutpagesDelete where
91+ type Rs StorelayoutpagesDelete = ()
92+ requestClient StorelayoutpagesDelete{..}
93+ = go _sdEnterpriseId _sdPageId (Just AltJSON)
94+ androidEnterpriseService
95+ where go
96+ = buildClient
97+ (Proxy :: Proxy StorelayoutpagesDeleteResource)
98+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Get.hsnew file+98
@@ -0,0 +1,98 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Retrieves details of a store page.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.get@.
26+module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get
27+ (
28+ -- * REST Resource
29+ StorelayoutpagesGetResource
30+
31+ -- * Creating a Request
32+ , storelayoutpagesGet
33+ , StorelayoutpagesGet
34+
35+ -- * Request Lenses
36+ , sgEnterpriseId
37+ , sgPageId
38+ ) where
39+
40+import Network.Google.AndroidEnterprise.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @androidenterprise.storelayoutpages.get@ method which the
44+-- 'StorelayoutpagesGet' request conforms to.
45+type StorelayoutpagesGetResource =
46+ "androidenterprise" :>
47+ "v1" :>
48+ "enterprises" :>
49+ Capture "enterpriseId" Text :>
50+ "storeLayout" :>
51+ "pages" :>
52+ Capture "pageId" Text :>
53+ QueryParam "alt" AltJSON :> Get '[JSON] StorePage
54+
55+-- | Retrieves details of a store page.
56+--
57+-- /See:/ 'storelayoutpagesGet' smart constructor.
58+data StorelayoutpagesGet = StorelayoutpagesGet
59+ { _sgEnterpriseId :: !Text
60+ , _sgPageId :: !Text
61+ } deriving (Eq,Show,Data,Typeable,Generic)
62+
63+-- | Creates a value of 'StorelayoutpagesGet' with the minimum fields required to make a request.
64+--
65+-- Use one of the following lenses to modify other fields as desired:
66+--
67+-- * 'sgEnterpriseId'
68+--
69+-- * 'sgPageId'
70+storelayoutpagesGet
71+ :: Text -- ^ 'sgEnterpriseId'
72+ -> Text -- ^ 'sgPageId'
73+ -> StorelayoutpagesGet
74+storelayoutpagesGet pSgEnterpriseId_ pSgPageId_ =
75+ StorelayoutpagesGet
76+ { _sgEnterpriseId = pSgEnterpriseId_
77+ , _sgPageId = pSgPageId_
78+ }
79+
80+-- | The ID of the enterprise.
81+sgEnterpriseId :: Lens' StorelayoutpagesGet Text
82+sgEnterpriseId
83+ = lens _sgEnterpriseId
84+ (\ s a -> s{_sgEnterpriseId = a})
85+
86+-- | The ID of the page.
87+sgPageId :: Lens' StorelayoutpagesGet Text
88+sgPageId = lens _sgPageId (\ s a -> s{_sgPageId = a})
89+
90+instance GoogleRequest StorelayoutpagesGet where
91+ type Rs StorelayoutpagesGet = StorePage
92+ requestClient StorelayoutpagesGet{..}
93+ = go _sgEnterpriseId _sgPageId (Just AltJSON)
94+ androidEnterpriseService
95+ where go
96+ = buildClient
97+ (Proxy :: Proxy StorelayoutpagesGetResource)
98+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Insert.hsnew file+99
@@ -0,0 +1,99 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Inserts a new store page.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.insert@.
26+module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert
27+ (
28+ -- * REST Resource
29+ StorelayoutpagesInsertResource
30+
31+ -- * Creating a Request
32+ , storelayoutpagesInsert
33+ , StorelayoutpagesInsert
34+
35+ -- * Request Lenses
36+ , siEnterpriseId
37+ , siPayload
38+ ) where
39+
40+import Network.Google.AndroidEnterprise.Types
41+import Network.Google.Prelude
42+
43+-- | A resource alias for @androidenterprise.storelayoutpages.insert@ method which the
44+-- 'StorelayoutpagesInsert' request conforms to.
45+type StorelayoutpagesInsertResource =
46+ "androidenterprise" :>
47+ "v1" :>
48+ "enterprises" :>
49+ Capture "enterpriseId" Text :>
50+ "storeLayout" :>
51+ "pages" :>
52+ QueryParam "alt" AltJSON :>
53+ ReqBody '[JSON] StorePage :> Post '[JSON] StorePage
54+
55+-- | Inserts a new store page.
56+--
57+-- /See:/ 'storelayoutpagesInsert' smart constructor.
58+data StorelayoutpagesInsert = StorelayoutpagesInsert
59+ { _siEnterpriseId :: !Text
60+ , _siPayload :: !StorePage
61+ } deriving (Eq,Show,Data,Typeable,Generic)
62+
63+-- | Creates a value of 'StorelayoutpagesInsert' with the minimum fields required to make a request.
64+--
65+-- Use one of the following lenses to modify other fields as desired:
66+--
67+-- * 'siEnterpriseId'
68+--
69+-- * 'siPayload'
70+storelayoutpagesInsert
71+ :: Text -- ^ 'siEnterpriseId'
72+ -> StorePage -- ^ 'siPayload'
73+ -> StorelayoutpagesInsert
74+storelayoutpagesInsert pSiEnterpriseId_ pSiPayload_ =
75+ StorelayoutpagesInsert
76+ { _siEnterpriseId = pSiEnterpriseId_
77+ , _siPayload = pSiPayload_
78+ }
79+
80+-- | The ID of the enterprise.
81+siEnterpriseId :: Lens' StorelayoutpagesInsert Text
82+siEnterpriseId
83+ = lens _siEnterpriseId
84+ (\ s a -> s{_siEnterpriseId = a})
85+
86+-- | Multipart request metadata.
87+siPayload :: Lens' StorelayoutpagesInsert StorePage
88+siPayload
89+ = lens _siPayload (\ s a -> s{_siPayload = a})
90+
91+instance GoogleRequest StorelayoutpagesInsert where
92+ type Rs StorelayoutpagesInsert = StorePage
93+ requestClient StorelayoutpagesInsert{..}
94+ = go _siEnterpriseId (Just AltJSON) _siPayload
95+ androidEnterpriseService
96+ where go
97+ = buildClient
98+ (Proxy :: Proxy StorelayoutpagesInsertResource)
99+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/List.hsnew file+89
@@ -0,0 +1,89 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Retrieves the details of all pages in the store.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.list@.
26+module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List
27+ (
28+ -- * REST Resource
29+ StorelayoutpagesListResource
30+
31+ -- * Creating a Request
32+ , storelayoutpagesList
33+ , StorelayoutpagesList
34+
35+ -- * Request Lenses
36+ , slEnterpriseId
37+ ) where
38+
39+import Network.Google.AndroidEnterprise.Types
40+import Network.Google.Prelude
41+
42+-- | A resource alias for @androidenterprise.storelayoutpages.list@ method which the
43+-- 'StorelayoutpagesList' request conforms to.
44+type StorelayoutpagesListResource =
45+ "androidenterprise" :>
46+ "v1" :>
47+ "enterprises" :>
48+ Capture "enterpriseId" Text :>
49+ "storeLayout" :>
50+ "pages" :>
51+ QueryParam "alt" AltJSON :>
52+ Get '[JSON] StoreLayoutPagesListResponse
53+
54+-- | Retrieves the details of all pages in the store.
55+--
56+-- /See:/ 'storelayoutpagesList' smart constructor.
57+newtype StorelayoutpagesList = StorelayoutpagesList
58+ { _slEnterpriseId :: Text
59+ } deriving (Eq,Show,Data,Typeable,Generic)
60+
61+-- | Creates a value of 'StorelayoutpagesList' with the minimum fields required to make a request.
62+--
63+-- Use one of the following lenses to modify other fields as desired:
64+--
65+-- * 'slEnterpriseId'
66+storelayoutpagesList
67+ :: Text -- ^ 'slEnterpriseId'
68+ -> StorelayoutpagesList
69+storelayoutpagesList pSlEnterpriseId_ =
70+ StorelayoutpagesList
71+ { _slEnterpriseId = pSlEnterpriseId_
72+ }
73+
74+-- | The ID of the enterprise.
75+slEnterpriseId :: Lens' StorelayoutpagesList Text
76+slEnterpriseId
77+ = lens _slEnterpriseId
78+ (\ s a -> s{_slEnterpriseId = a})
79+
80+instance GoogleRequest StorelayoutpagesList where
81+ type Rs StorelayoutpagesList =
82+ StoreLayoutPagesListResponse
83+ requestClient StorelayoutpagesList{..}
84+ = go _slEnterpriseId (Just AltJSON)
85+ androidEnterpriseService
86+ where go
87+ = buildClient
88+ (Proxy :: Proxy StorelayoutpagesListResource)
89+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Patch.hsnew file+113
@@ -0,0 +1,113 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Updates the content of a store page. This method supports patch
24+-- semantics.
25+--
26+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.patch@.
27+module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch
28+ (
29+ -- * REST Resource
30+ StorelayoutpagesPatchResource
31+
32+ -- * Creating a Request
33+ , storelayoutpagesPatch
34+ , StorelayoutpagesPatch
35+
36+ -- * Request Lenses
37+ , spEnterpriseId
38+ , spPageId
39+ , spPayload
40+ ) where
41+
42+import Network.Google.AndroidEnterprise.Types
43+import Network.Google.Prelude
44+
45+-- | A resource alias for @androidenterprise.storelayoutpages.patch@ method which the
46+-- 'StorelayoutpagesPatch' request conforms to.
47+type StorelayoutpagesPatchResource =
48+ "androidenterprise" :>
49+ "v1" :>
50+ "enterprises" :>
51+ Capture "enterpriseId" Text :>
52+ "storeLayout" :>
53+ "pages" :>
54+ Capture "pageId" Text :>
55+ QueryParam "alt" AltJSON :>
56+ ReqBody '[JSON] StorePage :> Patch '[JSON] StorePage
57+
58+-- | Updates the content of a store page. This method supports patch
59+-- semantics.
60+--
61+-- /See:/ 'storelayoutpagesPatch' smart constructor.
62+data StorelayoutpagesPatch = StorelayoutpagesPatch
63+ { _spEnterpriseId :: !Text
64+ , _spPageId :: !Text
65+ , _spPayload :: !StorePage
66+ } deriving (Eq,Show,Data,Typeable,Generic)
67+
68+-- | Creates a value of 'StorelayoutpagesPatch' with the minimum fields required to make a request.
69+--
70+-- Use one of the following lenses to modify other fields as desired:
71+--
72+-- * 'spEnterpriseId'
73+--
74+-- * 'spPageId'
75+--
76+-- * 'spPayload'
77+storelayoutpagesPatch
78+ :: Text -- ^ 'spEnterpriseId'
79+ -> Text -- ^ 'spPageId'
80+ -> StorePage -- ^ 'spPayload'
81+ -> StorelayoutpagesPatch
82+storelayoutpagesPatch pSpEnterpriseId_ pSpPageId_ pSpPayload_ =
83+ StorelayoutpagesPatch
84+ { _spEnterpriseId = pSpEnterpriseId_
85+ , _spPageId = pSpPageId_
86+ , _spPayload = pSpPayload_
87+ }
88+
89+-- | The ID of the enterprise.
90+spEnterpriseId :: Lens' StorelayoutpagesPatch Text
91+spEnterpriseId
92+ = lens _spEnterpriseId
93+ (\ s a -> s{_spEnterpriseId = a})
94+
95+-- | The ID of the page.
96+spPageId :: Lens' StorelayoutpagesPatch Text
97+spPageId = lens _spPageId (\ s a -> s{_spPageId = a})
98+
99+-- | Multipart request metadata.
100+spPayload :: Lens' StorelayoutpagesPatch StorePage
101+spPayload
102+ = lens _spPayload (\ s a -> s{_spPayload = a})
103+
104+instance GoogleRequest StorelayoutpagesPatch where
105+ type Rs StorelayoutpagesPatch = StorePage
106+ requestClient StorelayoutpagesPatch{..}
107+ = go _spEnterpriseId _spPageId (Just AltJSON)
108+ _spPayload
109+ androidEnterpriseService
110+ where go
111+ = buildClient
112+ (Proxy :: Proxy StorelayoutpagesPatchResource)
113+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Update.hsnew file+111
@@ -0,0 +1,111 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Updates the content of a store page.
24+--
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.update@.
26+module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update
27+ (
28+ -- * REST Resource
29+ StorelayoutpagesUpdateResource
30+
31+ -- * Creating a Request
32+ , storelayoutpagesUpdate
33+ , StorelayoutpagesUpdate
34+
35+ -- * Request Lenses
36+ , suEnterpriseId
37+ , suPageId
38+ , suPayload
39+ ) where
40+
41+import Network.Google.AndroidEnterprise.Types
42+import Network.Google.Prelude
43+
44+-- | A resource alias for @androidenterprise.storelayoutpages.update@ method which the
45+-- 'StorelayoutpagesUpdate' request conforms to.
46+type StorelayoutpagesUpdateResource =
47+ "androidenterprise" :>
48+ "v1" :>
49+ "enterprises" :>
50+ Capture "enterpriseId" Text :>
51+ "storeLayout" :>
52+ "pages" :>
53+ Capture "pageId" Text :>
54+ QueryParam "alt" AltJSON :>
55+ ReqBody '[JSON] StorePage :> Put '[JSON] StorePage
56+
57+-- | Updates the content of a store page.
58+--
59+-- /See:/ 'storelayoutpagesUpdate' smart constructor.
60+data StorelayoutpagesUpdate = StorelayoutpagesUpdate
61+ { _suEnterpriseId :: !Text
62+ , _suPageId :: !Text
63+ , _suPayload :: !StorePage
64+ } deriving (Eq,Show,Data,Typeable,Generic)
65+
66+-- | Creates a value of 'StorelayoutpagesUpdate' with the minimum fields required to make a request.
67+--
68+-- Use one of the following lenses to modify other fields as desired:
69+--
70+-- * 'suEnterpriseId'
71+--
72+-- * 'suPageId'
73+--
74+-- * 'suPayload'
75+storelayoutpagesUpdate
76+ :: Text -- ^ 'suEnterpriseId'
77+ -> Text -- ^ 'suPageId'
78+ -> StorePage -- ^ 'suPayload'
79+ -> StorelayoutpagesUpdate
80+storelayoutpagesUpdate pSuEnterpriseId_ pSuPageId_ pSuPayload_ =
81+ StorelayoutpagesUpdate
82+ { _suEnterpriseId = pSuEnterpriseId_
83+ , _suPageId = pSuPageId_
84+ , _suPayload = pSuPayload_
85+ }
86+
87+-- | The ID of the enterprise.
88+suEnterpriseId :: Lens' StorelayoutpagesUpdate Text
89+suEnterpriseId
90+ = lens _suEnterpriseId
91+ (\ s a -> s{_suEnterpriseId = a})
92+
93+-- | The ID of the page.
94+suPageId :: Lens' StorelayoutpagesUpdate Text
95+suPageId = lens _suPageId (\ s a -> s{_suPageId = a})
96+
97+-- | Multipart request metadata.
98+suPayload :: Lens' StorelayoutpagesUpdate StorePage
99+suPayload
100+ = lens _suPayload (\ s a -> s{_suPayload = a})
101+
102+instance GoogleRequest StorelayoutpagesUpdate where
103+ type Rs StorelayoutpagesUpdate = StorePage
104+ requestClient StorelayoutpagesUpdate{..}
105+ = go _suEnterpriseId _suPageId (Just AltJSON)
106+ _suPayload
107+ androidEnterpriseService
108+ where go
109+ = buildClient
110+ (Proxy :: Proxy StorelayoutpagesUpdateResource)
111+ mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Users/GenerateToken.hs+3−3
@@ -22,9 +22,9 @@
22--
22--
23-- Generates a token (activation code) to allow this user to configure
23-- Generates a token (activation code) to allow this user to configure
24-- their work account in the Android Setup Wizard. Revokes any previously
24-- their work account in the Android Setup Wizard. Revokes any previously
25−-- generated token.
25+-- generated token. This call only works with Google managed accounts.
26--
26--
27−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.users.generateToken@.
27+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.generateToken@.
28module Network.Google.Resource.AndroidEnterprise.Users.GenerateToken
28module Network.Google.Resource.AndroidEnterprise.Users.GenerateToken
29 (
29 (
30 -- * REST Resource
30 -- * REST Resource
@@ -56,7 +56,7 @@ type UsersGenerateTokenResource =
56
56
57-- | Generates a token (activation code) to allow this user to configure
57-- | Generates a token (activation code) to allow this user to configure
58-- their work account in the Android Setup Wizard. Revokes any previously
58-- their work account in the Android Setup Wizard. Revokes any previously
59−-- generated token.
59+-- generated token. This call only works with Google managed accounts.
60--
60--
61-- /See:/ 'usersGenerateToken' smart constructor.
61-- /See:/ 'usersGenerateToken' smart constructor.
62data UsersGenerateToken = UsersGenerateToken
62data UsersGenerateToken = UsersGenerateToken
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Users/Get.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves a user\'s details.
23-- Retrieves a user\'s details.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.users.get@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.get@.
26module Network.Google.Resource.AndroidEnterprise.Users.Get
26module Network.Google.Resource.AndroidEnterprise.Users.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Users/GetAvailableProductSet.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Retrieves the set of products a user is entitled to access.
23-- Retrieves the set of products a user is entitled to access.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.users.getAvailableProductSet@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.getAvailableProductSet@.
26module Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet
26module Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Users/List.hs+3−3
@@ -20,9 +20,9 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Looks up a user by email address.
23+-- Looks up a user by their primary email address.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.users.list@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.list@.
26module Network.Google.Resource.AndroidEnterprise.Users.List
26module Network.Google.Resource.AndroidEnterprise.Users.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -52,7 +52,7 @@ type UsersListResource =
52 QueryParam "alt" AltJSON :>
52 QueryParam "alt" AltJSON :>
53 Get '[JSON] UsersListResponse
53 Get '[JSON] UsersListResponse
54
54
55−-- | Looks up a user by email address.
55+-- | Looks up a user by their primary email address.
56--
56--
57-- /See:/ 'usersList' smart constructor.
57-- /See:/ 'usersList' smart constructor.
58data UsersList = UsersList
58data UsersList = UsersList
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Users/RevokeToken.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Revokes a previously generated token (activation code) for the user.
23-- Revokes a previously generated token (activation code) for the user.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.users.revokeToken@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.revokeToken@.
26module Network.Google.Resource.AndroidEnterprise.Users.RevokeToken
26module Network.Google.Resource.AndroidEnterprise.Users.RevokeToken
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Users/SetAvailableProductSet.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- Modifies the set of products a user is entitled to access.
23-- Modifies the set of products a user is entitled to access.
24--
24--
25−-- /See:/ <https://developers.google.com/play/enterprise Google Play EMM API Reference> for @androidenterprise.users.setAvailableProductSet@.
25+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.setAvailableProductSet@.
26module Network.Google.Resource.AndroidEnterprise.Users.SetAvailableProductSet
26module Network.Google.Resource.AndroidEnterprise.Users.SetAvailableProductSet
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-android-enterprise/gogol-android-enterprise.cabal+14
@@ -54,10 +54,12 @@ library
54 , Network.Google.Resource.AndroidEnterprise.Enterprises.Delete
54 , Network.Google.Resource.AndroidEnterprise.Enterprises.Delete
55 , Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll
55 , Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll
56 , Network.Google.Resource.AndroidEnterprise.Enterprises.Get
56 , Network.Google.Resource.AndroidEnterprise.Enterprises.Get
57+ , Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout
57 , Network.Google.Resource.AndroidEnterprise.Enterprises.Insert
58 , Network.Google.Resource.AndroidEnterprise.Enterprises.Insert
58 , Network.Google.Resource.AndroidEnterprise.Enterprises.List
59 , Network.Google.Resource.AndroidEnterprise.Enterprises.List
59 , Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification
60 , Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification
60 , Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount
61 , Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount
62+ , Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout
61 , Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll
63 , Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll
62 , Network.Google.Resource.AndroidEnterprise.Entitlements.Delete
64 , Network.Google.Resource.AndroidEnterprise.Entitlements.Delete
63 , Network.Google.Resource.AndroidEnterprise.Entitlements.Get
65 , Network.Google.Resource.AndroidEnterprise.Entitlements.Get
@@ -79,6 +81,18 @@ library
79 , Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema
81 , Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema
80 , Network.Google.Resource.AndroidEnterprise.Products.GetPermissions
82 , Network.Google.Resource.AndroidEnterprise.Products.GetPermissions
81 , Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
83 , Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
84+ , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete
85+ , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get
86+ , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert
87+ , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List
88+ , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch
89+ , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update
90+ , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete
91+ , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get
92+ , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert
93+ , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List
94+ , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch
95+ , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update
82 , Network.Google.Resource.AndroidEnterprise.Users.GenerateToken
96 , Network.Google.Resource.AndroidEnterprise.Users.GenerateToken
83 , Network.Google.Resource.AndroidEnterprise.Users.Get
97 , Network.Google.Resource.AndroidEnterprise.Users.Get
84 , Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet
98 , Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet
gogol-android-publisher/gen/Network/Google/AndroidPublisher.hs+7
@@ -297,6 +297,7 @@ module Network.Google.AndroidPublisher
297 , season
297 , season
298 , sStart
298 , sStart
299 , sEnd
299 , sEnd
300+ , sProrations
300
301
301 -- ** PageInfo
302 -- ** PageInfo
302 , PageInfo
303 , PageInfo
@@ -403,6 +404,12 @@ module Network.Google.AndroidPublisher
403 -- ** EditsImagesUploadImageType
404 -- ** EditsImagesUploadImageType
404 , EditsImagesUploadImageType (..)
405 , EditsImagesUploadImageType (..)
405
406
407+ -- ** Prorate
408+ , Prorate
409+ , prorate
410+ , pStart
411+ , pDefaultPrice
412+
406 -- ** InAppProductsListResponse
413 -- ** InAppProductsListResponse
407 , InAppProductsListResponse
414 , InAppProductsListResponse
408 , inAppProductsListResponse
415 , inAppProductsListResponse
gogol-android-publisher/gen/Network/Google/AndroidPublisher/Types.hs+8−1
@@ -131,6 +131,7 @@ module Network.Google.AndroidPublisher.Types
131 , season
131 , season
132 , sStart
132 , sStart
133 , sEnd
133 , sEnd
134+ , sProrations
134
135
135 -- * PageInfo
136 -- * PageInfo
136 , PageInfo
137 , PageInfo
@@ -237,6 +238,12 @@ module Network.Google.AndroidPublisher.Types
237 -- * EditsImagesUploadImageType
238 -- * EditsImagesUploadImageType
238 , EditsImagesUploadImageType (..)
239 , EditsImagesUploadImageType (..)
239
240
241+ -- * Prorate
242+ , Prorate
243+ , prorate
244+ , pStart
245+ , pDefaultPrice
246+
240 -- * InAppProductsListResponse
247 -- * InAppProductsListResponse
241 , InAppProductsListResponse
248 , InAppProductsListResponse
242 , inAppProductsListResponse
249 , inAppProductsListResponse
@@ -378,7 +385,7 @@ import Network.Google.AndroidPublisher.Types.Sum
378import Network.Google.Prelude
385import Network.Google.Prelude
379
386
380-- | Default request referring to version 'v2' of the Google Play Developer API. This contains the host and root path used as a starting point for constructing service requests.
387-- | Default request referring to version 'v2' of the Google Play Developer API. This contains the host and root path used as a starting point for constructing service requests.
381−androidPublisherService :: Service
388+androidPublisherService :: ServiceConfig
382androidPublisherService
389androidPublisherService
383 = defaultService (ServiceId "androidpublisher:v2")
390 = defaultService (ServiceId "androidpublisher:v2")
384 "www.googleapis.com"
391 "www.googleapis.com"
gogol-android-publisher/gen/Network/Google/AndroidPublisher/Types/Product.hs+73−5
@@ -771,8 +771,9 @@ instance ToJSON TracksListResponse where
771--
771--
772-- /See:/ 'season' smart constructor.
772-- /See:/ 'season' smart constructor.
773data Season = Season
773data Season = Season
774− { _sStart :: !(Maybe MonthDay)
774+ { _sStart :: !(Maybe MonthDay)
775− , _sEnd :: !(Maybe MonthDay)
775+ , _sEnd :: !(Maybe MonthDay)
776+ , _sProrations :: !(Maybe [Prorate])
776 } deriving (Eq,Show,Data,Typeable,Generic)
777 } deriving (Eq,Show,Data,Typeable,Generic)
777
778
778-- | Creates a value of 'Season' with the minimum fields required to make a request.
779-- | Creates a value of 'Season' with the minimum fields required to make a request.
@@ -782,12 +783,15 @@ data Season = Season
782-- * 'sStart'
783-- * 'sStart'
783--
784--
784-- * 'sEnd'
785-- * 'sEnd'
786+--
787+-- * 'sProrations'
785season
788season
786 :: Season
789 :: Season
787season =
790season =
788 Season
791 Season
789 { _sStart = Nothing
792 { _sStart = Nothing
790 , _sEnd = Nothing
793 , _sEnd = Nothing
794+ , _sProrations = Nothing
791 }
795 }
792
796
793-- | Inclusive start date of the recurrence period.
797-- | Inclusive start date of the recurrence period.
@@ -798,16 +802,30 @@ sStart = lens _sStart (\ s a -> s{_sStart = a})
798sEnd :: Lens' Season (Maybe MonthDay)
802sEnd :: Lens' Season (Maybe MonthDay)
799sEnd = lens _sEnd (\ s a -> s{_sEnd = a})
803sEnd = lens _sEnd (\ s a -> s{_sEnd = a})
800
804
805+-- | Optionally present list of prorations for the season. Each proration is
806+-- a one-off discounted entry into a subscription. Each proration contains
807+-- the first date on which the discount is available and the new pricing
808+-- information.
809+sProrations :: Lens' Season [Prorate]
810+sProrations
811+ = lens _sProrations (\ s a -> s{_sProrations = a}) .
812+ _Default
813+ . _Coerce
814+
801instance FromJSON Season where
815instance FromJSON Season where
802 parseJSON
816 parseJSON
803 = withObject "Season"
817 = withObject "Season"
818+ (\ o ->
819+ Season <$>
804− (\ o -> Season <$> (o .:? "start") <*> (o .:? "end"))
820+ (o .:? "start") <*> (o .:? "end") <*>
821+ (o .:? "prorations" .!= mempty))
805
822
806instance ToJSON Season where
823instance ToJSON Season where
807 toJSON Season{..}
824 toJSON Season{..}
808 = object
825 = object
809 (catMaybes
826 (catMaybes
810− [("start" .=) <$> _sStart, ("end" .=) <$> _sEnd])
827+ [("start" .=) <$> _sStart, ("end" .=) <$> _sEnd,
828+ ("prorations" .=) <$> _sProrations])
811
829
812--
830--
813-- /See:/ 'pageInfo' smart constructor.
831-- /See:/ 'pageInfo' smart constructor.
@@ -1646,6 +1664,55 @@ instance ToJSON ImagesUploadResponse where
1646 toJSON ImagesUploadResponse{..}
1664 toJSON ImagesUploadResponse{..}
1647 = object (catMaybes [("image" .=) <$> _iurImage])
1665 = object (catMaybes [("image" .=) <$> _iurImage])
1648
1666
1667+--
1668+-- /See:/ 'prorate' smart constructor.
1669+data Prorate = Prorate
1670+ { _pStart :: !(Maybe MonthDay)
1671+ , _pDefaultPrice :: !(Maybe Price)
1672+ } deriving (Eq,Show,Data,Typeable,Generic)
1673+
1674+-- | Creates a value of 'Prorate' with the minimum fields required to make a request.
1675+--
1676+-- Use one of the following lenses to modify other fields as desired:
1677+--
1678+-- * 'pStart'
1679+--
1680+-- * 'pDefaultPrice'
1681+prorate
1682+ :: Prorate
1683+prorate =
1684+ Prorate
1685+ { _pStart = Nothing
1686+ , _pDefaultPrice = Nothing
1687+ }
1688+
1689+-- | Defines the first day on which the price takes effect.
1690+pStart :: Lens' Prorate (Maybe MonthDay)
1691+pStart = lens _pStart (\ s a -> s{_pStart = a})
1692+
1693+-- | Default price cannot be zero and must be less than the full subscription
1694+-- price. Default price is always in the developer\'s Checkout merchant
1695+-- currency. Targeted countries have their prices set automatically based
1696+-- on the default_price.
1697+pDefaultPrice :: Lens' Prorate (Maybe Price)
1698+pDefaultPrice
1699+ = lens _pDefaultPrice
1700+ (\ s a -> s{_pDefaultPrice = a})
1701+
1702+instance FromJSON Prorate where
1703+ parseJSON
1704+ = withObject "Prorate"
1705+ (\ o ->
1706+ Prorate <$>
1707+ (o .:? "start") <*> (o .:? "defaultPrice"))
1708+
1709+instance ToJSON Prorate where
1710+ toJSON Prorate{..}
1711+ = object
1712+ (catMaybes
1713+ [("start" .=) <$> _pStart,
1714+ ("defaultPrice" .=) <$> _pDefaultPrice])
1715+
1649--
1716--
1650-- /See:/ 'inAppProductsListResponse' smart constructor.
1717-- /See:/ 'inAppProductsListResponse' smart constructor.
1651data InAppProductsListResponse = InAppProductsListResponse
1718data InAppProductsListResponse = InAppProductsListResponse
@@ -1992,7 +2059,8 @@ iapPurchaseType
1992 (\ s a -> s{_iapPurchaseType = a})
2059 (\ s a -> s{_iapPurchaseType = a})
1993
2060
1994-- | Subscription period, specified in ISO 8601 format. Acceptable values are
2061-- | Subscription period, specified in ISO 8601 format. Acceptable values are
1995−-- \"P1W\" (one week), \"P1M\" (one month) and \"P1Y\" (one year).
2062+-- \"P1W\" (one week), \"P1M\" (one month), \"P3M\" (three months), \"P6M\"
2063+-- (six months), and \"P1Y\" (one year).
1996iapSubscriptionPeriod :: Lens' InAppProduct (Maybe Text)
2064iapSubscriptionPeriod :: Lens' InAppProduct (Maybe Text)
1997iapSubscriptionPeriod
2065iapSubscriptionPeriod
1998 = lens _iapSubscriptionPeriod
2066 = lens _iapSubscriptionPeriod
gogol-appengine/gen/Network/Google/AppEngine.hs+97−70
@@ -13,10 +13,9 @@
13-- Stability : auto-generated
13-- Stability : auto-generated
14-- Portability : non-portable (GHC extensions)
14-- Portability : non-portable (GHC extensions)
15--
15--
16−-- The Google App Engine Admin API enables developers to provision and
17−-- manage their App Engine applications.
16+-- Provisions and manages App Engine applications.
18--
17--
19−-- /See:/ <https://developers.google.com/appengine/ Google App Engine Admin API Reference>
18+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference>
20module Network.Google.AppEngine
19module Network.Google.AppEngine
21 (
20 (
22 -- * Service Configuration
21 -- * Service Configuration
@@ -33,38 +32,49 @@ module Network.Google.AppEngine
33 -- ** appengine.apps.get
32 -- ** appengine.apps.get
34 , module Network.Google.Resource.AppEngine.Apps.Get
33 , module Network.Google.Resource.AppEngine.Apps.Get
35
34
36− -- ** appengine.apps.modules.delete
35+ -- ** appengine.apps.operations.get
37− , module Network.Google.Resource.AppEngine.Apps.Modules.Delete
36+ , module Network.Google.Resource.AppEngine.Apps.Operations.Get
38
37
39− -- ** appengine.apps.modules.get
38+ -- ** appengine.apps.operations.list
40− , module Network.Google.Resource.AppEngine.Apps.Modules.Get
39+ , module Network.Google.Resource.AppEngine.Apps.Operations.List
41
40
42− -- ** appengine.apps.modules.list
41+ -- ** appengine.apps.services.delete
43− , module Network.Google.Resource.AppEngine.Apps.Modules.List
42+ , module Network.Google.Resource.AppEngine.Apps.Services.Delete
44
43
45− -- ** appengine.apps.modules.patch
44+ -- ** appengine.apps.services.get
46− , module Network.Google.Resource.AppEngine.Apps.Modules.Patch
45+ , module Network.Google.Resource.AppEngine.Apps.Services.Get
47
46
48− -- ** appengine.apps.modules.versions.create
47+ -- ** appengine.apps.services.list
49− , module Network.Google.Resource.AppEngine.Apps.Modules.Versions.Create
48+ , module Network.Google.Resource.AppEngine.Apps.Services.List
50
49
51− -- ** appengine.apps.modules.versions.delete
50+ -- ** appengine.apps.services.patch
52− , module Network.Google.Resource.AppEngine.Apps.Modules.Versions.Delete
51+ , module Network.Google.Resource.AppEngine.Apps.Services.Patch
53
52
54− -- ** appengine.apps.modules.versions.get
53+ -- ** appengine.apps.services.versions.create
55− , module Network.Google.Resource.AppEngine.Apps.Modules.Versions.Get
54+ , module Network.Google.Resource.AppEngine.Apps.Services.Versions.Create
56
55
57− -- ** appengine.apps.modules.versions.list
56+ -- ** appengine.apps.services.versions.delete
58− , module Network.Google.Resource.AppEngine.Apps.Modules.Versions.List
57+ , module Network.Google.Resource.AppEngine.Apps.Services.Versions.Delete
59
58
60− -- ** appengine.apps.operations.get
59+ -- ** appengine.apps.services.versions.get
61− , module Network.Google.Resource.AppEngine.Apps.Operations.Get
60+ , module Network.Google.Resource.AppEngine.Apps.Services.Versions.Get
62
61
63− -- ** appengine.apps.operations.list
62+ -- ** appengine.apps.services.versions.list
64− , module Network.Google.Resource.AppEngine.Apps.Operations.List
63+ , module Network.Google.Resource.AppEngine.Apps.Services.Versions.List
64+
65+ -- ** appengine.apps.services.versions.patch
66+ , module Network.Google.Resource.AppEngine.Apps.Services.Versions.Patch
65
67
66 -- * Types
68 -- * Types
67
69
70+ -- ** NetworkUtilization
71+ , NetworkUtilization
72+ , networkUtilization
73+ , nuTargetReceivedBytesPerSec
74+ , nuTargetSentPacketsPerSec
75+ , nuTargetReceivedPacketsPerSec
76+ , nuTargetSentBytesPerSec
77+
68 -- ** Status
78 -- ** Status
69 , Status
79 , Status
70 , status
80 , status
@@ -88,6 +98,12 @@ module Network.Google.AppEngine
88 , scriptHandler
98 , scriptHandler
89 , shScriptPath
99 , shScriptPath
90
100
101+ -- ** ListServicesResponse
102+ , ListServicesResponse
103+ , listServicesResponse
104+ , lsrNextPageToken
105+ , lsrServices
106+
91 -- ** URLMap
107 -- ** URLMap
92 , URLMap
108 , URLMap
93 , urlMap
109 , urlMap
@@ -99,7 +115,6 @@ module Network.Google.AppEngine
99 , umAuthFailAction
115 , umAuthFailAction
100 , umStaticFiles
116 , umStaticFiles
101 , umLogin
117 , umLogin
102− , umStaticDirectory
103
118
104 -- ** Library
119 -- ** Library
105 , Library
120 , Library
@@ -107,6 +122,14 @@ module Network.Google.AppEngine
107 , lName
122 , lName
108 , lVersion
123 , lVersion
109
124
125+ -- ** DiskUtilization
126+ , DiskUtilization
127+ , diskUtilization
128+ , duTargetWriteOpsPerSec
129+ , duTargetReadOpsPerSec
130+ , duTargetWriteBytesPerSec
131+ , duTargetReadBytesPerSec
132+
110 -- ** ListOperationsResponse
133 -- ** ListOperationsResponse
111 , ListOperationsResponse
134 , ListOperationsResponse
112 , listOperationsResponse
135 , listOperationsResponse
@@ -141,10 +164,14 @@ module Network.Google.AppEngine
141 -- ** Application
164 -- ** Application
142 , Application
165 , Application
143 , application
166 , application
167+ , aDefaultHostname
168+ , aDefaultCookieExpiration
144 , aLocation
169 , aLocation
170+ , aAuthDomain
145 , aCodeBucket
171 , aCodeBucket
146 , aName
172 , aName
147 , aDispatchRules
173 , aDispatchRules
174+ , aDefaultBucket
148 , aId
175 , aId
149
176
150 -- ** VersionBetaSettings
177 -- ** VersionBetaSettings
@@ -152,6 +179,13 @@ module Network.Google.AppEngine
152 , versionBetaSettings
179 , versionBetaSettings
153 , vbsAddtional
180 , vbsAddtional
154
181
182+ -- ** Service
183+ , Service
184+ , service
185+ , sSplit
186+ , sName
187+ , sId
188+
155 -- ** Operation
189 -- ** Operation
156 , Operation
190 , Operation
157 , operation
191 , operation
@@ -165,13 +199,8 @@ module Network.Google.AppEngine
165 , URLDispatchRule
199 , URLDispatchRule
166 , urlDispatchRule
200 , urlDispatchRule
167 , udrPath
201 , udrPath
202+ , udrService
168 , udrDomain
203 , udrDomain
169− , udrModule
170−
171− -- ** StaticDirectoryHandlerHTTPHeaders
172− , StaticDirectoryHandlerHTTPHeaders
173− , staticDirectoryHandlerHTTPHeaders
174− , sdhhttphAddtional
175
204
176 -- ** ListVersionsResponse
205 -- ** ListVersionsResponse
177 , ListVersionsResponse
206 , ListVersionsResponse
@@ -189,21 +218,27 @@ module Network.Google.AppEngine
189 -- ** AutomaticScaling
218 -- ** AutomaticScaling
190 , AutomaticScaling
219 , AutomaticScaling
191 , automaticScaling
220 , automaticScaling
221+ , asNetworkUtilization
192 , asMaxTotalInstances
222 , asMaxTotalInstances
193 , asMinIdleInstances
223 , asMinIdleInstances
224+ , asDiskUtilization
194 , asMinPendingLatency
225 , asMinPendingLatency
195 , asCPUUtilization
226 , asCPUUtilization
196 , asMaxIdleInstances
227 , asMaxIdleInstances
197 , asMinTotalInstances
228 , asMinTotalInstances
198 , asMaxConcurrentRequests
229 , asMaxConcurrentRequests
199 , asCoolDownPeriod
230 , asCoolDownPeriod
231+ , asRequestUtilization
200 , asMaxPendingLatency
232 , asMaxPendingLatency
201
233
202− -- ** ListModulesResponse
234+ -- ** OperationMetadataV1Beta5
203− , ListModulesResponse
235+ , OperationMetadataV1Beta5
204− , listModulesResponse
236+ , operationMetadataV1Beta5
205− , lmrNextPageToken
237+ , omvbInsertTime
206− , lmrModules
238+ , omvbUser
239+ , omvbMethod
240+ , omvbEndTime
241+ , omvbTarget
207
242
208 -- ** APIEndpointHandler
243 -- ** APIEndpointHandler
209 , APIEndpointHandler
244 , APIEndpointHandler
@@ -288,16 +323,10 @@ module Network.Google.AppEngine
288 , vId
323 , vId
289 , vEnvVariables
324 , vEnvVariables
290 , vServingStatus
325 , vServingStatus
326+ , vDiskUsageBytes
291 , vLibraries
327 , vLibraries
292 , vDeployment
328 , vDeployment
293
329
294− -- ** Module
295− , Module
296− , module'
297− , mSplit
298− , mName
299− , mId
300−
301 -- ** StaticFilesHandler
330 -- ** StaticFilesHandler
302 , StaticFilesHandler
331 , StaticFilesHandler
303 , staticFilesHandler
332 , staticFilesHandler
@@ -326,6 +355,12 @@ module Network.Google.AppEngine
326 , omOperationType
355 , omOperationType
327 , omTarget
356 , omTarget
328
357
358+ -- ** RequestUtilization
359+ , RequestUtilization
360+ , requestUtilization
361+ , ruTargetConcurrentRequests
362+ , ruTargetRequestCountPerSec
363+
329 -- ** SourceReference
364 -- ** SourceReference
330 , SourceReference
365 , SourceReference
331 , sourceReference
366 , sourceReference
@@ -348,31 +383,22 @@ module Network.Google.AppEngine
348 , dContainer
383 , dContainer
349 , dFiles
384 , dFiles
350 , dSourceReferences
385 , dSourceReferences
351−
352− -- ** StaticDirectoryHandler
353− , StaticDirectoryHandler
354− , staticDirectoryHandler
355− , sdhHTTPHeaders
356− , sdhRequireMatchingFile
357− , sdhExpiration
358− , sdhMimeType
359− , sdhApplicationReadable
360− , sdhDirectory
361 ) where
386 ) where
362
387
363import Network.Google.AppEngine.Types
388import Network.Google.AppEngine.Types
364import Network.Google.Prelude
389import Network.Google.Prelude
365import Network.Google.Resource.AppEngine.Apps.Get
390import Network.Google.Resource.AppEngine.Apps.Get
366−import Network.Google.Resource.AppEngine.Apps.Modules.Delete
367−import Network.Google.Resource.AppEngine.Apps.Modules.Get
368−import Network.Google.Resource.AppEngine.Apps.Modules.List
369−import Network.Google.Resource.AppEngine.Apps.Modules.Patch
370−import Network.Google.Resource.AppEngine.Apps.Modules.Versions.Create
371−import Network.Google.Resource.AppEngine.Apps.Modules.Versions.Delete
372−import Network.Google.Resource.AppEngine.Apps.Modules.Versions.Get
373−import Network.Google.Resource.AppEngine.Apps.Modules.Versions.List
374import Network.Google.Resource.AppEngine.Apps.Operations.Get
391import Network.Google.Resource.AppEngine.Apps.Operations.Get
375import Network.Google.Resource.AppEngine.Apps.Operations.List
392import Network.Google.Resource.AppEngine.Apps.Operations.List
393+import Network.Google.Resource.AppEngine.Apps.Services.Delete
394+import Network.Google.Resource.AppEngine.Apps.Services.Get
395+import Network.Google.Resource.AppEngine.Apps.Services.List
396+import Network.Google.Resource.AppEngine.Apps.Services.Patch
397+import Network.Google.Resource.AppEngine.Apps.Services.Versions.Create
398+import Network.Google.Resource.AppEngine.Apps.Services.Versions.Delete
399+import Network.Google.Resource.AppEngine.Apps.Services.Versions.Get
400+import Network.Google.Resource.AppEngine.Apps.Services.Versions.List
401+import Network.Google.Resource.AppEngine.Apps.Services.Versions.Patch
376
402
377{- $resources
403{- $resources
378TODO
404TODO
@@ -380,14 +406,15 @@ TODO
380
406
381-- | Represents the entirety of the methods and resources available for the Google App Engine Admin API service.
407-- | Represents the entirety of the methods and resources available for the Google App Engine Admin API service.
382type AppEngineAPI =
408type AppEngineAPI =
383− AppsModulesVersionsListResource :<|>
384− AppsModulesVersionsGetResource
385− :<|> AppsModulesVersionsCreateResource
386− :<|> AppsModulesVersionsDeleteResource
387− :<|> AppsModulesListResource
388− :<|> AppsModulesPatchResource
389− :<|> AppsModulesGetResource
390− :<|> AppsModulesDeleteResource
391− :<|> AppsOperationsListResource
409+ AppsOperationsListResource :<|>
392− :<|> AppsOperationsGetResource
410+ AppsOperationsGetResource
411+ :<|> AppsServicesVersionsListResource
412+ :<|> AppsServicesVersionsPatchResource
413+ :<|> AppsServicesVersionsGetResource
414+ :<|> AppsServicesVersionsCreateResource
415+ :<|> AppsServicesVersionsDeleteResource
416+ :<|> AppsServicesListResource
417+ :<|> AppsServicesPatchResource
418+ :<|> AppsServicesGetResource
419+ :<|> AppsServicesDeleteResource
393 :<|> AppsGetResource
420 :<|> AppsGetResource
gogol-appengine/gen/Network/Google/AppEngine/Types.hs+55−32
@@ -21,6 +21,14 @@ module Network.Google.AppEngine.Types
21 -- * OAuth Scopes
21 -- * OAuth Scopes
22 , cloudPlatformScope
22 , cloudPlatformScope
23
23
24+ -- * NetworkUtilization
25+ , NetworkUtilization
26+ , networkUtilization
27+ , nuTargetReceivedBytesPerSec
28+ , nuTargetSentPacketsPerSec
29+ , nuTargetReceivedPacketsPerSec
30+ , nuTargetSentBytesPerSec
31+
24 -- * Status
32 -- * Status
25 , Status
33 , Status
26 , status
34 , status
@@ -44,6 +52,12 @@ module Network.Google.AppEngine.Types
44 , scriptHandler
52 , scriptHandler
45 , shScriptPath
53 , shScriptPath
46
54
55+ -- * ListServicesResponse
56+ , ListServicesResponse
57+ , listServicesResponse
58+ , lsrNextPageToken
59+ , lsrServices
60+
47 -- * URLMap
61 -- * URLMap
48 , URLMap
62 , URLMap
49 , urlMap
63 , urlMap
@@ -55,7 +69,6 @@ module Network.Google.AppEngine.Types
55 , umAuthFailAction
69 , umAuthFailAction
56 , umStaticFiles
70 , umStaticFiles
57 , umLogin
71 , umLogin
58− , umStaticDirectory
59
72
60 -- * Library
73 -- * Library
61 , Library
74 , Library
@@ -63,6 +76,14 @@ module Network.Google.AppEngine.Types
63 , lName
76 , lName
64 , lVersion
77 , lVersion
65
78
79+ -- * DiskUtilization
80+ , DiskUtilization
81+ , diskUtilization
82+ , duTargetWriteOpsPerSec
83+ , duTargetReadOpsPerSec
84+ , duTargetWriteBytesPerSec
85+ , duTargetReadBytesPerSec
86+
66 -- * ListOperationsResponse
87 -- * ListOperationsResponse
67 , ListOperationsResponse
88 , ListOperationsResponse
68 , listOperationsResponse
89 , listOperationsResponse
@@ -97,10 +118,14 @@ module Network.Google.AppEngine.Types
97 -- * Application
118 -- * Application
98 , Application
119 , Application
99 , application
120 , application
121+ , aDefaultHostname
122+ , aDefaultCookieExpiration
100 , aLocation
123 , aLocation
124+ , aAuthDomain
101 , aCodeBucket
125 , aCodeBucket
102 , aName
126 , aName
103 , aDispatchRules
127 , aDispatchRules
128+ , aDefaultBucket
104 , aId
129 , aId
105
130
106 -- * VersionBetaSettings
131 -- * VersionBetaSettings
@@ -108,6 +133,13 @@ module Network.Google.AppEngine.Types
108 , versionBetaSettings
133 , versionBetaSettings
109 , vbsAddtional
134 , vbsAddtional
110
135
136+ -- * Service
137+ , Service
138+ , service
139+ , sSplit
140+ , sName
141+ , sId
142+
111 -- * Operation
143 -- * Operation
112 , Operation
144 , Operation
113 , operation
145 , operation
@@ -121,13 +153,8 @@ module Network.Google.AppEngine.Types
121 , URLDispatchRule
153 , URLDispatchRule
122 , urlDispatchRule
154 , urlDispatchRule
123 , udrPath
155 , udrPath
156+ , udrService
124 , udrDomain
157 , udrDomain
125− , udrModule
126−
127− -- * StaticDirectoryHandlerHTTPHeaders
128− , StaticDirectoryHandlerHTTPHeaders
129− , staticDirectoryHandlerHTTPHeaders
130− , sdhhttphAddtional
131
158
132 -- * ListVersionsResponse
159 -- * ListVersionsResponse
133 , ListVersionsResponse
160 , ListVersionsResponse
@@ -145,21 +172,27 @@ module Network.Google.AppEngine.Types
145 -- * AutomaticScaling
172 -- * AutomaticScaling
146 , AutomaticScaling
173 , AutomaticScaling
147 , automaticScaling
174 , automaticScaling
175+ , asNetworkUtilization
148 , asMaxTotalInstances
176 , asMaxTotalInstances
149 , asMinIdleInstances
177 , asMinIdleInstances
178+ , asDiskUtilization
150 , asMinPendingLatency
179 , asMinPendingLatency
151 , asCPUUtilization
180 , asCPUUtilization
152 , asMaxIdleInstances
181 , asMaxIdleInstances
153 , asMinTotalInstances
182 , asMinTotalInstances
154 , asMaxConcurrentRequests
183 , asMaxConcurrentRequests
155 , asCoolDownPeriod
184 , asCoolDownPeriod
185+ , asRequestUtilization
156 , asMaxPendingLatency
186 , asMaxPendingLatency
157
187
158− -- * ListModulesResponse
188+ -- * OperationMetadataV1Beta5
159− , ListModulesResponse
189+ , OperationMetadataV1Beta5
160− , listModulesResponse
190+ , operationMetadataV1Beta5
161− , lmrNextPageToken
191+ , omvbInsertTime
162− , lmrModules
192+ , omvbUser
193+ , omvbMethod
194+ , omvbEndTime
195+ , omvbTarget
163
196
164 -- * APIEndpointHandler
197 -- * APIEndpointHandler
165 , APIEndpointHandler
198 , APIEndpointHandler
@@ -244,16 +277,10 @@ module Network.Google.AppEngine.Types
244 , vId
277 , vId
245 , vEnvVariables
278 , vEnvVariables
246 , vServingStatus
279 , vServingStatus
280+ , vDiskUsageBytes
247 , vLibraries
281 , vLibraries
248 , vDeployment
282 , vDeployment
249
283
250− -- * Module
251− , Module
252− , module'
253− , mSplit
254− , mName
255− , mId
256−
257 -- * StaticFilesHandler
284 -- * StaticFilesHandler
258 , StaticFilesHandler
285 , StaticFilesHandler
259 , staticFilesHandler
286 , staticFilesHandler
@@ -282,6 +309,12 @@ module Network.Google.AppEngine.Types
282 , omOperationType
309 , omOperationType
283 , omTarget
310 , omTarget
284
311
312+ -- * RequestUtilization
313+ , RequestUtilization
314+ , requestUtilization
315+ , ruTargetConcurrentRequests
316+ , ruTargetRequestCountPerSec
317+
285 -- * SourceReference
318 -- * SourceReference
286 , SourceReference
319 , SourceReference
287 , sourceReference
320 , sourceReference
@@ -304,26 +337,16 @@ module Network.Google.AppEngine.Types
304 , dContainer
337 , dContainer
305 , dFiles
338 , dFiles
306 , dSourceReferences
339 , dSourceReferences
307−
308− -- * StaticDirectoryHandler
309− , StaticDirectoryHandler
310− , staticDirectoryHandler
311− , sdhHTTPHeaders
312− , sdhRequireMatchingFile
313− , sdhExpiration
314− , sdhMimeType
315− , sdhApplicationReadable
316− , sdhDirectory
317 ) where
340 ) where
318
341
319import Network.Google.AppEngine.Types.Product
342import Network.Google.AppEngine.Types.Product
320import Network.Google.AppEngine.Types.Sum
343import Network.Google.AppEngine.Types.Sum
321import Network.Google.Prelude
344import Network.Google.Prelude
322
345
323−-- | Default request referring to version 'v1beta4' of the Google App Engine Admin API. This contains the host and root path used as a starting point for constructing service requests.
346+-- | Default request referring to version 'v1beta5' of the Google App Engine Admin API. This contains the host and root path used as a starting point for constructing service requests.
324−appEngineService :: Service
347+appEngineService :: ServiceConfig
325appEngineService
348appEngineService
326− = defaultService (ServiceId "appengine:v1beta4")
349+ = defaultService (ServiceId "appengine:v1beta5")
327 "appengine.googleapis.com"
350 "appengine.googleapis.com"
328
351
329-- | View and manage your data across Google Cloud Platform services
352-- | View and manage your data across Google Cloud Platform services
gogol-appengine/gen/Network/Google/AppEngine/Types/Product.hs+622−384
@@ -20,42 +20,123 @@ module Network.Google.AppEngine.Types.Product where
20import Network.Google.AppEngine.Types.Sum
20import Network.Google.AppEngine.Types.Sum
21import Network.Google.Prelude
21import Network.Google.Prelude
22
22
23+-- | Target scaling by network usage (for VM runtimes only).
24+--
25+-- /See:/ 'networkUtilization' smart constructor.
26+data NetworkUtilization = NetworkUtilization
27+ { _nuTargetReceivedBytesPerSec :: !(Maybe (Textual Int32))
28+ , _nuTargetSentPacketsPerSec :: !(Maybe (Textual Int32))
29+ , _nuTargetReceivedPacketsPerSec :: !(Maybe (Textual Int32))
30+ , _nuTargetSentBytesPerSec :: !(Maybe (Textual Int32))
31+ } deriving (Eq,Show,Data,Typeable,Generic)
32+
33+-- | Creates a value of 'NetworkUtilization' with the minimum fields required to make a request.
34+--
35+-- Use one of the following lenses to modify other fields as desired:
36+--
37+-- * 'nuTargetReceivedBytesPerSec'
38+--
39+-- * 'nuTargetSentPacketsPerSec'
40+--
41+-- * 'nuTargetReceivedPacketsPerSec'
42+--
43+-- * 'nuTargetSentBytesPerSec'
44+networkUtilization
45+ :: NetworkUtilization
46+networkUtilization =
47+ NetworkUtilization
48+ { _nuTargetReceivedBytesPerSec = Nothing
49+ , _nuTargetSentPacketsPerSec = Nothing
50+ , _nuTargetReceivedPacketsPerSec = Nothing
51+ , _nuTargetSentBytesPerSec = Nothing
52+ }
53+
54+-- | Target bytes per second received.
55+nuTargetReceivedBytesPerSec :: Lens' NetworkUtilization (Maybe Int32)
56+nuTargetReceivedBytesPerSec
57+ = lens _nuTargetReceivedBytesPerSec
58+ (\ s a -> s{_nuTargetReceivedBytesPerSec = a})
59+ . mapping _Coerce
60+
61+-- | Target packets per second sent.
62+nuTargetSentPacketsPerSec :: Lens' NetworkUtilization (Maybe Int32)
63+nuTargetSentPacketsPerSec
64+ = lens _nuTargetSentPacketsPerSec
65+ (\ s a -> s{_nuTargetSentPacketsPerSec = a})
66+ . mapping _Coerce
67+
68+-- | Target packets per second received.
69+nuTargetReceivedPacketsPerSec :: Lens' NetworkUtilization (Maybe Int32)
70+nuTargetReceivedPacketsPerSec
71+ = lens _nuTargetReceivedPacketsPerSec
72+ (\ s a -> s{_nuTargetReceivedPacketsPerSec = a})
73+ . mapping _Coerce
74+
75+-- | Target bytes per second sent.
76+nuTargetSentBytesPerSec :: Lens' NetworkUtilization (Maybe Int32)
77+nuTargetSentBytesPerSec
78+ = lens _nuTargetSentBytesPerSec
79+ (\ s a -> s{_nuTargetSentBytesPerSec = a})
80+ . mapping _Coerce
81+
82+instance FromJSON NetworkUtilization where
83+ parseJSON
84+ = withObject "NetworkUtilization"
85+ (\ o ->
86+ NetworkUtilization <$>
87+ (o .:? "targetReceivedBytesPerSec") <*>
88+ (o .:? "targetSentPacketsPerSec")
89+ <*> (o .:? "targetReceivedPacketsPerSec")
90+ <*> (o .:? "targetSentBytesPerSec"))
91+
92+instance ToJSON NetworkUtilization where
93+ toJSON NetworkUtilization{..}
94+ = object
95+ (catMaybes
96+ [("targetReceivedBytesPerSec" .=) <$>
97+ _nuTargetReceivedBytesPerSec,
98+ ("targetSentPacketsPerSec" .=) <$>
99+ _nuTargetSentPacketsPerSec,
100+ ("targetReceivedPacketsPerSec" .=) <$>
101+ _nuTargetReceivedPacketsPerSec,
102+ ("targetSentBytesPerSec" .=) <$>
103+ _nuTargetSentBytesPerSec])
104+
23-- | The \`Status\` type defines a logical error model that is suitable for
105-- | The \`Status\` type defines a logical error model that is suitable for
24-- different programming environments, including REST APIs and RPC APIs. It
106-- different programming environments, including REST APIs and RPC APIs. It
25-- is used by [gRPC](https:\/\/github.com\/grpc). The error model is
107-- is used by [gRPC](https:\/\/github.com\/grpc). The error model is
26-- designed to be: - Simple to use and understand for most users - Flexible
108-- designed to be: - Simple to use and understand for most users - Flexible
27-- enough to meet unexpected needs # Overview The \`Status\` message
109-- enough to meet unexpected needs # Overview The \`Status\` message
28-- contains three pieces of data: error code, error message, and error
110-- contains three pieces of data: error code, error message, and error
29−-- details. The error code should be an enum value of
111+-- details. The error code should be an enum value of google.rpc.Code, but
30−-- [google.rpc.Code][google.rpc.Code], but it may accept additional error
31−-- codes if needed. The error message should be a developer-facing English
112+-- it may accept additional error codes if needed. The error message should
32−-- message that helps developers *understand* and *resolve* the error. If a
113+-- be a developer-facing English message that helps developers *understand*
33−-- localized user-facing error message is needed, put the localized message
114+-- and *resolve* the error. If a localized user-facing error message is
34−-- in the error details or localize it in the client. The optional error
115+-- needed, put the localized message in the error details or localize it in
35−-- details may contain arbitrary information about the error. There is a
116+-- the client. The optional error details may contain arbitrary information
36−-- predefined set of error detail types in the package \`google.rpc\` which
117+-- about the error. There is a predefined set of error detail types in the
37−-- can be used for common error conditions. # Language mapping The
118+-- package \`google.rpc\` which can be used for common error conditions. #
38−-- \`Status\` message is the logical representation of the error model, but
119+-- Language mapping The \`Status\` message is the logical representation of
39−-- it is not necessarily the actual wire format. When the \`Status\`
120+-- the error model, but it is not necessarily the actual wire format. When
40−-- message is exposed in different client libraries and different wire
121+-- the \`Status\` message is exposed in different client libraries and
41−-- protocols, it can be mapped differently. For example, it will likely be
122+-- different wire protocols, it can be mapped differently. For example, it
42−-- mapped to some exceptions in Java, but more likely mapped to some error
123+-- will likely be mapped to some exceptions in Java, but more likely mapped
43−-- codes in C. # Other uses The error model and the \`Status\` message can
124+-- to some error codes in C. # Other uses The error model and the
44−-- be used in a variety of environments, either with or without APIs, to
125+-- \`Status\` message can be used in a variety of environments, either with
45−-- provide a consistent developer experience across different environments.
126+-- or without APIs, to provide a consistent developer experience across
46−-- Example uses of this error model include: - Partial errors. If a service
127+-- different environments. Example uses of this error model include: -
47−-- needs to return partial errors to the client, it may embed the
128+-- Partial errors. If a service needs to return partial errors to the
48−-- \`Status\` in the normal response to indicate the partial errors. -
129+-- client, it may embed the \`Status\` in the normal response to indicate
49−-- Workflow errors. A typical workflow has multiple steps. Each step may
130+-- the partial errors. - Workflow errors. A typical workflow has multiple
50−-- have a \`Status\` message for error reporting purpose. - Batch
131+-- steps. Each step may have a \`Status\` message for error reporting
51−-- operations. If a client uses batch request and batch response, the
132+-- purpose. - Batch operations. If a client uses batch request and batch
52−-- \`Status\` message should be used directly inside batch response, one
133+-- response, the \`Status\` message should be used directly inside batch
53−-- for each error sub-response. - Asynchronous operations. If an API call
134+-- response, one for each error sub-response. - Asynchronous operations. If
54−-- embeds asynchronous operation results in its response, the status of
135+-- an API call embeds asynchronous operation results in its response, the
55−-- those operations should be represented directly using the \`Status\`
136+-- status of those operations should be represented directly using the
56−-- message. - Logging. If some API errors are stored in logs, the message
137+-- \`Status\` message. - Logging. If some API errors are stored in logs,
57−-- \`Status\` could be used directly after any stripping needed for
138+-- the message \`Status\` could be used directly after any stripping needed
58−-- security\/privacy reasons.
139+-- for security\/privacy reasons.
59--
140--
60-- /See:/ 'status' smart constructor.
141-- /See:/ 'status' smart constructor.
61data Status = Status
142data Status = Status
@@ -90,8 +171,7 @@ sDetails
90 _Default
171 _Default
91 . _Coerce
172 . _Coerce
92
173
93−-- | The status code, which should be an enum value of
174+-- | The status code, which should be an enum value of google.rpc.Code.
94−-- [google.rpc.Code][google.rpc.Code].
95sCode :: Lens' Status (Maybe Int32)
175sCode :: Lens' Status (Maybe Int32)
96sCode
176sCode
97 = lens _sCode (\ s a -> s{_sCode = a}) .
177 = lens _sCode (\ s a -> s{_sCode = a}) .
@@ -99,8 +179,7 @@ sCode
99
179
100-- | A developer-facing error message, which should be in English. Any
180-- | A developer-facing error message, which should be in English. Any
101-- user-facing error message should be localized and sent in the
181-- user-facing error message should be localized and sent in the
102−-- [google.rpc.Status.details][google.rpc.Status.details] field, or
182+-- google.rpc.Status.details field, or localized by the client.
103−-- localized by the client.
104sMessage :: Lens' Status (Maybe Text)
183sMessage :: Lens' Status (Maybe Text)
105sMessage = lens _sMessage (\ s a -> s{_sMessage = a})
184sMessage = lens _sMessage (\ s a -> s{_sMessage = a})
106
185
@@ -157,10 +236,10 @@ instance FromJSON OperationSchema where
157instance ToJSON OperationSchema where
236instance ToJSON OperationSchema where
158 toJSON = toJSON . _osAddtional
237 toJSON = toJSON . _osAddtional
159
238
160−-- | Configuration for traffic splitting for versions within a single module.
239+-- | Configuration for traffic splitting for versions within a single
161−-- Traffic splitting allows traffic directed to the module to be assigned
240+-- service. Traffic splitting allows traffic directed to the service to be
162−-- to one of several versions in a fractional way, enabling experiments and
241+-- assigned to one of several versions in a fractional way, enabling
163−-- canarying new builds, for example.
242+-- experiments and canarying new builds, for example.
164--
243--
165-- /See:/ 'trafficSplit' smart constructor.
244-- /See:/ 'trafficSplit' smart constructor.
166data TrafficSplit = TrafficSplit
245data TrafficSplit = TrafficSplit
@@ -190,14 +269,14 @@ tsShardBy :: Lens' TrafficSplit (Maybe Text)
190tsShardBy
269tsShardBy
191 = lens _tsShardBy (\ s a -> s{_tsShardBy = a})
270 = lens _tsShardBy (\ s a -> s{_tsShardBy = a})
192
271
193−-- | Mapping from module version IDs within the module to fractional (0.000,
272+-- | Mapping from service version IDs within the service to fractional
194−-- 1] allocations of traffic for that version. Each version may only be
273+-- (0.000, 1] allocations of traffic for that version. Each version may
195−-- specified once, but some versions in the module may not have any traffic
274+-- only be specified once, but some versions in the service may not have
196−-- allocation. Modules that have traffic allocated in this field may not be
275+-- any traffic allocation. Services that have traffic allocated in this
197−-- deleted until the module is deleted, or their traffic allocation is
276+-- field may not be deleted until the service is deleted, or their traffic
198−-- removed. Allocations must sum to 1. Supports precision up to two decimal
277+-- allocation is removed. Allocations must sum to 1. Supports precision up
199−-- places for IP-based splits and up to three decimal places for
278+-- to two decimal places for IP-based splits and up to three decimal places
200−-- cookie-based splits.
279+-- for cookie-based splits.
201tsAllocations :: Lens' TrafficSplit (Maybe TrafficSplitAllocations)
280tsAllocations :: Lens' TrafficSplit (Maybe TrafficSplitAllocations)
202tsAllocations
281tsAllocations
203 = lens _tsAllocations
282 = lens _tsAllocations
@@ -251,6 +330,57 @@ instance ToJSON ScriptHandler where
251 = object
330 = object
252 (catMaybes [("scriptPath" .=) <$> _shScriptPath])
331 (catMaybes [("scriptPath" .=) <$> _shScriptPath])
253
332
333+-- | Response message for \`Services.ListServices\`.
334+--
335+-- /See:/ 'listServicesResponse' smart constructor.
336+data ListServicesResponse = ListServicesResponse
337+ { _lsrNextPageToken :: !(Maybe Text)
338+ , _lsrServices :: !(Maybe [Service])
339+ } deriving (Eq,Show,Data,Typeable,Generic)
340+
341+-- | Creates a value of 'ListServicesResponse' with the minimum fields required to make a request.
342+--
343+-- Use one of the following lenses to modify other fields as desired:
344+--
345+-- * 'lsrNextPageToken'
346+--
347+-- * 'lsrServices'
348+listServicesResponse
349+ :: ListServicesResponse
350+listServicesResponse =
351+ ListServicesResponse
352+ { _lsrNextPageToken = Nothing
353+ , _lsrServices = Nothing
354+ }
355+
356+-- | Continuation token for fetching the next page of results.
357+lsrNextPageToken :: Lens' ListServicesResponse (Maybe Text)
358+lsrNextPageToken
359+ = lens _lsrNextPageToken
360+ (\ s a -> s{_lsrNextPageToken = a})
361+
362+-- | The services belonging to the requested application.
363+lsrServices :: Lens' ListServicesResponse [Service]
364+lsrServices
365+ = lens _lsrServices (\ s a -> s{_lsrServices = a}) .
366+ _Default
367+ . _Coerce
368+
369+instance FromJSON ListServicesResponse where
370+ parseJSON
371+ = withObject "ListServicesResponse"
372+ (\ o ->
373+ ListServicesResponse <$>
374+ (o .:? "nextPageToken") <*>
375+ (o .:? "services" .!= mempty))
376+
377+instance ToJSON ListServicesResponse where
378+ toJSON ListServicesResponse{..}
379+ = object
380+ (catMaybes
381+ [("nextPageToken" .=) <$> _lsrNextPageToken,
382+ ("services" .=) <$> _lsrServices])
383+
254-- | A URL pattern and description of how it should be handled. App Engine
384-- | A URL pattern and description of how it should be handled. App Engine
255-- can handle URLs by executing application code, or by serving static
385-- can handle URLs by executing application code, or by serving static
256-- files uploaded with the code, such as images, CSS or JavaScript.
386-- files uploaded with the code, such as images, CSS or JavaScript.
@@ -265,7 +395,6 @@ data URLMap = URLMap
265 , _umAuthFailAction :: !(Maybe Text)
395 , _umAuthFailAction :: !(Maybe Text)
266 , _umStaticFiles :: !(Maybe StaticFilesHandler)
396 , _umStaticFiles :: !(Maybe StaticFilesHandler)
267 , _umLogin :: !(Maybe Text)
397 , _umLogin :: !(Maybe Text)
268− , _umStaticDirectory :: !(Maybe StaticDirectoryHandler)
269 } deriving (Eq,Show,Data,Typeable,Generic)
398 } deriving (Eq,Show,Data,Typeable,Generic)
270
399
271-- | Creates a value of 'URLMap' with the minimum fields required to make a request.
400-- | Creates a value of 'URLMap' with the minimum fields required to make a request.
@@ -287,8 +416,6 @@ data URLMap = URLMap
287-- * 'umStaticFiles'
416-- * 'umStaticFiles'
288--
417--
289-- * 'umLogin'
418-- * 'umLogin'
290−--
291−-- * 'umStaticDirectory'
292urlMap
419urlMap
293 :: URLMap
420 :: URLMap
294urlMap =
421urlMap =
@@ -301,7 +428,6 @@ urlMap =
301 , _umAuthFailAction = Nothing
428 , _umAuthFailAction = Nothing
302 , _umStaticFiles = Nothing
429 , _umStaticFiles = Nothing
303 , _umLogin = Nothing
430 , _umLogin = Nothing
304− , _umStaticDirectory = Nothing
305 }
431 }
306
432
307-- | Executes a script to handle the request that matches the URL pattern.
433-- | Executes a script to handle the request that matches the URL pattern.
@@ -353,14 +479,6 @@ umStaticFiles
353umLogin :: Lens' URLMap (Maybe Text)
479umLogin :: Lens' URLMap (Maybe Text)
354umLogin = lens _umLogin (\ s a -> s{_umLogin = a})
480umLogin = lens _umLogin (\ s a -> s{_umLogin = a})
355
481
356−-- | Serves the entire contents of a directory as static files. This
357−-- attribute is deprecated. You can mimic the behavior of static
358−-- directories using static files.
359−umStaticDirectory :: Lens' URLMap (Maybe StaticDirectoryHandler)
360−umStaticDirectory
361− = lens _umStaticDirectory
362− (\ s a -> s{_umStaticDirectory = a})
363−
364instance FromJSON URLMap where
482instance FromJSON URLMap where
365 parseJSON
483 parseJSON
366 = withObject "URLMap"
484 = withObject "URLMap"
@@ -372,8 +490,7 @@ instance FromJSON URLMap where
372 <*> (o .:? "redirectHttpResponseCode")
490 <*> (o .:? "redirectHttpResponseCode")
373 <*> (o .:? "authFailAction")
491 <*> (o .:? "authFailAction")
374 <*> (o .:? "staticFiles")
492 <*> (o .:? "staticFiles")
375− <*> (o .:? "login")
493+ <*> (o .:? "login"))
376− <*> (o .:? "staticDirectory"))
377
494
378instance ToJSON URLMap where
495instance ToJSON URLMap where
379 toJSON URLMap{..}
496 toJSON URLMap{..}
@@ -387,8 +504,7 @@ instance ToJSON URLMap where
387 _umRedirectHTTPResponseCode,
504 _umRedirectHTTPResponseCode,
388 ("authFailAction" .=) <$> _umAuthFailAction,
505 ("authFailAction" .=) <$> _umAuthFailAction,
389 ("staticFiles" .=) <$> _umStaticFiles,
506 ("staticFiles" .=) <$> _umStaticFiles,
390− ("login" .=) <$> _umLogin,
507+ ("login" .=) <$> _umLogin])
391− ("staticDirectory" .=) <$> _umStaticDirectory])
392
508
393-- | A Python runtime third-party library required by the application.
509-- | A Python runtime third-party library required by the application.
394--
510--
@@ -434,8 +550,89 @@ instance ToJSON Library where
434 [("name" .=) <$> _lName,
550 [("name" .=) <$> _lName,
435 ("version" .=) <$> _lVersion])
551 ("version" .=) <$> _lVersion])
436
552
553+-- | Target scaling by disk usage (for VM runtimes only).
554+--
555+-- /See:/ 'diskUtilization' smart constructor.
556+data DiskUtilization = DiskUtilization
557+ { _duTargetWriteOpsPerSec :: !(Maybe (Textual Int32))
558+ , _duTargetReadOpsPerSec :: !(Maybe (Textual Int32))
559+ , _duTargetWriteBytesPerSec :: !(Maybe (Textual Int32))
560+ , _duTargetReadBytesPerSec :: !(Maybe (Textual Int32))
561+ } deriving (Eq,Show,Data,Typeable,Generic)
562+
563+-- | Creates a value of 'DiskUtilization' with the minimum fields required to make a request.
564+--
565+-- Use one of the following lenses to modify other fields as desired:
566+--
567+-- * 'duTargetWriteOpsPerSec'
568+--
569+-- * 'duTargetReadOpsPerSec'
570+--
571+-- * 'duTargetWriteBytesPerSec'
572+--
573+-- * 'duTargetReadBytesPerSec'
574+diskUtilization
575+ :: DiskUtilization
576+diskUtilization =
577+ DiskUtilization
578+ { _duTargetWriteOpsPerSec = Nothing
579+ , _duTargetReadOpsPerSec = Nothing
580+ , _duTargetWriteBytesPerSec = Nothing
581+ , _duTargetReadBytesPerSec = Nothing
582+ }
583+
584+-- | Target ops per second written.
585+duTargetWriteOpsPerSec :: Lens' DiskUtilization (Maybe Int32)
586+duTargetWriteOpsPerSec
587+ = lens _duTargetWriteOpsPerSec
588+ (\ s a -> s{_duTargetWriteOpsPerSec = a})
589+ . mapping _Coerce
590+
591+-- | Target ops per second read.
592+duTargetReadOpsPerSec :: Lens' DiskUtilization (Maybe Int32)
593+duTargetReadOpsPerSec
594+ = lens _duTargetReadOpsPerSec
595+ (\ s a -> s{_duTargetReadOpsPerSec = a})
596+ . mapping _Coerce
597+
598+-- | Target bytes per second written.
599+duTargetWriteBytesPerSec :: Lens' DiskUtilization (Maybe Int32)
600+duTargetWriteBytesPerSec
601+ = lens _duTargetWriteBytesPerSec
602+ (\ s a -> s{_duTargetWriteBytesPerSec = a})
603+ . mapping _Coerce
604+
605+-- | Target bytes per second read.
606+duTargetReadBytesPerSec :: Lens' DiskUtilization (Maybe Int32)
607+duTargetReadBytesPerSec
608+ = lens _duTargetReadBytesPerSec
609+ (\ s a -> s{_duTargetReadBytesPerSec = a})
610+ . mapping _Coerce
611+
612+instance FromJSON DiskUtilization where
613+ parseJSON
614+ = withObject "DiskUtilization"
615+ (\ o ->
616+ DiskUtilization <$>
617+ (o .:? "targetWriteOpsPerSec") <*>
618+ (o .:? "targetReadOpsPerSec")
619+ <*> (o .:? "targetWriteBytesPerSec")
620+ <*> (o .:? "targetReadBytesPerSec"))
621+
622+instance ToJSON DiskUtilization where
623+ toJSON DiskUtilization{..}
624+ = object
625+ (catMaybes
626+ [("targetWriteOpsPerSec" .=) <$>
627+ _duTargetWriteOpsPerSec,
628+ ("targetReadOpsPerSec" .=) <$>
629+ _duTargetReadOpsPerSec,
630+ ("targetWriteBytesPerSec" .=) <$>
631+ _duTargetWriteBytesPerSec,
632+ ("targetReadBytesPerSec" .=) <$>
633+ _duTargetReadBytesPerSec])
634+
437−-- | The response message for
635+-- | The response message for Operations.ListOperations.
438−-- [Operations.ListOperations][google.longrunning.Operations.ListOperations].
439--
636--
440-- /See:/ 'listOperationsResponse' smart constructor.
637-- /See:/ 'listOperationsResponse' smart constructor.
441data ListOperationsResponse = ListOperationsResponse
638data ListOperationsResponse = ListOperationsResponse
@@ -723,46 +920,83 @@ instance ToJSON VersionEnvVariables where
723--
920--
724-- /See:/ 'application' smart constructor.
921-- /See:/ 'application' smart constructor.
725data Application = Application
922data Application = Application
923+ { _aDefaultHostname :: !(Maybe Text)
924+ , _aDefaultCookieExpiration :: !(Maybe Text)
726− { _aLocation :: !(Maybe Text)
925+ , _aLocation :: !(Maybe Text)
926+ , _aAuthDomain :: !(Maybe Text)
727− , _aCodeBucket :: !(Maybe Text)
927+ , _aCodeBucket :: !(Maybe Text)
728− , _aName :: !(Maybe Text)
928+ , _aName :: !(Maybe Text)
729− , _aDispatchRules :: !(Maybe [URLDispatchRule])
929+ , _aDispatchRules :: !(Maybe [URLDispatchRule])
930+ , _aDefaultBucket :: !(Maybe Text)
730− , _aId :: !(Maybe Text)
931+ , _aId :: !(Maybe Text)
731 } deriving (Eq,Show,Data,Typeable,Generic)
932 } deriving (Eq,Show,Data,Typeable,Generic)
732
933
733-- | Creates a value of 'Application' with the minimum fields required to make a request.
934-- | Creates a value of 'Application' with the minimum fields required to make a request.
734--
935--
735-- Use one of the following lenses to modify other fields as desired:
936-- Use one of the following lenses to modify other fields as desired:
736--
937--
938+-- * 'aDefaultHostname'
939+--
940+-- * 'aDefaultCookieExpiration'
941+--
737-- * 'aLocation'
942-- * 'aLocation'
738--
943--
944+-- * 'aAuthDomain'
945+--
739-- * 'aCodeBucket'
946-- * 'aCodeBucket'
740--
947--
741-- * 'aName'
948-- * 'aName'
742--
949--
743-- * 'aDispatchRules'
950-- * 'aDispatchRules'
744--
951--
952+-- * 'aDefaultBucket'
953+--
745-- * 'aId'
954-- * 'aId'
746application
955application
747 :: Application
956 :: Application
748application =
957application =
749 Application
958 Application
959+ { _aDefaultHostname = Nothing
960+ , _aDefaultCookieExpiration = Nothing
750− { _aLocation = Nothing
961+ , _aLocation = Nothing
962+ , _aAuthDomain = Nothing
751 , _aCodeBucket = Nothing
963 , _aCodeBucket = Nothing
752 , _aName = Nothing
964 , _aName = Nothing
753 , _aDispatchRules = Nothing
965 , _aDispatchRules = Nothing
966+ , _aDefaultBucket = Nothing
754 , _aId = Nothing
967 , _aId = Nothing
755 }
968 }
756
969
970+-- | The hostname used to reach the application, as resolved by App Engine.
971+-- \'OutputOnly
972+aDefaultHostname :: Lens' Application (Maybe Text)
973+aDefaultHostname
974+ = lens _aDefaultHostname
975+ (\ s a -> s{_aDefaultHostname = a})
976+
977+-- | Determines the cookie expiration policy for the application.
978+-- \'OutputOnly
979+aDefaultCookieExpiration :: Lens' Application (Maybe Text)
980+aDefaultCookieExpiration
981+ = lens _aDefaultCookieExpiration
982+ (\ s a -> s{_aDefaultCookieExpiration = a})
983+
757−-- | The location from which the application will be run. Choices are
984+-- | The location from which the application will be run. Application
758−-- \"us-central\" for United States and \"europe-west\" for European Union.
759−-- Application instances will run out of data centers in the chosen
985+-- instances will run out of data centers in the chosen location and all of
760−-- location and all of the application\'s End User Content will be stored
986+-- the application\'s End User Content will be stored at rest. The default
761−-- at rest in the chosen location. The default is \"us-central\".
987+-- is \"us-central\". Choices are: \"us-central\" - Central US
988+-- \"europe-west\" - Western Europe \"us-east1\" - Eastern US
762aLocation :: Lens' Application (Maybe Text)
989aLocation :: Lens' Application (Maybe Text)
763aLocation
990aLocation
764 = lens _aLocation (\ s a -> s{_aLocation = a})
991 = lens _aLocation (\ s a -> s{_aLocation = a})
765
992
993+-- | If set, only users from the specified Google Apps authentication domain
994+-- may access the application. If not set, any Google Account may access
995+-- the application.
996+aAuthDomain :: Lens' Application (Maybe Text)
997+aAuthDomain
998+ = lens _aAuthDomain (\ s a -> s{_aAuthDomain = a})
999+
766-- | A Google Cloud Storage bucket which can be used for storing files
1000-- | A Google Cloud Storage bucket which can be used for storing files
767-- associated with an application. This bucket is associated with the
1001-- associated with an application. This bucket is associated with the
768-- application and can be used by the gcloud deployment commands.
1002-- application and can be used by the gcloud deployment commands.
@@ -777,7 +1011,7 @@ aName :: Lens' Application (Maybe Text)
777aName = lens _aName (\ s a -> s{_aName = a})
1011aName = lens _aName (\ s a -> s{_aName = a})
778
1012
779-- | HTTP path dispatch rules for requests to the app that do not explicitly
1013-- | HTTP path dispatch rules for requests to the app that do not explicitly
780−-- target a module or version. The rules are order-dependent.
1014+-- target a service or version. The rules are order-dependent. \'OutputOnly
781aDispatchRules :: Lens' Application [URLDispatchRule]
1015aDispatchRules :: Lens' Application [URLDispatchRule]
782aDispatchRules
1016aDispatchRules
783 = lens _aDispatchRules
1017 = lens _aDispatchRules
@@ -785,8 +1019,14 @@ aDispatchRules
785 . _Default
1019 . _Default
786 . _Coerce
1020 . _Coerce
787
1021
1022+-- | A Google Cloud Storage bucket which can be used by the application to
1023+-- store content. \'OutputOnly
1024+aDefaultBucket :: Lens' Application (Maybe Text)
1025+aDefaultBucket
1026+ = lens _aDefaultBucket
1027+ (\ s a -> s{_aDefaultBucket = a})
1028+
788-- | The relative name\/path of the application. Example: \"myapp\".
1029-- | The relative name\/path of the application. Example: \"myapp\".
789−-- \'OutputOnly
790aId :: Lens' Application (Maybe Text)
1030aId :: Lens' Application (Maybe Text)
791aId = lens _aId (\ s a -> s{_aId = a})
1031aId = lens _aId (\ s a -> s{_aId = a})
792
1032
@@ -795,19 +1035,29 @@ instance FromJSON Application where
795 = withObject "Application"
1035 = withObject "Application"
796 (\ o ->
1036 (\ o ->
797 Application <$>
1037 Application <$>
1038+ (o .:? "defaultHostname") <*>
1039+ (o .:? "defaultCookieExpiration")
1040+ <*> (o .:? "location")
1041+ <*> (o .:? "authDomain")
798− (o .:? "location") <*> (o .:? "codeBucket") <*>
1042+ <*> (o .:? "codeBucket")
799− (o .:? "name")
1043+ <*> (o .:? "name")
800 <*> (o .:? "dispatchRules" .!= mempty)
1044 <*> (o .:? "dispatchRules" .!= mempty)
1045+ <*> (o .:? "defaultBucket")
801 <*> (o .:? "id"))
1046 <*> (o .:? "id"))
802
1047
803instance ToJSON Application where
1048instance ToJSON Application where
804 toJSON Application{..}
1049 toJSON Application{..}
805 = object
1050 = object
806 (catMaybes
1051 (catMaybes
1052+ [("defaultHostname" .=) <$> _aDefaultHostname,
1053+ ("defaultCookieExpiration" .=) <$>
1054+ _aDefaultCookieExpiration,
807− [("location" .=) <$> _aLocation,
1055+ ("location" .=) <$> _aLocation,
1056+ ("authDomain" .=) <$> _aAuthDomain,
808 ("codeBucket" .=) <$> _aCodeBucket,
1057 ("codeBucket" .=) <$> _aCodeBucket,
809 ("name" .=) <$> _aName,
1058 ("name" .=) <$> _aName,
810 ("dispatchRules" .=) <$> _aDispatchRules,
1059 ("dispatchRules" .=) <$> _aDispatchRules,
1060+ ("defaultBucket" .=) <$> _aDefaultBucket,
811 ("id" .=) <$> _aId])
1061 ("id" .=) <$> _aId])
812
1062
813-- | Beta settings supplied to the application via metadata.
1063-- | Beta settings supplied to the application via metadata.
@@ -843,6 +1093,68 @@ instance FromJSON VersionBetaSettings where
843instance ToJSON VersionBetaSettings where
1093instance ToJSON VersionBetaSettings where
844 toJSON = toJSON . _vbsAddtional
1094 toJSON = toJSON . _vbsAddtional
845
1095
1096+-- | A service is a logical component of an application that can share state
1097+-- and communicate in a secure fashion with other services. For example, an
1098+-- application that handles customer requests might include separate
1099+-- services to handle other tasks such as API requests from mobile devices
1100+-- or backend data analysis. Each service has a collection of versions that
1101+-- define a specific set of code used to implement the functionality of
1102+-- that service.
1103+--
1104+-- /See:/ 'service' smart constructor.
1105+data Service = Service
1106+ { _sSplit :: !(Maybe TrafficSplit)
1107+ , _sName :: !(Maybe Text)
1108+ , _sId :: !(Maybe Text)
1109+ } deriving (Eq,Show,Data,Typeable,Generic)
1110+
1111+-- | Creates a value of 'Service' with the minimum fields required to make a request.
1112+--
1113+-- Use one of the following lenses to modify other fields as desired:
1114+--
1115+-- * 'sSplit'
1116+--
1117+-- * 'sName'
1118+--
1119+-- * 'sId'
1120+service
1121+ :: Service
1122+service =
1123+ Service
1124+ { _sSplit = Nothing
1125+ , _sName = Nothing
1126+ , _sId = Nothing
1127+ }
1128+
1129+-- | A mapping that defines fractional HTTP traffic diversion to different
1130+-- versions within the service.
1131+sSplit :: Lens' Service (Maybe TrafficSplit)
1132+sSplit = lens _sSplit (\ s a -> s{_sSplit = a})
1133+
1134+-- | The full path to the Service resource in the API. Example:
1135+-- \"apps\/myapp\/services\/default\" \'OutputOnly
1136+sName :: Lens' Service (Maybe Text)
1137+sName = lens _sName (\ s a -> s{_sName = a})
1138+
1139+-- | The relative name\/path of the service within the application. Example:
1140+-- \"default\" \'OutputOnly
1141+sId :: Lens' Service (Maybe Text)
1142+sId = lens _sId (\ s a -> s{_sId = a})
1143+
1144+instance FromJSON Service where
1145+ parseJSON
1146+ = withObject "Service"
1147+ (\ o ->
1148+ Service <$>
1149+ (o .:? "split") <*> (o .:? "name") <*> (o .:? "id"))
1150+
1151+instance ToJSON Service where
1152+ toJSON Service{..}
1153+ = object
1154+ (catMaybes
1155+ [("split" .=) <$> _sSplit, ("name" .=) <$> _sName,
1156+ ("id" .=) <$> _sId])
1157+
846-- | This resource represents a long-running operation that is the result of
1158-- | This resource represents a long-running operation that is the result of
847-- a network API call.
1159-- a network API call.
848--
1160--
@@ -902,9 +1214,8 @@ oResponse
902 = lens _oResponse (\ s a -> s{_oResponse = a})
1214 = lens _oResponse (\ s a -> s{_oResponse = a})
903
1215
904-- | The server-assigned name, which is only unique within the same service
1216-- | The server-assigned name, which is only unique within the same service
905−-- that originally returns it. If you use the default HTTP mapping above,
1217+-- that originally returns it. If you use the default HTTP mapping, the
906−-- the \`name\` should have the format of
907−-- \`operations\/some\/unique\/name\`.
1218+-- \`name\` should have the format of \`operations\/some\/unique\/name\`.
908oName :: Lens' Operation (Maybe Text)
1219oName :: Lens' Operation (Maybe Text)
909oName = lens _oName (\ s a -> s{_oName = a})
1220oName = lens _oName (\ s a -> s{_oName = a})
910
1221
@@ -935,13 +1246,13 @@ instance ToJSON Operation where
935 ("name" .=) <$> _oName,
1246 ("name" .=) <$> _oName,
936 ("metadata" .=) <$> _oMetadata])
1247 ("metadata" .=) <$> _oMetadata])
937
1248
938−-- | Rules to match an HTTP request and dispatch that request to a module.
1249+-- | Rules to match an HTTP request and dispatch that request to a service.
939--
1250--
940-- /See:/ 'urlDispatchRule' smart constructor.
1251-- /See:/ 'urlDispatchRule' smart constructor.
941data URLDispatchRule = URLDispatchRule
1252data URLDispatchRule = URLDispatchRule
1253+ { _udrPath :: !(Maybe Text)
942− { _udrPath :: !(Maybe Text)
1254+ , _udrService :: !(Maybe Text)
943− , _udrDomain :: !(Maybe Text)
1255+ , _udrDomain :: !(Maybe Text)
944− , _udrModule :: !(Maybe Text)
945 } deriving (Eq,Show,Data,Typeable,Generic)
1256 } deriving (Eq,Show,Data,Typeable,Generic)
946
1257
947-- | Creates a value of 'URLDispatchRule' with the minimum fields required to make a request.
1258-- | Creates a value of 'URLDispatchRule' with the minimum fields required to make a request.
@@ -950,16 +1261,16 @@ data URLDispatchRule = URLDispatchRule
950--
1261--
951-- * 'udrPath'
1262-- * 'udrPath'
952--
1263--
953−-- * 'udrDomain'
1264+-- * 'udrService'
954--
1265--
955−-- * 'udrModule'
1266+-- * 'udrDomain'
956urlDispatchRule
1267urlDispatchRule
957 :: URLDispatchRule
1268 :: URLDispatchRule
958urlDispatchRule =
1269urlDispatchRule =
959 URLDispatchRule
1270 URLDispatchRule
960 { _udrPath = Nothing
1271 { _udrPath = Nothing
1272+ , _udrService = Nothing
961 , _udrDomain = Nothing
1273 , _udrDomain = Nothing
962− , _udrModule = Nothing
963 }
1274 }
964
1275
965-- | The pathname within the host. This must start with a \'\/\'. A single
1276-- | The pathname within the host. This must start with a \'\/\'. A single
@@ -968,6 +1279,12 @@ urlDispatchRule =
968udrPath :: Lens' URLDispatchRule (Maybe Text)
1279udrPath :: Lens' URLDispatchRule (Maybe Text)
969udrPath = lens _udrPath (\ s a -> s{_udrPath = a})
1280udrPath = lens _udrPath (\ s a -> s{_udrPath = a})
970
1281
1282+-- | The resource id of a Service in this application that should service the
1283+-- matched request. The Service must already exist. Example: \"default\".
1284+udrService :: Lens' URLDispatchRule (Maybe Text)
1285+udrService
1286+ = lens _udrService (\ s a -> s{_udrService = a})
1287+
971-- | The domain name to match on. Supports \'*\' (glob) wildcarding on the
1288-- | The domain name to match on. Supports \'*\' (glob) wildcarding on the
972-- left-hand side of a \'.\'. If empty, all domains will be matched (the
1289-- left-hand side of a \'.\'. If empty, all domains will be matched (the
973-- same as \'*\').
1290-- same as \'*\').
@@ -975,65 +1292,21 @@ udrDomain :: Lens' URLDispatchRule (Maybe Text)
975udrDomain
1292udrDomain
976 = lens _udrDomain (\ s a -> s{_udrDomain = a})
1293 = lens _udrDomain (\ s a -> s{_udrDomain = a})
977
1294
978−-- | The resource id of a Module in this application that should service the
979−-- matched request. The Module must already exist. Example: \"default\".
980−udrModule :: Lens' URLDispatchRule (Maybe Text)
981−udrModule
982− = lens _udrModule (\ s a -> s{_udrModule = a})
983−
984instance FromJSON URLDispatchRule where
1295instance FromJSON URLDispatchRule where
985 parseJSON
1296 parseJSON
986 = withObject "URLDispatchRule"
1297 = withObject "URLDispatchRule"
987 (\ o ->
1298 (\ o ->
988 URLDispatchRule <$>
1299 URLDispatchRule <$>
989− (o .:? "path") <*> (o .:? "domain") <*>
1300+ (o .:? "path") <*> (o .:? "service") <*>
990− (o .:? "module"))
1301+ (o .:? "domain"))
991
1302
992instance ToJSON URLDispatchRule where
1303instance ToJSON URLDispatchRule where
993 toJSON URLDispatchRule{..}
1304 toJSON URLDispatchRule{..}
994 = object
1305 = object
995 (catMaybes
1306 (catMaybes
996 [("path" .=) <$> _udrPath,
1307 [("path" .=) <$> _udrPath,
1308+ ("service" .=) <$> _udrService,
997− ("domain" .=) <$> _udrDomain,
1309+ ("domain" .=) <$> _udrDomain])
998− ("module" .=) <$> _udrModule])
999−
1000−-- | HTTP headers to use for all responses from these URLs.
1001−--
1002−-- /See:/ 'staticDirectoryHandlerHTTPHeaders' smart constructor.
1003−newtype StaticDirectoryHandlerHTTPHeaders = StaticDirectoryHandlerHTTPHeaders
1004− { _sdhhttphAddtional :: HashMap Text Text
1005− } deriving (Eq,Show,Data,Typeable,Generic)
1006−
1007−-- | Creates a value of 'StaticDirectoryHandlerHTTPHeaders' with the minimum fields required to make a request.
1008−--
1009−-- Use one of the following lenses to modify other fields as desired:
1010−--
1011−-- * 'sdhhttphAddtional'
1012−staticDirectoryHandlerHTTPHeaders
1013− :: HashMap Text Text -- ^ 'sdhhttphAddtional'
1014− -> StaticDirectoryHandlerHTTPHeaders
1015−staticDirectoryHandlerHTTPHeaders pSdhhttphAddtional_ =
1016− StaticDirectoryHandlerHTTPHeaders
1017− { _sdhhttphAddtional = _Coerce # pSdhhttphAddtional_
1018− }
1019−
1020−sdhhttphAddtional :: Lens' StaticDirectoryHandlerHTTPHeaders (HashMap Text Text)
1021−sdhhttphAddtional
1022− = lens _sdhhttphAddtional
1023− (\ s a -> s{_sdhhttphAddtional = a})
1024− . _Coerce
1025−
1026−instance FromJSON StaticDirectoryHandlerHTTPHeaders
1027− where
1028− parseJSON
1029− = withObject "StaticDirectoryHandlerHTTPHeaders"
1030− (\ o ->
1031− StaticDirectoryHandlerHTTPHeaders <$>
1032− (parseJSONObject o))
1033−
1034−instance ToJSON StaticDirectoryHandlerHTTPHeaders
1035− where
1036− toJSON = toJSON . _sdhhttphAddtional
1037
1310
1038-- | Response message for \`Versions.ListVersions\`.
1311-- | Response message for \`Versions.ListVersions\`.
1039--
1312--
@@ -1064,7 +1337,7 @@ lvrNextPageToken
1064 = lens _lvrNextPageToken
1337 = lens _lvrNextPageToken
1065 (\ s a -> s{_lvrNextPageToken = a})
1338 (\ s a -> s{_lvrNextPageToken = a})
1066
1339
1067−-- | The versions belonging to the requested application module.
1340+-- | The versions belonging to the requested application service.
1068lvrVersions :: Lens' ListVersionsResponse [Version]
1341lvrVersions :: Lens' ListVersionsResponse [Version]
1069lvrVersions
1342lvrVersions
1070 = lens _lvrVersions (\ s a -> s{_lvrVersions = a}) .
1343 = lens _lvrVersions (\ s a -> s{_lvrVersions = a}) .
@@ -1125,7 +1398,8 @@ fiMimeType
1125 = lens _fiMimeType (\ s a -> s{_fiMimeType = a})
1398 = lens _fiMimeType (\ s a -> s{_fiMimeType = a})
1126
1399
1127-- | The URL source to use to fetch this file. Must be a URL to a resource in
1400-- | The URL source to use to fetch this file. Must be a URL to a resource in
1128−-- Google Cloud Storage.
1401+-- Google Cloud Storage in the form
1402+-- \'http(s):\/\/storage.googleapis.com\/\\\/\\\'.
1129fiSourceURL :: Lens' FileInfo (Maybe Text)
1403fiSourceURL :: Lens' FileInfo (Maybe Text)
1130fiSourceURL
1404fiSourceURL
1131 = lens _fiSourceURL (\ s a -> s{_fiSourceURL = a})
1405 = lens _fiSourceURL (\ s a -> s{_fiSourceURL = a})
@@ -1152,14 +1426,17 @@ instance ToJSON FileInfo where
1152--
1426--
1153-- /See:/ 'automaticScaling' smart constructor.
1427-- /See:/ 'automaticScaling' smart constructor.
1154data AutomaticScaling = AutomaticScaling
1428data AutomaticScaling = AutomaticScaling
1429+ { _asNetworkUtilization :: !(Maybe NetworkUtilization)
1155− { _asMaxTotalInstances :: !(Maybe (Textual Int32))
1430+ , _asMaxTotalInstances :: !(Maybe (Textual Int32))
1156 , _asMinIdleInstances :: !(Maybe (Textual Int32))
1431 , _asMinIdleInstances :: !(Maybe (Textual Int32))
1432+ , _asDiskUtilization :: !(Maybe DiskUtilization)
1157 , _asMinPendingLatency :: !(Maybe Text)
1433 , _asMinPendingLatency :: !(Maybe Text)
1158 , _asCPUUtilization :: !(Maybe CPUUtilization)
1434 , _asCPUUtilization :: !(Maybe CPUUtilization)
1159 , _asMaxIdleInstances :: !(Maybe (Textual Int32))
1435 , _asMaxIdleInstances :: !(Maybe (Textual Int32))
1160 , _asMinTotalInstances :: !(Maybe (Textual Int32))
1436 , _asMinTotalInstances :: !(Maybe (Textual Int32))
1161 , _asMaxConcurrentRequests :: !(Maybe (Textual Int32))
1437 , _asMaxConcurrentRequests :: !(Maybe (Textual Int32))
1162 , _asCoolDownPeriod :: !(Maybe Text)
1438 , _asCoolDownPeriod :: !(Maybe Text)
1439+ , _asRequestUtilization :: !(Maybe RequestUtilization)
1163 , _asMaxPendingLatency :: !(Maybe Text)
1440 , _asMaxPendingLatency :: !(Maybe Text)
1164 } deriving (Eq,Show,Data,Typeable,Generic)
1441 } deriving (Eq,Show,Data,Typeable,Generic)
1165
1442
@@ -1167,10 +1444,14 @@ data AutomaticScaling = AutomaticScaling
1167--
1444--
1168-- Use one of the following lenses to modify other fields as desired:
1445-- Use one of the following lenses to modify other fields as desired:
1169--
1446--
1447+-- * 'asNetworkUtilization'
1448+--
1170-- * 'asMaxTotalInstances'
1449-- * 'asMaxTotalInstances'
1171--
1450--
1172-- * 'asMinIdleInstances'
1451-- * 'asMinIdleInstances'
1173--
1452--
1453+-- * 'asDiskUtilization'
1454+--
1174-- * 'asMinPendingLatency'
1455-- * 'asMinPendingLatency'
1175--
1456--
1176-- * 'asCPUUtilization'
1457-- * 'asCPUUtilization'
@@ -1183,22 +1464,33 @@ data AutomaticScaling = AutomaticScaling
1183--
1464--
1184-- * 'asCoolDownPeriod'
1465-- * 'asCoolDownPeriod'
1185--
1466--
1467+-- * 'asRequestUtilization'
1468+--
1186-- * 'asMaxPendingLatency'
1469-- * 'asMaxPendingLatency'
1187automaticScaling
1470automaticScaling
1188 :: AutomaticScaling
1471 :: AutomaticScaling
1189automaticScaling =
1472automaticScaling =
1190 AutomaticScaling
1473 AutomaticScaling
1474+ { _asNetworkUtilization = Nothing
1191− { _asMaxTotalInstances = Nothing
1475+ , _asMaxTotalInstances = Nothing
1192 , _asMinIdleInstances = Nothing
1476 , _asMinIdleInstances = Nothing
1477+ , _asDiskUtilization = Nothing
1193 , _asMinPendingLatency = Nothing
1478 , _asMinPendingLatency = Nothing
1194 , _asCPUUtilization = Nothing
1479 , _asCPUUtilization = Nothing
1195 , _asMaxIdleInstances = Nothing
1480 , _asMaxIdleInstances = Nothing
1196 , _asMinTotalInstances = Nothing
1481 , _asMinTotalInstances = Nothing
1197 , _asMaxConcurrentRequests = Nothing
1482 , _asMaxConcurrentRequests = Nothing
1198 , _asCoolDownPeriod = Nothing
1483 , _asCoolDownPeriod = Nothing
1484+ , _asRequestUtilization = Nothing
1199 , _asMaxPendingLatency = Nothing
1485 , _asMaxPendingLatency = Nothing
1200 }
1486 }
1201
1487
1488+-- | Target scaling by network usage.
1489+asNetworkUtilization :: Lens' AutomaticScaling (Maybe NetworkUtilization)
1490+asNetworkUtilization
1491+ = lens _asNetworkUtilization
1492+ (\ s a -> s{_asNetworkUtilization = a})
1493+
1202-- | Max number of instances that App Engine should start to handle requests.
1494-- | Max number of instances that App Engine should start to handle requests.
1203asMaxTotalInstances :: Lens' AutomaticScaling (Maybe Int32)
1495asMaxTotalInstances :: Lens' AutomaticScaling (Maybe Int32)
1204asMaxTotalInstances
1496asMaxTotalInstances
@@ -1207,7 +1499,7 @@ asMaxTotalInstances
1207 . mapping _Coerce
1499 . mapping _Coerce
1208
1500
1209-- | The minimum number of idle instances that App Engine should maintain for
1501-- | The minimum number of idle instances that App Engine should maintain for
1210−-- this version. Only applies to the default version of a module, since
1502+-- this version. Only applies to the default version of a service, since
1211-- other versions are not expected to receive significant traffic.
1503-- other versions are not expected to receive significant traffic.
1212asMinIdleInstances :: Lens' AutomaticScaling (Maybe Int32)
1504asMinIdleInstances :: Lens' AutomaticScaling (Maybe Int32)
1213asMinIdleInstances
1505asMinIdleInstances
@@ -1215,6 +1507,12 @@ asMinIdleInstances
1215 (\ s a -> s{_asMinIdleInstances = a})
1507 (\ s a -> s{_asMinIdleInstances = a})
1216 . mapping _Coerce
1508 . mapping _Coerce
1217
1509
1510+-- | Target scaling by disk usage.
1511+asDiskUtilization :: Lens' AutomaticScaling (Maybe DiskUtilization)
1512+asDiskUtilization
1513+ = lens _asDiskUtilization
1514+ (\ s a -> s{_asDiskUtilization = a})
1515+
1218-- | The minimum amount of time that App Engine should allow a request to
1516-- | The minimum amount of time that App Engine should allow a request to
1219-- wait in the pending queue before starting a new instance to handle it.
1517-- wait in the pending queue before starting a new instance to handle it.
1220asMinPendingLatency :: Lens' AutomaticScaling (Maybe Text)
1518asMinPendingLatency :: Lens' AutomaticScaling (Maybe Text)
@@ -1261,6 +1559,12 @@ asCoolDownPeriod
1261 = lens _asCoolDownPeriod
1559 = lens _asCoolDownPeriod
1262 (\ s a -> s{_asCoolDownPeriod = a})
1560 (\ s a -> s{_asCoolDownPeriod = a})
1263
1561
1562+-- | Target scaling by request utilization.
1563+asRequestUtilization :: Lens' AutomaticScaling (Maybe RequestUtilization)
1564+asRequestUtilization
1565+ = lens _asRequestUtilization
1566+ (\ s a -> s{_asRequestUtilization = a})
1567+
1264-- | The maximum amount of time that App Engine should allow a request to
1568-- | The maximum amount of time that App Engine should allow a request to
1265-- wait in the pending queue before starting a new instance to handle it.
1569-- wait in the pending queue before starting a new instance to handle it.
1266asMaxPendingLatency :: Lens' AutomaticScaling (Maybe Text)
1570asMaxPendingLatency :: Lens' AutomaticScaling (Maybe Text)
@@ -1273,22 +1577,27 @@ instance FromJSON AutomaticScaling where
1273 = withObject "AutomaticScaling"
1577 = withObject "AutomaticScaling"
1274 (\ o ->
1578 (\ o ->
1275 AutomaticScaling <$>
1579 AutomaticScaling <$>
1580+ (o .:? "networkUtilization") <*>
1276− (o .:? "maxTotalInstances") <*>
1581+ (o .:? "maxTotalInstances")
1277− (o .:? "minIdleInstances")
1582+ <*> (o .:? "minIdleInstances")
1583+ <*> (o .:? "diskUtilization")
1278 <*> (o .:? "minPendingLatency")
1584 <*> (o .:? "minPendingLatency")
1279 <*> (o .:? "cpuUtilization")
1585 <*> (o .:? "cpuUtilization")
1280 <*> (o .:? "maxIdleInstances")
1586 <*> (o .:? "maxIdleInstances")
1281 <*> (o .:? "minTotalInstances")
1587 <*> (o .:? "minTotalInstances")
1282 <*> (o .:? "maxConcurrentRequests")
1588 <*> (o .:? "maxConcurrentRequests")
1283 <*> (o .:? "coolDownPeriod")
1589 <*> (o .:? "coolDownPeriod")
1590+ <*> (o .:? "requestUtilization")
1284 <*> (o .:? "maxPendingLatency"))
1591 <*> (o .:? "maxPendingLatency"))
1285
1592
1286instance ToJSON AutomaticScaling where
1593instance ToJSON AutomaticScaling where
1287 toJSON AutomaticScaling{..}
1594 toJSON AutomaticScaling{..}
1288 = object
1595 = object
1289 (catMaybes
1596 (catMaybes
1597+ [("networkUtilization" .=) <$> _asNetworkUtilization,
1290− [("maxTotalInstances" .=) <$> _asMaxTotalInstances,
1598+ ("maxTotalInstances" .=) <$> _asMaxTotalInstances,
1291 ("minIdleInstances" .=) <$> _asMinIdleInstances,
1599 ("minIdleInstances" .=) <$> _asMinIdleInstances,
1600+ ("diskUtilization" .=) <$> _asDiskUtilization,
1292 ("minPendingLatency" .=) <$> _asMinPendingLatency,
1601 ("minPendingLatency" .=) <$> _asMinPendingLatency,
1293 ("cpuUtilization" .=) <$> _asCPUUtilization,
1602 ("cpuUtilization" .=) <$> _asCPUUtilization,
1294 ("maxIdleInstances" .=) <$> _asMaxIdleInstances,
1603 ("maxIdleInstances" .=) <$> _asMaxIdleInstances,
@@ -1296,58 +1605,91 @@ instance ToJSON AutomaticScaling where
1296 ("maxConcurrentRequests" .=) <$>
1605 ("maxConcurrentRequests" .=) <$>
1297 _asMaxConcurrentRequests,
1606 _asMaxConcurrentRequests,
1298 ("coolDownPeriod" .=) <$> _asCoolDownPeriod,
1607 ("coolDownPeriod" .=) <$> _asCoolDownPeriod,
1608+ ("requestUtilization" .=) <$> _asRequestUtilization,
1299 ("maxPendingLatency" .=) <$> _asMaxPendingLatency])
1609 ("maxPendingLatency" .=) <$> _asMaxPendingLatency])
1300
1610
1301−-- | Response message for \`Modules.ListModules\`.
1611+-- | Metadata for the given google.longrunning.Operation.
1302--
1612--
1303−-- /See:/ 'listModulesResponse' smart constructor.
1613+-- /See:/ 'operationMetadataV1Beta5' smart constructor.
1304−data ListModulesResponse = ListModulesResponse
1614+data OperationMetadataV1Beta5 = OperationMetadataV1Beta5
1305− { _lmrNextPageToken :: !(Maybe Text)
1615+ { _omvbInsertTime :: !(Maybe Text)
1306− , _lmrModules :: !(Maybe [Module])
1616+ , _omvbUser :: !(Maybe Text)
1617+ , _omvbMethod :: !(Maybe Text)
1618+ , _omvbEndTime :: !(Maybe Text)
1619+ , _omvbTarget :: !(Maybe Text)
1307 } deriving (Eq,Show,Data,Typeable,Generic)
1620 } deriving (Eq,Show,Data,Typeable,Generic)
1308
1621
1309−-- | Creates a value of 'ListModulesResponse' with the minimum fields required to make a request.
1622+-- | Creates a value of 'OperationMetadataV1Beta5' with the minimum fields required to make a request.
1310--
1623--
1311-- Use one of the following lenses to modify other fields as desired:
1624-- Use one of the following lenses to modify other fields as desired:
1312--
1625--
1313−-- * 'lmrNextPageToken'
1626+-- * 'omvbInsertTime'
1627+--
1628+-- * 'omvbUser'
1314--
1629--
1315−-- * 'lmrModules'
1630+-- * 'omvbMethod'
1316−listModulesResponse
1631+--
1317− :: ListModulesResponse
1632+-- * 'omvbEndTime'
1318−listModulesResponse =
1633+--
1319− ListModulesResponse
1634+-- * 'omvbTarget'
1320− { _lmrNextPageToken = Nothing
1635+operationMetadataV1Beta5
1321− , _lmrModules = Nothing
1636+ :: OperationMetadataV1Beta5
1637+operationMetadataV1Beta5 =
1638+ OperationMetadataV1Beta5
1639+ { _omvbInsertTime = Nothing
1640+ , _omvbUser = Nothing
1641+ , _omvbMethod = Nothing
1642+ , _omvbEndTime = Nothing
1643+ , _omvbTarget = Nothing
1322 }
1644 }
1323
1645
1324−-- | Continuation token for fetching the next page of results.
1646+-- | Timestamp that this operation was received. \'OutputOnly
1325−lmrNextPageToken :: Lens' ListModulesResponse (Maybe Text)
1647+omvbInsertTime :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1326−lmrNextPageToken
1648+omvbInsertTime
1327− = lens _lmrNextPageToken
1649+ = lens _omvbInsertTime
1328− (\ s a -> s{_lmrNextPageToken = a})
1650+ (\ s a -> s{_omvbInsertTime = a})
1329−
1651+
1330−-- | The modules belonging to the requested application.
1652+-- | The user who requested this operation. \'OutputOnly
1331−lmrModules :: Lens' ListModulesResponse [Module]
1653+omvbUser :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1332−lmrModules
1654+omvbUser = lens _omvbUser (\ s a -> s{_omvbUser = a})
1333− = lens _lmrModules (\ s a -> s{_lmrModules = a}) .
1655+
1334− _Default
1656+-- | API method name that initiated the operation. Example:
1335− . _Coerce
1657+-- \"google.appengine.v1beta5.Version.CreateVersion\". \'OutputOnly
1658+omvbMethod :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1659+omvbMethod
1660+ = lens _omvbMethod (\ s a -> s{_omvbMethod = a})
1661+
1662+-- | Timestamp that this operation was completed. (Not present if the
1663+-- operation is still in progress.) \'OutputOnly
1664+omvbEndTime :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1665+omvbEndTime
1666+ = lens _omvbEndTime (\ s a -> s{_omvbEndTime = a})
1667+
1668+-- | Resource that this operation is acting on. Example:
1669+-- \"apps\/myapp\/services\/default\". \'OutputOnly
1670+omvbTarget :: Lens' OperationMetadataV1Beta5 (Maybe Text)
1671+omvbTarget
1672+ = lens _omvbTarget (\ s a -> s{_omvbTarget = a})
1336
1673
1337−instance FromJSON ListModulesResponse where
1674+instance FromJSON OperationMetadataV1Beta5 where
1338 parseJSON
1675 parseJSON
1339− = withObject "ListModulesResponse"
1676+ = withObject "OperationMetadataV1Beta5"
1340 (\ o ->
1677 (\ o ->
1341− ListModulesResponse <$>
1678+ OperationMetadataV1Beta5 <$>
1342− (o .:? "nextPageToken") <*>
1679+ (o .:? "insertTime") <*> (o .:? "user") <*>
1343− (o .:? "modules" .!= mempty))
1680+ (o .:? "method")
1681+ <*> (o .:? "endTime")
1682+ <*> (o .:? "target"))
1344
1683
1345−instance ToJSON ListModulesResponse where
1684+instance ToJSON OperationMetadataV1Beta5 where
1346− toJSON ListModulesResponse{..}
1685+ toJSON OperationMetadataV1Beta5{..}
1347 = object
1686 = object
1348 (catMaybes
1687 (catMaybes
1349− [("nextPageToken" .=) <$> _lmrNextPageToken,
1688+ [("insertTime" .=) <$> _omvbInsertTime,
1350− ("modules" .=) <$> _lmrModules])
1689+ ("user" .=) <$> _omvbUser,
1690+ ("method" .=) <$> _omvbMethod,
1691+ ("endTime" .=) <$> _omvbEndTime,
1692+ ("target" .=) <$> _omvbTarget])
1351
1693
1352-- | Use Google Cloud Endpoints to handle requests.
1694-- | Use Google Cloud Endpoints to handle requests.
1353--
1695--
@@ -1664,14 +2006,14 @@ instance ToJSON CPUUtilization where
1664 _cuAggregationWindowLength,
2006 _cuAggregationWindowLength,
1665 ("targetUtilization" .=) <$> _cuTargetUtilization])
2007 ("targetUtilization" .=) <$> _cuTargetUtilization])
1666
2008
1667−-- | Mapping from module version IDs within the module to fractional (0.000,
2009+-- | Mapping from service version IDs within the service to fractional
1668−-- 1] allocations of traffic for that version. Each version may only be
2010+-- (0.000, 1] allocations of traffic for that version. Each version may
1669−-- specified once, but some versions in the module may not have any traffic
2011+-- only be specified once, but some versions in the service may not have
1670−-- allocation. Modules that have traffic allocated in this field may not be
2012+-- any traffic allocation. Services that have traffic allocated in this
1671−-- deleted until the module is deleted, or their traffic allocation is
2013+-- field may not be deleted until the service is deleted, or their traffic
1672−-- removed. Allocations must sum to 1. Supports precision up to two decimal
2014+-- allocation is removed. Allocations must sum to 1. Supports precision up
1673−-- places for IP-based splits and up to three decimal places for
2015+-- to two decimal places for IP-based splits and up to three decimal places
1674−-- cookie-based splits.
2016+-- for cookie-based splits.
1675--
2017--
1676-- /See:/ 'trafficSplitAllocations' smart constructor.
2018-- /See:/ 'trafficSplitAllocations' smart constructor.
1677newtype TrafficSplitAllocations = TrafficSplitAllocations
2019newtype TrafficSplitAllocations = TrafficSplitAllocations
@@ -1705,7 +2047,7 @@ instance FromJSON TrafficSplitAllocations where
1705instance ToJSON TrafficSplitAllocations where
2047instance ToJSON TrafficSplitAllocations where
1706 toJSON = toJSON . _tsaAddtional
2048 toJSON = toJSON . _tsaAddtional
1707
2049
1708−-- | A module with manual scaling runs continuously, allowing you to perform
2050+-- | A service with manual scaling runs continuously, allowing you to perform
1709-- complex initialization and rely on the state of its memory over time.
2051-- complex initialization and rely on the state of its memory over time.
1710--
2052--
1711-- /See:/ 'manualScaling' smart constructor.
2053-- /See:/ 'manualScaling' smart constructor.
@@ -1725,7 +2067,7 @@ manualScaling =
1725 { _msInstances = Nothing
2067 { _msInstances = Nothing
1726 }
2068 }
1727
2069
1728−-- | The number of instances to assign to the module at the start. This
2070+-- | The number of instances to assign to the service at the start. This
1729-- number can later be altered by using the [Modules
2071-- number can later be altered by using the [Modules
1730-- API](https:\/\/cloud.google.com\/appengine\/docs\/python\/modules\/functions)
2072-- API](https:\/\/cloud.google.com\/appengine\/docs\/python\/modules\/functions)
1731-- \`set_num_instances()\` function.
2073-- \`set_num_instances()\` function.
@@ -1744,10 +2086,10 @@ instance ToJSON ManualScaling where
1744 = object
2086 = object
1745 (catMaybes [("instances" .=) <$> _msInstances])
2087 (catMaybes [("instances" .=) <$> _msInstances])
1746
2088
1747−-- | A module with basic scaling will create an instance when the application
2089+-- | A service with basic scaling will create an instance when the
1748−-- receives a request. The instance will be turned down when the app
2090+-- application receives a request. The instance will be turned down when
1749−-- becomes idle. Basic scaling is ideal for work that is intermittent or
2091+-- the app becomes idle. Basic scaling is ideal for work that is
1750−-- driven by user activity.
2092+-- intermittent or driven by user activity.
1751--
2093--
1752-- /See:/ 'basicScaling' smart constructor.
2094-- /See:/ 'basicScaling' smart constructor.
1753data BasicScaling = BasicScaling
2095data BasicScaling = BasicScaling
@@ -1800,7 +2142,7 @@ instance ToJSON BasicScaling where
1800 ("idleTimeout" .=) <$> _bsIdleTimeout])
2142 ("idleTimeout" .=) <$> _bsIdleTimeout])
1801
2143
1802-- | A Version is a specific set of source code and configuration files
2144-- | A Version is a specific set of source code and configuration files
1803−-- deployed to a module.
2145+-- deployed to a service.
1804--
2146--
1805-- /See:/ 'version' smart constructor.
2147-- /See:/ 'version' smart constructor.
1806data Version = Version
2148data Version = Version
@@ -1828,6 +2170,7 @@ data Version = Version
1828 , _vId :: !(Maybe Text)
2170 , _vId :: !(Maybe Text)
1829 , _vEnvVariables :: !(Maybe VersionEnvVariables)
2171 , _vEnvVariables :: !(Maybe VersionEnvVariables)
1830 , _vServingStatus :: !(Maybe Text)
2172 , _vServingStatus :: !(Maybe Text)
2173+ , _vDiskUsageBytes :: !(Maybe (Textual Int64))
1831 , _vLibraries :: !(Maybe [Library])
2174 , _vLibraries :: !(Maybe [Library])
1832 , _vDeployment :: !(Maybe Deployment)
2175 , _vDeployment :: !(Maybe Deployment)
1833 } deriving (Eq,Show,Data,Typeable,Generic)
2176 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -1884,6 +2227,8 @@ data Version = Version
1884--
2227--
1885-- * 'vServingStatus'
2228-- * 'vServingStatus'
1886--
2229--
2230+-- * 'vDiskUsageBytes'
2231+--
1887-- * 'vLibraries'
2232-- * 'vLibraries'
1888--
2233--
1889-- * 'vDeployment'
2234-- * 'vDeployment'
@@ -1915,6 +2260,7 @@ version =
1915 , _vId = Nothing
2260 , _vId = Nothing
1916 , _vEnvVariables = Nothing
2261 , _vEnvVariables = Nothing
1917 , _vServingStatus = Nothing
2262 , _vServingStatus = Nothing
2263+ , _vDiskUsageBytes = Nothing
1918 , _vLibraries = Nothing
2264 , _vLibraries = Nothing
1919 , _vDeployment = Nothing
2265 , _vDeployment = Nothing
1920 }
2266 }
@@ -1942,8 +2288,10 @@ vNobuildFilesRegex
1942 = lens _vNobuildFilesRegex
2288 = lens _vNobuildFilesRegex
1943 (\ s a -> s{_vNobuildFilesRegex = a})
2289 (\ s a -> s{_vNobuildFilesRegex = a})
1944
2290
1945−-- | The frontend instance class to use to run this app. Valid values are
2291+-- | The instance class to use to run this app. Valid values for
1946−-- \`[F1, F2, F4, F4_1G]\`. Default: \"F1\"
2292+-- AutomaticScaling are \`[F1, F2, F4, F4_1G]\`. Valid values for
2293+-- ManualScaling and BasicScaling are \`[B1, B2, B4, B8, B4_1G]\`. Default:
2294+-- \"F1\" for AutomaticScaling, \"B1\" for ManualScaling and BasicScaling
1947vInstanceClass :: Lens' Version (Maybe Text)
2295vInstanceClass :: Lens' Version (Maybe Text)
1948vInstanceClass
2296vInstanceClass
1949 = lens _vInstanceClass
2297 = lens _vInstanceClass
@@ -1990,8 +2338,7 @@ vErrorHandlers
1990 . _Default
2338 . _Default
1991 . _Coerce
2339 . _Coerce
1992
2340
1993−-- | Whether to deploy this app in a VM container (deprecated, use
2341+-- | Whether to deploy this app in a VM container.
1994−-- \"env\":\"2\").
1995vVM :: Lens' Version (Maybe Bool)
2342vVM :: Lens' Version (Maybe Bool)
1996vVM = lens _vVM (\ s a -> s{_vVM = a})
2343vVM = lens _vVM (\ s a -> s{_vVM = a})
1997
2344
@@ -2026,7 +2373,7 @@ vResources
2026 = lens _vResources (\ s a -> s{_vResources = a})
2373 = lens _vResources (\ s a -> s{_vResources = a})
2027
2374
2028-- | The full path to the Version resource in the API. Example:
2375-- | The full path to the Version resource in the API. Example:
2029−-- \"apps\/myapp\/modules\/default\/versions\/v1\". \'OutputOnly
2376+-- \"apps\/myapp\/services\/default\/versions\/v1\". \'OutputOnly
2030vName :: Lens' Version (Maybe Text)
2377vName :: Lens' Version (Maybe Text)
2031vName = lens _vName (\ s a -> s{_vName = a})
2378vName = lens _vName (\ s a -> s{_vName = a})
2032
2379
@@ -2041,16 +2388,16 @@ vBetaSettings
2041 = lens _vBetaSettings
2388 = lens _vBetaSettings
2042 (\ s a -> s{_vBetaSettings = a})
2389 (\ s a -> s{_vBetaSettings = a})
2043
2390
2044−-- | A module with basic scaling will create an instance when the application
2391+-- | A service with basic scaling will create an instance when the
2045−-- receives a request. The instance will be turned down when the app
2392+-- application receives a request. The instance will be turned down when
2046−-- becomes idle. Basic scaling is ideal for work that is intermittent or
2393+-- the app becomes idle. Basic scaling is ideal for work that is
2047−-- driven by user activity.
2394+-- intermittent or driven by user activity.
2048vBasicScaling :: Lens' Version (Maybe BasicScaling)
2395vBasicScaling :: Lens' Version (Maybe BasicScaling)
2049vBasicScaling
2396vBasicScaling
2050 = lens _vBasicScaling
2397 = lens _vBasicScaling
2051 (\ s a -> s{_vBasicScaling = a})
2398 (\ s a -> s{_vBasicScaling = a})
2052
2399
2053−-- | A module with manual scaling runs continuously, allowing you to perform
2400+-- | A service with manual scaling runs continuously, allowing you to perform
2054-- complex initialization and rely on the state of its memory over time.
2401-- complex initialization and rely on the state of its memory over time.
2055vManualScaling :: Lens' Version (Maybe ManualScaling)
2402vManualScaling :: Lens' Version (Maybe ManualScaling)
2056vManualScaling
2403vManualScaling
@@ -2064,7 +2411,7 @@ vAPIConfig :: Lens' Version (Maybe APIConfigHandler)
2064vAPIConfig
2411vAPIConfig
2065 = lens _vAPIConfig (\ s a -> s{_vAPIConfig = a})
2412 = lens _vAPIConfig (\ s a -> s{_vAPIConfig = a})
2066
2413
2067−-- | The relative name\/path of the Version within the module. Example:
2414+-- | The relative name\/path of the Version within the service. Example:
2068-- \"v1\". Version specifiers can contain lowercase letters, digits, and
2415-- \"v1\". Version specifiers can contain lowercase letters, digits, and
2069-- hyphens. It cannot begin with the prefix \`ah-\` and the names
2416-- hyphens. It cannot begin with the prefix \`ah-\` and the names
2070-- \`default\` and \`latest\` are reserved and cannot be used.
2417-- \`default\` and \`latest\` are reserved and cannot be used.
@@ -2088,6 +2435,14 @@ vServingStatus
2088 = lens _vServingStatus
2435 = lens _vServingStatus
2089 (\ s a -> s{_vServingStatus = a})
2436 (\ s a -> s{_vServingStatus = a})
2090
2437
2438+-- | Total size of version files hosted on App Engine disk in bytes.
2439+-- \'OutputOnly
2440+vDiskUsageBytes :: Lens' Version (Maybe Int64)
2441+vDiskUsageBytes
2442+ = lens _vDiskUsageBytes
2443+ (\ s a -> s{_vDiskUsageBytes = a})
2444+ . mapping _Coerce
2445+
2091-- | Configuration for Python runtime third-party libraries required by the
2446-- | Configuration for Python runtime third-party libraries required by the
2092-- application. Only returned in \`GET\` requests if \`view=FULL\` is set.
2447-- application. Only returned in \`GET\` requests if \`view=FULL\` is set.
2093-- May only be set on create requests; once created, is immutable.
2448-- May only be set on create requests; once created, is immutable.
@@ -2132,6 +2487,7 @@ instance FromJSON Version where
2132 <*> (o .:? "id")
2487 <*> (o .:? "id")
2133 <*> (o .:? "envVariables")
2488 <*> (o .:? "envVariables")
2134 <*> (o .:? "servingStatus")
2489 <*> (o .:? "servingStatus")
2490+ <*> (o .:? "diskUsageBytes")
2135 <*> (o .:? "libraries" .!= mempty)
2491 <*> (o .:? "libraries" .!= mempty)
2136 <*> (o .:? "deployment"))
2492 <*> (o .:? "deployment"))
2137
2493
@@ -2161,67 +2517,10 @@ instance ToJSON Version where
2161 ("apiConfig" .=) <$> _vAPIConfig, ("id" .=) <$> _vId,
2517 ("apiConfig" .=) <$> _vAPIConfig, ("id" .=) <$> _vId,
2162 ("envVariables" .=) <$> _vEnvVariables,
2518 ("envVariables" .=) <$> _vEnvVariables,
2163 ("servingStatus" .=) <$> _vServingStatus,
2519 ("servingStatus" .=) <$> _vServingStatus,
2520+ ("diskUsageBytes" .=) <$> _vDiskUsageBytes,
2164 ("libraries" .=) <$> _vLibraries,
2521 ("libraries" .=) <$> _vLibraries,
2165 ("deployment" .=) <$> _vDeployment])
2522 ("deployment" .=) <$> _vDeployment])
2166
2523
2167−-- | A module is a component of an application that provides a single service
2168−-- or configuration. A module has a collection of versions that define a
2169−-- specific set of code used to implement the functionality of that module.
2170−--
2171−-- /See:/ 'module'' smart constructor.
2172−data Module = Module
2173− { _mSplit :: !(Maybe TrafficSplit)
2174− , _mName :: !(Maybe Text)
2175− , _mId :: !(Maybe Text)
2176− } deriving (Eq,Show,Data,Typeable,Generic)
2177−
2178−-- | Creates a value of 'Module' with the minimum fields required to make a request.
2179−--
2180−-- Use one of the following lenses to modify other fields as desired:
2181−--
2182−-- * 'mSplit'
2183−--
2184−-- * 'mName'
2185−--
2186−-- * 'mId'
2187−module'
2188− :: Module
2189−module' =
2190− Module
2191− { _mSplit = Nothing
2192− , _mName = Nothing
2193− , _mId = Nothing
2194− }
2195−
2196−-- | A mapping that defines fractional HTTP traffic diversion to different
2197−-- versions within the module.
2198−mSplit :: Lens' Module (Maybe TrafficSplit)
2199−mSplit = lens _mSplit (\ s a -> s{_mSplit = a})
2200−
2201−-- | The full path to the Module resource in the API. Example:
2202−-- \"apps\/myapp\/modules\/default\" \'OutputOnly
2203−mName :: Lens' Module (Maybe Text)
2204−mName = lens _mName (\ s a -> s{_mName = a})
2205−
2206−-- | The relative name\/path of the module within the application. Example:
2207−-- \"default\" \'OutputOnly
2208−mId :: Lens' Module (Maybe Text)
2209−mId = lens _mId (\ s a -> s{_mId = a})
2210−
2211−instance FromJSON Module where
2212− parseJSON
2213− = withObject "Module"
2214− (\ o ->
2215− Module <$>
2216− (o .:? "split") <*> (o .:? "name") <*> (o .:? "id"))
2217−
2218−instance ToJSON Module where
2219− toJSON Module{..}
2220− = object
2221− (catMaybes
2222− [("split" .=) <$> _mSplit, ("name" .=) <$> _mName,
2223− ("id" .=) <$> _mId])
2224−
2225-- | Files served directly to the user for a given URL, such as images, CSS
2524-- | Files served directly to the user for a given URL, such as images, CSS
2226-- stylesheets, or JavaScript source files. Static file handlers describe
2525-- stylesheets, or JavaScript source files. Static file handlers describe
2227-- which files in the application directory are static files, and which
2526-- which files in the application directory are static files, and which
@@ -2280,10 +2579,9 @@ sfhHTTPHeaders
2280sfhPath :: Lens' StaticFilesHandler (Maybe Text)
2579sfhPath :: Lens' StaticFilesHandler (Maybe Text)
2281sfhPath = lens _sfhPath (\ s a -> s{_sfhPath = a})
2580sfhPath = lens _sfhPath (\ s a -> s{_sfhPath = a})
2282
2581
2283−-- | If true, this [UrlMap][google.appengine.v1beta4.UrlMap] entry does not
2582+-- | If true, this UrlMap entry does not match the request unless the file
2284−-- match the request unless the file referenced by the handler also exists.
2583+-- referenced by the handler also exists. If no such file exists,
2285−-- If no such file exists, processing will continue with the next
2584+-- processing will continue with the next UrlMap that matches the requested
2286−-- [UrlMap][google.appengine.v1beta4.UrlMap] that matches the requested
2287-- URL.
2585-- URL.
2288sfhRequireMatchingFile :: Lens' StaticFilesHandler (Maybe Bool)
2586sfhRequireMatchingFile :: Lens' StaticFilesHandler (Maybe Bool)
2289sfhRequireMatchingFile
2587sfhRequireMatchingFile
@@ -2405,8 +2703,7 @@ instance ToJSON ErrorHandler where
2405 ("errorCode" .=) <$> _ehErrorCode,
2703 ("errorCode" .=) <$> _ehErrorCode,
2406 ("staticFile" .=) <$> _ehStaticFile])
2704 ("staticFile" .=) <$> _ehStaticFile])
2407
2705
2408−-- | Metadata for the given
2706+-- | Metadata for the given google.longrunning.Operation.
2409−-- [google.longrunning.Operation][google.longrunning.Operation].
2410--
2707--
2411-- /See:/ 'operationMetadata' smart constructor.
2708-- /See:/ 'operationMetadata' smart constructor.
2412data OperationMetadata = OperationMetadata
2709data OperationMetadata = OperationMetadata
@@ -2498,6 +2795,60 @@ instance ToJSON OperationMetadata where
2498 ("operationType" .=) <$> _omOperationType,
2795 ("operationType" .=) <$> _omOperationType,
2499 ("target" .=) <$> _omTarget])
2796 ("target" .=) <$> _omTarget])
2500
2797
2798+-- | Target scaling by request utilization (for VM runtimes only).
2799+--
2800+-- /See:/ 'requestUtilization' smart constructor.
2801+data RequestUtilization = RequestUtilization
2802+ { _ruTargetConcurrentRequests :: !(Maybe (Textual Int32))
2803+ , _ruTargetRequestCountPerSec :: !(Maybe (Textual Int32))
2804+ } deriving (Eq,Show,Data,Typeable,Generic)
2805+
2806+-- | Creates a value of 'RequestUtilization' with the minimum fields required to make a request.
2807+--
2808+-- Use one of the following lenses to modify other fields as desired:
2809+--
2810+-- * 'ruTargetConcurrentRequests'
2811+--
2812+-- * 'ruTargetRequestCountPerSec'
2813+requestUtilization
2814+ :: RequestUtilization
2815+requestUtilization =
2816+ RequestUtilization
2817+ { _ruTargetConcurrentRequests = Nothing
2818+ , _ruTargetRequestCountPerSec = Nothing
2819+ }
2820+
2821+-- | Target number of concurrent requests.
2822+ruTargetConcurrentRequests :: Lens' RequestUtilization (Maybe Int32)
2823+ruTargetConcurrentRequests
2824+ = lens _ruTargetConcurrentRequests
2825+ (\ s a -> s{_ruTargetConcurrentRequests = a})
2826+ . mapping _Coerce
2827+
2828+-- | Target requests per second.
2829+ruTargetRequestCountPerSec :: Lens' RequestUtilization (Maybe Int32)
2830+ruTargetRequestCountPerSec
2831+ = lens _ruTargetRequestCountPerSec
2832+ (\ s a -> s{_ruTargetRequestCountPerSec = a})
2833+ . mapping _Coerce
2834+
2835+instance FromJSON RequestUtilization where
2836+ parseJSON
2837+ = withObject "RequestUtilization"
2838+ (\ o ->
2839+ RequestUtilization <$>
2840+ (o .:? "targetConcurrentRequests") <*>
2841+ (o .:? "targetRequestCountPerSec"))
2842+
2843+instance ToJSON RequestUtilization where
2844+ toJSON RequestUtilization{..}
2845+ = object
2846+ (catMaybes
2847+ [("targetConcurrentRequests" .=) <$>
2848+ _ruTargetConcurrentRequests,
2849+ ("targetRequestCountPerSec" .=) <$>
2850+ _ruTargetRequestCountPerSec])
2851+
2501-- | A reference to a particular snapshot of the source tree used to build
2852-- | A reference to a particular snapshot of the source tree used to build
2502-- and deploy the application.
2853-- and deploy the application.
2503--
2854--
@@ -2689,116 +3040,3 @@ instance ToJSON Deployment where
2689 [("container" .=) <$> _dContainer,
3040 [("container" .=) <$> _dContainer,
2690 ("files" .=) <$> _dFiles,
3041 ("files" .=) <$> _dFiles,
2691 ("sourceReferences" .=) <$> _dSourceReferences])
3042 ("sourceReferences" .=) <$> _dSourceReferences])
2692−
2693−-- | Files served directly to the user for a given URL, such as images, CSS
2694−-- stylesheets, or JavaScript source files. Static directory handlers make
2695−-- it easy to serve the entire contents of a directory as static files.
2696−--
2697−-- /See:/ 'staticDirectoryHandler' smart constructor.
2698−data StaticDirectoryHandler = StaticDirectoryHandler
2699− { _sdhHTTPHeaders :: !(Maybe StaticDirectoryHandlerHTTPHeaders)
2700− , _sdhRequireMatchingFile :: !(Maybe Bool)
2701− , _sdhExpiration :: !(Maybe Text)
2702− , _sdhMimeType :: !(Maybe Text)
2703− , _sdhApplicationReadable :: !(Maybe Bool)
2704− , _sdhDirectory :: !(Maybe Text)
2705− } deriving (Eq,Show,Data,Typeable,Generic)
2706−
2707−-- | Creates a value of 'StaticDirectoryHandler' with the minimum fields required to make a request.
2708−--
2709−-- Use one of the following lenses to modify other fields as desired:
2710−--
2711−-- * 'sdhHTTPHeaders'
2712−--
2713−-- * 'sdhRequireMatchingFile'
2714−--
2715−-- * 'sdhExpiration'
2716−--
2717−-- * 'sdhMimeType'
2718−--
2719−-- * 'sdhApplicationReadable'
2720−--
2721−-- * 'sdhDirectory'
2722−staticDirectoryHandler
2723− :: StaticDirectoryHandler
2724−staticDirectoryHandler =
2725− StaticDirectoryHandler
2726− { _sdhHTTPHeaders = Nothing
2727− , _sdhRequireMatchingFile = Nothing
2728− , _sdhExpiration = Nothing
2729− , _sdhMimeType = Nothing
2730− , _sdhApplicationReadable = Nothing
2731− , _sdhDirectory = Nothing
2732− }
2733−
2734−-- | HTTP headers to use for all responses from these URLs.
2735−sdhHTTPHeaders :: Lens' StaticDirectoryHandler (Maybe StaticDirectoryHandlerHTTPHeaders)
2736−sdhHTTPHeaders
2737− = lens _sdhHTTPHeaders
2738− (\ s a -> s{_sdhHTTPHeaders = a})
2739−
2740−-- | If true, this UrlMap entry does not match the request unless the file
2741−-- referenced by the handler also exists. If no such file exists,
2742−-- processing will continue with the next UrlMap that matches the requested
2743−-- URL.
2744−sdhRequireMatchingFile :: Lens' StaticDirectoryHandler (Maybe Bool)
2745−sdhRequireMatchingFile
2746− = lens _sdhRequireMatchingFile
2747− (\ s a -> s{_sdhRequireMatchingFile = a})
2748−
2749−-- | The length of time a static file served by this handler ought to be
2750−-- cached by web proxies and browsers.
2751−sdhExpiration :: Lens' StaticDirectoryHandler (Maybe Text)
2752−sdhExpiration
2753− = lens _sdhExpiration
2754− (\ s a -> s{_sdhExpiration = a})
2755−
2756−-- | If specified, all files served by this handler will be served using the
2757−-- specified MIME type. If not specified, the MIME type for a file will be
2758−-- derived from the file\'s filename extension.
2759−sdhMimeType :: Lens' StaticDirectoryHandler (Maybe Text)
2760−sdhMimeType
2761− = lens _sdhMimeType (\ s a -> s{_sdhMimeType = a})
2762−
2763−-- | By default, files declared in static file handlers are uploaded as
2764−-- static data and are only served to end users, they cannot be read by an
2765−-- application. If this field is set to true, the files are also uploaded
2766−-- as code data so your application can read them. Both uploads are charged
2767−-- against your code and static data storage resource quotas.
2768−sdhApplicationReadable :: Lens' StaticDirectoryHandler (Maybe Bool)
2769−sdhApplicationReadable
2770− = lens _sdhApplicationReadable
2771− (\ s a -> s{_sdhApplicationReadable = a})
2772−
2773−-- | The path to the directory containing the static files, from the
2774−-- application root directory. Everything after the end of the matched url
2775−-- pattern is appended to static_dir to form the full path to the requested
2776−-- file.
2777−sdhDirectory :: Lens' StaticDirectoryHandler (Maybe Text)
2778−sdhDirectory
2779− = lens _sdhDirectory (\ s a -> s{_sdhDirectory = a})
2780−
2781−instance FromJSON StaticDirectoryHandler where
2782− parseJSON
2783− = withObject "StaticDirectoryHandler"
2784− (\ o ->
2785− StaticDirectoryHandler <$>
2786− (o .:? "httpHeaders") <*>
2787− (o .:? "requireMatchingFile")
2788− <*> (o .:? "expiration")
2789− <*> (o .:? "mimeType")
2790− <*> (o .:? "applicationReadable")
2791− <*> (o .:? "directory"))
2792−
2793−instance ToJSON StaticDirectoryHandler where
2794− toJSON StaticDirectoryHandler{..}
2795− = object
2796− (catMaybes
2797− [("httpHeaders" .=) <$> _sdhHTTPHeaders,
2798− ("requireMatchingFile" .=) <$>
2799− _sdhRequireMatchingFile,
2800− ("expiration" .=) <$> _sdhExpiration,
2801− ("mimeType" .=) <$> _sdhMimeType,
2802− ("applicationReadable" .=) <$>
2803− _sdhApplicationReadable,
2804− ("directory" .=) <$> _sdhDirectory])
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Get.hs+6−4
@@ -22,7 +22,7 @@
22--
22--
23-- Gets information about an application.
23-- Gets information about an application.
24--
24--
25−-- /See:/ <https://developers.google.com/appengine/ Google App Engine Admin API Reference> for @appengine.apps.get@.
25+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference> for @appengine.apps.get@.
26module Network.Google.Resource.AppEngine.Apps.Get
26module Network.Google.Resource.AppEngine.Apps.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -50,7 +50,7 @@ import Network.Google.Prelude
50-- | A resource alias for @appengine.apps.get@ method which the
50-- | A resource alias for @appengine.apps.get@ method which the
51-- 'AppsGet' request conforms to.
51-- 'AppsGet' request conforms to.
52type AppsGetResource =
52type AppsGetResource =
53− "v1beta4" :>
53+ "v1beta5" :>
54 "apps" :>
54 "apps" :>
55 Capture "appsId" Text :>
55 Capture "appsId" Text :>
56 QueryParam "$.xgafv" Text :>
56 QueryParam "$.xgafv" Text :>
@@ -153,8 +153,10 @@ agAppsId = lens _agAppsId (\ s a -> s{_agAppsId = a})
153
153
154-- | Certain resources associated with an application are created on-demand.
154-- | Certain resources associated with an application are created on-demand.
155-- Controls whether these resources should be created when performing the
155-- Controls whether these resources should be created when performing the
156−-- \`GET\` operation. If specified and any resources cloud not be created,
156+-- \`GET\` operation. If specified and any resources could not be created,
157−-- the request will fail with an error code.
157+-- the request will fail with an error code. Additionally, this parameter
158+-- can cause the request to take longer to complete. Note: This parameter
159+-- will be deprecated in a future version of the API.
158agEnsureResourcesExist :: Lens' AppsGet (Maybe Bool)
160agEnsureResourcesExist :: Lens' AppsGet (Maybe Bool)
159agEnsureResourcesExist
161agEnsureResourcesExist
160 = lens _agEnsureResourcesExist
162 = lens _agEnsureResourcesExist
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Operations/Get.hs+2−2
@@ -24,7 +24,7 @@
24-- method to poll the operation result at intervals as recommended by the
24-- method to poll the operation result at intervals as recommended by the
25-- API service.
25-- API service.
26--
26--
27−-- /See:/ <https://developers.google.com/appengine/ Google App Engine Admin API Reference> for @appengine.apps.operations.get@.
27+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference> for @appengine.apps.operations.get@.
28module Network.Google.Resource.AppEngine.Apps.Operations.Get
28module Network.Google.Resource.AppEngine.Apps.Operations.Get
29 (
29 (
30 -- * REST Resource
30 -- * REST Resource
@@ -52,7 +52,7 @@ import Network.Google.Prelude
52-- | A resource alias for @appengine.apps.operations.get@ method which the
52-- | A resource alias for @appengine.apps.operations.get@ method which the
53-- 'AppsOperationsGet' request conforms to.
53-- 'AppsOperationsGet' request conforms to.
54type AppsOperationsGetResource =
54type AppsOperationsGetResource =
55− "v1beta4" :>
55+ "v1beta5" :>
56 "apps" :>
56 "apps" :>
57 Capture "appsId" Text :>
57 Capture "appsId" Text :>
58 "operations" :>
58 "operations" :>
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Operations/List.hs+2−2
@@ -26,7 +26,7 @@
26-- to use different resource name schemes, such as
26-- to use different resource name schemes, such as
27-- \`users\/*\/operations\`.
27-- \`users\/*\/operations\`.
28--
28--
29−-- /See:/ <https://developers.google.com/appengine/ Google App Engine Admin API Reference> for @appengine.apps.operations.list@.
29+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference> for @appengine.apps.operations.list@.
30module Network.Google.Resource.AppEngine.Apps.Operations.List
30module Network.Google.Resource.AppEngine.Apps.Operations.List
31 (
31 (
32 -- * REST Resource
32 -- * REST Resource
@@ -56,7 +56,7 @@ import Network.Google.Prelude
56-- | A resource alias for @appengine.apps.operations.list@ method which the
56-- | A resource alias for @appengine.apps.operations.list@ method which the
57-- 'AppsOperationsList' request conforms to.
57-- 'AppsOperationsList' request conforms to.
58type AppsOperationsListResource =
58type AppsOperationsListResource =
59− "v1beta4" :>
59+ "v1beta5" :>
60 "apps" :>
60 "apps" :>
61 Capture "appsId" Text :>
61 Capture "appsId" Text :>
62 "operations" :>
62 "operations" :>
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Services/Delete.hsnew file+185
@@ -0,0 +1,185 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AppEngine.Apps.Services.Delete
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Deletes a service and all enclosed versions.
24+--
25+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference> for @appengine.apps.services.delete@.
26+module Network.Google.Resource.AppEngine.Apps.Services.Delete
27+ (
28+ -- * REST Resource
29+ AppsServicesDeleteResource
30+
31+ -- * Creating a Request
32+ , appsServicesDelete
33+ , AppsServicesDelete
34+
35+ -- * Request Lenses
36+ , asdXgafv
37+ , asdUploadProtocol
38+ , asdPp
39+ , asdAccessToken
40+ , asdUploadType
41+ , asdBearerToken
42+ , asdAppsId
43+ , asdServicesId
44+ , asdCallback
45+ ) where
46+
47+import Network.Google.AppEngine.Types
48+import Network.Google.Prelude
49+
50+-- | A resource alias for @appengine.apps.services.delete@ method which the
51+-- 'AppsServicesDelete' request conforms to.
52+type AppsServicesDeleteResource =
53+ "v1beta5" :>
54+ "apps" :>
55+ Capture "appsId" Text :>
56+ "services" :>
57+ Capture "servicesId" Text :>
58+ QueryParam "$.xgafv" Text :>
59+ QueryParam "upload_protocol" Text :>
60+ QueryParam "pp" Bool :>
61+ QueryParam "access_token" Text :>
62+ QueryParam "uploadType" Text :>
63+ QueryParam "bearer_token" Text :>
64+ QueryParam "callback" Text :>
65+ QueryParam "alt" AltJSON :>
66+ Delete '[JSON] Operation
67+
68+-- | Deletes a service and all enclosed versions.
69+--
70+-- /See:/ 'appsServicesDelete' smart constructor.
71+data AppsServicesDelete = AppsServicesDelete
72+ { _asdXgafv :: !(Maybe Text)
73+ , _asdUploadProtocol :: !(Maybe Text)
74+ , _asdPp :: !Bool
75+ , _asdAccessToken :: !(Maybe Text)
76+ , _asdUploadType :: !(Maybe Text)
77+ , _asdBearerToken :: !(Maybe Text)
78+ , _asdAppsId :: !Text
79+ , _asdServicesId :: !Text
80+ , _asdCallback :: !(Maybe Text)
81+ } deriving (Eq,Show,Data,Typeable,Generic)
82+
83+-- | Creates a value of 'AppsServicesDelete' with the minimum fields required to make a request.
84+--
85+-- Use one of the following lenses to modify other fields as desired:
86+--
87+-- * 'asdXgafv'
88+--
89+-- * 'asdUploadProtocol'
90+--
91+-- * 'asdPp'
92+--
93+-- * 'asdAccessToken'
94+--
95+-- * 'asdUploadType'
96+--
97+-- * 'asdBearerToken'
98+--
99+-- * 'asdAppsId'
100+--
101+-- * 'asdServicesId'
102+--
103+-- * 'asdCallback'
104+appsServicesDelete
105+ :: Text -- ^ 'asdAppsId'
106+ -> Text -- ^ 'asdServicesId'
107+ -> AppsServicesDelete
108+appsServicesDelete pAsdAppsId_ pAsdServicesId_ =
109+ AppsServicesDelete
110+ { _asdXgafv = Nothing
111+ , _asdUploadProtocol = Nothing
112+ , _asdPp = True
113+ , _asdAccessToken = Nothing
114+ , _asdUploadType = Nothing
115+ , _asdBearerToken = Nothing
116+ , _asdAppsId = pAsdAppsId_
117+ , _asdServicesId = pAsdServicesId_
118+ , _asdCallback = Nothing
119+ }
120+
121+-- | V1 error format.
122+asdXgafv :: Lens' AppsServicesDelete (Maybe Text)
123+asdXgafv = lens _asdXgafv (\ s a -> s{_asdXgafv = a})
124+
125+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
126+asdUploadProtocol :: Lens' AppsServicesDelete (Maybe Text)
127+asdUploadProtocol
128+ = lens _asdUploadProtocol
129+ (\ s a -> s{_asdUploadProtocol = a})
130+
131+-- | Pretty-print response.
132+asdPp :: Lens' AppsServicesDelete Bool
133+asdPp = lens _asdPp (\ s a -> s{_asdPp = a})
134+
135+-- | OAuth access token.
136+asdAccessToken :: Lens' AppsServicesDelete (Maybe Text)
137+asdAccessToken
138+ = lens _asdAccessToken
139+ (\ s a -> s{_asdAccessToken = a})
140+
141+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
142+asdUploadType :: Lens' AppsServicesDelete (Maybe Text)
143+asdUploadType
144+ = lens _asdUploadType
145+ (\ s a -> s{_asdUploadType = a})
146+
147+-- | OAuth bearer token.
148+asdBearerToken :: Lens' AppsServicesDelete (Maybe Text)
149+asdBearerToken
150+ = lens _asdBearerToken
151+ (\ s a -> s{_asdBearerToken = a})
152+
153+-- | Part of \`name\`. Name of the resource requested. For example:
154+-- \"apps\/myapp\/services\/default\".
155+asdAppsId :: Lens' AppsServicesDelete Text
156+asdAppsId
157+ = lens _asdAppsId (\ s a -> s{_asdAppsId = a})
158+
159+-- | Part of \`name\`. See documentation of \`appsId\`.
160+asdServicesId :: Lens' AppsServicesDelete Text
161+asdServicesId
162+ = lens _asdServicesId
163+ (\ s a -> s{_asdServicesId = a})
164+
165+-- | JSONP
166+asdCallback :: Lens' AppsServicesDelete (Maybe Text)
167+asdCallback
168+ = lens _asdCallback (\ s a -> s{_asdCallback = a})
169+
170+instance GoogleRequest AppsServicesDelete where
171+ type Rs AppsServicesDelete = Operation
172+ requestClient AppsServicesDelete{..}
173+ = go _asdAppsId _asdServicesId _asdXgafv
174+ _asdUploadProtocol
175+ (Just _asdPp)
176+ _asdAccessToken
177+ _asdUploadType
178+ _asdBearerToken
179+ _asdCallback
180+ (Just AltJSON)
181+ appEngineService
182+ where go
183+ = buildClient
184+ (Proxy :: Proxy AppsServicesDeleteResource)
185+ mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Services/Get.hsnew file+184
@@ -0,0 +1,184 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AppEngine.Apps.Services.Get
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Gets the current configuration of the service.
24+--
25+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference> for @appengine.apps.services.get@.
26+module Network.Google.Resource.AppEngine.Apps.Services.Get
27+ (
28+ -- * REST Resource
29+ AppsServicesGetResource
30+
31+ -- * Creating a Request
32+ , appsServicesGet
33+ , AppsServicesGet
34+
35+ -- * Request Lenses
36+ , asgXgafv
37+ , asgUploadProtocol
38+ , asgPp
39+ , asgAccessToken
40+ , asgUploadType
41+ , asgBearerToken
42+ , asgAppsId
43+ , asgServicesId
44+ , asgCallback
45+ ) where
46+
47+import Network.Google.AppEngine.Types
48+import Network.Google.Prelude
49+
50+-- | A resource alias for @appengine.apps.services.get@ method which the
51+-- 'AppsServicesGet' request conforms to.
52+type AppsServicesGetResource =
53+ "v1beta5" :>
54+ "apps" :>
55+ Capture "appsId" Text :>
56+ "services" :>
57+ Capture "servicesId" Text :>
58+ QueryParam "$.xgafv" Text :>
59+ QueryParam "upload_protocol" Text :>
60+ QueryParam "pp" Bool :>
61+ QueryParam "access_token" Text :>
62+ QueryParam "uploadType" Text :>
63+ QueryParam "bearer_token" Text :>
64+ QueryParam "callback" Text :>
65+ QueryParam "alt" AltJSON :> Get '[JSON] Service
66+
67+-- | Gets the current configuration of the service.
68+--
69+-- /See:/ 'appsServicesGet' smart constructor.
70+data AppsServicesGet = AppsServicesGet
71+ { _asgXgafv :: !(Maybe Text)
72+ , _asgUploadProtocol :: !(Maybe Text)
73+ , _asgPp :: !Bool
74+ , _asgAccessToken :: !(Maybe Text)
75+ , _asgUploadType :: !(Maybe Text)
76+ , _asgBearerToken :: !(Maybe Text)
77+ , _asgAppsId :: !Text
78+ , _asgServicesId :: !Text
79+ , _asgCallback :: !(Maybe Text)
80+ } deriving (Eq,Show,Data,Typeable,Generic)
81+
82+-- | Creates a value of 'AppsServicesGet' with the minimum fields required to make a request.
83+--
84+-- Use one of the following lenses to modify other fields as desired:
85+--
86+-- * 'asgXgafv'
87+--
88+-- * 'asgUploadProtocol'
89+--
90+-- * 'asgPp'
91+--
92+-- * 'asgAccessToken'
93+--
94+-- * 'asgUploadType'
95+--
96+-- * 'asgBearerToken'
97+--
98+-- * 'asgAppsId'
99+--
100+-- * 'asgServicesId'
101+--
102+-- * 'asgCallback'
103+appsServicesGet
104+ :: Text -- ^ 'asgAppsId'
105+ -> Text -- ^ 'asgServicesId'
106+ -> AppsServicesGet
107+appsServicesGet pAsgAppsId_ pAsgServicesId_ =
108+ AppsServicesGet
109+ { _asgXgafv = Nothing
110+ , _asgUploadProtocol = Nothing
111+ , _asgPp = True
112+ , _asgAccessToken = Nothing
113+ , _asgUploadType = Nothing
114+ , _asgBearerToken = Nothing
115+ , _asgAppsId = pAsgAppsId_
116+ , _asgServicesId = pAsgServicesId_
117+ , _asgCallback = Nothing
118+ }
119+
120+-- | V1 error format.
121+asgXgafv :: Lens' AppsServicesGet (Maybe Text)
122+asgXgafv = lens _asgXgafv (\ s a -> s{_asgXgafv = a})
123+
124+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
125+asgUploadProtocol :: Lens' AppsServicesGet (Maybe Text)
126+asgUploadProtocol
127+ = lens _asgUploadProtocol
128+ (\ s a -> s{_asgUploadProtocol = a})
129+
130+-- | Pretty-print response.
131+asgPp :: Lens' AppsServicesGet Bool
132+asgPp = lens _asgPp (\ s a -> s{_asgPp = a})
133+
134+-- | OAuth access token.
135+asgAccessToken :: Lens' AppsServicesGet (Maybe Text)
136+asgAccessToken
137+ = lens _asgAccessToken
138+ (\ s a -> s{_asgAccessToken = a})
139+
140+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
141+asgUploadType :: Lens' AppsServicesGet (Maybe Text)
142+asgUploadType
143+ = lens _asgUploadType
144+ (\ s a -> s{_asgUploadType = a})
145+
146+-- | OAuth bearer token.
147+asgBearerToken :: Lens' AppsServicesGet (Maybe Text)
148+asgBearerToken
149+ = lens _asgBearerToken
150+ (\ s a -> s{_asgBearerToken = a})
151+
152+-- | Part of \`name\`. Name of the resource requested. For example:
153+-- \"apps\/myapp\/services\/default\".
154+asgAppsId :: Lens' AppsServicesGet Text
155+asgAppsId
156+ = lens _asgAppsId (\ s a -> s{_asgAppsId = a})
157+
158+-- | Part of \`name\`. See documentation of \`appsId\`.
159+asgServicesId :: Lens' AppsServicesGet Text
160+asgServicesId
161+ = lens _asgServicesId
162+ (\ s a -> s{_asgServicesId = a})
163+
164+-- | JSONP
165+asgCallback :: Lens' AppsServicesGet (Maybe Text)
166+asgCallback
167+ = lens _asgCallback (\ s a -> s{_asgCallback = a})
168+
169+instance GoogleRequest AppsServicesGet where
170+ type Rs AppsServicesGet = Service
171+ requestClient AppsServicesGet{..}
172+ = go _asgAppsId _asgServicesId _asgXgafv
173+ _asgUploadProtocol
174+ (Just _asgPp)
175+ _asgAccessToken
176+ _asgUploadType
177+ _asgBearerToken
178+ _asgCallback
179+ (Just AltJSON)
180+ appEngineService
181+ where go
182+ = buildClient
183+ (Proxy :: Proxy AppsServicesGetResource)
184+ mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Services/List.hsnew file+196
@@ -0,0 +1,196 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AppEngine.Apps.Services.List
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Lists all the services in the application.
24+--
25+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference> for @appengine.apps.services.list@.
26+module Network.Google.Resource.AppEngine.Apps.Services.List
27+ (
28+ -- * REST Resource
29+ AppsServicesListResource
30+
31+ -- * Creating a Request
32+ , appsServicesList
33+ , AppsServicesList
34+
35+ -- * Request Lenses
36+ , aslXgafv
37+ , aslUploadProtocol
38+ , aslPp
39+ , aslAccessToken
40+ , aslUploadType
41+ , aslBearerToken
42+ , aslAppsId
43+ , aslPageToken
44+ , aslPageSize
45+ , aslCallback
46+ ) where
47+
48+import Network.Google.AppEngine.Types
49+import Network.Google.Prelude
50+
51+-- | A resource alias for @appengine.apps.services.list@ method which the
52+-- 'AppsServicesList' request conforms to.
53+type AppsServicesListResource =
54+ "v1beta5" :>
55+ "apps" :>
56+ Capture "appsId" Text :>
57+ "services" :>
58+ QueryParam "$.xgafv" Text :>
59+ QueryParam "upload_protocol" Text :>
60+ QueryParam "pp" Bool :>
61+ QueryParam "access_token" Text :>
62+ QueryParam "uploadType" Text :>
63+ QueryParam "bearer_token" Text :>
64+ QueryParam "pageToken" Text :>
65+ QueryParam "pageSize" (Textual Int32) :>
66+ QueryParam "callback" Text :>
67+ QueryParam "alt" AltJSON :>
68+ Get '[JSON] ListServicesResponse
69+
70+-- | Lists all the services in the application.
71+--
72+-- /See:/ 'appsServicesList' smart constructor.
73+data AppsServicesList = AppsServicesList
74+ { _aslXgafv :: !(Maybe Text)
75+ , _aslUploadProtocol :: !(Maybe Text)
76+ , _aslPp :: !Bool
77+ , _aslAccessToken :: !(Maybe Text)
78+ , _aslUploadType :: !(Maybe Text)
79+ , _aslBearerToken :: !(Maybe Text)
80+ , _aslAppsId :: !Text
81+ , _aslPageToken :: !(Maybe Text)
82+ , _aslPageSize :: !(Maybe (Textual Int32))
83+ , _aslCallback :: !(Maybe Text)
84+ } deriving (Eq,Show,Data,Typeable,Generic)
85+
86+-- | Creates a value of 'AppsServicesList' with the minimum fields required to make a request.
87+--
88+-- Use one of the following lenses to modify other fields as desired:
89+--
90+-- * 'aslXgafv'
91+--
92+-- * 'aslUploadProtocol'
93+--
94+-- * 'aslPp'
95+--
96+-- * 'aslAccessToken'
97+--
98+-- * 'aslUploadType'
99+--
100+-- * 'aslBearerToken'
101+--
102+-- * 'aslAppsId'
103+--
104+-- * 'aslPageToken'
105+--
106+-- * 'aslPageSize'
107+--
108+-- * 'aslCallback'
109+appsServicesList
110+ :: Text -- ^ 'aslAppsId'
111+ -> AppsServicesList
112+appsServicesList pAslAppsId_ =
113+ AppsServicesList
114+ { _aslXgafv = Nothing
115+ , _aslUploadProtocol = Nothing
116+ , _aslPp = True
117+ , _aslAccessToken = Nothing
118+ , _aslUploadType = Nothing
119+ , _aslBearerToken = Nothing
120+ , _aslAppsId = pAslAppsId_
121+ , _aslPageToken = Nothing
122+ , _aslPageSize = Nothing
123+ , _aslCallback = Nothing
124+ }
125+
126+-- | V1 error format.
127+aslXgafv :: Lens' AppsServicesList (Maybe Text)
128+aslXgafv = lens _aslXgafv (\ s a -> s{_aslXgafv = a})
129+
130+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
131+aslUploadProtocol :: Lens' AppsServicesList (Maybe Text)
132+aslUploadProtocol
133+ = lens _aslUploadProtocol
134+ (\ s a -> s{_aslUploadProtocol = a})
135+
136+-- | Pretty-print response.
137+aslPp :: Lens' AppsServicesList Bool
138+aslPp = lens _aslPp (\ s a -> s{_aslPp = a})
139+
140+-- | OAuth access token.
141+aslAccessToken :: Lens' AppsServicesList (Maybe Text)
142+aslAccessToken
143+ = lens _aslAccessToken
144+ (\ s a -> s{_aslAccessToken = a})
145+
146+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
147+aslUploadType :: Lens' AppsServicesList (Maybe Text)
148+aslUploadType
149+ = lens _aslUploadType
150+ (\ s a -> s{_aslUploadType = a})
151+
152+-- | OAuth bearer token.
153+aslBearerToken :: Lens' AppsServicesList (Maybe Text)
154+aslBearerToken
155+ = lens _aslBearerToken
156+ (\ s a -> s{_aslBearerToken = a})
157+
158+-- | Part of \`name\`. Name of the resource requested. For example:
159+-- \"apps\/myapp\".
160+aslAppsId :: Lens' AppsServicesList Text
161+aslAppsId
162+ = lens _aslAppsId (\ s a -> s{_aslAppsId = a})
163+
164+-- | Continuation token for fetching the next page of results.
165+aslPageToken :: Lens' AppsServicesList (Maybe Text)
166+aslPageToken
167+ = lens _aslPageToken (\ s a -> s{_aslPageToken = a})
168+
169+-- | Maximum results to return per page.
170+aslPageSize :: Lens' AppsServicesList (Maybe Int32)
171+aslPageSize
172+ = lens _aslPageSize (\ s a -> s{_aslPageSize = a}) .
173+ mapping _Coerce
174+
175+-- | JSONP
176+aslCallback :: Lens' AppsServicesList (Maybe Text)
177+aslCallback
178+ = lens _aslCallback (\ s a -> s{_aslCallback = a})
179+
180+instance GoogleRequest AppsServicesList where
181+ type Rs AppsServicesList = ListServicesResponse
182+ requestClient AppsServicesList{..}
183+ = go _aslAppsId _aslXgafv _aslUploadProtocol
184+ (Just _aslPp)
185+ _aslAccessToken
186+ _aslUploadType
187+ _aslBearerToken
188+ _aslPageToken
189+ _aslPageSize
190+ _aslCallback
191+ (Just AltJSON)
192+ appEngineService
193+ where go
194+ = buildClient
195+ (Proxy :: Proxy AppsServicesListResource)
196+ mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Services/Patch.hsnew file+223
@@ -0,0 +1,223 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AppEngine.Apps.Services.Patch
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Updates the configuration of the specified service.
24+--
25+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference> for @appengine.apps.services.patch@.
26+module Network.Google.Resource.AppEngine.Apps.Services.Patch
27+ (
28+ -- * REST Resource
29+ AppsServicesPatchResource
30+
31+ -- * Creating a Request
32+ , appsServicesPatch
33+ , AppsServicesPatch
34+
35+ -- * Request Lenses
36+ , aspXgafv
37+ , aspUploadProtocol
38+ , aspPp
39+ , aspAccessToken
40+ , aspUploadType
41+ , aspPayload
42+ , aspMigrateTraffic
43+ , aspMask
44+ , aspBearerToken
45+ , aspAppsId
46+ , aspServicesId
47+ , aspCallback
48+ ) where
49+
50+import Network.Google.AppEngine.Types
51+import Network.Google.Prelude
52+
53+-- | A resource alias for @appengine.apps.services.patch@ method which the
54+-- 'AppsServicesPatch' request conforms to.
55+type AppsServicesPatchResource =
56+ "v1beta5" :>
57+ "apps" :>
58+ Capture "appsId" Text :>
59+ "services" :>
60+ Capture "servicesId" Text :>
61+ QueryParam "$.xgafv" Text :>
62+ QueryParam "upload_protocol" Text :>
63+ QueryParam "pp" Bool :>
64+ QueryParam "access_token" Text :>
65+ QueryParam "uploadType" Text :>
66+ QueryParam "migrateTraffic" Bool :>
67+ QueryParam "mask" Text :>
68+ QueryParam "bearer_token" Text :>
69+ QueryParam "callback" Text :>
70+ QueryParam "alt" AltJSON :>
71+ ReqBody '[JSON] Service :>
72+ Patch '[JSON] Operation
73+
74+-- | Updates the configuration of the specified service.
75+--
76+-- /See:/ 'appsServicesPatch' smart constructor.
77+data AppsServicesPatch = AppsServicesPatch
78+ { _aspXgafv :: !(Maybe Text)
79+ , _aspUploadProtocol :: !(Maybe Text)
80+ , _aspPp :: !Bool
81+ , _aspAccessToken :: !(Maybe Text)
82+ , _aspUploadType :: !(Maybe Text)
83+ , _aspPayload :: !Service
84+ , _aspMigrateTraffic :: !(Maybe Bool)
85+ , _aspMask :: !(Maybe Text)
86+ , _aspBearerToken :: !(Maybe Text)
87+ , _aspAppsId :: !Text
88+ , _aspServicesId :: !Text
89+ , _aspCallback :: !(Maybe Text)
90+ } deriving (Eq,Show,Data,Typeable,Generic)
91+
92+-- | Creates a value of 'AppsServicesPatch' with the minimum fields required to make a request.
93+--
94+-- Use one of the following lenses to modify other fields as desired:
95+--
96+-- * 'aspXgafv'
97+--
98+-- * 'aspUploadProtocol'
99+--
100+-- * 'aspPp'
101+--
102+-- * 'aspAccessToken'
103+--
104+-- * 'aspUploadType'
105+--
106+-- * 'aspPayload'
107+--
108+-- * 'aspMigrateTraffic'
109+--
110+-- * 'aspMask'
111+--
112+-- * 'aspBearerToken'
113+--
114+-- * 'aspAppsId'
115+--
116+-- * 'aspServicesId'
117+--
118+-- * 'aspCallback'
119+appsServicesPatch
120+ :: Service -- ^ 'aspPayload'
121+ -> Text -- ^ 'aspAppsId'
122+ -> Text -- ^ 'aspServicesId'
123+ -> AppsServicesPatch
124+appsServicesPatch pAspPayload_ pAspAppsId_ pAspServicesId_ =
125+ AppsServicesPatch
126+ { _aspXgafv = Nothing
127+ , _aspUploadProtocol = Nothing
128+ , _aspPp = True
129+ , _aspAccessToken = Nothing
130+ , _aspUploadType = Nothing
131+ , _aspPayload = pAspPayload_
132+ , _aspMigrateTraffic = Nothing
133+ , _aspMask = Nothing
134+ , _aspBearerToken = Nothing
135+ , _aspAppsId = pAspAppsId_
136+ , _aspServicesId = pAspServicesId_
137+ , _aspCallback = Nothing
138+ }
139+
140+-- | V1 error format.
141+aspXgafv :: Lens' AppsServicesPatch (Maybe Text)
142+aspXgafv = lens _aspXgafv (\ s a -> s{_aspXgafv = a})
143+
144+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
145+aspUploadProtocol :: Lens' AppsServicesPatch (Maybe Text)
146+aspUploadProtocol
147+ = lens _aspUploadProtocol
148+ (\ s a -> s{_aspUploadProtocol = a})
149+
150+-- | Pretty-print response.
151+aspPp :: Lens' AppsServicesPatch Bool
152+aspPp = lens _aspPp (\ s a -> s{_aspPp = a})
153+
154+-- | OAuth access token.
155+aspAccessToken :: Lens' AppsServicesPatch (Maybe Text)
156+aspAccessToken
157+ = lens _aspAccessToken
158+ (\ s a -> s{_aspAccessToken = a})
159+
160+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
161+aspUploadType :: Lens' AppsServicesPatch (Maybe Text)
162+aspUploadType
163+ = lens _aspUploadType
164+ (\ s a -> s{_aspUploadType = a})
165+
166+-- | Multipart request metadata.
167+aspPayload :: Lens' AppsServicesPatch Service
168+aspPayload
169+ = lens _aspPayload (\ s a -> s{_aspPayload = a})
170+
171+-- | Whether to use Traffic Migration to shift traffic gradually. Traffic can
172+-- only be migrated from a single version to another single version.
173+aspMigrateTraffic :: Lens' AppsServicesPatch (Maybe Bool)
174+aspMigrateTraffic
175+ = lens _aspMigrateTraffic
176+ (\ s a -> s{_aspMigrateTraffic = a})
177+
178+-- | Standard field mask for the set of fields to be updated.
179+aspMask :: Lens' AppsServicesPatch (Maybe Text)
180+aspMask = lens _aspMask (\ s a -> s{_aspMask = a})
181+
182+-- | OAuth bearer token.
183+aspBearerToken :: Lens' AppsServicesPatch (Maybe Text)
184+aspBearerToken
185+ = lens _aspBearerToken
186+ (\ s a -> s{_aspBearerToken = a})
187+
188+-- | Part of \`name\`. Name of the resource to update. For example:
189+-- \"apps\/myapp\/services\/default\".
190+aspAppsId :: Lens' AppsServicesPatch Text
191+aspAppsId
192+ = lens _aspAppsId (\ s a -> s{_aspAppsId = a})
193+
194+-- | Part of \`name\`. See documentation of \`appsId\`.
195+aspServicesId :: Lens' AppsServicesPatch Text
196+aspServicesId
197+ = lens _aspServicesId
198+ (\ s a -> s{_aspServicesId = a})
199+
200+-- | JSONP
201+aspCallback :: Lens' AppsServicesPatch (Maybe Text)
202+aspCallback
203+ = lens _aspCallback (\ s a -> s{_aspCallback = a})
204+
205+instance GoogleRequest AppsServicesPatch where
206+ type Rs AppsServicesPatch = Operation
207+ requestClient AppsServicesPatch{..}
208+ = go _aspAppsId _aspServicesId _aspXgafv
209+ _aspUploadProtocol
210+ (Just _aspPp)
211+ _aspAccessToken
212+ _aspUploadType
213+ _aspMigrateTraffic
214+ _aspMask
215+ _aspBearerToken
216+ _aspCallback
217+ (Just AltJSON)
218+ _aspPayload
219+ appEngineService
220+ where go
221+ = buildClient
222+ (Proxy :: Proxy AppsServicesPatchResource)
223+ mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Services/Versions/Create.hsnew file+201
@@ -0,0 +1,201 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AppEngine.Apps.Services.Versions.Create
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Deploys new code and resource files to a version.
24+--
25+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference> for @appengine.apps.services.versions.create@.
26+module Network.Google.Resource.AppEngine.Apps.Services.Versions.Create
27+ (
28+ -- * REST Resource
29+ AppsServicesVersionsCreateResource
30+
31+ -- * Creating a Request
32+ , appsServicesVersionsCreate
33+ , AppsServicesVersionsCreate
34+
35+ -- * Request Lenses
36+ , asvcXgafv
37+ , asvcUploadProtocol
38+ , asvcPp
39+ , asvcAccessToken
40+ , asvcUploadType
41+ , asvcPayload
42+ , asvcBearerToken
43+ , asvcAppsId
44+ , asvcServicesId
45+ , asvcCallback
46+ ) where
47+
48+import Network.Google.AppEngine.Types
49+import Network.Google.Prelude
50+
51+-- | A resource alias for @appengine.apps.services.versions.create@ method which the
52+-- 'AppsServicesVersionsCreate' request conforms to.
53+type AppsServicesVersionsCreateResource =
54+ "v1beta5" :>
55+ "apps" :>
56+ Capture "appsId" Text :>
57+ "services" :>
58+ Capture "servicesId" Text :>
59+ "versions" :>
60+ QueryParam "$.xgafv" Text :>
61+ QueryParam "upload_protocol" Text :>
62+ QueryParam "pp" Bool :>
63+ QueryParam "access_token" Text :>
64+ QueryParam "uploadType" Text :>
65+ QueryParam "bearer_token" Text :>
66+ QueryParam "callback" Text :>
67+ QueryParam "alt" AltJSON :>
68+ ReqBody '[JSON] Version :>
69+ Post '[JSON] Operation
70+
71+-- | Deploys new code and resource files to a version.
72+--
73+-- /See:/ 'appsServicesVersionsCreate' smart constructor.
74+data AppsServicesVersionsCreate = AppsServicesVersionsCreate
75+ { _asvcXgafv :: !(Maybe Text)
76+ , _asvcUploadProtocol :: !(Maybe Text)
77+ , _asvcPp :: !Bool
78+ , _asvcAccessToken :: !(Maybe Text)
79+ , _asvcUploadType :: !(Maybe Text)
80+ , _asvcPayload :: !Version
81+ , _asvcBearerToken :: !(Maybe Text)
82+ , _asvcAppsId :: !Text
83+ , _asvcServicesId :: !Text
84+ , _asvcCallback :: !(Maybe Text)
85+ } deriving (Eq,Show,Data,Typeable,Generic)
86+
87+-- | Creates a value of 'AppsServicesVersionsCreate' with the minimum fields required to make a request.
88+--
89+-- Use one of the following lenses to modify other fields as desired:
90+--
91+-- * 'asvcXgafv'
92+--
93+-- * 'asvcUploadProtocol'
94+--
95+-- * 'asvcPp'
96+--
97+-- * 'asvcAccessToken'
98+--
99+-- * 'asvcUploadType'
100+--
101+-- * 'asvcPayload'
102+--
103+-- * 'asvcBearerToken'
104+--
105+-- * 'asvcAppsId'
106+--
107+-- * 'asvcServicesId'
108+--
109+-- * 'asvcCallback'
110+appsServicesVersionsCreate
111+ :: Version -- ^ 'asvcPayload'
112+ -> Text -- ^ 'asvcAppsId'
113+ -> Text -- ^ 'asvcServicesId'
114+ -> AppsServicesVersionsCreate
115+appsServicesVersionsCreate pAsvcPayload_ pAsvcAppsId_ pAsvcServicesId_ =
116+ AppsServicesVersionsCreate
117+ { _asvcXgafv = Nothing
118+ , _asvcUploadProtocol = Nothing
119+ , _asvcPp = True
120+ , _asvcAccessToken = Nothing
121+ , _asvcUploadType = Nothing
122+ , _asvcPayload = pAsvcPayload_
123+ , _asvcBearerToken = Nothing
124+ , _asvcAppsId = pAsvcAppsId_
125+ , _asvcServicesId = pAsvcServicesId_
126+ , _asvcCallback = Nothing
127+ }
128+
129+-- | V1 error format.
130+asvcXgafv :: Lens' AppsServicesVersionsCreate (Maybe Text)
131+asvcXgafv
132+ = lens _asvcXgafv (\ s a -> s{_asvcXgafv = a})
133+
134+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
135+asvcUploadProtocol :: Lens' AppsServicesVersionsCreate (Maybe Text)
136+asvcUploadProtocol
137+ = lens _asvcUploadProtocol
138+ (\ s a -> s{_asvcUploadProtocol = a})
139+
140+-- | Pretty-print response.
141+asvcPp :: Lens' AppsServicesVersionsCreate Bool
142+asvcPp = lens _asvcPp (\ s a -> s{_asvcPp = a})
143+
144+-- | OAuth access token.
145+asvcAccessToken :: Lens' AppsServicesVersionsCreate (Maybe Text)
146+asvcAccessToken
147+ = lens _asvcAccessToken
148+ (\ s a -> s{_asvcAccessToken = a})
149+
150+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
151+asvcUploadType :: Lens' AppsServicesVersionsCreate (Maybe Text)
152+asvcUploadType
153+ = lens _asvcUploadType
154+ (\ s a -> s{_asvcUploadType = a})
155+
156+-- | Multipart request metadata.
157+asvcPayload :: Lens' AppsServicesVersionsCreate Version
158+asvcPayload
159+ = lens _asvcPayload (\ s a -> s{_asvcPayload = a})
160+
161+-- | OAuth bearer token.
162+asvcBearerToken :: Lens' AppsServicesVersionsCreate (Maybe Text)
163+asvcBearerToken
164+ = lens _asvcBearerToken
165+ (\ s a -> s{_asvcBearerToken = a})
166+
167+-- | Part of \`name\`. Name of the resource to update. For example:
168+-- \"apps\/myapp\/services\/default\".
169+asvcAppsId :: Lens' AppsServicesVersionsCreate Text
170+asvcAppsId
171+ = lens _asvcAppsId (\ s a -> s{_asvcAppsId = a})
172+
173+-- | Part of \`name\`. See documentation of \`appsId\`.
174+asvcServicesId :: Lens' AppsServicesVersionsCreate Text
175+asvcServicesId
176+ = lens _asvcServicesId
177+ (\ s a -> s{_asvcServicesId = a})
178+
179+-- | JSONP
180+asvcCallback :: Lens' AppsServicesVersionsCreate (Maybe Text)
181+asvcCallback
182+ = lens _asvcCallback (\ s a -> s{_asvcCallback = a})
183+
184+instance GoogleRequest AppsServicesVersionsCreate
185+ where
186+ type Rs AppsServicesVersionsCreate = Operation
187+ requestClient AppsServicesVersionsCreate{..}
188+ = go _asvcAppsId _asvcServicesId _asvcXgafv
189+ _asvcUploadProtocol
190+ (Just _asvcPp)
191+ _asvcAccessToken
192+ _asvcUploadType
193+ _asvcBearerToken
194+ _asvcCallback
195+ (Just AltJSON)
196+ _asvcPayload
197+ appEngineService
198+ where go
199+ = buildClient
200+ (Proxy :: Proxy AppsServicesVersionsCreateResource)
201+ mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Services/Versions/Delete.hsnew file+202
@@ -0,0 +1,202 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AppEngine.Apps.Services.Versions.Delete
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Deletes an existing version.
24+--
25+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference> for @appengine.apps.services.versions.delete@.
26+module Network.Google.Resource.AppEngine.Apps.Services.Versions.Delete
27+ (
28+ -- * REST Resource
29+ AppsServicesVersionsDeleteResource
30+
31+ -- * Creating a Request
32+ , appsServicesVersionsDelete
33+ , AppsServicesVersionsDelete
34+
35+ -- * Request Lenses
36+ , asvdXgafv
37+ , asvdUploadProtocol
38+ , asvdPp
39+ , asvdAccessToken
40+ , asvdUploadType
41+ , asvdVersionsId
42+ , asvdBearerToken
43+ , asvdAppsId
44+ , asvdServicesId
45+ , asvdCallback
46+ ) where
47+
48+import Network.Google.AppEngine.Types
49+import Network.Google.Prelude
50+
51+-- | A resource alias for @appengine.apps.services.versions.delete@ method which the
52+-- 'AppsServicesVersionsDelete' request conforms to.
53+type AppsServicesVersionsDeleteResource =
54+ "v1beta5" :>
55+ "apps" :>
56+ Capture "appsId" Text :>
57+ "services" :>
58+ Capture "servicesId" Text :>
59+ "versions" :>
60+ Capture "versionsId" Text :>
61+ QueryParam "$.xgafv" Text :>
62+ QueryParam "upload_protocol" Text :>
63+ QueryParam "pp" Bool :>
64+ QueryParam "access_token" Text :>
65+ QueryParam "uploadType" Text :>
66+ QueryParam "bearer_token" Text :>
67+ QueryParam "callback" Text :>
68+ QueryParam "alt" AltJSON :>
69+ Delete '[JSON] Operation
70+
71+-- | Deletes an existing version.
72+--
73+-- /See:/ 'appsServicesVersionsDelete' smart constructor.
74+data AppsServicesVersionsDelete = AppsServicesVersionsDelete
75+ { _asvdXgafv :: !(Maybe Text)
76+ , _asvdUploadProtocol :: !(Maybe Text)
77+ , _asvdPp :: !Bool
78+ , _asvdAccessToken :: !(Maybe Text)
79+ , _asvdUploadType :: !(Maybe Text)
80+ , _asvdVersionsId :: !Text
81+ , _asvdBearerToken :: !(Maybe Text)
82+ , _asvdAppsId :: !Text
83+ , _asvdServicesId :: !Text
84+ , _asvdCallback :: !(Maybe Text)
85+ } deriving (Eq,Show,Data,Typeable,Generic)
86+
87+-- | Creates a value of 'AppsServicesVersionsDelete' with the minimum fields required to make a request.
88+--
89+-- Use one of the following lenses to modify other fields as desired:
90+--
91+-- * 'asvdXgafv'
92+--
93+-- * 'asvdUploadProtocol'
94+--
95+-- * 'asvdPp'
96+--
97+-- * 'asvdAccessToken'
98+--
99+-- * 'asvdUploadType'
100+--
101+-- * 'asvdVersionsId'
102+--
103+-- * 'asvdBearerToken'
104+--
105+-- * 'asvdAppsId'
106+--
107+-- * 'asvdServicesId'
108+--
109+-- * 'asvdCallback'
110+appsServicesVersionsDelete
111+ :: Text -- ^ 'asvdVersionsId'
112+ -> Text -- ^ 'asvdAppsId'
113+ -> Text -- ^ 'asvdServicesId'
114+ -> AppsServicesVersionsDelete
115+appsServicesVersionsDelete pAsvdVersionsId_ pAsvdAppsId_ pAsvdServicesId_ =
116+ AppsServicesVersionsDelete
117+ { _asvdXgafv = Nothing
118+ , _asvdUploadProtocol = Nothing
119+ , _asvdPp = True
120+ , _asvdAccessToken = Nothing
121+ , _asvdUploadType = Nothing
122+ , _asvdVersionsId = pAsvdVersionsId_
123+ , _asvdBearerToken = Nothing
124+ , _asvdAppsId = pAsvdAppsId_
125+ , _asvdServicesId = pAsvdServicesId_
126+ , _asvdCallback = Nothing
127+ }
128+
129+-- | V1 error format.
130+asvdXgafv :: Lens' AppsServicesVersionsDelete (Maybe Text)
131+asvdXgafv
132+ = lens _asvdXgafv (\ s a -> s{_asvdXgafv = a})
133+
134+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
135+asvdUploadProtocol :: Lens' AppsServicesVersionsDelete (Maybe Text)
136+asvdUploadProtocol
137+ = lens _asvdUploadProtocol
138+ (\ s a -> s{_asvdUploadProtocol = a})
139+
140+-- | Pretty-print response.
141+asvdPp :: Lens' AppsServicesVersionsDelete Bool
142+asvdPp = lens _asvdPp (\ s a -> s{_asvdPp = a})
143+
144+-- | OAuth access token.
145+asvdAccessToken :: Lens' AppsServicesVersionsDelete (Maybe Text)
146+asvdAccessToken
147+ = lens _asvdAccessToken
148+ (\ s a -> s{_asvdAccessToken = a})
149+
150+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
151+asvdUploadType :: Lens' AppsServicesVersionsDelete (Maybe Text)
152+asvdUploadType
153+ = lens _asvdUploadType
154+ (\ s a -> s{_asvdUploadType = a})
155+
156+-- | Part of \`name\`. See documentation of \`appsId\`.
157+asvdVersionsId :: Lens' AppsServicesVersionsDelete Text
158+asvdVersionsId
159+ = lens _asvdVersionsId
160+ (\ s a -> s{_asvdVersionsId = a})
161+
162+-- | OAuth bearer token.
163+asvdBearerToken :: Lens' AppsServicesVersionsDelete (Maybe Text)
164+asvdBearerToken
165+ = lens _asvdBearerToken
166+ (\ s a -> s{_asvdBearerToken = a})
167+
168+-- | Part of \`name\`. Name of the resource requested. For example:
169+-- \"apps\/myapp\/services\/default\/versions\/v1\".
170+asvdAppsId :: Lens' AppsServicesVersionsDelete Text
171+asvdAppsId
172+ = lens _asvdAppsId (\ s a -> s{_asvdAppsId = a})
173+
174+-- | Part of \`name\`. See documentation of \`appsId\`.
175+asvdServicesId :: Lens' AppsServicesVersionsDelete Text
176+asvdServicesId
177+ = lens _asvdServicesId
178+ (\ s a -> s{_asvdServicesId = a})
179+
180+-- | JSONP
181+asvdCallback :: Lens' AppsServicesVersionsDelete (Maybe Text)
182+asvdCallback
183+ = lens _asvdCallback (\ s a -> s{_asvdCallback = a})
184+
185+instance GoogleRequest AppsServicesVersionsDelete
186+ where
187+ type Rs AppsServicesVersionsDelete = Operation
188+ requestClient AppsServicesVersionsDelete{..}
189+ = go _asvdAppsId _asvdServicesId _asvdVersionsId
190+ _asvdXgafv
191+ _asvdUploadProtocol
192+ (Just _asvdPp)
193+ _asvdAccessToken
194+ _asvdUploadType
195+ _asvdBearerToken
196+ _asvdCallback
197+ (Just AltJSON)
198+ appEngineService
199+ where go
200+ = buildClient
201+ (Proxy :: Proxy AppsServicesVersionsDeleteResource)
202+ mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Services/Versions/Get.hsnew file+212
@@ -0,0 +1,212 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AppEngine.Apps.Services.Versions.Get
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Gets application deployment information.
24+--
25+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference> for @appengine.apps.services.versions.get@.
26+module Network.Google.Resource.AppEngine.Apps.Services.Versions.Get
27+ (
28+ -- * REST Resource
29+ AppsServicesVersionsGetResource
30+
31+ -- * Creating a Request
32+ , appsServicesVersionsGet
33+ , AppsServicesVersionsGet
34+
35+ -- * Request Lenses
36+ , asvgXgafv
37+ , asvgUploadProtocol
38+ , asvgPp
39+ , asvgAccessToken
40+ , asvgUploadType
41+ , asvgVersionsId
42+ , asvgBearerToken
43+ , asvgAppsId
44+ , asvgView
45+ , asvgServicesId
46+ , asvgCallback
47+ ) where
48+
49+import Network.Google.AppEngine.Types
50+import Network.Google.Prelude
51+
52+-- | A resource alias for @appengine.apps.services.versions.get@ method which the
53+-- 'AppsServicesVersionsGet' request conforms to.
54+type AppsServicesVersionsGetResource =
55+ "v1beta5" :>
56+ "apps" :>
57+ Capture "appsId" Text :>
58+ "services" :>
59+ Capture "servicesId" Text :>
60+ "versions" :>
61+ Capture "versionsId" Text :>
62+ QueryParam "$.xgafv" Text :>
63+ QueryParam "upload_protocol" Text :>
64+ QueryParam "pp" Bool :>
65+ QueryParam "access_token" Text :>
66+ QueryParam "uploadType" Text :>
67+ QueryParam "bearer_token" Text :>
68+ QueryParam "view" Text :>
69+ QueryParam "callback" Text :>
70+ QueryParam "alt" AltJSON :>
71+ Get '[JSON] Version
72+
73+-- | Gets application deployment information.
74+--
75+-- /See:/ 'appsServicesVersionsGet' smart constructor.
76+data AppsServicesVersionsGet = AppsServicesVersionsGet
77+ { _asvgXgafv :: !(Maybe Text)
78+ , _asvgUploadProtocol :: !(Maybe Text)
79+ , _asvgPp :: !Bool
80+ , _asvgAccessToken :: !(Maybe Text)
81+ , _asvgUploadType :: !(Maybe Text)
82+ , _asvgVersionsId :: !Text
83+ , _asvgBearerToken :: !(Maybe Text)
84+ , _asvgAppsId :: !Text
85+ , _asvgView :: !(Maybe Text)
86+ , _asvgServicesId :: !Text
87+ , _asvgCallback :: !(Maybe Text)
88+ } deriving (Eq,Show,Data,Typeable,Generic)
89+
90+-- | Creates a value of 'AppsServicesVersionsGet' with the minimum fields required to make a request.
91+--
92+-- Use one of the following lenses to modify other fields as desired:
93+--
94+-- * 'asvgXgafv'
95+--
96+-- * 'asvgUploadProtocol'
97+--
98+-- * 'asvgPp'
99+--
100+-- * 'asvgAccessToken'
101+--
102+-- * 'asvgUploadType'
103+--
104+-- * 'asvgVersionsId'
105+--
106+-- * 'asvgBearerToken'
107+--
108+-- * 'asvgAppsId'
109+--
110+-- * 'asvgView'
111+--
112+-- * 'asvgServicesId'
113+--
114+-- * 'asvgCallback'
115+appsServicesVersionsGet
116+ :: Text -- ^ 'asvgVersionsId'
117+ -> Text -- ^ 'asvgAppsId'
118+ -> Text -- ^ 'asvgServicesId'
119+ -> AppsServicesVersionsGet
120+appsServicesVersionsGet pAsvgVersionsId_ pAsvgAppsId_ pAsvgServicesId_ =
121+ AppsServicesVersionsGet
122+ { _asvgXgafv = Nothing
123+ , _asvgUploadProtocol = Nothing
124+ , _asvgPp = True
125+ , _asvgAccessToken = Nothing
126+ , _asvgUploadType = Nothing
127+ , _asvgVersionsId = pAsvgVersionsId_
128+ , _asvgBearerToken = Nothing
129+ , _asvgAppsId = pAsvgAppsId_
130+ , _asvgView = Nothing
131+ , _asvgServicesId = pAsvgServicesId_
132+ , _asvgCallback = Nothing
133+ }
134+
135+-- | V1 error format.
136+asvgXgafv :: Lens' AppsServicesVersionsGet (Maybe Text)
137+asvgXgafv
138+ = lens _asvgXgafv (\ s a -> s{_asvgXgafv = a})
139+
140+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
141+asvgUploadProtocol :: Lens' AppsServicesVersionsGet (Maybe Text)
142+asvgUploadProtocol
143+ = lens _asvgUploadProtocol
144+ (\ s a -> s{_asvgUploadProtocol = a})
145+
146+-- | Pretty-print response.
147+asvgPp :: Lens' AppsServicesVersionsGet Bool
148+asvgPp = lens _asvgPp (\ s a -> s{_asvgPp = a})
149+
150+-- | OAuth access token.
151+asvgAccessToken :: Lens' AppsServicesVersionsGet (Maybe Text)
152+asvgAccessToken
153+ = lens _asvgAccessToken
154+ (\ s a -> s{_asvgAccessToken = a})
155+
156+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
157+asvgUploadType :: Lens' AppsServicesVersionsGet (Maybe Text)
158+asvgUploadType
159+ = lens _asvgUploadType
160+ (\ s a -> s{_asvgUploadType = a})
161+
162+-- | Part of \`name\`. See documentation of \`appsId\`.
163+asvgVersionsId :: Lens' AppsServicesVersionsGet Text
164+asvgVersionsId
165+ = lens _asvgVersionsId
166+ (\ s a -> s{_asvgVersionsId = a})
167+
168+-- | OAuth bearer token.
169+asvgBearerToken :: Lens' AppsServicesVersionsGet (Maybe Text)
170+asvgBearerToken
171+ = lens _asvgBearerToken
172+ (\ s a -> s{_asvgBearerToken = a})
173+
174+-- | Part of \`name\`. Name of the resource requested. For example:
175+-- \"apps\/myapp\/services\/default\/versions\/v1\".
176+asvgAppsId :: Lens' AppsServicesVersionsGet Text
177+asvgAppsId
178+ = lens _asvgAppsId (\ s a -> s{_asvgAppsId = a})
179+
180+-- | Controls the set of fields returned in the \`Get\` response.
181+asvgView :: Lens' AppsServicesVersionsGet (Maybe Text)
182+asvgView = lens _asvgView (\ s a -> s{_asvgView = a})
183+
184+-- | Part of \`name\`. See documentation of \`appsId\`.
185+asvgServicesId :: Lens' AppsServicesVersionsGet Text
186+asvgServicesId
187+ = lens _asvgServicesId
188+ (\ s a -> s{_asvgServicesId = a})
189+
190+-- | JSONP
191+asvgCallback :: Lens' AppsServicesVersionsGet (Maybe Text)
192+asvgCallback
193+ = lens _asvgCallback (\ s a -> s{_asvgCallback = a})
194+
195+instance GoogleRequest AppsServicesVersionsGet where
196+ type Rs AppsServicesVersionsGet = Version
197+ requestClient AppsServicesVersionsGet{..}
198+ = go _asvgAppsId _asvgServicesId _asvgVersionsId
199+ _asvgXgafv
200+ _asvgUploadProtocol
201+ (Just _asvgPp)
202+ _asvgAccessToken
203+ _asvgUploadType
204+ _asvgBearerToken
205+ _asvgView
206+ _asvgCallback
207+ (Just AltJSON)
208+ appEngineService
209+ where go
210+ = buildClient
211+ (Proxy :: Proxy AppsServicesVersionsGetResource)
212+ mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Services/Versions/List.hsnew file+225
@@ -0,0 +1,225 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AppEngine.Apps.Services.Versions.List
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Lists the versions of a service.
24+--
25+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference> for @appengine.apps.services.versions.list@.
26+module Network.Google.Resource.AppEngine.Apps.Services.Versions.List
27+ (
28+ -- * REST Resource
29+ AppsServicesVersionsListResource
30+
31+ -- * Creating a Request
32+ , appsServicesVersionsList
33+ , AppsServicesVersionsList
34+
35+ -- * Request Lenses
36+ , asvlXgafv
37+ , asvlUploadProtocol
38+ , asvlPp
39+ , asvlAccessToken
40+ , asvlUploadType
41+ , asvlBearerToken
42+ , asvlAppsId
43+ , asvlView
44+ , asvlPageToken
45+ , asvlServicesId
46+ , asvlPageSize
47+ , asvlCallback
48+ ) where
49+
50+import Network.Google.AppEngine.Types
51+import Network.Google.Prelude
52+
53+-- | A resource alias for @appengine.apps.services.versions.list@ method which the
54+-- 'AppsServicesVersionsList' request conforms to.
55+type AppsServicesVersionsListResource =
56+ "v1beta5" :>
57+ "apps" :>
58+ Capture "appsId" Text :>
59+ "services" :>
60+ Capture "servicesId" Text :>
61+ "versions" :>
62+ QueryParam "$.xgafv" Text :>
63+ QueryParam "upload_protocol" Text :>
64+ QueryParam "pp" Bool :>
65+ QueryParam "access_token" Text :>
66+ QueryParam "uploadType" Text :>
67+ QueryParam "bearer_token" Text :>
68+ QueryParam "view" Text :>
69+ QueryParam "pageToken" Text :>
70+ QueryParam "pageSize" (Textual Int32) :>
71+ QueryParam "callback" Text :>
72+ QueryParam "alt" AltJSON :>
73+ Get '[JSON] ListVersionsResponse
74+
75+-- | Lists the versions of a service.
76+--
77+-- /See:/ 'appsServicesVersionsList' smart constructor.
78+data AppsServicesVersionsList = AppsServicesVersionsList
79+ { _asvlXgafv :: !(Maybe Text)
80+ , _asvlUploadProtocol :: !(Maybe Text)
81+ , _asvlPp :: !Bool
82+ , _asvlAccessToken :: !(Maybe Text)
83+ , _asvlUploadType :: !(Maybe Text)
84+ , _asvlBearerToken :: !(Maybe Text)
85+ , _asvlAppsId :: !Text
86+ , _asvlView :: !(Maybe Text)
87+ , _asvlPageToken :: !(Maybe Text)
88+ , _asvlServicesId :: !Text
89+ , _asvlPageSize :: !(Maybe (Textual Int32))
90+ , _asvlCallback :: !(Maybe Text)
91+ } deriving (Eq,Show,Data,Typeable,Generic)
92+
93+-- | Creates a value of 'AppsServicesVersionsList' with the minimum fields required to make a request.
94+--
95+-- Use one of the following lenses to modify other fields as desired:
96+--
97+-- * 'asvlXgafv'
98+--
99+-- * 'asvlUploadProtocol'
100+--
101+-- * 'asvlPp'
102+--
103+-- * 'asvlAccessToken'
104+--
105+-- * 'asvlUploadType'
106+--
107+-- * 'asvlBearerToken'
108+--
109+-- * 'asvlAppsId'
110+--
111+-- * 'asvlView'
112+--
113+-- * 'asvlPageToken'
114+--
115+-- * 'asvlServicesId'
116+--
117+-- * 'asvlPageSize'
118+--
119+-- * 'asvlCallback'
120+appsServicesVersionsList
121+ :: Text -- ^ 'asvlAppsId'
122+ -> Text -- ^ 'asvlServicesId'
123+ -> AppsServicesVersionsList
124+appsServicesVersionsList pAsvlAppsId_ pAsvlServicesId_ =
125+ AppsServicesVersionsList
126+ { _asvlXgafv = Nothing
127+ , _asvlUploadProtocol = Nothing
128+ , _asvlPp = True
129+ , _asvlAccessToken = Nothing
130+ , _asvlUploadType = Nothing
131+ , _asvlBearerToken = Nothing
132+ , _asvlAppsId = pAsvlAppsId_
133+ , _asvlView = Nothing
134+ , _asvlPageToken = Nothing
135+ , _asvlServicesId = pAsvlServicesId_
136+ , _asvlPageSize = Nothing
137+ , _asvlCallback = Nothing
138+ }
139+
140+-- | V1 error format.
141+asvlXgafv :: Lens' AppsServicesVersionsList (Maybe Text)
142+asvlXgafv
143+ = lens _asvlXgafv (\ s a -> s{_asvlXgafv = a})
144+
145+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
146+asvlUploadProtocol :: Lens' AppsServicesVersionsList (Maybe Text)
147+asvlUploadProtocol
148+ = lens _asvlUploadProtocol
149+ (\ s a -> s{_asvlUploadProtocol = a})
150+
151+-- | Pretty-print response.
152+asvlPp :: Lens' AppsServicesVersionsList Bool
153+asvlPp = lens _asvlPp (\ s a -> s{_asvlPp = a})
154+
155+-- | OAuth access token.
156+asvlAccessToken :: Lens' AppsServicesVersionsList (Maybe Text)
157+asvlAccessToken
158+ = lens _asvlAccessToken
159+ (\ s a -> s{_asvlAccessToken = a})
160+
161+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
162+asvlUploadType :: Lens' AppsServicesVersionsList (Maybe Text)
163+asvlUploadType
164+ = lens _asvlUploadType
165+ (\ s a -> s{_asvlUploadType = a})
166+
167+-- | OAuth bearer token.
168+asvlBearerToken :: Lens' AppsServicesVersionsList (Maybe Text)
169+asvlBearerToken
170+ = lens _asvlBearerToken
171+ (\ s a -> s{_asvlBearerToken = a})
172+
173+-- | Part of \`name\`. Name of the resource requested. For example:
174+-- \"apps\/myapp\/services\/default\".
175+asvlAppsId :: Lens' AppsServicesVersionsList Text
176+asvlAppsId
177+ = lens _asvlAppsId (\ s a -> s{_asvlAppsId = a})
178+
179+-- | Controls the set of fields returned in the \`List\` response.
180+asvlView :: Lens' AppsServicesVersionsList (Maybe Text)
181+asvlView = lens _asvlView (\ s a -> s{_asvlView = a})
182+
183+-- | Continuation token for fetching the next page of results.
184+asvlPageToken :: Lens' AppsServicesVersionsList (Maybe Text)
185+asvlPageToken
186+ = lens _asvlPageToken
187+ (\ s a -> s{_asvlPageToken = a})
188+
189+-- | Part of \`name\`. See documentation of \`appsId\`.
190+asvlServicesId :: Lens' AppsServicesVersionsList Text
191+asvlServicesId
192+ = lens _asvlServicesId
193+ (\ s a -> s{_asvlServicesId = a})
194+
195+-- | Maximum results to return per page.
196+asvlPageSize :: Lens' AppsServicesVersionsList (Maybe Int32)
197+asvlPageSize
198+ = lens _asvlPageSize (\ s a -> s{_asvlPageSize = a})
199+ . mapping _Coerce
200+
201+-- | JSONP
202+asvlCallback :: Lens' AppsServicesVersionsList (Maybe Text)
203+asvlCallback
204+ = lens _asvlCallback (\ s a -> s{_asvlCallback = a})
205+
206+instance GoogleRequest AppsServicesVersionsList where
207+ type Rs AppsServicesVersionsList =
208+ ListVersionsResponse
209+ requestClient AppsServicesVersionsList{..}
210+ = go _asvlAppsId _asvlServicesId _asvlXgafv
211+ _asvlUploadProtocol
212+ (Just _asvlPp)
213+ _asvlAccessToken
214+ _asvlUploadType
215+ _asvlBearerToken
216+ _asvlView
217+ _asvlPageToken
218+ _asvlPageSize
219+ _asvlCallback
220+ (Just AltJSON)
221+ appEngineService
222+ where go
223+ = buildClient
224+ (Proxy :: Proxy AppsServicesVersionsListResource)
225+ mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Services/Versions/Patch.hsnew file+226
@@ -0,0 +1,226 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.AppEngine.Apps.Services.Versions.Patch
17+-- Copyright : (c) 2015 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Updates an existing version. Note: UNIMPLEMENTED.
24+--
25+-- /See:/ <https://cloud.google.com/appengine/docs/admin-api/ Google App Engine Admin API Reference> for @appengine.apps.services.versions.patch@.
26+module Network.Google.Resource.AppEngine.Apps.Services.Versions.Patch
27+ (
28+ -- * REST Resource
29+ AppsServicesVersionsPatchResource
30+
31+ -- * Creating a Request
32+ , appsServicesVersionsPatch
33+ , AppsServicesVersionsPatch
34+
35+ -- * Request Lenses
36+ , asvpXgafv
37+ , asvpUploadProtocol
38+ , asvpPp
39+ , asvpAccessToken
40+ , asvpUploadType
41+ , asvpPayload
42+ , asvpVersionsId
43+ , asvpMask
44+ , asvpBearerToken
45+ , asvpAppsId
46+ , asvpServicesId
47+ , asvpCallback
48+ ) where
49+
50+import Network.Google.AppEngine.Types
51+import Network.Google.Prelude
52+
53+-- | A resource alias for @appengine.apps.services.versions.patch@ method which the
54+-- 'AppsServicesVersionsPatch' request conforms to.
55+type AppsServicesVersionsPatchResource =
56+ "v1beta5" :>
57+ "apps" :>
58+ Capture "appsId" Text :>
59+ "services" :>
60+ Capture "servicesId" Text :>
61+ "versions" :>
62+ Capture "versionsId" Text :>
63+ QueryParam "$.xgafv" Text :>
64+ QueryParam "upload_protocol" Text :>
65+ QueryParam "pp" Bool :>
66+ QueryParam "access_token" Text :>
67+ QueryParam "uploadType" Text :>
68+ QueryParam "mask" Text :>
69+ QueryParam "bearer_token" Text :>
70+ QueryParam "callback" Text :>
71+ QueryParam "alt" AltJSON :>
72+ ReqBody '[JSON] Version :>
73+ Patch '[JSON] Operation
74+
75+-- | Updates an existing version. Note: UNIMPLEMENTED.
76+--
77+-- /See:/ 'appsServicesVersionsPatch' smart constructor.
78+data AppsServicesVersionsPatch = AppsServicesVersionsPatch
79+ { _asvpXgafv :: !(Maybe Text)
80+ , _asvpUploadProtocol :: !(Maybe Text)
81+ , _asvpPp :: !Bool
82+ , _asvpAccessToken :: !(Maybe Text)
83+ , _asvpUploadType :: !(Maybe Text)
84+ , _asvpPayload :: !Version
85+ , _asvpVersionsId :: !Text
86+ , _asvpMask :: !(Maybe Text)
87+ , _asvpBearerToken :: !(Maybe Text)
88+ , _asvpAppsId :: !Text
89+ , _asvpServicesId :: !Text
90+ , _asvpCallback :: !(Maybe Text)
91+ } deriving (Eq,Show,Data,Typeable,Generic)
92+
93+-- | Creates a value of 'AppsServicesVersionsPatch' with the minimum fields required to make a request.
94+--
95+-- Use one of the following lenses to modify other fields as desired:
96+--
97+-- * 'asvpXgafv'
98+--
99+-- * 'asvpUploadProtocol'
100+--
101+-- * 'asvpPp'
102+--
103+-- * 'asvpAccessToken'
104+--
105+-- * 'asvpUploadType'
106+--
107+-- * 'asvpPayload'
108+--
109+-- * 'asvpVersionsId'
110+--
111+-- * 'asvpMask'
112+--
113+-- * 'asvpBearerToken'
114+--
115+-- * 'asvpAppsId'
116+--
117+-- * 'asvpServicesId'
118+--
119+-- * 'asvpCallback'
120+appsServicesVersionsPatch
121+ :: Version -- ^ 'asvpPayload'
122+ -> Text -- ^ 'asvpVersionsId'
123+ -> Text -- ^ 'asvpAppsId'
124+ -> Text -- ^ 'asvpServicesId'
125+ -> AppsServicesVersionsPatch
126+appsServicesVersionsPatch pAsvpPayload_ pAsvpVersionsId_ pAsvpAppsId_ pAsvpServicesId_ =
127+ AppsServicesVersionsPatch
128+ { _asvpXgafv = Nothing
129+ , _asvpUploadProtocol = Nothing
130+ , _asvpPp = True
131+ , _asvpAccessToken = Nothing
132+ , _asvpUploadType = Nothing
133+ , _asvpPayload = pAsvpPayload_
134+ , _asvpVersionsId = pAsvpVersionsId_
135+ , _asvpMask = Nothing
136+ , _asvpBearerToken = Nothing
137+ , _asvpAppsId = pAsvpAppsId_
138+ , _asvpServicesId = pAsvpServicesId_
139+ , _asvpCallback = Nothing
140+ }
141+
142+-- | V1 error format.
143+asvpXgafv :: Lens' AppsServicesVersionsPatch (Maybe Text)
144+asvpXgafv
145+ = lens _asvpXgafv (\ s a -> s{_asvpXgafv = a})
146+
147+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
148+asvpUploadProtocol :: Lens' AppsServicesVersionsPatch (Maybe Text)
149+asvpUploadProtocol
150+ = lens _asvpUploadProtocol
151+ (\ s a -> s{_asvpUploadProtocol = a})
152+
153+-- | Pretty-print response.
154+asvpPp :: Lens' AppsServicesVersionsPatch Bool
155+asvpPp = lens _asvpPp (\ s a -> s{_asvpPp = a})
156+
157+-- | OAuth access token.
158+asvpAccessToken :: Lens' AppsServicesVersionsPatch (Maybe Text)
159+asvpAccessToken
160+ = lens _asvpAccessToken
161+ (\ s a -> s{_asvpAccessToken = a})
162+
163+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
164+asvpUploadType :: Lens' AppsServicesVersionsPatch (Maybe Text)
165+asvpUploadType
166+ = lens _asvpUploadType
167+ (\ s a -> s{_asvpUploadType = a})
168+
169+-- | Multipart request metadata.
170+asvpPayload :: Lens' AppsServicesVersionsPatch Version
171+asvpPayload
172+ = lens _asvpPayload (\ s a -> s{_asvpPayload = a})
173+
174+-- | Part of \`name\`. See documentation of \`appsId\`.
175+asvpVersionsId :: Lens' AppsServicesVersionsPatch Text
176+asvpVersionsId
177+ = lens _asvpVersionsId
178+ (\ s a -> s{_asvpVersionsId = a})
179+
180+-- | Standard field mask for the set of fields to be updated.
181+asvpMask :: Lens' AppsServicesVersionsPatch (Maybe Text)
182+asvpMask = lens _asvpMask (\ s a -> s{_asvpMask = a})
183+
184+-- | OAuth bearer token.
185+asvpBearerToken :: Lens' AppsServicesVersionsPatch (Maybe Text)
186+asvpBearerToken
187+ = lens _asvpBearerToken
188+ (\ s a -> s{_asvpBearerToken = a})
189+
190+-- | Part of \`name\`. Name of the resource to update. For example:
191+-- \"apps\/myapp\/services\/default\/versions\/1\".
192+asvpAppsId :: Lens' AppsServicesVersionsPatch Text
193+asvpAppsId
194+ = lens _asvpAppsId (\ s a -> s{_asvpAppsId = a})
195+
196+-- | Part of \`name\`. See documentation of \`appsId\`.
197+asvpServicesId :: Lens' AppsServicesVersionsPatch Text
198+asvpServicesId
199+ = lens _asvpServicesId
200+ (\ s a -> s{_asvpServicesId = a})
201+
202+-- | JSONP
203+asvpCallback :: Lens' AppsServicesVersionsPatch (Maybe Text)
204+asvpCallback
205+ = lens _asvpCallback (\ s a -> s{_asvpCallback = a})
206+
207+instance GoogleRequest AppsServicesVersionsPatch
208+ where
209+ type Rs AppsServicesVersionsPatch = Operation
210+ requestClient AppsServicesVersionsPatch{..}
211+ = go _asvpAppsId _asvpServicesId _asvpVersionsId
212+ _asvpXgafv
213+ _asvpUploadProtocol
214+ (Just _asvpPp)
215+ _asvpAccessToken
216+ _asvpUploadType
217+ _asvpMask
218+ _asvpBearerToken
219+ _asvpCallback
220+ (Just AltJSON)
221+ _asvpPayload
222+ appEngineService
223+ where go
224+ = buildClient
225+ (Proxy :: Proxy AppsServicesVersionsPatchResource)
226+ mempty
gogol-appengine/gogol-appengine.cabal+11−11
@@ -14,13 +14,12 @@ cabal-version: >= 1.10
14extra-source-files: README.md
14extra-source-files: README.md
15
15
16description:
16description:
17− The Google App Engine Admin API enables developers to provision and
18− manage their App Engine applications.
17+ Provisions and manages App Engine applications.
19 .
18 .
20 /Warning:/ This is an experimental prototype/preview release which is still
19 /Warning:/ This is an experimental prototype/preview release which is still
21 under exploratory development and not intended for public use, caveat emptor!
20 under exploratory development and not intended for public use, caveat emptor!
22 .
21 .
23− This library is compatible with version @v1beta4@
22+ This library is compatible with version @v1beta5@
24 of the API.
23 of the API.
25
24
26source-repository head
25source-repository head
@@ -37,16 +36,17 @@ library
37 Network.Google.AppEngine
36 Network.Google.AppEngine
38 , Network.Google.AppEngine.Types
37 , Network.Google.AppEngine.Types
39 , Network.Google.Resource.AppEngine.Apps.Get
38 , Network.Google.Resource.AppEngine.Apps.Get
40− , Network.Google.Resource.AppEngine.Apps.Modules.Delete
41− , Network.Google.Resource.AppEngine.Apps.Modules.Get
42− , Network.Google.Resource.AppEngine.Apps.Modules.List
43− , Network.Google.Resource.AppEngine.Apps.Modules.Patch
44− , Network.Google.Resource.AppEngine.Apps.Modules.Versions.Create
45− , Network.Google.Resource.AppEngine.Apps.Modules.Versions.Delete
46− , Network.Google.Resource.AppEngine.Apps.Modules.Versions.Get
47− , Network.Google.Resource.AppEngine.Apps.Modules.Versions.List
48 , Network.Google.Resource.AppEngine.Apps.Operations.Get
39 , Network.Google.Resource.AppEngine.Apps.Operations.Get
49 , Network.Google.Resource.AppEngine.Apps.Operations.List
40 , Network.Google.Resource.AppEngine.Apps.Operations.List
41+ , Network.Google.Resource.AppEngine.Apps.Services.Delete
42+ , Network.Google.Resource.AppEngine.Apps.Services.Get
43+ , Network.Google.Resource.AppEngine.Apps.Services.List
44+ , Network.Google.Resource.AppEngine.Apps.Services.Patch
45+ , Network.Google.Resource.AppEngine.Apps.Services.Versions.Create
46+ , Network.Google.Resource.AppEngine.Apps.Services.Versions.Delete
47+ , Network.Google.Resource.AppEngine.Apps.Services.Versions.Get
48+ , Network.Google.Resource.AppEngine.Apps.Services.Versions.List
49+ , Network.Google.Resource.AppEngine.Apps.Services.Versions.Patch
50
50
51 other-modules:
51 other-modules:
52 Network.Google.AppEngine.Types.Product
52 Network.Google.AppEngine.Types.Product
gogol-apps-activity/gen/Network/Google/AppsActivity.hs+2
@@ -88,7 +88,9 @@ module Network.Google.AppsActivity
88 , User
88 , User
89 , user
89 , user
90 , uPhoto
90 , uPhoto
91+ , uIsDeleted
91 , uName
92 , uName
93+ , uPermissionId
92
94
93 -- ** EventAdditionalEventTypesItem
95 -- ** EventAdditionalEventTypesItem
94 , EventAdditionalEventTypesItem (..)
96 , EventAdditionalEventTypesItem (..)
gogol-apps-activity/gen/Network/Google/AppsActivity/Types.hs+3−1
@@ -75,7 +75,9 @@ module Network.Google.AppsActivity.Types
75 , User
75 , User
76 , user
76 , user
77 , uPhoto
77 , uPhoto
78+ , uIsDeleted
78 , uName
79 , uName
80+ , uPermissionId
79
81
80 -- * EventAdditionalEventTypesItem
82 -- * EventAdditionalEventTypesItem
81 , EventAdditionalEventTypesItem (..)
83 , EventAdditionalEventTypesItem (..)
@@ -124,7 +126,7 @@ import Network.Google.AppsActivity.Types.Sum
124import Network.Google.Prelude
126import Network.Google.Prelude
125
127
126-- | Default request referring to version 'v1' of the Google Apps Activity API. This contains the host and root path used as a starting point for constructing service requests.
128-- | Default request referring to version 'v1' of the Google Apps Activity API. This contains the host and root path used as a starting point for constructing service requests.
127−appsActivityService :: Service
129+appsActivityService :: ServiceConfig
128appsActivityService
130appsActivityService
129 = defaultService (ServiceId "appsactivity:v1")
131 = defaultService (ServiceId "appsactivity:v1")
130 "www.googleapis.com"
132 "www.googleapis.com"
gogol-apps-activity/gen/Network/Google/AppsActivity/Types/Product.hs+35−5
@@ -354,8 +354,10 @@ instance ToJSON PermissionChange where
354--
354--
355-- /See:/ 'user' smart constructor.
355-- /See:/ 'user' smart constructor.
356data User = User
356data User = User
357− { _uPhoto :: !(Maybe Photo)
357+ { _uPhoto :: !(Maybe Photo)
358+ , _uIsDeleted :: !(Maybe Bool)
359+ , _uName :: !(Maybe Text)
358− , _uName :: !(Maybe Text)
360+ , _uPermissionId :: !(Maybe Text)
359 } deriving (Eq,Show,Data,Typeable,Generic)
361 } deriving (Eq,Show,Data,Typeable,Generic)
360
362
361-- | Creates a value of 'User' with the minimum fields required to make a request.
363-- | Creates a value of 'User' with the minimum fields required to make a request.
@@ -364,33 +366,61 @@ data User = User
364--
366--
365-- * 'uPhoto'
367-- * 'uPhoto'
366--
368--
369+-- * 'uIsDeleted'
370+--
367-- * 'uName'
371-- * 'uName'
372+--
373+-- * 'uPermissionId'
368user
374user
369 :: User
375 :: User
370user =
376user =
371 User
377 User
372 { _uPhoto = Nothing
378 { _uPhoto = Nothing
379+ , _uIsDeleted = Nothing
373 , _uName = Nothing
380 , _uName = Nothing
381+ , _uPermissionId = Nothing
374 }
382 }
375
383
376−-- | The profile photo of the user.
384+-- | The profile photo of the user. Not present if the user has no profile
385+-- photo.
377uPhoto :: Lens' User (Maybe Photo)
386uPhoto :: Lens' User (Maybe Photo)
378uPhoto = lens _uPhoto (\ s a -> s{_uPhoto = a})
387uPhoto = lens _uPhoto (\ s a -> s{_uPhoto = a})
379
388
389+-- | A boolean which indicates whether the specified User was deleted. If
390+-- true, name, photo and permission_id will be omitted.
391+uIsDeleted :: Lens' User (Maybe Bool)
392+uIsDeleted
393+ = lens _uIsDeleted (\ s a -> s{_uIsDeleted = a})
394+
380-- | The displayable name of the user.
395-- | The displayable name of the user.
381uName :: Lens' User (Maybe Text)
396uName :: Lens' User (Maybe Text)
382uName = lens _uName (\ s a -> s{_uName = a})
397uName = lens _uName (\ s a -> s{_uName = a})
383
398
399+-- | The permission ID associated with this user. Equivalent to the Drive
400+-- API\'s permission ID for this user, returned as part of the Drive
401+-- Permissions resource.
402+uPermissionId :: Lens' User (Maybe Text)
403+uPermissionId
404+ = lens _uPermissionId
405+ (\ s a -> s{_uPermissionId = a})
406+
384instance FromJSON User where
407instance FromJSON User where
385 parseJSON
408 parseJSON
386 = withObject "User"
409 = withObject "User"
410+ (\ o ->
411+ User <$>
387− (\ o -> User <$> (o .:? "photo") <*> (o .:? "name"))
412+ (o .:? "photo") <*> (o .:? "isDeleted") <*>
413+ (o .:? "name")
414+ <*> (o .:? "permissionId"))
388
415
389instance ToJSON User where
416instance ToJSON User where
390 toJSON User{..}
417 toJSON User{..}
391 = object
418 = object
392 (catMaybes
419 (catMaybes
393− [("photo" .=) <$> _uPhoto, ("name" .=) <$> _uName])
420+ [("photo" .=) <$> _uPhoto,
421+ ("isDeleted" .=) <$> _uIsDeleted,
422+ ("name" .=) <$> _uName,
423+ ("permissionId" .=) <$> _uPermissionId])
394
424
395-- | An Activity resource is a combined view of multiple events. An activity
425-- | An Activity resource is a combined view of multiple events. An activity
396-- has a list of individual events and a combined view of the common fields
426-- has a list of individual events and a combined view of the common fields
gogol-apps-calendar/gen/Network/Google/AppsCalendar/Types.hs+1−1
@@ -388,7 +388,7 @@ import Network.Google.AppsCalendar.Types.Sum
388import Network.Google.Prelude
388import Network.Google.Prelude
389
389
390-- | Default request referring to version 'v3' of the Calendar API. This contains the host and root path used as a starting point for constructing service requests.
390-- | Default request referring to version 'v3' of the Calendar API. This contains the host and root path used as a starting point for constructing service requests.
391−appsCalendarService :: Service
391+appsCalendarService :: ServiceConfig
392appsCalendarService
392appsCalendarService
393 = defaultService (ServiceId "calendar:v3")
393 = defaultService (ServiceId "calendar:v3")
394 "www.googleapis.com"
394 "www.googleapis.com"
gogol-apps-calendar/gen/Network/Google/AppsCalendar/Types/Product.hs+2−2
@@ -658,8 +658,8 @@ eUpdated
658eColorId :: Lens' Event (Maybe Text)
658eColorId :: Lens' Event (Maybe Text)
659eColorId = lens _eColorId (\ s a -> s{_eColorId = a})
659eColorId = lens _eColorId (\ s a -> s{_eColorId = a})
660
660
661−-- | Whether anyone can invite themselves to the event. Optional. The default
661+-- | Whether anyone can invite themselves to the event (currently works for
662−-- is False.
662+-- Google+ events only). Optional. The default is False.
663eAnyoneCanAddSelf :: Lens' Event Bool
663eAnyoneCanAddSelf :: Lens' Event Bool
664eAnyoneCanAddSelf
664eAnyoneCanAddSelf
665 = lens _eAnyoneCanAddSelf
665 = lens _eAnyoneCanAddSelf
gogol-apps-licensing/gen/Network/Google/AppsLicensing/Types.hs+1−1
@@ -50,7 +50,7 @@ import Network.Google.AppsLicensing.Types.Sum
50import Network.Google.Prelude
50import Network.Google.Prelude
51
51
52-- | Default request referring to version 'v1' of the Enterprise License Manager API. This contains the host and root path used as a starting point for constructing service requests.
52-- | Default request referring to version 'v1' of the Enterprise License Manager API. This contains the host and root path used as a starting point for constructing service requests.
53−appsLicensingService :: Service
53+appsLicensingService :: ServiceConfig
54appsLicensingService
54appsLicensingService
55 = defaultService (ServiceId "licensing:v1")
55 = defaultService (ServiceId "licensing:v1")
56 "www.googleapis.com"
56 "www.googleapis.com"
gogol-apps-reseller/gen/Network/Google/AppsReseller.hs+3−1
@@ -13,7 +13,7 @@
13-- Stability : auto-generated
13-- Stability : auto-generated
14-- Portability : non-portable (GHC extensions)
14-- Portability : non-portable (GHC extensions)
15--
15--
16−-- Lets you create and manage your customers and their subscriptions.
16+-- Creates and manages your customers and their subscriptions.
17--
17--
18-- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference>
18-- /See:/ <https://developers.google.com/google-apps/reseller/ Enterprise Apps Reseller API Reference>
19module Network.Google.AppsReseller
19module Network.Google.AppsReseller
@@ -97,6 +97,7 @@ module Network.Google.AppsReseller
97 -- ** Customer
97 -- ** Customer
98 , Customer
98 , Customer
99 , customer
99 , customer
100+ , cCustomerDomainVerified
100 , cResourceUiURL
101 , cResourceUiURL
101 , cKind
102 , cKind
102 , cCustomerId
103 , cCustomerId
@@ -162,6 +163,7 @@ module Network.Google.AppsReseller
162 , subSKUId
163 , subSKUId
163 , subPlan
164 , subPlan
164 , subCustomerId
165 , subCustomerId
166+ , subCustomerDomain
165 , subSuspensionReasons
167 , subSuspensionReasons
166 , subTransferInfo
168 , subTransferInfo
167 , subPurchaseOrderId
169 , subPurchaseOrderId
gogol-apps-reseller/gen/Network/Google/AppsReseller/Types.hs+3−1
@@ -45,6 +45,7 @@ module Network.Google.AppsReseller.Types
45 -- * Customer
45 -- * Customer
46 , Customer
46 , Customer
47 , customer
47 , customer
48+ , cCustomerDomainVerified
48 , cResourceUiURL
49 , cResourceUiURL
49 , cKind
50 , cKind
50 , cCustomerId
51 , cCustomerId
@@ -110,6 +111,7 @@ module Network.Google.AppsReseller.Types
110 , subSKUId
111 , subSKUId
111 , subPlan
112 , subPlan
112 , subCustomerId
113 , subCustomerId
114+ , subCustomerDomain
113 , subSuspensionReasons
115 , subSuspensionReasons
114 , subTransferInfo
116 , subTransferInfo
115 , subPurchaseOrderId
117 , subPurchaseOrderId
@@ -129,7 +131,7 @@ import Network.Google.AppsReseller.Types.Sum
129import Network.Google.Prelude
131import Network.Google.Prelude
130
132
131-- | Default request referring to version 'v1' of the Enterprise Apps Reseller API. This contains the host and root path used as a starting point for constructing service requests.
133-- | Default request referring to version 'v1' of the Enterprise Apps Reseller API. This contains the host and root path used as a starting point for constructing service requests.
132−appsResellerService :: Service
134+appsResellerService :: ServiceConfig
133appsResellerService
135appsResellerService
134 = defaultService (ServiceId "reseller:v1")
136 = defaultService (ServiceId "reseller:v1")
135 "www.googleapis.com"
137 "www.googleapis.com"
gogol-apps-reseller/gen/Network/Google/AppsReseller/Types/Product.hs+47−12
@@ -214,19 +214,22 @@ instance ToJSON Address where
214--
214--
215-- /See:/ 'customer' smart constructor.
215-- /See:/ 'customer' smart constructor.
216data Customer = Customer
216data Customer = Customer
217+ { _cCustomerDomainVerified :: !(Maybe Bool)
217− { _cResourceUiURL :: !(Maybe Text)
218+ , _cResourceUiURL :: !(Maybe Text)
218− , _cKind :: !Text
219+ , _cKind :: !Text
219− , _cCustomerId :: !(Maybe Text)
220+ , _cCustomerId :: !(Maybe Text)
220− , _cAlternateEmail :: !(Maybe Text)
221+ , _cAlternateEmail :: !(Maybe Text)
221− , _cCustomerDomain :: !(Maybe Text)
222+ , _cCustomerDomain :: !(Maybe Text)
222− , _cPhoneNumber :: !(Maybe Text)
223+ , _cPhoneNumber :: !(Maybe Text)
223− , _cPostalAddress :: !(Maybe Address)
224+ , _cPostalAddress :: !(Maybe Address)
224 } deriving (Eq,Show,Data,Typeable,Generic)
225 } deriving (Eq,Show,Data,Typeable,Generic)
225
226
226-- | Creates a value of 'Customer' with the minimum fields required to make a request.
227-- | Creates a value of 'Customer' with the minimum fields required to make a request.
227--
228--
228-- Use one of the following lenses to modify other fields as desired:
229-- Use one of the following lenses to modify other fields as desired:
229--
230--
231+-- * 'cCustomerDomainVerified'
232+--
230-- * 'cResourceUiURL'
233-- * 'cResourceUiURL'
231--
234--
232-- * 'cKind'
235-- * 'cKind'
@@ -244,7 +247,8 @@ customer
244 :: Customer
247 :: Customer
245customer =
248customer =
246 Customer
249 Customer
250+ { _cCustomerDomainVerified = Nothing
247− { _cResourceUiURL = Nothing
251+ , _cResourceUiURL = Nothing
248 , _cKind = "reseller#customer"
252 , _cKind = "reseller#customer"
249 , _cCustomerId = Nothing
253 , _cCustomerId = Nothing
250 , _cAlternateEmail = Nothing
254 , _cAlternateEmail = Nothing
@@ -253,6 +257,12 @@ customer =
253 , _cPostalAddress = Nothing
257 , _cPostalAddress = Nothing
254 }
258 }
255
259
260+-- | Whether the customer\'s primary domain has been verified.
261+cCustomerDomainVerified :: Lens' Customer (Maybe Bool)
262+cCustomerDomainVerified
263+ = lens _cCustomerDomainVerified
264+ (\ s a -> s{_cCustomerDomainVerified = a})
265+
256-- | Ui url for customer resource.
266-- | Ui url for customer resource.
257cResourceUiURL :: Lens' Customer (Maybe Text)
267cResourceUiURL :: Lens' Customer (Maybe Text)
258cResourceUiURL
268cResourceUiURL
@@ -296,8 +306,9 @@ instance FromJSON Customer where
296 = withObject "Customer"
306 = withObject "Customer"
297 (\ o ->
307 (\ o ->
298 Customer <$>
308 Customer <$>
309+ (o .:? "customerDomainVerified") <*>
299− (o .:? "resourceUiUrl") <*>
310+ (o .:? "resourceUiUrl")
300− (o .:? "kind" .!= "reseller#customer")
311+ <*> (o .:? "kind" .!= "reseller#customer")
301 <*> (o .:? "customerId")
312 <*> (o .:? "customerId")
302 <*> (o .:? "alternateEmail")
313 <*> (o .:? "alternateEmail")
303 <*> (o .:? "customerDomain")
314 <*> (o .:? "customerDomain")
@@ -308,7 +319,9 @@ instance ToJSON Customer where
308 toJSON Customer{..}
319 toJSON Customer{..}
309 = object
320 = object
310 (catMaybes
321 (catMaybes
322+ [("customerDomainVerified" .=) <$>
323+ _cCustomerDomainVerified,
311− [("resourceUiUrl" .=) <$> _cResourceUiURL,
324+ ("resourceUiUrl" .=) <$> _cResourceUiURL,
312 Just ("kind" .= _cKind),
325 Just ("kind" .= _cKind),
313 ("customerId" .=) <$> _cCustomerId,
326 ("customerId" .=) <$> _cCustomerId,
314 ("alternateEmail" .=) <$> _cAlternateEmail,
327 ("alternateEmail" .=) <$> _cAlternateEmail,
@@ -704,6 +717,7 @@ data Subscription = Subscription
704 , _subSKUId :: !(Maybe Text)
717 , _subSKUId :: !(Maybe Text)
705 , _subPlan :: !(Maybe SubscriptionPlan)
718 , _subPlan :: !(Maybe SubscriptionPlan)
706 , _subCustomerId :: !(Maybe Text)
719 , _subCustomerId :: !(Maybe Text)
720+ , _subCustomerDomain :: !(Maybe Text)
707 , _subSuspensionReasons :: !(Maybe [Text])
721 , _subSuspensionReasons :: !(Maybe [Text])
708 , _subTransferInfo :: !(Maybe SubscriptionTransferInfo)
722 , _subTransferInfo :: !(Maybe SubscriptionTransferInfo)
709 , _subPurchaseOrderId :: !(Maybe Text)
723 , _subPurchaseOrderId :: !(Maybe Text)
@@ -734,6 +748,8 @@ data Subscription = Subscription
734--
748--
735-- * 'subCustomerId'
749-- * 'subCustomerId'
736--
750--
751+-- * 'subCustomerDomain'
752+--
737-- * 'subSuspensionReasons'
753-- * 'subSuspensionReasons'
738--
754--
739-- * 'subTransferInfo'
755-- * 'subTransferInfo'
@@ -758,6 +774,7 @@ subscription =
758 , _subSKUId = Nothing
774 , _subSKUId = Nothing
759 , _subPlan = Nothing
775 , _subPlan = Nothing
760 , _subCustomerId = Nothing
776 , _subCustomerId = Nothing
777+ , _subCustomerDomain = Nothing
761 , _subSuspensionReasons = Nothing
778 , _subSuspensionReasons = Nothing
762 , _subTransferInfo = Nothing
779 , _subTransferInfo = Nothing
763 , _subPurchaseOrderId = Nothing
780 , _subPurchaseOrderId = Nothing
@@ -814,7 +831,23 @@ subCustomerId
814 = lens _subCustomerId
831 = lens _subCustomerId
815 (\ s a -> s{_subCustomerId = a})
832 (\ s a -> s{_subCustomerId = a})
816
833
817−-- | Suspension Reasons
834+-- | Primary domain name of the customer
835+subCustomerDomain :: Lens' Subscription (Maybe Text)
836+subCustomerDomain
837+ = lens _subCustomerDomain
838+ (\ s a -> s{_subCustomerDomain = a})
839+
840+-- | field listing all current reasons the subscription is suspended. It is
841+-- possible for a subscription to have multiple suspension reasons. A
842+-- subscription\'s status is SUSPENDED until all pending suspensions are
843+-- removed. Possible options include: - PENDING_TOS_ACCEPTANCE — The
844+-- customer has not logged in and accepted the Google Apps Resold Terms of
845+-- Services. - RENEWAL_WITH_TYPE_CANCEL — The customer\'s commitment ended
846+-- and their service was cancelled at the end of their term. -
847+-- RESELLER_INITIATED — A manual suspension invoked by a Reseller. -
848+-- TRIAL_ENDED — The customer\'s trial expired without a plan selected. -
849+-- OTHER — The customer is suspended for an internal Google reason (e.g.
850+-- abuse or otherwise).
818subSuspensionReasons :: Lens' Subscription [Text]
851subSuspensionReasons :: Lens' Subscription [Text]
819subSuspensionReasons
852subSuspensionReasons
820 = lens _subSuspensionReasons
853 = lens _subSuspensionReasons
@@ -863,6 +896,7 @@ instance FromJSON Subscription where
863 <*> (o .:? "skuId")
896 <*> (o .:? "skuId")
864 <*> (o .:? "plan")
897 <*> (o .:? "plan")
865 <*> (o .:? "customerId")
898 <*> (o .:? "customerId")
899+ <*> (o .:? "customerDomain")
866 <*> (o .:? "suspensionReasons" .!= mempty)
900 <*> (o .:? "suspensionReasons" .!= mempty)
867 <*> (o .:? "transferInfo")
901 <*> (o .:? "transferInfo")
868 <*> (o .:? "purchaseOrderId")
902 <*> (o .:? "purchaseOrderId")
@@ -882,6 +916,7 @@ instance ToJSON Subscription where
882 Just ("kind" .= _subKind),
916 Just ("kind" .= _subKind),
883 ("skuId" .=) <$> _subSKUId, ("plan" .=) <$> _subPlan,
917 ("skuId" .=) <$> _subSKUId, ("plan" .=) <$> _subPlan,
884 ("customerId" .=) <$> _subCustomerId,
918 ("customerId" .=) <$> _subCustomerId,
919+ ("customerDomain" .=) <$> _subCustomerDomain,
885 ("suspensionReasons" .=) <$> _subSuspensionReasons,
920 ("suspensionReasons" .=) <$> _subSuspensionReasons,
886 ("transferInfo" .=) <$> _subTransferInfo,
921 ("transferInfo" .=) <$> _subTransferInfo,
887 ("purchaseOrderId" .=) <$> _subPurchaseOrderId,
922 ("purchaseOrderId" .=) <$> _subPurchaseOrderId,
gogol-apps-reseller/gen/Network/Google/Resource/Reseller/Customers/Insert.hs+2−2
@@ -81,8 +81,8 @@ ciPayload
81 = lens _ciPayload (\ s a -> s{_ciPayload = a})
81 = lens _ciPayload (\ s a -> s{_ciPayload = a})
82
82
83-- | An auth token needed for inserting a customer for which domain already
83-- | An auth token needed for inserting a customer for which domain already
84−-- exists. Can be generated at
84+-- exists. Can be generated at https:\/\/admin.google.com\/TransferToken.
85−-- https:\/\/www.google.com\/a\/cpanel\/\/TransferToken. Optional.
85+-- Optional.
86ciCustomerAuthToken :: Lens' CustomersInsert (Maybe Text)
86ciCustomerAuthToken :: Lens' CustomersInsert (Maybe Text)
87ciCustomerAuthToken
87ciCustomerAuthToken
88 = lens _ciCustomerAuthToken
88 = lens _ciCustomerAuthToken
gogol-apps-reseller/gogol-apps-reseller.cabal+1−1
@@ -14,7 +14,7 @@ cabal-version: >= 1.10
14extra-source-files: README.md
14extra-source-files: README.md
15
15
16description:
16description:
17− Lets you create and manage your customers and their subscriptions.
17+ Creates and manages your customers and their subscriptions.
18 .
18 .
19 /Warning:/ This is an experimental prototype/preview release which is still
19 /Warning:/ This is an experimental prototype/preview release which is still
20 under exploratory development and not intended for public use, caveat emptor!
20 under exploratory development and not intended for public use, caveat emptor!
gogol-apps-tasks/gen/Network/Google/AppsTasks/Types.hs+1−1
@@ -80,7 +80,7 @@ import Network.Google.AppsTasks.Types.Sum
80import Network.Google.Prelude
80import Network.Google.Prelude
81
81
82-- | Default request referring to version 'v1' of the Tasks API. This contains the host and root path used as a starting point for constructing service requests.
82-- | Default request referring to version 'v1' of the Tasks API. This contains the host and root path used as a starting point for constructing service requests.
83−appsTasksService :: Service
83+appsTasksService :: ServiceConfig
84appsTasksService
84appsTasksService
85 = defaultService (ServiceId "tasks:v1")
85 = defaultService (ServiceId "tasks:v1")
86 "www.googleapis.com"
86 "www.googleapis.com"
gogol-apps-tasks/gen/Network/Google/AppsTasks/Types/Product.hs+1−1
@@ -54,7 +54,7 @@ tliLink = lens _tliLink (\ s a -> s{_tliLink = a})
54tliType :: Lens' TaskLinksItem (Maybe Text)
54tliType :: Lens' TaskLinksItem (Maybe Text)
55tliType = lens _tliType (\ s a -> s{_tliType = a})
55tliType = lens _tliType (\ s a -> s{_tliType = a})
56
56
57−-- | The description. In HTML speak: Everything between and .
57+-- | The description. In HTML speak: Everything between < and>.
58tliDescription :: Lens' TaskLinksItem (Maybe Text)
58tliDescription :: Lens' TaskLinksItem (Maybe Text)
59tliDescription
59tliDescription
60 = lens _tliDescription
60 = lens _tliDescription
gogol-appstate/gen/Network/Google/AppState/Types.hs+1−1
@@ -55,7 +55,7 @@ import Network.Google.AppState.Types.Sum
55import Network.Google.Prelude
55import Network.Google.Prelude
56
56
57-- | Default request referring to version 'v1' of the Google App State API. This contains the host and root path used as a starting point for constructing service requests.
57-- | Default request referring to version 'v1' of the Google App State API. This contains the host and root path used as a starting point for constructing service requests.
58−appStateService :: Service
58+appStateService :: ServiceConfig
59appStateService
59appStateService
60 = defaultService (ServiceId "appstate:v1")
60 = defaultService (ServiceId "appstate:v1")
61 "www.googleapis.com"
61 "www.googleapis.com"
gogol-autoscaler/gen/Network/Google/Autoscaler/Types.hs+1−1
@@ -174,7 +174,7 @@ import Network.Google.Autoscaler.Types.Sum
174import Network.Google.Prelude
174import Network.Google.Prelude
175
175
176-- | Default request referring to version 'v1beta2' of the Google Compute Engine Autoscaler API. This contains the host and root path used as a starting point for constructing service requests.
176-- | Default request referring to version 'v1beta2' of the Google Compute Engine Autoscaler API. This contains the host and root path used as a starting point for constructing service requests.
177−autoscalerService :: Service
177+autoscalerService :: ServiceConfig
178autoscalerService
178autoscalerService
179 = defaultService (ServiceId "autoscaler:v1beta2")
179 = defaultService (ServiceId "autoscaler:v1beta2")
180 "www.googleapis.com"
180 "www.googleapis.com"
gogol-bigquery/gen/Network/Google/BigQuery.hs+57−9
@@ -164,6 +164,21 @@ module Network.Google.BigQuery
164 , plKind
164 , plKind
165 , plProjects
165 , plProjects
166
166
167+ -- ** ExplainQueryStep
168+ , ExplainQueryStep
169+ , explainQueryStep
170+ , eqsSubsteps
171+ , eqsKind
172+
173+ -- ** BigtableColumnFamily
174+ , BigtableColumnFamily
175+ , bigtableColumnFamily
176+ , bcfFamilyId
177+ , bcfColumns
178+ , bcfOnlyReadLatest
179+ , bcfType
180+ , bcfEncoding
181+
167 -- ** JobStatistics
182 -- ** JobStatistics
168 , JobStatistics
183 , JobStatistics
169 , jobStatistics
184 , jobStatistics
@@ -191,14 +206,22 @@ module Network.Google.BigQuery
191 , dsDefaultTableExpirationMs
206 , dsDefaultTableExpirationMs
192 , dsDescription
207 , dsDescription
193
208
209+ -- ** BigtableOptions
210+ , BigtableOptions
211+ , bigtableOptions
212+ , boIgnoreUnspecifiedColumnFamilies
213+ , boColumnFamilies
214+
194 -- ** ExternalDataConfiguration
215 -- ** ExternalDataConfiguration
195 , ExternalDataConfiguration
216 , ExternalDataConfiguration
196 , externalDataConfiguration
217 , externalDataConfiguration
218+ , edcBigtableOptions
197 , edcIgnoreUnknownValues
219 , edcIgnoreUnknownValues
198 , edcCompression
220 , edcCompression
199 , edcSourceFormat
221 , edcSourceFormat
200 , edcSchema
222 , edcSchema
201 , edcMaxBadRecords
223 , edcMaxBadRecords
224+ , edcAutodetect
202 , edcSourceURIs
225 , edcSourceURIs
203 , edcCSVOptions
226 , edcCSVOptions
204
227
@@ -249,6 +272,7 @@ module Network.Google.BigQuery
249 , qrKind
272 , qrKind
250 , qrQuery
273 , qrQuery
251 , qrTimeoutMs
274 , qrTimeoutMs
275+ , qrUseLegacySQL
252 , qrDryRun
276 , qrDryRun
253 , qrMaxResults
277 , qrMaxResults
254 , qrDefaultDataSet
278 , qrDefaultDataSet
@@ -266,6 +290,23 @@ module Network.Google.BigQuery
266 , projectReference
290 , projectReference
267 , prProjectId
291 , prProjectId
268
292
293+ -- ** ExplainQueryStage
294+ , ExplainQueryStage
295+ , explainQueryStage
296+ , eqsWaitRatioMax
297+ , eqsRecordsWritten
298+ , eqsSteps
299+ , eqsWriteRatioAvg
300+ , eqsRecordsRead
301+ , eqsComputeRatioAvg
302+ , eqsName
303+ , eqsReadRatioMax
304+ , eqsWaitRatioAvg
305+ , eqsId
306+ , eqsComputeRatioMax
307+ , eqsWriteRatioMax
308+ , eqsReadRatioAvg
309+
269 -- ** JobConfigurationLoad
310 -- ** JobConfigurationLoad
270 , JobConfigurationLoad
311 , JobConfigurationLoad
271 , jobConfigurationLoad
312 , jobConfigurationLoad
@@ -302,6 +343,7 @@ module Network.Google.BigQuery
302 , tdiarKind
343 , tdiarKind
303 , tdiarIgnoreUnknownValues
344 , tdiarIgnoreUnknownValues
304 , tdiarRows
345 , tdiarRows
346+ , tdiarTemplateSuffix
305 , tdiarSkipInvalidRows
347 , tdiarSkipInvalidRows
306
348
307 -- ** ProjectListProjectsItem
349 -- ** ProjectListProjectsItem
@@ -313,6 +355,16 @@ module Network.Google.BigQuery
313 , plpiId
355 , plpiId
314 , plpiNumericId
356 , plpiNumericId
315
357
358+ -- ** BigtableColumn
359+ , BigtableColumn
360+ , bigtableColumn
361+ , bcQualifierEncoded
362+ , bcFieldName
363+ , bcQualifierString
364+ , bcOnlyReadLatest
365+ , bcType
366+ , bcEncoding
367+
316 -- ** Streamingbuffer
368 -- ** Streamingbuffer
317 , Streamingbuffer
369 , Streamingbuffer
318 , streamingbuffer
370 , streamingbuffer
@@ -342,7 +394,6 @@ module Network.Google.BigQuery
342 , JobConfiguration
394 , JobConfiguration
343 , jobConfiguration
395 , jobConfiguration
344 , jcCopy
396 , jcCopy
345− , jcLink
346 , jcLoad
397 , jcLoad
347 , jcQuery
398 , jcQuery
348 , jcExtract
399 , jcExtract
@@ -361,14 +412,6 @@ module Network.Google.BigQuery
361 , jStatistics
412 , jStatistics
362 , jConfiguration
413 , jConfiguration
363
414
364− -- ** JobConfigurationLink
365− , JobConfigurationLink
366− , jobConfigurationLink
367− , jDestinationTable
368− , jWriteDisPosition
369− , jCreateDisPosition
370− , jSourceURI
371−
372 -- ** TableDataInsertAllResponseInsertErrorsItem
415 -- ** TableDataInsertAllResponseInsertErrorsItem
373 , TableDataInsertAllResponseInsertErrorsItem
416 , TableDataInsertAllResponseInsertErrorsItem
374 , tableDataInsertAllResponseInsertErrorsItem
417 , tableDataInsertAllResponseInsertErrorsItem
@@ -409,8 +452,10 @@ module Network.Google.BigQuery
409 , jcqCreateDisPosition
452 , jcqCreateDisPosition
410 , jcqUserDefinedFunctionResources
453 , jcqUserDefinedFunctionResources
411 , jcqAllowLargeResults
454 , jcqAllowLargeResults
455+ , jcqMaximumBillingTier
412 , jcqQuery
456 , jcqQuery
413 , jcqFlattenResults
457 , jcqFlattenResults
458+ , jcqUseLegacySQL
414 , jcqDefaultDataSet
459 , jcqDefaultDataSet
415
460
416 -- ** TableDataInsertAllRequestRowsItem
461 -- ** TableDataInsertAllRequestRowsItem
@@ -440,6 +485,7 @@ module Network.Google.BigQuery
440 -- ** ViewDefinition
485 -- ** ViewDefinition
441 , ViewDefinition
486 , ViewDefinition
442 , viewDefinition
487 , viewDefinition
488+ , vdUserDefinedFunctionResources
443 , vdQuery
489 , vdQuery
444
490
445 -- ** UserDefinedFunctionResource
491 -- ** UserDefinedFunctionResource
@@ -453,6 +499,8 @@ module Network.Google.BigQuery
453 , jobStatistics2
499 , jobStatistics2
454 , jTotalBytesProcessed
500 , jTotalBytesProcessed
455 , jBillingTier
501 , jBillingTier
502+ , jReferencedTables
503+ , jQueryPlan
456 , jCacheHit
504 , jCacheHit
457 , jTotalBytesBilled
505 , jTotalBytesBilled
458
506
gogol-bigquery/gen/Network/Google/BigQuery/Types.hs+58−10
@@ -91,6 +91,21 @@ module Network.Google.BigQuery.Types
91 , plKind
91 , plKind
92 , plProjects
92 , plProjects
93
93
94+ -- * ExplainQueryStep
95+ , ExplainQueryStep
96+ , explainQueryStep
97+ , eqsSubsteps
98+ , eqsKind
99+
100+ -- * BigtableColumnFamily
101+ , BigtableColumnFamily
102+ , bigtableColumnFamily
103+ , bcfFamilyId
104+ , bcfColumns
105+ , bcfOnlyReadLatest
106+ , bcfType
107+ , bcfEncoding
108+
94 -- * JobStatistics
109 -- * JobStatistics
95 , JobStatistics
110 , JobStatistics
96 , jobStatistics
111 , jobStatistics
@@ -118,14 +133,22 @@ module Network.Google.BigQuery.Types
118 , dsDefaultTableExpirationMs
133 , dsDefaultTableExpirationMs
119 , dsDescription
134 , dsDescription
120
135
136+ -- * BigtableOptions
137+ , BigtableOptions
138+ , bigtableOptions
139+ , boIgnoreUnspecifiedColumnFamilies
140+ , boColumnFamilies
141+
121 -- * ExternalDataConfiguration
142 -- * ExternalDataConfiguration
122 , ExternalDataConfiguration
143 , ExternalDataConfiguration
123 , externalDataConfiguration
144 , externalDataConfiguration
145+ , edcBigtableOptions
124 , edcIgnoreUnknownValues
146 , edcIgnoreUnknownValues
125 , edcCompression
147 , edcCompression
126 , edcSourceFormat
148 , edcSourceFormat
127 , edcSchema
149 , edcSchema
128 , edcMaxBadRecords
150 , edcMaxBadRecords
151+ , edcAutodetect
129 , edcSourceURIs
152 , edcSourceURIs
130 , edcCSVOptions
153 , edcCSVOptions
131
154
@@ -176,6 +199,7 @@ module Network.Google.BigQuery.Types
176 , qrKind
199 , qrKind
177 , qrQuery
200 , qrQuery
178 , qrTimeoutMs
201 , qrTimeoutMs
202+ , qrUseLegacySQL
179 , qrDryRun
203 , qrDryRun
180 , qrMaxResults
204 , qrMaxResults
181 , qrDefaultDataSet
205 , qrDefaultDataSet
@@ -193,6 +217,23 @@ module Network.Google.BigQuery.Types
193 , projectReference
217 , projectReference
194 , prProjectId
218 , prProjectId
195
219
220+ -- * ExplainQueryStage
221+ , ExplainQueryStage
222+ , explainQueryStage
223+ , eqsWaitRatioMax
224+ , eqsRecordsWritten
225+ , eqsSteps
226+ , eqsWriteRatioAvg
227+ , eqsRecordsRead
228+ , eqsComputeRatioAvg
229+ , eqsName
230+ , eqsReadRatioMax
231+ , eqsWaitRatioAvg
232+ , eqsId
233+ , eqsComputeRatioMax
234+ , eqsWriteRatioMax
235+ , eqsReadRatioAvg
236+
196 -- * JobConfigurationLoad
237 -- * JobConfigurationLoad
197 , JobConfigurationLoad
238 , JobConfigurationLoad
198 , jobConfigurationLoad
239 , jobConfigurationLoad
@@ -229,6 +270,7 @@ module Network.Google.BigQuery.Types
229 , tdiarKind
270 , tdiarKind
230 , tdiarIgnoreUnknownValues
271 , tdiarIgnoreUnknownValues
231 , tdiarRows
272 , tdiarRows
273+ , tdiarTemplateSuffix
232 , tdiarSkipInvalidRows
274 , tdiarSkipInvalidRows
233
275
234 -- * ProjectListProjectsItem
276 -- * ProjectListProjectsItem
@@ -240,6 +282,16 @@ module Network.Google.BigQuery.Types
240 , plpiId
282 , plpiId
241 , plpiNumericId
283 , plpiNumericId
242
284
285+ -- * BigtableColumn
286+ , BigtableColumn
287+ , bigtableColumn
288+ , bcQualifierEncoded
289+ , bcFieldName
290+ , bcQualifierString
291+ , bcOnlyReadLatest
292+ , bcType
293+ , bcEncoding
294+
243 -- * Streamingbuffer
295 -- * Streamingbuffer
244 , Streamingbuffer
296 , Streamingbuffer
245 , streamingbuffer
297 , streamingbuffer
@@ -269,7 +321,6 @@ module Network.Google.BigQuery.Types
269 , JobConfiguration
321 , JobConfiguration
270 , jobConfiguration
322 , jobConfiguration
271 , jcCopy
323 , jcCopy
272− , jcLink
273 , jcLoad
324 , jcLoad
274 , jcQuery
325 , jcQuery
275 , jcExtract
326 , jcExtract
@@ -288,14 +339,6 @@ module Network.Google.BigQuery.Types
288 , jStatistics
339 , jStatistics
289 , jConfiguration
340 , jConfiguration
290
341
291− -- * JobConfigurationLink
292− , JobConfigurationLink
293− , jobConfigurationLink
294− , jDestinationTable
295− , jWriteDisPosition
296− , jCreateDisPosition
297− , jSourceURI
298−
299 -- * TableDataInsertAllResponseInsertErrorsItem
342 -- * TableDataInsertAllResponseInsertErrorsItem
300 , TableDataInsertAllResponseInsertErrorsItem
343 , TableDataInsertAllResponseInsertErrorsItem
301 , tableDataInsertAllResponseInsertErrorsItem
344 , tableDataInsertAllResponseInsertErrorsItem
@@ -336,8 +379,10 @@ module Network.Google.BigQuery.Types
336 , jcqCreateDisPosition
379 , jcqCreateDisPosition
337 , jcqUserDefinedFunctionResources
380 , jcqUserDefinedFunctionResources
338 , jcqAllowLargeResults
381 , jcqAllowLargeResults
382+ , jcqMaximumBillingTier
339 , jcqQuery
383 , jcqQuery
340 , jcqFlattenResults
384 , jcqFlattenResults
385+ , jcqUseLegacySQL
341 , jcqDefaultDataSet
386 , jcqDefaultDataSet
342
387
343 -- * TableDataInsertAllRequestRowsItem
388 -- * TableDataInsertAllRequestRowsItem
@@ -367,6 +412,7 @@ module Network.Google.BigQuery.Types
367 -- * ViewDefinition
412 -- * ViewDefinition
368 , ViewDefinition
413 , ViewDefinition
369 , viewDefinition
414 , viewDefinition
415+ , vdUserDefinedFunctionResources
370 , vdQuery
416 , vdQuery
371
417
372 -- * UserDefinedFunctionResource
418 -- * UserDefinedFunctionResource
@@ -380,6 +426,8 @@ module Network.Google.BigQuery.Types
380 , jobStatistics2
426 , jobStatistics2
381 , jTotalBytesProcessed
427 , jTotalBytesProcessed
382 , jBillingTier
428 , jBillingTier
429+ , jReferencedTables
430+ , jQueryPlan
383 , jCacheHit
431 , jCacheHit
384 , jTotalBytesBilled
432 , jTotalBytesBilled
385
433
@@ -474,7 +522,7 @@ import Network.Google.BigQuery.Types.Sum
474import Network.Google.Prelude
522import Network.Google.Prelude
475
523
476-- | Default request referring to version 'v2' of the BigQuery API. This contains the host and root path used as a starting point for constructing service requests.
524-- | Default request referring to version 'v2' of the BigQuery API. This contains the host and root path used as a starting point for constructing service requests.
477−bigQueryService :: Service
525+bigQueryService :: ServiceConfig
478bigQueryService
526bigQueryService
479 = defaultService (ServiceId "bigquery:v2")
527 = defaultService (ServiceId "bigquery:v2")
480 "www.googleapis.com"
528 "www.googleapis.com"
gogol-bigquery/gen/Network/Google/BigQuery/Types/Product.hs+704−126
@@ -593,6 +593,150 @@ instance ToJSON ProjectList where
593 Just ("kind" .= _plKind),
593 Just ("kind" .= _plKind),
594 ("projects" .=) <$> _plProjects])
594 ("projects" .=) <$> _plProjects])
595
595
596+--
597+-- /See:/ 'explainQueryStep' smart constructor.
598+data ExplainQueryStep = ExplainQueryStep
599+ { _eqsSubsteps :: !(Maybe [Text])
600+ , _eqsKind :: !(Maybe Text)
601+ } deriving (Eq,Show,Data,Typeable,Generic)
602+
603+-- | Creates a value of 'ExplainQueryStep' with the minimum fields required to make a request.
604+--
605+-- Use one of the following lenses to modify other fields as desired:
606+--
607+-- * 'eqsSubsteps'
608+--
609+-- * 'eqsKind'
610+explainQueryStep
611+ :: ExplainQueryStep
612+explainQueryStep =
613+ ExplainQueryStep
614+ { _eqsSubsteps = Nothing
615+ , _eqsKind = Nothing
616+ }
617+
618+-- | Human-readable stage descriptions.
619+eqsSubsteps :: Lens' ExplainQueryStep [Text]
620+eqsSubsteps
621+ = lens _eqsSubsteps (\ s a -> s{_eqsSubsteps = a}) .
622+ _Default
623+ . _Coerce
624+
625+-- | Machine-readable operation type.
626+eqsKind :: Lens' ExplainQueryStep (Maybe Text)
627+eqsKind = lens _eqsKind (\ s a -> s{_eqsKind = a})
628+
629+instance FromJSON ExplainQueryStep where
630+ parseJSON
631+ = withObject "ExplainQueryStep"
632+ (\ o ->
633+ ExplainQueryStep <$>
634+ (o .:? "substeps" .!= mempty) <*> (o .:? "kind"))
635+
636+instance ToJSON ExplainQueryStep where
637+ toJSON ExplainQueryStep{..}
638+ = object
639+ (catMaybes
640+ [("substeps" .=) <$> _eqsSubsteps,
641+ ("kind" .=) <$> _eqsKind])
642+
643+--
644+-- /See:/ 'bigtableColumnFamily' smart constructor.
645+data BigtableColumnFamily = BigtableColumnFamily
646+ { _bcfFamilyId :: !(Maybe Text)
647+ , _bcfColumns :: !(Maybe [BigtableColumn])
648+ , _bcfOnlyReadLatest :: !(Maybe Bool)
649+ , _bcfType :: !(Maybe Text)
650+ , _bcfEncoding :: !(Maybe Text)
651+ } deriving (Eq,Show,Data,Typeable,Generic)
652+
653+-- | Creates a value of 'BigtableColumnFamily' with the minimum fields required to make a request.
654+--
655+-- Use one of the following lenses to modify other fields as desired:
656+--
657+-- * 'bcfFamilyId'
658+--
659+-- * 'bcfColumns'
660+--
661+-- * 'bcfOnlyReadLatest'
662+--
663+-- * 'bcfType'
664+--
665+-- * 'bcfEncoding'
666+bigtableColumnFamily
667+ :: BigtableColumnFamily
668+bigtableColumnFamily =
669+ BigtableColumnFamily
670+ { _bcfFamilyId = Nothing
671+ , _bcfColumns = Nothing
672+ , _bcfOnlyReadLatest = Nothing
673+ , _bcfType = Nothing
674+ , _bcfEncoding = Nothing
675+ }
676+
677+-- | Identifier of the column family.
678+bcfFamilyId :: Lens' BigtableColumnFamily (Maybe Text)
679+bcfFamilyId
680+ = lens _bcfFamilyId (\ s a -> s{_bcfFamilyId = a})
681+
682+-- | [Optional] Lists of columns that should be exposed as individual fields
683+-- as opposed to a list of (column name, value) pairs. All columns whose
684+-- qualifier matches a qualifier in this list can be accessed as .. Other
685+-- columns can be accessed as a list through .Column field.
686+bcfColumns :: Lens' BigtableColumnFamily [BigtableColumn]
687+bcfColumns
688+ = lens _bcfColumns (\ s a -> s{_bcfColumns = a}) .
689+ _Default
690+ . _Coerce
691+
692+-- | [Optional] If this is set only the latest version of value are exposed
693+-- for all columns in this column family. This can be overridden for a
694+-- specific column by listing that column in \'columns\' and specifying a
695+-- different setting for that column.
696+bcfOnlyReadLatest :: Lens' BigtableColumnFamily (Maybe Bool)
697+bcfOnlyReadLatest
698+ = lens _bcfOnlyReadLatest
699+ (\ s a -> s{_bcfOnlyReadLatest = a})
700+
701+-- | [Optional] The type to convert the value in cells of this column family.
702+-- The values are expected to be encoded using HBase Bytes.toBytes function
703+-- when using the BINARY encoding value. Following BigQuery types are
704+-- allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Defaut
705+-- type is BYTES. This can be overridden for a specific column by listing
706+-- that column in \'columns\' and specifying a type for it.
707+bcfType :: Lens' BigtableColumnFamily (Maybe Text)
708+bcfType = lens _bcfType (\ s a -> s{_bcfType = a})
709+
710+-- | [Optional] The encoding of the values when the type is not STRING.
711+-- Acceptable encoding values are: TEXT - indicates values are alphanumeric
712+-- text strings. BINARY - indicates values are encoded using HBase
713+-- Bytes.toBytes family of functions. This can be overridden for a specific
714+-- column by listing that column in \'columns\' and specifying an encoding
715+-- for it.
716+bcfEncoding :: Lens' BigtableColumnFamily (Maybe Text)
717+bcfEncoding
718+ = lens _bcfEncoding (\ s a -> s{_bcfEncoding = a})
719+
720+instance FromJSON BigtableColumnFamily where
721+ parseJSON
722+ = withObject "BigtableColumnFamily"
723+ (\ o ->
724+ BigtableColumnFamily <$>
725+ (o .:? "familyId") <*> (o .:? "columns" .!= mempty)
726+ <*> (o .:? "onlyReadLatest")
727+ <*> (o .:? "type")
728+ <*> (o .:? "encoding"))
729+
730+instance ToJSON BigtableColumnFamily where
731+ toJSON BigtableColumnFamily{..}
732+ = object
733+ (catMaybes
734+ [("familyId" .=) <$> _bcfFamilyId,
735+ ("columns" .=) <$> _bcfColumns,
736+ ("onlyReadLatest" .=) <$> _bcfOnlyReadLatest,
737+ ("type" .=) <$> _bcfType,
738+ ("encoding" .=) <$> _bcfEncoding])
739+
596--
740--
597-- /See:/ 'jobStatistics' smart constructor.
741-- /See:/ 'jobStatistics' smart constructor.
598data JobStatistics = JobStatistics
742data JobStatistics = JobStatistics
@@ -891,14 +1035,77 @@ instance ToJSON DataSet where
891 _dsDefaultTableExpirationMs,
1035 _dsDefaultTableExpirationMs,
892 ("description" .=) <$> _dsDescription])
1036 ("description" .=) <$> _dsDescription])
893
1037
1038+--
1039+-- /See:/ 'bigtableOptions' smart constructor.
1040+data BigtableOptions = BigtableOptions
1041+ { _boIgnoreUnspecifiedColumnFamilies :: !(Maybe Bool)
1042+ , _boColumnFamilies :: !(Maybe [BigtableColumnFamily])
1043+ } deriving (Eq,Show,Data,Typeable,Generic)
1044+
1045+-- | Creates a value of 'BigtableOptions' with the minimum fields required to make a request.
1046+--
1047+-- Use one of the following lenses to modify other fields as desired:
1048+--
1049+-- * 'boIgnoreUnspecifiedColumnFamilies'
1050+--
1051+-- * 'boColumnFamilies'
1052+bigtableOptions
1053+ :: BigtableOptions
1054+bigtableOptions =
1055+ BigtableOptions
1056+ { _boIgnoreUnspecifiedColumnFamilies = Nothing
1057+ , _boColumnFamilies = Nothing
1058+ }
1059+
1060+-- | [Optional] If field is true, then the column families that are not
1061+-- specified in columnFamilies list are not exposed in the table schema.
1062+-- Otherwise, they are read with BYTES type values. The default value is
1063+-- false.
1064+boIgnoreUnspecifiedColumnFamilies :: Lens' BigtableOptions (Maybe Bool)
1065+boIgnoreUnspecifiedColumnFamilies
1066+ = lens _boIgnoreUnspecifiedColumnFamilies
1067+ (\ s a -> s{_boIgnoreUnspecifiedColumnFamilies = a})
1068+
1069+-- | [Optional] List of column families to expose in the table schema along
1070+-- with their types. This list restricts the column families that can be
1071+-- referenced in queries and specifies their value types. You can use this
1072+-- list to do type conversions - see the \'type\' field for more details.
1073+-- If you leave this list empty, all column families are present in the
1074+-- table schema and their values are read as BYTES. During a query only the
1075+-- column families referenced in that query are read from Bigtable.
1076+boColumnFamilies :: Lens' BigtableOptions [BigtableColumnFamily]
1077+boColumnFamilies
1078+ = lens _boColumnFamilies
1079+ (\ s a -> s{_boColumnFamilies = a})
1080+ . _Default
1081+ . _Coerce
1082+
1083+instance FromJSON BigtableOptions where
1084+ parseJSON
1085+ = withObject "BigtableOptions"
1086+ (\ o ->
1087+ BigtableOptions <$>
1088+ (o .:? "ignoreUnspecifiedColumnFamilies") <*>
1089+ (o .:? "columnFamilies" .!= mempty))
1090+
1091+instance ToJSON BigtableOptions where
1092+ toJSON BigtableOptions{..}
1093+ = object
1094+ (catMaybes
1095+ [("ignoreUnspecifiedColumnFamilies" .=) <$>
1096+ _boIgnoreUnspecifiedColumnFamilies,
1097+ ("columnFamilies" .=) <$> _boColumnFamilies])
1098+
894--
1099--
895-- /See:/ 'externalDataConfiguration' smart constructor.
1100-- /See:/ 'externalDataConfiguration' smart constructor.
896data ExternalDataConfiguration = ExternalDataConfiguration
1101data ExternalDataConfiguration = ExternalDataConfiguration
1102+ { _edcBigtableOptions :: !(Maybe BigtableOptions)
897− { _edcIgnoreUnknownValues :: !(Maybe Bool)
1103+ , _edcIgnoreUnknownValues :: !(Maybe Bool)
898 , _edcCompression :: !(Maybe Text)
1104 , _edcCompression :: !(Maybe Text)
899 , _edcSourceFormat :: !(Maybe Text)
1105 , _edcSourceFormat :: !(Maybe Text)
900 , _edcSchema :: !(Maybe TableSchema)
1106 , _edcSchema :: !(Maybe TableSchema)
901 , _edcMaxBadRecords :: !(Maybe (Textual Int32))
1107 , _edcMaxBadRecords :: !(Maybe (Textual Int32))
1108+ , _edcAutodetect :: !(Maybe Bool)
902 , _edcSourceURIs :: !(Maybe [Text])
1109 , _edcSourceURIs :: !(Maybe [Text])
903 , _edcCSVOptions :: !(Maybe CSVOptions)
1110 , _edcCSVOptions :: !(Maybe CSVOptions)
904 } deriving (Eq,Show,Data,Typeable,Generic)
1111 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -907,6 +1114,8 @@ data ExternalDataConfiguration = ExternalDataConfiguration
907--
1114--
908-- Use one of the following lenses to modify other fields as desired:
1115-- Use one of the following lenses to modify other fields as desired:
909--
1116--
1117+-- * 'edcBigtableOptions'
1118+--
910-- * 'edcIgnoreUnknownValues'
1119-- * 'edcIgnoreUnknownValues'
911--
1120--
912-- * 'edcCompression'
1121-- * 'edcCompression'
@@ -917,6 +1126,8 @@ data ExternalDataConfiguration = ExternalDataConfiguration
917--
1126--
918-- * 'edcMaxBadRecords'
1127-- * 'edcMaxBadRecords'
919--
1128--
1129+-- * 'edcAutodetect'
1130+--
920-- * 'edcSourceURIs'
1131-- * 'edcSourceURIs'
921--
1132--
922-- * 'edcCSVOptions'
1133-- * 'edcCSVOptions'
@@ -924,42 +1135,61 @@ externalDataConfiguration
924 :: ExternalDataConfiguration
1135 :: ExternalDataConfiguration
925externalDataConfiguration =
1136externalDataConfiguration =
926 ExternalDataConfiguration
1137 ExternalDataConfiguration
1138+ { _edcBigtableOptions = Nothing
927− { _edcIgnoreUnknownValues = Nothing
1139+ , _edcIgnoreUnknownValues = Nothing
928 , _edcCompression = Nothing
1140 , _edcCompression = Nothing
929 , _edcSourceFormat = Nothing
1141 , _edcSourceFormat = Nothing
930 , _edcSchema = Nothing
1142 , _edcSchema = Nothing
931 , _edcMaxBadRecords = Nothing
1143 , _edcMaxBadRecords = Nothing
1144+ , _edcAutodetect = Nothing
932 , _edcSourceURIs = Nothing
1145 , _edcSourceURIs = Nothing
933 , _edcCSVOptions = Nothing
1146 , _edcCSVOptions = Nothing
934 }
1147 }
935
1148
1149+-- | [Optional] Additional options if sourceFormat is set to BIGTABLE.
1150+edcBigtableOptions :: Lens' ExternalDataConfiguration (Maybe BigtableOptions)
1151+edcBigtableOptions
1152+ = lens _edcBigtableOptions
1153+ (\ s a -> s{_edcBigtableOptions = a})
1154+
936-- | [Optional] Indicates if BigQuery should allow extra values that are not
1155-- | [Optional] Indicates if BigQuery should allow extra values that are not
937-- represented in the table schema. If true, the extra values are ignored.
1156-- represented in the table schema. If true, the extra values are ignored.
938-- If false, records with extra columns are treated as bad records, and if
1157-- If false, records with extra columns are treated as bad records, and if
939-- there are too many bad records, an invalid error is returned in the job
1158-- there are too many bad records, an invalid error is returned in the job
940-- result. The default value is false. The sourceFormat property determines
1159-- result. The default value is false. The sourceFormat property determines
941-- what BigQuery treats as an extra value: CSV: Trailing columns JSON:
1160-- what BigQuery treats as an extra value: CSV: Trailing columns JSON:
942−-- Named values that don\'t match any column names
1161+-- Named values that don\'t match any column names Google Cloud Bigtable:
1162+-- This setting is ignored. Google Cloud Datastore backups: This setting is
1163+-- ignored. Avro: This setting is ignored.
943edcIgnoreUnknownValues :: Lens' ExternalDataConfiguration (Maybe Bool)
1164edcIgnoreUnknownValues :: Lens' ExternalDataConfiguration (Maybe Bool)
944edcIgnoreUnknownValues
1165edcIgnoreUnknownValues
945 = lens _edcIgnoreUnknownValues
1166 = lens _edcIgnoreUnknownValues
946 (\ s a -> s{_edcIgnoreUnknownValues = a})
1167 (\ s a -> s{_edcIgnoreUnknownValues = a})
947
1168
948-- | [Optional] The compression type of the data source. Possible values
1169-- | [Optional] The compression type of the data source. Possible values
949−-- include GZIP and NONE. The default value is NONE.
1170+-- include GZIP and NONE. The default value is NONE. This setting is
1171+-- ignored for Google Cloud Bigtable, Google Cloud Datastore backups and
1172+-- Avro formats.
950edcCompression :: Lens' ExternalDataConfiguration (Maybe Text)
1173edcCompression :: Lens' ExternalDataConfiguration (Maybe Text)
951edcCompression
1174edcCompression
952 = lens _edcCompression
1175 = lens _edcCompression
953 (\ s a -> s{_edcCompression = a})
1176 (\ s a -> s{_edcCompression = a})
954
1177
955-- | [Required] The data format. For CSV files, specify \"CSV\". For
1178-- | [Required] The data format. For CSV files, specify \"CSV\". For
956−-- newline-delimited JSON, specify \"NEWLINE_DELIMITED_JSON\".
1179+-- newline-delimited JSON, specify \"NEWLINE_DELIMITED_JSON\". For Avro
1180+-- files, specify \"AVRO\". For Google Cloud Datastore backups, specify
1181+-- \"DATASTORE_BACKUP\". [Experimental] For Google Cloud Bigtable, specify
1182+-- \"BIGTABLE\". Please note that reading from Google Cloud Bigtable is
1183+-- experimental and has to be enabled for your project. Please contact
1184+-- Google Cloud Support to enable this for your project.
957edcSourceFormat :: Lens' ExternalDataConfiguration (Maybe Text)
1185edcSourceFormat :: Lens' ExternalDataConfiguration (Maybe Text)
958edcSourceFormat
1186edcSourceFormat
959 = lens _edcSourceFormat
1187 = lens _edcSourceFormat
960 (\ s a -> s{_edcSourceFormat = a})
1188 (\ s a -> s{_edcSourceFormat = a})
961
1189
962−-- | [Required] The schema for the data.
1190+-- | [Optional] The schema for the data. Schema is required for CSV and JSON
1191+-- formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore
1192+-- backups, and Avro formats.
963edcSchema :: Lens' ExternalDataConfiguration (Maybe TableSchema)
1193edcSchema :: Lens' ExternalDataConfiguration (Maybe TableSchema)
964edcSchema
1194edcSchema
965 = lens _edcSchema (\ s a -> s{_edcSchema = a})
1195 = lens _edcSchema (\ s a -> s{_edcSchema = a})
@@ -967,18 +1197,31 @@ edcSchema
967-- | [Optional] The maximum number of bad records that BigQuery can ignore
1197-- | [Optional] The maximum number of bad records that BigQuery can ignore
968-- when reading data. If the number of bad records exceeds this value, an
1198-- when reading data. If the number of bad records exceeds this value, an
969-- invalid error is returned in the job result. The default value is 0,
1199-- invalid error is returned in the job result. The default value is 0,
970−-- which requires that all records are valid.
1200+-- which requires that all records are valid. This setting is ignored for
1201+-- Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
971edcMaxBadRecords :: Lens' ExternalDataConfiguration (Maybe Int32)
1202edcMaxBadRecords :: Lens' ExternalDataConfiguration (Maybe Int32)
972edcMaxBadRecords
1203edcMaxBadRecords
973 = lens _edcMaxBadRecords
1204 = lens _edcMaxBadRecords
974 (\ s a -> s{_edcMaxBadRecords = a})
1205 (\ s a -> s{_edcMaxBadRecords = a})
975 . mapping _Coerce
1206 . mapping _Coerce
976
1207
1208+-- | [Experimental] Try to detect schema and format options automatically.
1209+-- Any option specified explicitly will be honored.
1210+edcAutodetect :: Lens' ExternalDataConfiguration (Maybe Bool)
1211+edcAutodetect
1212+ = lens _edcAutodetect
1213+ (\ s a -> s{_edcAutodetect = a})
1214+
977-- | [Required] The fully-qualified URIs that point to your data in Google
1215-- | [Required] The fully-qualified URIs that point to your data in Google
978−-- Cloud Storage. Each URI can contain one \'*\' wildcard character and it
1216+-- Cloud. For Google Cloud Storage URIs: Each URI can contain one \'*\'
979−-- must come after the \'bucket\' name. Size limits related to load jobs
1217+-- wildcard character and it must come after the \'bucket\' name. Size
980−-- apply to external data sources, plus an additional limit of 10 GB
1218+-- limits related to load jobs apply to external data sources, plus an
981−-- maximum size across all URIs.
1219+-- additional limit of 10 GB maximum size across all URIs. For Google Cloud
1220+-- Bigtable URIs: Exactly one URI can be specified and it has be a fully
1221+-- specified and valid HTTPS URL for a Google Cloud Bigtable table. For
1222+-- Google Cloud Datastore backups, exactly one URI can be specified, and it
1223+-- must end with \'.backup_info\'. Also, the \'*\' wildcard character is
1224+-- not allowed.
982edcSourceURIs :: Lens' ExternalDataConfiguration [Text]
1225edcSourceURIs :: Lens' ExternalDataConfiguration [Text]
983edcSourceURIs
1226edcSourceURIs
984 = lens _edcSourceURIs
1227 = lens _edcSourceURIs
@@ -997,11 +1240,13 @@ instance FromJSON ExternalDataConfiguration where
997 = withObject "ExternalDataConfiguration"
1240 = withObject "ExternalDataConfiguration"
998 (\ o ->
1241 (\ o ->
999 ExternalDataConfiguration <$>
1242 ExternalDataConfiguration <$>
1243+ (o .:? "bigtableOptions") <*>
1000− (o .:? "ignoreUnknownValues") <*>
1244+ (o .:? "ignoreUnknownValues")
1001− (o .:? "compression")
1245+ <*> (o .:? "compression")
1002 <*> (o .:? "sourceFormat")
1246 <*> (o .:? "sourceFormat")
1003 <*> (o .:? "schema")
1247 <*> (o .:? "schema")
1004 <*> (o .:? "maxBadRecords")
1248 <*> (o .:? "maxBadRecords")
1249+ <*> (o .:? "autodetect")
1005 <*> (o .:? "sourceUris" .!= mempty)
1250 <*> (o .:? "sourceUris" .!= mempty)
1006 <*> (o .:? "csvOptions"))
1251 <*> (o .:? "csvOptions"))
1007
1252
@@ -1009,12 +1254,14 @@ instance ToJSON ExternalDataConfiguration where
1009 toJSON ExternalDataConfiguration{..}
1254 toJSON ExternalDataConfiguration{..}
1010 = object
1255 = object
1011 (catMaybes
1256 (catMaybes
1257+ [("bigtableOptions" .=) <$> _edcBigtableOptions,
1012− [("ignoreUnknownValues" .=) <$>
1258+ ("ignoreUnknownValues" .=) <$>
1013 _edcIgnoreUnknownValues,
1259 _edcIgnoreUnknownValues,
1014 ("compression" .=) <$> _edcCompression,
1260 ("compression" .=) <$> _edcCompression,
1015 ("sourceFormat" .=) <$> _edcSourceFormat,
1261 ("sourceFormat" .=) <$> _edcSourceFormat,
1016 ("schema" .=) <$> _edcSchema,
1262 ("schema" .=) <$> _edcSchema,
1017 ("maxBadRecords" .=) <$> _edcMaxBadRecords,
1263 ("maxBadRecords" .=) <$> _edcMaxBadRecords,
1264+ ("autodetect" .=) <$> _edcAutodetect,
1018 ("sourceUris" .=) <$> _edcSourceURIs,
1265 ("sourceUris" .=) <$> _edcSourceURIs,
1019 ("csvOptions" .=) <$> _edcCSVOptions])
1266 ("csvOptions" .=) <$> _edcCSVOptions])
1020
1267
@@ -1413,6 +1660,7 @@ data QueryRequest = QueryRequest
1413 , _qrKind :: !Text
1660 , _qrKind :: !Text
1414 , _qrQuery :: !(Maybe Text)
1661 , _qrQuery :: !(Maybe Text)
1415 , _qrTimeoutMs :: !(Maybe (Textual Word32))
1662 , _qrTimeoutMs :: !(Maybe (Textual Word32))
1663+ , _qrUseLegacySQL :: !(Maybe Bool)
1416 , _qrDryRun :: !(Maybe Bool)
1664 , _qrDryRun :: !(Maybe Bool)
1417 , _qrMaxResults :: !(Maybe (Textual Word32))
1665 , _qrMaxResults :: !(Maybe (Textual Word32))
1418 , _qrDefaultDataSet :: !(Maybe DataSetReference)
1666 , _qrDefaultDataSet :: !(Maybe DataSetReference)
@@ -1432,6 +1680,8 @@ data QueryRequest = QueryRequest
1432--
1680--
1433-- * 'qrTimeoutMs'
1681-- * 'qrTimeoutMs'
1434--
1682--
1683+-- * 'qrUseLegacySQL'
1684+--
1435-- * 'qrDryRun'
1685-- * 'qrDryRun'
1436--
1686--
1437-- * 'qrMaxResults'
1687-- * 'qrMaxResults'
@@ -1446,6 +1696,7 @@ queryRequest =
1446 , _qrKind = "bigquery#queryRequest"
1696 , _qrKind = "bigquery#queryRequest"
1447 , _qrQuery = Nothing
1697 , _qrQuery = Nothing
1448 , _qrTimeoutMs = Nothing
1698 , _qrTimeoutMs = Nothing
1699+ , _qrUseLegacySQL = Nothing
1449 , _qrDryRun = Nothing
1700 , _qrDryRun = Nothing
1450 , _qrMaxResults = Nothing
1701 , _qrMaxResults = Nothing
1451 , _qrDefaultDataSet = Nothing
1702 , _qrDefaultDataSet = Nothing
@@ -1487,6 +1738,18 @@ qrTimeoutMs
1487 = lens _qrTimeoutMs (\ s a -> s{_qrTimeoutMs = a}) .
1738 = lens _qrTimeoutMs (\ s a -> s{_qrTimeoutMs = a}) .
1488 mapping _Coerce
1739 mapping _Coerce
1489
1740
1741+-- | [Experimental] Specifies whether to use BigQuery\'s legacy SQL dialect
1742+-- for this query. The default value is true. If set to false, the query
1743+-- will use BigQuery\'s updated SQL dialect with improved standards
1744+-- compliance. When using BigQuery\'s updated SQL, the values of
1745+-- allowLargeResults and flattenResults are ignored. Queries with
1746+-- useLegacySql set to false will be run as if allowLargeResults is true
1747+-- and flattenResults is false.
1748+qrUseLegacySQL :: Lens' QueryRequest (Maybe Bool)
1749+qrUseLegacySQL
1750+ = lens _qrUseLegacySQL
1751+ (\ s a -> s{_qrUseLegacySQL = a})
1752+
1490-- | [Optional] If set to true, BigQuery doesn\'t run the job. Instead, if
1753-- | [Optional] If set to true, BigQuery doesn\'t run the job. Instead, if
1491-- the query is valid, BigQuery returns statistics about the job such as
1754-- the query is valid, BigQuery returns statistics about the job such as
1492-- how many bytes would be processed. If the query is invalid, an error
1755-- how many bytes would be processed. If the query is invalid, an error
@@ -1523,6 +1786,7 @@ instance FromJSON QueryRequest where
1523 <*> (o .:? "kind" .!= "bigquery#queryRequest")
1786 <*> (o .:? "kind" .!= "bigquery#queryRequest")
1524 <*> (o .:? "query")
1787 <*> (o .:? "query")
1525 <*> (o .:? "timeoutMs")
1788 <*> (o .:? "timeoutMs")
1789+ <*> (o .:? "useLegacySql")
1526 <*> (o .:? "dryRun")
1790 <*> (o .:? "dryRun")
1527 <*> (o .:? "maxResults")
1791 <*> (o .:? "maxResults")
1528 <*> (o .:? "defaultDataset"))
1792 <*> (o .:? "defaultDataset"))
@@ -1535,6 +1799,7 @@ instance ToJSON QueryRequest where
1535 ("preserveNulls" .=) <$> _qrPreserveNulls,
1799 ("preserveNulls" .=) <$> _qrPreserveNulls,
1536 Just ("kind" .= _qrKind), ("query" .=) <$> _qrQuery,
1800 Just ("kind" .= _qrKind), ("query" .=) <$> _qrQuery,
1537 ("timeoutMs" .=) <$> _qrTimeoutMs,
1801 ("timeoutMs" .=) <$> _qrTimeoutMs,
1802+ ("useLegacySql" .=) <$> _qrUseLegacySQL,
1538 ("dryRun" .=) <$> _qrDryRun,
1803 ("dryRun" .=) <$> _qrDryRun,
1539 ("maxResults" .=) <$> _qrMaxResults,
1804 ("maxResults" .=) <$> _qrMaxResults,
1540 ("defaultDataset" .=) <$> _qrDefaultDataSet])
1805 ("defaultDataset" .=) <$> _qrDefaultDataSet])
@@ -1615,6 +1880,196 @@ instance ToJSON ProjectReference where
1615 = object
1880 = object
1616 (catMaybes [("projectId" .=) <$> _prProjectId])
1881 (catMaybes [("projectId" .=) <$> _prProjectId])
1617
1882
1883+--
1884+-- /See:/ 'explainQueryStage' smart constructor.
1885+data ExplainQueryStage = ExplainQueryStage
1886+ { _eqsWaitRatioMax :: !(Maybe (Textual Double))
1887+ , _eqsRecordsWritten :: !(Maybe (Textual Int64))
1888+ , _eqsSteps :: !(Maybe [ExplainQueryStep])
1889+ , _eqsWriteRatioAvg :: !(Maybe (Textual Double))
1890+ , _eqsRecordsRead :: !(Maybe (Textual Int64))
1891+ , _eqsComputeRatioAvg :: !(Maybe (Textual Double))
1892+ , _eqsName :: !(Maybe Text)
1893+ , _eqsReadRatioMax :: !(Maybe (Textual Double))
1894+ , _eqsWaitRatioAvg :: !(Maybe (Textual Double))
1895+ , _eqsId :: !(Maybe (Textual Int64))
1896+ , _eqsComputeRatioMax :: !(Maybe (Textual Double))
1897+ , _eqsWriteRatioMax :: !(Maybe (Textual Double))
1898+ , _eqsReadRatioAvg :: !(Maybe (Textual Double))
1899+ } deriving (Eq,Show,Data,Typeable,Generic)
1900+
1901+-- | Creates a value of 'ExplainQueryStage' with the minimum fields required to make a request.
1902+--
1903+-- Use one of the following lenses to modify other fields as desired:
1904+--
1905+-- * 'eqsWaitRatioMax'
1906+--
1907+-- * 'eqsRecordsWritten'
1908+--
1909+-- * 'eqsSteps'
1910+--
1911+-- * 'eqsWriteRatioAvg'
1912+--
1913+-- * 'eqsRecordsRead'
1914+--
1915+-- * 'eqsComputeRatioAvg'
1916+--
1917+-- * 'eqsName'
1918+--
1919+-- * 'eqsReadRatioMax'
1920+--
1921+-- * 'eqsWaitRatioAvg'
1922+--
1923+-- * 'eqsId'
1924+--
1925+-- * 'eqsComputeRatioMax'
1926+--
1927+-- * 'eqsWriteRatioMax'
1928+--
1929+-- * 'eqsReadRatioAvg'
1930+explainQueryStage
1931+ :: ExplainQueryStage
1932+explainQueryStage =
1933+ ExplainQueryStage
1934+ { _eqsWaitRatioMax = Nothing
1935+ , _eqsRecordsWritten = Nothing
1936+ , _eqsSteps = Nothing
1937+ , _eqsWriteRatioAvg = Nothing
1938+ , _eqsRecordsRead = Nothing
1939+ , _eqsComputeRatioAvg = Nothing
1940+ , _eqsName = Nothing
1941+ , _eqsReadRatioMax = Nothing
1942+ , _eqsWaitRatioAvg = Nothing
1943+ , _eqsId = Nothing
1944+ , _eqsComputeRatioMax = Nothing
1945+ , _eqsWriteRatioMax = Nothing
1946+ , _eqsReadRatioAvg = Nothing
1947+ }
1948+
1949+-- | Relative amount of time the slowest shard spent waiting to be scheduled.
1950+eqsWaitRatioMax :: Lens' ExplainQueryStage (Maybe Double)
1951+eqsWaitRatioMax
1952+ = lens _eqsWaitRatioMax
1953+ (\ s a -> s{_eqsWaitRatioMax = a})
1954+ . mapping _Coerce
1955+
1956+-- | Number of records written by the stage.
1957+eqsRecordsWritten :: Lens' ExplainQueryStage (Maybe Int64)
1958+eqsRecordsWritten
1959+ = lens _eqsRecordsWritten
1960+ (\ s a -> s{_eqsRecordsWritten = a})
1961+ . mapping _Coerce
1962+
1963+-- | List of operations within the stage in dependency order (approximately
1964+-- chronological).
1965+eqsSteps :: Lens' ExplainQueryStage [ExplainQueryStep]
1966+eqsSteps
1967+ = lens _eqsSteps (\ s a -> s{_eqsSteps = a}) .
1968+ _Default
1969+ . _Coerce
1970+
1971+-- | Relative amount of time the average shard spent on writing output.
1972+eqsWriteRatioAvg :: Lens' ExplainQueryStage (Maybe Double)
1973+eqsWriteRatioAvg
1974+ = lens _eqsWriteRatioAvg
1975+ (\ s a -> s{_eqsWriteRatioAvg = a})
1976+ . mapping _Coerce
1977+
1978+-- | Number of records read into the stage.
1979+eqsRecordsRead :: Lens' ExplainQueryStage (Maybe Int64)
1980+eqsRecordsRead
1981+ = lens _eqsRecordsRead
1982+ (\ s a -> s{_eqsRecordsRead = a})
1983+ . mapping _Coerce
1984+
1985+-- | Relative amount of time the average shard spent on CPU-bound tasks.
1986+eqsComputeRatioAvg :: Lens' ExplainQueryStage (Maybe Double)
1987+eqsComputeRatioAvg
1988+ = lens _eqsComputeRatioAvg
1989+ (\ s a -> s{_eqsComputeRatioAvg = a})
1990+ . mapping _Coerce
1991+
1992+-- | Human-readable name for stage.
1993+eqsName :: Lens' ExplainQueryStage (Maybe Text)
1994+eqsName = lens _eqsName (\ s a -> s{_eqsName = a})
1995+
1996+-- | Relative amount of time the slowest shard spent reading input.
1997+eqsReadRatioMax :: Lens' ExplainQueryStage (Maybe Double)
1998+eqsReadRatioMax
1999+ = lens _eqsReadRatioMax
2000+ (\ s a -> s{_eqsReadRatioMax = a})
2001+ . mapping _Coerce
2002+
2003+-- | Relative amount of time the average shard spent waiting to be scheduled.
2004+eqsWaitRatioAvg :: Lens' ExplainQueryStage (Maybe Double)
2005+eqsWaitRatioAvg
2006+ = lens _eqsWaitRatioAvg
2007+ (\ s a -> s{_eqsWaitRatioAvg = a})
2008+ . mapping _Coerce
2009+
2010+-- | Unique ID for stage within plan.
2011+eqsId :: Lens' ExplainQueryStage (Maybe Int64)
2012+eqsId
2013+ = lens _eqsId (\ s a -> s{_eqsId = a}) .
2014+ mapping _Coerce
2015+
2016+-- | Relative amount of time the slowest shard spent on CPU-bound tasks.
2017+eqsComputeRatioMax :: Lens' ExplainQueryStage (Maybe Double)
2018+eqsComputeRatioMax
2019+ = lens _eqsComputeRatioMax
2020+ (\ s a -> s{_eqsComputeRatioMax = a})
2021+ . mapping _Coerce
2022+
2023+-- | Relative amount of time the slowest shard spent on writing output.
2024+eqsWriteRatioMax :: Lens' ExplainQueryStage (Maybe Double)
2025+eqsWriteRatioMax
2026+ = lens _eqsWriteRatioMax
2027+ (\ s a -> s{_eqsWriteRatioMax = a})
2028+ . mapping _Coerce
2029+
2030+-- | Relative amount of time the average shard spent reading input.
2031+eqsReadRatioAvg :: Lens' ExplainQueryStage (Maybe Double)
2032+eqsReadRatioAvg
2033+ = lens _eqsReadRatioAvg
2034+ (\ s a -> s{_eqsReadRatioAvg = a})
2035+ . mapping _Coerce
2036+
2037+instance FromJSON ExplainQueryStage where
2038+ parseJSON
2039+ = withObject "ExplainQueryStage"
2040+ (\ o ->
2041+ ExplainQueryStage <$>
2042+ (o .:? "waitRatioMax") <*> (o .:? "recordsWritten")
2043+ <*> (o .:? "steps" .!= mempty)
2044+ <*> (o .:? "writeRatioAvg")
2045+ <*> (o .:? "recordsRead")
2046+ <*> (o .:? "computeRatioAvg")
2047+ <*> (o .:? "name")
2048+ <*> (o .:? "readRatioMax")
2049+ <*> (o .:? "waitRatioAvg")
2050+ <*> (o .:? "id")
2051+ <*> (o .:? "computeRatioMax")
2052+ <*> (o .:? "writeRatioMax")
2053+ <*> (o .:? "readRatioAvg"))
2054+
2055+instance ToJSON ExplainQueryStage where
2056+ toJSON ExplainQueryStage{..}
2057+ = object
2058+ (catMaybes
2059+ [("waitRatioMax" .=) <$> _eqsWaitRatioMax,
2060+ ("recordsWritten" .=) <$> _eqsRecordsWritten,
2061+ ("steps" .=) <$> _eqsSteps,
2062+ ("writeRatioAvg" .=) <$> _eqsWriteRatioAvg,
2063+ ("recordsRead" .=) <$> _eqsRecordsRead,
2064+ ("computeRatioAvg" .=) <$> _eqsComputeRatioAvg,
2065+ ("name" .=) <$> _eqsName,
2066+ ("readRatioMax" .=) <$> _eqsReadRatioMax,
2067+ ("waitRatioAvg" .=) <$> _eqsWaitRatioAvg,
2068+ ("id" .=) <$> _eqsId,
2069+ ("computeRatioMax" .=) <$> _eqsComputeRatioMax,
2070+ ("writeRatioMax" .=) <$> _eqsWriteRatioMax,
2071+ ("readRatioAvg" .=) <$> _eqsReadRatioAvg])
2072+
1618--
2073--
1619-- /See:/ 'jobConfigurationLoad' smart constructor.
2074-- /See:/ 'jobConfigurationLoad' smart constructor.
1620data JobConfigurationLoad = JobConfigurationLoad
2075data JobConfigurationLoad = JobConfigurationLoad
@@ -1803,8 +2258,8 @@ jclSourceFormat
1803 (\ s a -> s{_jclSourceFormat = a})
2258 (\ s a -> s{_jclSourceFormat = a})
1804
2259
1805-- | [Optional] The schema for the destination table. The schema can be
2260-- | [Optional] The schema for the destination table. The schema can be
1806−-- omitted if the destination table already exists or if the schema can be
2261+-- omitted if the destination table already exists, or if you\'re loading
1807−-- inferred from the loaded data.
2262+-- data from Google Cloud Datastore.
1808jclSchema :: Lens' JobConfigurationLoad (Maybe TableSchema)
2263jclSchema :: Lens' JobConfigurationLoad (Maybe TableSchema)
1809jclSchema
2264jclSchema
1810 = lens _jclSchema (\ s a -> s{_jclSchema = a})
2265 = lens _jclSchema (\ s a -> s{_jclSchema = a})
@@ -1847,7 +2302,9 @@ jclEncoding :: Lens' JobConfigurationLoad (Maybe Text)
1847jclEncoding
2302jclEncoding
1848 = lens _jclEncoding (\ s a -> s{_jclEncoding = a})
2303 = lens _jclEncoding (\ s a -> s{_jclEncoding = a})
1849
2304
1850−-- | [Optional] The separator for fields in a CSV file. BigQuery converts the
2305+-- | [Optional] The separator for fields in a CSV file. The separator can be
2306+-- any ISO-8859-1 single-byte character. To use a character in the range
2307+-- 128-255, you must encode the character as UTF8. BigQuery converts the
1851-- string to ISO-8859-1 encoding, and then uses the first byte of the
2308-- string to ISO-8859-1 encoding, and then uses the first byte of the
1852-- encoded string to split the data in its raw, binary state. BigQuery also
2309-- encoded string to split the data in its raw, binary state. BigQuery also
1853-- supports the escape sequence \"\\t\" to specify a tab separator. The
2310-- supports the escape sequence \"\\t\" to specify a tab separator. The
@@ -1958,6 +2415,7 @@ data TableDataInsertAllRequest = TableDataInsertAllRequest
1958 { _tdiarKind :: !Text
2415 { _tdiarKind :: !Text
1959 , _tdiarIgnoreUnknownValues :: !(Maybe Bool)
2416 , _tdiarIgnoreUnknownValues :: !(Maybe Bool)
1960 , _tdiarRows :: !(Maybe [TableDataInsertAllRequestRowsItem])
2417 , _tdiarRows :: !(Maybe [TableDataInsertAllRequestRowsItem])
2418+ , _tdiarTemplateSuffix :: !(Maybe Text)
1961 , _tdiarSkipInvalidRows :: !(Maybe Bool)
2419 , _tdiarSkipInvalidRows :: !(Maybe Bool)
1962 } deriving (Eq,Show,Data,Typeable,Generic)
2420 } deriving (Eq,Show,Data,Typeable,Generic)
1963
2421
@@ -1971,6 +2429,8 @@ data TableDataInsertAllRequest = TableDataInsertAllRequest
1971--
2429--
1972-- * 'tdiarRows'
2430-- * 'tdiarRows'
1973--
2431--
2432+-- * 'tdiarTemplateSuffix'
2433+--
1974-- * 'tdiarSkipInvalidRows'
2434-- * 'tdiarSkipInvalidRows'
1975tableDataInsertAllRequest
2435tableDataInsertAllRequest
1976 :: TableDataInsertAllRequest
2436 :: TableDataInsertAllRequest
@@ -1979,6 +2439,7 @@ tableDataInsertAllRequest =
1979 { _tdiarKind = "bigquery#tableDataInsertAllRequest"
2439 { _tdiarKind = "bigquery#tableDataInsertAllRequest"
1980 , _tdiarIgnoreUnknownValues = Nothing
2440 , _tdiarIgnoreUnknownValues = Nothing
1981 , _tdiarRows = Nothing
2441 , _tdiarRows = Nothing
2442+ , _tdiarTemplateSuffix = Nothing
1982 , _tdiarSkipInvalidRows = Nothing
2443 , _tdiarSkipInvalidRows = Nothing
1983 }
2444 }
1984
2445
@@ -2002,6 +2463,17 @@ tdiarRows
2002 _Default
2463 _Default
2003 . _Coerce
2464 . _Coerce
2004
2465
2466+-- | [Experimental] If specified, treats the destination table as a base
2467+-- template, and inserts the rows into an instance table named
2468+-- \"{destination}{templateSuffix}\". BigQuery will manage creation of the
2469+-- instance table, using the schema of the base template table. See
2470+-- https:\/\/cloud.google.com\/bigquery\/streaming-data-into-bigquery#template-tables
2471+-- for considerations when working with templates tables.
2472+tdiarTemplateSuffix :: Lens' TableDataInsertAllRequest (Maybe Text)
2473+tdiarTemplateSuffix
2474+ = lens _tdiarTemplateSuffix
2475+ (\ s a -> s{_tdiarTemplateSuffix = a})
2476+
2005-- | [Optional] Insert all valid rows of a request, even if invalid rows
2477-- | [Optional] Insert all valid rows of a request, even if invalid rows
2006-- exist. The default value is false, which causes the entire request to
2478-- exist. The default value is false, which causes the entire request to
2007-- fail if any invalid rows exist.
2479-- fail if any invalid rows exist.
@@ -2019,6 +2491,7 @@ instance FromJSON TableDataInsertAllRequest where
2019 "bigquery#tableDataInsertAllRequest")
2491 "bigquery#tableDataInsertAllRequest")
2020 <*> (o .:? "ignoreUnknownValues")
2492 <*> (o .:? "ignoreUnknownValues")
2021 <*> (o .:? "rows" .!= mempty)
2493 <*> (o .:? "rows" .!= mempty)
2494+ <*> (o .:? "templateSuffix")
2022 <*> (o .:? "skipInvalidRows"))
2495 <*> (o .:? "skipInvalidRows"))
2023
2496
2024instance ToJSON TableDataInsertAllRequest where
2497instance ToJSON TableDataInsertAllRequest where
@@ -2029,6 +2502,7 @@ instance ToJSON TableDataInsertAllRequest where
2029 ("ignoreUnknownValues" .=) <$>
2502 ("ignoreUnknownValues" .=) <$>
2030 _tdiarIgnoreUnknownValues,
2503 _tdiarIgnoreUnknownValues,
2031 ("rows" .=) <$> _tdiarRows,
2504 ("rows" .=) <$> _tdiarRows,
2505+ ("templateSuffix" .=) <$> _tdiarTemplateSuffix,
2032 ("skipInvalidRows" .=) <$> _tdiarSkipInvalidRows])
2506 ("skipInvalidRows" .=) <$> _tdiarSkipInvalidRows])
2033
2507
2034--
2508--
@@ -2113,6 +2587,121 @@ instance ToJSON ProjectListProjectsItem where
2113 ("id" .=) <$> _plpiId,
2587 ("id" .=) <$> _plpiId,
2114 ("numericId" .=) <$> _plpiNumericId])
2588 ("numericId" .=) <$> _plpiNumericId])
2115
2589
2590+--
2591+-- /See:/ 'bigtableColumn' smart constructor.
2592+data BigtableColumn = BigtableColumn
2593+ { _bcQualifierEncoded :: !(Maybe (Textual Word8))
2594+ , _bcFieldName :: !(Maybe Text)
2595+ , _bcQualifierString :: !(Maybe Text)
2596+ , _bcOnlyReadLatest :: !(Maybe Bool)
2597+ , _bcType :: !(Maybe Text)
2598+ , _bcEncoding :: !(Maybe Text)
2599+ } deriving (Eq,Show,Data,Typeable,Generic)
2600+
2601+-- | Creates a value of 'BigtableColumn' with the minimum fields required to make a request.
2602+--
2603+-- Use one of the following lenses to modify other fields as desired:
2604+--
2605+-- * 'bcQualifierEncoded'
2606+--
2607+-- * 'bcFieldName'
2608+--
2609+-- * 'bcQualifierString'
2610+--
2611+-- * 'bcOnlyReadLatest'
2612+--
2613+-- * 'bcType'
2614+--
2615+-- * 'bcEncoding'
2616+bigtableColumn
2617+ :: BigtableColumn
2618+bigtableColumn =
2619+ BigtableColumn
2620+ { _bcQualifierEncoded = Nothing
2621+ , _bcFieldName = Nothing
2622+ , _bcQualifierString = Nothing
2623+ , _bcOnlyReadLatest = Nothing
2624+ , _bcType = Nothing
2625+ , _bcEncoding = Nothing
2626+ }
2627+
2628+-- | [Required] Qualifier of the column. Columns in the parent column family
2629+-- that has this exact qualifier are exposed as . field. If the qualifier
2630+-- is valid UTF-8 string, it can be specified in the qualifier_string
2631+-- field. Otherwise, a base-64 encoded value must be set to
2632+-- qualifier_encoded. The column field name is the same as the column
2633+-- qualifier. However, if the qualifier is not a valid BigQuery field
2634+-- identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier
2635+-- must be provided as field_name.
2636+bcQualifierEncoded :: Lens' BigtableColumn (Maybe Word8)
2637+bcQualifierEncoded
2638+ = lens _bcQualifierEncoded
2639+ (\ s a -> s{_bcQualifierEncoded = a})
2640+ . mapping _Coerce
2641+
2642+-- | [Optional] If the qualifier is not a valid BigQuery field identifier
2643+-- i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be
2644+-- provided as the column field name and is used as field name in queries.
2645+bcFieldName :: Lens' BigtableColumn (Maybe Text)
2646+bcFieldName
2647+ = lens _bcFieldName (\ s a -> s{_bcFieldName = a})
2648+
2649+bcQualifierString :: Lens' BigtableColumn (Maybe Text)
2650+bcQualifierString
2651+ = lens _bcQualifierString
2652+ (\ s a -> s{_bcQualifierString = a})
2653+
2654+-- | [Optional] If this is set, only the latest version of value in this
2655+-- column are exposed. \'onlyReadLatest\' can also be set at the column
2656+-- family level. However, the setting at this level takes precedence if
2657+-- \'onlyReadLatest\' is set at both levels.
2658+bcOnlyReadLatest :: Lens' BigtableColumn (Maybe Bool)
2659+bcOnlyReadLatest
2660+ = lens _bcOnlyReadLatest
2661+ (\ s a -> s{_bcOnlyReadLatest = a})
2662+
2663+-- | [Optional] The type to convert the value in cells of this column. The
2664+-- values are expected to be encoded using HBase Bytes.toBytes function
2665+-- when using the BINARY encoding value. Following BigQuery types are
2666+-- allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Defaut
2667+-- type is BYTES. \'type\' can also be set at the column family level.
2668+-- However, the setting at this level takes precedence if \'type\' is set
2669+-- at both levels.
2670+bcType :: Lens' BigtableColumn (Maybe Text)
2671+bcType = lens _bcType (\ s a -> s{_bcType = a})
2672+
2673+-- | [Optional] The encoding of the values when the type is not STRING.
2674+-- Acceptable encoding values are: TEXT - indicates values are alphanumeric
2675+-- text strings. BINARY - indicates values are encoded using HBase
2676+-- Bytes.toBytes family of functions. \'encoding\' can also be set at the
2677+-- column family level. However, the setting at this level takes precedence
2678+-- if \'encoding\' is set at both levels.
2679+bcEncoding :: Lens' BigtableColumn (Maybe Text)
2680+bcEncoding
2681+ = lens _bcEncoding (\ s a -> s{_bcEncoding = a})
2682+
2683+instance FromJSON BigtableColumn where
2684+ parseJSON
2685+ = withObject "BigtableColumn"
2686+ (\ o ->
2687+ BigtableColumn <$>
2688+ (o .:? "qualifierEncoded") <*> (o .:? "fieldName")
2689+ <*> (o .:? "qualifierString")
2690+ <*> (o .:? "onlyReadLatest")
2691+ <*> (o .:? "type")
2692+ <*> (o .:? "encoding"))
2693+
2694+instance ToJSON BigtableColumn where
2695+ toJSON BigtableColumn{..}
2696+ = object
2697+ (catMaybes
2698+ [("qualifierEncoded" .=) <$> _bcQualifierEncoded,
2699+ ("fieldName" .=) <$> _bcFieldName,
2700+ ("qualifierString" .=) <$> _bcQualifierString,
2701+ ("onlyReadLatest" .=) <$> _bcOnlyReadLatest,
2702+ ("type" .=) <$> _bcType,
2703+ ("encoding" .=) <$> _bcEncoding])
2704+
2116--
2705--
2117-- /See:/ 'streamingbuffer' smart constructor.
2706-- /See:/ 'streamingbuffer' smart constructor.
2118data Streamingbuffer = Streamingbuffer
2707data Streamingbuffer = Streamingbuffer
@@ -2347,7 +2936,6 @@ instance ToJSON JobListJobsItem where
2347-- /See:/ 'jobConfiguration' smart constructor.
2936-- /See:/ 'jobConfiguration' smart constructor.
2348data JobConfiguration = JobConfiguration
2937data JobConfiguration = JobConfiguration
2349 { _jcCopy :: !(Maybe JobConfigurationTableCopy)
2938 { _jcCopy :: !(Maybe JobConfigurationTableCopy)
2350− , _jcLink :: !(Maybe JobConfigurationLink)
2351 , _jcLoad :: !(Maybe JobConfigurationLoad)
2939 , _jcLoad :: !(Maybe JobConfigurationLoad)
2352 , _jcQuery :: !(Maybe JobConfigurationQuery)
2940 , _jcQuery :: !(Maybe JobConfigurationQuery)
2353 , _jcExtract :: !(Maybe JobConfigurationExtract)
2941 , _jcExtract :: !(Maybe JobConfigurationExtract)
@@ -2360,8 +2948,6 @@ data JobConfiguration = JobConfiguration
2360--
2948--
2361-- * 'jcCopy'
2949-- * 'jcCopy'
2362--
2950--
2363−-- * 'jcLink'
2364−--
2365-- * 'jcLoad'
2951-- * 'jcLoad'
2366--
2952--
2367-- * 'jcQuery'
2953-- * 'jcQuery'
@@ -2374,7 +2960,6 @@ jobConfiguration
2374jobConfiguration =
2960jobConfiguration =
2375 JobConfiguration
2961 JobConfiguration
2376 { _jcCopy = Nothing
2962 { _jcCopy = Nothing
2377− , _jcLink = Nothing
2378 , _jcLoad = Nothing
2963 , _jcLoad = Nothing
2379 , _jcQuery = Nothing
2964 , _jcQuery = Nothing
2380 , _jcExtract = Nothing
2965 , _jcExtract = Nothing
@@ -2385,10 +2970,6 @@ jobConfiguration =
2385jcCopy :: Lens' JobConfiguration (Maybe JobConfigurationTableCopy)
2970jcCopy :: Lens' JobConfiguration (Maybe JobConfigurationTableCopy)
2386jcCopy = lens _jcCopy (\ s a -> s{_jcCopy = a})
2971jcCopy = lens _jcCopy (\ s a -> s{_jcCopy = a})
2387
2972
2388−-- | [Pick one] Configures a link job.
2389−jcLink :: Lens' JobConfiguration (Maybe JobConfigurationLink)
2390−jcLink = lens _jcLink (\ s a -> s{_jcLink = a})
2391−
2392-- | [Pick one] Configures a load job.
2973-- | [Pick one] Configures a load job.
2393jcLoad :: Lens' JobConfiguration (Maybe JobConfigurationLoad)
2974jcLoad :: Lens' JobConfiguration (Maybe JobConfigurationLoad)
2394jcLoad = lens _jcLoad (\ s a -> s{_jcLoad = a})
2975jcLoad = lens _jcLoad (\ s a -> s{_jcLoad = a})
@@ -2414,8 +2995,7 @@ instance FromJSON JobConfiguration where
2414 = withObject "JobConfiguration"
2995 = withObject "JobConfiguration"
2415 (\ o ->
2996 (\ o ->
2416 JobConfiguration <$>
2997 JobConfiguration <$>
2417− (o .:? "copy") <*> (o .:? "link") <*> (o .:? "load")
2998+ (o .:? "copy") <*> (o .:? "load") <*> (o .:? "query")
2418− <*> (o .:? "query")
2419 <*> (o .:? "extract")
2999 <*> (o .:? "extract")
2420 <*> (o .:? "dryRun"))
3000 <*> (o .:? "dryRun"))
2421
3001
@@ -2423,8 +3003,8 @@ instance ToJSON JobConfiguration where
2423 toJSON JobConfiguration{..}
3003 toJSON JobConfiguration{..}
2424 = object
3004 = object
2425 (catMaybes
3005 (catMaybes
2426− [("copy" .=) <$> _jcCopy, ("link" .=) <$> _jcLink,
3006+ [("copy" .=) <$> _jcCopy, ("load" .=) <$> _jcLoad,
2427− ("load" .=) <$> _jcLoad, ("query" .=) <$> _jcQuery,
3007+ ("query" .=) <$> _jcQuery,
2428 ("extract" .=) <$> _jcExtract,
3008 ("extract" .=) <$> _jcExtract,
2429 ("dryRun" .=) <$> _jcDryRun])
3009 ("dryRun" .=) <$> _jcDryRun])
2430
3010
@@ -2549,93 +3129,6 @@ instance ToJSON Job where
2549 ("statistics" .=) <$> _jStatistics,
3129 ("statistics" .=) <$> _jStatistics,
2550 ("configuration" .=) <$> _jConfiguration])
3130 ("configuration" .=) <$> _jConfiguration])
2551
3131
2552−--
2553−-- /See:/ 'jobConfigurationLink' smart constructor.
2554−data JobConfigurationLink = JobConfigurationLink
2555− { _jDestinationTable :: !(Maybe TableReference)
2556− , _jWriteDisPosition :: !(Maybe Text)
2557− , _jCreateDisPosition :: !(Maybe Text)
2558− , _jSourceURI :: !(Maybe [Text])
2559− } deriving (Eq,Show,Data,Typeable,Generic)
2560−
2561−-- | Creates a value of 'JobConfigurationLink' with the minimum fields required to make a request.
2562−--
2563−-- Use one of the following lenses to modify other fields as desired:
2564−--
2565−-- * 'jDestinationTable'
2566−--
2567−-- * 'jWriteDisPosition'
2568−--
2569−-- * 'jCreateDisPosition'
2570−--
2571−-- * 'jSourceURI'
2572−jobConfigurationLink
2573− :: JobConfigurationLink
2574−jobConfigurationLink =
2575− JobConfigurationLink
2576− { _jDestinationTable = Nothing
2577− , _jWriteDisPosition = Nothing
2578− , _jCreateDisPosition = Nothing
2579− , _jSourceURI = Nothing
2580− }
2581−
2582−-- | [Required] The destination table of the link job.
2583−jDestinationTable :: Lens' JobConfigurationLink (Maybe TableReference)
2584−jDestinationTable
2585− = lens _jDestinationTable
2586− (\ s a -> s{_jDestinationTable = a})
2587−
2588−-- | [Optional] Specifies the action that occurs if the destination table
2589−-- already exists. The following values are supported: WRITE_TRUNCATE: If
2590−-- the table already exists, BigQuery overwrites the table data.
2591−-- WRITE_APPEND: If the table already exists, BigQuery appends the data to
2592−-- the table. WRITE_EMPTY: If the table already exists and contains data, a
2593−-- \'duplicate\' error is returned in the job result. The default value is
2594−-- WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able
2595−-- to complete the job successfully. Creation, truncation and append
2596−-- actions occur as one atomic update upon job completion.
2597−jWriteDisPosition :: Lens' JobConfigurationLink (Maybe Text)
2598−jWriteDisPosition
2599− = lens _jWriteDisPosition
2600− (\ s a -> s{_jWriteDisPosition = a})
2601−
2602−-- | [Optional] Specifies whether the job is allowed to create new tables.
2603−-- The following values are supported: CREATE_IF_NEEDED: If the table does
2604−-- not exist, BigQuery creates the table. CREATE_NEVER: The table must
2605−-- already exist. If it does not, a \'notFound\' error is returned in the
2606−-- job result. The default value is CREATE_IF_NEEDED. Creation, truncation
2607−-- and append actions occur as one atomic update upon job completion.
2608−jCreateDisPosition :: Lens' JobConfigurationLink (Maybe Text)
2609−jCreateDisPosition
2610− = lens _jCreateDisPosition
2611− (\ s a -> s{_jCreateDisPosition = a})
2612−
2613−-- | [Required] URI of source table to link.
2614−jSourceURI :: Lens' JobConfigurationLink [Text]
2615−jSourceURI
2616− = lens _jSourceURI (\ s a -> s{_jSourceURI = a}) .
2617− _Default
2618− . _Coerce
2619−
2620−instance FromJSON JobConfigurationLink where
2621− parseJSON
2622− = withObject "JobConfigurationLink"
2623− (\ o ->
2624− JobConfigurationLink <$>
2625− (o .:? "destinationTable") <*>
2626− (o .:? "writeDisposition")
2627− <*> (o .:? "createDisposition")
2628− <*> (o .:? "sourceUri" .!= mempty))
2629−
2630−instance ToJSON JobConfigurationLink where
2631− toJSON JobConfigurationLink{..}
2632− = object
2633− (catMaybes
2634− [("destinationTable" .=) <$> _jDestinationTable,
2635− ("writeDisposition" .=) <$> _jWriteDisPosition,
2636− ("createDisposition" .=) <$> _jCreateDisPosition,
2637− ("sourceUri" .=) <$> _jSourceURI])
2638−
2639--
3132--
2640-- /See:/ 'tableDataInsertAllResponseInsertErrorsItem' smart constructor.
3133-- /See:/ 'tableDataInsertAllResponseInsertErrorsItem' smart constructor.
2641data TableDataInsertAllResponseInsertErrorsItem = TableDataInsertAllResponseInsertErrorsItem
3134data TableDataInsertAllResponseInsertErrorsItem = TableDataInsertAllResponseInsertErrorsItem
@@ -2897,8 +3390,10 @@ data JobConfigurationQuery = JobConfigurationQuery
2897 , _jcqCreateDisPosition :: !(Maybe Text)
3390 , _jcqCreateDisPosition :: !(Maybe Text)
2898 , _jcqUserDefinedFunctionResources :: !(Maybe [UserDefinedFunctionResource])
3391 , _jcqUserDefinedFunctionResources :: !(Maybe [UserDefinedFunctionResource])
2899 , _jcqAllowLargeResults :: !(Maybe Bool)
3392 , _jcqAllowLargeResults :: !(Maybe Bool)
3393+ , _jcqMaximumBillingTier :: !(Textual Int32)
2900 , _jcqQuery :: !(Maybe Text)
3394 , _jcqQuery :: !(Maybe Text)
2901 , _jcqFlattenResults :: !Bool
3395 , _jcqFlattenResults :: !Bool
3396+ , _jcqUseLegacySQL :: !(Maybe Bool)
2902 , _jcqDefaultDataSet :: !(Maybe DataSetReference)
3397 , _jcqDefaultDataSet :: !(Maybe DataSetReference)
2903 } deriving (Eq,Show,Data,Typeable,Generic)
3398 } deriving (Eq,Show,Data,Typeable,Generic)
2904
3399
@@ -2924,10 +3419,14 @@ data JobConfigurationQuery = JobConfigurationQuery
2924--
3419--
2925-- * 'jcqAllowLargeResults'
3420-- * 'jcqAllowLargeResults'
2926--
3421--
3422+-- * 'jcqMaximumBillingTier'
3423+--
2927-- * 'jcqQuery'
3424-- * 'jcqQuery'
2928--
3425--
2929-- * 'jcqFlattenResults'
3426-- * 'jcqFlattenResults'
2930--
3427--
3428+-- * 'jcqUseLegacySQL'
3429+--
2931-- * 'jcqDefaultDataSet'
3430-- * 'jcqDefaultDataSet'
2932jobConfigurationQuery
3431jobConfigurationQuery
2933 :: JobConfigurationQuery
3432 :: JobConfigurationQuery
@@ -2942,8 +3441,10 @@ jobConfigurationQuery =
2942 , _jcqCreateDisPosition = Nothing
3441 , _jcqCreateDisPosition = Nothing
2943 , _jcqUserDefinedFunctionResources = Nothing
3442 , _jcqUserDefinedFunctionResources = Nothing
2944 , _jcqAllowLargeResults = Nothing
3443 , _jcqAllowLargeResults = Nothing
3444+ , _jcqMaximumBillingTier = 1
2945 , _jcqQuery = Nothing
3445 , _jcqQuery = Nothing
2946 , _jcqFlattenResults = True
3446 , _jcqFlattenResults = True
3447+ , _jcqUseLegacySQL = Nothing
2947 , _jcqDefaultDataSet = Nothing
3448 , _jcqDefaultDataSet = Nothing
2948 }
3449 }
2949
3450
@@ -2990,7 +3491,7 @@ jcqPreserveNulls
2990 = lens _jcqPreserveNulls
3491 = lens _jcqPreserveNulls
2991 (\ s a -> s{_jcqPreserveNulls = a})
3492 (\ s a -> s{_jcqPreserveNulls = a})
2992
3493
2993−-- | [Experimental] If querying an external data source outside of BigQuery,
3494+-- | [Optional] If querying an external data source outside of BigQuery,
2994-- describes the data format, location and other properties of the data
3495-- describes the data format, location and other properties of the data
2995-- source. By defining these properties, the data source can then be
3496-- source. By defining these properties, the data source can then be
2996-- queried as if it were a standard BigQuery table.
3497-- queried as if it were a standard BigQuery table.
@@ -3026,6 +3527,15 @@ jcqAllowLargeResults
3026 = lens _jcqAllowLargeResults
3527 = lens _jcqAllowLargeResults
3027 (\ s a -> s{_jcqAllowLargeResults = a})
3528 (\ s a -> s{_jcqAllowLargeResults = a})
3028
3529
3530+-- | [Optional] Limits the billing tier for this job. Queries that have
3531+-- resource usage beyond this tier will fail (without incurring a charge).
3532+-- If unspecified, this will be set to your project default.
3533+jcqMaximumBillingTier :: Lens' JobConfigurationQuery Int32
3534+jcqMaximumBillingTier
3535+ = lens _jcqMaximumBillingTier
3536+ (\ s a -> s{_jcqMaximumBillingTier = a})
3537+ . _Coerce
3538+
3029-- | [Required] BigQuery SQL query to execute.
3539-- | [Required] BigQuery SQL query to execute.
3030jcqQuery :: Lens' JobConfigurationQuery (Maybe Text)
3540jcqQuery :: Lens' JobConfigurationQuery (Maybe Text)
3031jcqQuery = lens _jcqQuery (\ s a -> s{_jcqQuery = a})
3541jcqQuery = lens _jcqQuery (\ s a -> s{_jcqQuery = a})
@@ -3038,6 +3548,18 @@ jcqFlattenResults
3038 = lens _jcqFlattenResults
3548 = lens _jcqFlattenResults
3039 (\ s a -> s{_jcqFlattenResults = a})
3549 (\ s a -> s{_jcqFlattenResults = a})
3040
3550
3551+-- | [Experimental] Specifies whether to use BigQuery\'s legacy SQL dialect
3552+-- for this query. The default value is true. If set to false, the query
3553+-- will use BigQuery\'s updated SQL dialect with improved standards
3554+-- compliance. When using BigQuery\'s updated SQL, the values of
3555+-- allowLargeResults and flattenResults are ignored. Queries with
3556+-- useLegacySql set to false will be run as if allowLargeResults is true
3557+-- and flattenResults is false.
3558+jcqUseLegacySQL :: Lens' JobConfigurationQuery (Maybe Bool)
3559+jcqUseLegacySQL
3560+ = lens _jcqUseLegacySQL
3561+ (\ s a -> s{_jcqUseLegacySQL = a})
3562+
3041-- | [Optional] Specifies the default dataset to use for unqualified table
3563-- | [Optional] Specifies the default dataset to use for unqualified table
3042-- names in the query.
3564-- names in the query.
3043jcqDefaultDataSet :: Lens' JobConfigurationQuery (Maybe DataSetReference)
3565jcqDefaultDataSet :: Lens' JobConfigurationQuery (Maybe DataSetReference)
@@ -3059,8 +3581,10 @@ instance FromJSON JobConfigurationQuery where
3059 <*> (o .:? "createDisposition")
3581 <*> (o .:? "createDisposition")
3060 <*> (o .:? "userDefinedFunctionResources" .!= mempty)
3582 <*> (o .:? "userDefinedFunctionResources" .!= mempty)
3061 <*> (o .:? "allowLargeResults")
3583 <*> (o .:? "allowLargeResults")
3584+ <*> (o .:? "maximumBillingTier" .!= 1)
3062 <*> (o .:? "query")
3585 <*> (o .:? "query")
3063 <*> (o .:? "flattenResults" .!= True)
3586 <*> (o .:? "flattenResults" .!= True)
3587+ <*> (o .:? "useLegacySql")
3064 <*> (o .:? "defaultDataset"))
3588 <*> (o .:? "defaultDataset"))
3065
3589
3066instance ToJSON JobConfigurationQuery where
3590instance ToJSON JobConfigurationQuery where
@@ -3077,8 +3601,11 @@ instance ToJSON JobConfigurationQuery where
3077 ("userDefinedFunctionResources" .=) <$>
3601 ("userDefinedFunctionResources" .=) <$>
3078 _jcqUserDefinedFunctionResources,
3602 _jcqUserDefinedFunctionResources,
3079 ("allowLargeResults" .=) <$> _jcqAllowLargeResults,
3603 ("allowLargeResults" .=) <$> _jcqAllowLargeResults,
3604+ Just
3605+ ("maximumBillingTier" .= _jcqMaximumBillingTier),
3080 ("query" .=) <$> _jcqQuery,
3606 ("query" .=) <$> _jcqQuery,
3081 Just ("flattenResults" .= _jcqFlattenResults),
3607 Just ("flattenResults" .= _jcqFlattenResults),
3608+ ("useLegacySql" .=) <$> _jcqUseLegacySQL,
3082 ("defaultDataset" .=) <$> _jcqDefaultDataSet])
3609 ("defaultDataset" .=) <$> _jcqDefaultDataSet])
3083
3610
3084--
3611--
@@ -3199,7 +3726,7 @@ instance ToJSON JobList where
3199 ("nextPageToken" .=) <$> _jlNextPageToken,
3726 ("nextPageToken" .=) <$> _jlNextPageToken,
3200 Just ("kind" .= _jlKind), ("jobs" .=) <$> _jlJobs])
3727 Just ("kind" .= _jlKind), ("jobs" .=) <$> _jlJobs])
3201
3728
3202−-- | [Experimental] If querying an external data source outside of BigQuery,
3729+-- | [Optional] If querying an external data source outside of BigQuery,
3203-- describes the data format, location and other properties of the data
3730-- describes the data format, location and other properties of the data
3204-- source. By defining these properties, the data source can then be
3731-- source. By defining these properties, the data source can then be
3205-- queried as if it were a standard BigQuery table.
3732-- queried as if it were a standard BigQuery table.
@@ -3272,22 +3799,35 @@ instance ToJSON TableCell where
3272
3799
3273--
3800--
3274-- /See:/ 'viewDefinition' smart constructor.
3801-- /See:/ 'viewDefinition' smart constructor.
3275−newtype ViewDefinition = ViewDefinition
3802+data ViewDefinition = ViewDefinition
3803+ { _vdUserDefinedFunctionResources :: !(Maybe [UserDefinedFunctionResource])
3276− { _vdQuery :: Maybe Text
3804+ , _vdQuery :: !(Maybe Text)
3277 } deriving (Eq,Show,Data,Typeable,Generic)
3805 } deriving (Eq,Show,Data,Typeable,Generic)
3278
3806
3279-- | Creates a value of 'ViewDefinition' with the minimum fields required to make a request.
3807-- | Creates a value of 'ViewDefinition' with the minimum fields required to make a request.
3280--
3808--
3281-- Use one of the following lenses to modify other fields as desired:
3809-- Use one of the following lenses to modify other fields as desired:
3282--
3810--
3811+-- * 'vdUserDefinedFunctionResources'
3812+--
3283-- * 'vdQuery'
3813-- * 'vdQuery'
3284viewDefinition
3814viewDefinition
3285 :: ViewDefinition
3815 :: ViewDefinition
3286viewDefinition =
3816viewDefinition =
3287 ViewDefinition
3817 ViewDefinition
3818+ { _vdUserDefinedFunctionResources = Nothing
3288− { _vdQuery = Nothing
3819+ , _vdQuery = Nothing
3289 }
3820 }
3290
3821
3822+-- | [Experimental] Describes user-defined function resources used in the
3823+-- query.
3824+vdUserDefinedFunctionResources :: Lens' ViewDefinition [UserDefinedFunctionResource]
3825+vdUserDefinedFunctionResources
3826+ = lens _vdUserDefinedFunctionResources
3827+ (\ s a -> s{_vdUserDefinedFunctionResources = a})
3828+ . _Default
3829+ . _Coerce
3830+
3291-- | [Required] A query that BigQuery executes when the view is referenced.
3831-- | [Required] A query that BigQuery executes when the view is referenced.
3292vdQuery :: Lens' ViewDefinition (Maybe Text)
3832vdQuery :: Lens' ViewDefinition (Maybe Text)
3293vdQuery = lens _vdQuery (\ s a -> s{_vdQuery = a})
3833vdQuery = lens _vdQuery (\ s a -> s{_vdQuery = a})
@@ -3295,11 +3835,18 @@ vdQuery = lens _vdQuery (\ s a -> s{_vdQuery = a})
3295instance FromJSON ViewDefinition where
3835instance FromJSON ViewDefinition where
3296 parseJSON
3836 parseJSON
3297 = withObject "ViewDefinition"
3837 = withObject "ViewDefinition"
3838+ (\ o ->
3298− (\ o -> ViewDefinition <$> (o .:? "query"))
3839+ ViewDefinition <$>
3840+ (o .:? "userDefinedFunctionResources" .!= mempty) <*>
3841+ (o .:? "query"))
3299
3842
3300instance ToJSON ViewDefinition where
3843instance ToJSON ViewDefinition where
3301 toJSON ViewDefinition{..}
3844 toJSON ViewDefinition{..}
3845+ = object
3846+ (catMaybes
3847+ [("userDefinedFunctionResources" .=) <$>
3848+ _vdUserDefinedFunctionResources,
3302− = object (catMaybes [("query" .=) <$> _vdQuery])
3849+ ("query" .=) <$> _vdQuery])
3303
3850
3304--
3851--
3305-- /See:/ 'userDefinedFunctionResource' smart constructor.
3852-- /See:/ 'userDefinedFunctionResource' smart constructor.
@@ -3357,6 +3904,8 @@ instance ToJSON UserDefinedFunctionResource where
3357data JobStatistics2 = JobStatistics2
3904data JobStatistics2 = JobStatistics2
3358 { _jTotalBytesProcessed :: !(Maybe (Textual Int64))
3905 { _jTotalBytesProcessed :: !(Maybe (Textual Int64))
3359 , _jBillingTier :: !(Maybe (Textual Int32))
3906 , _jBillingTier :: !(Maybe (Textual Int32))
3907+ , _jReferencedTables :: !(Maybe [TableReference])
3908+ , _jQueryPlan :: !(Maybe [ExplainQueryStage])
3360 , _jCacheHit :: !(Maybe Bool)
3909 , _jCacheHit :: !(Maybe Bool)
3361 , _jTotalBytesBilled :: !(Maybe (Textual Int64))
3910 , _jTotalBytesBilled :: !(Maybe (Textual Int64))
3362 } deriving (Eq,Show,Data,Typeable,Generic)
3911 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -3369,6 +3918,10 @@ data JobStatistics2 = JobStatistics2
3369--
3918--
3370-- * 'jBillingTier'
3919-- * 'jBillingTier'
3371--
3920--
3921+-- * 'jReferencedTables'
3922+--
3923+-- * 'jQueryPlan'
3924+--
3372-- * 'jCacheHit'
3925-- * 'jCacheHit'
3373--
3926--
3374-- * 'jTotalBytesBilled'
3927-- * 'jTotalBytesBilled'
@@ -3378,6 +3931,8 @@ jobStatistics2 =
3378 JobStatistics2
3931 JobStatistics2
3379 { _jTotalBytesProcessed = Nothing
3932 { _jTotalBytesProcessed = Nothing
3380 , _jBillingTier = Nothing
3933 , _jBillingTier = Nothing
3934+ , _jReferencedTables = Nothing
3935+ , _jQueryPlan = Nothing
3381 , _jCacheHit = Nothing
3936 , _jCacheHit = Nothing
3382 , _jTotalBytesBilled = Nothing
3937 , _jTotalBytesBilled = Nothing
3383 }
3938 }
@@ -3395,6 +3950,23 @@ jBillingTier
3395 = lens _jBillingTier (\ s a -> s{_jBillingTier = a})
3950 = lens _jBillingTier (\ s a -> s{_jBillingTier = a})
3396 . mapping _Coerce
3951 . mapping _Coerce
3397
3952
3953+-- | [Output-only, Experimental] Referenced tables for the job. Queries that
3954+-- reference more than 50 tables will not have a complete list.
3955+jReferencedTables :: Lens' JobStatistics2 [TableReference]
3956+jReferencedTables
3957+ = lens _jReferencedTables
3958+ (\ s a -> s{_jReferencedTables = a})
3959+ . _Default
3960+ . _Coerce
3961+
3962+-- | [Output-only, Experimental] Describes execution plan for the query as a
3963+-- list of stages.
3964+jQueryPlan :: Lens' JobStatistics2 [ExplainQueryStage]
3965+jQueryPlan
3966+ = lens _jQueryPlan (\ s a -> s{_jQueryPlan = a}) .
3967+ _Default
3968+ . _Coerce
3969+
3398-- | [Output-only] Whether the query result was fetched from the query cache.
3970-- | [Output-only] Whether the query result was fetched from the query cache.
3399jCacheHit :: Lens' JobStatistics2 (Maybe Bool)
3971jCacheHit :: Lens' JobStatistics2 (Maybe Bool)
3400jCacheHit
3972jCacheHit
@@ -3414,6 +3986,8 @@ instance FromJSON JobStatistics2 where
3414 JobStatistics2 <$>
3986 JobStatistics2 <$>
3415 (o .:? "totalBytesProcessed") <*>
3987 (o .:? "totalBytesProcessed") <*>
3416 (o .:? "billingTier")
3988 (o .:? "billingTier")
3989+ <*> (o .:? "referencedTables" .!= mempty)
3990+ <*> (o .:? "queryPlan" .!= mempty)
3417 <*> (o .:? "cacheHit")
3991 <*> (o .:? "cacheHit")
3418 <*> (o .:? "totalBytesBilled"))
3992 <*> (o .:? "totalBytesBilled"))
3419
3993
@@ -3424,6 +3998,8 @@ instance ToJSON JobStatistics2 where
3424 [("totalBytesProcessed" .=) <$>
3998 [("totalBytesProcessed" .=) <$>
3425 _jTotalBytesProcessed,
3999 _jTotalBytesProcessed,
3426 ("billingTier" .=) <$> _jBillingTier,
4000 ("billingTier" .=) <$> _jBillingTier,
4001+ ("referencedTables" .=) <$> _jReferencedTables,
4002+ ("queryPlan" .=) <$> _jQueryPlan,
3427 ("cacheHit" .=) <$> _jCacheHit,
4003 ("cacheHit" .=) <$> _jCacheHit,
3428 ("totalBytesBilled" .=) <$> _jTotalBytesBilled])
4004 ("totalBytesBilled" .=) <$> _jTotalBytesBilled])
3429
4005
@@ -3746,8 +4322,8 @@ tabNumBytes
3746 = lens _tabNumBytes (\ s a -> s{_tabNumBytes = a}) .
4322 = lens _tabNumBytes (\ s a -> s{_tabNumBytes = a}) .
3747 mapping _Coerce
4323 mapping _Coerce
3748
4324
3749−-- | [Experimental] Describes the data format, location, and other properties
4325+-- | [Optional] Describes the data format, location, and other properties of
3750−-- of a table stored outside of BigQuery. By defining these properties, the
4326+-- a table stored outside of BigQuery. By defining these properties, the
3751-- data source can then be queried as if it were a standard BigQuery table.
4327-- data source can then be queried as if it were a standard BigQuery table.
3752tabExternalDataConfiguration :: Lens' Table (Maybe ExternalDataConfiguration)
4328tabExternalDataConfiguration :: Lens' Table (Maybe ExternalDataConfiguration)
3753tabExternalDataConfiguration
4329tabExternalDataConfiguration
@@ -3819,7 +4395,9 @@ tabId = lens _tabId (\ s a -> s{_tabId = a})
3819
4395
3820-- | [Output-only] Describes the table type. The following values are
4396-- | [Output-only] Describes the table type. The following values are
3821-- supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined
4397-- supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined
3822−-- by a SQL query. The default value is TABLE.
4398+-- by a SQL query. EXTERNAL: A table that references data stored in an
4399+-- external storage system, such as Google Cloud Storage. The default value
4400+-- is TABLE.
3823tabType :: Lens' Table (Maybe Text)
4401tabType :: Lens' Table (Maybe Text)
3824tabType = lens _tabType (\ s a -> s{_tabType = a})
4402tabType = lens _tabType (\ s a -> s{_tabType = a})
3825
4403
gogol-bigquery/gen/Network/Google/Resource/BigQuery/Jobs/Cancel.hs+2−2
@@ -82,11 +82,11 @@ jobsCancel pJcJobId_ pJcProjectId_ =
82 , _jcProjectId = pJcProjectId_
82 , _jcProjectId = pJcProjectId_
83 }
83 }
84
84
85−-- | Job ID of the job to cancel
85+-- | [Required] Job ID of the job to cancel
86jcJobId :: Lens' JobsCancel Text
86jcJobId :: Lens' JobsCancel Text
87jcJobId = lens _jcJobId (\ s a -> s{_jcJobId = a})
87jcJobId = lens _jcJobId (\ s a -> s{_jcJobId = a})
88
88
89−-- | Project ID of the job to cancel
89+-- | [Required] Project ID of the job to cancel
90jcProjectId :: Lens' JobsCancel Text
90jcProjectId :: Lens' JobsCancel Text
91jcProjectId
91jcProjectId
92 = lens _jcProjectId (\ s a -> s{_jcProjectId = a})
92 = lens _jcProjectId (\ s a -> s{_jcProjectId = a})
gogol-bigquery/gen/Network/Google/Resource/BigQuery/Jobs/Get.hs+2−2
@@ -80,11 +80,11 @@ jobsGet pJgJobId_ pJgProjectId_ =
80 , _jgProjectId = pJgProjectId_
80 , _jgProjectId = pJgProjectId_
81 }
81 }
82
82
83−-- | Job ID of the requested job
83+-- | [Required] Job ID of the requested job
84jgJobId :: Lens' JobsGet Text
84jgJobId :: Lens' JobsGet Text
85jgJobId = lens _jgJobId (\ s a -> s{_jgJobId = a})
85jgJobId = lens _jgJobId (\ s a -> s{_jgJobId = a})
86
86
87−-- | Project ID of the requested job
87+-- | [Required] Project ID of the requested job
88jgProjectId :: Lens' JobsGet Text
88jgProjectId :: Lens' JobsGet Text
89jgProjectId
89jgProjectId
90 = lens _jgProjectId (\ s a -> s{_jgProjectId = a})
90 = lens _jgProjectId (\ s a -> s{_jgProjectId = a})
gogol-bigquery/gen/Network/Google/Resource/BigQuery/Jobs/GetQueryResults.hs+2−2
@@ -101,7 +101,7 @@ jobsGetQueryResults pJgqrJobId_ pJgqrProjectId_ =
101 , _jgqrMaxResults = Nothing
101 , _jgqrMaxResults = Nothing
102 }
102 }
103
103
104−-- | Job ID of the query job
104+-- | [Required] Job ID of the query job
105jgqrJobId :: Lens' JobsGetQueryResults Text
105jgqrJobId :: Lens' JobsGetQueryResults Text
106jgqrJobId
106jgqrJobId
107 = lens _jgqrJobId (\ s a -> s{_jgqrJobId = a})
107 = lens _jgqrJobId (\ s a -> s{_jgqrJobId = a})
@@ -122,7 +122,7 @@ jgqrPageToken
122 = lens _jgqrPageToken
122 = lens _jgqrPageToken
123 (\ s a -> s{_jgqrPageToken = a})
123 (\ s a -> s{_jgqrPageToken = a})
124
124
125−-- | Project ID of the query job
125+-- | [Required] Project ID of the query job
126jgqrProjectId :: Lens' JobsGetQueryResults Text
126jgqrProjectId :: Lens' JobsGetQueryResults Text
127jgqrProjectId
127jgqrProjectId
128 = lens _jgqrProjectId
128 = lens _jgqrProjectId
gogol-billing/gen/Network/Google/Billing/Types.hs+1−1
@@ -54,7 +54,7 @@ import Network.Google.Billing.Types.Sum
54import Network.Google.Prelude
54import Network.Google.Prelude
55
55
56-- | Default request referring to version 'v1' of the Google Cloud Billing API. This contains the host and root path used as a starting point for constructing service requests.
56-- | Default request referring to version 'v1' of the Google Cloud Billing API. This contains the host and root path used as a starting point for constructing service requests.
57−billingService :: Service
57+billingService :: ServiceConfig
58billingService
58billingService
59 = defaultService (ServiceId "cloudbilling:v1")
59 = defaultService (ServiceId "cloudbilling:v1")
60 "cloudbilling.googleapis.com"
60 "cloudbilling.googleapis.com"
gogol-blogger/gen/Network/Google/Blogger/Types.hs+1−1
@@ -379,7 +379,7 @@ import Network.Google.Blogger.Types.Sum
379import Network.Google.Prelude
379import Network.Google.Prelude
380
380
381-- | Default request referring to version 'v3' of the Blogger API. This contains the host and root path used as a starting point for constructing service requests.
381-- | Default request referring to version 'v3' of the Blogger API. This contains the host and root path used as a starting point for constructing service requests.
382−bloggerService :: Service
382+bloggerService :: ServiceConfig
383bloggerService
383bloggerService
384 = defaultService (ServiceId "blogger:v3")
384 = defaultService (ServiceId "blogger:v3")
385 "www.googleapis.com"
385 "www.googleapis.com"
gogol-books/gen/Network/Google/Books.hs+66−2
@@ -146,6 +146,12 @@ module Network.Google.Books
146 -- ** books.promooffer.get
146 -- ** books.promooffer.get
147 , module Network.Google.Resource.Books.PromoOffer.Get
147 , module Network.Google.Resource.Books.PromoOffer.Get
148
148
149+ -- ** books.series.get
150+ , module Network.Google.Resource.Books.Series.Get
151+
152+ -- ** books.series.membership.get
153+ , module Network.Google.Resource.Books.Series.Membership.Get
154+
149 -- ** books.volumes.associated.list
155 -- ** books.volumes.associated.list
150 , module Network.Google.Resource.Books.Volumes.Associated.List
156 , module Network.Google.Resource.Books.Volumes.Associated.List
151
157
@@ -261,6 +267,12 @@ module Network.Google.Books
261 , bclrAuthor
267 , bclrAuthor
262 , bclrTitle
268 , bclrTitle
263
269
270+ -- ** VolumeseriesInfoVolumeSeriesItemIssueItem
271+ , VolumeseriesInfoVolumeSeriesItemIssueItem
272+ , volumeseriesInfoVolumeSeriesItemIssueItem
273+ , vivsiiiIssueOrderNumber
274+ , vivsiiiIssueDisplayNumber
275+
264 -- ** Annotation
276 -- ** Annotation
265 , Annotation
277 , Annotation
266 , annotation
278 , annotation
@@ -296,14 +308,18 @@ module Network.Google.Books
296 -- ** VolumeUserInfo
308 -- ** VolumeUserInfo
297 , VolumeUserInfo
309 , VolumeUserInfo
298 , volumeUserInfo
310 , volumeUserInfo
311+ , vuiIsFamilySharingAllowed
312+ , vuiIsFamilySharedToUser
299 , vuiCopy
313 , vuiCopy
300 , vuiUserUploadedVolumeInfo
314 , vuiUserUploadedVolumeInfo
301 , vuiIsPurchased
315 , vuiIsPurchased
302 , vuiEntitlementType
316 , vuiEntitlementType
303 , vuiAcquisitionType
317 , vuiAcquisitionType
318+ , vuiAcquiredTime
304 , vuiRentalState
319 , vuiRentalState
305 , vuiIsPreOrdered
320 , vuiIsPreOrdered
306 , vuiReview
321 , vuiReview
322+ , vuiIsFamilySharedFromUser
307 , vuiRentalPeriod
323 , vuiRentalPeriod
308 , vuiUpdated
324 , vuiUpdated
309 , vuiIsUploaded
325 , vuiIsUploaded
@@ -390,6 +406,14 @@ module Network.Google.Books
390 , booksVolumesRecommendedRateResponse
406 , booksVolumesRecommendedRateResponse
391 , bvrrrConsistencyToken
407 , bvrrrConsistencyToken
392
408
409+ -- ** VolumeseriesInfo
410+ , VolumeseriesInfo
411+ , volumeseriesInfo
412+ , viBookDisplayNumber
413+ , viKind
414+ , viShortSeriesBookTitle
415+ , viVolumeSeries
416+
393 -- ** Bookshelf
417 -- ** Bookshelf
394 , Bookshelf
418 , Bookshelf
395 , bookshelf
419 , bookshelf
@@ -407,9 +431,14 @@ module Network.Google.Books
407 -- ** Notification
431 -- ** Notification
408 , Notification
432 , Notification
409 , notification
433 , notification
434+ , nTargetURL
435+ , nShowNotificationSettingsAction
410 , nKind
436 , nKind
411 , nBody
437 , nBody
412− , nLinkURL
438+ , nPcampaignId
439+ , nReason
440+ , nDontShowNotification
441+ , nNotificationType
413 , nIconURL
442 , nIconURL
414 , nTitle
443 , nTitle
415
444
@@ -506,6 +535,12 @@ module Network.Google.Books
506 , gdgbiiLatitude
535 , gdgbiiLatitude
507 , gdgbiiLongitude
536 , gdgbiiLongitude
508
537
538+ -- ** Series
539+ , Series
540+ , series
541+ , sKind
542+ , sSeries
543+
509 -- ** OffersItemsItemItemsItem
544 -- ** OffersItemsItemItemsItem
510 , OffersItemsItemItemsItem
545 , OffersItemsItemItemsItem
511 , offersItemsItemItemsItem
546 , offersItemsItemItemsItem
@@ -614,6 +649,13 @@ module Network.Google.Books
614 , dddwisisisURL
649 , dddwisisisURL
615 , dddwisisisAttribution
650 , dddwisisisAttribution
616
651
652+ -- ** Seriesmembership
653+ , Seriesmembership
654+ , seriesmembership
655+ , serNextPageToken
656+ , serKind
657+ , serMember
658+
617 -- ** VolumesListFilter
659 -- ** VolumesListFilter
618 , VolumesListFilter (..)
660 , VolumesListFilter (..)
619
661
@@ -734,6 +776,15 @@ module Network.Google.Books
734 -- ** MyLibraryBookshelvesAddVolumeReason
776 -- ** MyLibraryBookshelvesAddVolumeReason
735 , MyLibraryBookshelvesAddVolumeReason (..)
777 , MyLibraryBookshelvesAddVolumeReason (..)
736
778
779+ -- ** SeriesSeriesItem
780+ , SeriesSeriesItem
781+ , seriesSeriesItem
782+ , ssiSeriesId
783+ , ssiImageURL
784+ , ssiBannerImageURL
785+ , ssiTitle
786+ , ssiSeriesType
787+
737 -- ** Metadata
788 -- ** Metadata
738 , Metadata
789 , Metadata
739 , metadata
790 , metadata
@@ -876,6 +927,14 @@ module Network.Google.Books
876 , dTotalClusters
927 , dTotalClusters
877 , dClusters
928 , dClusters
878
929
930+ -- ** VolumeseriesInfoVolumeSeriesItem
931+ , VolumeseriesInfoVolumeSeriesItem
932+ , volumeseriesInfoVolumeSeriesItem
933+ , vivsiSeriesId
934+ , vivsiSeriesBookType
935+ , vivsiOrderNumber
936+ , vivsiIssue
937+
879 -- ** UserSettingsNotesExport
938 -- ** UserSettingsNotesExport
880 , UserSettingsNotesExport
939 , UserSettingsNotesExport
881 , userSettingsNotesExport
940 , userSettingsNotesExport
@@ -943,6 +1002,7 @@ module Network.Google.Books
943 , vviCanonicalVolumeLink
1002 , vviCanonicalVolumeLink
944 , vviReadingModes
1003 , vviReadingModes
945 , vviIndustryIdentifiers
1004 , vviIndustryIdentifiers
1005+ , vviSeriesInfo
946 , vviPrintedPageCount
1006 , vviPrintedPageCount
947 , vviMainCategory
1007 , vviMainCategory
948 , vviContentVersion
1008 , vviContentVersion
@@ -1047,6 +1107,8 @@ import Network.Google.Resource.Books.Personalizedstream.Get
1047import Network.Google.Resource.Books.PromoOffer.Accept
1107import Network.Google.Resource.Books.PromoOffer.Accept
1048import Network.Google.Resource.Books.PromoOffer.Dismiss
1108import Network.Google.Resource.Books.PromoOffer.Dismiss
1049import Network.Google.Resource.Books.PromoOffer.Get
1109import Network.Google.Resource.Books.PromoOffer.Get
1110+import Network.Google.Resource.Books.Series.Get
1111+import Network.Google.Resource.Books.Series.Membership.Get
1050import Network.Google.Resource.Books.Volumes.Associated.List
1112import Network.Google.Resource.Books.Volumes.Associated.List
1051import Network.Google.Resource.Books.Volumes.Get
1113import Network.Google.Resource.Books.Volumes.Get
1052import Network.Google.Resource.Books.Volumes.List
1114import Network.Google.Resource.Books.Volumes.List
@@ -1062,7 +1124,9 @@ TODO
1062-- | Represents the entirety of the methods and resources available for the Books API service.
1124-- | Represents the entirety of the methods and resources available for the Books API service.
1063type BooksAPI =
1125type BooksAPI =
1064 NotificationGetResource :<|>
1126 NotificationGetResource :<|>
1127+ SeriesMembershipGetResource
1128+ :<|> SeriesGetResource
1065− OnboardingListCategoriesResource
1129+ :<|> OnboardingListCategoriesResource
1066 :<|> OnboardingListCategoryVolumesResource
1130 :<|> OnboardingListCategoryVolumesResource
1067 :<|> MyLibraryAnnotationsSummaryResource
1131 :<|> MyLibraryAnnotationsSummaryResource
1068 :<|> MyLibraryAnnotationsInsertResource
1132 :<|> MyLibraryAnnotationsInsertResource
gogol-books/gen/Network/Google/Books/Types.hs+56−2
@@ -113,6 +113,12 @@ module Network.Google.Books.Types
113 , bclrAuthor
113 , bclrAuthor
114 , bclrTitle
114 , bclrTitle
115
115
116+ -- * VolumeseriesInfoVolumeSeriesItemIssueItem
117+ , VolumeseriesInfoVolumeSeriesItemIssueItem
118+ , volumeseriesInfoVolumeSeriesItemIssueItem
119+ , vivsiiiIssueOrderNumber
120+ , vivsiiiIssueDisplayNumber
121+
116 -- * Annotation
122 -- * Annotation
117 , Annotation
123 , Annotation
118 , annotation
124 , annotation
@@ -148,14 +154,18 @@ module Network.Google.Books.Types
148 -- * VolumeUserInfo
154 -- * VolumeUserInfo
149 , VolumeUserInfo
155 , VolumeUserInfo
150 , volumeUserInfo
156 , volumeUserInfo
157+ , vuiIsFamilySharingAllowed
158+ , vuiIsFamilySharedToUser
151 , vuiCopy
159 , vuiCopy
152 , vuiUserUploadedVolumeInfo
160 , vuiUserUploadedVolumeInfo
153 , vuiIsPurchased
161 , vuiIsPurchased
154 , vuiEntitlementType
162 , vuiEntitlementType
155 , vuiAcquisitionType
163 , vuiAcquisitionType
164+ , vuiAcquiredTime
156 , vuiRentalState
165 , vuiRentalState
157 , vuiIsPreOrdered
166 , vuiIsPreOrdered
158 , vuiReview
167 , vuiReview
168+ , vuiIsFamilySharedFromUser
159 , vuiRentalPeriod
169 , vuiRentalPeriod
160 , vuiUpdated
170 , vuiUpdated
161 , vuiIsUploaded
171 , vuiIsUploaded
@@ -242,6 +252,14 @@ module Network.Google.Books.Types
242 , booksVolumesRecommendedRateResponse
252 , booksVolumesRecommendedRateResponse
243 , bvrrrConsistencyToken
253 , bvrrrConsistencyToken
244
254
255+ -- * VolumeseriesInfo
256+ , VolumeseriesInfo
257+ , volumeseriesInfo
258+ , viBookDisplayNumber
259+ , viKind
260+ , viShortSeriesBookTitle
261+ , viVolumeSeries
262+
245 -- * Bookshelf
263 -- * Bookshelf
246 , Bookshelf
264 , Bookshelf
247 , bookshelf
265 , bookshelf
@@ -259,9 +277,14 @@ module Network.Google.Books.Types
259 -- * Notification
277 -- * Notification
260 , Notification
278 , Notification
261 , notification
279 , notification
280+ , nTargetURL
281+ , nShowNotificationSettingsAction
262 , nKind
282 , nKind
263 , nBody
283 , nBody
264− , nLinkURL
284+ , nPcampaignId
285+ , nReason
286+ , nDontShowNotification
287+ , nNotificationType
265 , nIconURL
288 , nIconURL
266 , nTitle
289 , nTitle
267
290
@@ -358,6 +381,12 @@ module Network.Google.Books.Types
358 , gdgbiiLatitude
381 , gdgbiiLatitude
359 , gdgbiiLongitude
382 , gdgbiiLongitude
360
383
384+ -- * Series
385+ , Series
386+ , series
387+ , sKind
388+ , sSeries
389+
361 -- * OffersItemsItemItemsItem
390 -- * OffersItemsItemItemsItem
362 , OffersItemsItemItemsItem
391 , OffersItemsItemItemsItem
363 , offersItemsItemItemsItem
392 , offersItemsItemItemsItem
@@ -466,6 +495,13 @@ module Network.Google.Books.Types
466 , dddwisisisURL
495 , dddwisisisURL
467 , dddwisisisAttribution
496 , dddwisisisAttribution
468
497
498+ -- * Seriesmembership
499+ , Seriesmembership
500+ , seriesmembership
501+ , serNextPageToken
502+ , serKind
503+ , serMember
504+
469 -- * VolumesListFilter
505 -- * VolumesListFilter
470 , VolumesListFilter (..)
506 , VolumesListFilter (..)
471
507
@@ -586,6 +622,15 @@ module Network.Google.Books.Types
586 -- * MyLibraryBookshelvesAddVolumeReason
622 -- * MyLibraryBookshelvesAddVolumeReason
587 , MyLibraryBookshelvesAddVolumeReason (..)
623 , MyLibraryBookshelvesAddVolumeReason (..)
588
624
625+ -- * SeriesSeriesItem
626+ , SeriesSeriesItem
627+ , seriesSeriesItem
628+ , ssiSeriesId
629+ , ssiImageURL
630+ , ssiBannerImageURL
631+ , ssiTitle
632+ , ssiSeriesType
633+
589 -- * Metadata
634 -- * Metadata
590 , Metadata
635 , Metadata
591 , metadata
636 , metadata
@@ -728,6 +773,14 @@ module Network.Google.Books.Types
728 , dTotalClusters
773 , dTotalClusters
729 , dClusters
774 , dClusters
730
775
776+ -- * VolumeseriesInfoVolumeSeriesItem
777+ , VolumeseriesInfoVolumeSeriesItem
778+ , volumeseriesInfoVolumeSeriesItem
779+ , vivsiSeriesId
780+ , vivsiSeriesBookType
781+ , vivsiOrderNumber
782+ , vivsiIssue
783+
731 -- * UserSettingsNotesExport
784 -- * UserSettingsNotesExport
732 , UserSettingsNotesExport
785 , UserSettingsNotesExport
733 , userSettingsNotesExport
786 , userSettingsNotesExport
@@ -795,6 +848,7 @@ module Network.Google.Books.Types
795 , vviCanonicalVolumeLink
848 , vviCanonicalVolumeLink
796 , vviReadingModes
849 , vviReadingModes
797 , vviIndustryIdentifiers
850 , vviIndustryIdentifiers
851+ , vviSeriesInfo
798 , vviPrintedPageCount
852 , vviPrintedPageCount
799 , vviMainCategory
853 , vviMainCategory
800 , vviContentVersion
854 , vviContentVersion
@@ -863,7 +917,7 @@ import Network.Google.Books.Types.Sum
863import Network.Google.Prelude
917import Network.Google.Prelude
864
918
865-- | Default request referring to version 'v1' of the Books API. This contains the host and root path used as a starting point for constructing service requests.
919-- | Default request referring to version 'v1' of the Books API. This contains the host and root path used as a starting point for constructing service requests.
866−booksService :: Service
920+booksService :: ServiceConfig
867booksService
921booksService
868 = defaultService (ServiceId "books:v1")
922 = defaultService (ServiceId "books:v1")
869 "www.googleapis.com"
923 "www.googleapis.com"
gogol-books/gen/Network/Google/Books/Types/Product.hs+525−19

This diff is too big to show here.

gogol-books/gen/Network/Google/Resource/Books/MyConfig/SyncVolumeLicenses.hs+26−13

This diff is too big to show here.

gogol-books/gen/Network/Google/Resource/Books/Series/Get.hsnew file+84

This diff is too big to show here.

gogol-books/gen/Network/Google/Resource/Books/Series/Membership/Get.hsnew file+111

This diff is too big to show here.

gogol-books/gen/Network/Google/Resource/Books/Volumes/Get.hs+20−6

This diff is too big to show here.

gogol-books/gen/Network/Google/Resource/Books/Volumes/Mybooks/List.hs+17−5

This diff is too big to show here.

gogol-books/gogol-books.cabal+2

This diff is too big to show here.

gogol-civicinfo/gen/Network/Google/CivicInfo/Types.hs+1−1

This diff is too big to show here.

gogol-classroom/gen/Network/Google/Classroom/Types.hs+1−1

This diff is too big to show here.

gogol-cloudtrace/gen/Network/Google/CloudTrace.hs+4−8

This diff is too big to show here.

gogol-cloudtrace/gen/Network/Google/CloudTrace/Types.hs+1−1

This diff is too big to show here.

gogol-cloudtrace/gen/Network/Google/CloudTrace/Types/Product.hs+34−32

This diff is too big to show here.

gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/PatchTraces.hs+11−9

This diff is too big to show here.

gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/Traces/Get.hs+4−4

This diff is too big to show here.

gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/Traces/List.hs+22−18

This diff is too big to show here.

gogol-cloudtrace/gogol-cloudtrace.cabal+2−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Compute.hs+106−5

This diff is too big to show here.

gogol-compute/gen/Network/Google/Compute/Types.hs+77−6

This diff is too big to show here.

gogol-compute/gen/Network/Google/Compute/Types/Product.hs+1680−527

This diff is too big to show here.

gogol-compute/gen/Network/Google/Compute/Types/Sum.hs+250−55

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Addresses/AggregatedList.hs+28−15

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Addresses/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Addresses/Get.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Addresses/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Addresses/List.hs+29−18

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Autoscalers/AggregatedList.hs+29−16

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Autoscalers/Delete.hs+5−5

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Autoscalers/Get.hs+7−5

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Autoscalers/Insert.hs+6−6

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Autoscalers/List.hs+30−19

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Autoscalers/Patch.hs+7−7

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Autoscalers/Update.hs+7−7

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/BackendServices/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/BackendServices/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/BackendServices/Insert.hs+7−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/BackendServices/List.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/BackendServices/Patch.hs+9−5

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/BackendServices/Update.hs+7−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/DiskTypes/AggregatedList.hs+28−15

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/DiskTypes/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/DiskTypes/List.hs+28−17

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Disks/AggregatedList.hs+28−15

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Disks/CreateSnapshot.hs+2−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Disks/Get.hs+4−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Disks/Insert.hs+10−4

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Disks/List.hs+28−15

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Firewalls/Delete.hs+3−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Firewalls/Get.hs+3−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Firewalls/Insert.hs+4−4

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Firewalls/List.hs+28−17

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Firewalls/Patch.hs+3−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Firewalls/Update.hs+3−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/ForwardingRules/AggregatedList.hs+29−16

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/ForwardingRules/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/ForwardingRules/Get.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/ForwardingRules/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/ForwardingRules/List.hs+31−18

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/ForwardingRules/SetTarget.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/GlobalAddresses/Get.hs+4−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/GlobalAddresses/List.hs+28−15

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/GlobalForwardingRules/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/GlobalForwardingRules/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/GlobalForwardingRules/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/GlobalForwardingRules/List.hs+31−18

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/GlobalForwardingRules/SetTarget.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/GlobalOperations/AggregatedList.hs+28−15

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/GlobalOperations/Get.hs+4−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/GlobalOperations/List.hs+28−15

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/HTTPHealthChecks/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/HTTPHealthChecks/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/HTTPHealthChecks/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/HTTPHealthChecks/List.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/HTTPHealthChecks/Patch.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/HTTPHealthChecks/Update.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/List.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Patch.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/HTTPSHealthChecks/Update.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Images/Delete.hs+2−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Images/Get.hs+4−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Images/Insert.hs+4−4

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Images/List.hs+26−13

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/AbandonInstances.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/AggregatedList.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/Delete.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/DeleteInstances.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/Get.hs+5−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/List.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/ListManagedInstances.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/RecreateInstances.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/Resize.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/SetInstanceTemplate.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroupManagers/SetTargetPools.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/AddInstances.hs+3−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/AggregatedList.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/Delete.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/List.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/ListInstances.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/RemoveInstances.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/SetNamedPorts.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceTemplates/Delete.hs+11−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceTemplates/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceTemplates/Insert.hs+9−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/InstanceTemplates/List.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Instances/AggregatedList.hs+28−15

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Instances/AttachDisk.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Instances/Delete.hs+2−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Instances/Get.hs+4−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Instances/List.hs+28−17

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Instances/SetMachineType.hsnew file+127

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Instances/Start.hs+4−4

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Instances/Stop.hs+12−12

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Licenses/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/MachineTypes/AggregatedList.hs+28−15

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/MachineTypes/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/MachineTypes/List.hs+28−17

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Networks/Delete.hs+3−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Networks/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Networks/Insert.hs+4−4

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Networks/List.hs+28−17

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Projects/Get.hs+2−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/RegionOperations/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/RegionOperations/Get.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/RegionOperations/List.hs+29−16

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Regions/Get.hs+4−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Regions/List.hs+26−13

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Routes/Delete.hs+4−4

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Routes/Get.hs+6−4

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Routes/Insert.hs+3−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Routes/List.hs+29−16

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/List.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Snapshots/Delete.hs+19−19

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Snapshots/Get.hs+23−21

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Snapshots/List.hs+58−46

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Subnetworks/AggregatedList.hsnew file+151

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Subnetworks/Delete.hsnew file+110

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Subnetworks/Get.hsnew file+111

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Subnetworks/Insert.hsnew file+111

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Subnetworks/List.hsnew file+158

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPProxies/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPProxies/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPProxies/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPProxies/List.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPProxies/SetURLMap.hs+2−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/List.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/SetSSLCertificates.hs+3−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/SetURLMap.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetInstances/AggregatedList.hs+29−16

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetInstances/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetInstances/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetInstances/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetInstances/List.hs+31−18

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetPools/AddHealthCheck.hs+4−4

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetPools/AddInstance.hs+4−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetPools/AggregatedList.hs+29−16

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetPools/Delete.hs+3−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetPools/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetPools/GetHealth.hs+5−4

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetPools/Insert.hs+5−5

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetPools/List.hs+31−18

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetPools/RemoveHealthCheck.hs+5−5

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetPools/RemoveInstance.hs+4−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetPools/SetBackup.hs+5−5

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetVPNGateways/AggregatedList.hs+28−15

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetVPNGateways/Delete.hs+4−4

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetVPNGateways/Get.hs+6−4

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetVPNGateways/Insert.hs+5−5

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/TargetVPNGateways/List.hs+31−18

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/URLMaps/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/URLMaps/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/URLMaps/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/URLMaps/List.hs+27−14

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/URLMaps/Patch.hs+3−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/URLMaps/Update.hs+3−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/URLMaps/Validate.hs+3−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/VPNTunnels/AggregatedList.hs+28−15

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/VPNTunnels/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/VPNTunnels/Get.hs+5−3

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/VPNTunnels/Insert.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/VPNTunnels/List.hs+29−16

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/ZoneOperations/Delete.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/ZoneOperations/Get.hs+1−1

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/ZoneOperations/List.hs+29−16

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Zones/Get.hs+4−2

This diff is too big to show here.

gogol-compute/gen/Network/Google/Resource/Compute/Zones/List.hs+28−15

This diff is too big to show here.

gogol-compute/gogol-compute.cabal+6

This diff is too big to show here.

gogol-container/gen/Network/Google/Container/Types.hs+1−1

This diff is too big to show here.

gogol-customsearch/gen/Network/Google/CustomSearch/Types.hs+1−1

This diff is too big to show here.

gogol-dataflow/gen/Network/Google/Dataflow.hs+90

This diff is too big to show here.

gogol-dataflow/gen/Network/Google/Dataflow/Types.hs+86−1

This diff is too big to show here.

gogol-dataflow/gen/Network/Google/Dataflow/Types/Product.hs+888−74

This diff is too big to show here.

gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/WorkerMessages.hsnew file+184

This diff is too big to show here.

gogol-dataflow/gogol-dataflow.cabal+1

This diff is too big to show here.

gogol-datastore/gen/Network/Google/Datastore/Types.hs+1−1

This diff is too big to show here.

gogol-debugger/gen/Network/Google/Debugger.hs+30−2

This diff is too big to show here.

gogol-debugger/gen/Network/Google/Debugger/Types.hs+29−1

This diff is too big to show here.

gogol-debugger/gen/Network/Google/Debugger/Types/Product.hs+414−164

This diff is too big to show here.

gogol-debugger/gen/Network/Google/Resource/CloudDebugger/Controller/Debuggees/Breakpoints/List.hs+53−38

This diff is too big to show here.

gogol-debugger/gen/Network/Google/Resource/CloudDebugger/Controller/Debuggees/Breakpoints/Update.hs+8−8

This diff is too big to show here.

gogol-debugger/gen/Network/Google/Resource/CloudDebugger/Controller/Debuggees/Register.hs+16−14

This diff is too big to show here.

gogol-debugger/gen/Network/Google/Resource/CloudDebugger/Debugger/Debuggees/Breakpoints/Delete.hs+19−4

This diff is too big to show here.

gogol-debugger/gen/Network/Google/Resource/CloudDebugger/Debugger/Debuggees/Breakpoints/Get.hs+19−5

This diff is too big to show here.

gogol-debugger/gen/Network/Google/Resource/CloudDebugger/Debugger/Debuggees/Breakpoints/List.hs+30−15

This diff is too big to show here.

gogol-debugger/gen/Network/Google/Resource/CloudDebugger/Debugger/Debuggees/Breakpoints/Set.hs+19−5

This diff is too big to show here.

gogol-debugger/gen/Network/Google/Resource/CloudDebugger/Debugger/Debuggees/List.hs+20−7

This diff is too big to show here.

gogol-debugger/gogol-debugger.cabal+2−2

This diff is too big to show here.

gogol-deploymentmanager/gen/Network/Google/DeploymentManager.hs+15

This diff is too big to show here.

gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types.hs+16−1

This diff is too big to show here.

gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Product.hs+206−44

This diff is too big to show here.

gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/List.hs+26−13

This diff is too big to show here.

gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Patch.hs+2−2

This diff is too big to show here.

gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Update.hs+2−2

This diff is too big to show here.

gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Manifests/List.hs+26−13

This diff is too big to show here.

gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Operations/List.hs+26−13

This diff is too big to show here.

gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Resources/List.hs+26−13

This diff is too big to show here.

gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Types/List.hs+26−13

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/DFAReporting.hs+13−6

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/DFAReporting/Types.hs+16−4

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/DFAReporting/Types/Product.hs+128−59

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/DFAReporting/Types/Sum.hs+267−92

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AccountActiveAdSummaries/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AccountPermissionGroups/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AccountPermissionGroups/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AccountPermissions/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AccountPermissions/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AccountUserProFiles/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AccountUserProFiles/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AccountUserProFiles/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AccountUserProFiles/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AccountUserProFiles/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Accounts/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Accounts/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Accounts/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Accounts/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Ads/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Ads/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Ads/List.hs+2−2

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Ads/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Ads/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AdvertiserGroups/Delete.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AdvertiserGroups/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AdvertiserGroups/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AdvertiserGroups/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AdvertiserGroups/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/AdvertiserGroups/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Advertisers/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Advertisers/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Advertisers/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Advertisers/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Advertisers/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Browsers/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CampaignCreativeAssociations/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CampaignCreativeAssociations/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Campaigns/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Campaigns/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Campaigns/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Campaigns/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Campaigns/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/ChangeLogs/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/ChangeLogs/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Cities/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/ConnectionTypes/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/ConnectionTypes/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/ContentCategories/Delete.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/ContentCategories/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/ContentCategories/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/ContentCategories/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/ContentCategories/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/ContentCategories/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Countries/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Countries/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeAssets/Insert.hs+2−2

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFieldValues/Delete.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFieldValues/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFieldValues/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFieldValues/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFieldValues/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFieldValues/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFields/Delete.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFields/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFields/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFields/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFields/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFields/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeGroups/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeGroups/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeGroups/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeGroups/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeGroups/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Creatives/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Creatives/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Creatives/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Creatives/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Creatives/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/DimensionValues/Query.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/DirectorySiteContacts/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/DirectorySiteContacts/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/DirectorySites/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/DirectorySites/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/DirectorySites/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/EventTags/Delete.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/EventTags/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/EventTags/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/EventTags/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/EventTags/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/EventTags/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Files/Get.hs+2−2

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Files/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivities/Delete.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivities/Generatetag.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivities/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivities/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivities/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivities/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivities/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivityGroups/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivityGroups/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivityGroups/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivityGroups/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivityGroups/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightConfigurations/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightConfigurations/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightConfigurations/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightConfigurations/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/InventoryItems/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/InventoryItems/List.hs+17−6

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/LandingPages/Delete.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/LandingPages/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/LandingPages/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/LandingPages/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/LandingPages/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/LandingPages/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Metros/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/MobileCarriers/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/MobileCarriers/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/OperatingSystemVersions/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/OperatingSystemVersions/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/OperatingSystems/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/OperatingSystems/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/OrderDocuments/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/OrderDocuments/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Orders/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Orders/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlacementGroups/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlacementGroups/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlacementGroups/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlacementGroups/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlacementGroups/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlacementStrategies/Delete.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlacementStrategies/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlacementStrategies/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlacementStrategies/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlacementStrategies/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlacementStrategies/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Placements/Generatetags.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Placements/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Placements/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Placements/List.hs+3−3

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Placements/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Placements/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlatformTypes/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PlatformTypes/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PostalCodes/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/PostalCodes/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Projects/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Projects/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Regions/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/RemarketingListShares/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/RemarketingListShares/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/RemarketingListShares/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/RemarketingLists/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/RemarketingLists/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/RemarketingLists/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/RemarketingLists/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/RemarketingLists/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Reports/CompatibleFields/Query.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Reports/Delete.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Reports/Files/Get.hs+2−2

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Reports/Files/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Reports/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Reports/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Reports/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Reports/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Reports/Run.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Reports/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Sites/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Sites/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Sites/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Sites/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Sites/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Sizes/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Sizes/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Sizes/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/SubAccounts/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/SubAccounts/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/SubAccounts/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/SubAccounts/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/SubAccounts/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/TargetableRemarketingLists/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/TargetableRemarketingLists/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/UserProFiles/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/UserProFiles/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/UserRolePermissionGroups/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/UserRolePermissionGroups/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/UserRolePermissions/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/UserRolePermissions/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/UserRoles/Delete.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/UserRoles/Get.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/UserRoles/Insert.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/UserRoles/List.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/UserRoles/Patch.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/UserRoles/Update.hs+1−1

This diff is too big to show here.

gogol-dfareporting/gogol-dfareporting.cabal+1−2

This diff is too big to show here.

gogol-discovery/gen/Network/Google/Discovery.hs+1

This diff is too big to show here.

gogol-discovery/gen/Network/Google/Discovery/Types.hs+2−1

This diff is too big to show here.

gogol-discovery/gen/Network/Google/Discovery/Types/Product.hs+11

This diff is too big to show here.

gogol-dns/gen/Network/Google/DNS/Types.hs+1−1

This diff is too big to show here.

gogol-dns/gen/Network/Google/DNS/Types/Product.hs+2−2

This diff is too big to show here.

gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids.hs+23

This diff is too big to show here.

gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types.hs+19−1

This diff is too big to show here.

gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Product.hs+158

This diff is too big to show here.

gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Sum.hs+80

This diff is too big to show here.

gogol-doubleclick-bids/gen/Network/Google/Resource/DoubleClickBidManager/Rubicon/Notifyproposalchange.hsnew file+86

This diff is too big to show here.

gogol-doubleclick-bids/gogol-doubleclick-bids.cabal+1

This diff is too big to show here.

gogol-doubleclick-search/gen/Network/Google/DoubleClickSearch.hs+1−1

This diff is too big to show here.

gogol-doubleclick-search/gen/Network/Google/DoubleClickSearch/Types.hs+1−1

This diff is too big to show here.

gogol-doubleclick-search/gen/Network/Google/DoubleClickSearch/Types/Product.hs+12−9

This diff is too big to show here.

gogol-doubleclick-search/gogol-doubleclick-search.cabal+1−1

This diff is too big to show here.

gogol-drive/gen/Network/Google/Drive.hs+181−515

This diff is too big to show here.

gogol-drive/gen/Network/Google/Drive/Types.hs+157−366

This diff is too big to show here.

gogol-drive/gen/Network/Google/Drive/Types/Product.hs+1361−3195

This diff is too big to show here.

gogol-drive/gen/Network/Google/Drive/Types/Sum.hs+11−268

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/About/Get.hs+12−60

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Changes/GetStartPageToken.hsnew file+70

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Changes/List.hs+56−66

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Changes/Watch.hs+60−70

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Channels/Stop.hs+1−1

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Comments/Create.hsnew file+94

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Comments/Delete.hs+1−1

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Comments/Get.hs+3−3

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Comments/List.hs+53−56

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Comments/Update.hs+4−4

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Files/Copy.hs+66−109

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Files/Create.hsnew file+171

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Files/Delete.hs+8−6

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Files/EmptyTrash.hs+1−1

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Files/Export.hsnew file+116

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Files/GenerateIds.hs+15−17

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Files/Get.hs+15−60

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Files/List.hs+42−50

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Files/Update.hs+42−169

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Files/Watch.hs+14−59

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Permissions/Create.hsnew file+140

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Permissions/Delete.hs+23−23

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Permissions/Get.hs+21−22

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Permissions/List.hs+2−2

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Permissions/Update.hs+46−45

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Replies/Create.hsnew file+108

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Replies/Delete.hs+1−1

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Replies/Get.hs+7−6

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Replies/List.hs+21−23

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Replies/Update.hs+8−9

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Revisions/Delete.hs+5−3

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Revisions/Get.hs+46−9

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Revisions/List.hs+1−1

This diff is too big to show here.

gogol-drive/gen/Network/Google/Resource/Drive/Revisions/Update.hs+6−6

This diff is too big to show here.

gogol-drive/gogol-drive.cabal+7−33

This diff is too big to show here.

gogol-fitness/gen/Network/Google/Fitness/Types.hs+1−1

This diff is too big to show here.

gogol-fitness/gen/Network/Google/Fitness/Types/Sum.hs+5−1

This diff is too big to show here.

gogol-fonts/gen/Network/Google/Fonts.hs+3−1

This diff is too big to show here.

gogol-fonts/gen/Network/Google/Fonts/Types.hs+1−1

This diff is too big to show here.

gogol-fonts/gogol-fonts.cabal+3−1

This diff is too big to show here.

gogol-freebasesearch/gen/Network/Google/FreebaseSearch/Types.hs+1−1

This diff is too big to show here.

gogol-fusiontables/gen/Network/Google/FusionTables/Types.hs+1−1

This diff is too big to show here.

gogol-games-configuration/gen/Network/Google/GamesConfiguration/Types.hs+1−1

This diff is too big to show here.

gogol-games-management/gen/Network/Google/GamesManagement.hs+3

This diff is too big to show here.

gogol-games-management/gen/Network/Google/GamesManagement/Types.hs+5−2

This diff is too big to show here.

gogol-games-management/gen/Network/Google/GamesManagement/Types/Product.hs+52−11

This diff is too big to show here.

gogol-games/gen/Network/Google/Games.hs+15

This diff is too big to show here.

gogol-games/gen/Network/Google/Games/Types.hs+12−2

This diff is too big to show here.

gogol-games/gen/Network/Google/Games/Types/Product.hs+118−13

This diff is too big to show here.

gogol-games/gen/Network/Google/Games/Types/Sum.hs+10

This diff is too big to show here.

gogol-games/gen/Network/Google/Resource/Games/Applications/Verify.hsnew file+91

This diff is too big to show here.

gogol-games/gogol-games.cabal+1

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Genomics.hs+63−14

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Genomics/Types.hs+43−5

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Genomics/Types/Product.hs+549−129

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/CallSets/Create.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/CallSets/Delete.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/CallSets/Get.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/CallSets/Patch.hs+9−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/CallSets/Search.hs+9−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/DataSets/Create.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/DataSets/Delete.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/DataSets/Get.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/DataSets/GetIAMPolicy.hs+11−7

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/DataSets/List.hs+9−5

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/DataSets/Patch.hs+9−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/DataSets/SetIAMPolicy.hs+9−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/DataSets/TestIAMPermissions.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/DataSets/Undelete.hs+9−5

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/Cancel.hs+1−1

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/Get.hs+1−1

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/List.hs+1−1

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/ReadGroupSets/CoverageBuckets/List.hs+19−13

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/ReadGroupSets/Delete.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/ReadGroupSets/Export.hs+15−8

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/ReadGroupSets/Get.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/ReadGroupSets/Import.hs+25−19

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/ReadGroupSets/Patch.hs+12−7

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/ReadGroupSets/Search.hs+11−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Reads/Search.hs+33−21

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Reads/Stream.hsnew file+170

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/References/Bases/List.hs+12−4

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/References/Get.hs+9−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/References/Search.hs+11−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Referencesets/Get.hs+9−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Referencesets/Search.hs+13−5

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/VariantSets/Create.hs+13−7

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/VariantSets/Delete.hs+9−5

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/VariantSets/Export.hs+9−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/VariantSets/Get.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/VariantSets/Patch.hs+10−6

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/VariantSets/Search.hs+11−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Create.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Delete.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Get.hs+7−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Import.hs+29−23

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Merge.hsnew file+183

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Patch.hs+11−5

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Search.hs+9−3

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Stream.hsnew file+166

This diff is too big to show here.

gogol-genomics/gogol-genomics.cabal+6−3

This diff is too big to show here.

gogol-gmail/gen/Network/Google/Gmail.hs+11−1

This diff is too big to show here.

gogol-gmail/gen/Network/Google/Gmail/Types.hs+6−1

This diff is too big to show here.

gogol-gmail/gen/Network/Google/Gmail/Types/Product.hs+38−3

This diff is too big to show here.

gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Drafts/List.hs+22−8

This diff is too big to show here.

gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Messages/BatchDelete.hsnew file+101

This diff is too big to show here.

gogol-gmail/gogol-gmail.cabal+2−1

This diff is too big to show here.

gogol-groups-migration/gen/Network/Google/GroupsMigration/Types.hs+1−1

This diff is too big to show here.

gogol-groups-settings/gen/Network/Google/GroupsSettings/Types.hs+1−1

This diff is too big to show here.

gogol-identity-toolkit/gen/Network/Google/IdentityToolkit.hs+159−4

This diff is too big to show here.

gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types.hs+133−3

This diff is too big to show here.

gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types/Product.hs+1444−57

This diff is too big to show here.

gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/GetProjectConfig.hsnew file+102

This diff is too big to show here.

gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/SetProjectConfig.hsnew file+91

This diff is too big to show here.

gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/SignOutUser.hsnew file+90

This diff is too big to show here.

gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/SignupNewUser.hsnew file+89

This diff is too big to show here.

gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/VerifyCustomToken.hsnew file+90

This diff is too big to show here.

gogol-identity-toolkit/gogol-identity-toolkit.cabal+5

This diff is too big to show here.

gogol-latencytest/gen/Network/Google/LatencyTest.hs+1−1

This diff is too big to show here.

gogol-latencytest/gen/Network/Google/LatencyTest/Types.hs+1−1

This diff is too big to show here.

gogol-latencytest/gogol-latencytest.cabal+1−1

This diff is too big to show here.

gogol-logging/gen/Network/Google/Logging.hs+228−3

This diff is too big to show here.

gogol-logging/gen/Network/Google/Logging/Types.hs+175−1

This diff is too big to show here.

gogol-logging/gen/Network/Google/Logging/Types/Product.hs+1408−59

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Entries/List.hsnew file+171

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Entries/Write.hsnew file+169

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/MonitoredResourceDescriptors/List.hsnew file+194

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Projects/Logs/Delete.hsnew file+170

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Projects/Metrics/Create.hsnew file+184

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Projects/Metrics/Delete.hsnew file+169

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Projects/Metrics/Get.hsnew file+169

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Projects/Metrics/List.hsnew file+204

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Projects/Metrics/Update.hsnew file+185

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Create.hsnew file+184

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Delete.hsnew file+168

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Get.hsnew file+168

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/List.hsnew file+205

This diff is too big to show here.

gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Update.hsnew file+183

This diff is too big to show here.

gogol-logging/gogol-logging.cabal+16−2

This diff is too big to show here.

gogol-maps-coordinate/gen/Network/Google/MapsCoordinate/Types.hs+1−1

This diff is too big to show here.

gogol-maps-engine/gen/Network/Google/MapsEngine/Types.hs+1−1

This diff is too big to show here.

gogol-mirror/gen/Network/Google/Mirror/Types.hs+1−1

This diff is too big to show here.

gogol-oauth2/gen/Network/Google/OAuth2/Types.hs+2−2

This diff is too big to show here.

gogol-pagespeed/gen/Network/Google/PageSpeed.hs+2−2

This diff is too big to show here.

gogol-pagespeed/gen/Network/Google/PageSpeed/Types.hs+1−1

This diff is too big to show here.

gogol-pagespeed/gogol-pagespeed.cabal+2−2

This diff is too big to show here.

gogol-partners/gen/Network/Google/Partners/Types.hs+1−1

This diff is too big to show here.

gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner/Types.hs+1−1

This diff is too big to show here.

gogol-plus-domains/gen/Network/Google/PlusDomains/Types.hs+2−2

This diff is too big to show here.

gogol-plus/gen/Network/Google/Plus.hs−98

This diff is too big to show here.

gogol-plus/gen/Network/Google/Plus/Types.hs+2−90

This diff is too big to show here.

gogol-plus/gen/Network/Google/Plus/Types/Product.hs−897

This diff is too big to show here.

gogol-plus/gen/Network/Google/Plus/Types/Sum.hs−49

This diff is too big to show here.

gogol-plus/gogol-plus.cabal−2

This diff is too big to show here.

gogol-prediction/gen/Network/Google/Prediction/Types.hs+1−1

This diff is too big to show here.

gogol-proximitybeacon/gen/Network/Google/ProximityBeacon/Types.hs+1−1

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/PubSub.hs+1

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/PubSub/Types.hs+2−1

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/PubSub/Types/Product.hs+24−10

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/GetIAMPolicy.hs+5−2

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/SetIAMPolicy.hs+3−1

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/TestIAMPermissions.hs+3−1

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/GetIAMPolicy.hs+5−2

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/SetIAMPolicy.hs+3−1

This diff is too big to show here.

gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/TestIAMPermissions.hs+3−1

This diff is too big to show here.

gogol-qpxexpress/gen/Network/Google/QPXExpress.hs+1−2

This diff is too big to show here.

gogol-qpxexpress/gen/Network/Google/QPXExpress/Types.hs+1−1

This diff is too big to show here.

gogol-qpxexpress/gogol-qpxexpress.cabal+1−2

This diff is too big to show here.

gogol-replicapool-updater/gen/Network/Google/ReplicaPoolUpdater.hs+1−2

This diff is too big to show here.

gogol-replicapool-updater/gen/Network/Google/ReplicaPoolUpdater/Types.hs+1−1

This diff is too big to show here.

gogol-replicapool-updater/gen/Network/Google/ReplicaPoolUpdater/Types/Product.hs+4−4

This diff is too big to show here.

gogol-replicapool-updater/gogol-replicapool-updater.cabal+1−2

This diff is too big to show here.

gogol-replicapool/gen/Network/Google/ReplicaPool/Types.hs+1−1

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Projects/Delete.hs+26−48

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Projects/Get.hs+6−6

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Projects/GetIAMPolicy.hs+10−5

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Projects/List.hs+11−13

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Projects/SetIAMPolicy.hs+34−10

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Projects/TestIAMPermissions.hs+8−8

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Projects/Undelete.hs+31−23

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Projects/Update.hs+5−5

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/ResourceManager.hs+6−55

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/ResourceManager/Types.hs+11−20

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/ResourceManager/Types/Product.hs+43−175

This diff is too big to show here.

gogol-resourcemanager/gogol-resourcemanager.cabal+3−10

This diff is too big to show here.

gogol-resourceviews/gen/Network/Google/ResourceViews/Types.hs+1−1

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Products/List.hs+24−8

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/Resource/Content/Productstatuses/List.hs+24−8

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/ShoppingContent.hs+38−8

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/ShoppingContent/Types.hs+37−7

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/ShoppingContent/Types/Product.hs+409−78

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/ShoppingContent/Types/Sum.hs+8

This diff is too big to show here.

gogol-shopping-content/gogol-shopping-content.cabal+2−2

This diff is too big to show here.

gogol-siteverification/gen/Network/Google/SiteVerification.hs+1−2

This diff is too big to show here.

gogol-siteverification/gen/Network/Google/SiteVerification/Types.hs+1−1

This diff is too big to show here.

gogol-siteverification/gogol-siteverification.cabal+1−2

This diff is too big to show here.

gogol-spectrum/gen/Network/Google/Spectrum/Types.hs+1−1

This diff is too big to show here.

gogol-sqladmin/gen/Network/Google/Resource/SQL/Databases/Delete.hs+2−4

This diff is too big to show here.

gogol-sqladmin/gen/Network/Google/Resource/SQL/Instances/Clone.hs+4−2

This diff is too big to show here.

gogol-sqladmin/gen/Network/Google/SQLAdmin.hs+20

This diff is too big to show here.

gogol-sqladmin/gen/Network/Google/SQLAdmin/Types.hs+21−1

This diff is too big to show here.

gogol-sqladmin/gen/Network/Google/SQLAdmin/Types/Product.hs+244−27

This diff is too big to show here.

gogol-storage-transfer/gen/Network/Google/StorageTransfer/Types.hs+1−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Storage.hs+8−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Storage/Types.hs+8−1

This diff is too big to show here.

gogol-storage/gen/Network/Google/Storage/Types/Product.hs+64

This diff is too big to show here.

gogol-storage/gogol-storage.cabal+1−1

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Environments/Create.hsnew file+118

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Environments/Delete.hsnew file+118

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Environments/Get.hsnew file+118

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Environments/List.hsnew file+104

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Environments/Patch.hsnew file+146

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Environments/Update.hsnew file+147

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/MoveFolders/Update.hs+15−2

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/ReauthorizeEnvironments/Update.hsnew file+136

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Versions/List.hs+18−5

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/TagManager.hs+61−1

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/TagManager/Types.hs+25−1

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/TagManager/Types/Product.hs+205

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/TagManager/Types/Sum.hs+39

This diff is too big to show here.

gogol-tagmanager/gogol-tagmanager.cabal+8−1

This diff is too big to show here.

gogol-taskqueue/gen/Network/Google/TaskQueue/Types.hs+1−1

This diff is too big to show here.

gogol-translate/gen/Network/Google/Translate/Types.hs+1−1

This diff is too big to show here.

gogol-urlshortener/gen/Network/Google/URLShortener/Types.hs+1−1

This diff is too big to show here.

gogol-useraccounts/gen/Network/Google/Resource/CloudUserAccounts/GlobalAccountsOperations/List.hs+26−13

This diff is too big to show here.

gogol-useraccounts/gen/Network/Google/Resource/CloudUserAccounts/Groups/List.hs+26−13

This diff is too big to show here.

gogol-useraccounts/gen/Network/Google/Resource/CloudUserAccounts/Linux/GetLinuxAccountViews.hs+26−13

This diff is too big to show here.

gogol-useraccounts/gen/Network/Google/Resource/CloudUserAccounts/Users/List.hs+26−13

This diff is too big to show here.

gogol-useraccounts/gen/Network/Google/UserAccounts.hs+3−1

This diff is too big to show here.

gogol-useraccounts/gen/Network/Google/UserAccounts/Types.hs+2−1

This diff is too big to show here.

gogol-useraccounts/gen/Network/Google/UserAccounts/Types/Product.hs+59−32

This diff is too big to show here.

gogol-useraccounts/gen/Network/Google/UserAccounts/Types/Sum.hs+9−4

This diff is too big to show here.

gogol-useraccounts/gogol-useraccounts.cabal+2−1

This diff is too big to show here.

gogol-webmaster-tools/README.md+1−1

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/Searchanalytics/Query.hs+1−1

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/Sitemaps/Delete.hs+1−1

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/Sitemaps/Get.hs+1−1

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/Sitemaps/List.hs+1−1

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/Sitemaps/Submit.hs+1−1

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/Sites/Add.hs+3−3

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/Sites/Delete.hs+3−3

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/Sites/Get.hs+1−1

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/Sites/List.hs+3−3

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/URLCrawlErrorsSamples/Get.hs+1−1

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/URLCrawlErrorsSamples/List.hs+1−1

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/URLCrawlErrorsSamples/MarkAsFixed.hs+1−1

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/Resource/Webmasters/URLCrawlErrorscounts/Query.hs+1−1

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/WebmasterTools.hs+4−3

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/WebmasterTools/Types.hs+5−4

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/WebmasterTools/Types/Product.hs+17−4

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/WebmasterTools/Types/Sum.hs+16

This diff is too big to show here.

gogol-webmaster-tools/gogol-webmaster-tools.cabal+2−2

This diff is too big to show here.

gogol-youtube-analytics/gen/Network/Google/Resource/YouTubeAnalytics/Groups/List.hs+16−2

This diff is too big to show here.

gogol-youtube-analytics/gen/Network/Google/YouTubeAnalytics.hs+2−1

This diff is too big to show here.

gogol-youtube-analytics/gen/Network/Google/YouTubeAnalytics/Types.hs+2−1

This diff is too big to show here.

gogol-youtube-analytics/gen/Network/Google/YouTubeAnalytics/Types/Product.hs+16−5

This diff is too big to show here.

gogol-youtube-analytics/gogol-youtube-analytics.cabal+1−1

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/List.hs+22−7

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Jobs/Reports/List.hs+57−15

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Media/Download.hs+1−1

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/ReportTypes/List.hs+22−7

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/YouTubeReporting.hs+4−2

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/YouTubeReporting/Types.hs+3−1

This diff is too big to show here.

gogol-youtube-reporting/gen/Network/Google/YouTubeReporting/Types/Product.hs+38−11

This diff is too big to show here.

gogol-youtube-reporting/gogol-youtube-reporting.cabal+2−2

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/FanFundingEvents/List.hsnew file+133

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/LiveBroadcasts/List.hs+23−6

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/LiveChatBans/Delete.hsnew file+84

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/LiveChatBans/Insert.hsnew file+100

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/LiveChatMessages/Delete.hsnew file+84

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/LiveChatMessages/Insert.hsnew file+99

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/LiveChatMessages/List.hsnew file+164

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/LiveChatModerators/Delete.hsnew file+84

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/LiveChatModerators/Insert.hsnew file+99

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/LiveChatModerators/List.hsnew file+131

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/Sponsors/List.hsnew file+122

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/Subscriptions/List.hs+90−89

This diff is too big to show here.

gogol-youtube/gen/Network/Google/YouTube.hs+255−38

This diff is too big to show here.

gogol-youtube/gen/Network/Google/YouTube/Types.hs+206−34

This diff is too big to show here.

gogol-youtube/gen/Network/Google/YouTube/Types/Product.hs+1748−227

This diff is too big to show here.

gogol-youtube/gen/Network/Google/YouTube/Types/Sum.hs+241−42

This diff is too big to show here.

gogol-youtube/gogol-youtube.cabal+10−1

This diff is too big to show here.