{-# 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.IAM.Permissions.QueryTestablePermissions
(
PermissionsQueryTestablePermissionsResource
, permissionsQueryTestablePermissions
, PermissionsQueryTestablePermissions
, pqtpXgafv
, pqtpUploadProtocol
, pqtpAccessToken
, pqtpUploadType
, pqtpPayload
, pqtpCallback
) where
import Network.Google.IAM.Types
import Network.Google.Prelude
type PermissionsQueryTestablePermissionsResource =
"v1" :>
"permissions:queryTestablePermissions" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] QueryTestablePermissionsRequest :>
Post '[JSON] QueryTestablePermissionsResponse
data PermissionsQueryTestablePermissions = PermissionsQueryTestablePermissions'
{ _pqtpXgafv :: !(Maybe Xgafv)
, _pqtpUploadProtocol :: !(Maybe Text)
, _pqtpAccessToken :: !(Maybe Text)
, _pqtpUploadType :: !(Maybe Text)
, _pqtpPayload :: !QueryTestablePermissionsRequest
, _pqtpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
permissionsQueryTestablePermissions
:: QueryTestablePermissionsRequest
-> PermissionsQueryTestablePermissions
permissionsQueryTestablePermissions pPqtpPayload_ =
PermissionsQueryTestablePermissions'
{ _pqtpXgafv = Nothing
, _pqtpUploadProtocol = Nothing
, _pqtpAccessToken = Nothing
, _pqtpUploadType = Nothing
, _pqtpPayload = pPqtpPayload_
, _pqtpCallback = Nothing
}
pqtpXgafv :: Lens' PermissionsQueryTestablePermissions (Maybe Xgafv)
pqtpXgafv
= lens _pqtpXgafv (\ s a -> s{_pqtpXgafv = a})
pqtpUploadProtocol :: Lens' PermissionsQueryTestablePermissions (Maybe Text)
pqtpUploadProtocol
= lens _pqtpUploadProtocol
(\ s a -> s{_pqtpUploadProtocol = a})
pqtpAccessToken :: Lens' PermissionsQueryTestablePermissions (Maybe Text)
pqtpAccessToken
= lens _pqtpAccessToken
(\ s a -> s{_pqtpAccessToken = a})
pqtpUploadType :: Lens' PermissionsQueryTestablePermissions (Maybe Text)
pqtpUploadType
= lens _pqtpUploadType
(\ s a -> s{_pqtpUploadType = a})
pqtpPayload :: Lens' PermissionsQueryTestablePermissions QueryTestablePermissionsRequest
pqtpPayload
= lens _pqtpPayload (\ s a -> s{_pqtpPayload = a})
pqtpCallback :: Lens' PermissionsQueryTestablePermissions (Maybe Text)
pqtpCallback
= lens _pqtpCallback (\ s a -> s{_pqtpCallback = a})
instance GoogleRequest
PermissionsQueryTestablePermissions where
type Rs PermissionsQueryTestablePermissions =
QueryTestablePermissionsResponse
type Scopes PermissionsQueryTestablePermissions =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
PermissionsQueryTestablePermissions'{..}
= go _pqtpXgafv _pqtpUploadProtocol _pqtpAccessToken
_pqtpUploadType
_pqtpCallback
(Just AltJSON)
_pqtpPayload
iAMService
where go
= buildClient
(Proxy ::
Proxy PermissionsQueryTestablePermissionsResource)
mempty