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.Import

Contents

Description

Imports an event. This operation is used to add a private copy of an existing event to a calendar.

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

Synopsis

REST Resource

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

A resource alias for calendar.events.import method which the EventsImport request conforms to.

Creating a Request

eventsImport Source #

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

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

data EventsImport Source #

Imports an event. This operation is used to add a private copy of an existing event to a calendar.

See: eventsImport smart constructor.

Instances
Eq EventsImport Source # 
Instance details

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

Data EventsImport Source # 
Instance details

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

Methods

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

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

toConstr :: EventsImport -> Constr #

dataTypeOf :: EventsImport -> DataType #

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

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

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

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

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

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

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

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

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

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

Show EventsImport Source # 
Instance details

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

Generic EventsImport Source # 
Instance details

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

Associated Types

type Rep EventsImport :: Type -> Type #

GoogleRequest EventsImport Source # 
Instance details

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

Associated Types

type Rs EventsImport :: Type #

type Scopes EventsImport :: [Symbol] #

type Rep EventsImport Source # 
Instance details

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

type Rep EventsImport = D1 (MetaData "EventsImport" "Network.Google.Resource.Calendar.Events.Import" "gogol-apps-calendar-0.4.0-JhVPsEbzg60HmmguA3hcFJ" False) (C1 (MetaCons "EventsImport'" PrefixI True) ((S1 (MetaSel (Just "_eiConferenceDataVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_eiCalendarId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_eiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Event) :*: S1 (MetaSel (Just "_eiSupportsAttachments") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))
type Scopes EventsImport Source # 
Instance details

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

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

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

Request Lenses

eiConferenceDataVersion :: Lens' EventsImport (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.

eiCalendarId :: Lens' EventsImport 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.

eiPayload :: Lens' EventsImport Event Source #

Multipart request metadata.

eiSupportsAttachments :: Lens' EventsImport (Maybe Bool) Source #

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