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 one or more new annotations atomically. All annotations must belong to the same annotation set. Caller must have WRITE permission for this annotation set. For optimal performance, batch positionally adjacent annotations together. If the request has a systemic issue, such as an attempt to write to an inaccessible annotation set, the entire RPC will fail accordingly. For lesser data issues, when possible an error will be isolated to the corresponding batch entry in the response; the remaining well formed annotations will be created normally. For details on the requirements for each individual annotation resource, see CreateAnnotation.
See: Genomics API Reference for genomics.annotations.batchCreate
.
- type AnnotationsBatchCreateResource = "v1" :> ("annotations:batchCreate" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchCreateAnnotationsRequest :> Post '[JSON] BatchCreateAnnotationsResponse))))))))))
- annotationsBatchCreate :: BatchCreateAnnotationsRequest -> AnnotationsBatchCreate
- data AnnotationsBatchCreate
- abcXgafv :: Lens' AnnotationsBatchCreate (Maybe Xgafv)
- abcUploadProtocol :: Lens' AnnotationsBatchCreate (Maybe Text)
- abcPp :: Lens' AnnotationsBatchCreate Bool
- abcAccessToken :: Lens' AnnotationsBatchCreate (Maybe Text)
- abcUploadType :: Lens' AnnotationsBatchCreate (Maybe Text)
- abcPayload :: Lens' AnnotationsBatchCreate BatchCreateAnnotationsRequest
- abcBearerToken :: Lens' AnnotationsBatchCreate (Maybe Text)
- abcCallback :: Lens' AnnotationsBatchCreate (Maybe Text)
REST Resource
type AnnotationsBatchCreateResource = "v1" :> ("annotations:batchCreate" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchCreateAnnotationsRequest :> Post '[JSON] BatchCreateAnnotationsResponse)))))))))) Source #
A resource alias for genomics.annotations.batchCreate
method which the
AnnotationsBatchCreate
request conforms to.
Creating a Request
annotationsBatchCreate Source #
Creates a value of AnnotationsBatchCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AnnotationsBatchCreate Source #
Creates one or more new annotations atomically. All annotations must belong to the same annotation set. Caller must have WRITE permission for this annotation set. For optimal performance, batch positionally adjacent annotations together. If the request has a systemic issue, such as an attempt to write to an inaccessible annotation set, the entire RPC will fail accordingly. For lesser data issues, when possible an error will be isolated to the corresponding batch entry in the response; the remaining well formed annotations will be created normally. For details on the requirements for each individual annotation resource, see CreateAnnotation.
See: annotationsBatchCreate
smart constructor.
Request Lenses
abcUploadProtocol :: Lens' AnnotationsBatchCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
abcAccessToken :: Lens' AnnotationsBatchCreate (Maybe Text) Source #
OAuth access token.
abcUploadType :: Lens' AnnotationsBatchCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
abcPayload :: Lens' AnnotationsBatchCreate BatchCreateAnnotationsRequest Source #
Multipart request metadata.
abcBearerToken :: Lens' AnnotationsBatchCreate (Maybe Text) Source #
OAuth bearer token.
abcCallback :: Lens' AnnotationsBatchCreate (Maybe Text) Source #
JSONP