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 a new annotation set. Caller must have WRITE permission for the associated dataset. The following fields are required: * datasetId * referenceSetId All other fields may be optionally specified, unless documented as being server-generated (for example, the `id` field).
See: Genomics API Reference for genomics.annotationsets.create
.
- type AnnotationSetsCreateResource = "v1" :> ("annotationsets" :> (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] AnnotationSet :> Post '[JSON] AnnotationSet))))))))))
- annotationSetsCreate :: AnnotationSet -> AnnotationSetsCreate
- data AnnotationSetsCreate
- ascXgafv :: Lens' AnnotationSetsCreate (Maybe Xgafv)
- ascUploadProtocol :: Lens' AnnotationSetsCreate (Maybe Text)
- ascPp :: Lens' AnnotationSetsCreate Bool
- ascAccessToken :: Lens' AnnotationSetsCreate (Maybe Text)
- ascUploadType :: Lens' AnnotationSetsCreate (Maybe Text)
- ascPayload :: Lens' AnnotationSetsCreate AnnotationSet
- ascBearerToken :: Lens' AnnotationSetsCreate (Maybe Text)
- ascCallback :: Lens' AnnotationSetsCreate (Maybe Text)
REST Resource
type AnnotationSetsCreateResource = "v1" :> ("annotationsets" :> (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] AnnotationSet :> Post '[JSON] AnnotationSet)))))))))) Source #
A resource alias for genomics.annotationsets.create
method which the
AnnotationSetsCreate
request conforms to.
Creating a Request
Creates a value of AnnotationSetsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AnnotationSetsCreate Source #
Creates a new annotation set. Caller must have WRITE permission for the associated dataset. The following fields are required: * datasetId * referenceSetId All other fields may be optionally specified, unless documented as being server-generated (for example, the `id` field).
See: annotationSetsCreate
smart constructor.
Request Lenses
ascUploadProtocol :: Lens' AnnotationSetsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ascAccessToken :: Lens' AnnotationSetsCreate (Maybe Text) Source #
OAuth access token.
ascUploadType :: Lens' AnnotationSetsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ascPayload :: Lens' AnnotationSetsCreate AnnotationSet Source #
Multipart request metadata.
ascBearerToken :: Lens' AnnotationSetsCreate (Maybe Text) Source #
OAuth bearer token.
ascCallback :: Lens' AnnotationSetsCreate (Maybe Text) Source #
JSONP