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.Channels.Update

Contents

Description

Updates a channel's metadata. Note that this method currently only supports updates to the channel resource's brandingSettings and invideoPromotion objects and their child properties.

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

Synopsis

REST Resource

type ChannelsUpdateResource = "youtube" :> ("v3" :> ("channels" :> (QueryParam "part" Text :> (QueryParam "onBehalfOfContentOwner" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Put '[JSON] Channel)))))) Source #

A resource alias for youtube.channels.update method which the ChannelsUpdate request conforms to.

Creating a Request

channelsUpdate Source #

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

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

data ChannelsUpdate Source #

Updates a channel's metadata. Note that this method currently only supports updates to the channel resource's brandingSettings and invideoPromotion objects and their child properties.

See: channelsUpdate smart constructor.

Instances
Eq ChannelsUpdate Source # 
Instance details

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

Data ChannelsUpdate Source # 
Instance details

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

Methods

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

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

toConstr :: ChannelsUpdate -> Constr #

dataTypeOf :: ChannelsUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ChannelsUpdate Source # 
Instance details

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

Generic ChannelsUpdate Source # 
Instance details

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

Associated Types

type Rep ChannelsUpdate :: Type -> Type #

GoogleRequest ChannelsUpdate Source # 
Instance details

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

Associated Types

type Rs ChannelsUpdate :: Type #

type Scopes ChannelsUpdate :: [Symbol] #

type Rep ChannelsUpdate Source # 
Instance details

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

type Rep ChannelsUpdate = D1 (MetaData "ChannelsUpdate" "Network.Google.Resource.YouTube.Channels.Update" "gogol-youtube-0.4.0-ICfv3TXlvc9ZGnb0rCY6m" False) (C1 (MetaCons "ChannelsUpdate'" PrefixI True) (S1 (MetaSel (Just "_chaPart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_chaPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Channel) :*: S1 (MetaSel (Just "_chaOnBehalfOfContentOwner") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Scopes ChannelsUpdate Source # 
Instance details

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

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

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

Request Lenses

chaPart :: Lens' ChannelsUpdate 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. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.

chaPayload :: Lens' ChannelsUpdate Channel Source #

Multipart request metadata.

chaOnBehalfOfContentOwner :: Lens' ChannelsUpdate (Maybe Text) Source #

The onBehalfOfContentOwner parameter indicates that the authenticated user 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 actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.