| Copyright | (c) 2015 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 |
Network.Google.Resource.Genomics.Variants.Create
Description
Creates a new variant.
See: API Reference for genomics.variants.create.
- type VariantsCreateResource = "v1" :> ("variants" :> (QueryParam "$.xgafv" Text :> (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]` Variant :> Post `[JSON]` Variant))))))))))
- variantsCreate :: Variant -> VariantsCreate
- data VariantsCreate
- vcXgafv :: Lens' VariantsCreate (Maybe Text)
- vcUploadProtocol :: Lens' VariantsCreate (Maybe Text)
- vcPp :: Lens' VariantsCreate Bool
- vcAccessToken :: Lens' VariantsCreate (Maybe Text)
- vcUploadType :: Lens' VariantsCreate (Maybe Text)
- vcPayload :: Lens' VariantsCreate Variant
- vcBearerToken :: Lens' VariantsCreate (Maybe Text)
- vcCallback :: Lens' VariantsCreate (Maybe Text)
REST Resource
type VariantsCreateResource = "v1" :> ("variants" :> (QueryParam "$.xgafv" Text :> (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]` Variant :> Post `[JSON]` Variant)))))))))) Source
A resource alias for genomics.variants.create method which the
VariantsCreate request conforms to.
Creating a Request
Arguments
| :: Variant | |
| -> VariantsCreate |
Creates a value of VariantsCreate with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data VariantsCreate Source
Creates a new variant.
See: variantsCreate smart constructor.
Request Lenses
vcUploadProtocol :: Lens' VariantsCreate (Maybe Text) Source
Upload protocol for media (e.g. "raw", "multipart").
vcPp :: Lens' VariantsCreate Bool Source
Pretty-print response.
vcAccessToken :: Lens' VariantsCreate (Maybe Text) Source
OAuth access token.
vcUploadType :: Lens' VariantsCreate (Maybe Text) Source
Legacy upload protocol for media (e.g. "media", "multipart").
vcPayload :: Lens' VariantsCreate Variant Source
Multipart request metadata.
vcBearerToken :: Lens' VariantsCreate (Maybe Text) Source
OAuth bearer token.
vcCallback :: Lens' VariantsCreate (Maybe Text) Source
JSONP