Copyright | (c) 2015-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 |
Creates a new matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default view.
See: G Suite Vault API Reference for vault.matters.create
.
Synopsis
- type MattersCreateResource = "v1" :> ("matters" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Matter :> Post '[JSON] Matter))))))))
- mattersCreate :: Matter -> MattersCreate
- data MattersCreate
- mXgafv :: Lens' MattersCreate (Maybe Xgafv)
- mUploadProtocol :: Lens' MattersCreate (Maybe Text)
- mAccessToken :: Lens' MattersCreate (Maybe Text)
- mUploadType :: Lens' MattersCreate (Maybe Text)
- mPayload :: Lens' MattersCreate Matter
- mCallback :: Lens' MattersCreate (Maybe Text)
REST Resource
type MattersCreateResource = "v1" :> ("matters" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Matter :> Post '[JSON] Matter)))))))) Source #
A resource alias for vault.matters.create
method which the
MattersCreate
request conforms to.
Creating a Request
Creates a value of MattersCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MattersCreate Source #
Creates a new matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default view.
See: mattersCreate
smart constructor.
Instances
Request Lenses
mUploadProtocol :: Lens' MattersCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
mAccessToken :: Lens' MattersCreate (Maybe Text) Source #
OAuth access token.
mUploadType :: Lens' MattersCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").