{-# 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.RemoteBuildExecution.ActionResults.Get
(
ActionResultsGetResource
, actionResultsGet
, ActionResultsGet
, argSizeBytes
, argXgafv
, argHash
, argUploadProtocol
, argAccessToken
, argUploadType
, argInstanceName
, argCallback
) where
import Network.Google.Prelude
import Network.Google.RemoteBuildExecution.Types
type ActionResultsGetResource =
"v2" :>
Capture "instanceName" Text :>
"actionResults" :>
Capture "hash" Text :>
Capture "sizeBytes" (Textual Int64) :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] BuildBazelRemoteExecutionV2ActionResult
data ActionResultsGet = ActionResultsGet'
{ _argSizeBytes :: !(Textual Int64)
, _argXgafv :: !(Maybe Xgafv)
, _argHash :: !Text
, _argUploadProtocol :: !(Maybe Text)
, _argAccessToken :: !(Maybe Text)
, _argUploadType :: !(Maybe Text)
, _argInstanceName :: !Text
, _argCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
actionResultsGet
:: Int64
-> Text
-> Text
-> ActionResultsGet
actionResultsGet pArgSizeBytes_ pArgHash_ pArgInstanceName_ =
ActionResultsGet'
{ _argSizeBytes = _Coerce # pArgSizeBytes_
, _argXgafv = Nothing
, _argHash = pArgHash_
, _argUploadProtocol = Nothing
, _argAccessToken = Nothing
, _argUploadType = Nothing
, _argInstanceName = pArgInstanceName_
, _argCallback = Nothing
}
argSizeBytes :: Lens' ActionResultsGet Int64
argSizeBytes
= lens _argSizeBytes (\ s a -> s{_argSizeBytes = a})
. _Coerce
argXgafv :: Lens' ActionResultsGet (Maybe Xgafv)
argXgafv = lens _argXgafv (\ s a -> s{_argXgafv = a})
argHash :: Lens' ActionResultsGet Text
argHash = lens _argHash (\ s a -> s{_argHash = a})
argUploadProtocol :: Lens' ActionResultsGet (Maybe Text)
argUploadProtocol
= lens _argUploadProtocol
(\ s a -> s{_argUploadProtocol = a})
argAccessToken :: Lens' ActionResultsGet (Maybe Text)
argAccessToken
= lens _argAccessToken
(\ s a -> s{_argAccessToken = a})
argUploadType :: Lens' ActionResultsGet (Maybe Text)
argUploadType
= lens _argUploadType
(\ s a -> s{_argUploadType = a})
argInstanceName :: Lens' ActionResultsGet Text
argInstanceName
= lens _argInstanceName
(\ s a -> s{_argInstanceName = a})
argCallback :: Lens' ActionResultsGet (Maybe Text)
argCallback
= lens _argCallback (\ s a -> s{_argCallback = a})
instance GoogleRequest ActionResultsGet where
type Rs ActionResultsGet =
BuildBazelRemoteExecutionV2ActionResult
type Scopes ActionResultsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ActionResultsGet'{..}
= go _argInstanceName _argHash _argSizeBytes
_argXgafv
_argUploadProtocol
_argAccessToken
_argUploadType
_argCallback
(Just AltJSON)
remoteBuildExecutionService
where go
= buildClient
(Proxy :: Proxy ActionResultsGetResource)
mempty