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. Caller must have WRITE permission for the associated annotation set. The following fields are required: * annotationSetId * referenceName or referenceId ### Transcripts For annotations of type TRANSCRIPT, the following fields of transcript must be provided: * exons.start * exons.end All other fields may be optionally specified, unless documented as being server-generated (for example, the `id` field). The annotated range must be no longer than 100Mbp (mega base pairs). See the Annotation resource for additional restrictions on each field.
See: Genomics API Reference for genomics.annotations.create
.
- type AnnotationsCreateResource = "v1" :> ("annotations" :> (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] Annotation :> Post '[JSON] Annotation))))))))))
- annotationsCreate :: Annotation -> AnnotationsCreate
- data AnnotationsCreate
- acXgafv :: Lens' AnnotationsCreate (Maybe Xgafv)
- acUploadProtocol :: Lens' AnnotationsCreate (Maybe Text)
- acPp :: Lens' AnnotationsCreate Bool
- acAccessToken :: Lens' AnnotationsCreate (Maybe Text)
- acUploadType :: Lens' AnnotationsCreate (Maybe Text)
- acPayload :: Lens' AnnotationsCreate Annotation
- acBearerToken :: Lens' AnnotationsCreate (Maybe Text)
- acCallback :: Lens' AnnotationsCreate (Maybe Text)
REST Resource
type AnnotationsCreateResource = "v1" :> ("annotations" :> (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] Annotation :> Post '[JSON] Annotation)))))))))) Source #
A resource alias for genomics.annotations.create
method which the
AnnotationsCreate
request conforms to.
Creating a Request
Creates a value of AnnotationsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AnnotationsCreate Source #
Creates a new annotation. Caller must have WRITE permission for the associated annotation set. The following fields are required: * annotationSetId * referenceName or referenceId ### Transcripts For annotations of type TRANSCRIPT, the following fields of transcript must be provided: * exons.start * exons.end All other fields may be optionally specified, unless documented as being server-generated (for example, the `id` field). The annotated range must be no longer than 100Mbp (mega base pairs). See the Annotation resource for additional restrictions on each field.
See: annotationsCreate
smart constructor.
Request Lenses
acUploadProtocol :: Lens' AnnotationsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
acAccessToken :: Lens' AnnotationsCreate (Maybe Text) Source #
OAuth access token.
acUploadType :: Lens' AnnotationsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
acPayload :: Lens' AnnotationsCreate Annotation Source #
Multipart request metadata.
acBearerToken :: Lens' AnnotationsCreate (Maybe Text) Source #
OAuth bearer token.
acCallback :: Lens' AnnotationsCreate (Maybe Text) Source #
JSONP