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 building. This method supports patch semantics.
See: Admin Directory API Reference for directory.resources.buildings.patch
.
Synopsis
- type ResourcesBuildingsPatchResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customer" Text :> ("resources" :> ("buildings" :> (Capture "buildingId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Building :> Patch '[JSON] Building)))))))))
- resourcesBuildingsPatch :: Text -> Building -> Text -> ResourcesBuildingsPatch
- data ResourcesBuildingsPatch
- rbpBuildingId :: Lens' ResourcesBuildingsPatch Text
- rbpPayload :: Lens' ResourcesBuildingsPatch Building
- rbpCustomer :: Lens' ResourcesBuildingsPatch Text
REST Resource
type ResourcesBuildingsPatchResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customer" Text :> ("resources" :> ("buildings" :> (Capture "buildingId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Building :> Patch '[JSON] Building))))))))) Source #
A resource alias for directory.resources.buildings.patch
method which the
ResourcesBuildingsPatch
request conforms to.
Creating a Request
resourcesBuildingsPatch Source #
Creates a value of ResourcesBuildingsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ResourcesBuildingsPatch Source #
Updates a building. This method supports patch semantics.
See: resourcesBuildingsPatch
smart constructor.
Instances
Request Lenses
rbpBuildingId :: Lens' ResourcesBuildingsPatch Text Source #
The ID of the building to update.
rbpPayload :: Lens' ResourcesBuildingsPatch Building Source #
Multipart request metadata.
rbpCustomer :: Lens' ResourcesBuildingsPatch Text Source #
The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.