| 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 |
Network.Google.Resource.Vault.Matters.Holds.Create
Description
Creates a hold in the given matter.
See: G Suite Vault API Reference for vault.matters.holds.create.
Synopsis
- type MattersHoldsCreateResource = "v1" :> ("matters" :> (Capture "matterId" Text :> ("holds" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Hold :> Post '[JSON] Hold))))))))))
- mattersHoldsCreate :: Hold -> Text -> MattersHoldsCreate
- data MattersHoldsCreate
- mhcXgafv :: Lens' MattersHoldsCreate (Maybe Xgafv)
- mhcUploadProtocol :: Lens' MattersHoldsCreate (Maybe Text)
- mhcAccessToken :: Lens' MattersHoldsCreate (Maybe Text)
- mhcUploadType :: Lens' MattersHoldsCreate (Maybe Text)
- mhcPayload :: Lens' MattersHoldsCreate Hold
- mhcMatterId :: Lens' MattersHoldsCreate Text
- mhcCallback :: Lens' MattersHoldsCreate (Maybe Text)
REST Resource
type MattersHoldsCreateResource = "v1" :> ("matters" :> (Capture "matterId" Text :> ("holds" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Hold :> Post '[JSON] Hold)))))))))) Source #
A resource alias for vault.matters.holds.create method which the
MattersHoldsCreate request conforms to.
Creating a Request
Arguments
| :: Hold | |
| -> Text | |
| -> MattersHoldsCreate |
Creates a value of MattersHoldsCreate with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MattersHoldsCreate Source #
Creates a hold in the given matter.
See: mattersHoldsCreate smart constructor.
Instances
Request Lenses
mhcUploadProtocol :: Lens' MattersHoldsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
mhcAccessToken :: Lens' MattersHoldsCreate (Maybe Text) Source #
OAuth access token.
mhcUploadType :: Lens' MattersHoldsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
mhcPayload :: Lens' MattersHoldsCreate Hold Source #
Multipart request metadata.
mhcMatterId :: Lens' MattersHoldsCreate Text Source #
The matter ID.
mhcCallback :: Lens' MattersHoldsCreate (Maybe Text) Source #
JSONP