Copyright | (c) 2013-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 |
Changes information about a Resource resource.
- updateResource :: Text -> Text -> UpdateResource
- data UpdateResource
- urPatchOperations :: Lens' UpdateResource [PatchOperation]
- urRestAPIId :: Lens' UpdateResource Text
- urResourceId :: Lens' UpdateResource Text
- resource :: Resource
- data Resource
- rPathPart :: Lens' Resource (Maybe Text)
- rPath :: Lens' Resource (Maybe Text)
- rId :: Lens' Resource (Maybe Text)
- rResourceMethods :: Lens' Resource (HashMap Text Method)
- rParentId :: Lens' Resource (Maybe Text)
Creating a Request
Creates a value of UpdateResource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateResource Source #
Request to change information about a Resource resource.
See: updateResource
smart constructor.
Request Lenses
urPatchOperations :: Lens' UpdateResource [PatchOperation] Source #
A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
urResourceId :: Lens' UpdateResource Text Source #
The identifier of the Resource resource.
Destructuring the Response
Represents a resource.
See: resource
smart constructor.