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 |
Adds a HeldAccount to a hold. Accounts can only be added to a hold that has no held_org_unit set. Attempting to add an account to an OU-based hold will result in an error.
See: G Suite Vault API Reference for vault.matters.holds.accounts.create
.
Synopsis
- type MattersHoldsAccountsCreateResource = "v1" :> ("matters" :> (Capture "matterId" Text :> ("holds" :> (Capture "holdId" Text :> ("accounts" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] HeldAccount :> Post '[JSON] HeldAccount))))))))))))
- mattersHoldsAccountsCreate :: Text -> HeldAccount -> Text -> MattersHoldsAccountsCreate
- data MattersHoldsAccountsCreate
- mhacXgafv :: Lens' MattersHoldsAccountsCreate (Maybe Xgafv)
- mhacUploadProtocol :: Lens' MattersHoldsAccountsCreate (Maybe Text)
- mhacHoldId :: Lens' MattersHoldsAccountsCreate Text
- mhacAccessToken :: Lens' MattersHoldsAccountsCreate (Maybe Text)
- mhacUploadType :: Lens' MattersHoldsAccountsCreate (Maybe Text)
- mhacPayload :: Lens' MattersHoldsAccountsCreate HeldAccount
- mhacMatterId :: Lens' MattersHoldsAccountsCreate Text
- mhacCallback :: Lens' MattersHoldsAccountsCreate (Maybe Text)
REST Resource
type MattersHoldsAccountsCreateResource = "v1" :> ("matters" :> (Capture "matterId" Text :> ("holds" :> (Capture "holdId" Text :> ("accounts" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] HeldAccount :> Post '[JSON] HeldAccount)))))))))))) Source #
A resource alias for vault.matters.holds.accounts.create
method which the
MattersHoldsAccountsCreate
request conforms to.
Creating a Request
mattersHoldsAccountsCreate Source #
Creates a value of MattersHoldsAccountsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MattersHoldsAccountsCreate Source #
Adds a HeldAccount to a hold. Accounts can only be added to a hold that has no held_org_unit set. Attempting to add an account to an OU-based hold will result in an error.
See: mattersHoldsAccountsCreate
smart constructor.
Instances
Request Lenses
mhacUploadProtocol :: Lens' MattersHoldsAccountsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
mhacHoldId :: Lens' MattersHoldsAccountsCreate Text Source #
The hold ID.
mhacAccessToken :: Lens' MattersHoldsAccountsCreate (Maybe Text) Source #
OAuth access token.
mhacUploadType :: Lens' MattersHoldsAccountsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
mhacPayload :: Lens' MattersHoldsAccountsCreate HeldAccount Source #
Multipart request metadata.
mhacMatterId :: Lens' MattersHoldsAccountsCreate Text Source #
The matter ID.
mhacCallback :: Lens' MattersHoldsAccountsCreate (Maybe Text) Source #
JSONP