gogol-mirror-0.5.0: Google Mirror 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.Mirror.Subscriptions.Insert

Contents

Description

Creates a new subscription.

See: Google Mirror API Reference for mirror.subscriptions.insert.

Synopsis

REST Resource

type SubscriptionsInsertResource = "mirror" :> ("v1" :> ("subscriptions" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Subscription :> Post '[JSON] Subscription)))) Source #

A resource alias for mirror.subscriptions.insert method which the SubscriptionsInsert request conforms to.

Creating a Request

subscriptionsInsert Source #

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

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

data SubscriptionsInsert Source #

Creates a new subscription.

See: subscriptionsInsert smart constructor.

Instances
Eq SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Subscriptions.Insert

Data SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Subscriptions.Insert

Methods

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

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

toConstr :: SubscriptionsInsert -> Constr #

dataTypeOf :: SubscriptionsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Subscriptions.Insert

Generic SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Subscriptions.Insert

Associated Types

type Rep SubscriptionsInsert :: Type -> Type #

GoogleRequest SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Subscriptions.Insert

Associated Types

type Rs SubscriptionsInsert :: Type #

type Scopes SubscriptionsInsert :: [Symbol] #

type Rep SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Subscriptions.Insert

type Rep SubscriptionsInsert = D1 (MetaData "SubscriptionsInsert" "Network.Google.Resource.Mirror.Subscriptions.Insert" "gogol-mirror-0.5.0-BUkgmnKch95Ghu52Suiwzd" True) (C1 (MetaCons "SubscriptionsInsert'" PrefixI True) (S1 (MetaSel (Just "_siPayload") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Subscription)))
type Scopes SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Subscriptions.Insert

type Scopes SubscriptionsInsert = "https://www.googleapis.com/auth/glass.timeline" ': ([] :: [Symbol])
type Rs SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Subscriptions.Insert

Request Lenses

siPayload :: Lens' SubscriptionsInsert Subscription Source #

Multipart request metadata.