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