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 |
Changes information about a model.
- updateModel :: Text -> Text -> UpdateModel
- data UpdateModel
- uPatchOperations :: Lens' UpdateModel [PatchOperation]
- uRestAPIId :: Lens' UpdateModel Text
- uModelName :: Lens' UpdateModel 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 UpdateModel
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateModel Source
Request to update an existing model in an existing RestApi resource.
See: updateModel
smart constructor.
Request Lenses
uPatchOperations :: Lens' UpdateModel [PatchOperation] Source
A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
uRestAPIId :: Lens' UpdateModel Text Source
The RestApi identifier under which the model exists.
uModelName :: Lens' UpdateModel Text Source
The name of the model to update.
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.