{-# 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.AccessContextManager.AccessPolicies.AccessLevels.Get
(
AccessPoliciesAccessLevelsGetResource
, accessPoliciesAccessLevelsGet
, AccessPoliciesAccessLevelsGet
, apalgXgafv
, apalgUploadProtocol
, apalgAccessToken
, apalgUploadType
, apalgAccessLevelFormat
, apalgName
, apalgCallback
) where
import Network.Google.AccessContextManager.Types
import Network.Google.Prelude
type AccessPoliciesAccessLevelsGetResource =
"v1beta" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "accessLevelFormat" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] AccessLevel
data AccessPoliciesAccessLevelsGet = AccessPoliciesAccessLevelsGet'
{ _apalgXgafv :: !(Maybe Xgafv)
, _apalgUploadProtocol :: !(Maybe Text)
, _apalgAccessToken :: !(Maybe Text)
, _apalgUploadType :: !(Maybe Text)
, _apalgAccessLevelFormat :: !(Maybe Text)
, _apalgName :: !Text
, _apalgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accessPoliciesAccessLevelsGet
:: Text
-> AccessPoliciesAccessLevelsGet
accessPoliciesAccessLevelsGet pApalgName_ =
AccessPoliciesAccessLevelsGet'
{ _apalgXgafv = Nothing
, _apalgUploadProtocol = Nothing
, _apalgAccessToken = Nothing
, _apalgUploadType = Nothing
, _apalgAccessLevelFormat = Nothing
, _apalgName = pApalgName_
, _apalgCallback = Nothing
}
apalgXgafv :: Lens' AccessPoliciesAccessLevelsGet (Maybe Xgafv)
apalgXgafv
= lens _apalgXgafv (\ s a -> s{_apalgXgafv = a})
apalgUploadProtocol :: Lens' AccessPoliciesAccessLevelsGet (Maybe Text)
apalgUploadProtocol
= lens _apalgUploadProtocol
(\ s a -> s{_apalgUploadProtocol = a})
apalgAccessToken :: Lens' AccessPoliciesAccessLevelsGet (Maybe Text)
apalgAccessToken
= lens _apalgAccessToken
(\ s a -> s{_apalgAccessToken = a})
apalgUploadType :: Lens' AccessPoliciesAccessLevelsGet (Maybe Text)
apalgUploadType
= lens _apalgUploadType
(\ s a -> s{_apalgUploadType = a})
apalgAccessLevelFormat :: Lens' AccessPoliciesAccessLevelsGet (Maybe Text)
apalgAccessLevelFormat
= lens _apalgAccessLevelFormat
(\ s a -> s{_apalgAccessLevelFormat = a})
apalgName :: Lens' AccessPoliciesAccessLevelsGet Text
apalgName
= lens _apalgName (\ s a -> s{_apalgName = a})
apalgCallback :: Lens' AccessPoliciesAccessLevelsGet (Maybe Text)
apalgCallback
= lens _apalgCallback
(\ s a -> s{_apalgCallback = a})
instance GoogleRequest AccessPoliciesAccessLevelsGet
where
type Rs AccessPoliciesAccessLevelsGet = AccessLevel
type Scopes AccessPoliciesAccessLevelsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient AccessPoliciesAccessLevelsGet'{..}
= go _apalgName _apalgXgafv _apalgUploadProtocol
_apalgAccessToken
_apalgUploadType
_apalgAccessLevelFormat
_apalgCallback
(Just AltJSON)
accessContextManagerService
where go
= buildClient
(Proxy ::
Proxy AccessPoliciesAccessLevelsGetResource)
mempty