{-# 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.IAP.Projects.IapWeb.TestIAMPermissions
(
ProjectsIapWebTestIAMPermissionsResource
, projectsIapWebTestIAMPermissions
, ProjectsIapWebTestIAMPermissions
, piwtipXgafv
, piwtipUploadProtocol
, piwtipAccessToken
, piwtipUploadType
, piwtipPayload
, piwtipResource
, piwtipCallback
) where
import Network.Google.IAP.Types
import Network.Google.Prelude
type ProjectsIapWebTestIAMPermissionsResource =
"v1" :>
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 ProjectsIapWebTestIAMPermissions = ProjectsIapWebTestIAMPermissions'
{ _piwtipXgafv :: !(Maybe Xgafv)
, _piwtipUploadProtocol :: !(Maybe Text)
, _piwtipAccessToken :: !(Maybe Text)
, _piwtipUploadType :: !(Maybe Text)
, _piwtipPayload :: !TestIAMPermissionsRequest
, _piwtipResource :: !Text
, _piwtipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsIapWebTestIAMPermissions
:: TestIAMPermissionsRequest
-> Text
-> ProjectsIapWebTestIAMPermissions
projectsIapWebTestIAMPermissions pPiwtipPayload_ pPiwtipResource_ =
ProjectsIapWebTestIAMPermissions'
{ _piwtipXgafv = Nothing
, _piwtipUploadProtocol = Nothing
, _piwtipAccessToken = Nothing
, _piwtipUploadType = Nothing
, _piwtipPayload = pPiwtipPayload_
, _piwtipResource = pPiwtipResource_
, _piwtipCallback = Nothing
}
piwtipXgafv :: Lens' ProjectsIapWebTestIAMPermissions (Maybe Xgafv)
piwtipXgafv
= lens _piwtipXgafv (\ s a -> s{_piwtipXgafv = a})
piwtipUploadProtocol :: Lens' ProjectsIapWebTestIAMPermissions (Maybe Text)
piwtipUploadProtocol
= lens _piwtipUploadProtocol
(\ s a -> s{_piwtipUploadProtocol = a})
piwtipAccessToken :: Lens' ProjectsIapWebTestIAMPermissions (Maybe Text)
piwtipAccessToken
= lens _piwtipAccessToken
(\ s a -> s{_piwtipAccessToken = a})
piwtipUploadType :: Lens' ProjectsIapWebTestIAMPermissions (Maybe Text)
piwtipUploadType
= lens _piwtipUploadType
(\ s a -> s{_piwtipUploadType = a})
piwtipPayload :: Lens' ProjectsIapWebTestIAMPermissions TestIAMPermissionsRequest
piwtipPayload
= lens _piwtipPayload
(\ s a -> s{_piwtipPayload = a})
piwtipResource :: Lens' ProjectsIapWebTestIAMPermissions Text
piwtipResource
= lens _piwtipResource
(\ s a -> s{_piwtipResource = a})
piwtipCallback :: Lens' ProjectsIapWebTestIAMPermissions (Maybe Text)
piwtipCallback
= lens _piwtipCallback
(\ s a -> s{_piwtipCallback = a})
instance GoogleRequest
ProjectsIapWebTestIAMPermissions where
type Rs ProjectsIapWebTestIAMPermissions =
TestIAMPermissionsResponse
type Scopes ProjectsIapWebTestIAMPermissions =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsIapWebTestIAMPermissions'{..}
= go _piwtipResource _piwtipXgafv
_piwtipUploadProtocol
_piwtipAccessToken
_piwtipUploadType
_piwtipCallback
(Just AltJSON)
_piwtipPayload
iAPService
where go
= buildClient
(Proxy ::
Proxy ProjectsIapWebTestIAMPermissionsResource)
mempty