gogol-youtube-0.1.1: Google YouTube Data SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.YouTube.PlayListItems.Update

Contents

Description

Modifies a playlist item. For example, you could update the item's position in the playlist.

See: YouTube Data API Reference for youtube.playlistItems.update.

Synopsis

REST Resource

type PlayListItemsUpdateResource = "youtube" :> ("v3" :> ("playlistItems" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PlayListItem :> Put '[JSON] PlayListItem))))) Source #

A resource alias for youtube.playlistItems.update method which the PlayListItemsUpdate request conforms to.

Creating a Request

playListItemsUpdate Source #

Creates a value of PlayListItemsUpdate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PlayListItemsUpdate Source #

Modifies a playlist item. For example, you could update the item's position in the playlist.

See: playListItemsUpdate smart constructor.

Instances

Eq PlayListItemsUpdate Source # 
Data PlayListItemsUpdate Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PlayListItemsUpdate -> c PlayListItemsUpdate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PlayListItemsUpdate #

toConstr :: PlayListItemsUpdate -> Constr #

dataTypeOf :: PlayListItemsUpdate -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PlayListItemsUpdate) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PlayListItemsUpdate) #

gmapT :: (forall b. Data b => b -> b) -> PlayListItemsUpdate -> PlayListItemsUpdate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PlayListItemsUpdate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PlayListItemsUpdate -> r #

gmapQ :: (forall d. Data d => d -> u) -> PlayListItemsUpdate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PlayListItemsUpdate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PlayListItemsUpdate -> m PlayListItemsUpdate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PlayListItemsUpdate -> m PlayListItemsUpdate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PlayListItemsUpdate -> m PlayListItemsUpdate #

Show PlayListItemsUpdate Source # 
Generic PlayListItemsUpdate Source # 
GoogleRequest PlayListItemsUpdate Source # 
type Rep PlayListItemsUpdate Source # 
type Rep PlayListItemsUpdate = D1 (MetaData "PlayListItemsUpdate" "Network.Google.Resource.YouTube.PlayListItems.Update" "gogol-youtube-0.1.1-BKvHJYv3Lac2eVp6D9Sfdq" False) (C1 (MetaCons "PlayListItemsUpdate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_pliuPart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_pliuPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PlayListItem))))
type Scopes PlayListItemsUpdate Source # 
type Scopes PlayListItemsUpdate = (:) Symbol "https://www.googleapis.com/auth/youtube" ((:) Symbol "https://www.googleapis.com/auth/youtube.force-ssl" ((:) Symbol "https://www.googleapis.com/auth/youtubepartner" ([] Symbol)))
type Rs PlayListItemsUpdate Source # 

Request Lenses

pliuPart :: Lens' PlayListItemsUpdate Text Source #

The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.