Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.Google.Resource.Calendar.ACL.Insert
Description
Creates an access control rule.
See: Calendar API Reference for calendar.acl.insert
.
Synopsis
- type ACLInsertResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("acl" :> (QueryParam "sendNotifications" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ACLRule :> Post '[JSON] ACLRule)))))))
- aclInsert :: Text -> ACLRule -> ACLInsert
- data ACLInsert
- aiCalendarId :: Lens' ACLInsert Text
- aiPayload :: Lens' ACLInsert ACLRule
- aiSendNotifications :: Lens' ACLInsert (Maybe Bool)
REST Resource
type ACLInsertResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("acl" :> (QueryParam "sendNotifications" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ACLRule :> Post '[JSON] ACLRule))))))) Source #
A resource alias for calendar.acl.insert
method which the
ACLInsert
request conforms to.
Creating a Request
Creates a value of ACLInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Creates an access control rule.
See: aclInsert
smart constructor.
Instances
Eq ACLInsert Source # | |
Data ACLInsert Source # | |
Defined in Network.Google.Resource.Calendar.ACL.Insert Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ACLInsert -> c ACLInsert # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ACLInsert # toConstr :: ACLInsert -> Constr # dataTypeOf :: ACLInsert -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ACLInsert) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ACLInsert) # gmapT :: (forall b. Data b => b -> b) -> ACLInsert -> ACLInsert # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ACLInsert -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ACLInsert -> r # gmapQ :: (forall d. Data d => d -> u) -> ACLInsert -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ACLInsert -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ACLInsert -> m ACLInsert # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ACLInsert -> m ACLInsert # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ACLInsert -> m ACLInsert # | |
Show ACLInsert Source # | |
Generic ACLInsert Source # | |
GoogleRequest ACLInsert Source # | |
type Rep ACLInsert Source # | |
Defined in Network.Google.Resource.Calendar.ACL.Insert type Rep ACLInsert = D1 (MetaData "ACLInsert" "Network.Google.Resource.Calendar.ACL.Insert" "gogol-apps-calendar-0.4.0-JhVPsEbzg60HmmguA3hcFJ" False) (C1 (MetaCons "ACLInsert'" PrefixI True) (S1 (MetaSel (Just "_aiCalendarId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_aiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ACLRule) :*: S1 (MetaSel (Just "_aiSendNotifications") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))) | |
type Scopes ACLInsert Source # | |
Defined in Network.Google.Resource.Calendar.ACL.Insert | |
type Rs ACLInsert Source # | |
Defined in Network.Google.Resource.Calendar.ACL.Insert |