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 |
- createModel :: Text -> Text -> Text -> CreateModel
- data CreateModel
- cmSchema :: Lens' CreateModel (Maybe Text)
- cmDescription :: Lens' CreateModel (Maybe Text)
- cmRestAPIId :: Lens' CreateModel Text
- cmName :: Lens' CreateModel Text
- cmContentType :: Lens' CreateModel Text
- model :: Model
- data Model
- mSchema :: Lens' Model (Maybe Text)
- mName :: Lens' Model (Maybe Text)
- mId :: Lens' Model (Maybe Text)
- mDescription :: Lens' Model (Maybe Text)
- mContentType :: Lens' Model (Maybe Text)
Creating a Request
Creates a value of CreateModel
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateModel Source #
Request to add a new Model to an existing RestApi resource.
See: createModel
smart constructor.
Request Lenses
cmSchema :: Lens' CreateModel (Maybe Text) Source #
The schema for the model. For 'application\/json' models, this should be JSON-schema draft v4 model.
cmDescription :: Lens' CreateModel (Maybe Text) Source #
The description of the model.
cmContentType :: Lens' CreateModel Text Source #
The content-type for the model.
Destructuring the Response
Creates a value of Model
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Represents the structure of a request or response payload for a method.
See: model
smart constructor.