{-# 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.List
(
AccessPoliciesListResource
, accessPoliciesList
, AccessPoliciesList
, aplParent
, aplXgafv
, aplUploadProtocol
, aplAccessToken
, aplUploadType
, aplPageToken
, aplPageSize
, aplCallback
) where
import Network.Google.AccessContextManager.Types
import Network.Google.Prelude
type AccessPoliciesListResource =
"v1beta" :>
"accessPolicies" :>
QueryParam "parent" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListAccessPoliciesResponse
data AccessPoliciesList = AccessPoliciesList'
{ _aplParent :: !(Maybe Text)
, _aplXgafv :: !(Maybe Xgafv)
, _aplUploadProtocol :: !(Maybe Text)
, _aplAccessToken :: !(Maybe Text)
, _aplUploadType :: !(Maybe Text)
, _aplPageToken :: !(Maybe Text)
, _aplPageSize :: !(Maybe (Textual Int32))
, _aplCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accessPoliciesList
:: AccessPoliciesList
accessPoliciesList =
AccessPoliciesList'
{ _aplParent = Nothing
, _aplXgafv = Nothing
, _aplUploadProtocol = Nothing
, _aplAccessToken = Nothing
, _aplUploadType = Nothing
, _aplPageToken = Nothing
, _aplPageSize = Nothing
, _aplCallback = Nothing
}
aplParent :: Lens' AccessPoliciesList (Maybe Text)
aplParent
= lens _aplParent (\ s a -> s{_aplParent = a})
aplXgafv :: Lens' AccessPoliciesList (Maybe Xgafv)
aplXgafv = lens _aplXgafv (\ s a -> s{_aplXgafv = a})
aplUploadProtocol :: Lens' AccessPoliciesList (Maybe Text)
aplUploadProtocol
= lens _aplUploadProtocol
(\ s a -> s{_aplUploadProtocol = a})
aplAccessToken :: Lens' AccessPoliciesList (Maybe Text)
aplAccessToken
= lens _aplAccessToken
(\ s a -> s{_aplAccessToken = a})
aplUploadType :: Lens' AccessPoliciesList (Maybe Text)
aplUploadType
= lens _aplUploadType
(\ s a -> s{_aplUploadType = a})
aplPageToken :: Lens' AccessPoliciesList (Maybe Text)
aplPageToken
= lens _aplPageToken (\ s a -> s{_aplPageToken = a})
aplPageSize :: Lens' AccessPoliciesList (Maybe Int32)
aplPageSize
= lens _aplPageSize (\ s a -> s{_aplPageSize = a}) .
mapping _Coerce
aplCallback :: Lens' AccessPoliciesList (Maybe Text)
aplCallback
= lens _aplCallback (\ s a -> s{_aplCallback = a})
instance GoogleRequest AccessPoliciesList where
type Rs AccessPoliciesList =
ListAccessPoliciesResponse
type Scopes AccessPoliciesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient AccessPoliciesList'{..}
= go _aplParent _aplXgafv _aplUploadProtocol
_aplAccessToken
_aplUploadType
_aplPageToken
_aplPageSize
_aplCallback
(Just AltJSON)
accessContextManagerService
where go
= buildClient
(Proxy :: Proxy AccessPoliciesListResource)
mempty