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 |
Updates an annotation. Caller must have WRITE permission for the associated dataset.
See: Genomics API Reference for genomics.annotations.update
.
- type AnnotationsUpdateResource = "v1" :> ("annotations" :> (Capture "annotationId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" FieldMask :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Annotation :> Put '[JSON] Annotation))))))))))))
- annotationsUpdate :: Annotation -> Text -> AnnotationsUpdate
- data AnnotationsUpdate
- auXgafv :: Lens' AnnotationsUpdate (Maybe Xgafv)
- auUploadProtocol :: Lens' AnnotationsUpdate (Maybe Text)
- auUpdateMask :: Lens' AnnotationsUpdate (Maybe FieldMask)
- auPp :: Lens' AnnotationsUpdate Bool
- auAccessToken :: Lens' AnnotationsUpdate (Maybe Text)
- auUploadType :: Lens' AnnotationsUpdate (Maybe Text)
- auPayload :: Lens' AnnotationsUpdate Annotation
- auBearerToken :: Lens' AnnotationsUpdate (Maybe Text)
- auAnnotationId :: Lens' AnnotationsUpdate Text
- auCallback :: Lens' AnnotationsUpdate (Maybe Text)
REST Resource
type AnnotationsUpdateResource = "v1" :> ("annotations" :> (Capture "annotationId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" FieldMask :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Annotation :> Put '[JSON] Annotation)))))))))))) Source #
A resource alias for genomics.annotations.update
method which the
AnnotationsUpdate
request conforms to.
Creating a Request
Creates a value of AnnotationsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AnnotationsUpdate Source #
Updates an annotation. Caller must have WRITE permission for the associated dataset.
See: annotationsUpdate
smart constructor.
Request Lenses
auUploadProtocol :: Lens' AnnotationsUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
auUpdateMask :: Lens' AnnotationsUpdate (Maybe FieldMask) Source #
An optional mask specifying which fields to update. Mutable fields are name, variant, transcript, and info. If unspecified, all mutable fields will be updated.
auAccessToken :: Lens' AnnotationsUpdate (Maybe Text) Source #
OAuth access token.
auUploadType :: Lens' AnnotationsUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
auPayload :: Lens' AnnotationsUpdate Annotation Source #
Multipart request metadata.
auBearerToken :: Lens' AnnotationsUpdate (Maybe Text) Source #
OAuth bearer token.
auAnnotationId :: Lens' AnnotationsUpdate Text Source #
The ID of the annotation to be updated.
auCallback :: Lens' AnnotationsUpdate (Maybe Text) Source #
JSONP