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 an account as a matter collaborator.
See: G Suite Vault API Reference for vault.matters.addPermissions
.
Synopsis
- type MattersAddPermissionsResource = "v1" :> ("matters" :> (CaptureMode "matterId" "addPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AddMatterPermissionsRequest :> Post '[JSON] MatterPermission)))))))))
- mattersAddPermissions :: AddMatterPermissionsRequest -> Text -> MattersAddPermissions
- data MattersAddPermissions
- mapXgafv :: Lens' MattersAddPermissions (Maybe Xgafv)
- mapUploadProtocol :: Lens' MattersAddPermissions (Maybe Text)
- mapAccessToken :: Lens' MattersAddPermissions (Maybe Text)
- mapUploadType :: Lens' MattersAddPermissions (Maybe Text)
- mapPayload :: Lens' MattersAddPermissions AddMatterPermissionsRequest
- mapMatterId :: Lens' MattersAddPermissions Text
- mapCallback :: Lens' MattersAddPermissions (Maybe Text)
REST Resource
type MattersAddPermissionsResource = "v1" :> ("matters" :> (CaptureMode "matterId" "addPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AddMatterPermissionsRequest :> Post '[JSON] MatterPermission))))))))) Source #
A resource alias for vault.matters.addPermissions
method which the
MattersAddPermissions
request conforms to.
Creating a Request
mattersAddPermissions Source #
Creates a value of MattersAddPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MattersAddPermissions Source #
Adds an account as a matter collaborator.
See: mattersAddPermissions
smart constructor.
Instances
Request Lenses
mapUploadProtocol :: Lens' MattersAddPermissions (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
mapAccessToken :: Lens' MattersAddPermissions (Maybe Text) Source #
OAuth access token.
mapUploadType :: Lens' MattersAddPermissions (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
mapPayload :: Lens' MattersAddPermissions AddMatterPermissionsRequest Source #
Multipart request metadata.
mapMatterId :: Lens' MattersAddPermissions Text Source #
The matter ID.
mapCallback :: Lens' MattersAddPermissions (Maybe Text) Source #
JSONP