{-# 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.AppEngine.Apps.Firewall.IngressRules.List
(
AppsFirewallIngressRulesListResource
, appsFirewallIngressRulesList
, AppsFirewallIngressRulesList
, afirlXgafv
, afirlUploadProtocol
, afirlMatchingAddress
, afirlAccessToken
, afirlUploadType
, afirlAppsId
, afirlPageToken
, afirlPageSize
, afirlCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsFirewallIngressRulesListResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"firewall" :>
"ingressRules" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "matchingAddress" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListIngressRulesResponse
data AppsFirewallIngressRulesList = AppsFirewallIngressRulesList'
{ _afirlXgafv :: !(Maybe Xgafv)
, _afirlUploadProtocol :: !(Maybe Text)
, _afirlMatchingAddress :: !(Maybe Text)
, _afirlAccessToken :: !(Maybe Text)
, _afirlUploadType :: !(Maybe Text)
, _afirlAppsId :: !Text
, _afirlPageToken :: !(Maybe Text)
, _afirlPageSize :: !(Maybe (Textual Int32))
, _afirlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsFirewallIngressRulesList
:: Text
-> AppsFirewallIngressRulesList
appsFirewallIngressRulesList pAfirlAppsId_ =
AppsFirewallIngressRulesList'
{ _afirlXgafv = Nothing
, _afirlUploadProtocol = Nothing
, _afirlMatchingAddress = Nothing
, _afirlAccessToken = Nothing
, _afirlUploadType = Nothing
, _afirlAppsId = pAfirlAppsId_
, _afirlPageToken = Nothing
, _afirlPageSize = Nothing
, _afirlCallback = Nothing
}
afirlXgafv :: Lens' AppsFirewallIngressRulesList (Maybe Xgafv)
afirlXgafv
= lens _afirlXgafv (\ s a -> s{_afirlXgafv = a})
afirlUploadProtocol :: Lens' AppsFirewallIngressRulesList (Maybe Text)
afirlUploadProtocol
= lens _afirlUploadProtocol
(\ s a -> s{_afirlUploadProtocol = a})
afirlMatchingAddress :: Lens' AppsFirewallIngressRulesList (Maybe Text)
afirlMatchingAddress
= lens _afirlMatchingAddress
(\ s a -> s{_afirlMatchingAddress = a})
afirlAccessToken :: Lens' AppsFirewallIngressRulesList (Maybe Text)
afirlAccessToken
= lens _afirlAccessToken
(\ s a -> s{_afirlAccessToken = a})
afirlUploadType :: Lens' AppsFirewallIngressRulesList (Maybe Text)
afirlUploadType
= lens _afirlUploadType
(\ s a -> s{_afirlUploadType = a})
afirlAppsId :: Lens' AppsFirewallIngressRulesList Text
afirlAppsId
= lens _afirlAppsId (\ s a -> s{_afirlAppsId = a})
afirlPageToken :: Lens' AppsFirewallIngressRulesList (Maybe Text)
afirlPageToken
= lens _afirlPageToken
(\ s a -> s{_afirlPageToken = a})
afirlPageSize :: Lens' AppsFirewallIngressRulesList (Maybe Int32)
afirlPageSize
= lens _afirlPageSize
(\ s a -> s{_afirlPageSize = a})
. mapping _Coerce
afirlCallback :: Lens' AppsFirewallIngressRulesList (Maybe Text)
afirlCallback
= lens _afirlCallback
(\ s a -> s{_afirlCallback = a})
instance GoogleRequest AppsFirewallIngressRulesList
where
type Rs AppsFirewallIngressRulesList =
ListIngressRulesResponse
type Scopes AppsFirewallIngressRulesList =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsFirewallIngressRulesList'{..}
= go _afirlAppsId _afirlXgafv _afirlUploadProtocol
_afirlMatchingAddress
_afirlAccessToken
_afirlUploadType
_afirlPageToken
_afirlPageSize
_afirlCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy :: Proxy AppsFirewallIngressRulesListResource)
mempty