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.LiveChatBans.Insert

Contents

Description

Adds a new ban to the chat.

See: YouTube Data API Reference for youtube.liveChatBans.insert.

Synopsis

REST Resource

type LiveChatBansInsertResource = "youtube" :> ("v3" :> ("liveChat" :> ("bans" :> (QueryParam "part" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LiveChatBan :> Post '[JSON] LiveChatBan)))))) Source #

A resource alias for youtube.liveChatBans.insert method which the LiveChatBansInsert request conforms to.

Creating a Request

liveChatBansInsert Source #

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

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

data LiveChatBansInsert Source #

Adds a new ban to the chat.

See: liveChatBansInsert smart constructor.

Instances
Eq LiveChatBansInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.LiveChatBans.Insert

Data LiveChatBansInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.LiveChatBans.Insert

Methods

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

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

toConstr :: LiveChatBansInsert -> Constr #

dataTypeOf :: LiveChatBansInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show LiveChatBansInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.LiveChatBans.Insert

Generic LiveChatBansInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.LiveChatBans.Insert

Associated Types

type Rep LiveChatBansInsert :: Type -> Type #

GoogleRequest LiveChatBansInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.LiveChatBans.Insert

Associated Types

type Rs LiveChatBansInsert :: Type #

type Scopes LiveChatBansInsert :: [Symbol] #

type Rep LiveChatBansInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.LiveChatBans.Insert

type Rep LiveChatBansInsert = D1 (MetaData "LiveChatBansInsert" "Network.Google.Resource.YouTube.LiveChatBans.Insert" "gogol-youtube-0.4.0-ICfv3TXlvc9ZGnb0rCY6m" False) (C1 (MetaCons "LiveChatBansInsert'" PrefixI True) (S1 (MetaSel (Just "_lcbiPart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_lcbiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 LiveChatBan)))
type Scopes LiveChatBansInsert Source # 
Instance details

Defined in Network.Google.Resource.YouTube.LiveChatBans.Insert

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

Defined in Network.Google.Resource.YouTube.LiveChatBans.Insert

Request Lenses

lcbiPart :: Lens' LiveChatBansInsert 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 returns. Set the parameter value to snippet.

lcbiPayload :: Lens' LiveChatBansInsert LiveChatBan Source #

Multipart request metadata.