{-# 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.ServiceBroker.GetIAMPolicy
(
GetIAMPolicyResource
, getIAMPolicy
, GetIAMPolicy
, gipXgafv
, gipUploadProtocol
, gipAccessToken
, gipUploadType
, gipResource
, gipCallback
) where
import Network.Google.Prelude
import Network.Google.ServiceBroker.Types
type GetIAMPolicyResource =
"v1" :>
CaptureMode "resource" "getIamPolicy" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GoogleIAMV1__Policy
data GetIAMPolicy = GetIAMPolicy'
{ _gipXgafv :: !(Maybe Xgafv)
, _gipUploadProtocol :: !(Maybe Text)
, _gipAccessToken :: !(Maybe Text)
, _gipUploadType :: !(Maybe Text)
, _gipResource :: !Text
, _gipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
getIAMPolicy
:: Text
-> GetIAMPolicy
getIAMPolicy pGipResource_ =
GetIAMPolicy'
{ _gipXgafv = Nothing
, _gipUploadProtocol = Nothing
, _gipAccessToken = Nothing
, _gipUploadType = Nothing
, _gipResource = pGipResource_
, _gipCallback = Nothing
}
gipXgafv :: Lens' GetIAMPolicy (Maybe Xgafv)
gipXgafv = lens _gipXgafv (\ s a -> s{_gipXgafv = a})
gipUploadProtocol :: Lens' GetIAMPolicy (Maybe Text)
gipUploadProtocol
= lens _gipUploadProtocol
(\ s a -> s{_gipUploadProtocol = a})
gipAccessToken :: Lens' GetIAMPolicy (Maybe Text)
gipAccessToken
= lens _gipAccessToken
(\ s a -> s{_gipAccessToken = a})
gipUploadType :: Lens' GetIAMPolicy (Maybe Text)
gipUploadType
= lens _gipUploadType
(\ s a -> s{_gipUploadType = a})
gipResource :: Lens' GetIAMPolicy Text
gipResource
= lens _gipResource (\ s a -> s{_gipResource = a})
gipCallback :: Lens' GetIAMPolicy (Maybe Text)
gipCallback
= lens _gipCallback (\ s a -> s{_gipCallback = a})
instance GoogleRequest GetIAMPolicy where
type Rs GetIAMPolicy = GoogleIAMV1__Policy
type Scopes GetIAMPolicy =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient GetIAMPolicy'{..}
= go _gipResource _gipXgafv _gipUploadProtocol
_gipAccessToken
_gipUploadType
_gipCallback
(Just AltJSON)
serviceBrokerService
where go
= buildClient (Proxy :: Proxy GetIAMPolicyResource)
mempty