{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Genomics.Pipelines.Run
(
PipelinesRunResource
, pipelinesRun
, PipelinesRun
, prXgafv
, prUploadProtocol
, prAccessToken
, prUploadType
, prPayload
, prCallback
) where
import Network.Google.Genomics.Types
import Network.Google.Prelude
type PipelinesRunResource =
"v2alpha1" :>
"pipelines:run" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RunPipelineRequest :>
Post '[JSON] Operation
data PipelinesRun = PipelinesRun'
{ _prXgafv :: !(Maybe Xgafv)
, _prUploadProtocol :: !(Maybe Text)
, _prAccessToken :: !(Maybe Text)
, _prUploadType :: !(Maybe Text)
, _prPayload :: !RunPipelineRequest
, _prCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
pipelinesRun
:: RunPipelineRequest
-> PipelinesRun
pipelinesRun pPrPayload_ =
PipelinesRun'
{ _prXgafv = Nothing
, _prUploadProtocol = Nothing
, _prAccessToken = Nothing
, _prUploadType = Nothing
, _prPayload = pPrPayload_
, _prCallback = Nothing
}
prXgafv :: Lens' PipelinesRun (Maybe Xgafv)
prXgafv = lens _prXgafv (\ s a -> s{_prXgafv = a})
prUploadProtocol :: Lens' PipelinesRun (Maybe Text)
prUploadProtocol
= lens _prUploadProtocol
(\ s a -> s{_prUploadProtocol = a})
prAccessToken :: Lens' PipelinesRun (Maybe Text)
prAccessToken
= lens _prAccessToken
(\ s a -> s{_prAccessToken = a})
prUploadType :: Lens' PipelinesRun (Maybe Text)
prUploadType
= lens _prUploadType (\ s a -> s{_prUploadType = a})
prPayload :: Lens' PipelinesRun RunPipelineRequest
prPayload
= lens _prPayload (\ s a -> s{_prPayload = a})
prCallback :: Lens' PipelinesRun (Maybe Text)
prCallback
= lens _prCallback (\ s a -> s{_prCallback = a})
instance GoogleRequest PipelinesRun where
type Rs PipelinesRun = Operation
type Scopes PipelinesRun =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/genomics"]
requestClient PipelinesRun'{..}
= go _prXgafv _prUploadProtocol _prAccessToken
_prUploadType
_prCallback
(Just AltJSON)
_prPayload
genomicsService
where go
= buildClient (Proxy :: Proxy PipelinesRunResource)
mempty