{-# 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.TestIAMPermissions
(
ProjectsNotesTestIAMPermissionsResource
, projectsNotesTestIAMPermissions
, ProjectsNotesTestIAMPermissions
, pntipXgafv
, pntipUploadProtocol
, pntipAccessToken
, pntipUploadType
, pntipPayload
, pntipResource
, pntipCallback
) where
import Network.Google.ContainerAnalysis.Types
import Network.Google.Prelude
type ProjectsNotesTestIAMPermissionsResource =
"v1beta1" :>
CaptureMode "resource" "testIamPermissions" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] TestIAMPermissionsRequest :>
Post '[JSON] TestIAMPermissionsResponse
data ProjectsNotesTestIAMPermissions = ProjectsNotesTestIAMPermissions'
{ _pntipXgafv :: !(Maybe Xgafv)
, _pntipUploadProtocol :: !(Maybe Text)
, _pntipAccessToken :: !(Maybe Text)
, _pntipUploadType :: !(Maybe Text)
, _pntipPayload :: !TestIAMPermissionsRequest
, _pntipResource :: !Text
, _pntipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsNotesTestIAMPermissions
:: TestIAMPermissionsRequest
-> Text
-> ProjectsNotesTestIAMPermissions
projectsNotesTestIAMPermissions pPntipPayload_ pPntipResource_ =
ProjectsNotesTestIAMPermissions'
{ _pntipXgafv = Nothing
, _pntipUploadProtocol = Nothing
, _pntipAccessToken = Nothing
, _pntipUploadType = Nothing
, _pntipPayload = pPntipPayload_
, _pntipResource = pPntipResource_
, _pntipCallback = Nothing
}
pntipXgafv :: Lens' ProjectsNotesTestIAMPermissions (Maybe Xgafv)
pntipXgafv
= lens _pntipXgafv (\ s a -> s{_pntipXgafv = a})
pntipUploadProtocol :: Lens' ProjectsNotesTestIAMPermissions (Maybe Text)
pntipUploadProtocol
= lens _pntipUploadProtocol
(\ s a -> s{_pntipUploadProtocol = a})
pntipAccessToken :: Lens' ProjectsNotesTestIAMPermissions (Maybe Text)
pntipAccessToken
= lens _pntipAccessToken
(\ s a -> s{_pntipAccessToken = a})
pntipUploadType :: Lens' ProjectsNotesTestIAMPermissions (Maybe Text)
pntipUploadType
= lens _pntipUploadType
(\ s a -> s{_pntipUploadType = a})
pntipPayload :: Lens' ProjectsNotesTestIAMPermissions TestIAMPermissionsRequest
pntipPayload
= lens _pntipPayload (\ s a -> s{_pntipPayload = a})
pntipResource :: Lens' ProjectsNotesTestIAMPermissions Text
pntipResource
= lens _pntipResource
(\ s a -> s{_pntipResource = a})
pntipCallback :: Lens' ProjectsNotesTestIAMPermissions (Maybe Text)
pntipCallback
= lens _pntipCallback
(\ s a -> s{_pntipCallback = a})
instance GoogleRequest
ProjectsNotesTestIAMPermissions where
type Rs ProjectsNotesTestIAMPermissions =
TestIAMPermissionsResponse
type Scopes ProjectsNotesTestIAMPermissions =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsNotesTestIAMPermissions'{..}
= go _pntipResource _pntipXgafv _pntipUploadProtocol
_pntipAccessToken
_pntipUploadType
_pntipCallback
(Just AltJSON)
_pntipPayload
containerAnalysisService
where go
= buildClient
(Proxy ::
Proxy ProjectsNotesTestIAMPermissionsResource)
mempty