{-# 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.BinaryAuthorization.Projects.Attestors.Get
(
ProjectsAttestorsGetResource
, projectsAttestorsGet
, ProjectsAttestorsGet
, pagXgafv
, pagUploadProtocol
, pagAccessToken
, pagUploadType
, pagName
, pagCallback
) where
import Network.Google.BinaryAuthorization.Types
import Network.Google.Prelude
type ProjectsAttestorsGetResource =
"v1beta1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Attestor
data ProjectsAttestorsGet = ProjectsAttestorsGet'
{ _pagXgafv :: !(Maybe Xgafv)
, _pagUploadProtocol :: !(Maybe Text)
, _pagAccessToken :: !(Maybe Text)
, _pagUploadType :: !(Maybe Text)
, _pagName :: !Text
, _pagCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAttestorsGet
:: Text
-> ProjectsAttestorsGet
projectsAttestorsGet pPagName_ =
ProjectsAttestorsGet'
{ _pagXgafv = Nothing
, _pagUploadProtocol = Nothing
, _pagAccessToken = Nothing
, _pagUploadType = Nothing
, _pagName = pPagName_
, _pagCallback = Nothing
}
pagXgafv :: Lens' ProjectsAttestorsGet (Maybe Xgafv)
pagXgafv = lens _pagXgafv (\ s a -> s{_pagXgafv = a})
pagUploadProtocol :: Lens' ProjectsAttestorsGet (Maybe Text)
pagUploadProtocol
= lens _pagUploadProtocol
(\ s a -> s{_pagUploadProtocol = a})
pagAccessToken :: Lens' ProjectsAttestorsGet (Maybe Text)
pagAccessToken
= lens _pagAccessToken
(\ s a -> s{_pagAccessToken = a})
pagUploadType :: Lens' ProjectsAttestorsGet (Maybe Text)
pagUploadType
= lens _pagUploadType
(\ s a -> s{_pagUploadType = a})
pagName :: Lens' ProjectsAttestorsGet Text
pagName = lens _pagName (\ s a -> s{_pagName = a})
pagCallback :: Lens' ProjectsAttestorsGet (Maybe Text)
pagCallback
= lens _pagCallback (\ s a -> s{_pagCallback = a})
instance GoogleRequest ProjectsAttestorsGet where
type Rs ProjectsAttestorsGet = Attestor
type Scopes ProjectsAttestorsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsAttestorsGet'{..}
= go _pagName _pagXgafv _pagUploadProtocol
_pagAccessToken
_pagUploadType
_pagCallback
(Just AltJSON)
binaryAuthorizationService
where go
= buildClient
(Proxy :: Proxy ProjectsAttestorsGetResource)
mempty