{-# 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.Get
(
SpreadsheetsDeveloperMetadataGetResource
, spreadsheetsDeveloperMetadataGet
, SpreadsheetsDeveloperMetadataGet
, sdmgXgafv
, sdmgUploadProtocol
, sdmgMetadataId
, sdmgAccessToken
, sdmgSpreadsheetId
, sdmgUploadType
, sdmgCallback
) where
import Network.Google.Prelude
import Network.Google.Sheets.Types
type SpreadsheetsDeveloperMetadataGetResource =
"v4" :>
"spreadsheets" :>
Capture "spreadsheetId" Text :>
"developerMetadata" :>
Capture "metadataId" (Textual Int32) :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] DeveloperMetadata
data SpreadsheetsDeveloperMetadataGet = SpreadsheetsDeveloperMetadataGet'
{ _sdmgXgafv :: !(Maybe Xgafv)
, _sdmgUploadProtocol :: !(Maybe Text)
, _sdmgMetadataId :: !(Textual Int32)
, _sdmgAccessToken :: !(Maybe Text)
, _sdmgSpreadsheetId :: !Text
, _sdmgUploadType :: !(Maybe Text)
, _sdmgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spreadsheetsDeveloperMetadataGet
:: Int32
-> Text
-> SpreadsheetsDeveloperMetadataGet
spreadsheetsDeveloperMetadataGet pSdmgMetadataId_ pSdmgSpreadsheetId_ =
SpreadsheetsDeveloperMetadataGet'
{ _sdmgXgafv = Nothing
, _sdmgUploadProtocol = Nothing
, _sdmgMetadataId = _Coerce # pSdmgMetadataId_
, _sdmgAccessToken = Nothing
, _sdmgSpreadsheetId = pSdmgSpreadsheetId_
, _sdmgUploadType = Nothing
, _sdmgCallback = Nothing
}
sdmgXgafv :: Lens' SpreadsheetsDeveloperMetadataGet (Maybe Xgafv)
sdmgXgafv
= lens _sdmgXgafv (\ s a -> s{_sdmgXgafv = a})
sdmgUploadProtocol :: Lens' SpreadsheetsDeveloperMetadataGet (Maybe Text)
sdmgUploadProtocol
= lens _sdmgUploadProtocol
(\ s a -> s{_sdmgUploadProtocol = a})
sdmgMetadataId :: Lens' SpreadsheetsDeveloperMetadataGet Int32
sdmgMetadataId
= lens _sdmgMetadataId
(\ s a -> s{_sdmgMetadataId = a})
. _Coerce
sdmgAccessToken :: Lens' SpreadsheetsDeveloperMetadataGet (Maybe Text)
sdmgAccessToken
= lens _sdmgAccessToken
(\ s a -> s{_sdmgAccessToken = a})
sdmgSpreadsheetId :: Lens' SpreadsheetsDeveloperMetadataGet Text
sdmgSpreadsheetId
= lens _sdmgSpreadsheetId
(\ s a -> s{_sdmgSpreadsheetId = a})
sdmgUploadType :: Lens' SpreadsheetsDeveloperMetadataGet (Maybe Text)
sdmgUploadType
= lens _sdmgUploadType
(\ s a -> s{_sdmgUploadType = a})
sdmgCallback :: Lens' SpreadsheetsDeveloperMetadataGet (Maybe Text)
sdmgCallback
= lens _sdmgCallback (\ s a -> s{_sdmgCallback = a})
instance GoogleRequest
SpreadsheetsDeveloperMetadataGet where
type Rs SpreadsheetsDeveloperMetadataGet =
DeveloperMetadata
type Scopes SpreadsheetsDeveloperMetadataGet =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
requestClient SpreadsheetsDeveloperMetadataGet'{..}
= go _sdmgSpreadsheetId _sdmgMetadataId _sdmgXgafv
_sdmgUploadProtocol
_sdmgAccessToken
_sdmgUploadType
_sdmgCallback
(Just AltJSON)
sheetsService
where go
= buildClient
(Proxy ::
Proxy SpreadsheetsDeveloperMetadataGetResource)
mempty