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 |
Polls for unreserved items from the indexing queue and marks a set as reserved, starting with items that have the oldest timestamp from the highest priority ItemStatus. The priority order is as follows: ERROR MODIFIED NEW_ITEM ACCEPTED Reserving items ensures that polling from other threads cannot create overlapping sets. After handling the reserved items, the client should put items back into the unreserved state, either by calling index, or by calling push with the type REQUEUE. Items automatically become available (unreserved) after 4 hours even if no update or push method is called.
See: Cloud Search API Reference for cloudsearch.indexing.datasources.items.poll
.
Synopsis
- type IndexingDatasourcesItemsPollResource = "v1" :> ("indexing" :> (Capture "name" Text :> ("items:poll" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PollItemsRequest :> Post '[JSON] PollItemsResponse))))))))))
- indexingDatasourcesItemsPoll :: PollItemsRequest -> Text -> IndexingDatasourcesItemsPoll
- data IndexingDatasourcesItemsPoll
- idipdXgafv :: Lens' IndexingDatasourcesItemsPoll (Maybe Xgafv)
- idipdUploadProtocol :: Lens' IndexingDatasourcesItemsPoll (Maybe Text)
- idipdAccessToken :: Lens' IndexingDatasourcesItemsPoll (Maybe Text)
- idipdUploadType :: Lens' IndexingDatasourcesItemsPoll (Maybe Text)
- idipdPayload :: Lens' IndexingDatasourcesItemsPoll PollItemsRequest
- idipdName :: Lens' IndexingDatasourcesItemsPoll Text
- idipdCallback :: Lens' IndexingDatasourcesItemsPoll (Maybe Text)
REST Resource
type IndexingDatasourcesItemsPollResource = "v1" :> ("indexing" :> (Capture "name" Text :> ("items:poll" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PollItemsRequest :> Post '[JSON] PollItemsResponse)))))))))) Source #
A resource alias for cloudsearch.indexing.datasources.items.poll
method which the
IndexingDatasourcesItemsPoll
request conforms to.
Creating a Request
indexingDatasourcesItemsPoll Source #
Creates a value of IndexingDatasourcesItemsPoll
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data IndexingDatasourcesItemsPoll Source #
Polls for unreserved items from the indexing queue and marks a set as reserved, starting with items that have the oldest timestamp from the highest priority ItemStatus. The priority order is as follows: ERROR MODIFIED NEW_ITEM ACCEPTED Reserving items ensures that polling from other threads cannot create overlapping sets. After handling the reserved items, the client should put items back into the unreserved state, either by calling index, or by calling push with the type REQUEUE. Items automatically become available (unreserved) after 4 hours even if no update or push method is called.
See: indexingDatasourcesItemsPoll
smart constructor.
Instances
Request Lenses
idipdXgafv :: Lens' IndexingDatasourcesItemsPoll (Maybe Xgafv) Source #
V1 error format.
idipdUploadProtocol :: Lens' IndexingDatasourcesItemsPoll (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
idipdAccessToken :: Lens' IndexingDatasourcesItemsPoll (Maybe Text) Source #
OAuth access token.
idipdUploadType :: Lens' IndexingDatasourcesItemsPoll (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
idipdPayload :: Lens' IndexingDatasourcesItemsPoll PollItemsRequest Source #
Multipart request metadata.
idipdName :: Lens' IndexingDatasourcesItemsPoll Text Source #
Name of the Data Source to poll items. Format: datasources/{source_id}
idipdCallback :: Lens' IndexingDatasourcesItemsPoll (Maybe Text) Source #
JSONP