{-# 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.Sheets.Spreadsheets.DeveloperMetadata.Search
(
SpreadsheetsDeveloperMetadataSearchResource
, spreadsheetsDeveloperMetadataSearch
, SpreadsheetsDeveloperMetadataSearch
, sdmsXgafv
, sdmsUploadProtocol
, sdmsAccessToken
, sdmsSpreadsheetId
, sdmsUploadType
, sdmsPayload
, sdmsCallback
) where
import Network.Google.Prelude
import Network.Google.Sheets.Types
type SpreadsheetsDeveloperMetadataSearchResource =
"v4" :>
"spreadsheets" :>
Capture "spreadsheetId" Text :>
"developerMetadata:search" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SearchDeveloperMetadataRequest :>
Post '[JSON] SearchDeveloperMetadataResponse
data SpreadsheetsDeveloperMetadataSearch = SpreadsheetsDeveloperMetadataSearch'
{ _sdmsXgafv :: !(Maybe Xgafv)
, _sdmsUploadProtocol :: !(Maybe Text)
, _sdmsAccessToken :: !(Maybe Text)
, _sdmsSpreadsheetId :: !Text
, _sdmsUploadType :: !(Maybe Text)
, _sdmsPayload :: !SearchDeveloperMetadataRequest
, _sdmsCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spreadsheetsDeveloperMetadataSearch
:: Text
-> SearchDeveloperMetadataRequest
-> SpreadsheetsDeveloperMetadataSearch
spreadsheetsDeveloperMetadataSearch pSdmsSpreadsheetId_ pSdmsPayload_ =
SpreadsheetsDeveloperMetadataSearch'
{ _sdmsXgafv = Nothing
, _sdmsUploadProtocol = Nothing
, _sdmsAccessToken = Nothing
, _sdmsSpreadsheetId = pSdmsSpreadsheetId_
, _sdmsUploadType = Nothing
, _sdmsPayload = pSdmsPayload_
, _sdmsCallback = Nothing
}
sdmsXgafv :: Lens' SpreadsheetsDeveloperMetadataSearch (Maybe Xgafv)
sdmsXgafv
= lens _sdmsXgafv (\ s a -> s{_sdmsXgafv = a})
sdmsUploadProtocol :: Lens' SpreadsheetsDeveloperMetadataSearch (Maybe Text)
sdmsUploadProtocol
= lens _sdmsUploadProtocol
(\ s a -> s{_sdmsUploadProtocol = a})
sdmsAccessToken :: Lens' SpreadsheetsDeveloperMetadataSearch (Maybe Text)
sdmsAccessToken
= lens _sdmsAccessToken
(\ s a -> s{_sdmsAccessToken = a})
sdmsSpreadsheetId :: Lens' SpreadsheetsDeveloperMetadataSearch Text
sdmsSpreadsheetId
= lens _sdmsSpreadsheetId
(\ s a -> s{_sdmsSpreadsheetId = a})
sdmsUploadType :: Lens' SpreadsheetsDeveloperMetadataSearch (Maybe Text)
sdmsUploadType
= lens _sdmsUploadType
(\ s a -> s{_sdmsUploadType = a})
sdmsPayload :: Lens' SpreadsheetsDeveloperMetadataSearch SearchDeveloperMetadataRequest
sdmsPayload
= lens _sdmsPayload (\ s a -> s{_sdmsPayload = a})
sdmsCallback :: Lens' SpreadsheetsDeveloperMetadataSearch (Maybe Text)
sdmsCallback
= lens _sdmsCallback (\ s a -> s{_sdmsCallback = a})
instance GoogleRequest
SpreadsheetsDeveloperMetadataSearch where
type Rs SpreadsheetsDeveloperMetadataSearch =
SearchDeveloperMetadataResponse
type Scopes SpreadsheetsDeveloperMetadataSearch =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
requestClient
SpreadsheetsDeveloperMetadataSearch'{..}
= go _sdmsSpreadsheetId _sdmsXgafv
_sdmsUploadProtocol
_sdmsAccessToken
_sdmsUploadType
_sdmsCallback
(Just AltJSON)
_sdmsPayload
sheetsService
where go
= buildClient
(Proxy ::
Proxy SpreadsheetsDeveloperMetadataSearchResource)
mempty