{-# 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.IAMPolicies.QueryAuditableServices
(
IAMPoliciesQueryAuditableServicesResource
, iamPoliciesQueryAuditableServices
, IAMPoliciesQueryAuditableServices
, ipqasXgafv
, ipqasUploadProtocol
, ipqasAccessToken
, ipqasUploadType
, ipqasPayload
, ipqasCallback
) where
import Network.Google.IAM.Types
import Network.Google.Prelude
type IAMPoliciesQueryAuditableServicesResource =
"v1" :>
"iamPolicies:queryAuditableServices" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] QueryAuditableServicesRequest :>
Post '[JSON] QueryAuditableServicesResponse
data IAMPoliciesQueryAuditableServices = IAMPoliciesQueryAuditableServices'
{ _ipqasXgafv :: !(Maybe Xgafv)
, _ipqasUploadProtocol :: !(Maybe Text)
, _ipqasAccessToken :: !(Maybe Text)
, _ipqasUploadType :: !(Maybe Text)
, _ipqasPayload :: !QueryAuditableServicesRequest
, _ipqasCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
iamPoliciesQueryAuditableServices
:: QueryAuditableServicesRequest
-> IAMPoliciesQueryAuditableServices
iamPoliciesQueryAuditableServices pIpqasPayload_ =
IAMPoliciesQueryAuditableServices'
{ _ipqasXgafv = Nothing
, _ipqasUploadProtocol = Nothing
, _ipqasAccessToken = Nothing
, _ipqasUploadType = Nothing
, _ipqasPayload = pIpqasPayload_
, _ipqasCallback = Nothing
}
ipqasXgafv :: Lens' IAMPoliciesQueryAuditableServices (Maybe Xgafv)
ipqasXgafv
= lens _ipqasXgafv (\ s a -> s{_ipqasXgafv = a})
ipqasUploadProtocol :: Lens' IAMPoliciesQueryAuditableServices (Maybe Text)
ipqasUploadProtocol
= lens _ipqasUploadProtocol
(\ s a -> s{_ipqasUploadProtocol = a})
ipqasAccessToken :: Lens' IAMPoliciesQueryAuditableServices (Maybe Text)
ipqasAccessToken
= lens _ipqasAccessToken
(\ s a -> s{_ipqasAccessToken = a})
ipqasUploadType :: Lens' IAMPoliciesQueryAuditableServices (Maybe Text)
ipqasUploadType
= lens _ipqasUploadType
(\ s a -> s{_ipqasUploadType = a})
ipqasPayload :: Lens' IAMPoliciesQueryAuditableServices QueryAuditableServicesRequest
ipqasPayload
= lens _ipqasPayload (\ s a -> s{_ipqasPayload = a})
ipqasCallback :: Lens' IAMPoliciesQueryAuditableServices (Maybe Text)
ipqasCallback
= lens _ipqasCallback
(\ s a -> s{_ipqasCallback = a})
instance GoogleRequest
IAMPoliciesQueryAuditableServices where
type Rs IAMPoliciesQueryAuditableServices =
QueryAuditableServicesResponse
type Scopes IAMPoliciesQueryAuditableServices =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient IAMPoliciesQueryAuditableServices'{..}
= go _ipqasXgafv _ipqasUploadProtocol
_ipqasAccessToken
_ipqasUploadType
_ipqasCallback
(Just AltJSON)
_ipqasPayload
iAMService
where go
= buildClient
(Proxy ::
Proxy IAMPoliciesQueryAuditableServicesResource)
mempty