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 |
Updates Item ACL, metadata, and content. It will insert the Item if it does not exist. This method does not support partial updates. Fields with no provided values are cleared out in the Cloud Search index.
See: Cloud Search API Reference for cloudsearch.indexing.datasources.items.index
.
Synopsis
- type IndexingDatasourcesItemsIndexResource = "v1" :> ("indexing" :> (CaptureMode "name" "index" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] IndexItemRequest :> Post '[JSON] Operation)))))))))
- indexingDatasourcesItemsIndex :: IndexItemRequest -> Text -> IndexingDatasourcesItemsIndex
- data IndexingDatasourcesItemsIndex
- idiiXgafv :: Lens' IndexingDatasourcesItemsIndex (Maybe Xgafv)
- idiiUploadProtocol :: Lens' IndexingDatasourcesItemsIndex (Maybe Text)
- idiiAccessToken :: Lens' IndexingDatasourcesItemsIndex (Maybe Text)
- idiiUploadType :: Lens' IndexingDatasourcesItemsIndex (Maybe Text)
- idiiPayload :: Lens' IndexingDatasourcesItemsIndex IndexItemRequest
- idiiName :: Lens' IndexingDatasourcesItemsIndex Text
- idiiCallback :: Lens' IndexingDatasourcesItemsIndex (Maybe Text)
REST Resource
type IndexingDatasourcesItemsIndexResource = "v1" :> ("indexing" :> (CaptureMode "name" "index" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] IndexItemRequest :> Post '[JSON] Operation))))))))) Source #
A resource alias for cloudsearch.indexing.datasources.items.index
method which the
IndexingDatasourcesItemsIndex
request conforms to.
Creating a Request
indexingDatasourcesItemsIndex Source #
Creates a value of IndexingDatasourcesItemsIndex
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data IndexingDatasourcesItemsIndex Source #
Updates Item ACL, metadata, and content. It will insert the Item if it does not exist. This method does not support partial updates. Fields with no provided values are cleared out in the Cloud Search index.
See: indexingDatasourcesItemsIndex
smart constructor.
Instances
Request Lenses
idiiUploadProtocol :: Lens' IndexingDatasourcesItemsIndex (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
idiiAccessToken :: Lens' IndexingDatasourcesItemsIndex (Maybe Text) Source #
OAuth access token.
idiiUploadType :: Lens' IndexingDatasourcesItemsIndex (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
idiiPayload :: Lens' IndexingDatasourcesItemsIndex IndexItemRequest Source #
Multipart request metadata.
idiiName :: Lens' IndexingDatasourcesItemsIndex Text Source #
Name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters.
idiiCallback :: Lens' IndexingDatasourcesItemsIndex (Maybe Text) Source #
JSONP