{-# 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.ServicePerimeters.List
(
AccessPoliciesServicePerimetersListResource
, accessPoliciesServicePerimetersList
, AccessPoliciesServicePerimetersList
, apsplParent
, apsplXgafv
, apsplUploadProtocol
, apsplAccessToken
, apsplUploadType
, apsplPageToken
, apsplPageSize
, apsplCallback
) where
import Network.Google.AccessContextManager.Types
import Network.Google.Prelude
type AccessPoliciesServicePerimetersListResource =
"v1beta" :>
Capture "parent" Text :>
"servicePerimeters" :>
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] ListServicePerimetersResponse
data AccessPoliciesServicePerimetersList = AccessPoliciesServicePerimetersList'
{ _apsplParent :: !Text
, _apsplXgafv :: !(Maybe Xgafv)
, _apsplUploadProtocol :: !(Maybe Text)
, _apsplAccessToken :: !(Maybe Text)
, _apsplUploadType :: !(Maybe Text)
, _apsplPageToken :: !(Maybe Text)
, _apsplPageSize :: !(Maybe (Textual Int32))
, _apsplCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accessPoliciesServicePerimetersList
:: Text
-> AccessPoliciesServicePerimetersList
accessPoliciesServicePerimetersList pApsplParent_ =
AccessPoliciesServicePerimetersList'
{ _apsplParent = pApsplParent_
, _apsplXgafv = Nothing
, _apsplUploadProtocol = Nothing
, _apsplAccessToken = Nothing
, _apsplUploadType = Nothing
, _apsplPageToken = Nothing
, _apsplPageSize = Nothing
, _apsplCallback = Nothing
}
apsplParent :: Lens' AccessPoliciesServicePerimetersList Text
apsplParent
= lens _apsplParent (\ s a -> s{_apsplParent = a})
apsplXgafv :: Lens' AccessPoliciesServicePerimetersList (Maybe Xgafv)
apsplXgafv
= lens _apsplXgafv (\ s a -> s{_apsplXgafv = a})
apsplUploadProtocol :: Lens' AccessPoliciesServicePerimetersList (Maybe Text)
apsplUploadProtocol
= lens _apsplUploadProtocol
(\ s a -> s{_apsplUploadProtocol = a})
apsplAccessToken :: Lens' AccessPoliciesServicePerimetersList (Maybe Text)
apsplAccessToken
= lens _apsplAccessToken
(\ s a -> s{_apsplAccessToken = a})
apsplUploadType :: Lens' AccessPoliciesServicePerimetersList (Maybe Text)
apsplUploadType
= lens _apsplUploadType
(\ s a -> s{_apsplUploadType = a})
apsplPageToken :: Lens' AccessPoliciesServicePerimetersList (Maybe Text)
apsplPageToken
= lens _apsplPageToken
(\ s a -> s{_apsplPageToken = a})
apsplPageSize :: Lens' AccessPoliciesServicePerimetersList (Maybe Int32)
apsplPageSize
= lens _apsplPageSize
(\ s a -> s{_apsplPageSize = a})
. mapping _Coerce
apsplCallback :: Lens' AccessPoliciesServicePerimetersList (Maybe Text)
apsplCallback
= lens _apsplCallback
(\ s a -> s{_apsplCallback = a})
instance GoogleRequest
AccessPoliciesServicePerimetersList where
type Rs AccessPoliciesServicePerimetersList =
ListServicePerimetersResponse
type Scopes AccessPoliciesServicePerimetersList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
AccessPoliciesServicePerimetersList'{..}
= go _apsplParent _apsplXgafv _apsplUploadProtocol
_apsplAccessToken
_apsplUploadType
_apsplPageToken
_apsplPageSize
_apsplCallback
(Just AltJSON)
accessContextManagerService
where go
= buildClient
(Proxy ::
Proxy AccessPoliciesServicePerimetersListResource)
mempty