on develop help sign in
Regenerating gogol-play-moviespartner from updated service defintions
commit061460e7d64eabc8fc86662a5266ff0340465b99 authorBrendan Hay <brendan.g.hay@gmail.com> dateSat 11 Feb 2017, 11:36 (10 years ago) parentc053ca4
8 files changed+2−1962
gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner.hs+2−89 gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner/Types.hs−67 gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner/Types/Product.hs−737 gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/Components/List.hs−366 gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/Components/Type/Get.hs−202 gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/ExperienceLocales/Get.hs−192 gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/ExperienceLocales/List.hs−305 gogol-play-moviespartner/gogol-play-moviespartner.cabal−4
gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner.hs+2−89
@@ -35,18 +35,6 @@ module Network.Google.PlayMoviesPartner
3535 -- ** playmoviespartner.accounts.avails.list
3636 , module Network.Google.Resource.PlayMoviesPartner.Accounts.Avails.List
3737
38− -- ** playmoviespartner.accounts.components.list
39− , module Network.Google.Resource.PlayMoviesPartner.Accounts.Components.List
40−
41− -- ** playmoviespartner.accounts.components.type.get
42− , module Network.Google.Resource.PlayMoviesPartner.Accounts.Components.Type.Get
43−
44− -- ** playmoviespartner.accounts.experienceLocales.get
45− , module Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.Get
46−
47− -- ** playmoviespartner.accounts.experienceLocales.list
48− , module Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.List
49−
5038 -- ** playmoviespartner.accounts.orders.get
5139 , module Network.Google.Resource.PlayMoviesPartner.Accounts.Orders.Get
5240
@@ -61,39 +49,6 @@ module Network.Google.PlayMoviesPartner
6149
6250 -- * Types
6351
64− -- ** Component
65− , Component
66− , component
67− , cStatus
68− , cPphName
69− , cStudioName
70− , cElIds
71− , cReceivedTime
72− , cPriority
73− , cCustomIds
74− , cAltCutIds
75− , cProcessingErrors
76− , cPlayableUnitType
77− , cEditLevelEidrs
78− , cApprovedTime
79− , cName
80− , cTitleLevelEidrs
81− , cRejectionNote
82− , cComponentId
83− , cLanguage
84− , cStatusDetail
85− , cType
86− , cNormalizedPriority
87− , cComponentDetailType
88− , cFilename
89−
90− -- ** ListComponentsResponse
91− , ListComponentsResponse
92− , listComponentsResponse
93− , lcrComponents
94− , lcrNextPageToken
95− , lcrTotalSize
96−
9752 -- ** Avail
9853 , Avail
9954 , avail
@@ -138,13 +93,6 @@ module Network.Google.PlayMoviesPartner
13893 , larAvails
13994 , larTotalSize
14095
141− -- ** ListExperienceLocalesResponse
142− , ListExperienceLocalesResponse
143− , listExperienceLocalesResponse
144− , lelrNextPageToken
145− , lelrTotalSize
146− , lelrExperienceLocales
147−
14896 -- ** ListOrdersResponse
14997 , ListOrdersResponse
15098 , listOrdersResponse
@@ -186,33 +134,6 @@ module Network.Google.PlayMoviesPartner
186134 , oOrderId
187135 , oEpisodeName
188136
189− -- ** ExperienceLocale
190− , ExperienceLocale
191− , experienceLocale
192− , elTitleLevelEidr
193− , elStatus
194− , elPphNames
195− , elInventoryId
196− , elEarliestAvailStartTime
197− , elStudioName
198− , elPriority
199− , elCustomIds
200− , elCreatedTime
201− , elCountry
202− , elTrailerId
203− , elPresentationId
204− , elAltCutId
205− , elChannelId
206− , elApprovedTime
207− , elPlayableSequenceId
208− , elElId
209− , elVideoId
210− , elName
211− , elLanguage
212− , elEditLevelEidr
213− , elType
214− , elNormalizedPriority
215−
216137 -- ** StoreInfo
217138 , StoreInfo
218139 , storeInfo
@@ -247,10 +168,6 @@ import Network.Google.PlayMoviesPartner.Types
247168import Network.Google.Prelude
248169import Network.Google.Resource.PlayMoviesPartner.Accounts.Avails.Get
249170import Network.Google.Resource.PlayMoviesPartner.Accounts.Avails.List
250−import Network.Google.Resource.PlayMoviesPartner.Accounts.Components.List
251−import Network.Google.Resource.PlayMoviesPartner.Accounts.Components.Type.Get
252−import Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.Get
253−import Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.List
254171import Network.Google.Resource.PlayMoviesPartner.Accounts.Orders.Get
255172import Network.Google.Resource.PlayMoviesPartner.Accounts.Orders.List
256173import Network.Google.Resource.PlayMoviesPartner.Accounts.StoreInfos.Country.Get
@@ -262,13 +179,9 @@ TODO
262179
263180-- | Represents the entirety of the methods and resources available for the Google Play Movies Partner API service.
264181type PlayMoviesPartnerAPI =
265− AccountsComponentsTypeGetResource :<|>
266− AccountsComponentsListResource
267− :<|> AccountsAvailsListResource
268− :<|> AccountsAvailsGetResource
182+ AccountsAvailsListResource :<|>
183+ AccountsAvailsGetResource
269184 :<|> AccountsStoreInfosCountryGetResource
270185 :<|> AccountsStoreInfosListResource
271186 :<|> AccountsOrdersListResource
272187 :<|> AccountsOrdersGetResource
273− :<|> AccountsExperienceLocalesListResource
274− :<|> AccountsExperienceLocalesGetResource
gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner/Types.hs−67
@@ -22,39 +22,6 @@ module Network.Google.PlayMoviesPartner.Types
2222 -- * OAuth Scopes
2323 , playmoviesPartnerReadOnlyScope
2424
25− -- * Component
26− , Component
27− , component
28− , cStatus
29− , cPphName
30− , cStudioName
31− , cElIds
32− , cReceivedTime
33− , cPriority
34− , cCustomIds
35− , cAltCutIds
36− , cProcessingErrors
37− , cPlayableUnitType
38− , cEditLevelEidrs
39− , cApprovedTime
40− , cName
41− , cTitleLevelEidrs
42− , cRejectionNote
43− , cComponentId
44− , cLanguage
45− , cStatusDetail
46− , cType
47− , cNormalizedPriority
48− , cComponentDetailType
49− , cFilename
50−
51− -- * ListComponentsResponse
52− , ListComponentsResponse
53− , listComponentsResponse
54− , lcrComponents
55− , lcrNextPageToken
56− , lcrTotalSize
57−
5825 -- * Avail
5926 , Avail
6027 , avail
@@ -99,13 +66,6 @@ module Network.Google.PlayMoviesPartner.Types
9966 , larAvails
10067 , larTotalSize
10168
102− -- * ListExperienceLocalesResponse
103− , ListExperienceLocalesResponse
104− , listExperienceLocalesResponse
105− , lelrNextPageToken
106− , lelrTotalSize
107− , lelrExperienceLocales
108−
10969 -- * ListOrdersResponse
11070 , ListOrdersResponse
11171 , listOrdersResponse
@@ -147,33 +107,6 @@ module Network.Google.PlayMoviesPartner.Types
147107 , oOrderId
148108 , oEpisodeName
149109
150− -- * ExperienceLocale
151− , ExperienceLocale
152− , experienceLocale
153− , elTitleLevelEidr
154− , elStatus
155− , elPphNames
156− , elInventoryId
157− , elEarliestAvailStartTime
158− , elStudioName
159− , elPriority
160− , elCustomIds
161− , elCreatedTime
162− , elCountry
163− , elTrailerId
164− , elPresentationId
165− , elAltCutId
166− , elChannelId
167− , elApprovedTime
168− , elPlayableSequenceId
169− , elElId
170− , elVideoId
171− , elName
172− , elLanguage
173− , elEditLevelEidr
174− , elType
175− , elNormalizedPriority
176−
177110 -- * StoreInfo
178111 , StoreInfo
179112 , storeInfo
gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner/Types/Product.hs−737
@@ -20,371 +20,6 @@ module Network.Google.PlayMoviesPartner.Types.Product where
2020import Network.Google.PlayMoviesPartner.Types.Sum
2121import Network.Google.Prelude
2222
23−-- | A Component is an element (audio, video, subtitle, artwork, trailer,
24−-- etc...) that is used in a set of ExperienceLocales. A Component is owned
25−-- by a Studio and managed either by the Studio itself or by one
26−-- Post-Production House. Each Component is identified by a
27−-- \`component_id\` and its \`type\`.
28−--
29−-- /See:/ 'component' smart constructor.
30−data Component = Component'
31− { _cStatus :: !(Maybe Text)
32− , _cPphName :: !(Maybe Text)
33− , _cStudioName :: !(Maybe Text)
34− , _cElIds :: !(Maybe [Text])
35− , _cReceivedTime :: !(Maybe Text)
36− , _cPriority :: !(Maybe (Textual Double))
37− , _cCustomIds :: !(Maybe [Text])
38− , _cAltCutIds :: !(Maybe [Text])
39− , _cProcessingErrors :: !(Maybe [Text])
40− , _cPlayableUnitType :: !(Maybe Text)
41− , _cEditLevelEidrs :: !(Maybe [Text])
42− , _cApprovedTime :: !(Maybe Text)
43− , _cName :: !(Maybe Text)
44− , _cTitleLevelEidrs :: !(Maybe [Text])
45− , _cRejectionNote :: !(Maybe Text)
46− , _cComponentId :: !(Maybe Text)
47− , _cLanguage :: !(Maybe Text)
48− , _cStatusDetail :: !(Maybe Text)
49− , _cType :: !(Maybe Text)
50− , _cNormalizedPriority :: !(Maybe Text)
51− , _cComponentDetailType :: !(Maybe Text)
52− , _cFilename :: !(Maybe Text)
53− } deriving (Eq,Show,Data,Typeable,Generic)
54−
55−-- | Creates a value of 'Component' with the minimum fields required to make a request.
56−--
57−-- Use one of the following lenses to modify other fields as desired:
58−--
59−-- * 'cStatus'
60−--
61−-- * 'cPphName'
62−--
63−-- * 'cStudioName'
64−--
65−-- * 'cElIds'
66−--
67−-- * 'cReceivedTime'
68−--
69−-- * 'cPriority'
70−--
71−-- * 'cCustomIds'
72−--
73−-- * 'cAltCutIds'
74−--
75−-- * 'cProcessingErrors'
76−--
77−-- * 'cPlayableUnitType'
78−--
79−-- * 'cEditLevelEidrs'
80−--
81−-- * 'cApprovedTime'
82−--
83−-- * 'cName'
84−--
85−-- * 'cTitleLevelEidrs'
86−--
87−-- * 'cRejectionNote'
88−--
89−-- * 'cComponentId'
90−--
91−-- * 'cLanguage'
92−--
93−-- * 'cStatusDetail'
94−--
95−-- * 'cType'
96−--
97−-- * 'cNormalizedPriority'
98−--
99−-- * 'cComponentDetailType'
100−--
101−-- * 'cFilename'
102−component
103− :: Component
104−component =
105− Component'
106− { _cStatus = Nothing
107− , _cPphName = Nothing
108− , _cStudioName = Nothing
109− , _cElIds = Nothing
110− , _cReceivedTime = Nothing
111− , _cPriority = Nothing
112− , _cCustomIds = Nothing
113− , _cAltCutIds = Nothing
114− , _cProcessingErrors = Nothing
115− , _cPlayableUnitType = Nothing
116− , _cEditLevelEidrs = Nothing
117− , _cApprovedTime = Nothing
118− , _cName = Nothing
119− , _cTitleLevelEidrs = Nothing
120− , _cRejectionNote = Nothing
121− , _cComponentId = Nothing
122− , _cLanguage = Nothing
123− , _cStatusDetail = Nothing
124− , _cType = Nothing
125− , _cNormalizedPriority = Nothing
126− , _cComponentDetailType = Nothing
127− , _cFilename = Nothing
128− }
129−
130−-- | High-level status of the Component.
131−cStatus :: Lens' Component (Maybe Text)
132−cStatus = lens _cStatus (\ s a -> s{_cStatus = a})
133−
134−-- | Name of the post-production house that manages the Component.
135−cPphName :: Lens' Component (Maybe Text)
136−cPphName = lens _cPphName (\ s a -> s{_cPphName = a})
137−
138−-- | Name of the studio that owns the Component.
139−cStudioName :: Lens' Component (Maybe Text)
140−cStudioName
141− = lens _cStudioName (\ s a -> s{_cStudioName = a})
142−
143−-- | IDs internally generated by Google to uniquely identify the
144−-- ExperienceLocales for which the Component is used. Example:
145−-- \'KRZiVjY9h7t\'
146−cElIds :: Lens' Component [Text]
147−cElIds
148− = lens _cElIds (\ s a -> s{_cElIds = a}) . _Default .
149− _Coerce
150−
151−-- | Timestamp when the Component was received.
152−cReceivedTime :: Lens' Component (Maybe Text)
153−cReceivedTime
154− = lens _cReceivedTime
155− (\ s a -> s{_cReceivedTime = a})
156−
157−-- | Component priority, as defined by Google. The higher the value, the
158−-- higher the priority.
159−cPriority :: Lens' Component (Maybe Double)
160−cPriority
161− = lens _cPriority (\ s a -> s{_cPriority = a}) .
162− mapping _Coerce
163−
164−-- | List of custom IDs (defined by the partner) linked to the
165−-- ExperienceLocale using this Component. Example: \"R86241\"
166−cCustomIds :: Lens' Component [Text]
167−cCustomIds
168− = lens _cCustomIds (\ s a -> s{_cCustomIds = a}) .
169− _Default
170− . _Coerce
171−
172−-- | List of Alternative Cut IDs, sometimes available in lieu of the main
173−-- Edit-level EIDR IDs. This is not an EIDR ID, but a Partner-provided ID.
174−-- Example: \"206346_79838\".
175−cAltCutIds :: Lens' Component [Text]
176−cAltCutIds
177− = lens _cAltCutIds (\ s a -> s{_cAltCutIds = a}) .
178− _Default
179− . _Coerce
180−
181−-- | Processing errors during XML file parsing. Example: \'Invalid input
182−-- file\'
183−cProcessingErrors :: Lens' Component [Text]
184−cProcessingErrors
185− = lens _cProcessingErrors
186− (\ s a -> s{_cProcessingErrors = a})
187− . _Default
188− . _Coerce
189−
190−-- | Type of the playable unit for which the Component is intended.
191−cPlayableUnitType :: Lens' Component (Maybe Text)
192−cPlayableUnitType
193− = lens _cPlayableUnitType
194− (\ s a -> s{_cPlayableUnitType = a})
195−
196−-- | List of Edit-level EIDR IDs. Example:
197−-- \"10.5240\/1489-49A2-3956-4B2D-FE16-6\".
198−cEditLevelEidrs :: Lens' Component [Text]
199−cEditLevelEidrs
200− = lens _cEditLevelEidrs
201− (\ s a -> s{_cEditLevelEidrs = a})
202− . _Default
203− . _Coerce
204−
205−-- | Timestamp when the Component was approved.
206−cApprovedTime :: Lens' Component (Maybe Text)
207−cApprovedTime
208− = lens _cApprovedTime
209− (\ s a -> s{_cApprovedTime = a})
210−
211−-- | Default Edit name, usually in the language of the country of origin.
212−-- Example: \"Googlers, The\".
213−cName :: Lens' Component (Maybe Text)
214−cName = lens _cName (\ s a -> s{_cName = a})
215−
216−-- | List of Title-level EIDR IDs. Example:
217−-- \"10.5240\/1489-49A2-3956-4B2D-FE16-5\".
218−cTitleLevelEidrs :: Lens' Component [Text]
219−cTitleLevelEidrs
220− = lens _cTitleLevelEidrs
221− (\ s a -> s{_cTitleLevelEidrs = a})
222− . _Default
223− . _Coerce
224−
225−-- | Notes explaining why a Component has been rejected.
226−cRejectionNote :: Lens' Component (Maybe Text)
227−cRejectionNote
228− = lens _cRejectionNote
229− (\ s a -> s{_cRejectionNote = a})
230−
231−-- | ID internally generated by Google to uniquely identify the Component.
232−-- Example: \'wteyrc_647xc\'
233−cComponentId :: Lens' Component (Maybe Text)
234−cComponentId
235− = lens _cComponentId (\ s a -> s{_cComponentId = a})
236−
237−-- | Language of the component, using the \"BCP 47\" format. Examples:
238−-- \"en\", \"en-US\", \"es\", \"es-419\".
239−cLanguage :: Lens' Component (Maybe Text)
240−cLanguage
241− = lens _cLanguage (\ s a -> s{_cLanguage = a})
242−
243−-- | Detailed status of the Component
244−cStatusDetail :: Lens' Component (Maybe Text)
245−cStatusDetail
246− = lens _cStatusDetail
247− (\ s a -> s{_cStatusDetail = a})
248−
249−-- | Type of the Component. Example: AUDIO_51
250−cType :: Lens' Component (Maybe Text)
251−cType = lens _cType (\ s a -> s{_cType = a})
252−
253−-- | A simpler representation of the priority.
254−cNormalizedPriority :: Lens' Component (Maybe Text)
255−cNormalizedPriority
256− = lens _cNormalizedPriority
257− (\ s a -> s{_cNormalizedPriority = a})
258−
259−-- | Detail about the type of the Component.
260−cComponentDetailType :: Lens' Component (Maybe Text)
261−cComponentDetailType
262− = lens _cComponentDetailType
263− (\ s a -> s{_cComponentDetailType = a})
264−
265−-- | File name of the Component when delivered.
266−cFilename :: Lens' Component (Maybe Text)
267−cFilename
268− = lens _cFilename (\ s a -> s{_cFilename = a})
269−
270−instance FromJSON Component where
271− parseJSON
272− = withObject "Component"
273− (\ o ->
274− Component' <$>
275− (o .:? "status") <*> (o .:? "pphName") <*>
276− (o .:? "studioName")
277− <*> (o .:? "elIds" .!= mempty)
278− <*> (o .:? "receivedTime")
279− <*> (o .:? "priority")
280− <*> (o .:? "customIds" .!= mempty)
281− <*> (o .:? "altCutIds" .!= mempty)
282− <*> (o .:? "processingErrors" .!= mempty)
283− <*> (o .:? "playableUnitType")
284− <*> (o .:? "editLevelEidrs" .!= mempty)
285− <*> (o .:? "approvedTime")
286− <*> (o .:? "name")
287− <*> (o .:? "titleLevelEidrs" .!= mempty)
288− <*> (o .:? "rejectionNote")
289− <*> (o .:? "componentId")
290− <*> (o .:? "language")
291− <*> (o .:? "statusDetail")
292− <*> (o .:? "type")
293− <*> (o .:? "normalizedPriority")
294− <*> (o .:? "componentDetailType")
295− <*> (o .:? "filename"))
296−
297−instance ToJSON Component where
298− toJSON Component'{..}
299− = object
300− (catMaybes
301− [("status" .=) <$> _cStatus,
302− ("pphName" .=) <$> _cPphName,
303− ("studioName" .=) <$> _cStudioName,
304− ("elIds" .=) <$> _cElIds,
305− ("receivedTime" .=) <$> _cReceivedTime,
306− ("priority" .=) <$> _cPriority,
307− ("customIds" .=) <$> _cCustomIds,
308− ("altCutIds" .=) <$> _cAltCutIds,
309− ("processingErrors" .=) <$> _cProcessingErrors,
310− ("playableUnitType" .=) <$> _cPlayableUnitType,
311− ("editLevelEidrs" .=) <$> _cEditLevelEidrs,
312− ("approvedTime" .=) <$> _cApprovedTime,
313− ("name" .=) <$> _cName,
314− ("titleLevelEidrs" .=) <$> _cTitleLevelEidrs,
315− ("rejectionNote" .=) <$> _cRejectionNote,
316− ("componentId" .=) <$> _cComponentId,
317− ("language" .=) <$> _cLanguage,
318− ("statusDetail" .=) <$> _cStatusDetail,
319− ("type" .=) <$> _cType,
320− ("normalizedPriority" .=) <$> _cNormalizedPriority,
321− ("componentDetailType" .=) <$> _cComponentDetailType,
322− ("filename" .=) <$> _cFilename])
323−
324−-- | Response to the \'ListComponents\' method.
325−--
326−-- /See:/ 'listComponentsResponse' smart constructor.
327−data ListComponentsResponse = ListComponentsResponse'
328− { _lcrComponents :: !(Maybe [Component])
329− , _lcrNextPageToken :: !(Maybe Text)
330− , _lcrTotalSize :: !(Maybe (Textual Int32))
331− } deriving (Eq,Show,Data,Typeable,Generic)
332−
333−-- | Creates a value of 'ListComponentsResponse' with the minimum fields required to make a request.
334−--
335−-- Use one of the following lenses to modify other fields as desired:
336−--
337−-- * 'lcrComponents'
338−--
339−-- * 'lcrNextPageToken'
340−--
341−-- * 'lcrTotalSize'
342−listComponentsResponse
343− :: ListComponentsResponse
344−listComponentsResponse =
345− ListComponentsResponse'
346− { _lcrComponents = Nothing
347− , _lcrNextPageToken = Nothing
348− , _lcrTotalSize = Nothing
349− }
350−
351−-- | List of Components that match the request criteria.
352−lcrComponents :: Lens' ListComponentsResponse [Component]
353−lcrComponents
354− = lens _lcrComponents
355− (\ s a -> s{_lcrComponents = a})
356− . _Default
357− . _Coerce
358−
359−-- | See _List methods rules_ for info about this field.
360−lcrNextPageToken :: Lens' ListComponentsResponse (Maybe Text)
361−lcrNextPageToken
362− = lens _lcrNextPageToken
363− (\ s a -> s{_lcrNextPageToken = a})
364−
365−-- | See _List methods rules_ for more information about this field.
366−lcrTotalSize :: Lens' ListComponentsResponse (Maybe Int32)
367−lcrTotalSize
368− = lens _lcrTotalSize (\ s a -> s{_lcrTotalSize = a})
369− . mapping _Coerce
370−
371−instance FromJSON ListComponentsResponse where
372− parseJSON
373− = withObject "ListComponentsResponse"
374− (\ o ->
375− ListComponentsResponse' <$>
376− (o .:? "components" .!= mempty) <*>
377− (o .:? "nextPageToken")
378− <*> (o .:? "totalSize"))
379−
380−instance ToJSON ListComponentsResponse where
381− toJSON ListComponentsResponse'{..}
382− = object
383− (catMaybes
384− [("components" .=) <$> _lcrComponents,
385− ("nextPageToken" .=) <$> _lcrNextPageToken,
386− ("totalSize" .=) <$> _lcrTotalSize])
387−
38823-- | An Avail describes the Availability Window of a specific Edit in a given
38924-- country, which means the period Google is allowed to sell or rent the
39025-- Edit. Avails are exposed in EMA format Version 1.6b (available at
@@ -891,70 +526,6 @@ instance ToJSON ListAvailsResponse where
891526 ("avails" .=) <$> _larAvails,
892527 ("totalSize" .=) <$> _larTotalSize])
893528
894−-- | Response to the \'ListExperienceLocales\' method.
895−--
896−-- /See:/ 'listExperienceLocalesResponse' smart constructor.
897−data ListExperienceLocalesResponse = ListExperienceLocalesResponse'
898− { _lelrNextPageToken :: !(Maybe Text)
899− , _lelrTotalSize :: !(Maybe (Textual Int32))
900− , _lelrExperienceLocales :: !(Maybe [ExperienceLocale])
901− } deriving (Eq,Show,Data,Typeable,Generic)
902−
903−-- | Creates a value of 'ListExperienceLocalesResponse' with the minimum fields required to make a request.
904−--
905−-- Use one of the following lenses to modify other fields as desired:
906−--
907−-- * 'lelrNextPageToken'
908−--
909−-- * 'lelrTotalSize'
910−--
911−-- * 'lelrExperienceLocales'
912−listExperienceLocalesResponse
913− :: ListExperienceLocalesResponse
914−listExperienceLocalesResponse =
915− ListExperienceLocalesResponse'
916− { _lelrNextPageToken = Nothing
917− , _lelrTotalSize = Nothing
918− , _lelrExperienceLocales = Nothing
919− }
920−
921−-- | See _List methods rules_ for info about this field.
922−lelrNextPageToken :: Lens' ListExperienceLocalesResponse (Maybe Text)
923−lelrNextPageToken
924− = lens _lelrNextPageToken
925− (\ s a -> s{_lelrNextPageToken = a})
926−
927−-- | See _List methods rules_ for more information about this field.
928−lelrTotalSize :: Lens' ListExperienceLocalesResponse (Maybe Int32)
929−lelrTotalSize
930− = lens _lelrTotalSize
931− (\ s a -> s{_lelrTotalSize = a})
932− . mapping _Coerce
933−
934−-- | List of ExperienceLocales that match the request criteria.
935−lelrExperienceLocales :: Lens' ListExperienceLocalesResponse [ExperienceLocale]
936−lelrExperienceLocales
937− = lens _lelrExperienceLocales
938− (\ s a -> s{_lelrExperienceLocales = a})
939− . _Default
940− . _Coerce
941−
942−instance FromJSON ListExperienceLocalesResponse where
943− parseJSON
944− = withObject "ListExperienceLocalesResponse"
945− (\ o ->
946− ListExperienceLocalesResponse' <$>
947− (o .:? "nextPageToken") <*> (o .:? "totalSize") <*>
948− (o .:? "experienceLocales" .!= mempty))
949−
950−instance ToJSON ListExperienceLocalesResponse where
951− toJSON ListExperienceLocalesResponse'{..}
952− = object
953− (catMaybes
954− [("nextPageToken" .=) <$> _lelrNextPageToken,
955− ("totalSize" .=) <$> _lelrTotalSize,
956− ("experienceLocales" .=) <$> _lelrExperienceLocales])
957−
958529-- | Response to the \'ListOrders\' method.
959530--
960531-- /See:/ 'listOrdersResponse' smart constructor.
@@ -1380,314 +951,6 @@ instance ToJSON Order where
1380951 ("orderId" .=) <$> _oOrderId,
1381952 ("episodeName" .=) <$> _oEpisodeName])
1382953
1383−-- | An ExperienceLocale tracks the fulfillment of a Title in a country using
1384−-- a specific language, when delivered using component-based delivery. For
1385−-- example, a Title in Switzerland might have 3 ExperienceLocales: they
1386−-- both share the same country (\"CH\"), but each has different languages
1387−-- (\"de\", \"fr\", and \"it\"). Each ExperienceLocale is uniquely
1388−-- identified by an \`el_id\`, which is generated by Google. Externally, an
1389−-- ExperienceLocale can also be identified by partners using its EIDR IDs,
1390−-- AltCutID or \`custom_id\` (when provided).
1391−--
1392−-- /See:/ 'experienceLocale' smart constructor.
1393−data ExperienceLocale = ExperienceLocale'
1394− { _elTitleLevelEidr :: !(Maybe Text)
1395− , _elStatus :: !(Maybe Text)
1396− , _elPphNames :: !(Maybe [Text])
1397− , _elInventoryId :: !(Maybe Text)
1398− , _elEarliestAvailStartTime :: !(Maybe Text)
1399− , _elStudioName :: !(Maybe Text)
1400− , _elPriority :: !(Maybe (Textual Double))
1401− , _elCustomIds :: !(Maybe [Text])
1402− , _elCreatedTime :: !(Maybe Text)
1403− , _elCountry :: !(Maybe Text)
1404− , _elTrailerId :: !(Maybe Text)
1405− , _elPresentationId :: !(Maybe Text)
1406− , _elAltCutId :: !(Maybe Text)
1407− , _elChannelId :: !(Maybe Text)
1408− , _elApprovedTime :: !(Maybe Text)
1409− , _elPlayableSequenceId :: !(Maybe Text)
1410− , _elElId :: !(Maybe Text)
1411− , _elVideoId :: !(Maybe Text)
1412− , _elName :: !(Maybe Text)
1413− , _elLanguage :: !(Maybe Text)
1414− , _elEditLevelEidr :: !(Maybe Text)
1415− , _elType :: !(Maybe Text)
1416− , _elNormalizedPriority :: !(Maybe Text)
1417− } deriving (Eq,Show,Data,Typeable,Generic)
1418−
1419−-- | Creates a value of 'ExperienceLocale' with the minimum fields required to make a request.
1420−--
1421−-- Use one of the following lenses to modify other fields as desired:
1422−--
1423−-- * 'elTitleLevelEidr'
1424−--
1425−-- * 'elStatus'
1426−--
1427−-- * 'elPphNames'
1428−--
1429−-- * 'elInventoryId'
1430−--
1431−-- * 'elEarliestAvailStartTime'
1432−--
1433−-- * 'elStudioName'
1434−--
1435−-- * 'elPriority'
1436−--
1437−-- * 'elCustomIds'
1438−--
1439−-- * 'elCreatedTime'
1440−--
1441−-- * 'elCountry'
1442−--
1443−-- * 'elTrailerId'
1444−--
1445−-- * 'elPresentationId'
1446−--
1447−-- * 'elAltCutId'
1448−--
1449−-- * 'elChannelId'
1450−--
1451−-- * 'elApprovedTime'
1452−--
1453−-- * 'elPlayableSequenceId'
1454−--
1455−-- * 'elElId'
1456−--
1457−-- * 'elVideoId'
1458−--
1459−-- * 'elName'
1460−--
1461−-- * 'elLanguage'
1462−--
1463−-- * 'elEditLevelEidr'
1464−--
1465−-- * 'elType'
1466−--
1467−-- * 'elNormalizedPriority'
1468−experienceLocale
1469− :: ExperienceLocale
1470−experienceLocale =
1471− ExperienceLocale'
1472− { _elTitleLevelEidr = Nothing
1473− , _elStatus = Nothing
1474− , _elPphNames = Nothing
1475− , _elInventoryId = Nothing
1476− , _elEarliestAvailStartTime = Nothing
1477− , _elStudioName = Nothing
1478− , _elPriority = Nothing
1479− , _elCustomIds = Nothing
1480− , _elCreatedTime = Nothing
1481− , _elCountry = Nothing
1482− , _elTrailerId = Nothing
1483− , _elPresentationId = Nothing
1484− , _elAltCutId = Nothing
1485− , _elChannelId = Nothing
1486− , _elApprovedTime = Nothing
1487− , _elPlayableSequenceId = Nothing
1488− , _elElId = Nothing
1489− , _elVideoId = Nothing
1490− , _elName = Nothing
1491− , _elLanguage = Nothing
1492− , _elEditLevelEidr = Nothing
1493− , _elType = Nothing
1494− , _elNormalizedPriority = Nothing
1495− }
1496−
1497−-- | Title-level EIDR ID. Example: \"10.5240\/1489-49A2-3956-4B2D-FE16-5\".
1498−elTitleLevelEidr :: Lens' ExperienceLocale (Maybe Text)
1499−elTitleLevelEidr
1500− = lens _elTitleLevelEidr
1501− (\ s a -> s{_elTitleLevelEidr = a})
1502−
1503−-- | High-level status of the ExperienceLocale.
1504−elStatus :: Lens' ExperienceLocale (Maybe Text)
1505−elStatus = lens _elStatus (\ s a -> s{_elStatus = a})
1506−
1507−-- | Name of the post-production houses that manage the ExperienceLocale.
1508−elPphNames :: Lens' ExperienceLocale [Text]
1509−elPphNames
1510− = lens _elPphNames (\ s a -> s{_elPphNames = a}) .
1511− _Default
1512− . _Coerce
1513−
1514−-- | InventoryID as defined in the EMA specs.
1515−elInventoryId :: Lens' ExperienceLocale (Maybe Text)
1516−elInventoryId
1517− = lens _elInventoryId
1518− (\ s a -> s{_elInventoryId = a})
1519−
1520−-- | Timestamp of the earliest start date of the Avails linked to this
1521−-- ExperienceLocale.
1522−elEarliestAvailStartTime :: Lens' ExperienceLocale (Maybe Text)
1523−elEarliestAvailStartTime
1524− = lens _elEarliestAvailStartTime
1525− (\ s a -> s{_elEarliestAvailStartTime = a})
1526−
1527−-- | Name of the studio that owns the ExperienceLocale.
1528−elStudioName :: Lens' ExperienceLocale (Maybe Text)
1529−elStudioName
1530− = lens _elStudioName (\ s a -> s{_elStudioName = a})
1531−
1532−-- | ExperienceLocale priority, as defined by Google. The higher the value,
1533−-- the higher the priority. Example: 90
1534−elPriority :: Lens' ExperienceLocale (Maybe Double)
1535−elPriority
1536− = lens _elPriority (\ s a -> s{_elPriority = a}) .
1537− mapping _Coerce
1538−
1539−-- | List of custom IDs (defined by the partner) linked to this
1540−-- ExperienceLocale. Example: \"R86241\"
1541−elCustomIds :: Lens' ExperienceLocale [Text]
1542−elCustomIds
1543− = lens _elCustomIds (\ s a -> s{_elCustomIds = a}) .
1544− _Default
1545− . _Coerce
1546−
1547−-- | Timestamp when the ExperienceLocale was created.
1548−elCreatedTime :: Lens' ExperienceLocale (Maybe Text)
1549−elCreatedTime
1550− = lens _elCreatedTime
1551− (\ s a -> s{_elCreatedTime = a})
1552−
1553−-- | Country where the ExperienceLocale is available, using the \"ISO 3166-1
1554−-- alpha-2\" format. Example: \"US\".
1555−elCountry :: Lens' ExperienceLocale (Maybe Text)
1556−elCountry
1557− = lens _elCountry (\ s a -> s{_elCountry = a})
1558−
1559−-- | Trailer ID, as defined by Google, linked to the trailer video in the
1560−-- ExperienceLocale. Example: \'gtry457_tr\'.
1561−elTrailerId :: Lens' ExperienceLocale (Maybe Text)
1562−elTrailerId
1563− = lens _elTrailerId (\ s a -> s{_elTrailerId = a})
1564−
1565−-- | PresentationID as defined in the EMA specs.
1566−elPresentationId :: Lens' ExperienceLocale (Maybe Text)
1567−elPresentationId
1568− = lens _elPresentationId
1569− (\ s a -> s{_elPresentationId = a})
1570−
1571−-- | Alternative Cut ID, sometimes available in lieu of the main Edit-level
1572−-- EIDR ID. This is not an EIDR ID, but a Partner-provided ID. Example:
1573−-- \"206346_79838\".
1574−elAltCutId :: Lens' ExperienceLocale (Maybe Text)
1575−elAltCutId
1576− = lens _elAltCutId (\ s a -> s{_elAltCutId = a})
1577−
1578−-- | YouTube Channel ID linked to the ExperienceLocale. Example:
1579−-- \"UCRG64darCZhb\".
1580−elChannelId :: Lens' ExperienceLocale (Maybe Text)
1581−elChannelId
1582− = lens _elChannelId (\ s a -> s{_elChannelId = a})
1583−
1584−-- | Timestamp when the ExperienceLocale was approved.
1585−elApprovedTime :: Lens' ExperienceLocale (Maybe Text)
1586−elApprovedTime
1587− = lens _elApprovedTime
1588− (\ s a -> s{_elApprovedTime = a})
1589−
1590−-- | PlayableSequenceID as defined in the EMA specs.
1591−elPlayableSequenceId :: Lens' ExperienceLocale (Maybe Text)
1592−elPlayableSequenceId
1593− = lens _elPlayableSequenceId
1594− (\ s a -> s{_elPlayableSequenceId = a})
1595−
1596−-- | ID internally generated by Google to uniquely identify a
1597−-- ExperienceLocale. Example: \'KRZiVjY9h7t\'
1598−elElId :: Lens' ExperienceLocale (Maybe Text)
1599−elElId = lens _elElId (\ s a -> s{_elElId = a})
1600−
1601−-- | Video ID, as defined by Google, linked to the feature video in the
1602−-- ExperienceLocale. Example: \'gtry456_xc\'.
1603−elVideoId :: Lens' ExperienceLocale (Maybe Text)
1604−elVideoId
1605− = lens _elVideoId (\ s a -> s{_elVideoId = a})
1606−
1607−-- | Default Edit name, usually in the language of the country of origin.
1608−-- Example: \"Googlers, The\".
1609−elName :: Lens' ExperienceLocale (Maybe Text)
1610−elName = lens _elName (\ s a -> s{_elName = a})
1611−
1612−-- | Language of the ExperienceLocale, using the \"BCP 47\" format. Examples:
1613−-- \"en\", \"en-US\", \"es\", \"es-419\".
1614−elLanguage :: Lens' ExperienceLocale (Maybe Text)
1615−elLanguage
1616− = lens _elLanguage (\ s a -> s{_elLanguage = a})
1617−
1618−-- | Edit-level EIDR ID. Example: \"10.5240\/1489-49A2-3956-4B2D-FE16-6\".
1619−elEditLevelEidr :: Lens' ExperienceLocale (Maybe Text)
1620−elEditLevelEidr
1621− = lens _elEditLevelEidr
1622− (\ s a -> s{_elEditLevelEidr = a})
1623−
1624−-- | Type of the Edit linked to the ExperienceLocale.
1625−elType :: Lens' ExperienceLocale (Maybe Text)
1626−elType = lens _elType (\ s a -> s{_elType = a})
1627−
1628−-- | A simpler representation of the priority.
1629−elNormalizedPriority :: Lens' ExperienceLocale (Maybe Text)
1630−elNormalizedPriority
1631− = lens _elNormalizedPriority
1632− (\ s a -> s{_elNormalizedPriority = a})
1633−
1634−instance FromJSON ExperienceLocale where
1635− parseJSON
1636− = withObject "ExperienceLocale"
1637− (\ o ->
1638− ExperienceLocale' <$>
1639− (o .:? "titleLevelEidr") <*> (o .:? "status") <*>
1640− (o .:? "pphNames" .!= mempty)
1641− <*> (o .:? "inventoryId")
1642− <*> (o .:? "earliestAvailStartTime")
1643− <*> (o .:? "studioName")
1644− <*> (o .:? "priority")
1645− <*> (o .:? "customIds" .!= mempty)
1646− <*> (o .:? "createdTime")
1647− <*> (o .:? "country")
1648− <*> (o .:? "trailerId")
1649− <*> (o .:? "presentationId")
1650− <*> (o .:? "altCutId")
1651− <*> (o .:? "channelId")
1652− <*> (o .:? "approvedTime")
1653− <*> (o .:? "playableSequenceId")
1654− <*> (o .:? "elId")
1655− <*> (o .:? "videoId")
1656− <*> (o .:? "name")
1657− <*> (o .:? "language")
1658− <*> (o .:? "editLevelEidr")
1659− <*> (o .:? "type")
1660− <*> (o .:? "normalizedPriority"))
1661−
1662−instance ToJSON ExperienceLocale where
1663− toJSON ExperienceLocale'{..}
1664− = object
1665− (catMaybes
1666− [("titleLevelEidr" .=) <$> _elTitleLevelEidr,
1667− ("status" .=) <$> _elStatus,
1668− ("pphNames" .=) <$> _elPphNames,
1669− ("inventoryId" .=) <$> _elInventoryId,
1670− ("earliestAvailStartTime" .=) <$>
1671− _elEarliestAvailStartTime,
1672− ("studioName" .=) <$> _elStudioName,
1673− ("priority" .=) <$> _elPriority,
1674− ("customIds" .=) <$> _elCustomIds,
1675− ("createdTime" .=) <$> _elCreatedTime,
1676− ("country" .=) <$> _elCountry,
1677− ("trailerId" .=) <$> _elTrailerId,
1678− ("presentationId" .=) <$> _elPresentationId,
1679− ("altCutId" .=) <$> _elAltCutId,
1680− ("channelId" .=) <$> _elChannelId,
1681− ("approvedTime" .=) <$> _elApprovedTime,
1682− ("playableSequenceId" .=) <$> _elPlayableSequenceId,
1683− ("elId" .=) <$> _elElId,
1684− ("videoId" .=) <$> _elVideoId,
1685− ("name" .=) <$> _elName,
1686− ("language" .=) <$> _elLanguage,
1687− ("editLevelEidr" .=) <$> _elEditLevelEidr,
1688− ("type" .=) <$> _elType,
1689− ("normalizedPriority" .=) <$> _elNormalizedPriority])
1690−
1691954-- | Information about a playable sequence (video) associated with an Edit
1692955-- and available at the Google Play Store. Internally, each StoreInfo is
1693956-- uniquely identified by a \`video_id\` and \`country\`. Externally,
gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/Components/List.hsdeleted−366
@@ -1,366 +0,0 @@
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.PlayMoviesPartner.Accounts.Components.List
17−-- Copyright : (c) 2015-2016 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−-- List Components owned or managed by the partner. See _Authentication and
24−-- Authorization rules_ and _List methods rules_ for more information about
25−-- this method.
26−--
27−-- /See:/ <https://developers.google.com/playmoviespartner/ Google Play Movies Partner API Reference> for @playmoviespartner.accounts.components.list@.
28−module Network.Google.Resource.PlayMoviesPartner.Accounts.Components.List
29− (
30− -- * REST Resource
31− AccountsComponentsListResource
32−
33− -- * Creating a Request
34− , accountsComponentsList
35− , AccountsComponentsList
36−
37− -- * Request Lenses
38− , aclTitleLevelEidr
39− , aclStatus
40− , aclPphNames
41− , aclXgafv
42− , aclStudioNames
43− , aclInventoryId
44− , aclUploadProtocol
45− , aclPp
46− , aclAccessToken
47− , aclUploadType
48− , aclPresentationId
49− , aclAltCutId
50− , aclCustomId
51− , aclPlayableSequenceId
52− , aclElId
53− , aclAccountId
54− , aclBearerToken
55− , aclEditLevelEidr
56− , aclPageToken
57− , aclPageSize
58− , aclFilename
59− , aclCallback
60− ) where
61−
62−import Network.Google.PlayMoviesPartner.Types
63−import Network.Google.Prelude
64−
65−-- | A resource alias for @playmoviespartner.accounts.components.list@ method which the
66−-- 'AccountsComponentsList' request conforms to.
67−type AccountsComponentsListResource =
68− "v1" :>
69− "accounts" :>
70− Capture "accountId" Text :>
71− "components" :>
72− QueryParam "titleLevelEidr" Text :>
73− QueryParams "status" Text :>
74− QueryParams "pphNames" Text :>
75− QueryParam "$.xgafv" Text :>
76− QueryParams "studioNames" Text :>
77− QueryParam "inventoryId" Text :>
78− QueryParam "upload_protocol" Text :>
79− QueryParam "pp" Bool :>
80− QueryParam "access_token" Text :>
81− QueryParam "uploadType" Text :>
82− QueryParam "presentationId" Text :>
83− QueryParam "altCutId" Text :>
84− QueryParam "customId" Text :>
85− QueryParam "playableSequenceId" Text :>
86− QueryParam "elId" Text :>
87− QueryParam "bearer_token" Text :>
88− QueryParam "editLevelEidr" Text :>
89− QueryParam "pageToken" Text :>
90− QueryParam "pageSize"
91− (Textual Int32)
92− :>
93− QueryParam "filename" Text :>
94− QueryParam "callback" Text
95− :>
96− QueryParam "alt" AltJSON
97− :>
98− Get '[JSON]
99− ListComponentsResponse
100−
101−-- | List Components owned or managed by the partner. See _Authentication and
102−-- Authorization rules_ and _List methods rules_ for more information about
103−-- this method.
104−--
105−-- /See:/ 'accountsComponentsList' smart constructor.
106−data AccountsComponentsList = AccountsComponentsList'
107− { _aclTitleLevelEidr :: !(Maybe Text)
108− , _aclStatus :: !(Maybe [Text])
109− , _aclPphNames :: !(Maybe [Text])
110− , _aclXgafv :: !(Maybe Text)
111− , _aclStudioNames :: !(Maybe [Text])
112− , _aclInventoryId :: !(Maybe Text)
113− , _aclUploadProtocol :: !(Maybe Text)
114− , _aclPp :: !Bool
115− , _aclAccessToken :: !(Maybe Text)
116− , _aclUploadType :: !(Maybe Text)
117− , _aclPresentationId :: !(Maybe Text)
118− , _aclAltCutId :: !(Maybe Text)
119− , _aclCustomId :: !(Maybe Text)
120− , _aclPlayableSequenceId :: !(Maybe Text)
121− , _aclElId :: !(Maybe Text)
122− , _aclAccountId :: !Text
123− , _aclBearerToken :: !(Maybe Text)
124− , _aclEditLevelEidr :: !(Maybe Text)
125− , _aclPageToken :: !(Maybe Text)
126− , _aclPageSize :: !(Maybe (Textual Int32))
127− , _aclFilename :: !(Maybe Text)
128− , _aclCallback :: !(Maybe Text)
129− } deriving (Eq,Show,Data,Typeable,Generic)
130−
131−-- | Creates a value of 'AccountsComponentsList' with the minimum fields required to make a request.
132−--
133−-- Use one of the following lenses to modify other fields as desired:
134−--
135−-- * 'aclTitleLevelEidr'
136−--
137−-- * 'aclStatus'
138−--
139−-- * 'aclPphNames'
140−--
141−-- * 'aclXgafv'
142−--
143−-- * 'aclStudioNames'
144−--
145−-- * 'aclInventoryId'
146−--
147−-- * 'aclUploadProtocol'
148−--
149−-- * 'aclPp'
150−--
151−-- * 'aclAccessToken'
152−--
153−-- * 'aclUploadType'
154−--
155−-- * 'aclPresentationId'
156−--
157−-- * 'aclAltCutId'
158−--
159−-- * 'aclCustomId'
160−--
161−-- * 'aclPlayableSequenceId'
162−--
163−-- * 'aclElId'
164−--
165−-- * 'aclAccountId'
166−--
167−-- * 'aclBearerToken'
168−--
169−-- * 'aclEditLevelEidr'
170−--
171−-- * 'aclPageToken'
172−--
173−-- * 'aclPageSize'
174−--
175−-- * 'aclFilename'
176−--
177−-- * 'aclCallback'
178−accountsComponentsList
179− :: Text -- ^ 'aclAccountId'
180− -> AccountsComponentsList
181−accountsComponentsList pAclAccountId_ =
182− AccountsComponentsList'
183− { _aclTitleLevelEidr = Nothing
184− , _aclStatus = Nothing
185− , _aclPphNames = Nothing
186− , _aclXgafv = Nothing
187− , _aclStudioNames = Nothing
188− , _aclInventoryId = Nothing
189− , _aclUploadProtocol = Nothing
190− , _aclPp = True
191− , _aclAccessToken = Nothing
192− , _aclUploadType = Nothing
193− , _aclPresentationId = Nothing
194− , _aclAltCutId = Nothing
195− , _aclCustomId = Nothing
196− , _aclPlayableSequenceId = Nothing
197− , _aclElId = Nothing
198− , _aclAccountId = pAclAccountId_
199− , _aclBearerToken = Nothing
200− , _aclEditLevelEidr = Nothing
201− , _aclPageToken = Nothing
202− , _aclPageSize = Nothing
203− , _aclFilename = Nothing
204− , _aclCallback = Nothing
205− }
206−
207−-- | Filter Components that match a given title-level EIDR.
208−aclTitleLevelEidr :: Lens' AccountsComponentsList (Maybe Text)
209−aclTitleLevelEidr
210− = lens _aclTitleLevelEidr
211− (\ s a -> s{_aclTitleLevelEidr = a})
212−
213−-- | Filter Components that match one of the given status.
214−aclStatus :: Lens' AccountsComponentsList [Text]
215−aclStatus
216− = lens _aclStatus (\ s a -> s{_aclStatus = a}) .
217− _Default
218− . _Coerce
219−
220−-- | See _List methods rules_ for info about this field.
221−aclPphNames :: Lens' AccountsComponentsList [Text]
222−aclPphNames
223− = lens _aclPphNames (\ s a -> s{_aclPphNames = a}) .
224− _Default
225− . _Coerce
226−
227−-- | V1 error format.
228−aclXgafv :: Lens' AccountsComponentsList (Maybe Text)
229−aclXgafv = lens _aclXgafv (\ s a -> s{_aclXgafv = a})
230−
231−-- | See _List methods rules_ for info about this field.
232−aclStudioNames :: Lens' AccountsComponentsList [Text]
233−aclStudioNames
234− = lens _aclStudioNames
235− (\ s a -> s{_aclStudioNames = a})
236− . _Default
237− . _Coerce
238−
239−-- | InventoryID available in Common Manifest.
240−aclInventoryId :: Lens' AccountsComponentsList (Maybe Text)
241−aclInventoryId
242− = lens _aclInventoryId
243− (\ s a -> s{_aclInventoryId = a})
244−
245−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
246−aclUploadProtocol :: Lens' AccountsComponentsList (Maybe Text)
247−aclUploadProtocol
248− = lens _aclUploadProtocol
249− (\ s a -> s{_aclUploadProtocol = a})
250−
251−-- | Pretty-print response.
252−aclPp :: Lens' AccountsComponentsList Bool
253−aclPp = lens _aclPp (\ s a -> s{_aclPp = a})
254−
255−-- | OAuth access token.
256−aclAccessToken :: Lens' AccountsComponentsList (Maybe Text)
257−aclAccessToken
258− = lens _aclAccessToken
259− (\ s a -> s{_aclAccessToken = a})
260−
261−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
262−aclUploadType :: Lens' AccountsComponentsList (Maybe Text)
263−aclUploadType
264− = lens _aclUploadType
265− (\ s a -> s{_aclUploadType = a})
266−
267−-- | PresentationID available in Common Manifest.
268−aclPresentationId :: Lens' AccountsComponentsList (Maybe Text)
269−aclPresentationId
270− = lens _aclPresentationId
271− (\ s a -> s{_aclPresentationId = a})
272−
273−-- | Filter Components that match a case-insensitive, partner-specific
274−-- Alternative Cut ID.
275−aclAltCutId :: Lens' AccountsComponentsList (Maybe Text)
276−aclAltCutId
277− = lens _aclAltCutId (\ s a -> s{_aclAltCutId = a})
278−
279−-- | Filter Components that match a case-insensitive partner-specific custom
280−-- id.
281−aclCustomId :: Lens' AccountsComponentsList (Maybe Text)
282−aclCustomId
283− = lens _aclCustomId (\ s a -> s{_aclCustomId = a})
284−
285−-- | PlayableSequenceID available in Common Manifest.
286−aclPlayableSequenceId :: Lens' AccountsComponentsList (Maybe Text)
287−aclPlayableSequenceId
288− = lens _aclPlayableSequenceId
289− (\ s a -> s{_aclPlayableSequenceId = a})
290−
291−-- | Experience ID, as defined by Google.
292−aclElId :: Lens' AccountsComponentsList (Maybe Text)
293−aclElId = lens _aclElId (\ s a -> s{_aclElId = a})
294−
295−-- | REQUIRED. See _General rules_ for more information about this field.
296−aclAccountId :: Lens' AccountsComponentsList Text
297−aclAccountId
298− = lens _aclAccountId (\ s a -> s{_aclAccountId = a})
299−
300−-- | OAuth bearer token.
301−aclBearerToken :: Lens' AccountsComponentsList (Maybe Text)
302−aclBearerToken
303− = lens _aclBearerToken
304− (\ s a -> s{_aclBearerToken = a})
305−
306−-- | Filter Components that match a given edit-level EIDR.
307−aclEditLevelEidr :: Lens' AccountsComponentsList (Maybe Text)
308−aclEditLevelEidr
309− = lens _aclEditLevelEidr
310− (\ s a -> s{_aclEditLevelEidr = a})
311−
312−-- | See _List methods rules_ for info about this field.
313−aclPageToken :: Lens' AccountsComponentsList (Maybe Text)
314−aclPageToken
315− = lens _aclPageToken (\ s a -> s{_aclPageToken = a})
316−
317−-- | See _List methods rules_ for info about this field.
318−aclPageSize :: Lens' AccountsComponentsList (Maybe Int32)
319−aclPageSize
320− = lens _aclPageSize (\ s a -> s{_aclPageSize = a}) .
321− mapping _Coerce
322−
323−-- | Filter Components that match a case-insensitive substring of the
324−-- physical name of the delivered file.
325−aclFilename :: Lens' AccountsComponentsList (Maybe Text)
326−aclFilename
327− = lens _aclFilename (\ s a -> s{_aclFilename = a})
328−
329−-- | JSONP
330−aclCallback :: Lens' AccountsComponentsList (Maybe Text)
331−aclCallback
332− = lens _aclCallback (\ s a -> s{_aclCallback = a})
333−
334−instance GoogleRequest AccountsComponentsList where
335− type Rs AccountsComponentsList =
336− ListComponentsResponse
337− type Scopes AccountsComponentsList =
338− '["https://www.googleapis.com/auth/playmovies_partner.readonly"]
339− requestClient AccountsComponentsList'{..}
340− = go _aclAccountId _aclTitleLevelEidr
341− (_aclStatus ^. _Default)
342− (_aclPphNames ^. _Default)
343− _aclXgafv
344− (_aclStudioNames ^. _Default)
345− _aclInventoryId
346− _aclUploadProtocol
347− (Just _aclPp)
348− _aclAccessToken
349− _aclUploadType
350− _aclPresentationId
351− _aclAltCutId
352− _aclCustomId
353− _aclPlayableSequenceId
354− _aclElId
355− _aclBearerToken
356− _aclEditLevelEidr
357− _aclPageToken
358− _aclPageSize
359− _aclFilename
360− _aclCallback
361− (Just AltJSON)
362− playMoviesPartnerService
363− where go
364− = buildClient
365− (Proxy :: Proxy AccountsComponentsListResource)
366− mempty
gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/Components/Type/Get.hsdeleted−202
@@ -1,202 +0,0 @@
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.PlayMoviesPartner.Accounts.Components.Type.Get
17−-- Copyright : (c) 2015-2016 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 Component given its id.
24−--
25−-- /See:/ <https://developers.google.com/playmoviespartner/ Google Play Movies Partner API Reference> for @playmoviespartner.accounts.components.type.get@.
26−module Network.Google.Resource.PlayMoviesPartner.Accounts.Components.Type.Get
27− (
28− -- * REST Resource
29− AccountsComponentsTypeGetResource
30−
31− -- * Creating a Request
32− , accountsComponentsTypeGet
33− , AccountsComponentsTypeGet
34−
35− -- * Request Lenses
36− , actgXgafv
37− , actgUploadProtocol
38− , actgPp
39− , actgAccessToken
40− , actgUploadType
41− , actgAccountId
42− , actgBearerToken
43− , actgComponentId
44− , actgType
45− , actgCallback
46− ) where
47−
48−import Network.Google.PlayMoviesPartner.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @playmoviespartner.accounts.components.type.get@ method which the
52−-- 'AccountsComponentsTypeGet' request conforms to.
53−type AccountsComponentsTypeGetResource =
54− "v1" :>
55− "accounts" :>
56− Capture "accountId" Text :>
57− "components" :>
58− Capture "componentId" Text :>
59− "type" :>
60− Capture "type" 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− Get '[JSON] Component
70−
71−-- | Get a Component given its id.
72−--
73−-- /See:/ 'accountsComponentsTypeGet' smart constructor.
74−data AccountsComponentsTypeGet = AccountsComponentsTypeGet'
75− { _actgXgafv :: !(Maybe Text)
76− , _actgUploadProtocol :: !(Maybe Text)
77− , _actgPp :: !Bool
78− , _actgAccessToken :: !(Maybe Text)
79− , _actgUploadType :: !(Maybe Text)
80− , _actgAccountId :: !Text
81− , _actgBearerToken :: !(Maybe Text)
82− , _actgComponentId :: !Text
83− , _actgType :: !Text
84− , _actgCallback :: !(Maybe Text)
85− } deriving (Eq,Show,Data,Typeable,Generic)
86−
87−-- | Creates a value of 'AccountsComponentsTypeGet' 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−-- * 'actgXgafv'
92−--
93−-- * 'actgUploadProtocol'
94−--
95−-- * 'actgPp'
96−--
97−-- * 'actgAccessToken'
98−--
99−-- * 'actgUploadType'
100−--
101−-- * 'actgAccountId'
102−--
103−-- * 'actgBearerToken'
104−--
105−-- * 'actgComponentId'
106−--
107−-- * 'actgType'
108−--
109−-- * 'actgCallback'
110−accountsComponentsTypeGet
111− :: Text -- ^ 'actgAccountId'
112− -> Text -- ^ 'actgComponentId'
113− -> Text -- ^ 'actgType'
114− -> AccountsComponentsTypeGet
115−accountsComponentsTypeGet pActgAccountId_ pActgComponentId_ pActgType_ =
116− AccountsComponentsTypeGet'
117− { _actgXgafv = Nothing
118− , _actgUploadProtocol = Nothing
119− , _actgPp = True
120− , _actgAccessToken = Nothing
121− , _actgUploadType = Nothing
122− , _actgAccountId = pActgAccountId_
123− , _actgBearerToken = Nothing
124− , _actgComponentId = pActgComponentId_
125− , _actgType = pActgType_
126− , _actgCallback = Nothing
127− }
128−
129−-- | V1 error format.
130−actgXgafv :: Lens' AccountsComponentsTypeGet (Maybe Text)
131−actgXgafv
132− = lens _actgXgafv (\ s a -> s{_actgXgafv = a})
133−
134−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
135−actgUploadProtocol :: Lens' AccountsComponentsTypeGet (Maybe Text)
136−actgUploadProtocol
137− = lens _actgUploadProtocol
138− (\ s a -> s{_actgUploadProtocol = a})
139−
140−-- | Pretty-print response.
141−actgPp :: Lens' AccountsComponentsTypeGet Bool
142−actgPp = lens _actgPp (\ s a -> s{_actgPp = a})
143−
144−-- | OAuth access token.
145−actgAccessToken :: Lens' AccountsComponentsTypeGet (Maybe Text)
146−actgAccessToken
147− = lens _actgAccessToken
148− (\ s a -> s{_actgAccessToken = a})
149−
150−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
151−actgUploadType :: Lens' AccountsComponentsTypeGet (Maybe Text)
152−actgUploadType
153− = lens _actgUploadType
154− (\ s a -> s{_actgUploadType = a})
155−
156−-- | REQUIRED. See _General rules_ for more information about this field.
157−actgAccountId :: Lens' AccountsComponentsTypeGet Text
158−actgAccountId
159− = lens _actgAccountId
160− (\ s a -> s{_actgAccountId = a})
161−
162−-- | OAuth bearer token.
163−actgBearerToken :: Lens' AccountsComponentsTypeGet (Maybe Text)
164−actgBearerToken
165− = lens _actgBearerToken
166− (\ s a -> s{_actgBearerToken = a})
167−
168−-- | REQUIRED. Component ID.
169−actgComponentId :: Lens' AccountsComponentsTypeGet Text
170−actgComponentId
171− = lens _actgComponentId
172− (\ s a -> s{_actgComponentId = a})
173−
174−-- | REQUIRED. Component Type.
175−actgType :: Lens' AccountsComponentsTypeGet Text
176−actgType = lens _actgType (\ s a -> s{_actgType = a})
177−
178−-- | JSONP
179−actgCallback :: Lens' AccountsComponentsTypeGet (Maybe Text)
180−actgCallback
181− = lens _actgCallback (\ s a -> s{_actgCallback = a})
182−
183−instance GoogleRequest AccountsComponentsTypeGet
184− where
185− type Rs AccountsComponentsTypeGet = Component
186− type Scopes AccountsComponentsTypeGet =
187− '["https://www.googleapis.com/auth/playmovies_partner.readonly"]
188− requestClient AccountsComponentsTypeGet'{..}
189− = go _actgAccountId _actgComponentId _actgType
190− _actgXgafv
191− _actgUploadProtocol
192− (Just _actgPp)
193− _actgAccessToken
194− _actgUploadType
195− _actgBearerToken
196− _actgCallback
197− (Just AltJSON)
198− playMoviesPartnerService
199− where go
200− = buildClient
201− (Proxy :: Proxy AccountsComponentsTypeGetResource)
202− mempty
gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/ExperienceLocales/Get.hsdeleted−192
@@ -1,192 +0,0 @@
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.PlayMoviesPartner.Accounts.ExperienceLocales.Get
17−-- Copyright : (c) 2015-2016 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 an ExperienceLocale given its id. See _Authentication and
24−-- Authorization rules_ and _Get methods rules_ for more information about
25−-- this method.
26−--
27−-- /See:/ <https://developers.google.com/playmoviespartner/ Google Play Movies Partner API Reference> for @playmoviespartner.accounts.experienceLocales.get@.
28−module Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.Get
29− (
30− -- * REST Resource
31− AccountsExperienceLocalesGetResource
32−
33− -- * Creating a Request
34− , accountsExperienceLocalesGet
35− , AccountsExperienceLocalesGet
36−
37− -- * Request Lenses
38− , aelgXgafv
39− , aelgUploadProtocol
40− , aelgPp
41− , aelgAccessToken
42− , aelgUploadType
43− , aelgElId
44− , aelgAccountId
45− , aelgBearerToken
46− , aelgCallback
47− ) where
48−
49−import Network.Google.PlayMoviesPartner.Types
50−import Network.Google.Prelude
51−
52−-- | A resource alias for @playmoviespartner.accounts.experienceLocales.get@ method which the
53−-- 'AccountsExperienceLocalesGet' request conforms to.
54−type AccountsExperienceLocalesGetResource =
55− "v1" :>
56− "accounts" :>
57− Capture "accountId" Text :>
58− "experienceLocales" :>
59− Capture "elId" Text :>
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− Get '[JSON] ExperienceLocale
69−
70−-- | Get an ExperienceLocale given its id. See _Authentication and
71−-- Authorization rules_ and _Get methods rules_ for more information about
72−-- this method.
73−--
74−-- /See:/ 'accountsExperienceLocalesGet' smart constructor.
75−data AccountsExperienceLocalesGet = AccountsExperienceLocalesGet'
76− { _aelgXgafv :: !(Maybe Text)
77− , _aelgUploadProtocol :: !(Maybe Text)
78− , _aelgPp :: !Bool
79− , _aelgAccessToken :: !(Maybe Text)
80− , _aelgUploadType :: !(Maybe Text)
81− , _aelgElId :: !Text
82− , _aelgAccountId :: !Text
83− , _aelgBearerToken :: !(Maybe Text)
84− , _aelgCallback :: !(Maybe Text)
85− } deriving (Eq,Show,Data,Typeable,Generic)
86−
87−-- | Creates a value of 'AccountsExperienceLocalesGet' 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−-- * 'aelgXgafv'
92−--
93−-- * 'aelgUploadProtocol'
94−--
95−-- * 'aelgPp'
96−--
97−-- * 'aelgAccessToken'
98−--
99−-- * 'aelgUploadType'
100−--
101−-- * 'aelgElId'
102−--
103−-- * 'aelgAccountId'
104−--
105−-- * 'aelgBearerToken'
106−--
107−-- * 'aelgCallback'
108−accountsExperienceLocalesGet
109− :: Text -- ^ 'aelgElId'
110− -> Text -- ^ 'aelgAccountId'
111− -> AccountsExperienceLocalesGet
112−accountsExperienceLocalesGet pAelgElId_ pAelgAccountId_ =
113− AccountsExperienceLocalesGet'
114− { _aelgXgafv = Nothing
115− , _aelgUploadProtocol = Nothing
116− , _aelgPp = True
117− , _aelgAccessToken = Nothing
118− , _aelgUploadType = Nothing
119− , _aelgElId = pAelgElId_
120− , _aelgAccountId = pAelgAccountId_
121− , _aelgBearerToken = Nothing
122− , _aelgCallback = Nothing
123− }
124−
125−-- | V1 error format.
126−aelgXgafv :: Lens' AccountsExperienceLocalesGet (Maybe Text)
127−aelgXgafv
128− = lens _aelgXgafv (\ s a -> s{_aelgXgafv = a})
129−
130−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
131−aelgUploadProtocol :: Lens' AccountsExperienceLocalesGet (Maybe Text)
132−aelgUploadProtocol
133− = lens _aelgUploadProtocol
134− (\ s a -> s{_aelgUploadProtocol = a})
135−
136−-- | Pretty-print response.
137−aelgPp :: Lens' AccountsExperienceLocalesGet Bool
138−aelgPp = lens _aelgPp (\ s a -> s{_aelgPp = a})
139−
140−-- | OAuth access token.
141−aelgAccessToken :: Lens' AccountsExperienceLocalesGet (Maybe Text)
142−aelgAccessToken
143− = lens _aelgAccessToken
144− (\ s a -> s{_aelgAccessToken = a})
145−
146−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
147−aelgUploadType :: Lens' AccountsExperienceLocalesGet (Maybe Text)
148−aelgUploadType
149− = lens _aelgUploadType
150− (\ s a -> s{_aelgUploadType = a})
151−
152−-- | REQUIRED. ExperienceLocale ID, as defined by Google.
153−aelgElId :: Lens' AccountsExperienceLocalesGet Text
154−aelgElId = lens _aelgElId (\ s a -> s{_aelgElId = a})
155−
156−-- | REQUIRED. See _General rules_ for more information about this field.
157−aelgAccountId :: Lens' AccountsExperienceLocalesGet Text
158−aelgAccountId
159− = lens _aelgAccountId
160− (\ s a -> s{_aelgAccountId = a})
161−
162−-- | OAuth bearer token.
163−aelgBearerToken :: Lens' AccountsExperienceLocalesGet (Maybe Text)
164−aelgBearerToken
165− = lens _aelgBearerToken
166− (\ s a -> s{_aelgBearerToken = a})
167−
168−-- | JSONP
169−aelgCallback :: Lens' AccountsExperienceLocalesGet (Maybe Text)
170−aelgCallback
171− = lens _aelgCallback (\ s a -> s{_aelgCallback = a})
172−
173−instance GoogleRequest AccountsExperienceLocalesGet
174− where
175− type Rs AccountsExperienceLocalesGet =
176− ExperienceLocale
177− type Scopes AccountsExperienceLocalesGet =
178− '["https://www.googleapis.com/auth/playmovies_partner.readonly"]
179− requestClient AccountsExperienceLocalesGet'{..}
180− = go _aelgAccountId _aelgElId _aelgXgafv
181− _aelgUploadProtocol
182− (Just _aelgPp)
183− _aelgAccessToken
184− _aelgUploadType
185− _aelgBearerToken
186− _aelgCallback
187− (Just AltJSON)
188− playMoviesPartnerService
189− where go
190− = buildClient
191− (Proxy :: Proxy AccountsExperienceLocalesGetResource)
192− mempty
gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/ExperienceLocales/List.hsdeleted−305
@@ -1,305 +0,0 @@
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.PlayMoviesPartner.Accounts.ExperienceLocales.List
17−-- Copyright : (c) 2015-2016 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−-- List ExperienceLocales owned or managed by the partner. See
24−-- _Authentication and Authorization rules_ and _List methods rules_ for
25−-- more information about this method.
26−--
27−-- /See:/ <https://developers.google.com/playmoviespartner/ Google Play Movies Partner API Reference> for @playmoviespartner.accounts.experienceLocales.list@.
28−module Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.List
29− (
30− -- * REST Resource
31− AccountsExperienceLocalesListResource
32−
33− -- * Creating a Request
34− , accountsExperienceLocalesList
35− , AccountsExperienceLocalesList
36−
37− -- * Request Lenses
38− , aellTitleLevelEidr
39− , aellStatus
40− , aellPphNames
41− , aellXgafv
42− , aellStudioNames
43− , aellUploadProtocol
44− , aellPp
45− , aellAccessToken
46− , aellUploadType
47− , aellAltCutId
48− , aellCustomId
49− , aellAccountId
50− , aellBearerToken
51− , aellEditLevelEidr
52− , aellPageToken
53− , aellPageSize
54− , aellCallback
55− ) where
56−
57−import Network.Google.PlayMoviesPartner.Types
58−import Network.Google.Prelude
59−
60−-- | A resource alias for @playmoviespartner.accounts.experienceLocales.list@ method which the
61−-- 'AccountsExperienceLocalesList' request conforms to.
62−type AccountsExperienceLocalesListResource =
63− "v1" :>
64− "accounts" :>
65− Capture "accountId" Text :>
66− "experienceLocales" :>
67− QueryParam "titleLevelEidr" Text :>
68− QueryParams "status" Text :>
69− QueryParams "pphNames" Text :>
70− QueryParam "$.xgafv" Text :>
71− QueryParams "studioNames" Text :>
72− QueryParam "upload_protocol" Text :>
73− QueryParam "pp" Bool :>
74− QueryParam "access_token" Text :>
75− QueryParam "uploadType" Text :>
76− QueryParam "altCutId" Text :>
77− QueryParam "customId" Text :>
78− QueryParam "bearer_token" Text :>
79− QueryParam "editLevelEidr" Text :>
80− QueryParam "pageToken" Text :>
81− QueryParam "pageSize" (Textual Int32)
82− :>
83− QueryParam "callback" Text :>
84− QueryParam "alt" AltJSON :>
85− Get '[JSON]
86− ListExperienceLocalesResponse
87−
88−-- | List ExperienceLocales owned or managed by the partner. See
89−-- _Authentication and Authorization rules_ and _List methods rules_ for
90−-- more information about this method.
91−--
92−-- /See:/ 'accountsExperienceLocalesList' smart constructor.
93−data AccountsExperienceLocalesList = AccountsExperienceLocalesList'
94− { _aellTitleLevelEidr :: !(Maybe Text)
95− , _aellStatus :: !(Maybe [Text])
96− , _aellPphNames :: !(Maybe [Text])
97− , _aellXgafv :: !(Maybe Text)
98− , _aellStudioNames :: !(Maybe [Text])
99− , _aellUploadProtocol :: !(Maybe Text)
100− , _aellPp :: !Bool
101− , _aellAccessToken :: !(Maybe Text)
102− , _aellUploadType :: !(Maybe Text)
103− , _aellAltCutId :: !(Maybe Text)
104− , _aellCustomId :: !(Maybe Text)
105− , _aellAccountId :: !Text
106− , _aellBearerToken :: !(Maybe Text)
107− , _aellEditLevelEidr :: !(Maybe Text)
108− , _aellPageToken :: !(Maybe Text)
109− , _aellPageSize :: !(Maybe (Textual Int32))
110− , _aellCallback :: !(Maybe Text)
111− } deriving (Eq,Show,Data,Typeable,Generic)
112−
113−-- | Creates a value of 'AccountsExperienceLocalesList' with the minimum fields required to make a request.
114−--
115−-- Use one of the following lenses to modify other fields as desired:
116−--
117−-- * 'aellTitleLevelEidr'
118−--
119−-- * 'aellStatus'
120−--
121−-- * 'aellPphNames'
122−--
123−-- * 'aellXgafv'
124−--
125−-- * 'aellStudioNames'
126−--
127−-- * 'aellUploadProtocol'
128−--
129−-- * 'aellPp'
130−--
131−-- * 'aellAccessToken'
132−--
133−-- * 'aellUploadType'
134−--
135−-- * 'aellAltCutId'
136−--
137−-- * 'aellCustomId'
138−--
139−-- * 'aellAccountId'
140−--
141−-- * 'aellBearerToken'
142−--
143−-- * 'aellEditLevelEidr'
144−--
145−-- * 'aellPageToken'
146−--
147−-- * 'aellPageSize'
148−--
149−-- * 'aellCallback'
150−accountsExperienceLocalesList
151− :: Text -- ^ 'aellAccountId'
152− -> AccountsExperienceLocalesList
153−accountsExperienceLocalesList pAellAccountId_ =
154− AccountsExperienceLocalesList'
155− { _aellTitleLevelEidr = Nothing
156− , _aellStatus = Nothing
157− , _aellPphNames = Nothing
158− , _aellXgafv = Nothing
159− , _aellStudioNames = Nothing
160− , _aellUploadProtocol = Nothing
161− , _aellPp = True
162− , _aellAccessToken = Nothing
163− , _aellUploadType = Nothing
164− , _aellAltCutId = Nothing
165− , _aellCustomId = Nothing
166− , _aellAccountId = pAellAccountId_
167− , _aellBearerToken = Nothing
168− , _aellEditLevelEidr = Nothing
169− , _aellPageToken = Nothing
170− , _aellPageSize = Nothing
171− , _aellCallback = Nothing
172− }
173−
174−-- | Filter ExperienceLocales that match a given title-level EIDR.
175−aellTitleLevelEidr :: Lens' AccountsExperienceLocalesList (Maybe Text)
176−aellTitleLevelEidr
177− = lens _aellTitleLevelEidr
178− (\ s a -> s{_aellTitleLevelEidr = a})
179−
180−-- | Filter ExperienceLocales that match one of the given status.
181−aellStatus :: Lens' AccountsExperienceLocalesList [Text]
182−aellStatus
183− = lens _aellStatus (\ s a -> s{_aellStatus = a}) .
184− _Default
185− . _Coerce
186−
187−-- | See _List methods rules_ for info about this field.
188−aellPphNames :: Lens' AccountsExperienceLocalesList [Text]
189−aellPphNames
190− = lens _aellPphNames (\ s a -> s{_aellPphNames = a})
191− . _Default
192− . _Coerce
193−
194−-- | V1 error format.
195−aellXgafv :: Lens' AccountsExperienceLocalesList (Maybe Text)
196−aellXgafv
197− = lens _aellXgafv (\ s a -> s{_aellXgafv = a})
198−
199−-- | See _List methods rules_ for info about this field.
200−aellStudioNames :: Lens' AccountsExperienceLocalesList [Text]
201−aellStudioNames
202− = lens _aellStudioNames
203− (\ s a -> s{_aellStudioNames = a})
204− . _Default
205− . _Coerce
206−
207−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
208−aellUploadProtocol :: Lens' AccountsExperienceLocalesList (Maybe Text)
209−aellUploadProtocol
210− = lens _aellUploadProtocol
211− (\ s a -> s{_aellUploadProtocol = a})
212−
213−-- | Pretty-print response.
214−aellPp :: Lens' AccountsExperienceLocalesList Bool
215−aellPp = lens _aellPp (\ s a -> s{_aellPp = a})
216−
217−-- | OAuth access token.
218−aellAccessToken :: Lens' AccountsExperienceLocalesList (Maybe Text)
219−aellAccessToken
220− = lens _aellAccessToken
221− (\ s a -> s{_aellAccessToken = a})
222−
223−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
224−aellUploadType :: Lens' AccountsExperienceLocalesList (Maybe Text)
225−aellUploadType
226− = lens _aellUploadType
227− (\ s a -> s{_aellUploadType = a})
228−
229−-- | Filter ExperienceLocales that match a case-insensitive, partner-specific
230−-- Alternative Cut ID.
231−aellAltCutId :: Lens' AccountsExperienceLocalesList (Maybe Text)
232−aellAltCutId
233− = lens _aellAltCutId (\ s a -> s{_aellAltCutId = a})
234−
235−-- | Filter ExperienceLocales that match a case-insensitive, partner-specific
236−-- custom id.
237−aellCustomId :: Lens' AccountsExperienceLocalesList (Maybe Text)
238−aellCustomId
239− = lens _aellCustomId (\ s a -> s{_aellCustomId = a})
240−
241−-- | REQUIRED. See _General rules_ for more information about this field.
242−aellAccountId :: Lens' AccountsExperienceLocalesList Text
243−aellAccountId
244− = lens _aellAccountId
245− (\ s a -> s{_aellAccountId = a})
246−
247−-- | OAuth bearer token.
248−aellBearerToken :: Lens' AccountsExperienceLocalesList (Maybe Text)
249−aellBearerToken
250− = lens _aellBearerToken
251− (\ s a -> s{_aellBearerToken = a})
252−
253−-- | Filter ExperienceLocales that match a given edit-level EIDR.
254−aellEditLevelEidr :: Lens' AccountsExperienceLocalesList (Maybe Text)
255−aellEditLevelEidr
256− = lens _aellEditLevelEidr
257− (\ s a -> s{_aellEditLevelEidr = a})
258−
259−-- | See _List methods rules_ for info about this field.
260−aellPageToken :: Lens' AccountsExperienceLocalesList (Maybe Text)
261−aellPageToken
262− = lens _aellPageToken
263− (\ s a -> s{_aellPageToken = a})
264−
265−-- | See _List methods rules_ for info about this field.
266−aellPageSize :: Lens' AccountsExperienceLocalesList (Maybe Int32)
267−aellPageSize
268− = lens _aellPageSize (\ s a -> s{_aellPageSize = a})
269− . mapping _Coerce
270−
271−-- | JSONP
272−aellCallback :: Lens' AccountsExperienceLocalesList (Maybe Text)
273−aellCallback
274− = lens _aellCallback (\ s a -> s{_aellCallback = a})
275−
276−instance GoogleRequest AccountsExperienceLocalesList
277− where
278− type Rs AccountsExperienceLocalesList =
279− ListExperienceLocalesResponse
280− type Scopes AccountsExperienceLocalesList =
281− '["https://www.googleapis.com/auth/playmovies_partner.readonly"]
282− requestClient AccountsExperienceLocalesList'{..}
283− = go _aellAccountId _aellTitleLevelEidr
284− (_aellStatus ^. _Default)
285− (_aellPphNames ^. _Default)
286− _aellXgafv
287− (_aellStudioNames ^. _Default)
288− _aellUploadProtocol
289− (Just _aellPp)
290− _aellAccessToken
291− _aellUploadType
292− _aellAltCutId
293− _aellCustomId
294− _aellBearerToken
295− _aellEditLevelEidr
296− _aellPageToken
297− _aellPageSize
298− _aellCallback
299− (Just AltJSON)
300− playMoviesPartnerService
301− where go
302− = buildClient
303− (Proxy ::
304− Proxy AccountsExperienceLocalesListResource)
305− mempty
gogol-play-moviespartner/gogol-play-moviespartner.cabal−4
@@ -37,10 +37,6 @@ library
3737 , Network.Google.PlayMoviesPartner.Types
3838 , Network.Google.Resource.PlayMoviesPartner.Accounts.Avails.Get
3939 , Network.Google.Resource.PlayMoviesPartner.Accounts.Avails.List
40− , Network.Google.Resource.PlayMoviesPartner.Accounts.Components.List
41− , Network.Google.Resource.PlayMoviesPartner.Accounts.Components.Type.Get
42− , Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.Get
43− , Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.List
4440 , Network.Google.Resource.PlayMoviesPartner.Accounts.Orders.Get
4541 , Network.Google.Resource.PlayMoviesPartner.Accounts.Orders.List
4642 , Network.Google.Resource.PlayMoviesPartner.Accounts.StoreInfos.Country.Get