{-# 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.Workers.CheckIn
(
WorkersCheckInResource
, workersCheckIn
, WorkersCheckIn
, wciXgafv
, wciUploadProtocol
, wciAccessToken
, wciUploadType
, wciPayload
, wciId
, wciCallback
) where
import Network.Google.Genomics.Types
import Network.Google.Prelude
type WorkersCheckInResource =
"v2alpha1" :>
"workers" :>
CaptureMode "id" "checkIn" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] CheckInRequest :>
Post '[JSON] CheckInResponse
data WorkersCheckIn = WorkersCheckIn'
{ _wciXgafv :: !(Maybe Xgafv)
, _wciUploadProtocol :: !(Maybe Text)
, _wciAccessToken :: !(Maybe Text)
, _wciUploadType :: !(Maybe Text)
, _wciPayload :: !CheckInRequest
, _wciId :: !Text
, _wciCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
workersCheckIn
:: CheckInRequest
-> Text
-> WorkersCheckIn
workersCheckIn pWciPayload_ pWciId_ =
WorkersCheckIn'
{ _wciXgafv = Nothing
, _wciUploadProtocol = Nothing
, _wciAccessToken = Nothing
, _wciUploadType = Nothing
, _wciPayload = pWciPayload_
, _wciId = pWciId_
, _wciCallback = Nothing
}
wciXgafv :: Lens' WorkersCheckIn (Maybe Xgafv)
wciXgafv = lens _wciXgafv (\ s a -> s{_wciXgafv = a})
wciUploadProtocol :: Lens' WorkersCheckIn (Maybe Text)
wciUploadProtocol
= lens _wciUploadProtocol
(\ s a -> s{_wciUploadProtocol = a})
wciAccessToken :: Lens' WorkersCheckIn (Maybe Text)
wciAccessToken
= lens _wciAccessToken
(\ s a -> s{_wciAccessToken = a})
wciUploadType :: Lens' WorkersCheckIn (Maybe Text)
wciUploadType
= lens _wciUploadType
(\ s a -> s{_wciUploadType = a})
wciPayload :: Lens' WorkersCheckIn CheckInRequest
wciPayload
= lens _wciPayload (\ s a -> s{_wciPayload = a})
wciId :: Lens' WorkersCheckIn Text
wciId = lens _wciId (\ s a -> s{_wciId = a})
wciCallback :: Lens' WorkersCheckIn (Maybe Text)
wciCallback
= lens _wciCallback (\ s a -> s{_wciCallback = a})
instance GoogleRequest WorkersCheckIn where
type Rs WorkersCheckIn = CheckInResponse
type Scopes WorkersCheckIn =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/genomics"]
requestClient WorkersCheckIn'{..}
= go _wciId _wciXgafv _wciUploadProtocol
_wciAccessToken
_wciUploadType
_wciCallback
(Just AltJSON)
_wciPayload
genomicsService
where go
= buildClient (Proxy :: Proxy WorkersCheckInResource)
mempty