{-# 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.GetIAMPolicy
(
ProjectsAttestorsGetIAMPolicyResource
, projectsAttestorsGetIAMPolicy
, ProjectsAttestorsGetIAMPolicy
, pagipXgafv
, pagipUploadProtocol
, pagipAccessToken
, pagipUploadType
, pagipResource
, pagipCallback
) where
import Network.Google.BinaryAuthorization.Types
import Network.Google.Prelude
type ProjectsAttestorsGetIAMPolicyResource =
"v1beta1" :>
CaptureMode "resource" "getIamPolicy" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] IAMPolicy
data ProjectsAttestorsGetIAMPolicy = ProjectsAttestorsGetIAMPolicy'
{ _pagipXgafv :: !(Maybe Xgafv)
, _pagipUploadProtocol :: !(Maybe Text)
, _pagipAccessToken :: !(Maybe Text)
, _pagipUploadType :: !(Maybe Text)
, _pagipResource :: !Text
, _pagipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsAttestorsGetIAMPolicy
:: Text
-> ProjectsAttestorsGetIAMPolicy
projectsAttestorsGetIAMPolicy pPagipResource_ =
ProjectsAttestorsGetIAMPolicy'
{ _pagipXgafv = Nothing
, _pagipUploadProtocol = Nothing
, _pagipAccessToken = Nothing
, _pagipUploadType = Nothing
, _pagipResource = pPagipResource_
, _pagipCallback = Nothing
}
pagipXgafv :: Lens' ProjectsAttestorsGetIAMPolicy (Maybe Xgafv)
pagipXgafv
= lens _pagipXgafv (\ s a -> s{_pagipXgafv = a})
pagipUploadProtocol :: Lens' ProjectsAttestorsGetIAMPolicy (Maybe Text)
pagipUploadProtocol
= lens _pagipUploadProtocol
(\ s a -> s{_pagipUploadProtocol = a})
pagipAccessToken :: Lens' ProjectsAttestorsGetIAMPolicy (Maybe Text)
pagipAccessToken
= lens _pagipAccessToken
(\ s a -> s{_pagipAccessToken = a})
pagipUploadType :: Lens' ProjectsAttestorsGetIAMPolicy (Maybe Text)
pagipUploadType
= lens _pagipUploadType
(\ s a -> s{_pagipUploadType = a})
pagipResource :: Lens' ProjectsAttestorsGetIAMPolicy Text
pagipResource
= lens _pagipResource
(\ s a -> s{_pagipResource = a})
pagipCallback :: Lens' ProjectsAttestorsGetIAMPolicy (Maybe Text)
pagipCallback
= lens _pagipCallback
(\ s a -> s{_pagipCallback = a})
instance GoogleRequest ProjectsAttestorsGetIAMPolicy
where
type Rs ProjectsAttestorsGetIAMPolicy = IAMPolicy
type Scopes ProjectsAttestorsGetIAMPolicy =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsAttestorsGetIAMPolicy'{..}
= go _pagipResource _pagipXgafv _pagipUploadProtocol
_pagipAccessToken
_pagipUploadType
_pagipCallback
(Just AltJSON)
binaryAuthorizationService
where go
= buildClient
(Proxy ::
Proxy ProjectsAttestorsGetIAMPolicyResource)
mempty