gogol-storage-0.4.0: Google Cloud Storage JSON 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.Storage.Notifications.Insert

Contents

Description

Creates a notification subscription for a given bucket.

See: Cloud Storage JSON API Reference for storage.notifications.insert.

Synopsis

REST Resource

type NotificationsInsertResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("notificationConfigs" :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Notification :> Post '[JSON] Notification))))))) Source #

A resource alias for storage.notifications.insert method which the NotificationsInsert request conforms to.

Creating a Request

notificationsInsert Source #

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

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

data NotificationsInsert Source #

Creates a notification subscription for a given bucket.

See: notificationsInsert smart constructor.

Instances
Eq NotificationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.Notifications.Insert

Data NotificationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.Notifications.Insert

Methods

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

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

toConstr :: NotificationsInsert -> Constr #

dataTypeOf :: NotificationsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show NotificationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.Notifications.Insert

Generic NotificationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.Notifications.Insert

Associated Types

type Rep NotificationsInsert :: Type -> Type #

GoogleRequest NotificationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.Notifications.Insert

Associated Types

type Rs NotificationsInsert :: Type #

type Scopes NotificationsInsert :: [Symbol] #

type Rep NotificationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.Notifications.Insert

type Rep NotificationsInsert = D1 (MetaData "NotificationsInsert" "Network.Google.Resource.Storage.Notifications.Insert" "gogol-storage-0.4.0-F1QXZopXJqf9Y2QJKwfuR3" False) (C1 (MetaCons "NotificationsInsert'" PrefixI True) (S1 (MetaSel (Just "_niBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_niPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Notification) :*: S1 (MetaSel (Just "_niUserProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Scopes NotificationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.Notifications.Insert

type Scopes NotificationsInsert = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/devstorage.full_control" ': ("https://www.googleapis.com/auth/devstorage.read_write" ': ([] :: [Symbol])))
type Rs NotificationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.Notifications.Insert

Request Lenses

niBucket :: Lens' NotificationsInsert Text Source #

The parent bucket of the notification.

niPayload :: Lens' NotificationsInsert Notification Source #

Multipart request metadata.

niUserProject :: Lens' NotificationsInsert (Maybe Text) Source #

The project to be billed for this request. Required for Requester Pays buckets.