{-# 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.ContainerAnalysis.Projects.Notes.GetIAMPolicy
(
ProjectsNotesGetIAMPolicyResource
, projectsNotesGetIAMPolicy
, ProjectsNotesGetIAMPolicy
, pngipXgafv
, pngipUploadProtocol
, pngipAccessToken
, pngipUploadType
, pngipPayload
, pngipResource
, pngipCallback
) where
import Network.Google.ContainerAnalysis.Types
import Network.Google.Prelude
type ProjectsNotesGetIAMPolicyResource =
"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 :>
ReqBody '[JSON] GetIAMPolicyRequest :>
Post '[JSON] Policy
data ProjectsNotesGetIAMPolicy = ProjectsNotesGetIAMPolicy'
{ _pngipXgafv :: !(Maybe Xgafv)
, _pngipUploadProtocol :: !(Maybe Text)
, _pngipAccessToken :: !(Maybe Text)
, _pngipUploadType :: !(Maybe Text)
, _pngipPayload :: !GetIAMPolicyRequest
, _pngipResource :: !Text
, _pngipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsNotesGetIAMPolicy
:: GetIAMPolicyRequest
-> Text
-> ProjectsNotesGetIAMPolicy
projectsNotesGetIAMPolicy pPngipPayload_ pPngipResource_ =
ProjectsNotesGetIAMPolicy'
{ _pngipXgafv = Nothing
, _pngipUploadProtocol = Nothing
, _pngipAccessToken = Nothing
, _pngipUploadType = Nothing
, _pngipPayload = pPngipPayload_
, _pngipResource = pPngipResource_
, _pngipCallback = Nothing
}
pngipXgafv :: Lens' ProjectsNotesGetIAMPolicy (Maybe Xgafv)
pngipXgafv
= lens _pngipXgafv (\ s a -> s{_pngipXgafv = a})
pngipUploadProtocol :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text)
pngipUploadProtocol
= lens _pngipUploadProtocol
(\ s a -> s{_pngipUploadProtocol = a})
pngipAccessToken :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text)
pngipAccessToken
= lens _pngipAccessToken
(\ s a -> s{_pngipAccessToken = a})
pngipUploadType :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text)
pngipUploadType
= lens _pngipUploadType
(\ s a -> s{_pngipUploadType = a})
pngipPayload :: Lens' ProjectsNotesGetIAMPolicy GetIAMPolicyRequest
pngipPayload
= lens _pngipPayload (\ s a -> s{_pngipPayload = a})
pngipResource :: Lens' ProjectsNotesGetIAMPolicy Text
pngipResource
= lens _pngipResource
(\ s a -> s{_pngipResource = a})
pngipCallback :: Lens' ProjectsNotesGetIAMPolicy (Maybe Text)
pngipCallback
= lens _pngipCallback
(\ s a -> s{_pngipCallback = a})
instance GoogleRequest ProjectsNotesGetIAMPolicy
where
type Rs ProjectsNotesGetIAMPolicy = Policy
type Scopes ProjectsNotesGetIAMPolicy =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsNotesGetIAMPolicy'{..}
= go _pngipResource _pngipXgafv _pngipUploadProtocol
_pngipAccessToken
_pngipUploadType
_pngipCallback
(Just AltJSON)
_pngipPayload
containerAnalysisService
where go
= buildClient
(Proxy :: Proxy ProjectsNotesGetIAMPolicyResource)
mempty