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 |
Uploads media for indexing. The upload endpoint supports direct and resumable upload protocols and is intended for large items that can not be inlined during index requests. To index large content: 1. Call upload to begin a session and get the item reference. 1. Upload the content using the item reference's resource name. 1. Call index with the item reference as the content. For additional information, see Create a content connector using the REST API.
See: Cloud Search API Reference for cloudsearch.media.upload
.
Synopsis
- type MediaUploadResource = ("v1" :> ("media" :> (Capture "resourceName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Media :> Post '[JSON] Media)))))))))) :<|> ("upload" :> ("v1" :> ("media" :> (Capture "resourceName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Media :> Post '[JSON] Media))))))))))))
- mediaUpload :: Text -> Media -> MediaUpload'
- data MediaUpload'
- muXgafv :: Lens' MediaUpload' (Maybe Xgafv)
- muUploadProtocol :: Lens' MediaUpload' (Maybe Text)
- muResourceName :: Lens' MediaUpload' Text
- muAccessToken :: Lens' MediaUpload' (Maybe Text)
- muUploadType :: Lens' MediaUpload' (Maybe Text)
- muPayload :: Lens' MediaUpload' Media
- muCallback :: Lens' MediaUpload' (Maybe Text)
REST Resource
type MediaUploadResource = ("v1" :> ("media" :> (Capture "resourceName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Media :> Post '[JSON] Media)))))))))) :<|> ("upload" :> ("v1" :> ("media" :> (Capture "resourceName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Media :> Post '[JSON] Media)))))))))))) Source #
A resource alias for cloudsearch.media.upload
method which the
MediaUpload'
request conforms to.
Creating a Request
Creates a value of MediaUpload
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MediaUpload' Source #
Uploads media for indexing. The upload endpoint supports direct and resumable upload protocols and is intended for large items that can not be inlined during index requests. To index large content: 1. Call upload to begin a session and get the item reference. 1. Upload the content using the item reference's resource name. 1. Call index with the item reference as the content. For additional information, see Create a content connector using the REST API.
See: mediaUpload
smart constructor.
Instances
Request Lenses
muUploadProtocol :: Lens' MediaUpload' (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
muResourceName :: Lens' MediaUpload' Text Source #
Name of the media that is being downloaded. See ReadRequest.resource_name.
muAccessToken :: Lens' MediaUpload' (Maybe Text) Source #
OAuth access token.
muUploadType :: Lens' MediaUpload' (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
muCallback :: Lens' MediaUpload' (Maybe Text) Source #
JSONP