{-# 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.Blobs.FindMissing
(
BlobsFindMissingResource
, blobsFindMissing
, BlobsFindMissing
, bfmXgafv
, bfmUploadProtocol
, bfmAccessToken
, bfmUploadType
, bfmPayload
, bfmInstanceName
, bfmCallback
) where
import Network.Google.Prelude
import Network.Google.RemoteBuildExecution.Types
type BlobsFindMissingResource =
"v2" :>
Capture "instanceName" Text :>
"blobs:findMissing" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
BuildBazelRemoteExecutionV2FindMissingBlobsRequest
:>
Post '[JSON]
BuildBazelRemoteExecutionV2FindMissingBlobsResponse
data BlobsFindMissing = BlobsFindMissing'
{ _bfmXgafv :: !(Maybe Xgafv)
, _bfmUploadProtocol :: !(Maybe Text)
, _bfmAccessToken :: !(Maybe Text)
, _bfmUploadType :: !(Maybe Text)
, _bfmPayload :: !BuildBazelRemoteExecutionV2FindMissingBlobsRequest
, _bfmInstanceName :: !Text
, _bfmCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
blobsFindMissing
:: BuildBazelRemoteExecutionV2FindMissingBlobsRequest
-> Text
-> BlobsFindMissing
blobsFindMissing pBfmPayload_ pBfmInstanceName_ =
BlobsFindMissing'
{ _bfmXgafv = Nothing
, _bfmUploadProtocol = Nothing
, _bfmAccessToken = Nothing
, _bfmUploadType = Nothing
, _bfmPayload = pBfmPayload_
, _bfmInstanceName = pBfmInstanceName_
, _bfmCallback = Nothing
}
bfmXgafv :: Lens' BlobsFindMissing (Maybe Xgafv)
bfmXgafv = lens _bfmXgafv (\ s a -> s{_bfmXgafv = a})
bfmUploadProtocol :: Lens' BlobsFindMissing (Maybe Text)
bfmUploadProtocol
= lens _bfmUploadProtocol
(\ s a -> s{_bfmUploadProtocol = a})
bfmAccessToken :: Lens' BlobsFindMissing (Maybe Text)
bfmAccessToken
= lens _bfmAccessToken
(\ s a -> s{_bfmAccessToken = a})
bfmUploadType :: Lens' BlobsFindMissing (Maybe Text)
bfmUploadType
= lens _bfmUploadType
(\ s a -> s{_bfmUploadType = a})
bfmPayload :: Lens' BlobsFindMissing BuildBazelRemoteExecutionV2FindMissingBlobsRequest
bfmPayload
= lens _bfmPayload (\ s a -> s{_bfmPayload = a})
bfmInstanceName :: Lens' BlobsFindMissing Text
bfmInstanceName
= lens _bfmInstanceName
(\ s a -> s{_bfmInstanceName = a})
bfmCallback :: Lens' BlobsFindMissing (Maybe Text)
bfmCallback
= lens _bfmCallback (\ s a -> s{_bfmCallback = a})
instance GoogleRequest BlobsFindMissing where
type Rs BlobsFindMissing =
BuildBazelRemoteExecutionV2FindMissingBlobsResponse
type Scopes BlobsFindMissing =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient BlobsFindMissing'{..}
= go _bfmInstanceName _bfmXgafv _bfmUploadProtocol
_bfmAccessToken
_bfmUploadType
_bfmCallback
(Just AltJSON)
_bfmPayload
remoteBuildExecutionService
where go
= buildClient
(Proxy :: Proxy BlobsFindMissingResource)
mempty