| 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 |
Network.Google.Resource.Directory.OrgUnits.Patch
Description
Update organizational unit. This method supports patch semantics.
See: Admin Directory API Reference for directory.orgunits.patch.
Synopsis
- type OrgUnitsPatchResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customerId" Text :> ("orgunits" :> (Captures "orgUnitPath" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrgUnit :> Patch '[JSON] OrgUnit))))))))
- orgUnitsPatch :: OrgUnit -> [Text] -> Text -> OrgUnitsPatch
- data OrgUnitsPatch
- oupPayload :: Lens' OrgUnitsPatch OrgUnit
- oupOrgUnitPath :: Lens' OrgUnitsPatch [Text]
- oupCustomerId :: Lens' OrgUnitsPatch Text
REST Resource
type OrgUnitsPatchResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customerId" Text :> ("orgunits" :> (Captures "orgUnitPath" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrgUnit :> Patch '[JSON] OrgUnit)))))))) Source #
A resource alias for directory.orgunits.patch method which the
OrgUnitsPatch request conforms to.
Creating a Request
Arguments
| :: OrgUnit | |
| -> [Text] | |
| -> Text | |
| -> OrgUnitsPatch |
Creates a value of OrgUnitsPatch with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrgUnitsPatch Source #
Update organizational unit. This method supports patch semantics.
See: orgUnitsPatch smart constructor.
Instances
Request Lenses
oupPayload :: Lens' OrgUnitsPatch OrgUnit Source #
Multipart request metadata.
oupOrgUnitPath :: Lens' OrgUnitsPatch [Text] Source #
Full path of the organizational unit or its ID
oupCustomerId :: Lens' OrgUnitsPatch Text Source #
Immutable ID of the G Suite account