{-# 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.Services.TestIAMPermissions
(
ProjectsIapWebServicesTestIAMPermissionsResource
, projectsIapWebServicesTestIAMPermissions
, ProjectsIapWebServicesTestIAMPermissions
, piwstipXgafv
, piwstipUploadProtocol
, piwstipAccessToken
, piwstipUploadType
, piwstipPayload
, piwstipResource
, piwstipCallback
) where
import Network.Google.IAP.Types
import Network.Google.Prelude
type ProjectsIapWebServicesTestIAMPermissionsResource
=
"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 ProjectsIapWebServicesTestIAMPermissions = ProjectsIapWebServicesTestIAMPermissions'
{ _piwstipXgafv :: !(Maybe Xgafv)
, _piwstipUploadProtocol :: !(Maybe Text)
, _piwstipAccessToken :: !(Maybe Text)
, _piwstipUploadType :: !(Maybe Text)
, _piwstipPayload :: !TestIAMPermissionsRequest
, _piwstipResource :: !Text
, _piwstipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsIapWebServicesTestIAMPermissions
:: TestIAMPermissionsRequest
-> Text
-> ProjectsIapWebServicesTestIAMPermissions
projectsIapWebServicesTestIAMPermissions pPiwstipPayload_ pPiwstipResource_ =
ProjectsIapWebServicesTestIAMPermissions'
{ _piwstipXgafv = Nothing
, _piwstipUploadProtocol = Nothing
, _piwstipAccessToken = Nothing
, _piwstipUploadType = Nothing
, _piwstipPayload = pPiwstipPayload_
, _piwstipResource = pPiwstipResource_
, _piwstipCallback = Nothing
}
piwstipXgafv :: Lens' ProjectsIapWebServicesTestIAMPermissions (Maybe Xgafv)
piwstipXgafv
= lens _piwstipXgafv (\ s a -> s{_piwstipXgafv = a})
piwstipUploadProtocol :: Lens' ProjectsIapWebServicesTestIAMPermissions (Maybe Text)
piwstipUploadProtocol
= lens _piwstipUploadProtocol
(\ s a -> s{_piwstipUploadProtocol = a})
piwstipAccessToken :: Lens' ProjectsIapWebServicesTestIAMPermissions (Maybe Text)
piwstipAccessToken
= lens _piwstipAccessToken
(\ s a -> s{_piwstipAccessToken = a})
piwstipUploadType :: Lens' ProjectsIapWebServicesTestIAMPermissions (Maybe Text)
piwstipUploadType
= lens _piwstipUploadType
(\ s a -> s{_piwstipUploadType = a})
piwstipPayload :: Lens' ProjectsIapWebServicesTestIAMPermissions TestIAMPermissionsRequest
piwstipPayload
= lens _piwstipPayload
(\ s a -> s{_piwstipPayload = a})
piwstipResource :: Lens' ProjectsIapWebServicesTestIAMPermissions Text
piwstipResource
= lens _piwstipResource
(\ s a -> s{_piwstipResource = a})
piwstipCallback :: Lens' ProjectsIapWebServicesTestIAMPermissions (Maybe Text)
piwstipCallback
= lens _piwstipCallback
(\ s a -> s{_piwstipCallback = a})
instance GoogleRequest
ProjectsIapWebServicesTestIAMPermissions where
type Rs ProjectsIapWebServicesTestIAMPermissions =
TestIAMPermissionsResponse
type Scopes ProjectsIapWebServicesTestIAMPermissions
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsIapWebServicesTestIAMPermissions'{..}
= go _piwstipResource _piwstipXgafv
_piwstipUploadProtocol
_piwstipAccessToken
_piwstipUploadType
_piwstipCallback
(Just AltJSON)
_piwstipPayload
iAPService
where go
= buildClient
(Proxy ::
Proxy
ProjectsIapWebServicesTestIAMPermissionsResource)
mempty