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 |
Generates a sample mapping template that can be used to transform a payload into the structure of a model.
- getModelTemplate :: Text -> Text -> GetModelTemplate
- data GetModelTemplate
- gmtRestAPIId :: Lens' GetModelTemplate Text
- gmtModelName :: Lens' GetModelTemplate Text
- getModelTemplateResponse :: Int -> GetModelTemplateResponse
- data GetModelTemplateResponse
- gmtrsValue :: Lens' GetModelTemplateResponse (Maybe Text)
- gmtrsResponseStatus :: Lens' GetModelTemplateResponse Int
Creating a Request
Creates a value of GetModelTemplate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetModelTemplate Source #
Request to generate a sample mapping template used to transform the payload.
See: getModelTemplate
smart constructor.
Request Lenses
gmtRestAPIId :: Lens' GetModelTemplate Text Source #
The ID of the RestApi under which the model exists.
gmtModelName :: Lens' GetModelTemplate Text Source #
The name of the model for which to generate a template.
Destructuring the Response
getModelTemplateResponse Source #
Creates a value of GetModelTemplateResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetModelTemplateResponse Source #
Represents a mapping template used to transform a payload.
See: getModelTemplateResponse
smart constructor.
Response Lenses
gmtrsValue :: Lens' GetModelTemplateResponse (Maybe Text) Source #
The Apache Velocity Template Language (VTL) template content used for the template resource.
gmtrsResponseStatus :: Lens' GetModelTemplateResponse Int Source #
The response status code.