gogol-apps-calendar-0.4.0: 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 "conferenceDataVersion" (Textual Int32) :> (QueryParam "maxAttendees" (Textual Int32) :> (QueryParam "sendNotifications" Bool :> (QueryParam "supportsAttachments" Bool :> (QueryParam "sendUpdates" EventsInsertSendUpdates :> (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 # 
Instance details

Defined in Network.Google.Resource.Calendar.Events.Insert

Data EventsInsert Source # 
Instance details

Defined in Network.Google.Resource.Calendar.Events.Insert

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 # 
Instance details

Defined in Network.Google.Resource.Calendar.Events.Insert

Generic EventsInsert Source # 
Instance details

Defined in Network.Google.Resource.Calendar.Events.Insert

Associated Types

type Rep EventsInsert :: Type -> Type #

GoogleRequest EventsInsert Source # 
Instance details

Defined in Network.Google.Resource.Calendar.Events.Insert

Associated Types

type Rs EventsInsert :: Type #

type Scopes EventsInsert :: [Symbol] #

type Rep EventsInsert Source # 
Instance details

Defined in Network.Google.Resource.Calendar.Events.Insert

type Rep EventsInsert = D1 (MetaData "EventsInsert" "Network.Google.Resource.Calendar.Events.Insert" "gogol-apps-calendar-0.4.0-JhVPsEbzg60HmmguA3hcFJ" False) (C1 (MetaCons "EventsInsert'" PrefixI True) ((S1 (MetaSel (Just "_eveConferenceDataVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: (S1 (MetaSel (Just "_eveCalendarId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_evePayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Event))) :*: ((S1 (MetaSel (Just "_eveMaxAttendees") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_eveSendNotifications") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_eveSupportsAttachments") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_eveSendUpdates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EventsInsertSendUpdates))))))
type Scopes EventsInsert Source # 
Instance details

Defined in Network.Google.Resource.Calendar.Events.Insert

type Scopes EventsInsert = "https://www.googleapis.com/auth/calendar" ': ("https://www.googleapis.com/auth/calendar.events" ': ([] :: [Symbol]))
type Rs EventsInsert Source # 
Instance details

Defined in Network.Google.Resource.Calendar.Events.Insert

Request Lenses

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

Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0.

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 #

Deprecated. Please use sendUpdates instead. Whether to send notifications about the creation of the new event. Note that some emails might still be sent even if you set the value to false. The default is false.

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

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

eveSendUpdates :: Lens' EventsInsert (Maybe EventsInsertSendUpdates) Source #

Whether to send notifications about the creation of the new event. Note that some emails might still be sent. The default is false.