{-# 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.List
(
AccessPoliciesAccessLevelsListResource
, accessPoliciesAccessLevelsList
, AccessPoliciesAccessLevelsList
, apallParent
, apallXgafv
, apallUploadProtocol
, apallAccessToken
, apallUploadType
, apallAccessLevelFormat
, apallPageToken
, apallPageSize
, apallCallback
) where
import Network.Google.AccessContextManager.Types
import Network.Google.Prelude
type AccessPoliciesAccessLevelsListResource =
"v1beta" :>
Capture "parent" Text :>
"accessLevels" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "accessLevelFormat" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListAccessLevelsResponse
data AccessPoliciesAccessLevelsList = AccessPoliciesAccessLevelsList'
{ _apallParent :: !Text
, _apallXgafv :: !(Maybe Xgafv)
, _apallUploadProtocol :: !(Maybe Text)
, _apallAccessToken :: !(Maybe Text)
, _apallUploadType :: !(Maybe Text)
, _apallAccessLevelFormat :: !(Maybe Text)
, _apallPageToken :: !(Maybe Text)
, _apallPageSize :: !(Maybe (Textual Int32))
, _apallCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accessPoliciesAccessLevelsList
:: Text
-> AccessPoliciesAccessLevelsList
accessPoliciesAccessLevelsList pApallParent_ =
AccessPoliciesAccessLevelsList'
{ _apallParent = pApallParent_
, _apallXgafv = Nothing
, _apallUploadProtocol = Nothing
, _apallAccessToken = Nothing
, _apallUploadType = Nothing
, _apallAccessLevelFormat = Nothing
, _apallPageToken = Nothing
, _apallPageSize = Nothing
, _apallCallback = Nothing
}
apallParent :: Lens' AccessPoliciesAccessLevelsList Text
apallParent
= lens _apallParent (\ s a -> s{_apallParent = a})
apallXgafv :: Lens' AccessPoliciesAccessLevelsList (Maybe Xgafv)
apallXgafv
= lens _apallXgafv (\ s a -> s{_apallXgafv = a})
apallUploadProtocol :: Lens' AccessPoliciesAccessLevelsList (Maybe Text)
apallUploadProtocol
= lens _apallUploadProtocol
(\ s a -> s{_apallUploadProtocol = a})
apallAccessToken :: Lens' AccessPoliciesAccessLevelsList (Maybe Text)
apallAccessToken
= lens _apallAccessToken
(\ s a -> s{_apallAccessToken = a})
apallUploadType :: Lens' AccessPoliciesAccessLevelsList (Maybe Text)
apallUploadType
= lens _apallUploadType
(\ s a -> s{_apallUploadType = a})
apallAccessLevelFormat :: Lens' AccessPoliciesAccessLevelsList (Maybe Text)
apallAccessLevelFormat
= lens _apallAccessLevelFormat
(\ s a -> s{_apallAccessLevelFormat = a})
apallPageToken :: Lens' AccessPoliciesAccessLevelsList (Maybe Text)
apallPageToken
= lens _apallPageToken
(\ s a -> s{_apallPageToken = a})
apallPageSize :: Lens' AccessPoliciesAccessLevelsList (Maybe Int32)
apallPageSize
= lens _apallPageSize
(\ s a -> s{_apallPageSize = a})
. mapping _Coerce
apallCallback :: Lens' AccessPoliciesAccessLevelsList (Maybe Text)
apallCallback
= lens _apallCallback
(\ s a -> s{_apallCallback = a})
instance GoogleRequest AccessPoliciesAccessLevelsList
where
type Rs AccessPoliciesAccessLevelsList =
ListAccessLevelsResponse
type Scopes AccessPoliciesAccessLevelsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient AccessPoliciesAccessLevelsList'{..}
= go _apallParent _apallXgafv _apallUploadProtocol
_apallAccessToken
_apallUploadType
_apallAccessLevelFormat
_apallPageToken
_apallPageSize
_apallCallback
(Just AltJSON)
accessContextManagerService
where go
= buildClient
(Proxy ::
Proxy AccessPoliciesAccessLevelsListResource)
mempty