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 |
Describes existing Models
defined for a RestApi
resource.
This operation returns paginated results.
- 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:
gmsLimit
- 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
- The position of the next set of results in theModels
resource to get information about.gmsRestAPIId
- TheRestApi
identifier.
Request to list existing Models
defined for a RestApi
resource.
See: getModels
smart constructor.
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:
gmrsItems
- Gets the currentModel
resource in the collection.gmrsPosition
- Undocumented member.gmrsResponseStatus
- -- | The response status code.
data GetModelsResponse Source #
Represents a collection of Model
resources.
Method
, MethodResponse
, Models and Mappings
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.