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 |
Checks whether an item is accessible by specified principal.
See: Cloud Search API Reference for cloudsearch.debug.datasources.items.checkAccess
.
Synopsis
- type DebugDatasourcesItemsCheckAccessResource = "v1" :> ("debug" :> (CaptureMode "name" "checkAccess" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "debugOptions.enableDebugging" Bool :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Principal :> Post '[JSON] CheckAccessResponse))))))))))
- debugDatasourcesItemsCheckAccess :: Principal -> Text -> DebugDatasourcesItemsCheckAccess
- data DebugDatasourcesItemsCheckAccess
- ddicaXgafv :: Lens' DebugDatasourcesItemsCheckAccess (Maybe Xgafv)
- ddicaUploadProtocol :: Lens' DebugDatasourcesItemsCheckAccess (Maybe Text)
- ddicaAccessToken :: Lens' DebugDatasourcesItemsCheckAccess (Maybe Text)
- ddicaUploadType :: Lens' DebugDatasourcesItemsCheckAccess (Maybe Text)
- ddicaPayload :: Lens' DebugDatasourcesItemsCheckAccess Principal
- ddicaName :: Lens' DebugDatasourcesItemsCheckAccess Text
- ddicaDebugOptionsEnableDebugging :: Lens' DebugDatasourcesItemsCheckAccess (Maybe Bool)
- ddicaCallback :: Lens' DebugDatasourcesItemsCheckAccess (Maybe Text)
REST Resource
type DebugDatasourcesItemsCheckAccessResource = "v1" :> ("debug" :> (CaptureMode "name" "checkAccess" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "debugOptions.enableDebugging" Bool :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Principal :> Post '[JSON] CheckAccessResponse)))))))))) Source #
A resource alias for cloudsearch.debug.datasources.items.checkAccess
method which the
DebugDatasourcesItemsCheckAccess
request conforms to.
Creating a Request
debugDatasourcesItemsCheckAccess Source #
Creates a value of DebugDatasourcesItemsCheckAccess
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DebugDatasourcesItemsCheckAccess Source #
Checks whether an item is accessible by specified principal.
See: debugDatasourcesItemsCheckAccess
smart constructor.
Instances
Request Lenses
ddicaXgafv :: Lens' DebugDatasourcesItemsCheckAccess (Maybe Xgafv) Source #
V1 error format.
ddicaUploadProtocol :: Lens' DebugDatasourcesItemsCheckAccess (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ddicaAccessToken :: Lens' DebugDatasourcesItemsCheckAccess (Maybe Text) Source #
OAuth access token.
ddicaUploadType :: Lens' DebugDatasourcesItemsCheckAccess (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ddicaPayload :: Lens' DebugDatasourcesItemsCheckAccess Principal Source #
Multipart request metadata.
ddicaName :: Lens' DebugDatasourcesItemsCheckAccess Text Source #
Item name, format: datasources/{source_id}/items/{item_id}
ddicaDebugOptionsEnableDebugging :: Lens' DebugDatasourcesItemsCheckAccess (Maybe Bool) Source #
If set, the request will enable debugging features of Cloud Search. Only turn on this field, if asked by Google to help with debugging.