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 |
Update organizational unit
See: Admin Directory API Reference for directory.orgunits.update
.
Synopsis
- type OrgUnitsUpdateResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customerId" Text :> ("orgunits" :> (Captures "orgUnitPath" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrgUnit :> Put '[JSON] OrgUnit))))))))
- orgUnitsUpdate :: OrgUnit -> [Text] -> Text -> OrgUnitsUpdate
- data OrgUnitsUpdate
- ouuPayload :: Lens' OrgUnitsUpdate OrgUnit
- ouuOrgUnitPath :: Lens' OrgUnitsUpdate [Text]
- ouuCustomerId :: Lens' OrgUnitsUpdate Text
REST Resource
type OrgUnitsUpdateResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customerId" Text :> ("orgunits" :> (Captures "orgUnitPath" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrgUnit :> Put '[JSON] OrgUnit)))))))) Source #
A resource alias for directory.orgunits.update
method which the
OrgUnitsUpdate
request conforms to.
Creating a Request
Creates a value of OrgUnitsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrgUnitsUpdate Source #
Update organizational unit
See: orgUnitsUpdate
smart constructor.
Instances
Request Lenses
ouuPayload :: Lens' OrgUnitsUpdate OrgUnit Source #
Multipart request metadata.
ouuOrgUnitPath :: Lens' OrgUnitsUpdate [Text] Source #
Full path of the organizational unit or its ID
ouuCustomerId :: Lens' OrgUnitsUpdate Text Source #
Immutable ID of the G Suite account