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 |
- getModels :: Text -> GetModels
- data GetModels
- gmsLimit :: Lens' GetModels (Maybe Int)
- gmsPosition :: Lens' GetModels (Maybe Text)
- gmsRestAPIId :: Lens' GetModels Text
- getModelsResponse :: Int -> GetModelsResponse
- data GetModelsResponse
- gmrsItems :: Lens' GetModelsResponse [Model]
- gmrsPosition :: Lens' GetModelsResponse (Maybe Text)
- gmrsResponseStatus :: Lens' GetModelsResponse Int
Creating a Request
Creates a value of GetModels
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Request Lenses
gmsLimit :: Lens' GetModels (Maybe Int) Source #
The maximum number of models in the collection to get information about. The default limit is 25. It should be an integer between 1 - 500.
gmsPosition :: Lens' GetModels (Maybe Text) Source #
The position of the next set of results in the Models resource to get information about.
Destructuring the Response
Creates a value of GetModelsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetModelsResponse Source #
Represents a collection of Model resources.
See: getModelsResponse
smart constructor.
Response Lenses
gmrsItems :: Lens' GetModelsResponse [Model] Source #
Gets the current Model resource in the collection.
gmrsPosition :: Lens' GetModelsResponse (Maybe Text) Source #
Undocumented member.
gmrsResponseStatus :: Lens' GetModelsResponse Int Source #
The response status code.