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 |
Creates a role.
See: Admin Directory API Reference for directory.roles.insert
.
Synopsis
- type RolesInsertResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customer" Text :> ("roles" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Role :> Post '[JSON] Role)))))))
- rolesInsert :: Role -> Text -> RolesInsert
- data RolesInsert
- riPayload :: Lens' RolesInsert Role
- riCustomer :: Lens' RolesInsert Text
REST Resource
type RolesInsertResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customer" Text :> ("roles" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Role :> Post '[JSON] Role))))))) Source #
A resource alias for directory.roles.insert
method which the
RolesInsert
request conforms to.
Creating a Request
Creates a value of RolesInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RolesInsert Source #
Creates a role.
See: rolesInsert
smart constructor.
Instances
Request Lenses
riCustomer :: Lens' RolesInsert Text Source #
Immutable ID of the G Suite account.