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