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 |
Creates an upload session for uploading item content. For items smaller than 100 KiB, it's easier to embed the content inline within update.
See: Cloud Search API Reference for cloudsearch.indexing.datasources.items.upload
.
Synopsis
- type IndexingDatasourcesItemsUploadResource = "v1" :> ("indexing" :> (CaptureMode "name" "upload" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] StartUploadItemRequest :> Post '[JSON] UploadItemRef)))))))))
- indexingDatasourcesItemsUpload :: StartUploadItemRequest -> Text -> IndexingDatasourcesItemsUpload
- data IndexingDatasourcesItemsUpload
- indXgafv :: Lens' IndexingDatasourcesItemsUpload (Maybe Xgafv)
- indUploadProtocol :: Lens' IndexingDatasourcesItemsUpload (Maybe Text)
- indAccessToken :: Lens' IndexingDatasourcesItemsUpload (Maybe Text)
- indUploadType :: Lens' IndexingDatasourcesItemsUpload (Maybe Text)
- indPayload :: Lens' IndexingDatasourcesItemsUpload StartUploadItemRequest
- indName :: Lens' IndexingDatasourcesItemsUpload Text
- indCallback :: Lens' IndexingDatasourcesItemsUpload (Maybe Text)
REST Resource
type IndexingDatasourcesItemsUploadResource = "v1" :> ("indexing" :> (CaptureMode "name" "upload" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] StartUploadItemRequest :> Post '[JSON] UploadItemRef))))))))) Source #
A resource alias for cloudsearch.indexing.datasources.items.upload
method which the
IndexingDatasourcesItemsUpload
request conforms to.
Creating a Request
indexingDatasourcesItemsUpload Source #
Creates a value of IndexingDatasourcesItemsUpload
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data IndexingDatasourcesItemsUpload Source #
Creates an upload session for uploading item content. For items smaller than 100 KiB, it's easier to embed the content inline within update.
See: indexingDatasourcesItemsUpload
smart constructor.
Instances
Request Lenses
indUploadProtocol :: Lens' IndexingDatasourcesItemsUpload (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
indAccessToken :: Lens' IndexingDatasourcesItemsUpload (Maybe Text) Source #
OAuth access token.
indUploadType :: Lens' IndexingDatasourcesItemsUpload (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
indPayload :: Lens' IndexingDatasourcesItemsUpload StartUploadItemRequest Source #
Multipart request metadata.
indName :: Lens' IndexingDatasourcesItemsUpload Text Source #
Name of the Data Source to start a resumable upload. Format: datasources/{source_id}
indCallback :: Lens' IndexingDatasourcesItemsUpload (Maybe Text) Source #
JSONP