on develop help sign in
Regenerating gogol-play-moviespartner from latest service definition
commitaf07eb28b628c38fb0c18cb9eb6a5058d9117612 authorBrendan Hay <brendan.g.hay@gmail.com> dateMon 20 Jun 2016, 09:33 (10 years ago) parent2bccf80
10 files changed+1377−45
gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner.hs+56−4 gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner/Types.hs+38 gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner/Types/Product.hs+428−5 gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/Avails/Get.hs+184 gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/Avails/List.hs+28−8 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/Orders/List.hs+28−14 gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/StoreInfos/List.hs+43−12 gogol-play-moviespartner/gogol-play-moviespartner.cabal+4−2
gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner.hs+56−4
@@ -13,8 +13,7 @@
1313-- Stability : auto-generated
1414-- Portability : non-portable (GHC extensions)
1515--
16−-- Lets Google Play Movies Partners get the delivery status of their
17−-- titles.
16+-- Gets the delivery status of titles for Google Play Movies Partners.
1817--
1918-- /See:/ <https://developers.google.com/playmoviespartner/ Google Play Movies Partner API Reference>
2019module Network.Google.PlayMoviesPartner
@@ -30,9 +29,18 @@ module Network.Google.PlayMoviesPartner
3029
3130 -- * Resources
3231
32+ -- ** playmoviespartner.accounts.avails.get
33+ , module Network.Google.Resource.PlayMoviesPartner.Accounts.Avails.Get
34+
3335 -- ** playmoviespartner.accounts.avails.list
3436 , module Network.Google.Resource.PlayMoviesPartner.Accounts.Avails.List
3537
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+
3644 -- ** playmoviespartner.accounts.experienceLocales.get
3745 , module Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.Get
3846
@@ -53,6 +61,39 @@ module Network.Google.PlayMoviesPartner
5361
5462 -- * Types
5563
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+
5697 -- ** Avail
5798 , Avail
5899 , avail
@@ -69,6 +110,7 @@ module Network.Google.PlayMoviesPartner
69110 , aTerritory
70111 , aEpisodeTitleInternalAlias
71112 , aLicenseType
113+ , aAvailId
72114 , aSeasonNumber
73115 , aWorkType
74116 , aRatingValue
@@ -94,23 +136,27 @@ module Network.Google.PlayMoviesPartner
94136 , listAvailsResponse
95137 , larNextPageToken
96138 , larAvails
139+ , larTotalSize
97140
98141 -- ** ListExperienceLocalesResponse
99142 , ListExperienceLocalesResponse
100143 , listExperienceLocalesResponse
101144 , lelrNextPageToken
145+ , lelrTotalSize
102146 , lelrExperienceLocales
103147
104148 -- ** ListOrdersResponse
105149 , ListOrdersResponse
106150 , listOrdersResponse
107151 , lorNextPageToken
152+ , lorTotalSize
108153 , lorOrders
109154
110155 -- ** ListStoreInfosResponse
111156 , ListStoreInfosResponse
112157 , listStoreInfosResponse
113158 , lsirNextPageToken
159+ , lsirTotalSize
114160 , lsirStoreInfos
115161
116162 -- ** Order
@@ -199,7 +245,10 @@ module Network.Google.PlayMoviesPartner
199245
200246import Network.Google.PlayMoviesPartner.Types
201247import Network.Google.Prelude
248+import Network.Google.Resource.PlayMoviesPartner.Accounts.Avails.Get
202249import 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
203252import Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.Get
204253import Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.List
205254import Network.Google.Resource.PlayMoviesPartner.Accounts.Orders.Get
@@ -213,8 +262,11 @@ TODO
213262
214263-- | Represents the entirety of the methods and resources available for the Google Play Movies Partner API service.
215264type PlayMoviesPartnerAPI =
216− AccountsAvailsListResource :<|>
217− AccountsStoreInfosCountryGetResource
265+ AccountsComponentsTypeGetResource :<|>
266+ AccountsComponentsListResource
267+ :<|> AccountsAvailsListResource
268+ :<|> AccountsAvailsGetResource
269+ :<|> AccountsStoreInfosCountryGetResource
218270 :<|> AccountsStoreInfosListResource
219271 :<|> AccountsOrdersListResource
220272 :<|> AccountsOrdersGetResource
gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner/Types.hs+38
@@ -22,6 +22,39 @@ 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+
2558 -- * Avail
2659 , Avail
2760 , avail
@@ -38,6 +71,7 @@ module Network.Google.PlayMoviesPartner.Types
3871 , aTerritory
3972 , aEpisodeTitleInternalAlias
4073 , aLicenseType
74+ , aAvailId
4175 , aSeasonNumber
4276 , aWorkType
4377 , aRatingValue
@@ -63,23 +97,27 @@ module Network.Google.PlayMoviesPartner.Types
6397 , listAvailsResponse
6498 , larNextPageToken
6599 , larAvails
100+ , larTotalSize
66101
67102 -- * ListExperienceLocalesResponse
68103 , ListExperienceLocalesResponse
69104 , listExperienceLocalesResponse
70105 , lelrNextPageToken
106+ , lelrTotalSize
71107 , lelrExperienceLocales
72108
73109 -- * ListOrdersResponse
74110 , ListOrdersResponse
75111 , listOrdersResponse
76112 , lorNextPageToken
113+ , lorTotalSize
77114 , lorOrders
78115
79116 -- * ListStoreInfosResponse
80117 , ListStoreInfosResponse
81118 , listStoreInfosResponse
82119 , lsirNextPageToken
120+ , lsirTotalSize
83121 , lsirStoreInfos
84122
85123 -- * Order
gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner/Types/Product.hs+428−5
@@ -20,6 +20,371 @@ 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+
23388-- | An Avail describes the Availability Window of a specific Edit in a given
24389-- country, which means the period Google is allowed to sell or rent the
25390-- Edit. Avails are exposed in EMA format Version 1.6b (available at
@@ -41,6 +406,7 @@ data Avail = Avail'
41406 , _aTerritory :: !(Maybe Text)
42407 , _aEpisodeTitleInternalAlias :: !(Maybe Text)
43408 , _aLicenseType :: !(Maybe Text)
409+ , _aAvailId :: !(Maybe Text)
44410 , _aSeasonNumber :: !(Maybe Text)
45411 , _aWorkType :: !(Maybe Text)
46412 , _aRatingValue :: !(Maybe Text)
@@ -92,6 +458,8 @@ data Avail = Avail'
92458--
93459-- * 'aLicenseType'
94460--
461+-- * 'aAvailId'
462+--
95463-- * 'aSeasonNumber'
96464--
97465-- * 'aWorkType'
@@ -146,6 +514,7 @@ avail =
146514 , _aTerritory = Nothing
147515 , _aEpisodeTitleInternalAlias = Nothing
148516 , _aLicenseType = Nothing
517+ , _aAvailId = Nothing
149518 , _aSeasonNumber = Nothing
150519 , _aWorkType = Nothing
151520 , _aRatingValue = Nothing
@@ -257,6 +626,11 @@ aLicenseType :: Lens' Avail (Maybe Text)
257626aLicenseType
258627 = lens _aLicenseType (\ s a -> s{_aLicenseType = a})
259628
629+-- | ID internally generated by Google to uniquely identify an Avail. Not
630+-- part of EMA Specs.
631+aAvailId :: Lens' Avail (Maybe Text)
632+aAvailId = lens _aAvailId (\ s a -> s{_aAvailId = a})
633+
260634-- | The number assigned to the season within a series. Only available on TV
261635-- Avails. Example: \"1\".
262636aSeasonNumber :: Lens' Avail (Maybe Text)
@@ -392,6 +766,7 @@ instance FromJSON Avail where
392766 <*> (o .:? "territory")
393767 <*> (o .:? "episodeTitleInternalAlias")
394768 <*> (o .:? "licenseType")
769+ <*> (o .:? "availId")
395770 <*> (o .:? "seasonNumber")
396771 <*> (o .:? "workType")
397772 <*> (o .:? "ratingValue")
@@ -430,6 +805,7 @@ instance ToJSON Avail where
430805 ("episodeTitleInternalAlias" .=) <$>
431806 _aEpisodeTitleInternalAlias,
432807 ("licenseType" .=) <$> _aLicenseType,
808+ ("availId" .=) <$> _aAvailId,
433809 ("seasonNumber" .=) <$> _aSeasonNumber,
434810 ("workType" .=) <$> _aWorkType,
435811 ("ratingValue" .=) <$> _aRatingValue,
@@ -458,6 +834,7 @@ instance ToJSON Avail where
458834data ListAvailsResponse = ListAvailsResponse'
459835 { _larNextPageToken :: !(Maybe Text)
460836 , _larAvails :: !(Maybe [Avail])
837+ , _larTotalSize :: !(Maybe (Textual Int32))
461838 } deriving (Eq,Show,Data,Typeable,Generic)
462839
463840-- | Creates a value of 'ListAvailsResponse' with the minimum fields required to make a request.
@@ -467,12 +844,15 @@ data ListAvailsResponse = ListAvailsResponse'
467844-- * 'larNextPageToken'
468845--
469846-- * 'larAvails'
847+--
848+-- * 'larTotalSize'
470849listAvailsResponse
471850 :: ListAvailsResponse
472851listAvailsResponse =
473852 ListAvailsResponse'
474853 { _larNextPageToken = Nothing
475854 , _larAvails = Nothing
855+ , _larTotalSize = Nothing
476856 }
477857
478858-- | See _List methods rules_ for info about this field.
@@ -488,26 +868,35 @@ larAvails
488868 _Default
489869 . _Coerce
490870
871+-- | See _List methods rules_ for more information about this field.
872+larTotalSize :: Lens' ListAvailsResponse (Maybe Int32)
873+larTotalSize
874+ = lens _larTotalSize (\ s a -> s{_larTotalSize = a})
875+ . mapping _Coerce
876+
491877instance FromJSON ListAvailsResponse where
492878 parseJSON
493879 = withObject "ListAvailsResponse"
494880 (\ o ->
495881 ListAvailsResponse' <$>
496882 (o .:? "nextPageToken") <*>
497− (o .:? "avails" .!= mempty))
883+ (o .:? "avails" .!= mempty)
884+ <*> (o .:? "totalSize"))
498885
499886instance ToJSON ListAvailsResponse where
500887 toJSON ListAvailsResponse'{..}
501888 = object
502889 (catMaybes
503890 [("nextPageToken" .=) <$> _larNextPageToken,
504− ("avails" .=) <$> _larAvails])
891+ ("avails" .=) <$> _larAvails,
892+ ("totalSize" .=) <$> _larTotalSize])
505893
506894-- | Response to the \'ListExperienceLocales\' method.
507895--
508896-- /See:/ 'listExperienceLocalesResponse' smart constructor.
509897data ListExperienceLocalesResponse = ListExperienceLocalesResponse'
510898 { _lelrNextPageToken :: !(Maybe Text)
899+ , _lelrTotalSize :: !(Maybe (Textual Int32))
511900 , _lelrExperienceLocales :: !(Maybe [ExperienceLocale])
512901 } deriving (Eq,Show,Data,Typeable,Generic)
513902
@@ -517,12 +906,15 @@ data ListExperienceLocalesResponse = ListExperienceLocalesResponse'
517906--
518907-- * 'lelrNextPageToken'
519908--
909+-- * 'lelrTotalSize'
910+--
520911-- * 'lelrExperienceLocales'
521912listExperienceLocalesResponse
522913 :: ListExperienceLocalesResponse
523914listExperienceLocalesResponse =
524915 ListExperienceLocalesResponse'
525916 { _lelrNextPageToken = Nothing
917+ , _lelrTotalSize = Nothing
526918 , _lelrExperienceLocales = Nothing
527919 }
528920
@@ -532,6 +924,13 @@ lelrNextPageToken
532924 = lens _lelrNextPageToken
533925 (\ s a -> s{_lelrNextPageToken = a})
534926
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+
535934-- | List of ExperienceLocales that match the request criteria.
536935lelrExperienceLocales :: Lens' ListExperienceLocalesResponse [ExperienceLocale]
537936lelrExperienceLocales
@@ -545,7 +944,7 @@ instance FromJSON ListExperienceLocalesResponse where
545944 = withObject "ListExperienceLocalesResponse"
546945 (\ o ->
547946 ListExperienceLocalesResponse' <$>
548− (o .:? "nextPageToken") <*>
947+ (o .:? "nextPageToken") <*> (o .:? "totalSize") <*>
549948 (o .:? "experienceLocales" .!= mempty))
550949
551950instance ToJSON ListExperienceLocalesResponse where
@@ -553,6 +952,7 @@ instance ToJSON ListExperienceLocalesResponse where
553952 = object
554953 (catMaybes
555954 [("nextPageToken" .=) <$> _lelrNextPageToken,
955+ ("totalSize" .=) <$> _lelrTotalSize,
556956 ("experienceLocales" .=) <$> _lelrExperienceLocales])
557957
558958-- | Response to the \'ListOrders\' method.
@@ -560,6 +960,7 @@ instance ToJSON ListExperienceLocalesResponse where
560960-- /See:/ 'listOrdersResponse' smart constructor.
561961data ListOrdersResponse = ListOrdersResponse'
562962 { _lorNextPageToken :: !(Maybe Text)
963+ , _lorTotalSize :: !(Maybe (Textual Int32))
563964 , _lorOrders :: !(Maybe [Order])
564965 } deriving (Eq,Show,Data,Typeable,Generic)
565966
@@ -569,12 +970,15 @@ data ListOrdersResponse = ListOrdersResponse'
569970--
570971-- * 'lorNextPageToken'
571972--
973+-- * 'lorTotalSize'
974+--
572975-- * 'lorOrders'
573976listOrdersResponse
574977 :: ListOrdersResponse
575978listOrdersResponse =
576979 ListOrdersResponse'
577980 { _lorNextPageToken = Nothing
981+ , _lorTotalSize = Nothing
578982 , _lorOrders = Nothing
579983 }
580984
@@ -584,6 +988,12 @@ lorNextPageToken
584988 = lens _lorNextPageToken
585989 (\ s a -> s{_lorNextPageToken = a})
586990
991+-- | See _List methods rules_ for more information about this field.
992+lorTotalSize :: Lens' ListOrdersResponse (Maybe Int32)
993+lorTotalSize
994+ = lens _lorTotalSize (\ s a -> s{_lorTotalSize = a})
995+ . mapping _Coerce
996+
587997-- | List of Orders that match the request criteria.
588998lorOrders :: Lens' ListOrdersResponse [Order]
589999lorOrders
@@ -596,7 +1006,7 @@ instance FromJSON ListOrdersResponse where
5961006 = withObject "ListOrdersResponse"
5971007 (\ o ->
5981008 ListOrdersResponse' <$>
599− (o .:? "nextPageToken") <*>
1009+ (o .:? "nextPageToken") <*> (o .:? "totalSize") <*>
6001010 (o .:? "orders" .!= mempty))
6011011
6021012instance ToJSON ListOrdersResponse where
@@ -604,6 +1014,7 @@ instance ToJSON ListOrdersResponse where
6041014 = object
6051015 (catMaybes
6061016 [("nextPageToken" .=) <$> _lorNextPageToken,
1017+ ("totalSize" .=) <$> _lorTotalSize,
6071018 ("orders" .=) <$> _lorOrders])
6081019
6091020-- | Response to the \'ListStoreInfos\' method.
@@ -611,6 +1022,7 @@ instance ToJSON ListOrdersResponse where
6111022-- /See:/ 'listStoreInfosResponse' smart constructor.
6121023data ListStoreInfosResponse = ListStoreInfosResponse'
6131024 { _lsirNextPageToken :: !(Maybe Text)
1025+ , _lsirTotalSize :: !(Maybe (Textual Int32))
6141026 , _lsirStoreInfos :: !(Maybe [StoreInfo])
6151027 } deriving (Eq,Show,Data,Typeable,Generic)
6161028
@@ -620,12 +1032,15 @@ data ListStoreInfosResponse = ListStoreInfosResponse'
6201032--
6211033-- * 'lsirNextPageToken'
6221034--
1035+-- * 'lsirTotalSize'
1036+--
6231037-- * 'lsirStoreInfos'
6241038listStoreInfosResponse
6251039 :: ListStoreInfosResponse
6261040listStoreInfosResponse =
6271041 ListStoreInfosResponse'
6281042 { _lsirNextPageToken = Nothing
1043+ , _lsirTotalSize = Nothing
6291044 , _lsirStoreInfos = Nothing
6301045 }
6311046
@@ -635,6 +1050,13 @@ lsirNextPageToken
6351050 = lens _lsirNextPageToken
6361051 (\ s a -> s{_lsirNextPageToken = a})
6371052
1053+-- | See _List methods rules_ for more information about this field.
1054+lsirTotalSize :: Lens' ListStoreInfosResponse (Maybe Int32)
1055+lsirTotalSize
1056+ = lens _lsirTotalSize
1057+ (\ s a -> s{_lsirTotalSize = a})
1058+ . mapping _Coerce
1059+
6381060-- | List of StoreInfos that match the request criteria.
6391061lsirStoreInfos :: Lens' ListStoreInfosResponse [StoreInfo]
6401062lsirStoreInfos
@@ -648,7 +1070,7 @@ instance FromJSON ListStoreInfosResponse where
6481070 = withObject "ListStoreInfosResponse"
6491071 (\ o ->
6501072 ListStoreInfosResponse' <$>
651− (o .:? "nextPageToken") <*>
1073+ (o .:? "nextPageToken") <*> (o .:? "totalSize") <*>
6521074 (o .:? "storeInfos" .!= mempty))
6531075
6541076instance ToJSON ListStoreInfosResponse where
@@ -656,6 +1078,7 @@ instance ToJSON ListStoreInfosResponse where
6561078 = object
6571079 (catMaybes
6581080 [("nextPageToken" .=) <$> _lsirNextPageToken,
1081+ ("totalSize" .=) <$> _lsirTotalSize,
6591082 ("storeInfos" .=) <$> _lsirStoreInfos])
6601083
6611084-- | An Order tracks the fulfillment of an Edit when delivered using the
gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/Avails/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.PlayMoviesPartner.Accounts.Avails.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 Avail given its avail group id and avail id.
24+--
25+-- /See:/ <https://developers.google.com/playmoviespartner/ Google Play Movies Partner API Reference> for @playmoviespartner.accounts.avails.get@.
26+module Network.Google.Resource.PlayMoviesPartner.Accounts.Avails.Get
27+ (
28+ -- * REST Resource
29+ AccountsAvailsGetResource
30+
31+ -- * Creating a Request
32+ , accountsAvailsGet
33+ , AccountsAvailsGet
34+
35+ -- * Request Lenses
36+ , aagXgafv
37+ , aagUploadProtocol
38+ , aagPp
39+ , aagAccessToken
40+ , aagUploadType
41+ , aagAvailId
42+ , aagAccountId
43+ , aagBearerToken
44+ , aagCallback
45+ ) where
46+
47+import Network.Google.PlayMoviesPartner.Types
48+import Network.Google.Prelude
49+
50+-- | A resource alias for @playmoviespartner.accounts.avails.get@ method which the
51+-- 'AccountsAvailsGet' request conforms to.
52+type AccountsAvailsGetResource =
53+ "v1" :>
54+ "accounts" :>
55+ Capture "accountId" Text :>
56+ "avails" :>
57+ Capture "availId" 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] Avail
66+
67+-- | Get an Avail given its avail group id and avail id.
68+--
69+-- /See:/ 'accountsAvailsGet' smart constructor.
70+data AccountsAvailsGet = AccountsAvailsGet'
71+ { _aagXgafv :: !(Maybe Text)
72+ , _aagUploadProtocol :: !(Maybe Text)
73+ , _aagPp :: !Bool
74+ , _aagAccessToken :: !(Maybe Text)
75+ , _aagUploadType :: !(Maybe Text)
76+ , _aagAvailId :: !Text
77+ , _aagAccountId :: !Text
78+ , _aagBearerToken :: !(Maybe Text)
79+ , _aagCallback :: !(Maybe Text)
80+ } deriving (Eq,Show,Data,Typeable,Generic)
81+
82+-- | Creates a value of 'AccountsAvailsGet' 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+-- * 'aagXgafv'
87+--
88+-- * 'aagUploadProtocol'
89+--
90+-- * 'aagPp'
91+--
92+-- * 'aagAccessToken'
93+--
94+-- * 'aagUploadType'
95+--
96+-- * 'aagAvailId'
97+--
98+-- * 'aagAccountId'
99+--
100+-- * 'aagBearerToken'
101+--
102+-- * 'aagCallback'
103+accountsAvailsGet
104+ :: Text -- ^ 'aagAvailId'
105+ -> Text -- ^ 'aagAccountId'
106+ -> AccountsAvailsGet
107+accountsAvailsGet pAagAvailId_ pAagAccountId_ =
108+ AccountsAvailsGet'
109+ { _aagXgafv = Nothing
110+ , _aagUploadProtocol = Nothing
111+ , _aagPp = True
112+ , _aagAccessToken = Nothing
113+ , _aagUploadType = Nothing
114+ , _aagAvailId = pAagAvailId_
115+ , _aagAccountId = pAagAccountId_
116+ , _aagBearerToken = Nothing
117+ , _aagCallback = Nothing
118+ }
119+
120+-- | V1 error format.
121+aagXgafv :: Lens' AccountsAvailsGet (Maybe Text)
122+aagXgafv = lens _aagXgafv (\ s a -> s{_aagXgafv = a})
123+
124+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
125+aagUploadProtocol :: Lens' AccountsAvailsGet (Maybe Text)
126+aagUploadProtocol
127+ = lens _aagUploadProtocol
128+ (\ s a -> s{_aagUploadProtocol = a})
129+
130+-- | Pretty-print response.
131+aagPp :: Lens' AccountsAvailsGet Bool
132+aagPp = lens _aagPp (\ s a -> s{_aagPp = a})
133+
134+-- | OAuth access token.
135+aagAccessToken :: Lens' AccountsAvailsGet (Maybe Text)
136+aagAccessToken
137+ = lens _aagAccessToken
138+ (\ s a -> s{_aagAccessToken = a})
139+
140+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
141+aagUploadType :: Lens' AccountsAvailsGet (Maybe Text)
142+aagUploadType
143+ = lens _aagUploadType
144+ (\ s a -> s{_aagUploadType = a})
145+
146+-- | REQUIRED. Avail ID.
147+aagAvailId :: Lens' AccountsAvailsGet Text
148+aagAvailId
149+ = lens _aagAvailId (\ s a -> s{_aagAvailId = a})
150+
151+-- | REQUIRED. See _General rules_ for more information about this field.
152+aagAccountId :: Lens' AccountsAvailsGet Text
153+aagAccountId
154+ = lens _aagAccountId (\ s a -> s{_aagAccountId = a})
155+
156+-- | OAuth bearer token.
157+aagBearerToken :: Lens' AccountsAvailsGet (Maybe Text)
158+aagBearerToken
159+ = lens _aagBearerToken
160+ (\ s a -> s{_aagBearerToken = a})
161+
162+-- | JSONP
163+aagCallback :: Lens' AccountsAvailsGet (Maybe Text)
164+aagCallback
165+ = lens _aagCallback (\ s a -> s{_aagCallback = a})
166+
167+instance GoogleRequest AccountsAvailsGet where
168+ type Rs AccountsAvailsGet = Avail
169+ type Scopes AccountsAvailsGet =
170+ '["https://www.googleapis.com/auth/playmovies_partner.readonly"]
171+ requestClient AccountsAvailsGet'{..}
172+ = go _aagAccountId _aagAvailId _aagXgafv
173+ _aagUploadProtocol
174+ (Just _aagPp)
175+ _aagAccessToken
176+ _aagUploadType
177+ _aagBearerToken
178+ _aagCallback
179+ (Just AltJSON)
180+ playMoviesPartnerService
181+ where go
182+ = buildClient
183+ (Proxy :: Proxy AccountsAvailsGetResource)
184+ mempty
gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/Avails/List.hs+28−8
@@ -47,6 +47,7 @@ module Network.Google.Resource.PlayMoviesPartner.Accounts.Avails.List
4747 , aalTerritories
4848 , aalAccountId
4949 , aalBearerToken
50+ , aalAltIds
5051 , aalPageToken
5152 , aalTitle
5253 , aalPageSize
@@ -74,12 +75,14 @@ type AccountsAvailsListResource =
7475 QueryParam "uploadType" Text :>
7576 QueryParams "territories" Text :>
7677 QueryParam "bearer_token" Text :>
77− QueryParam "pageToken" Text :>
78− QueryParam "title" Text :>
79− QueryParam "pageSize" (Textual Int32) :>
80− QueryParam "callback" Text :>
81− QueryParam "alt" AltJSON :>
82− Get '[JSON] ListAvailsResponse
78+ QueryParams "altIds" Text :>
79+ QueryParam "pageToken" Text :>
80+ QueryParam "title" Text :>
81+ QueryParam "pageSize" (Textual Int32)
82+ :>
83+ QueryParam "callback" Text :>
84+ QueryParam "alt" AltJSON :>
85+ Get '[JSON] ListAvailsResponse
8386
8487-- | List Avails owned or managed by the partner. See _Authentication and
8588-- Authorization rules_ and _List methods rules_ for more information about
@@ -99,6 +102,7 @@ data AccountsAvailsList = AccountsAvailsList'
99102 , _aalTerritories :: !(Maybe [Text])
100103 , _aalAccountId :: !Text
101104 , _aalBearerToken :: !(Maybe Text)
105+ , _aalAltIds :: !(Maybe [Text])
102106 , _aalPageToken :: !(Maybe Text)
103107 , _aalTitle :: !(Maybe Text)
104108 , _aalPageSize :: !(Maybe (Textual Int32))
@@ -133,6 +137,8 @@ data AccountsAvailsList = AccountsAvailsList'
133137--
134138-- * 'aalBearerToken'
135139--
140+-- * 'aalAltIds'
141+--
136142-- * 'aalPageToken'
137143--
138144-- * 'aalTitle'
@@ -157,6 +163,7 @@ accountsAvailsList pAalAccountId_ =
157163 , _aalTerritories = Nothing
158164 , _aalAccountId = pAalAccountId_
159165 , _aalBearerToken = Nothing
166+ , _aalAltIds = Nothing
160167 , _aalPageToken = Nothing
161168 , _aalTitle = Nothing
162169 , _aalPageSize = Nothing
@@ -164,6 +171,8 @@ accountsAvailsList pAalAccountId_ =
164171 }
165172
166173-- | Filter Avails that match a case-insensitive, partner-specific custom id.
174+-- NOTE: this field is deprecated and will be removed on V2; \`alt_ids\`
175+-- should be used instead.
167176aalAltId :: Lens' AccountsAvailsList (Maybe Text)
168177aalAltId = lens _aalAltId (\ s a -> s{_aalAltId = a})
169178
@@ -236,13 +245,23 @@ aalBearerToken
236245 = lens _aalBearerToken
237246 (\ s a -> s{_aalBearerToken = a})
238247
248+-- | Filter Avails that match (case-insensitive) any of the given
249+-- partner-specific custom ids.
250+aalAltIds :: Lens' AccountsAvailsList [Text]
251+aalAltIds
252+ = lens _aalAltIds (\ s a -> s{_aalAltIds = a}) .
253+ _Default
254+ . _Coerce
255+
239256-- | See _List methods rules_ for info about this field.
240257aalPageToken :: Lens' AccountsAvailsList (Maybe Text)
241258aalPageToken
242259 = lens _aalPageToken (\ s a -> s{_aalPageToken = a})
243260
244−-- | Filter Avails that match a case-insensitive substring of the default
245−-- Title name.
261+-- | Filter that matches Avails with a \`title_internal_alias\`,
262+-- \`series_title_internal_alias\`, \`season_title_internal_alias\`, or
263+-- \`episode_title_internal_alias\` that contains the given
264+-- case-insensitive title.
246265aalTitle :: Lens' AccountsAvailsList (Maybe Text)
247266aalTitle = lens _aalTitle (\ s a -> s{_aalTitle = a})
248267
@@ -273,6 +292,7 @@ instance GoogleRequest AccountsAvailsList where
273292 _aalUploadType
274293 (_aalTerritories ^. _Default)
275294 _aalBearerToken
295+ (_aalAltIds ^. _Default)
276296 _aalPageToken
277297 _aalTitle
278298 _aalPageSize
gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/Components/List.hsnew file+366
@@ -0,0 +1,366 @@
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.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.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/Orders/List.hs+28−14
@@ -39,6 +39,7 @@ module Network.Google.Resource.PlayMoviesPartner.Accounts.Orders.List
3939 , aolPphNames
4040 , aolXgafv
4141 , aolStudioNames
42+ , aolVideoIds
4243 , aolUploadProtocol
4344 , aolPp
4445 , aolAccessToken
@@ -66,18 +67,19 @@ type AccountsOrdersListResource =
6667 QueryParams "pphNames" Text :>
6768 QueryParam "$.xgafv" Text :>
6869 QueryParams "studioNames" Text :>
69− QueryParam "upload_protocol" Text :>
70− QueryParam "pp" Bool :>
71− QueryParam "access_token" Text :>
72− QueryParam "uploadType" Text :>
73− QueryParam "customId" Text :>
74− QueryParam "bearer_token" Text :>
75− QueryParam "name" Text :>
76− QueryParam "pageToken" Text :>
77− QueryParam "pageSize" (Textual Int32) :>
78− QueryParam "callback" Text :>
79− QueryParam "alt" AltJSON :>
80− Get '[JSON] ListOrdersResponse
70+ QueryParams "videoIds" Text :>
71+ QueryParam "upload_protocol" Text :>
72+ QueryParam "pp" Bool :>
73+ QueryParam "access_token" Text :>
74+ QueryParam "uploadType" Text :>
75+ QueryParam "customId" Text :>
76+ QueryParam "bearer_token" Text :>
77+ QueryParam "name" Text :>
78+ QueryParam "pageToken" Text :>
79+ QueryParam "pageSize" (Textual Int32) :>
80+ QueryParam "callback" Text :>
81+ QueryParam "alt" AltJSON :>
82+ Get '[JSON] ListOrdersResponse
8183
8284-- | List Orders owned or managed by the partner. See _Authentication and
8385-- Authorization rules_ and _List methods rules_ for more information about
@@ -89,6 +91,7 @@ data AccountsOrdersList = AccountsOrdersList'
8991 , _aolPphNames :: !(Maybe [Text])
9092 , _aolXgafv :: !(Maybe Text)
9193 , _aolStudioNames :: !(Maybe [Text])
94+ , _aolVideoIds :: !(Maybe [Text])
9295 , _aolUploadProtocol :: !(Maybe Text)
9396 , _aolPp :: !Bool
9497 , _aolAccessToken :: !(Maybe Text)
@@ -114,6 +117,8 @@ data AccountsOrdersList = AccountsOrdersList'
114117--
115118-- * 'aolStudioNames'
116119--
120+-- * 'aolVideoIds'
121+--
117122-- * 'aolUploadProtocol'
118123--
119124-- * 'aolPp'
@@ -144,6 +149,7 @@ accountsOrdersList pAolAccountId_ =
144149 , _aolPphNames = Nothing
145150 , _aolXgafv = Nothing
146151 , _aolStudioNames = Nothing
152+ , _aolVideoIds = Nothing
147153 , _aolUploadProtocol = Nothing
148154 , _aolPp = True
149155 , _aolAccessToken = Nothing
@@ -183,6 +189,13 @@ aolStudioNames
183189 . _Default
184190 . _Coerce
185191
192+-- | Filter Orders that match any of the given \`video_id\`s.
193+aolVideoIds :: Lens' AccountsOrdersList [Text]
194+aolVideoIds
195+ = lens _aolVideoIds (\ s a -> s{_aolVideoIds = a}) .
196+ _Default
197+ . _Coerce
198+
186199-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
187200aolUploadProtocol :: Lens' AccountsOrdersList (Maybe Text)
188201aolUploadProtocol
@@ -221,8 +234,8 @@ aolBearerToken
221234 = lens _aolBearerToken
222235 (\ s a -> s{_aolBearerToken = a})
223236
224−-- | Filter Orders that match a title name (case-insensitive, sub-string
225−-- match).
237+-- | Filter that matches Orders with a \`name\`, \`show\`, \`season\` or
238+-- \`episode\` that contains the given case-insensitive name.
226239aolName :: Lens' AccountsOrdersList (Maybe Text)
227240aolName = lens _aolName (\ s a -> s{_aolName = a})
228241
@@ -251,6 +264,7 @@ instance GoogleRequest AccountsOrdersList where
251264 (_aolPphNames ^. _Default)
252265 _aolXgafv
253266 (_aolStudioNames ^. _Default)
267+ (_aolVideoIds ^. _Default)
254268 _aolUploadProtocol
255269 (Just _aolPp)
256270 _aolAccessToken
gogol-play-moviespartner/gen/Network/Google/Resource/PlayMoviesPartner/Accounts/StoreInfos/List.hs+43−12
@@ -42,6 +42,8 @@ module Network.Google.Resource.PlayMoviesPartner.Accounts.StoreInfos.List
4242 , asilUploadProtocol
4343 , asilPp
4444 , asilAccessToken
45+ , asilSeasonIds
46+ , asilMids
4547 , asilUploadType
4648 , asilCountries
4749 , asilVideoId
@@ -70,16 +72,20 @@ type AccountsStoreInfosListResource =
7072 QueryParam "upload_protocol" Text :>
7173 QueryParam "pp" Bool :>
7274 QueryParam "access_token" Text :>
73− QueryParam "uploadType" Text :>
74− QueryParams "countries" Text :>
75− QueryParam "videoId" Text :>
76− QueryParam "bearer_token" Text :>
77− QueryParam "name" Text :>
78− QueryParam "pageToken" Text :>
79− QueryParam "pageSize" (Textual Int32) :>
80− QueryParam "callback" Text :>
81− QueryParam "alt" AltJSON :>
82− Get '[JSON] ListStoreInfosResponse
75+ QueryParams "seasonIds" Text :>
76+ QueryParams "mids" Text :>
77+ QueryParam "uploadType" Text :>
78+ QueryParams "countries" Text :>
79+ QueryParam "videoId" Text :>
80+ QueryParam "bearer_token" Text :>
81+ QueryParam "name" Text :>
82+ QueryParam "pageToken" Text :>
83+ QueryParam "pageSize" (Textual Int32)
84+ :>
85+ QueryParam "callback" Text :>
86+ QueryParam "alt" AltJSON :>
87+ Get '[JSON]
88+ ListStoreInfosResponse
8389
8490-- | List StoreInfos owned or managed by the partner. See _Authentication and
8591-- Authorization rules_ and _List methods rules_ for more information about
@@ -94,6 +100,8 @@ data AccountsStoreInfosList = AccountsStoreInfosList'
94100 , _asilUploadProtocol :: !(Maybe Text)
95101 , _asilPp :: !Bool
96102 , _asilAccessToken :: !(Maybe Text)
103+ , _asilSeasonIds :: !(Maybe [Text])
104+ , _asilMids :: !(Maybe [Text])
97105 , _asilUploadType :: !(Maybe Text)
98106 , _asilCountries :: !(Maybe [Text])
99107 , _asilVideoId :: !(Maybe Text)
@@ -123,6 +131,10 @@ data AccountsStoreInfosList = AccountsStoreInfosList'
123131--
124132-- * 'asilAccessToken'
125133--
134+-- * 'asilSeasonIds'
135+--
136+-- * 'asilMids'
137+--
126138-- * 'asilUploadType'
127139--
128140-- * 'asilCountries'
@@ -152,6 +164,8 @@ accountsStoreInfosList pAsilAccountId_ =
152164 , _asilUploadProtocol = Nothing
153165 , _asilPp = True
154166 , _asilAccessToken = Nothing
167+ , _asilSeasonIds = Nothing
168+ , _asilMids = Nothing
155169 , _asilUploadType = Nothing
156170 , _asilCountries = Nothing
157171 , _asilVideoId = Nothing
@@ -206,6 +220,21 @@ asilAccessToken
206220 = lens _asilAccessToken
207221 (\ s a -> s{_asilAccessToken = a})
208222
223+-- | Filter StoreInfos that match any of the given \`season_id\`s.
224+asilSeasonIds :: Lens' AccountsStoreInfosList [Text]
225+asilSeasonIds
226+ = lens _asilSeasonIds
227+ (\ s a -> s{_asilSeasonIds = a})
228+ . _Default
229+ . _Coerce
230+
231+-- | Filter StoreInfos that match any of the given \`mid\`s.
232+asilMids :: Lens' AccountsStoreInfosList [Text]
233+asilMids
234+ = lens _asilMids (\ s a -> s{_asilMids = a}) .
235+ _Default
236+ . _Coerce
237+
209238-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
210239asilUploadType :: Lens' AccountsStoreInfosList (Maybe Text)
211240asilUploadType
@@ -241,8 +270,8 @@ asilBearerToken
241270 = lens _asilBearerToken
242271 (\ s a -> s{_asilBearerToken = a})
243272
244−-- | Filter StoreInfos that match a case-insensitive substring of the default
245−-- name.
273+-- | Filter that matches StoreInfos with a \`name\` or \`show_name\` that
274+-- contains the given case-insensitive name.
246275asilName :: Lens' AccountsStoreInfosList (Maybe Text)
247276asilName = lens _asilName (\ s a -> s{_asilName = a})
248277
@@ -276,6 +305,8 @@ instance GoogleRequest AccountsStoreInfosList where
276305 _asilUploadProtocol
277306 (Just _asilPp)
278307 _asilAccessToken
308+ (_asilSeasonIds ^. _Default)
309+ (_asilMids ^. _Default)
279310 _asilUploadType
280311 (_asilCountries ^. _Default)
281312 _asilVideoId
gogol-play-moviespartner/gogol-play-moviespartner.cabal+4−2
@@ -14,8 +14,7 @@ cabal-version: >= 1.10
1414extra-source-files: README.md
1515
1616description:
17− Lets Google Play Movies Partners get the delivery status of their
18− titles.
17+ Gets the delivery status of titles for Google Play Movies Partners.
1918 .
2019 /Warning:/ This is an experimental prototype/preview release which is still
2120 under exploratory development and not intended for public use, caveat emptor!
@@ -36,7 +35,10 @@ library
3635 exposed-modules:
3736 Network.Google.PlayMoviesPartner
3837 , Network.Google.PlayMoviesPartner.Types
38+ , 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
4042 , Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.Get
4143 , Network.Google.Resource.PlayMoviesPartner.Accounts.ExperienceLocales.List
4244 , Network.Google.Resource.PlayMoviesPartner.Accounts.Orders.Get