gogol-youtube-0.4.0: 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 "onBehalfOfContentOwner" 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 # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Update

Data PlayListItemsUpdate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Update

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 # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Update

Generic PlayListItemsUpdate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Update

Associated Types

type Rep PlayListItemsUpdate :: Type -> Type #

GoogleRequest PlayListItemsUpdate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Update

Associated Types

type Rs PlayListItemsUpdate :: Type #

type Scopes PlayListItemsUpdate :: [Symbol] #

type Rep PlayListItemsUpdate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Update

type Rep PlayListItemsUpdate = D1 (MetaData "PlayListItemsUpdate" "Network.Google.Resource.YouTube.PlayListItems.Update" "gogol-youtube-0.4.0-ICfv3TXlvc9ZGnb0rCY6m" False) (C1 (MetaCons "PlayListItemsUpdate'" PrefixI True) (S1 (MetaSel (Just "_pliuPart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_pliuPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PlayListItem) :*: S1 (MetaSel (Just "_pliuOnBehalfOfContentOwner") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Scopes PlayListItemsUpdate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Update

type Scopes PlayListItemsUpdate = "https://www.googleapis.com/auth/youtube" ': ("https://www.googleapis.com/auth/youtube.force-ssl" ': ("https://www.googleapis.com/auth/youtubepartner" ': ([] :: [Symbol])))
type Rs PlayListItemsUpdate Source # 
Instance details

Defined in Network.Google.Resource.YouTube.PlayListItems.Update

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.

pliuOnBehalfOfContentOwner :: Lens' PlayListItemsUpdate (Maybe Text) Source #

Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.