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 |
Lists information about a resource.
- getResource :: Text -> Text -> GetResource
- data GetResource
- grRestAPIId :: Lens' GetResource Text
- grResourceId :: Lens' GetResource 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 GetResource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetResource Source
Request to list information about a resource.
See: getResource
smart constructor.
Request Lenses
grRestAPIId :: Lens' GetResource Text Source
The RestApi identifier for the resource.
grResourceId :: Lens' GetResource Text Source
The identifier for the Resource resource.
Destructuring the Response
Represents a resource.
See: resource
smart constructor.