on develop help sign in
Regenerating gogol-youtube from latest service definition
90016c1Brendan Hay
gogol-youtube/gen/Network/Google/YouTube.hs+42−1
@@ -13,7 +13,8 @@
13-- Stability : auto-generated
13-- Stability : auto-generated
14-- Portability : non-portable (GHC extensions)
14-- Portability : non-portable (GHC extensions)
15--
15--
16−-- Programmatic access to YouTube features.
16+-- Supports core YouTube features, such as uploading videos, creating and
17+-- managing playlists, searching for content, and much more.
17--
18--
18-- /See:/ <https://developers.google.com/youtube/v3 YouTube Data API Reference>
19-- /See:/ <https://developers.google.com/youtube/v3 YouTube Data API Reference>
19module Network.Google.YouTube
20module Network.Google.YouTube
@@ -327,6 +328,11 @@ module Network.Google.YouTube
327 , acdrSeedResourceId
328 , acdrSeedResourceId
328 , acdrReason
329 , acdrReason
329
330
331+ -- ** LiveChatMessageRetractedDetails
332+ , LiveChatMessageRetractedDetails
333+ , liveChatMessageRetractedDetails
334+ , lcmrdRetractedMessageId
335+
330 -- ** ContentRatingRcnofRating
336 -- ** ContentRatingRcnofRating
331 , ContentRatingRcnofRating (..)
337 , ContentRatingRcnofRating (..)
332
338
@@ -378,6 +384,9 @@ module Network.Google.YouTube
378 , piId
384 , piId
379 , piTiming
385 , piTiming
380
386
387+ -- ** LiveChatUserBannedMessageDetailsBanType
388+ , LiveChatUserBannedMessageDetailsBanType (..)
389+
381 -- ** VideoProcessingDetailsProcessingFailureReason
390 -- ** VideoProcessingDetailsProcessingFailureReason
382 , VideoProcessingDetailsProcessingFailureReason (..)
391 , VideoProcessingDetailsProcessingFailureReason (..)
383
392
@@ -505,6 +514,16 @@ module Network.Google.YouTube
505 , varrlrVisitorId
514 , varrlrVisitorId
506 , varrlrEventId
515 , varrlrEventId
507
516
517+ -- ** CdnSettingsResolution
518+ , CdnSettingsResolution (..)
519+
520+ -- ** LiveChatUserBannedMessageDetails
521+ , LiveChatUserBannedMessageDetails
522+ , liveChatUserBannedMessageDetails
523+ , lcubmdBanType
524+ , lcubmdBannedUserDetails
525+ , lcubmdBanDurationSeconds
526+
508 -- ** SearchResultSnippetLiveBroadcastContent
527 -- ** SearchResultSnippetLiveBroadcastContent
509 , SearchResultSnippetLiveBroadcastContent (..)
528 , SearchResultSnippetLiveBroadcastContent (..)
510
529
@@ -516,10 +535,12 @@ module Network.Google.YouTube
516 , lbcdClosedCaptionsType
535 , lbcdClosedCaptionsType
517 , lbcdEnableEmbed
536 , lbcdEnableEmbed
518 , lbcdStartWithSlate
537 , lbcdStartWithSlate
538+ , lbcdProjection
519 , lbcdMonitorStream
539 , lbcdMonitorStream
520 , lbcdBoundStreamId
540 , lbcdBoundStreamId
521 , lbcdRecordFromStart
541 , lbcdRecordFromStart
522 , lbcdEnableClosedCaptions
542 , lbcdEnableClosedCaptions
543+ , lbcdBoundStreamLastUpdateTimeMs
523 , lbcdEnableDvr
544 , lbcdEnableDvr
524
545
525 -- ** ContentRatingAnatelRating
546 -- ** ContentRatingAnatelRating
@@ -575,6 +596,7 @@ module Network.Google.YouTube
575 , vcdDimension
596 , vcdDimension
576 , vcdCaption
597 , vcdCaption
577 , vcdRegionRestriction
598 , vcdRegionRestriction
599+ , vcdProjection
578 , vcdDuration
600 , vcdDuration
579 , vcdContentRating
601 , vcdContentRating
580 , vcdLicensedContent
602 , vcdLicensedContent
@@ -1075,9 +1097,12 @@ module Network.Google.YouTube
1075 -- ** LiveChatMessageSnippet
1097 -- ** LiveChatMessageSnippet
1076 , LiveChatMessageSnippet
1098 , LiveChatMessageSnippet
1077 , liveChatMessageSnippet
1099 , liveChatMessageSnippet
1100+ , lcmsMessageDeletedDetails
1078 , lcmsLiveChatId
1101 , lcmsLiveChatId
1079 , lcmsPublishedAt
1102 , lcmsPublishedAt
1103+ , lcmsUserBannedDetails
1080 , lcmsTextMessageDetails
1104 , lcmsTextMessageDetails
1105+ , lcmsMessageRetractedDetails
1081 , lcmsType
1106 , lcmsType
1082 , lcmsAuthorChannelId
1107 , lcmsAuthorChannelId
1083 , lcmsFanFundingEventDetails
1108 , lcmsFanFundingEventDetails
@@ -1307,6 +1332,11 @@ module Network.Google.YouTube
1307 , sKind
1332 , sKind
1308 , sId
1333 , sId
1309
1334
1335+ -- ** LiveChatMessageDeletedDetails
1336+ , LiveChatMessageDeletedDetails
1337+ , liveChatMessageDeletedDetails
1338+ , lcmddDeletedMessageId
1339+
1310 -- ** ContentRatingYtRating
1340 -- ** ContentRatingYtRating
1311 , ContentRatingYtRating (..)
1341 , ContentRatingYtRating (..)
1312
1342
@@ -1333,7 +1363,9 @@ module Network.Google.YouTube
1333 , CdnSettings
1363 , CdnSettings
1334 , cdnSettings
1364 , cdnSettings
1335 , csIngestionInfo
1365 , csIngestionInfo
1366+ , csFrameRate
1336 , csFormat
1367 , csFormat
1368+ , csResolution
1337 , csIngestionType
1369 , csIngestionType
1338
1370
1339 -- ** VideoContentDetailsCaption
1371 -- ** VideoContentDetailsCaption
@@ -1402,6 +1434,9 @@ module Network.Google.YouTube
1402 , activityContentDetailsBulletin
1434 , activityContentDetailsBulletin
1403 , acdbResourceId
1435 , acdbResourceId
1404
1436
1437+ -- ** LiveBroadcastContentDetailsProjection
1438+ , LiveBroadcastContentDetailsProjection (..)
1439+
1405 -- ** CaptionSnippetStatus
1440 -- ** CaptionSnippetStatus
1406 , CaptionSnippetStatus (..)
1441 , CaptionSnippetStatus (..)
1407
1442
@@ -1487,6 +1522,9 @@ module Network.Google.YouTube
1487 -- ** ContentRatingEcbmctRating
1522 -- ** ContentRatingEcbmctRating
1488 , ContentRatingEcbmctRating (..)
1523 , ContentRatingEcbmctRating (..)
1489
1524
1525+ -- ** VideoContentDetailsProjection
1526+ , VideoContentDetailsProjection (..)
1527+
1490 -- ** ContentRatingGrfilmRating
1528 -- ** ContentRatingGrfilmRating
1491 , ContentRatingGrfilmRating (..)
1529 , ContentRatingGrfilmRating (..)
1492
1530
@@ -1916,6 +1954,9 @@ module Network.Google.YouTube
1916 , csIsEasyReader
1954 , csIsEasyReader
1917 , csAudioTrackType
1955 , csAudioTrackType
1918
1956
1957+ -- ** CdnSettingsFrameRate
1958+ , CdnSettingsFrameRate (..)
1959+
1919 -- ** Comment
1960 -- ** Comment
1920 , Comment
1961 , Comment
1921 , comment
1962 , comment
gogol-youtube/gen/Network/Google/YouTube/Types.hs+40
@@ -105,6 +105,11 @@ module Network.Google.YouTube.Types
105 , acdrSeedResourceId
105 , acdrSeedResourceId
106 , acdrReason
106 , acdrReason
107
107
108+ -- * LiveChatMessageRetractedDetails
109+ , LiveChatMessageRetractedDetails
110+ , liveChatMessageRetractedDetails
111+ , lcmrdRetractedMessageId
112+
108 -- * ContentRatingRcnofRating
113 -- * ContentRatingRcnofRating
109 , ContentRatingRcnofRating (..)
114 , ContentRatingRcnofRating (..)
110
115
@@ -156,6 +161,9 @@ module Network.Google.YouTube.Types
156 , piId
161 , piId
157 , piTiming
162 , piTiming
158
163
164+ -- * LiveChatUserBannedMessageDetailsBanType
165+ , LiveChatUserBannedMessageDetailsBanType (..)
166+
159 -- * VideoProcessingDetailsProcessingFailureReason
167 -- * VideoProcessingDetailsProcessingFailureReason
160 , VideoProcessingDetailsProcessingFailureReason (..)
168 , VideoProcessingDetailsProcessingFailureReason (..)
161
169
@@ -283,6 +291,16 @@ module Network.Google.YouTube.Types
283 , varrlrVisitorId
291 , varrlrVisitorId
284 , varrlrEventId
292 , varrlrEventId
285
293
294+ -- * CdnSettingsResolution
295+ , CdnSettingsResolution (..)
296+
297+ -- * LiveChatUserBannedMessageDetails
298+ , LiveChatUserBannedMessageDetails
299+ , liveChatUserBannedMessageDetails
300+ , lcubmdBanType
301+ , lcubmdBannedUserDetails
302+ , lcubmdBanDurationSeconds
303+
286 -- * SearchResultSnippetLiveBroadcastContent
304 -- * SearchResultSnippetLiveBroadcastContent
287 , SearchResultSnippetLiveBroadcastContent (..)
305 , SearchResultSnippetLiveBroadcastContent (..)
288
306
@@ -294,10 +312,12 @@ module Network.Google.YouTube.Types
294 , lbcdClosedCaptionsType
312 , lbcdClosedCaptionsType
295 , lbcdEnableEmbed
313 , lbcdEnableEmbed
296 , lbcdStartWithSlate
314 , lbcdStartWithSlate
315+ , lbcdProjection
297 , lbcdMonitorStream
316 , lbcdMonitorStream
298 , lbcdBoundStreamId
317 , lbcdBoundStreamId
299 , lbcdRecordFromStart
318 , lbcdRecordFromStart
300 , lbcdEnableClosedCaptions
319 , lbcdEnableClosedCaptions
320+ , lbcdBoundStreamLastUpdateTimeMs
301 , lbcdEnableDvr
321 , lbcdEnableDvr
302
322
303 -- * ContentRatingAnatelRating
323 -- * ContentRatingAnatelRating
@@ -353,6 +373,7 @@ module Network.Google.YouTube.Types
353 , vcdDimension
373 , vcdDimension
354 , vcdCaption
374 , vcdCaption
355 , vcdRegionRestriction
375 , vcdRegionRestriction
376+ , vcdProjection
356 , vcdDuration
377 , vcdDuration
357 , vcdContentRating
378 , vcdContentRating
358 , vcdLicensedContent
379 , vcdLicensedContent
@@ -853,9 +874,12 @@ module Network.Google.YouTube.Types
853 -- * LiveChatMessageSnippet
874 -- * LiveChatMessageSnippet
854 , LiveChatMessageSnippet
875 , LiveChatMessageSnippet
855 , liveChatMessageSnippet
876 , liveChatMessageSnippet
877+ , lcmsMessageDeletedDetails
856 , lcmsLiveChatId
878 , lcmsLiveChatId
857 , lcmsPublishedAt
879 , lcmsPublishedAt
880+ , lcmsUserBannedDetails
858 , lcmsTextMessageDetails
881 , lcmsTextMessageDetails
882+ , lcmsMessageRetractedDetails
859 , lcmsType
883 , lcmsType
860 , lcmsAuthorChannelId
884 , lcmsAuthorChannelId
861 , lcmsFanFundingEventDetails
885 , lcmsFanFundingEventDetails
@@ -1085,6 +1109,11 @@ module Network.Google.YouTube.Types
1085 , sKind
1109 , sKind
1086 , sId
1110 , sId
1087
1111
1112+ -- * LiveChatMessageDeletedDetails
1113+ , LiveChatMessageDeletedDetails
1114+ , liveChatMessageDeletedDetails
1115+ , lcmddDeletedMessageId
1116+
1088 -- * ContentRatingYtRating
1117 -- * ContentRatingYtRating
1089 , ContentRatingYtRating (..)
1118 , ContentRatingYtRating (..)
1090
1119
@@ -1111,7 +1140,9 @@ module Network.Google.YouTube.Types
1111 , CdnSettings
1140 , CdnSettings
1112 , cdnSettings
1141 , cdnSettings
1113 , csIngestionInfo
1142 , csIngestionInfo
1143+ , csFrameRate
1114 , csFormat
1144 , csFormat
1145+ , csResolution
1115 , csIngestionType
1146 , csIngestionType
1116
1147
1117 -- * VideoContentDetailsCaption
1148 -- * VideoContentDetailsCaption
@@ -1180,6 +1211,9 @@ module Network.Google.YouTube.Types
1180 , activityContentDetailsBulletin
1211 , activityContentDetailsBulletin
1181 , acdbResourceId
1212 , acdbResourceId
1182
1213
1214+ -- * LiveBroadcastContentDetailsProjection
1215+ , LiveBroadcastContentDetailsProjection (..)
1216+
1183 -- * CaptionSnippetStatus
1217 -- * CaptionSnippetStatus
1184 , CaptionSnippetStatus (..)
1218 , CaptionSnippetStatus (..)
1185
1219
@@ -1265,6 +1299,9 @@ module Network.Google.YouTube.Types
1265 -- * ContentRatingEcbmctRating
1299 -- * ContentRatingEcbmctRating
1266 , ContentRatingEcbmctRating (..)
1300 , ContentRatingEcbmctRating (..)
1267
1301
1302+ -- * VideoContentDetailsProjection
1303+ , VideoContentDetailsProjection (..)
1304+
1268 -- * ContentRatingGrfilmRating
1305 -- * ContentRatingGrfilmRating
1269 , ContentRatingGrfilmRating (..)
1306 , ContentRatingGrfilmRating (..)
1270
1307
@@ -1694,6 +1731,9 @@ module Network.Google.YouTube.Types
1694 , csIsEasyReader
1731 , csIsEasyReader
1695 , csAudioTrackType
1732 , csAudioTrackType
1696
1733
1734+ -- * CdnSettingsFrameRate
1735+ , CdnSettingsFrameRate (..)
1736+
1697 -- * Comment
1737 -- * Comment
1698 , Comment
1738 , Comment
1699 , comment
1739 , comment
gogol-youtube/gen/Network/Google/YouTube/Types/Product.hs+265−26
@@ -522,6 +522,44 @@ instance ToJSON ActivityContentDetailsRecommendation
522 ("seedResourceId" .=) <$> _acdrSeedResourceId,
522 ("seedResourceId" .=) <$> _acdrSeedResourceId,
523 ("reason" .=) <$> _acdrReason])
523 ("reason" .=) <$> _acdrReason])
524
524
525+--
526+-- /See:/ 'liveChatMessageRetractedDetails' smart constructor.
527+newtype LiveChatMessageRetractedDetails = LiveChatMessageRetractedDetails'
528+ { _lcmrdRetractedMessageId :: Maybe Text
529+ } deriving (Eq,Show,Data,Typeable,Generic)
530+
531+-- | Creates a value of 'LiveChatMessageRetractedDetails' with the minimum fields required to make a request.
532+--
533+-- Use one of the following lenses to modify other fields as desired:
534+--
535+-- * 'lcmrdRetractedMessageId'
536+liveChatMessageRetractedDetails
537+ :: LiveChatMessageRetractedDetails
538+liveChatMessageRetractedDetails =
539+ LiveChatMessageRetractedDetails'
540+ { _lcmrdRetractedMessageId = Nothing
541+ }
542+
543+lcmrdRetractedMessageId :: Lens' LiveChatMessageRetractedDetails (Maybe Text)
544+lcmrdRetractedMessageId
545+ = lens _lcmrdRetractedMessageId
546+ (\ s a -> s{_lcmrdRetractedMessageId = a})
547+
548+instance FromJSON LiveChatMessageRetractedDetails
549+ where
550+ parseJSON
551+ = withObject "LiveChatMessageRetractedDetails"
552+ (\ o ->
553+ LiveChatMessageRetractedDetails' <$>
554+ (o .:? "retractedMessageId"))
555+
556+instance ToJSON LiveChatMessageRetractedDetails where
557+ toJSON LiveChatMessageRetractedDetails'{..}
558+ = object
559+ (catMaybes
560+ [("retractedMessageId" .=) <$>
561+ _lcmrdRetractedMessageId])
562+
525--
563--
526-- /See:/ 'playListListResponse' smart constructor.
564-- /See:/ 'playListListResponse' smart constructor.
527data PlayListListResponse = PlayListListResponse'
565data PlayListListResponse = PlayListListResponse'
@@ -1785,20 +1823,88 @@ instance ToJSON VideoAbuseReportReasonListResponse
1785 ("visitorId" .=) <$> _varrlrVisitorId,
1823 ("visitorId" .=) <$> _varrlrVisitorId,
1786 ("eventId" .=) <$> _varrlrEventId])
1824 ("eventId" .=) <$> _varrlrEventId])
1787
1825
1826+--
1827+-- /See:/ 'liveChatUserBannedMessageDetails' smart constructor.
1828+data LiveChatUserBannedMessageDetails = LiveChatUserBannedMessageDetails'
1829+ { _lcubmdBanType :: !(Maybe LiveChatUserBannedMessageDetailsBanType)
1830+ , _lcubmdBannedUserDetails :: !(Maybe ChannelProFileDetails)
1831+ , _lcubmdBanDurationSeconds :: !(Maybe (Textual Word64))
1832+ } deriving (Eq,Show,Data,Typeable,Generic)
1833+
1834+-- | Creates a value of 'LiveChatUserBannedMessageDetails' with the minimum fields required to make a request.
1835+--
1836+-- Use one of the following lenses to modify other fields as desired:
1837+--
1838+-- * 'lcubmdBanType'
1839+--
1840+-- * 'lcubmdBannedUserDetails'
1841+--
1842+-- * 'lcubmdBanDurationSeconds'
1843+liveChatUserBannedMessageDetails
1844+ :: LiveChatUserBannedMessageDetails
1845+liveChatUserBannedMessageDetails =
1846+ LiveChatUserBannedMessageDetails'
1847+ { _lcubmdBanType = Nothing
1848+ , _lcubmdBannedUserDetails = Nothing
1849+ , _lcubmdBanDurationSeconds = Nothing
1850+ }
1851+
1852+-- | The type of ban.
1853+lcubmdBanType :: Lens' LiveChatUserBannedMessageDetails (Maybe LiveChatUserBannedMessageDetailsBanType)
1854+lcubmdBanType
1855+ = lens _lcubmdBanType
1856+ (\ s a -> s{_lcubmdBanType = a})
1857+
1858+-- | The details of the user that was banned.
1859+lcubmdBannedUserDetails :: Lens' LiveChatUserBannedMessageDetails (Maybe ChannelProFileDetails)
1860+lcubmdBannedUserDetails
1861+ = lens _lcubmdBannedUserDetails
1862+ (\ s a -> s{_lcubmdBannedUserDetails = a})
1863+
1864+-- | The duration of the ban. This property is only present if the banType is
1865+-- temporary.
1866+lcubmdBanDurationSeconds :: Lens' LiveChatUserBannedMessageDetails (Maybe Word64)
1867+lcubmdBanDurationSeconds
1868+ = lens _lcubmdBanDurationSeconds
1869+ (\ s a -> s{_lcubmdBanDurationSeconds = a})
1870+ . mapping _Coerce
1871+
1872+instance FromJSON LiveChatUserBannedMessageDetails
1873+ where
1874+ parseJSON
1875+ = withObject "LiveChatUserBannedMessageDetails"
1876+ (\ o ->
1877+ LiveChatUserBannedMessageDetails' <$>
1878+ (o .:? "banType") <*> (o .:? "bannedUserDetails") <*>
1879+ (o .:? "banDurationSeconds"))
1880+
1881+instance ToJSON LiveChatUserBannedMessageDetails
1882+ where
1883+ toJSON LiveChatUserBannedMessageDetails'{..}
1884+ = object
1885+ (catMaybes
1886+ [("banType" .=) <$> _lcubmdBanType,
1887+ ("bannedUserDetails" .=) <$>
1888+ _lcubmdBannedUserDetails,
1889+ ("banDurationSeconds" .=) <$>
1890+ _lcubmdBanDurationSeconds])
1891+
1788-- | Detailed settings of a broadcast.
1892-- | Detailed settings of a broadcast.
1789--
1893--
1790-- /See:/ 'liveBroadcastContentDetails' smart constructor.
1894-- /See:/ 'liveBroadcastContentDetails' smart constructor.
1791data LiveBroadcastContentDetails = LiveBroadcastContentDetails'
1895data LiveBroadcastContentDetails = LiveBroadcastContentDetails'
1792− { _lbcdEnableContentEncryption :: !(Maybe Bool)
1896+ { _lbcdEnableContentEncryption :: !(Maybe Bool)
1793− , _lbcdEnableLowLatency :: !(Maybe Bool)
1897+ , _lbcdEnableLowLatency :: !(Maybe Bool)
1794− , _lbcdClosedCaptionsType :: !(Maybe LiveBroadcastContentDetailsClosedCaptionsType)
1898+ , _lbcdClosedCaptionsType :: !(Maybe LiveBroadcastContentDetailsClosedCaptionsType)
1795− , _lbcdEnableEmbed :: !(Maybe Bool)
1899+ , _lbcdEnableEmbed :: !(Maybe Bool)
1796− , _lbcdStartWithSlate :: !(Maybe Bool)
1900+ , _lbcdStartWithSlate :: !(Maybe Bool)
1901+ , _lbcdProjection :: !(Maybe LiveBroadcastContentDetailsProjection)
1797− , _lbcdMonitorStream :: !(Maybe MonitorStreamInfo)
1902+ , _lbcdMonitorStream :: !(Maybe MonitorStreamInfo)
1798− , _lbcdBoundStreamId :: !(Maybe Text)
1903+ , _lbcdBoundStreamId :: !(Maybe Text)
1799− , _lbcdRecordFromStart :: !(Maybe Bool)
1904+ , _lbcdRecordFromStart :: !(Maybe Bool)
1800− , _lbcdEnableClosedCaptions :: !(Maybe Bool)
1905+ , _lbcdEnableClosedCaptions :: !(Maybe Bool)
1906+ , _lbcdBoundStreamLastUpdateTimeMs :: !(Maybe DateTime')
1801− , _lbcdEnableDvr :: !(Maybe Bool)
1907+ , _lbcdEnableDvr :: !(Maybe Bool)
1802 } deriving (Eq,Show,Data,Typeable,Generic)
1908 } deriving (Eq,Show,Data,Typeable,Generic)
1803
1909
1804-- | Creates a value of 'LiveBroadcastContentDetails' with the minimum fields required to make a request.
1910-- | Creates a value of 'LiveBroadcastContentDetails' with the minimum fields required to make a request.
@@ -1815,6 +1921,8 @@ data LiveBroadcastContentDetails = LiveBroadcastContentDetails'
1815--
1921--
1816-- * 'lbcdStartWithSlate'
1922-- * 'lbcdStartWithSlate'
1817--
1923--
1924+-- * 'lbcdProjection'
1925+--
1818-- * 'lbcdMonitorStream'
1926-- * 'lbcdMonitorStream'
1819--
1927--
1820-- * 'lbcdBoundStreamId'
1928-- * 'lbcdBoundStreamId'
@@ -1823,6 +1931,8 @@ data LiveBroadcastContentDetails = LiveBroadcastContentDetails'
1823--
1931--
1824-- * 'lbcdEnableClosedCaptions'
1932-- * 'lbcdEnableClosedCaptions'
1825--
1933--
1934+-- * 'lbcdBoundStreamLastUpdateTimeMs'
1935+--
1826-- * 'lbcdEnableDvr'
1936-- * 'lbcdEnableDvr'
1827liveBroadcastContentDetails
1937liveBroadcastContentDetails
1828 :: LiveBroadcastContentDetails
1938 :: LiveBroadcastContentDetails
@@ -1833,10 +1943,12 @@ liveBroadcastContentDetails =
1833 , _lbcdClosedCaptionsType = Nothing
1943 , _lbcdClosedCaptionsType = Nothing
1834 , _lbcdEnableEmbed = Nothing
1944 , _lbcdEnableEmbed = Nothing
1835 , _lbcdStartWithSlate = Nothing
1945 , _lbcdStartWithSlate = Nothing
1946+ , _lbcdProjection = Nothing
1836 , _lbcdMonitorStream = Nothing
1947 , _lbcdMonitorStream = Nothing
1837 , _lbcdBoundStreamId = Nothing
1948 , _lbcdBoundStreamId = Nothing
1838 , _lbcdRecordFromStart = Nothing
1949 , _lbcdRecordFromStart = Nothing
1839 , _lbcdEnableClosedCaptions = Nothing
1950 , _lbcdEnableClosedCaptions = Nothing
1951+ , _lbcdBoundStreamLastUpdateTimeMs = Nothing
1840 , _lbcdEnableDvr = Nothing
1952 , _lbcdEnableDvr = Nothing
1841 }
1953 }
1842
1954
@@ -1877,6 +1989,12 @@ lbcdStartWithSlate
1877 = lens _lbcdStartWithSlate
1989 = lens _lbcdStartWithSlate
1878 (\ s a -> s{_lbcdStartWithSlate = a})
1990 (\ s a -> s{_lbcdStartWithSlate = a})
1879
1991
1992+-- | The projection format of this broadcast. This defaults to rectangular.
1993+lbcdProjection :: Lens' LiveBroadcastContentDetails (Maybe LiveBroadcastContentDetailsProjection)
1994+lbcdProjection
1995+ = lens _lbcdProjection
1996+ (\ s a -> s{_lbcdProjection = a})
1997+
1880-- | The monitorStream object contains information about the monitor stream,
1998-- | The monitorStream object contains information about the monitor stream,
1881-- which the broadcaster can use to review the event content before the
1999-- which the broadcaster can use to review the event content before the
1882-- broadcast stream is shown publicly.
2000-- broadcast stream is shown publicly.
@@ -1913,6 +2031,14 @@ lbcdEnableClosedCaptions
1913 = lens _lbcdEnableClosedCaptions
2031 = lens _lbcdEnableClosedCaptions
1914 (\ s a -> s{_lbcdEnableClosedCaptions = a})
2032 (\ s a -> s{_lbcdEnableClosedCaptions = a})
1915
2033
2034+-- | The date and time that the live stream referenced by boundStreamId was
2035+-- last updated.
2036+lbcdBoundStreamLastUpdateTimeMs :: Lens' LiveBroadcastContentDetails (Maybe UTCTime)
2037+lbcdBoundStreamLastUpdateTimeMs
2038+ = lens _lbcdBoundStreamLastUpdateTimeMs
2039+ (\ s a -> s{_lbcdBoundStreamLastUpdateTimeMs = a})
2040+ . mapping _DateTime
2041+
1916-- | This setting determines whether viewers can access DVR controls while
2042-- | This setting determines whether viewers can access DVR controls while
1917-- watching the video. DVR controls enable the viewer to control the video
2043-- watching the video. DVR controls enable the viewer to control the video
1918-- playback experience by pausing, rewinding, or fast forwarding content.
2044-- playback experience by pausing, rewinding, or fast forwarding content.
@@ -1935,10 +2061,12 @@ instance FromJSON LiveBroadcastContentDetails where
1935 <*> (o .:? "closedCaptionsType")
2061 <*> (o .:? "closedCaptionsType")
1936 <*> (o .:? "enableEmbed")
2062 <*> (o .:? "enableEmbed")
1937 <*> (o .:? "startWithSlate")
2063 <*> (o .:? "startWithSlate")
2064+ <*> (o .:? "projection")
1938 <*> (o .:? "monitorStream")
2065 <*> (o .:? "monitorStream")
1939 <*> (o .:? "boundStreamId")
2066 <*> (o .:? "boundStreamId")
1940 <*> (o .:? "recordFromStart")
2067 <*> (o .:? "recordFromStart")
1941 <*> (o .:? "enableClosedCaptions")
2068 <*> (o .:? "enableClosedCaptions")
2069+ <*> (o .:? "boundStreamLastUpdateTimeMs")
1942 <*> (o .:? "enableDvr"))
2070 <*> (o .:? "enableDvr"))
1943
2071
1944instance ToJSON LiveBroadcastContentDetails where
2072instance ToJSON LiveBroadcastContentDetails where
@@ -1952,11 +2080,14 @@ instance ToJSON LiveBroadcastContentDetails where
1952 _lbcdClosedCaptionsType,
2080 _lbcdClosedCaptionsType,
1953 ("enableEmbed" .=) <$> _lbcdEnableEmbed,
2081 ("enableEmbed" .=) <$> _lbcdEnableEmbed,
1954 ("startWithSlate" .=) <$> _lbcdStartWithSlate,
2082 ("startWithSlate" .=) <$> _lbcdStartWithSlate,
2083+ ("projection" .=) <$> _lbcdProjection,
1955 ("monitorStream" .=) <$> _lbcdMonitorStream,
2084 ("monitorStream" .=) <$> _lbcdMonitorStream,
1956 ("boundStreamId" .=) <$> _lbcdBoundStreamId,
2085 ("boundStreamId" .=) <$> _lbcdBoundStreamId,
1957 ("recordFromStart" .=) <$> _lbcdRecordFromStart,
2086 ("recordFromStart" .=) <$> _lbcdRecordFromStart,
1958 ("enableClosedCaptions" .=) <$>
2087 ("enableClosedCaptions" .=) <$>
1959 _lbcdEnableClosedCaptions,
2088 _lbcdEnableClosedCaptions,
2089+ ("boundStreamLastUpdateTimeMs" .=) <$>
2090+ _lbcdBoundStreamLastUpdateTimeMs,
1960 ("enableDvr" .=) <$> _lbcdEnableDvr])
2091 ("enableDvr" .=) <$> _lbcdEnableDvr])
1961
2092
1962--
2093--
@@ -2309,6 +2440,7 @@ data VideoContentDetails = VideoContentDetails'
2309 , _vcdDimension :: !(Maybe Text)
2440 , _vcdDimension :: !(Maybe Text)
2310 , _vcdCaption :: !(Maybe VideoContentDetailsCaption)
2441 , _vcdCaption :: !(Maybe VideoContentDetailsCaption)
2311 , _vcdRegionRestriction :: !(Maybe VideoContentDetailsRegionRestriction)
2442 , _vcdRegionRestriction :: !(Maybe VideoContentDetailsRegionRestriction)
2443+ , _vcdProjection :: !(Maybe VideoContentDetailsProjection)
2312 , _vcdDuration :: !(Maybe Text)
2444 , _vcdDuration :: !(Maybe Text)
2313 , _vcdContentRating :: !(Maybe ContentRating)
2445 , _vcdContentRating :: !(Maybe ContentRating)
2314 , _vcdLicensedContent :: !(Maybe Bool)
2446 , _vcdLicensedContent :: !(Maybe Bool)
@@ -2328,6 +2460,8 @@ data VideoContentDetails = VideoContentDetails'
2328--
2460--
2329-- * 'vcdRegionRestriction'
2461-- * 'vcdRegionRestriction'
2330--
2462--
2463+-- * 'vcdProjection'
2464+--
2331-- * 'vcdDuration'
2465-- * 'vcdDuration'
2332--
2466--
2333-- * 'vcdContentRating'
2467-- * 'vcdContentRating'
@@ -2342,6 +2476,7 @@ videoContentDetails =
2342 , _vcdDimension = Nothing
2476 , _vcdDimension = Nothing
2343 , _vcdCaption = Nothing
2477 , _vcdCaption = Nothing
2344 , _vcdRegionRestriction = Nothing
2478 , _vcdRegionRestriction = Nothing
2479+ , _vcdProjection = Nothing
2345 , _vcdDuration = Nothing
2480 , _vcdDuration = Nothing
2346 , _vcdContentRating = Nothing
2481 , _vcdContentRating = Nothing
2347 , _vcdLicensedContent = Nothing
2482 , _vcdLicensedContent = Nothing
@@ -2381,6 +2516,12 @@ vcdRegionRestriction
2381 = lens _vcdRegionRestriction
2516 = lens _vcdRegionRestriction
2382 (\ s a -> s{_vcdRegionRestriction = a})
2517 (\ s a -> s{_vcdRegionRestriction = a})
2383
2518
2519+-- | Specifies the projection format of the video.
2520+vcdProjection :: Lens' VideoContentDetails (Maybe VideoContentDetailsProjection)
2521+vcdProjection
2522+ = lens _vcdProjection
2523+ (\ s a -> s{_vcdProjection = a})
2524+
2384-- | The length of the video. The tag value is an ISO 8601 duration in the
2525-- | The length of the video. The tag value is an ISO 8601 duration in the
2385-- format PT#M#S, in which the letters PT indicate that the value specifies
2526-- format PT#M#S, in which the letters PT indicate that the value specifies
2386-- a period of time, and the letters M and S refer to length in minutes and
2527-- a period of time, and the letters M and S refer to length in minutes and
@@ -2415,6 +2556,7 @@ instance FromJSON VideoContentDetails where
2415 <*> (o .:? "dimension")
2556 <*> (o .:? "dimension")
2416 <*> (o .:? "caption")
2557 <*> (o .:? "caption")
2417 <*> (o .:? "regionRestriction")
2558 <*> (o .:? "regionRestriction")
2559+ <*> (o .:? "projection")
2418 <*> (o .:? "duration")
2560 <*> (o .:? "duration")
2419 <*> (o .:? "contentRating")
2561 <*> (o .:? "contentRating")
2420 <*> (o .:? "licensedContent"))
2562 <*> (o .:? "licensedContent"))
@@ -2429,6 +2571,7 @@ instance ToJSON VideoContentDetails where
2429 ("dimension" .=) <$> _vcdDimension,
2571 ("dimension" .=) <$> _vcdDimension,
2430 ("caption" .=) <$> _vcdCaption,
2572 ("caption" .=) <$> _vcdCaption,
2431 ("regionRestriction" .=) <$> _vcdRegionRestriction,
2573 ("regionRestriction" .=) <$> _vcdRegionRestriction,
2574+ ("projection" .=) <$> _vcdProjection,
2432 ("duration" .=) <$> _vcdDuration,
2575 ("duration" .=) <$> _vcdDuration,
2433 ("contentRating" .=) <$> _vcdContentRating,
2576 ("contentRating" .=) <$> _vcdContentRating,
2434 ("licensedContent" .=) <$> _vcdLicensedContent])
2577 ("licensedContent" .=) <$> _vcdLicensedContent])
@@ -6379,26 +6522,35 @@ instance ToJSON MonitorStreamInfo where
6379--
6522--
6380-- /See:/ 'liveChatMessageSnippet' smart constructor.
6523-- /See:/ 'liveChatMessageSnippet' smart constructor.
6381data LiveChatMessageSnippet = LiveChatMessageSnippet'
6524data LiveChatMessageSnippet = LiveChatMessageSnippet'
6525+ { _lcmsMessageDeletedDetails :: !(Maybe LiveChatMessageDeletedDetails)
6382− { _lcmsLiveChatId :: !(Maybe Text)
6526+ , _lcmsLiveChatId :: !(Maybe Text)
6383− , _lcmsPublishedAt :: !(Maybe DateTime')
6527+ , _lcmsPublishedAt :: !(Maybe DateTime')
6528+ , _lcmsUserBannedDetails :: !(Maybe LiveChatUserBannedMessageDetails)
6384− , _lcmsTextMessageDetails :: !(Maybe LiveChatTextMessageDetails)
6529+ , _lcmsTextMessageDetails :: !(Maybe LiveChatTextMessageDetails)
6530+ , _lcmsMessageRetractedDetails :: !(Maybe LiveChatMessageRetractedDetails)
6385− , _lcmsType :: !(Maybe LiveChatMessageSnippetType)
6531+ , _lcmsType :: !(Maybe LiveChatMessageSnippetType)
6386− , _lcmsAuthorChannelId :: !(Maybe Text)
6532+ , _lcmsAuthorChannelId :: !(Maybe Text)
6387− , _lcmsFanFundingEventDetails :: !(Maybe LiveChatFanFundingEventDetails)
6533+ , _lcmsFanFundingEventDetails :: !(Maybe LiveChatFanFundingEventDetails)
6388− , _lcmsHasDisplayContent :: !(Maybe Bool)
6534+ , _lcmsHasDisplayContent :: !(Maybe Bool)
6389− , _lcmsDisplayMessage :: !(Maybe Text)
6535+ , _lcmsDisplayMessage :: !(Maybe Text)
6390 } deriving (Eq,Show,Data,Typeable,Generic)
6536 } deriving (Eq,Show,Data,Typeable,Generic)
6391
6537
6392-- | Creates a value of 'LiveChatMessageSnippet' with the minimum fields required to make a request.
6538-- | Creates a value of 'LiveChatMessageSnippet' with the minimum fields required to make a request.
6393--
6539--
6394-- Use one of the following lenses to modify other fields as desired:
6540-- Use one of the following lenses to modify other fields as desired:
6395--
6541--
6542+-- * 'lcmsMessageDeletedDetails'
6543+--
6396-- * 'lcmsLiveChatId'
6544-- * 'lcmsLiveChatId'
6397--
6545--
6398-- * 'lcmsPublishedAt'
6546-- * 'lcmsPublishedAt'
6399--
6547--
6548+-- * 'lcmsUserBannedDetails'
6549+--
6400-- * 'lcmsTextMessageDetails'
6550-- * 'lcmsTextMessageDetails'
6401--
6551--
6552+-- * 'lcmsMessageRetractedDetails'
6553+--
6402-- * 'lcmsType'
6554-- * 'lcmsType'
6403--
6555--
6404-- * 'lcmsAuthorChannelId'
6556-- * 'lcmsAuthorChannelId'
@@ -6412,9 +6564,12 @@ liveChatMessageSnippet
6412 :: LiveChatMessageSnippet
6564 :: LiveChatMessageSnippet
6413liveChatMessageSnippet =
6565liveChatMessageSnippet =
6414 LiveChatMessageSnippet'
6566 LiveChatMessageSnippet'
6567+ { _lcmsMessageDeletedDetails = Nothing
6415− { _lcmsLiveChatId = Nothing
6568+ , _lcmsLiveChatId = Nothing
6416 , _lcmsPublishedAt = Nothing
6569 , _lcmsPublishedAt = Nothing
6570+ , _lcmsUserBannedDetails = Nothing
6417 , _lcmsTextMessageDetails = Nothing
6571 , _lcmsTextMessageDetails = Nothing
6572+ , _lcmsMessageRetractedDetails = Nothing
6418 , _lcmsType = Nothing
6573 , _lcmsType = Nothing
6419 , _lcmsAuthorChannelId = Nothing
6574 , _lcmsAuthorChannelId = Nothing
6420 , _lcmsFanFundingEventDetails = Nothing
6575 , _lcmsFanFundingEventDetails = Nothing
@@ -6422,6 +6577,11 @@ liveChatMessageSnippet =
6422 , _lcmsDisplayMessage = Nothing
6577 , _lcmsDisplayMessage = Nothing
6423 }
6578 }
6424
6579
6580+lcmsMessageDeletedDetails :: Lens' LiveChatMessageSnippet (Maybe LiveChatMessageDeletedDetails)
6581+lcmsMessageDeletedDetails
6582+ = lens _lcmsMessageDeletedDetails
6583+ (\ s a -> s{_lcmsMessageDeletedDetails = a})
6584+
6425lcmsLiveChatId :: Lens' LiveChatMessageSnippet (Maybe Text)
6585lcmsLiveChatId :: Lens' LiveChatMessageSnippet (Maybe Text)
6426lcmsLiveChatId
6586lcmsLiveChatId
6427 = lens _lcmsLiveChatId
6587 = lens _lcmsLiveChatId
@@ -6435,6 +6595,11 @@ lcmsPublishedAt
6435 (\ s a -> s{_lcmsPublishedAt = a})
6595 (\ s a -> s{_lcmsPublishedAt = a})
6436 . mapping _DateTime
6596 . mapping _DateTime
6437
6597
6598+lcmsUserBannedDetails :: Lens' LiveChatMessageSnippet (Maybe LiveChatUserBannedMessageDetails)
6599+lcmsUserBannedDetails
6600+ = lens _lcmsUserBannedDetails
6601+ (\ s a -> s{_lcmsUserBannedDetails = a})
6602+
6438-- | Details about the text message, this is only set if the type is
6603-- | Details about the text message, this is only set if the type is
6439-- \'textMessageEvent\'.
6604-- \'textMessageEvent\'.
6440lcmsTextMessageDetails :: Lens' LiveChatMessageSnippet (Maybe LiveChatTextMessageDetails)
6605lcmsTextMessageDetails :: Lens' LiveChatMessageSnippet (Maybe LiveChatTextMessageDetails)
@@ -6442,6 +6607,11 @@ lcmsTextMessageDetails
6442 = lens _lcmsTextMessageDetails
6607 = lens _lcmsTextMessageDetails
6443 (\ s a -> s{_lcmsTextMessageDetails = a})
6608 (\ s a -> s{_lcmsTextMessageDetails = a})
6444
6609
6610+lcmsMessageRetractedDetails :: Lens' LiveChatMessageSnippet (Maybe LiveChatMessageRetractedDetails)
6611+lcmsMessageRetractedDetails
6612+ = lens _lcmsMessageRetractedDetails
6613+ (\ s a -> s{_lcmsMessageRetractedDetails = a})
6614+
6445-- | The type of message, this will always be present, it determines the
6615-- | The type of message, this will always be present, it determines the
6446-- contents of the message as well as which fields will be present.
6616-- contents of the message as well as which fields will be present.
6447lcmsType :: Lens' LiveChatMessageSnippet (Maybe LiveChatMessageSnippetType)
6617lcmsType :: Lens' LiveChatMessageSnippet (Maybe LiveChatMessageSnippetType)
@@ -6450,7 +6620,9 @@ lcmsType = lens _lcmsType (\ s a -> s{_lcmsType = a})
6450-- | The ID of the user that authored this message, this field is not always
6620-- | The ID of the user that authored this message, this field is not always
6451-- filled. textMessageEvent - the user that wrote the message
6621-- filled. textMessageEvent - the user that wrote the message
6452-- fanFundingEvent - the user that funded the broadcast newSponsorEvent -
6622-- fanFundingEvent - the user that funded the broadcast newSponsorEvent -
6453−-- the user that just became a sponsor
6623+-- the user that just became a sponsor messageDeletedEvent - the moderator
6624+-- that took the action messageRetractedEvent - the author that retracted
6625+-- their message userBannedEvent - the moderator that took the action
6454lcmsAuthorChannelId :: Lens' LiveChatMessageSnippet (Maybe Text)
6626lcmsAuthorChannelId :: Lens' LiveChatMessageSnippet (Maybe Text)
6455lcmsAuthorChannelId
6627lcmsAuthorChannelId
6456 = lens _lcmsAuthorChannelId
6628 = lens _lcmsAuthorChannelId
@@ -6483,8 +6655,12 @@ instance FromJSON LiveChatMessageSnippet where
6483 = withObject "LiveChatMessageSnippet"
6655 = withObject "LiveChatMessageSnippet"
6484 (\ o ->
6656 (\ o ->
6485 LiveChatMessageSnippet' <$>
6657 LiveChatMessageSnippet' <$>
6658+ (o .:? "messageDeletedDetails") <*>
6659+ (o .:? "liveChatId")
6486− (o .:? "liveChatId") <*> (o .:? "publishedAt") <*>
6660+ <*> (o .:? "publishedAt")
6661+ <*> (o .:? "userBannedDetails")
6487− (o .:? "textMessageDetails")
6662+ <*> (o .:? "textMessageDetails")
6663+ <*> (o .:? "messageRetractedDetails")
6488 <*> (o .:? "type")
6664 <*> (o .:? "type")
6489 <*> (o .:? "authorChannelId")
6665 <*> (o .:? "authorChannelId")
6490 <*> (o .:? "fanFundingEventDetails")
6666 <*> (o .:? "fanFundingEventDetails")
@@ -6495,10 +6671,15 @@ instance ToJSON LiveChatMessageSnippet where
6495 toJSON LiveChatMessageSnippet'{..}
6671 toJSON LiveChatMessageSnippet'{..}
6496 = object
6672 = object
6497 (catMaybes
6673 (catMaybes
6674+ [("messageDeletedDetails" .=) <$>
6675+ _lcmsMessageDeletedDetails,
6498− [("liveChatId" .=) <$> _lcmsLiveChatId,
6676+ ("liveChatId" .=) <$> _lcmsLiveChatId,
6499 ("publishedAt" .=) <$> _lcmsPublishedAt,
6677 ("publishedAt" .=) <$> _lcmsPublishedAt,
6678+ ("userBannedDetails" .=) <$> _lcmsUserBannedDetails,
6500 ("textMessageDetails" .=) <$>
6679 ("textMessageDetails" .=) <$>
6501 _lcmsTextMessageDetails,
6680 _lcmsTextMessageDetails,
6681+ ("messageRetractedDetails" .=) <$>
6682+ _lcmsMessageRetractedDetails,
6502 ("type" .=) <$> _lcmsType,
6683 ("type" .=) <$> _lcmsType,
6503 ("authorChannelId" .=) <$> _lcmsAuthorChannelId,
6684 ("authorChannelId" .=) <$> _lcmsAuthorChannelId,
6504 ("fanFundingEventDetails" .=) <$>
6685 ("fanFundingEventDetails" .=) <$>
@@ -8192,6 +8373,42 @@ instance ToJSON Sponsor where
8192 ("snippet" .=) <$> _sSnippet,
8373 ("snippet" .=) <$> _sSnippet,
8193 Just ("kind" .= _sKind), ("id" .=) <$> _sId])
8374 Just ("kind" .= _sKind), ("id" .=) <$> _sId])
8194
8375
8376+--
8377+-- /See:/ 'liveChatMessageDeletedDetails' smart constructor.
8378+newtype LiveChatMessageDeletedDetails = LiveChatMessageDeletedDetails'
8379+ { _lcmddDeletedMessageId :: Maybe Text
8380+ } deriving (Eq,Show,Data,Typeable,Generic)
8381+
8382+-- | Creates a value of 'LiveChatMessageDeletedDetails' with the minimum fields required to make a request.
8383+--
8384+-- Use one of the following lenses to modify other fields as desired:
8385+--
8386+-- * 'lcmddDeletedMessageId'
8387+liveChatMessageDeletedDetails
8388+ :: LiveChatMessageDeletedDetails
8389+liveChatMessageDeletedDetails =
8390+ LiveChatMessageDeletedDetails'
8391+ { _lcmddDeletedMessageId = Nothing
8392+ }
8393+
8394+lcmddDeletedMessageId :: Lens' LiveChatMessageDeletedDetails (Maybe Text)
8395+lcmddDeletedMessageId
8396+ = lens _lcmddDeletedMessageId
8397+ (\ s a -> s{_lcmddDeletedMessageId = a})
8398+
8399+instance FromJSON LiveChatMessageDeletedDetails where
8400+ parseJSON
8401+ = withObject "LiveChatMessageDeletedDetails"
8402+ (\ o ->
8403+ LiveChatMessageDeletedDetails' <$>
8404+ (o .:? "deletedMessageId"))
8405+
8406+instance ToJSON LiveChatMessageDeletedDetails where
8407+ toJSON LiveChatMessageDeletedDetails'{..}
8408+ = object
8409+ (catMaybes
8410+ [("deletedMessageId" .=) <$> _lcmddDeletedMessageId])
8411+
8195--
8412--
8196-- /See:/ 'commentThreadListResponse' smart constructor.
8413-- /See:/ 'commentThreadListResponse' smart constructor.
8197data CommentThreadListResponse = CommentThreadListResponse'
8414data CommentThreadListResponse = CommentThreadListResponse'
@@ -8309,7 +8526,7 @@ instance ToJSON CommentThreadListResponse where
8309 ("visitorId" .=) <$> _ctlrVisitorId,
8526 ("visitorId" .=) <$> _ctlrVisitorId,
8310 ("eventId" .=) <$> _ctlrEventId])
8527 ("eventId" .=) <$> _ctlrEventId])
8311
8528
8312−-- | Branding properties for the watch.
8529+-- | Branding properties for the watch. All deprecated.
8313--
8530--
8314-- /See:/ 'watchSettings' smart constructor.
8531-- /See:/ 'watchSettings' smart constructor.
8315data WatchSettings = WatchSettings'
8532data WatchSettings = WatchSettings'
@@ -8376,7 +8593,9 @@ instance ToJSON WatchSettings where
8376-- /See:/ 'cdnSettings' smart constructor.
8593-- /See:/ 'cdnSettings' smart constructor.
8377data CdnSettings = CdnSettings'
8594data CdnSettings = CdnSettings'
8378 { _csIngestionInfo :: !(Maybe IngestionInfo)
8595 { _csIngestionInfo :: !(Maybe IngestionInfo)
8596+ , _csFrameRate :: !(Maybe CdnSettingsFrameRate)
8379 , _csFormat :: !(Maybe Text)
8597 , _csFormat :: !(Maybe Text)
8598+ , _csResolution :: !(Maybe CdnSettingsResolution)
8380 , _csIngestionType :: !(Maybe CdnSettingsIngestionType)
8599 , _csIngestionType :: !(Maybe CdnSettingsIngestionType)
8381 } deriving (Eq,Show,Data,Typeable,Generic)
8600 } deriving (Eq,Show,Data,Typeable,Generic)
8382
8601
@@ -8386,15 +8605,21 @@ data CdnSettings = CdnSettings'
8386--
8605--
8387-- * 'csIngestionInfo'
8606-- * 'csIngestionInfo'
8388--
8607--
8608+-- * 'csFrameRate'
8609+--
8389-- * 'csFormat'
8610-- * 'csFormat'
8390--
8611--
8612+-- * 'csResolution'
8613+--
8391-- * 'csIngestionType'
8614-- * 'csIngestionType'
8392cdnSettings
8615cdnSettings
8393 :: CdnSettings
8616 :: CdnSettings
8394cdnSettings =
8617cdnSettings =
8395 CdnSettings'
8618 CdnSettings'
8396 { _csIngestionInfo = Nothing
8619 { _csIngestionInfo = Nothing
8620+ , _csFrameRate = Nothing
8397 , _csFormat = Nothing
8621 , _csFormat = Nothing
8622+ , _csResolution = Nothing
8398 , _csIngestionType = Nothing
8623 , _csIngestionType = Nothing
8399 }
8624 }
8400
8625
@@ -8405,10 +8630,20 @@ csIngestionInfo
8405 = lens _csIngestionInfo
8630 = lens _csIngestionInfo
8406 (\ s a -> s{_csIngestionInfo = a})
8631 (\ s a -> s{_csIngestionInfo = a})
8407
8632
8633+-- | The frame rate of the inbound video data.
8634+csFrameRate :: Lens' CdnSettings (Maybe CdnSettingsFrameRate)
8635+csFrameRate
8636+ = lens _csFrameRate (\ s a -> s{_csFrameRate = a})
8637+
8408-- | The format of the video stream that you are sending to Youtube.
8638-- | The format of the video stream that you are sending to Youtube.
8409csFormat :: Lens' CdnSettings (Maybe Text)
8639csFormat :: Lens' CdnSettings (Maybe Text)
8410csFormat = lens _csFormat (\ s a -> s{_csFormat = a})
8640csFormat = lens _csFormat (\ s a -> s{_csFormat = a})
8411
8641
8642+-- | The resolution of the inbound video data.
8643+csResolution :: Lens' CdnSettings (Maybe CdnSettingsResolution)
8644+csResolution
8645+ = lens _csResolution (\ s a -> s{_csResolution = a})
8646+
8412-- | The method or protocol used to transmit the video stream.
8647-- | The method or protocol used to transmit the video stream.
8413csIngestionType :: Lens' CdnSettings (Maybe CdnSettingsIngestionType)
8648csIngestionType :: Lens' CdnSettings (Maybe CdnSettingsIngestionType)
8414csIngestionType
8649csIngestionType
@@ -8420,15 +8655,19 @@ instance FromJSON CdnSettings where
8420 = withObject "CdnSettings"
8655 = withObject "CdnSettings"
8421 (\ o ->
8656 (\ o ->
8422 CdnSettings' <$>
8657 CdnSettings' <$>
8423− (o .:? "ingestionInfo") <*> (o .:? "format") <*>
8658+ (o .:? "ingestionInfo") <*> (o .:? "frameRate") <*>
8659+ (o .:? "format")
8660+ <*> (o .:? "resolution")
8424− (o .:? "ingestionType"))
8661+ <*> (o .:? "ingestionType"))
8425
8662
8426instance ToJSON CdnSettings where
8663instance ToJSON CdnSettings where
8427 toJSON CdnSettings'{..}
8664 toJSON CdnSettings'{..}
8428 = object
8665 = object
8429 (catMaybes
8666 (catMaybes
8430 [("ingestionInfo" .=) <$> _csIngestionInfo,
8667 [("ingestionInfo" .=) <$> _csIngestionInfo,
8668+ ("frameRate" .=) <$> _csFrameRate,
8431 ("format" .=) <$> _csFormat,
8669 ("format" .=) <$> _csFormat,
8670+ ("resolution" .=) <$> _csResolution,
8432 ("ingestionType" .=) <$> _csIngestionType])
8671 ("ingestionType" .=) <$> _csIngestionType])
8433
8672
8434-- | Statistics about the live broadcast. These represent a snapshot of the
8673-- | Statistics about the live broadcast. These represent a snapshot of the
gogol-youtube/gen/Network/Google/YouTube/Types/Sum.hs+327−152
@@ -23,6 +23,8 @@ import Network.Google.Prelude
23data ContentRatingCceRating
23data ContentRatingCceRating
24 = CCEM12
24 = CCEM12
25 -- ^ @cceM12@
25 -- ^ @cceM12@
26+ | CCEM14
27+ -- ^ @cceM14@
26 | CCEM16
28 | CCEM16
27 -- ^ @cceM16@
29 -- ^ @cceM16@
28 | CCEM18
30 | CCEM18
@@ -33,13 +35,14 @@ data ContentRatingCceRating
33 -- ^ @cceM6@
35 -- ^ @cceM6@
34 | CceUnrated
36 | CceUnrated
35 -- ^ @cceUnrated@
37 -- ^ @cceUnrated@
36− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
38+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
37
39
38instance Hashable ContentRatingCceRating
40instance Hashable ContentRatingCceRating
39
41
40instance FromHttpApiData ContentRatingCceRating where
42instance FromHttpApiData ContentRatingCceRating where
41 parseQueryParam = \case
43 parseQueryParam = \case
42 "cceM12" -> Right CCEM12
44 "cceM12" -> Right CCEM12
45+ "cceM14" -> Right CCEM14
43 "cceM16" -> Right CCEM16
46 "cceM16" -> Right CCEM16
44 "cceM18" -> Right CCEM18
47 "cceM18" -> Right CCEM18
45 "cceM4" -> Right CCEM4
48 "cceM4" -> Right CCEM4
@@ -50,6 +53,7 @@ instance FromHttpApiData ContentRatingCceRating where
50instance ToHttpApiData ContentRatingCceRating where
53instance ToHttpApiData ContentRatingCceRating where
51 toQueryParam = \case
54 toQueryParam = \case
52 CCEM12 -> "cceM12"
55 CCEM12 -> "cceM12"
56+ CCEM14 -> "cceM14"
53 CCEM16 -> "cceM16"
57 CCEM16 -> "cceM16"
54 CCEM18 -> "cceM18"
58 CCEM18 -> "cceM18"
55 CCEM4 -> "cceM4"
59 CCEM4 -> "cceM4"
@@ -76,7 +80,7 @@ data ContentRatingChfilmRating
76 -- ^ @chfilm6@
80 -- ^ @chfilm6@
77 | ChfilmUnrated
81 | ChfilmUnrated
78 -- ^ @chfilmUnrated@
82 -- ^ @chfilmUnrated@
79− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
83+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
80
84
81instance Hashable ContentRatingChfilmRating
85instance Hashable ContentRatingChfilmRating
82
86
@@ -125,7 +129,7 @@ data ContentRatingMccaaRating
125 -- ^ @mccaaU@
129 -- ^ @mccaaU@
126 | MccaaUnrated
130 | MccaaUnrated
127 -- ^ @mccaaUnrated@
131 -- ^ @mccaaUnrated@
128− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
132+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
129
133
130instance Hashable ContentRatingMccaaRating
134instance Hashable ContentRatingMccaaRating
131
135
@@ -166,7 +170,7 @@ data VideosListChart
166 -- ^ @mostPopular@
170 -- ^ @mostPopular@
167 -- Return the most popular videos for the specified content region and
171 -- Return the most popular videos for the specified content region and
168 -- video category.
172 -- video category.
169− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
173+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
170
174
171instance Hashable VideosListChart
175instance Hashable VideosListChart
172
176
@@ -199,7 +203,7 @@ data ContentRatingMpaaRating
199 -- ^ @mpaaR@
203 -- ^ @mpaaR@
200 | MpaaUnrated
204 | MpaaUnrated
201 -- ^ @mpaaUnrated@
205 -- ^ @mpaaUnrated@
202− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
206+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
203
207
204instance Hashable ContentRatingMpaaRating
208instance Hashable ContentRatingMpaaRating
205
209
@@ -236,7 +240,7 @@ data CaptionSnippetTrackKind
236 -- ^ @forced@
240 -- ^ @forced@
237 | Standard
241 | Standard
238 -- ^ @standard@
242 -- ^ @standard@
239− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
243+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
240
244
241instance Hashable CaptionSnippetTrackKind
245instance Hashable CaptionSnippetTrackKind
242
246
@@ -268,7 +272,7 @@ data VideoSnippetLiveBroadcastContent
268 -- ^ @none@
272 -- ^ @none@
269 | Upcoming
273 | Upcoming
270 -- ^ @upcoming@
274 -- ^ @upcoming@
271− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
275+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
272
276
273instance Hashable VideoSnippetLiveBroadcastContent
277instance Hashable VideoSnippetLiveBroadcastContent
274
278
@@ -299,7 +303,7 @@ data ChannelConversionPingContext
299 -- ^ @subscribe@
303 -- ^ @subscribe@
300 | Unsubscribe
304 | Unsubscribe
301 -- ^ @unsubscribe@
305 -- ^ @unsubscribe@
302− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
306+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
303
307
304instance Hashable ChannelConversionPingContext
308instance Hashable ChannelConversionPingContext
305
309
@@ -339,7 +343,7 @@ data ContentRatingRcnofRating
339 -- ^ @rcnofV@
343 -- ^ @rcnofV@
340 | RcnofVi
344 | RcnofVi
341 -- ^ @rcnofVi@
345 -- ^ @rcnofVi@
342− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
346+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
343
347
344instance Hashable ContentRatingRcnofRating
348instance Hashable ContentRatingRcnofRating
345
349
@@ -378,7 +382,7 @@ data VideoStatusPrivacyStatus
378 -- ^ @public@
382 -- ^ @public@
379 | UnListed
383 | UnListed
380 -- ^ @unlisted@
384 -- ^ @unlisted@
381− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
385+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
382
386
383instance Hashable VideoStatusPrivacyStatus
387instance Hashable VideoStatusPrivacyStatus
384
388
@@ -426,7 +430,7 @@ data LiveBroadcastStatusLifeCycleStatus
426 -- ^ @testStarting@
430 -- ^ @testStarting@
427 | LBSLCSTesting
431 | LBSLCSTesting
428 -- ^ @testing@
432 -- ^ @testing@
429− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
433+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
430
434
431instance Hashable LiveBroadcastStatusLifeCycleStatus
435instance Hashable LiveBroadcastStatusLifeCycleStatus
432
436
@@ -474,7 +478,7 @@ data CaptionSnippetFailureReason
474 -- ^ @unknownFormat@
478 -- ^ @unknownFormat@
475 | UnsupportedFormat
479 | UnsupportedFormat
476 -- ^ @unsupportedFormat@
480 -- ^ @unsupportedFormat@
477− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
481+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
478
482
479instance Hashable CaptionSnippetFailureReason
483instance Hashable CaptionSnippetFailureReason
480
484
@@ -497,6 +501,33 @@ instance FromJSON CaptionSnippetFailureReason where
497instance ToJSON CaptionSnippetFailureReason where
501instance ToJSON CaptionSnippetFailureReason where
498 toJSON = toJSONText
502 toJSON = toJSONText
499
503
504+-- | The type of ban.
505+data LiveChatUserBannedMessageDetailsBanType
506+ = Permanent
507+ -- ^ @permanent@
508+ | Temporary
509+ -- ^ @temporary@
510+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
511+
512+instance Hashable LiveChatUserBannedMessageDetailsBanType
513+
514+instance FromHttpApiData LiveChatUserBannedMessageDetailsBanType where
515+ parseQueryParam = \case
516+ "permanent" -> Right Permanent
517+ "temporary" -> Right Temporary
518+ x -> Left ("Unable to parse LiveChatUserBannedMessageDetailsBanType from: " <> x)
519+
520+instance ToHttpApiData LiveChatUserBannedMessageDetailsBanType where
521+ toQueryParam = \case
522+ Permanent -> "permanent"
523+ Temporary -> "temporary"
524+
525+instance FromJSON LiveChatUserBannedMessageDetailsBanType where
526+ parseJSON = parseJSONText "LiveChatUserBannedMessageDetailsBanType"
527+
528+instance ToJSON LiveChatUserBannedMessageDetailsBanType where
529+ toJSON = toJSONText
530+
500-- | The reason that YouTube failed to process the video. This property will
531-- | The reason that YouTube failed to process the video. This property will
501-- only have a value if the processingStatus property\'s value is failed.
532-- only have a value if the processingStatus property\'s value is failed.
502data VideoProcessingDetailsProcessingFailureReason
533data VideoProcessingDetailsProcessingFailureReason
@@ -508,7 +539,7 @@ data VideoProcessingDetailsProcessingFailureReason
508 -- ^ @transcodeFailed@
539 -- ^ @transcodeFailed@
509 | UploadFailed
540 | UploadFailed
510 -- ^ @uploadFailed@
541 -- ^ @uploadFailed@
511− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
542+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
512
543
513instance Hashable VideoProcessingDetailsProcessingFailureReason
544instance Hashable VideoProcessingDetailsProcessingFailureReason
514
545
@@ -537,7 +568,7 @@ instance ToJSON VideoProcessingDetailsProcessingFailureReason where
537data InvideoPositionType
568data InvideoPositionType
538 = Corner
569 = Corner
539 -- ^ @corner@
570 -- ^ @corner@
540− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
571+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
541
572
542instance Hashable InvideoPositionType
573instance Hashable InvideoPositionType
543
574
@@ -571,7 +602,7 @@ data ContentRatingFskRating
571 -- ^ @fsk6@
602 -- ^ @fsk6@
572 | FskUnrated
603 | FskUnrated
573 -- ^ @fskUnrated@
604 -- ^ @fskUnrated@
574− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
605+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
575
606
576instance Hashable ContentRatingFskRating
607instance Hashable ContentRatingFskRating
577
608
@@ -615,7 +646,7 @@ data ContentRatingMekuRating
615 -- ^ @mekuS@
646 -- ^ @mekuS@
616 | MekuUnrated
647 | MekuUnrated
617 -- ^ @mekuUnrated@
648 -- ^ @mekuUnrated@
618− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
649+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
619
650
620instance Hashable ContentRatingMekuRating
651instance Hashable ContentRatingMekuRating
621
652
@@ -651,7 +682,7 @@ data VideoContentDetailsDefinition
651 -- ^ @hd@
682 -- ^ @hd@
652 | SD
683 | SD
653 -- ^ @sd@
684 -- ^ @sd@
654− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
685+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
655
686
656instance Hashable VideoContentDetailsDefinition
687instance Hashable VideoContentDetailsDefinition
657
688
@@ -692,7 +723,7 @@ data ContentRatingEefilmRating
692 -- ^ @eefilmPere@
723 -- ^ @eefilmPere@
693 | EefilmUnrated
724 | EefilmUnrated
694 -- ^ @eefilmUnrated@
725 -- ^ @eefilmUnrated@
695− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
726+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
696
727
697instance Hashable ContentRatingEefilmRating
728instance Hashable ContentRatingEefilmRating
698
729
@@ -739,7 +770,7 @@ data LiveBroadcastStatusPrivacyStatus
739 -- ^ @public@
770 -- ^ @public@
740 | LBSPSUnListed
771 | LBSPSUnListed
741 -- ^ @unlisted@
772 -- ^ @unlisted@
742− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
773+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
743
774
744instance Hashable LiveBroadcastStatusPrivacyStatus
775instance Hashable LiveBroadcastStatusPrivacyStatus
745
776
@@ -781,7 +812,7 @@ data CaptionsDownloadTfmt
781 | Vtt
812 | Vtt
782 -- ^ @vtt@
813 -- ^ @vtt@
783 -- Web Video Text Tracks caption.
814 -- Web Video Text Tracks caption.
784− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
815+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
785
816
786instance Hashable CaptionsDownloadTfmt
817instance Hashable CaptionsDownloadTfmt
787
818
@@ -816,7 +847,7 @@ data PromotedItemIdType
816 -- ^ @video@
847 -- ^ @video@
817 | PIITWebsite
848 | PIITWebsite
818 -- ^ @website@
849 -- ^ @website@
819− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
850+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
820
851
821instance Hashable PromotedItemIdType
852instance Hashable PromotedItemIdType
822
853
@@ -851,7 +882,7 @@ data ContentRatingPefilmRating
851 -- ^ @pefilmPt@
882 -- ^ @pefilmPt@
852 | PefilmUnrated
883 | PefilmUnrated
853 -- ^ @pefilmUnrated@
884 -- ^ @pefilmUnrated@
854− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
885+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
855
886
856instance Hashable ContentRatingPefilmRating
887instance Hashable ContentRatingPefilmRating
857
888
@@ -878,6 +909,49 @@ instance FromJSON ContentRatingPefilmRating where
878instance ToJSON ContentRatingPefilmRating where
909instance ToJSON ContentRatingPefilmRating where
879 toJSON = toJSONText
910 toJSON = toJSONText
880
911
912+-- | The resolution of the inbound video data.
913+data CdnSettingsResolution
914+ = CSR1080p
915+ -- ^ @1080p@
916+ | CSR1440p
917+ -- ^ @1440p@
918+ | CSR240p
919+ -- ^ @240p@
920+ | CSR360p
921+ -- ^ @360p@
922+ | CSR480p
923+ -- ^ @480p@
924+ | CSR720p
925+ -- ^ @720p@
926+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
927+
928+instance Hashable CdnSettingsResolution
929+
930+instance FromHttpApiData CdnSettingsResolution where
931+ parseQueryParam = \case
932+ "1080p" -> Right CSR1080p
933+ "1440p" -> Right CSR1440p
934+ "240p" -> Right CSR240p
935+ "360p" -> Right CSR360p
936+ "480p" -> Right CSR480p
937+ "720p" -> Right CSR720p
938+ x -> Left ("Unable to parse CdnSettingsResolution from: " <> x)
939+
940+instance ToHttpApiData CdnSettingsResolution where
941+ toQueryParam = \case
942+ CSR1080p -> "1080p"
943+ CSR1440p -> "1440p"
944+ CSR240p -> "240p"
945+ CSR360p -> "360p"
946+ CSR480p -> "480p"
947+ CSR720p -> "720p"
948+
949+instance FromJSON CdnSettingsResolution where
950+ parseJSON = parseJSONText "CdnSettingsResolution"
951+
952+instance ToJSON CdnSettingsResolution where
953+ toJSON = toJSONText
954+
881-- | It indicates if the resource (video or channel) has upcoming\/active
955-- | It indicates if the resource (video or channel) has upcoming\/active
882-- live broadcast content. Or it\'s \"none\" if there is not any
956-- live broadcast content. Or it\'s \"none\" if there is not any
883-- upcoming\/active live broadcasts.
957-- upcoming\/active live broadcasts.
@@ -888,7 +962,7 @@ data SearchResultSnippetLiveBroadcastContent
888 -- ^ @none@
962 -- ^ @none@
889 | SRSLBCUpcoming
963 | SRSLBCUpcoming
890 -- ^ @upcoming@
964 -- ^ @upcoming@
891− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
965+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
892
966
893instance Hashable SearchResultSnippetLiveBroadcastContent
967instance Hashable SearchResultSnippetLiveBroadcastContent
894
968
@@ -930,7 +1004,7 @@ data ContentRatingAnatelRating
930 -- ^ @anatelR@
1004 -- ^ @anatelR@
931 | AnatelUnrated
1005 | AnatelUnrated
932 -- ^ @anatelUnrated@
1006 -- ^ @anatelUnrated@
933− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1007+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
934
1008
935instance Hashable ContentRatingAnatelRating
1009instance Hashable ContentRatingAnatelRating
936
1010
@@ -987,7 +1061,7 @@ data SearchListOrder
987 | ViewCount
1061 | ViewCount
988 -- ^ @viewCount@
1062 -- ^ @viewCount@
989 -- Resources are sorted from highest to lowest number of views.
1063 -- Resources are sorted from highest to lowest number of views.
990− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1064+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
991
1065
992instance Hashable SearchListOrder
1066instance Hashable SearchListOrder
993
1067
@@ -1032,7 +1106,7 @@ data ContentRatingCccRating
1032 -- ^ @cccTe@
1106 -- ^ @cccTe@
1033 | CccUnrated
1107 | CccUnrated
1034 -- ^ @cccUnrated@
1108 -- ^ @cccUnrated@
1035− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1109+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1036
1110
1037instance Hashable ContentRatingCccRating
1111instance Hashable ContentRatingCccRating
1038
1112
@@ -1073,7 +1147,7 @@ data CaptionSnippetAudioTrackType
1073 -- ^ @primary@
1147 -- ^ @primary@
1074 | Unknown
1148 | Unknown
1075 -- ^ @unknown@
1149 -- ^ @unknown@
1076− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1150+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1077
1151
1078instance Hashable CaptionSnippetAudioTrackType
1152instance Hashable CaptionSnippetAudioTrackType
1079
1153
@@ -1106,7 +1180,7 @@ data ChannelStatusPrivacyStatus
1106 -- ^ @public@
1180 -- ^ @public@
1107 | CSPSUnListed
1181 | CSPSUnListed
1108 -- ^ @unlisted@
1182 -- ^ @unlisted@
1109− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1183+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1110
1184
1111instance Hashable ChannelStatusPrivacyStatus
1185instance Hashable ChannelStatusPrivacyStatus
1112
1186
@@ -1138,7 +1212,7 @@ data VideoSuggestionsEditorSuggestionsItem
1138 -- ^ @videoCrop@
1212 -- ^ @videoCrop@
1139 | VideoStabilize
1213 | VideoStabilize
1140 -- ^ @videoStabilize@
1214 -- ^ @videoStabilize@
1141− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1215+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1142
1216
1143instance Hashable VideoSuggestionsEditorSuggestionsItem
1217instance Hashable VideoSuggestionsEditorSuggestionsItem
1144
1218
@@ -1180,7 +1254,7 @@ data ContentRatingCatvfrRating
1180 -- ^ @catvfrG@
1254 -- ^ @catvfrG@
1181 | CatvfrUnrated
1255 | CatvfrUnrated
1182 -- ^ @catvfrUnrated@
1256 -- ^ @catvfrUnrated@
1183− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1257+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1184
1258
1185instance Hashable ContentRatingCatvfrRating
1259instance Hashable ContentRatingCatvfrRating
1186
1260
@@ -1224,7 +1298,7 @@ data ContentRatingCnaRating
1224 -- ^ @cnaAp@
1298 -- ^ @cnaAp@
1225 | CnaUnrated
1299 | CnaUnrated
1226 -- ^ @cnaUnrated@
1300 -- ^ @cnaUnrated@
1227− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1301+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1228
1302
1229instance Hashable ContentRatingCnaRating
1303instance Hashable ContentRatingCnaRating
1230
1304
@@ -1269,7 +1343,7 @@ data ContentRatingChvrsRating
1269 -- ^ @chvrsR@
1343 -- ^ @chvrsR@
1270 | ChvrsUnrated
1344 | ChvrsUnrated
1271 -- ^ @chvrsUnrated@
1345 -- ^ @chvrsUnrated@
1272− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1346+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1273
1347
1274instance Hashable ContentRatingChvrsRating
1348instance Hashable ContentRatingChvrsRating
1275
1349
@@ -1315,7 +1389,7 @@ data ContentRatingIncaaRating
1315 -- ^ @incaaSam18@
1389 -- ^ @incaaSam18@
1316 | IncaaUnrated
1390 | IncaaUnrated
1317 -- ^ @incaaUnrated@
1391 -- ^ @incaaUnrated@
1318− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1392+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1319
1393
1320instance Hashable ContentRatingIncaaRating
1394instance Hashable ContentRatingIncaaRating
1321
1395
@@ -1357,7 +1431,7 @@ data ContentRatingSmsaRating
1357 -- ^ @smsaA@
1431 -- ^ @smsaA@
1358 | SmsaUnrated
1432 | SmsaUnrated
1359 -- ^ @smsaUnrated@
1433 -- ^ @smsaUnrated@
1360− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1434+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1361
1435
1362instance Hashable ContentRatingSmsaRating
1436instance Hashable ContentRatingSmsaRating
1363
1437
@@ -1396,7 +1470,7 @@ data ContentRatingCbfcRating
1396 -- ^ @cbfcUA@
1470 -- ^ @cbfcUA@
1397 | CbfcUnrated
1471 | CbfcUnrated
1398 -- ^ @cbfcUnrated@
1472 -- ^ @cbfcUnrated@
1399− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1473+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1400
1474
1401instance Hashable ContentRatingCbfcRating
1475instance Hashable ContentRatingCbfcRating
1402
1476
@@ -1435,7 +1509,7 @@ data ContentRatingKfcbRating
1435 -- ^ @kfcbR@
1509 -- ^ @kfcbR@
1436 | KfcbUnrated
1510 | KfcbUnrated
1437 -- ^ @kfcbUnrated@
1511 -- ^ @kfcbUnrated@
1438− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1512+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1439
1513
1440instance Hashable ContentRatingKfcbRating
1514instance Hashable ContentRatingKfcbRating
1441
1515
@@ -1470,7 +1544,7 @@ data LiveStreamConfigurationIssueSeverity
1470 -- ^ @info@
1544 -- ^ @info@
1471 | Warning
1545 | Warning
1472 -- ^ @warning@
1546 -- ^ @warning@
1473− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1547+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1474
1548
1475instance Hashable LiveStreamConfigurationIssueSeverity
1549instance Hashable LiveStreamConfigurationIssueSeverity
1476
1550
@@ -1509,7 +1583,7 @@ data SearchListVideoDefinition
1509 | SLVDStandard
1583 | SLVDStandard
1510 -- ^ @standard@
1584 -- ^ @standard@
1511 -- Only retrieve videos in standard definition.
1585 -- Only retrieve videos in standard definition.
1512− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1586+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1513
1587
1514instance Hashable SearchListVideoDefinition
1588instance Hashable SearchListVideoDefinition
1515
1589
@@ -1542,7 +1616,7 @@ data VideoAgeGatingVideoGameRating
1542 -- ^ @m16Plus@
1616 -- ^ @m16Plus@
1543 | M17Plus
1617 | M17Plus
1544 -- ^ @m17Plus@
1618 -- ^ @m17Plus@
1545− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1619+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1546
1620
1547instance Hashable VideoAgeGatingVideoGameRating
1621instance Hashable VideoAgeGatingVideoGameRating
1548
1622
@@ -1587,7 +1661,7 @@ data ContentRatingLsfRating
1587 -- ^ @lsfSu@
1661 -- ^ @lsfSu@
1588 | LsfUnrated
1662 | LsfUnrated
1589 -- ^ @lsfUnrated@
1663 -- ^ @lsfUnrated@
1590− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1664+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1591
1665
1592instance Hashable ContentRatingLsfRating
1666instance Hashable ContentRatingLsfRating
1593
1667
@@ -1624,24 +1698,24 @@ instance ToJSON ContentRatingLsfRating where
1624
1698
1625-- | The type of ban.
1699-- | The type of ban.
1626data LiveChatBanSnippetType
1700data LiveChatBanSnippetType
1627− = Permanent
1701+ = LCBSTPermanent
1628 -- ^ @permanent@
1702 -- ^ @permanent@
1629− | Temporary
1703+ | LCBSTTemporary
1630 -- ^ @temporary@
1704 -- ^ @temporary@
1631− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1705+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1632
1706
1633instance Hashable LiveChatBanSnippetType
1707instance Hashable LiveChatBanSnippetType
1634
1708
1635instance FromHttpApiData LiveChatBanSnippetType where
1709instance FromHttpApiData LiveChatBanSnippetType where
1636 parseQueryParam = \case
1710 parseQueryParam = \case
1637− "permanent" -> Right Permanent
1711+ "permanent" -> Right LCBSTPermanent
1638− "temporary" -> Right Temporary
1712+ "temporary" -> Right LCBSTTemporary
1639 x -> Left ("Unable to parse LiveChatBanSnippetType from: " <> x)
1713 x -> Left ("Unable to parse LiveChatBanSnippetType from: " <> x)
1640
1714
1641instance ToHttpApiData LiveChatBanSnippetType where
1715instance ToHttpApiData LiveChatBanSnippetType where
1642 toQueryParam = \case
1716 toQueryParam = \case
1643− Permanent -> "permanent"
1717+ LCBSTPermanent -> "permanent"
1644− Temporary -> "temporary"
1718+ LCBSTTemporary -> "temporary"
1645
1719
1646instance FromJSON LiveChatBanSnippetType where
1720instance FromJSON LiveChatBanSnippetType where
1647 parseJSON = parseJSONText "LiveChatBanSnippetType"
1721 parseJSON = parseJSONText "LiveChatBanSnippetType"
@@ -1667,7 +1741,7 @@ data ContentRatingBfvcRating
1667 -- ^ @bfvcG@
1741 -- ^ @bfvcG@
1668 | BfvcUnrated
1742 | BfvcUnrated
1669 -- ^ @bfvcUnrated@
1743 -- ^ @bfvcUnrated@
1670− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1744+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1671
1745
1672instance Hashable ContentRatingBfvcRating
1746instance Hashable ContentRatingBfvcRating
1673
1747
@@ -1704,7 +1778,7 @@ instance ToJSON ContentRatingBfvcRating where
1704data LiveBroadcastTopicType
1778data LiveBroadcastTopicType
1705 = VideoGame
1779 = VideoGame
1706 -- ^ @videoGame@
1780 -- ^ @videoGame@
1707− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1781+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1708
1782
1709instance Hashable LiveBroadcastTopicType
1783instance Hashable LiveBroadcastTopicType
1710
1784
@@ -1741,7 +1815,7 @@ data SearchListVideoDuration
1741 | Short
1815 | Short
1742 -- ^ @short@
1816 -- ^ @short@
1743 -- Only include videos that are less than four minutes long.
1817 -- Only include videos that are less than four minutes long.
1744− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1818+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1745
1819
1746instance Hashable SearchListVideoDuration
1820instance Hashable SearchListVideoDuration
1747
1821
@@ -1780,7 +1854,7 @@ data SearchListVideoCaption
1780 | SLVCNone
1854 | SLVCNone
1781 -- ^ @none@
1855 -- ^ @none@
1782 -- Only include videos that do not have captions.
1856 -- Only include videos that do not have captions.
1783− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1857+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1784
1858
1785instance Hashable SearchListVideoCaption
1859instance Hashable SearchListVideoCaption
1786
1860
@@ -1812,7 +1886,7 @@ data VideosListMyRating
1812 | Like
1886 | Like
1813 -- ^ @like@
1887 -- ^ @like@
1814 -- Returns only video liked by the authenticated user.
1888 -- Returns only video liked by the authenticated user.
1815− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1889+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1816
1890
1817instance Hashable VideosListMyRating
1891instance Hashable VideosListMyRating
1818
1892
@@ -1845,7 +1919,7 @@ data CommentSnippetViewerRating
1845 -- ^ @none@
1919 -- ^ @none@
1846 | CSVRUnspecified
1920 | CSVRUnspecified
1847 -- ^ @unspecified@
1921 -- ^ @unspecified@
1848− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1922+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1849
1923
1850instance Hashable CommentSnippetViewerRating
1924instance Hashable CommentSnippetViewerRating
1851
1925
@@ -1890,7 +1964,7 @@ data ContentRatingFcbmRating
1890 -- ^ @fcbmU@
1964 -- ^ @fcbmU@
1891 | FcbmUnrated
1965 | FcbmUnrated
1892 -- ^ @fcbmUnrated@
1966 -- ^ @fcbmUnrated@
1893− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1967+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1894
1968
1895instance Hashable ContentRatingFcbmRating
1969instance Hashable ContentRatingFcbmRating
1896
1970
@@ -1940,7 +2014,7 @@ data LiveBroadcastsListBroadcastStatus
1940 | LBLBSUpcoming
2014 | LBLBSUpcoming
1941 -- ^ @upcoming@
2015 -- ^ @upcoming@
1942 -- Return broadcasts that have not yet started.
2016 -- Return broadcasts that have not yet started.
1943− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2017+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1944
2018
1945instance Hashable LiveBroadcastsListBroadcastStatus
2019instance Hashable LiveBroadcastsListBroadcastStatus
1946
2020
@@ -1975,9 +2049,13 @@ data ContentRatingMoctwRating
1975 -- ^ @moctwPg@
2049 -- ^ @moctwPg@
1976 | MoctwR
2050 | MoctwR
1977 -- ^ @moctwR@
2051 -- ^ @moctwR@
2052+ | MOCTWR12
2053+ -- ^ @moctwR12@
2054+ | MOCTWR15
2055+ -- ^ @moctwR15@
1978 | MoctwUnrated
2056 | MoctwUnrated
1979 -- ^ @moctwUnrated@
2057 -- ^ @moctwUnrated@
1980− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2058+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1981
2059
1982instance Hashable ContentRatingMoctwRating
2060instance Hashable ContentRatingMoctwRating
1983
2061
@@ -1987,6 +2065,8 @@ instance FromHttpApiData ContentRatingMoctwRating where
1987 "moctwP" -> Right MoctwP
2065 "moctwP" -> Right MoctwP
1988 "moctwPg" -> Right MoctwPg
2066 "moctwPg" -> Right MoctwPg
1989 "moctwR" -> Right MoctwR
2067 "moctwR" -> Right MoctwR
2068+ "moctwR12" -> Right MOCTWR12
2069+ "moctwR15" -> Right MOCTWR15
1990 "moctwUnrated" -> Right MoctwUnrated
2070 "moctwUnrated" -> Right MoctwUnrated
1991 x -> Left ("Unable to parse ContentRatingMoctwRating from: " <> x)
2071 x -> Left ("Unable to parse ContentRatingMoctwRating from: " <> x)
1992
2072
@@ -1996,6 +2076,8 @@ instance ToHttpApiData ContentRatingMoctwRating where
1996 MoctwP -> "moctwP"
2076 MoctwP -> "moctwP"
1997 MoctwPg -> "moctwPg"
2077 MoctwPg -> "moctwPg"
1998 MoctwR -> "moctwR"
2078 MoctwR -> "moctwR"
2079+ MOCTWR12 -> "moctwR12"
2080+ MOCTWR15 -> "moctwR15"
1999 MoctwUnrated -> "moctwUnrated"
2081 MoctwUnrated -> "moctwUnrated"
2000
2082
2001instance FromJSON ContentRatingMoctwRating where
2083instance FromJSON ContentRatingMoctwRating where
@@ -2023,7 +2105,7 @@ data ContentRatingBmukkRating
2023 -- ^ @bmukkAa@
2105 -- ^ @bmukkAa@
2024 | BmukkUnrated
2106 | BmukkUnrated
2025 -- ^ @bmukkUnrated@
2107 -- ^ @bmukkUnrated@
2026− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2108+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2027
2109
2028instance Hashable ContentRatingBmukkRating
2110instance Hashable ContentRatingBmukkRating
2029
2111
@@ -2075,7 +2157,7 @@ data ContentRatingIcaaRating
2075 -- ^ @icaaUnrated@
2157 -- ^ @icaaUnrated@
2076 | IcaaX
2158 | IcaaX
2077 -- ^ @icaaX@
2159 -- ^ @icaaX@
2078− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2160+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2079
2161
2080instance Hashable ContentRatingIcaaRating
2162instance Hashable ContentRatingIcaaRating
2081
2163
@@ -2132,7 +2214,7 @@ data VideoStatusRejectionReason
2132 -- ^ @uploaderAccountClosed@
2214 -- ^ @uploaderAccountClosed@
2133 | UploaderAccountSuspended
2215 | UploaderAccountSuspended
2134 -- ^ @uploaderAccountSuspended@
2216 -- ^ @uploaderAccountSuspended@
2135− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2217+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2136
2218
2137instance Hashable VideoStatusRejectionReason
2219instance Hashable VideoStatusRejectionReason
2138
2220
@@ -2181,7 +2263,7 @@ data ContentRatingCzfilmRating
2181 -- ^ @czfilmU@
2263 -- ^ @czfilmU@
2182 | CzfilmUnrated
2264 | CzfilmUnrated
2183 -- ^ @czfilmUnrated@
2265 -- ^ @czfilmUnrated@
2184− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2266+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2185
2267
2186instance Hashable ContentRatingCzfilmRating
2268instance Hashable ContentRatingCzfilmRating
2187
2269
@@ -2223,7 +2305,7 @@ data ContentRatingRussiaRating
2223 -- ^ @russia6@
2305 -- ^ @russia6@
2224 | RussiaUnrated
2306 | RussiaUnrated
2225 -- ^ @russiaUnrated@
2307 -- ^ @russiaUnrated@
2226− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2308+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2227
2309
2228instance Hashable ContentRatingRussiaRating
2310instance Hashable ContentRatingRussiaRating
2229
2311
@@ -2262,7 +2344,7 @@ data ContentRatingCicfRating
2262 -- ^ @cicfKtEa@
2344 -- ^ @cicfKtEa@
2263 | CicfUnrated
2345 | CicfUnrated
2264 -- ^ @cicfUnrated@
2346 -- ^ @cicfUnrated@
2265− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2347+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2266
2348
2267instance Hashable ContentRatingCicfRating
2349instance Hashable ContentRatingCicfRating
2268
2350
@@ -2304,7 +2386,7 @@ data ContentRatingFmocRating
2304 -- ^ @fmocU@
2386 -- ^ @fmocU@
2305 | FmocUnrated
2387 | FmocUnrated
2306 -- ^ @fmocUnrated@
2388 -- ^ @fmocUnrated@
2307− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2389+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2308
2390
2309instance Hashable ContentRatingFmocRating
2391instance Hashable ContentRatingFmocRating
2310
2392
@@ -2353,7 +2435,7 @@ data LiveBroadcastsTransitionBroadcastStatus
2353 -- monitor stream. Note that you can only transition a broadcast to the
2435 -- monitor stream. Note that you can only transition a broadcast to the
2354 -- testing state if its contentDetails.monitorStream.enableMonitorStream
2436 -- testing state if its contentDetails.monitorStream.enableMonitorStream
2355 -- property is set to true.
2437 -- property is set to true.
2356− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2438+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2357
2439
2358instance Hashable LiveBroadcastsTransitionBroadcastStatus
2440instance Hashable LiveBroadcastsTransitionBroadcastStatus
2359
2441
@@ -2394,7 +2476,7 @@ data ContentRatingNbcRating
2394 -- ^ @nbcPu@
2476 -- ^ @nbcPu@
2395 | NbcUnrated
2477 | NbcUnrated
2396 -- ^ @nbcUnrated@
2478 -- ^ @nbcUnrated@
2397− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2479+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2398
2480
2399instance Hashable ContentRatingNbcRating
2481instance Hashable ContentRatingNbcRating
2400
2482
@@ -2435,7 +2517,7 @@ data LiveBroadcastStatusLiveBroadcastPriority
2435 -- ^ @low@
2517 -- ^ @low@
2436 | Normal
2518 | Normal
2437 -- ^ @normal@
2519 -- ^ @normal@
2438− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2520+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2439
2521
2440instance Hashable LiveBroadcastStatusLiveBroadcastPriority
2522instance Hashable LiveBroadcastStatusLiveBroadcastPriority
2441
2523
@@ -2470,7 +2552,7 @@ data LiveStreamHealthStatusStatus
2470 -- ^ @ok@
2552 -- ^ @ok@
2471 | Revoked
2553 | Revoked
2472 -- ^ @revoked@
2554 -- ^ @revoked@
2473− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2555+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2474
2556
2475instance Hashable LiveStreamHealthStatusStatus
2557instance Hashable LiveStreamHealthStatusStatus
2476
2558
@@ -2506,7 +2588,7 @@ data VideoRatingRating
2506 -- ^ @none@
2588 -- ^ @none@
2507 | VRRUnspecified
2589 | VRRUnspecified
2508 -- ^ @unspecified@
2590 -- ^ @unspecified@
2509− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2591+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2510
2592
2511instance Hashable VideoRatingRating
2593instance Hashable VideoRatingRating
2512
2594
@@ -2546,7 +2628,7 @@ data VideoSuggestionsProcessingWarningsItem
2546 -- ^ @unknownContainer@
2628 -- ^ @unknownContainer@
2547 | UnknownVideoCodec
2629 | UnknownVideoCodec
2548 -- ^ @unknownVideoCodec@
2630 -- ^ @unknownVideoCodec@
2549− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2631+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2550
2632
2551instance Hashable VideoSuggestionsProcessingWarningsItem
2633instance Hashable VideoSuggestionsProcessingWarningsItem
2552
2634
@@ -2587,7 +2669,7 @@ data InvideoPositionCornerPosition
2587 -- ^ @topLeft@
2669 -- ^ @topLeft@
2588 | TopRight
2670 | TopRight
2589 -- ^ @topRight@
2671 -- ^ @topRight@
2590− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2672+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2591
2673
2592instance Hashable InvideoPositionCornerPosition
2674instance Hashable InvideoPositionCornerPosition
2593
2675
@@ -2622,7 +2704,7 @@ data ChannelStatusLongUploadsStatus
2622 -- ^ @eligible@
2704 -- ^ @eligible@
2623 | LongUploadsUnspecified
2705 | LongUploadsUnspecified
2624 -- ^ @longUploadsUnspecified@
2706 -- ^ @longUploadsUnspecified@
2625− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2707+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2626
2708
2627instance Hashable ChannelStatusLongUploadsStatus
2709instance Hashable ChannelStatusLongUploadsStatus
2628
2710
@@ -2666,7 +2748,7 @@ data ContentRatingCscfRating
2666 -- ^ @cscfAl@
2748 -- ^ @cscfAl@
2667 | CscfUnrated
2749 | CscfUnrated
2668 -- ^ @cscfUnrated@
2750 -- ^ @cscfUnrated@
2669− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2751+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2670
2752
2671instance Hashable ContentRatingCscfRating
2753instance Hashable ContentRatingCscfRating
2672
2754
@@ -2707,7 +2789,7 @@ data LiveBroadcastStatusRecordingStatus
2707 -- ^ @recorded@
2789 -- ^ @recorded@
2708 | Recording
2790 | Recording
2709 -- ^ @recording@
2791 -- ^ @recording@
2710− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2792+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2711
2793
2712instance Hashable LiveBroadcastStatusRecordingStatus
2794instance Hashable LiveBroadcastStatusRecordingStatus
2713
2795
@@ -2743,7 +2825,7 @@ data VideoFileDetailsVideoStreamRotation
2743 -- ^ @other@
2825 -- ^ @other@
2744 | VFDVSRUpsideDown
2826 | VFDVSRUpsideDown
2745 -- ^ @upsideDown@
2827 -- ^ @upsideDown@
2746− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2828+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2747
2829
2748instance Hashable VideoFileDetailsVideoStreamRotation
2830instance Hashable VideoFileDetailsVideoStreamRotation
2749
2831
@@ -2787,7 +2869,7 @@ data ContentRatingRtcRating
2787 -- ^ @rtcD@
2869 -- ^ @rtcD@
2788 | RtcUnrated
2870 | RtcUnrated
2789 -- ^ @rtcUnrated@
2871 -- ^ @rtcUnrated@
2790− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2872+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2791
2873
2792instance Hashable ContentRatingRtcRating
2874instance Hashable ContentRatingRtcRating
2793
2875
@@ -2838,7 +2920,7 @@ data CommentThreadsListModerationStatus
2838 -- Retrieve threads of published comments. This is the default value. A
2920 -- Retrieve threads of published comments. This is the default value. A
2839 -- comment thread can be included in the response if its top-level comment
2921 -- comment thread can be included in the response if its top-level comment
2840 -- has been published.
2922 -- has been published.
2841− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2923+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2842
2924
2843instance Hashable CommentThreadsListModerationStatus
2925instance Hashable CommentThreadsListModerationStatus
2844
2926
@@ -2877,7 +2959,7 @@ data ContentRatingSmaisRating
2877 -- ^ @smaisL@
2959 -- ^ @smaisL@
2878 | SmaisUnrated
2960 | SmaisUnrated
2879 -- ^ @smaisUnrated@
2961 -- ^ @smaisUnrated@
2880− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2962+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2881
2963
2882instance Hashable ContentRatingSmaisRating
2964instance Hashable ContentRatingSmaisRating
2883
2965
@@ -2912,7 +2994,7 @@ instance ToJSON ContentRatingSmaisRating where
2912data ContentRatingYtRating
2994data ContentRatingYtRating
2913 = YtAgeRestricted
2995 = YtAgeRestricted
2914 -- ^ @ytAgeRestricted@
2996 -- ^ @ytAgeRestricted@
2915− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2997+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2916
2998
2917instance Hashable ContentRatingYtRating
2999instance Hashable ContentRatingYtRating
2918
3000
@@ -2937,7 +3019,7 @@ data VideoContentDetailsCaption
2937 -- ^ @false@
3019 -- ^ @false@
2938 | True'
3020 | True'
2939 -- ^ @true@
3021 -- ^ @true@
2940− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3022+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2941
3023
2942instance Hashable VideoContentDetailsCaption
3024instance Hashable VideoContentDetailsCaption
2943
3025
@@ -2970,7 +3052,7 @@ data SubscriptionsListOrder
2970 | SLOUnread
3052 | SLOUnread
2971 -- ^ @unread@
3053 -- ^ @unread@
2972 -- Sort by order of activity.
3054 -- Sort by order of activity.
2973− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3055+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2974
3056
2975instance Hashable SubscriptionsListOrder
3057instance Hashable SubscriptionsListOrder
2976
3058
@@ -3011,7 +3093,7 @@ data ContentRatingBbfcRating
3011 -- ^ @bbfcU@
3093 -- ^ @bbfcU@
3012 | BbfcUnrated
3094 | BbfcUnrated
3013 -- ^ @bbfcUnrated@
3095 -- ^ @bbfcUnrated@
3014− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3096+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3015
3097
3016instance Hashable ContentRatingBbfcRating
3098instance Hashable ContentRatingBbfcRating
3017
3099
@@ -3062,7 +3144,7 @@ data ContentRatingTvpgRating
3062 -- ^ @tvpgY7@
3144 -- ^ @tvpgY7@
3063 | TvpgY7Fv
3145 | TvpgY7Fv
3064 -- ^ @tvpgY7Fv@
3146 -- ^ @tvpgY7Fv@
3065− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3147+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3066
3148
3067instance Hashable ContentRatingTvpgRating
3149instance Hashable ContentRatingTvpgRating
3068
3150
@@ -3104,7 +3186,7 @@ data CommentsListTextFormat
3104 | PlainText
3186 | PlainText
3105 -- ^ @plainText@
3187 -- ^ @plainText@
3106 -- Returns the comments in plain text format.
3188 -- Returns the comments in plain text format.
3107− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3189+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3108
3190
3109instance Hashable CommentsListTextFormat
3191instance Hashable CommentsListTextFormat
3110
3192
@@ -3137,7 +3219,7 @@ data VideosRateRating
3137 -- ^ @none@
3219 -- ^ @none@
3138 -- Removes any rating that the authenticated user had previously set for
3220 -- Removes any rating that the authenticated user had previously set for
3139 -- the video.
3221 -- the video.
3140− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3222+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3141
3223
3142instance Hashable VideosRateRating
3224instance Hashable VideosRateRating
3143
3225
@@ -3160,6 +3242,33 @@ instance FromJSON VideosRateRating where
3160instance ToJSON VideosRateRating where
3242instance ToJSON VideosRateRating where
3161 toJSON = toJSONText
3243 toJSON = toJSONText
3162
3244
3245+-- | The projection format of this broadcast. This defaults to rectangular.
3246+data LiveBroadcastContentDetailsProjection
3247+ = LBCDP360
3248+ -- ^ @360@
3249+ | LBCDPRectangular
3250+ -- ^ @rectangular@
3251+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3252+
3253+instance Hashable LiveBroadcastContentDetailsProjection
3254+
3255+instance FromHttpApiData LiveBroadcastContentDetailsProjection where
3256+ parseQueryParam = \case
3257+ "360" -> Right LBCDP360
3258+ "rectangular" -> Right LBCDPRectangular
3259+ x -> Left ("Unable to parse LiveBroadcastContentDetailsProjection from: " <> x)
3260+
3261+instance ToHttpApiData LiveBroadcastContentDetailsProjection where
3262+ toQueryParam = \case
3263+ LBCDP360 -> "360"
3264+ LBCDPRectangular -> "rectangular"
3265+
3266+instance FromJSON LiveBroadcastContentDetailsProjection where
3267+ parseJSON = parseJSONText "LiveBroadcastContentDetailsProjection"
3268+
3269+instance ToJSON LiveBroadcastContentDetailsProjection where
3270+ toJSON = toJSONText
3271+
3163-- | The caption track\'s status.
3272-- | The caption track\'s status.
3164data CaptionSnippetStatus
3273data CaptionSnippetStatus
3165 = Failed
3274 = Failed
@@ -3168,7 +3277,7 @@ data CaptionSnippetStatus
3168 -- ^ @serving@
3277 -- ^ @serving@
3169 | Syncing
3278 | Syncing
3170 -- ^ @syncing@
3279 -- ^ @syncing@
3171− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3280+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3172
3281
3173instance Hashable CaptionSnippetStatus
3282instance Hashable CaptionSnippetStatus
3174
3283
@@ -3203,7 +3312,7 @@ data ContentRatingSkfilmRating
3203 -- ^ @skfilmP8@
3312 -- ^ @skfilmP8@
3204 | SkfilmUnrated
3313 | SkfilmUnrated
3205 -- ^ @skfilmUnrated@
3314 -- ^ @skfilmUnrated@
3206− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3315+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3207
3316
3208instance Hashable ContentRatingSkfilmRating
3317instance Hashable ContentRatingSkfilmRating
3209
3318
@@ -3266,7 +3375,7 @@ data ChannelSectionSnippetType
3266 -- ^ @subscriptions@
3375 -- ^ @subscriptions@
3267 | UpcomingEvents
3376 | UpcomingEvents
3268 -- ^ @upcomingEvents@
3377 -- ^ @upcomingEvents@
3269− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3378+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3270
3379
3271instance Hashable ChannelSectionSnippetType
3380instance Hashable ChannelSectionSnippetType
3272
3381
@@ -3330,7 +3439,7 @@ data LiveBroadcastsListBroadcastType
3330 | Persistent
3439 | Persistent
3331 -- ^ @persistent@
3440 -- ^ @persistent@
3332 -- Return only persistent broadcasts.
3441 -- Return only persistent broadcasts.
3333− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3442+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3334
3443
3335instance Hashable LiveBroadcastsListBroadcastType
3444instance Hashable LiveBroadcastsListBroadcastType
3336
3445
@@ -3364,7 +3473,7 @@ data VideoProcessingDetailsProcessingStatus
3364 -- ^ @succeeded@
3473 -- ^ @succeeded@
3365 | VPDPSTerminated
3474 | VPDPSTerminated
3366 -- ^ @terminated@
3475 -- ^ @terminated@
3367− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3476+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3368
3477
3369instance Hashable VideoProcessingDetailsProcessingStatus
3478instance Hashable VideoProcessingDetailsProcessingStatus
3370
3479
@@ -3396,7 +3505,7 @@ data ActivityContentDetailsPromotedItemCtaType
3396 -- ^ @unspecified@
3505 -- ^ @unspecified@
3397 | VisitAdvertiserSite
3506 | VisitAdvertiserSite
3398 -- ^ @visitAdvertiserSite@
3507 -- ^ @visitAdvertiserSite@
3399− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3508+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3400
3509
3401instance Hashable ActivityContentDetailsPromotedItemCtaType
3510instance Hashable ActivityContentDetailsPromotedItemCtaType
3402
3511
@@ -3426,7 +3535,7 @@ data SearchListChannelType
3426 | SLCTShow
3535 | SLCTShow
3427 -- ^ @show@
3536 -- ^ @show@
3428 -- Only retrieve shows.
3537 -- Only retrieve shows.
3429− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3538+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3430
3539
3431instance Hashable SearchListChannelType
3540instance Hashable SearchListChannelType
3432
3541
@@ -3462,7 +3571,7 @@ data ContentRatingKmrbRating
3462 -- ^ @kmrbTeenr@
3571 -- ^ @kmrbTeenr@
3463 | KmrbUnrated
3572 | KmrbUnrated
3464 -- ^ @kmrbUnrated@
3573 -- ^ @kmrbUnrated@
3465− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3574+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3466
3575
3467instance Hashable ContentRatingKmrbRating
3576instance Hashable ContentRatingKmrbRating
3468
3577
@@ -3514,7 +3623,7 @@ data ContentRatingOflcRating
3514 -- ^ @oflcRp16@
3623 -- ^ @oflcRp16@
3515 | OflcUnrated
3624 | OflcUnrated
3516 -- ^ @oflcUnrated@
3625 -- ^ @oflcUnrated@
3517− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3626+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3518
3627
3519instance Hashable ContentRatingOflcRating
3628instance Hashable ContentRatingOflcRating
3520
3629
@@ -3567,7 +3676,7 @@ data ContentRatingCNCRating
3567 -- ^ @cncT@
3676 -- ^ @cncT@
3568 | CNCUnrated
3677 | CNCUnrated
3569 -- ^ @cncUnrated@
3678 -- ^ @cncUnrated@
3570− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3679+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3571
3680
3572instance Hashable ContentRatingCNCRating
3681instance Hashable ContentRatingCNCRating
3573
3682
@@ -3619,7 +3728,7 @@ data ContentRatingEcbmctRating
3619 -- ^ @ecbmctG@
3728 -- ^ @ecbmctG@
3620 | EcbmctUnrated
3729 | EcbmctUnrated
3621 -- ^ @ecbmctUnrated@
3730 -- ^ @ecbmctUnrated@
3622− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3731+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3623
3732
3624instance Hashable ContentRatingEcbmctRating
3733instance Hashable ContentRatingEcbmctRating
3625
3734
@@ -3654,6 +3763,33 @@ instance FromJSON ContentRatingEcbmctRating where
3654instance ToJSON ContentRatingEcbmctRating where
3763instance ToJSON ContentRatingEcbmctRating where
3655 toJSON = toJSONText
3764 toJSON = toJSONText
3656
3765
3766+-- | Specifies the projection format of the video.
3767+data VideoContentDetailsProjection
3768+ = VCDP360
3769+ -- ^ @360@
3770+ | VCDPRectangular
3771+ -- ^ @rectangular@
3772+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3773+
3774+instance Hashable VideoContentDetailsProjection
3775+
3776+instance FromHttpApiData VideoContentDetailsProjection where
3777+ parseQueryParam = \case
3778+ "360" -> Right VCDP360
3779+ "rectangular" -> Right VCDPRectangular
3780+ x -> Left ("Unable to parse VideoContentDetailsProjection from: " <> x)
3781+
3782+instance ToHttpApiData VideoContentDetailsProjection where
3783+ toQueryParam = \case
3784+ VCDP360 -> "360"
3785+ VCDPRectangular -> "rectangular"
3786+
3787+instance FromJSON VideoContentDetailsProjection where
3788+ parseJSON = parseJSONText "VideoContentDetailsProjection"
3789+
3790+instance ToJSON VideoContentDetailsProjection where
3791+ toJSON = toJSONText
3792+
3657-- | The video\'s rating in Greece.
3793-- | The video\'s rating in Greece.
3658data ContentRatingGrfilmRating
3794data ContentRatingGrfilmRating
3659 = GrfilmE
3795 = GrfilmE
@@ -3666,7 +3802,7 @@ data ContentRatingGrfilmRating
3666 -- ^ @grfilmK17@
3802 -- ^ @grfilmK17@
3667 | GrfilmUnrated
3803 | GrfilmUnrated
3668 -- ^ @grfilmUnrated@
3804 -- ^ @grfilmUnrated@
3669− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3805+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3670
3806
3671instance Hashable ContentRatingGrfilmRating
3807instance Hashable ContentRatingGrfilmRating
3672
3808
@@ -3705,7 +3841,7 @@ data CommentThreadsListOrder
3705 | CTLOTime
3841 | CTLOTime
3706 -- ^ @time@
3842 -- ^ @time@
3707 -- Order by time.
3843 -- Order by time.
3708− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3844+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3709
3845
3710instance Hashable CommentThreadsListOrder
3846instance Hashable CommentThreadsListOrder
3711
3847
@@ -3738,7 +3874,7 @@ data ContentRatingIlfilmRating
3738 -- ^ @ilfilmAa@
3874 -- ^ @ilfilmAa@
3739 | IlfilmUnrated
3875 | IlfilmUnrated
3740 -- ^ @ilfilmUnrated@
3876 -- ^ @ilfilmUnrated@
3741− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3877+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3742
3878
3743instance Hashable ContentRatingIlfilmRating
3879instance Hashable ContentRatingIlfilmRating
3744
3880
@@ -3779,7 +3915,7 @@ data ContentRatingNbcplRating
3779 -- ^ @nbcplIv@
3915 -- ^ @nbcplIv@
3780 | NbcplUnrated
3916 | NbcplUnrated
3781 -- ^ @nbcplUnrated@
3917 -- ^ @nbcplUnrated@
3782− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3918+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3783
3919
3784instance Hashable ContentRatingNbcplRating
3920instance Hashable ContentRatingNbcplRating
3785
3921
@@ -3820,7 +3956,7 @@ data VideoStatusUploadStatus
3820 -- ^ @rejected@
3956 -- ^ @rejected@
3821 | VSUSUploaded
3957 | VSUSUploaded
3822 -- ^ @uploaded@
3958 -- ^ @uploaded@
3823− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3959+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3824
3960
3825instance Hashable VideoStatusUploadStatus
3961instance Hashable VideoStatusUploadStatus
3826
3962
@@ -3859,7 +3995,7 @@ data ContentRatingRteRating
3859 -- ^ @rtePs@
3995 -- ^ @rtePs@
3860 | RteUnrated
3996 | RteUnrated
3861 -- ^ @rteUnrated@
3997 -- ^ @rteUnrated@
3862− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
3998+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3863
3999
3864instance Hashable ContentRatingRteRating
4000instance Hashable ContentRatingRteRating
3865
4001
@@ -3895,7 +4031,7 @@ data CommentThreadsListTextFormat
3895 | CTLTFPlainText
4031 | CTLTFPlainText
3896 -- ^ @plainText@
4032 -- ^ @plainText@
3897 -- Returns the comments in plain text format.
4033 -- Returns the comments in plain text format.
3898− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4034+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3899
4035
3900instance Hashable CommentThreadsListTextFormat
4036instance Hashable CommentThreadsListTextFormat
3901
4037
@@ -3937,7 +4073,7 @@ data ContentRatingIfcoRating
3937 -- ^ @ifcoPg@
4073 -- ^ @ifcoPg@
3938 | IfcoUnrated
4074 | IfcoUnrated
3939 -- ^ @ifcoUnrated@
4075 -- ^ @ifcoUnrated@
3940− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4076+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3941
4077
3942instance Hashable ContentRatingIfcoRating
4078instance Hashable ContentRatingIfcoRating
3943
4079
@@ -3989,7 +4125,7 @@ data CommentsSetModerationStatusModerationStatus
3989 -- comment if you still know its ID. If you were to change the moderation
4125 -- comment if you still know its ID. If you were to change the moderation
3990 -- status of a rejected comment, the comment replies would subsequently be
4126 -- status of a rejected comment, the comment replies would subsequently be
3991 -- discoverable again as well.
4127 -- discoverable again as well.
3992− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4128+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3993
4129
3994instance Hashable CommentsSetModerationStatusModerationStatus
4130instance Hashable CommentsSetModerationStatusModerationStatus
3995
4131
@@ -4022,7 +4158,7 @@ data ActivityContentDetailsSocialType
4022 -- ^ @twitter@
4158 -- ^ @twitter@
4023 | ACDSTUnspecified
4159 | ACDSTUnspecified
4024 -- ^ @unspecified@
4160 -- ^ @unspecified@
4025− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4161+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4026
4162
4027instance Hashable ActivityContentDetailsSocialType
4163instance Hashable ActivityContentDetailsSocialType
4028
4164
@@ -4067,7 +4203,7 @@ data ContentRatingMedietilsynetRating
4067 -- ^ @medietilsynetA@
4203 -- ^ @medietilsynetA@
4068 | MedietilsynetUnrated
4204 | MedietilsynetUnrated
4069 -- ^ @medietilsynetUnrated@
4205 -- ^ @medietilsynetUnrated@
4070− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4206+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4071
4207
4072instance Hashable ContentRatingMedietilsynetRating
4208instance Hashable ContentRatingMedietilsynetRating
4073
4209
@@ -4110,7 +4246,7 @@ data PlayListItemStatusPrivacyStatus
4110 -- ^ @public@
4246 -- ^ @public@
4111 | PLISPSUnListed
4247 | PLISPSUnListed
4112 -- ^ @unlisted@
4248 -- ^ @unlisted@
4113− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4249+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4114
4250
4115instance Hashable PlayListItemStatusPrivacyStatus
4251instance Hashable PlayListItemStatusPrivacyStatus
4116
4252
@@ -4140,7 +4276,7 @@ data SubscriptionContentDetailsActivityType
4140 -- ^ @all@
4276 -- ^ @all@
4141 | SCDATUploads
4277 | SCDATUploads
4142 -- ^ @uploads@
4278 -- ^ @uploads@
4143− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4279+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4144
4280
4145instance Hashable SubscriptionContentDetailsActivityType
4281instance Hashable SubscriptionContentDetailsActivityType
4146
4282
@@ -4185,7 +4321,7 @@ data ContentRatingFpbRating
4185 -- ^ @fpbX18@
4321 -- ^ @fpbX18@
4186 | FpbXx
4322 | FpbXx
4187 -- ^ @fpbXx@
4323 -- ^ @fpbXx@
4188− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4324+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4189
4325
4190instance Hashable ContentRatingFpbRating
4326instance Hashable ContentRatingFpbRating
4191
4327
@@ -4231,7 +4367,7 @@ data LiveBroadcastContentDetailsClosedCaptionsType
4231 -- ^ @closedCaptionsEmbedded@
4367 -- ^ @closedCaptionsEmbedded@
4232 | ClosedCaptionsHTTPPost
4368 | ClosedCaptionsHTTPPost
4233 -- ^ @closedCaptionsHttpPost@
4369 -- ^ @closedCaptionsHttpPost@
4234− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4370+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4235
4371
4236instance Hashable LiveBroadcastContentDetailsClosedCaptionsType
4372instance Hashable LiveBroadcastContentDetailsClosedCaptionsType
4237
4373
@@ -4268,7 +4404,7 @@ data SearchListVideoDimension
4268 -- ^ @any@
4404 -- ^ @any@
4269 -- Include both 3D and non-3D videos in returned results. This is the
4405 -- Include both 3D and non-3D videos in returned results. This is the
4270 -- default value.
4406 -- default value.
4271− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4407+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4272
4408
4273instance Hashable SearchListVideoDimension
4409instance Hashable SearchListVideoDimension
4274
4410
@@ -4304,7 +4440,7 @@ data ContentRatingNkclvRating
4304 -- ^ @nkclvU@
4440 -- ^ @nkclvU@
4305 | NkclvUnrated
4441 | NkclvUnrated
4306 -- ^ @nkclvUnrated@
4442 -- ^ @nkclvUnrated@
4307− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4443+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4308
4444
4309instance Hashable ContentRatingNkclvRating
4445instance Hashable ContentRatingNkclvRating
4310
4446
@@ -4339,7 +4475,7 @@ data SponsorsListFilter
4339 | SLFNewest
4475 | SLFNewest
4340 -- ^ @newest@
4476 -- ^ @newest@
4341 -- Return the most recent sponsors, from newest to oldest.
4477 -- Return the most recent sponsors, from newest to oldest.
4342− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4478+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4343
4479
4344instance Hashable SponsorsListFilter
4480instance Hashable SponsorsListFilter
4345
4481
@@ -4373,7 +4509,7 @@ data SearchListVideoType
4373 | SLVTMovie
4509 | SLVTMovie
4374 -- ^ @movie@
4510 -- ^ @movie@
4375 -- Only retrieve movies.
4511 -- Only retrieve movies.
4376− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4512+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4377
4513
4378instance Hashable SearchListVideoType
4514instance Hashable SearchListVideoType
4379
4515
@@ -4411,7 +4547,7 @@ data ContentRatingMibacRating
4411 -- ^ @mibacVm14@
4547 -- ^ @mibacVm14@
4412 | MIBACVM18
4548 | MIBACVM18
4413 -- ^ @mibacVm18@
4549 -- ^ @mibacVm18@
4414− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4550+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4415
4551
4416instance Hashable ContentRatingMibacRating
4552instance Hashable ContentRatingMibacRating
4417
4553
@@ -4454,7 +4590,7 @@ data ContentRatingResorteviolenciaRating
4454 -- ^ @resorteviolenciaE@
4590 -- ^ @resorteviolenciaE@
4455 | ResorteviolenciaUnrated
4591 | ResorteviolenciaUnrated
4456 -- ^ @resorteviolenciaUnrated@
4592 -- ^ @resorteviolenciaUnrated@
4457− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4593+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4458
4594
4459instance Hashable ContentRatingResorteviolenciaRating
4595instance Hashable ContentRatingResorteviolenciaRating
4460
4596
@@ -4493,7 +4629,7 @@ data ContentRatingEgfilmRating
4493 -- ^ @egfilmGn@
4629 -- ^ @egfilmGn@
4494 | EgfilmUnrated
4630 | EgfilmUnrated
4495 -- ^ @egfilmUnrated@
4631 -- ^ @egfilmUnrated@
4496− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4632+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4497
4633
4498instance Hashable ContentRatingEgfilmRating
4634instance Hashable ContentRatingEgfilmRating
4499
4635
@@ -4531,7 +4667,7 @@ data ContentRatingMccypRating
4531 -- ^ @mccypA@
4667 -- ^ @mccypA@
4532 | MccypUnrated
4668 | MccypUnrated
4533 -- ^ @mccypUnrated@
4669 -- ^ @mccypUnrated@
4534− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4670+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4535
4671
4536instance Hashable ContentRatingMccypRating
4672instance Hashable ContentRatingMccypRating
4537
4673
@@ -4566,7 +4702,7 @@ data PlayListStatusPrivacyStatus
4566 -- ^ @public@
4702 -- ^ @public@
4567 | PLSPSUnListed
4703 | PLSPSUnListed
4568 -- ^ @unlisted@
4704 -- ^ @unlisted@
4569− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4705+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4570
4706
4571instance Hashable PlayListStatusPrivacyStatus
4707instance Hashable PlayListStatusPrivacyStatus
4572
4708
@@ -4606,7 +4742,7 @@ data ContentRatingCsaRating
4606 -- ^ @csaT@
4742 -- ^ @csaT@
4607 | CsaUnrated
4743 | CsaUnrated
4608 -- ^ @csaUnrated@
4744 -- ^ @csaUnrated@
4609− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4745+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4610
4746
4611instance Hashable ContentRatingCsaRating
4747instance Hashable ContentRatingCsaRating
4612
4748
@@ -4645,7 +4781,7 @@ data ChannelSectionSnippetStyle
4645 -- ^ @horizontalRow@
4781 -- ^ @horizontalRow@
4646 | VerticalList
4782 | VerticalList
4647 -- ^ @verticalList@
4783 -- ^ @verticalList@
4648− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4784+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4649
4785
4650instance Hashable ChannelSectionSnippetStyle
4786instance Hashable ChannelSectionSnippetStyle
4651
4787
@@ -4680,7 +4816,7 @@ data ContentRatingEirinRating
4680 -- ^ @eirinR18plus@
4816 -- ^ @eirinR18plus@
4681 | EirinUnrated
4817 | EirinUnrated
4682 -- ^ @eirinUnrated@
4818 -- ^ @eirinUnrated@
4683− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4819+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4684
4820
4685instance Hashable ContentRatingEirinRating
4821instance Hashable ContentRatingEirinRating
4686
4822
@@ -4712,7 +4848,7 @@ data VideoSuggestionsProcessingHintsItem
4712 -- ^ @nonStreamableMov@
4848 -- ^ @nonStreamableMov@
4713 | SendBestQualityVideo
4849 | SendBestQualityVideo
4714 -- ^ @sendBestQualityVideo@
4850 -- ^ @sendBestQualityVideo@
4715− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4851+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4716
4852
4717instance Hashable VideoSuggestionsProcessingHintsItem
4853instance Hashable VideoSuggestionsProcessingHintsItem
4718
4854
@@ -4747,7 +4883,7 @@ data ContentRatingNfrcRating
4747 -- ^ @nfrcUnrated@
4883 -- ^ @nfrcUnrated@
4748 | NfrcX
4884 | NfrcX
4749 -- ^ @nfrcX@
4885 -- ^ @nfrcX@
4750− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4886+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4751
4887
4752instance Hashable ContentRatingNfrcRating
4888instance Hashable ContentRatingNfrcRating
4753
4889
@@ -4800,7 +4936,7 @@ data ActivitySnippetType
4800 -- ^ @subscription@
4936 -- ^ @subscription@
4801 | ASTUpload
4937 | ASTUpload
4802 -- ^ @upload@
4938 -- ^ @upload@
4803− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4939+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4804
4940
4805instance Hashable ActivitySnippetType
4941instance Hashable ActivitySnippetType
4806
4942
@@ -4859,7 +4995,7 @@ data ContentRatingMocRating
4859 -- ^ @mocUnrated@
4995 -- ^ @mocUnrated@
4860 | MocX
4996 | MocX
4861 -- ^ @mocX@
4997 -- ^ @mocX@
4862− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
4998+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4863
4999
4864instance Hashable ContentRatingMocRating
5000instance Hashable ContentRatingMocRating
4865
5001
@@ -4904,7 +5040,7 @@ data SearchListVideoEmbeddable
4904 | SLVETrue'
5040 | SLVETrue'
4905 -- ^ @true@
5041 -- ^ @true@
4906 -- Only retrieve embeddable videos.
5042 -- Only retrieve embeddable videos.
4907− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5043+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4908
5044
4909instance Hashable SearchListVideoEmbeddable
5045instance Hashable SearchListVideoEmbeddable
4910
5046
@@ -4938,7 +5074,7 @@ data SearchListEventType
4938 | SLETUpcoming
5074 | SLETUpcoming
4939 -- ^ @upcoming@
5075 -- ^ @upcoming@
4940 -- Only include upcoming broadcasts.
5076 -- Only include upcoming broadcasts.
4941− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5077+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4942
5078
4943instance Hashable SearchListEventType
5079instance Hashable SearchListEventType
4944
5080
@@ -4971,7 +5107,7 @@ data ActivityContentDetailsRecommendationReason
4971 -- ^ @videoLiked@
5107 -- ^ @videoLiked@
4972 | ACDRRVideoWatched
5108 | ACDRRVideoWatched
4973 -- ^ @videoWatched@
5109 -- ^ @videoWatched@
4974− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5110+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4975
5111
4976instance Hashable ActivityContentDetailsRecommendationReason
5112instance Hashable ActivityContentDetailsRecommendationReason
4977
5113
@@ -5012,7 +5148,7 @@ data ContentRatingKijkwijzerRating
5012 -- ^ @kijkwijzerAl@
5148 -- ^ @kijkwijzerAl@
5013 | KijkwijzerUnrated
5149 | KijkwijzerUnrated
5014 -- ^ @kijkwijzerUnrated@
5150 -- ^ @kijkwijzerUnrated@
5015− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5151+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5016
5152
5017instance Hashable ContentRatingKijkwijzerRating
5153instance Hashable ContentRatingKijkwijzerRating
5018
5154
@@ -5056,7 +5192,7 @@ data VideoSuggestionsProcessingErrorsItem
5056 -- ^ @notAVideoFile@
5192 -- ^ @notAVideoFile@
5057 | ProjectFile
5193 | ProjectFile
5058 -- ^ @projectFile@
5194 -- ^ @projectFile@
5059− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5195+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5060
5196
5061instance Hashable VideoSuggestionsProcessingErrorsItem
5197instance Hashable VideoSuggestionsProcessingErrorsItem
5062
5198
@@ -5103,7 +5239,7 @@ data VideoFileDetailsFileType
5103 -- ^ @project@
5239 -- ^ @project@
5104 | VFDFTVideo
5240 | VFDFTVideo
5105 -- ^ @video@
5241 -- ^ @video@
5106− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5242+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5107
5243
5108instance Hashable VideoFileDetailsFileType
5244instance Hashable VideoFileDetailsFileType
5109
5245
@@ -5151,7 +5287,7 @@ data ContentRatingMtrcbRating
5151 -- ^ @mtrcbUnrated@
5287 -- ^ @mtrcbUnrated@
5152 | MtrcbX
5288 | MtrcbX
5153 -- ^ @mtrcbX@
5289 -- ^ @mtrcbX@
5154− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5290+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5155
5291
5156instance Hashable ContentRatingMtrcbRating
5292instance Hashable ContentRatingMtrcbRating
5157
5293
@@ -5197,7 +5333,7 @@ data ContentRatingFcoRating
5197 -- ^ @fcoIii@
5333 -- ^ @fcoIii@
5198 | FcoUnrated
5334 | FcoUnrated
5199 -- ^ @fcoUnrated@
5335 -- ^ @fcoUnrated@
5200− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5336+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5201
5337
5202instance Hashable ContentRatingFcoRating
5338instance Hashable ContentRatingFcoRating
5203
5339
@@ -5226,6 +5362,33 @@ instance FromJSON ContentRatingFcoRating where
5226instance ToJSON ContentRatingFcoRating where
5362instance ToJSON ContentRatingFcoRating where
5227 toJSON = toJSONText
5363 toJSON = toJSONText
5228
5364
5365+-- | The frame rate of the inbound video data.
5366+data CdnSettingsFrameRate
5367+ = CSFR30fps
5368+ -- ^ @30fps@
5369+ | CSFR60fps
5370+ -- ^ @60fps@
5371+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5372+
5373+instance Hashable CdnSettingsFrameRate
5374+
5375+instance FromHttpApiData CdnSettingsFrameRate where
5376+ parseQueryParam = \case
5377+ "30fps" -> Right CSFR30fps
5378+ "60fps" -> Right CSFR60fps
5379+ x -> Left ("Unable to parse CdnSettingsFrameRate from: " <> x)
5380+
5381+instance ToHttpApiData CdnSettingsFrameRate where
5382+ toQueryParam = \case
5383+ CSFR30fps -> "30fps"
5384+ CSFR60fps -> "60fps"
5385+
5386+instance FromJSON CdnSettingsFrameRate where
5387+ parseJSON = parseJSONText "CdnSettingsFrameRate"
5388+
5389+instance ToJSON CdnSettingsFrameRate where
5390+ toJSON = toJSONText
5391+
5229-- | The kind of error happening.
5392-- | The kind of error happening.
5230data LiveStreamConfigurationIssueType
5393data LiveStreamConfigurationIssueType
5231 = AudioBitrateHigh
5394 = AudioBitrateHigh
@@ -5294,7 +5457,7 @@ data LiveStreamConfigurationIssueType
5294 -- ^ @videoResolutionSuboptimal@
5457 -- ^ @videoResolutionSuboptimal@
5295 | VideoResolutionUnsupported
5458 | VideoResolutionUnsupported
5296 -- ^ @videoResolutionUnsupported@
5459 -- ^ @videoResolutionUnsupported@
5297− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5460+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5298
5461
5299instance Hashable LiveStreamConfigurationIssueType
5462instance Hashable LiveStreamConfigurationIssueType
5300
5463
@@ -5394,7 +5557,7 @@ data SearchListSafeSearch
5394 -- YouTube will try to exclude all restricted content from the search
5557 -- YouTube will try to exclude all restricted content from the search
5395 -- result set. Based on their content, search results could be removed from
5558 -- result set. Based on their content, search results could be removed from
5396 -- search results or demoted in search results.
5559 -- search results or demoted in search results.
5397− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5560+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5398
5561
5399instance Hashable SearchListSafeSearch
5562instance Hashable SearchListSafeSearch
5400
5563
@@ -5428,7 +5591,7 @@ data SearchListVideoSyndicated
5428 | SLVSTrue'
5591 | SLVSTrue'
5429 -- ^ @true@
5592 -- ^ @true@
5430 -- Only retrieve syndicated videos.
5593 -- Only retrieve syndicated videos.
5431− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5594+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5432
5595
5433instance Hashable SearchListVideoSyndicated
5596instance Hashable SearchListVideoSyndicated
5434
5597
@@ -5474,7 +5637,7 @@ data ContentRatingDjctqRatingReasonsItem
5474 -- ^ @djctqSexualContent@
5637 -- ^ @djctqSexualContent@
5475 | DjctqViolence
5638 | DjctqViolence
5476 -- ^ @djctqViolence@
5639 -- ^ @djctqViolence@
5477− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5640+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5478
5641
5479instance Hashable ContentRatingDjctqRatingReasonsItem
5642instance Hashable ContentRatingDjctqRatingReasonsItem
5480
5643
@@ -5521,7 +5684,7 @@ data CdnSettingsIngestionType
5521 -- ^ @dash@
5684 -- ^ @dash@
5522 | Rtmp
5685 | Rtmp
5523 -- ^ @rtmp@
5686 -- ^ @rtmp@
5524− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5687+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5525
5688
5526instance Hashable CdnSettingsIngestionType
5689instance Hashable CdnSettingsIngestionType
5527
5690
@@ -5551,7 +5714,7 @@ data InvideoTimingType
5551 -- ^ @offsetFromEnd@
5714 -- ^ @offsetFromEnd@
5552 | OffSetFromStart
5715 | OffSetFromStart
5553 -- ^ @offsetFromStart@
5716 -- ^ @offsetFromStart@
5554− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5717+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5555
5718
5556instance Hashable InvideoTimingType
5719instance Hashable InvideoTimingType
5557
5720
@@ -5583,7 +5746,7 @@ data ContentRatingAgcomRating
5583 -- ^ @agcomVm14@
5746 -- ^ @agcomVm14@
5584 | AGCOMVM18
5747 | AGCOMVM18
5585 -- ^ @agcomVm18@
5748 -- ^ @agcomVm18@
5586− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5749+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5587
5750
5588instance Hashable ContentRatingAgcomRating
5751instance Hashable ContentRatingAgcomRating
5589
5752
@@ -5619,7 +5782,7 @@ data CommentSnippetModerationStatus
5619 -- ^ @published@
5782 -- ^ @published@
5620 | CSMSRejected
5783 | CSMSRejected
5621 -- ^ @rejected@
5784 -- ^ @rejected@
5622− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5785+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5623
5786
5624instance Hashable CommentSnippetModerationStatus
5787instance Hashable CommentSnippetModerationStatus
5625
5788
@@ -5661,7 +5824,7 @@ data SearchListVideoLicense
5661 | SLVLYouTube
5824 | SLVLYouTube
5662 -- ^ @youtube@
5825 -- ^ @youtube@
5663 -- Only return videos that have the standard YouTube license.
5826 -- Only return videos that have the standard YouTube license.
5664− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5827+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5665
5828
5666instance Hashable SearchListVideoLicense
5829instance Hashable SearchListVideoLicense
5667
5830
@@ -5691,6 +5854,10 @@ data LiveChatMessageSnippetType
5691 -- ^ @chatEndedEvent@
5854 -- ^ @chatEndedEvent@
5692 | LCMSTFanFundingEvent
5855 | LCMSTFanFundingEvent
5693 -- ^ @fanFundingEvent@
5856 -- ^ @fanFundingEvent@
5857+ | LCMSTMessageDeletedEvent
5858+ -- ^ @messageDeletedEvent@
5859+ | LCMSTMessageRetractedEvent
5860+ -- ^ @messageRetractedEvent@
5694 | LCMSTNewSponsorEvent
5861 | LCMSTNewSponsorEvent
5695 -- ^ @newSponsorEvent@
5862 -- ^ @newSponsorEvent@
5696 | LCMSTSponsorOnlyModeEndedEvent
5863 | LCMSTSponsorOnlyModeEndedEvent
@@ -5701,7 +5868,9 @@ data LiveChatMessageSnippetType
5701 -- ^ @textMessageEvent@
5868 -- ^ @textMessageEvent@
5702 | LCMSTTombstone
5869 | LCMSTTombstone
5703 -- ^ @tombstone@
5870 -- ^ @tombstone@
5871+ | LCMSTUserBannedEvent
5872+ -- ^ @userBannedEvent@
5704− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5873+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5705
5874
5706instance Hashable LiveChatMessageSnippetType
5875instance Hashable LiveChatMessageSnippetType
5707
5876
@@ -5709,22 +5878,28 @@ instance FromHttpApiData LiveChatMessageSnippetType where
5709 parseQueryParam = \case
5878 parseQueryParam = \case
5710 "chatEndedEvent" -> Right LCMSTChatEndedEvent
5879 "chatEndedEvent" -> Right LCMSTChatEndedEvent
5711 "fanFundingEvent" -> Right LCMSTFanFundingEvent
5880 "fanFundingEvent" -> Right LCMSTFanFundingEvent
5881+ "messageDeletedEvent" -> Right LCMSTMessageDeletedEvent
5882+ "messageRetractedEvent" -> Right LCMSTMessageRetractedEvent
5712 "newSponsorEvent" -> Right LCMSTNewSponsorEvent
5883 "newSponsorEvent" -> Right LCMSTNewSponsorEvent
5713 "sponsorOnlyModeEndedEvent" -> Right LCMSTSponsorOnlyModeEndedEvent
5884 "sponsorOnlyModeEndedEvent" -> Right LCMSTSponsorOnlyModeEndedEvent
5714 "sponsorOnlyModeStartedEvent" -> Right LCMSTSponsorOnlyModeStartedEvent
5885 "sponsorOnlyModeStartedEvent" -> Right LCMSTSponsorOnlyModeStartedEvent
5715 "textMessageEvent" -> Right LCMSTTextMessageEvent
5886 "textMessageEvent" -> Right LCMSTTextMessageEvent
5716 "tombstone" -> Right LCMSTTombstone
5887 "tombstone" -> Right LCMSTTombstone
5888+ "userBannedEvent" -> Right LCMSTUserBannedEvent
5717 x -> Left ("Unable to parse LiveChatMessageSnippetType from: " <> x)
5889 x -> Left ("Unable to parse LiveChatMessageSnippetType from: " <> x)
5718
5890
5719instance ToHttpApiData LiveChatMessageSnippetType where
5891instance ToHttpApiData LiveChatMessageSnippetType where
5720 toQueryParam = \case
5892 toQueryParam = \case
5721 LCMSTChatEndedEvent -> "chatEndedEvent"
5893 LCMSTChatEndedEvent -> "chatEndedEvent"
5722 LCMSTFanFundingEvent -> "fanFundingEvent"
5894 LCMSTFanFundingEvent -> "fanFundingEvent"
5895+ LCMSTMessageDeletedEvent -> "messageDeletedEvent"
5896+ LCMSTMessageRetractedEvent -> "messageRetractedEvent"
5723 LCMSTNewSponsorEvent -> "newSponsorEvent"
5897 LCMSTNewSponsorEvent -> "newSponsorEvent"
5724 LCMSTSponsorOnlyModeEndedEvent -> "sponsorOnlyModeEndedEvent"
5898 LCMSTSponsorOnlyModeEndedEvent -> "sponsorOnlyModeEndedEvent"
5725 LCMSTSponsorOnlyModeStartedEvent -> "sponsorOnlyModeStartedEvent"
5899 LCMSTSponsorOnlyModeStartedEvent -> "sponsorOnlyModeStartedEvent"
5726 LCMSTTextMessageEvent -> "textMessageEvent"
5900 LCMSTTextMessageEvent -> "textMessageEvent"
5727 LCMSTTombstone -> "tombstone"
5901 LCMSTTombstone -> "tombstone"
5902+ LCMSTUserBannedEvent -> "userBannedEvent"
5728
5903
5729instance FromJSON LiveChatMessageSnippetType where
5904instance FromJSON LiveChatMessageSnippetType where
5730 parseJSON = parseJSONText "LiveChatMessageSnippetType"
5905 parseJSON = parseJSONText "LiveChatMessageSnippetType"
@@ -5743,7 +5918,7 @@ data LiveStreamStatusStreamStatus
5743 -- ^ @inactive@
5918 -- ^ @inactive@
5744 | LSSSSReady
5919 | LSSSSReady
5745 -- ^ @ready@
5920 -- ^ @ready@
5746− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5921+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5747
5922
5748instance Hashable LiveStreamStatusStreamStatus
5923instance Hashable LiveStreamStatusStreamStatus
5749
5924
@@ -5776,7 +5951,7 @@ data VideoStatusLicense
5776 -- ^ @creativeCommon@
5951 -- ^ @creativeCommon@
5777 | YouTube
5952 | YouTube
5778 -- ^ @youtube@
5953 -- ^ @youtube@
5779− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5954+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5780
5955
5781instance Hashable VideoStatusLicense
5956instance Hashable VideoStatusLicense
5782
5957
@@ -5816,7 +5991,7 @@ data ContentRatingNfvcbRating
5816 -- ^ @nfvcbRe@
5991 -- ^ @nfvcbRe@
5817 | NfvcbUnrated
5992 | NfvcbUnrated
5818 -- ^ @nfvcbUnrated@
5993 -- ^ @nfvcbUnrated@
5819− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
5994+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5820
5995
5821instance Hashable ContentRatingNfvcbRating
5996instance Hashable ContentRatingNfvcbRating
5822
5997
@@ -5866,7 +6041,7 @@ data ContentRatingMdaRating
5866 -- ^ @mdaR21@
6041 -- ^ @mdaR21@
5867 | MdaUnrated
6042 | MdaUnrated
5868 -- ^ @mdaUnrated@
6043 -- ^ @mdaUnrated@
5869− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
6044+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5870
6045
5871instance Hashable ContentRatingMdaRating
6046instance Hashable ContentRatingMdaRating
5872
6047
@@ -5919,7 +6094,7 @@ data ContentRatingAcbRating
5919 -- ^ @acbR18plus@
6094 -- ^ @acbR18plus@
5920 | AcbUnrated
6095 | AcbUnrated
5921 -- ^ @acbUnrated@
6096 -- ^ @acbUnrated@
5922− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
6097+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5923
6098
5924instance Hashable ContentRatingAcbRating
6099instance Hashable ContentRatingAcbRating
5925
6100
@@ -5971,7 +6146,7 @@ data ContentRatingDjctqRating
5971 -- ^ @djctqL@
6146 -- ^ @djctqL@
5972 | DjctqUnrated
6147 | DjctqUnrated
5973 -- ^ @djctqUnrated@
6148 -- ^ @djctqUnrated@
5974− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
6149+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5975
6150
5976instance Hashable ContentRatingDjctqRating
6151instance Hashable ContentRatingDjctqRating
5977
6152
@@ -6017,7 +6192,7 @@ data VideoStatusFailureReason
6017 -- ^ @tooSmall@
6192 -- ^ @tooSmall@
6018 | UploadAborted
6193 | UploadAborted
6019 -- ^ @uploadAborted@
6194 -- ^ @uploadAborted@
6020− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
6195+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
6021
6196
6022instance Hashable VideoStatusFailureReason
6197instance Hashable VideoStatusFailureReason
6023
6198
@@ -6066,7 +6241,7 @@ data ContentRatingCatvRating
6066 -- ^ @catvPg@
6241 -- ^ @catvPg@
6067 | CatvUnrated
6242 | CatvUnrated
6068 -- ^ @catvUnrated@
6243 -- ^ @catvUnrated@
6069− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
6244+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
6070
6245
6071instance Hashable ContentRatingCatvRating
6246instance Hashable ContentRatingCatvRating
6072
6247
gogol-youtube/gogol-youtube.cabal+2−1
@@ -14,7 +14,8 @@ cabal-version: >= 1.10
14extra-source-files: README.md
14extra-source-files: README.md
15
15
16description:
16description:
17− Programmatic access to YouTube features.
17+ Supports core YouTube features, such as uploading videos, creating and
18+ managing playlists, searching for content, and much more.
18 .
19 .
19 /Warning:/ This is an experimental prototype/preview release which is still
20 /Warning:/ This is an experimental prototype/preview release which is still
20 under exploratory development and not intended for public use, caveat emptor!
21 under exploratory development and not intended for public use, caveat emptor!