gogol-apps-calendar-0.1.1: Google Calendar 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.Calendar.Events.Insert

Contents

Description

Creates an event.

See: Calendar API Reference for calendar.events.insert.

Synopsis

REST Resource

type EventsInsertResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> (QueryParam "maxAttendees" (Textual Int32) :> (QueryParam "sendNotifications" Bool :> (QueryParam "supportsAttachments" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Event :> Post '[JSON] Event))))))))) Source #

A resource alias for calendar.events.insert method which the EventsInsert request conforms to.

Creating a Request

eventsInsert Source #

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

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

data EventsInsert Source #

Creates an event.

See: eventsInsert smart constructor.

Instances

Eq EventsInsert Source # 
Data EventsInsert Source # 

Methods

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

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

toConstr :: EventsInsert -> Constr #

dataTypeOf :: EventsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show EventsInsert Source # 
Generic EventsInsert Source # 

Associated Types

type Rep EventsInsert :: * -> * #

GoogleRequest EventsInsert Source # 

Associated Types

type Rs EventsInsert :: * #

type Scopes EventsInsert :: [Symbol] #

type Rep EventsInsert Source # 
type Rep EventsInsert = D1 (MetaData "EventsInsert" "Network.Google.Resource.Calendar.Events.Insert" "gogol-apps-calendar-0.1.1-8hrx4AbDZpA3duht5GRQsA" False) (C1 (MetaCons "EventsInsert'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_eveCalendarId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_evePayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Event))) ((:*:) (S1 (MetaSel (Just Symbol "_eveMaxAttendees") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32)))) ((:*:) (S1 (MetaSel (Just Symbol "_eveSendNotifications") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_eveSupportsAttachments") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))))
type Scopes EventsInsert Source # 
type Scopes EventsInsert = (:) Symbol "https://www.googleapis.com/auth/calendar" ([] Symbol)
type Rs EventsInsert Source # 

Request Lenses

eveCalendarId :: Lens' EventsInsert Text Source #

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.

evePayload :: Lens' EventsInsert Event Source #

Multipart request metadata.

eveMaxAttendees :: Lens' EventsInsert (Maybe Int32) Source #

The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.

eveSendNotifications :: Lens' EventsInsert (Maybe Bool) Source #

Whether to send notifications about the creation of the new event. Optional. The default is False.

eveSupportsAttachments :: Lens' EventsInsert (Maybe Bool) Source #

Whether API client performing operation supports event attachments. Optional. The default is False.