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