{-# 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.Get
(
AppsFirewallIngressRulesGetResource
, appsFirewallIngressRulesGet
, AppsFirewallIngressRulesGet
, afirgXgafv
, afirgUploadProtocol
, afirgAccessToken
, afirgUploadType
, afirgIngressRulesId
, afirgAppsId
, afirgCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsFirewallIngressRulesGetResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"firewall" :>
"ingressRules" :>
Capture "ingressRulesId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] FirewallRule
data AppsFirewallIngressRulesGet = AppsFirewallIngressRulesGet'
{ _afirgXgafv :: !(Maybe Xgafv)
, _afirgUploadProtocol :: !(Maybe Text)
, _afirgAccessToken :: !(Maybe Text)
, _afirgUploadType :: !(Maybe Text)
, _afirgIngressRulesId :: !Text
, _afirgAppsId :: !Text
, _afirgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsFirewallIngressRulesGet
:: Text
-> Text
-> AppsFirewallIngressRulesGet
appsFirewallIngressRulesGet pAfirgIngressRulesId_ pAfirgAppsId_ =
AppsFirewallIngressRulesGet'
{ _afirgXgafv = Nothing
, _afirgUploadProtocol = Nothing
, _afirgAccessToken = Nothing
, _afirgUploadType = Nothing
, _afirgIngressRulesId = pAfirgIngressRulesId_
, _afirgAppsId = pAfirgAppsId_
, _afirgCallback = Nothing
}
afirgXgafv :: Lens' AppsFirewallIngressRulesGet (Maybe Xgafv)
afirgXgafv
= lens _afirgXgafv (\ s a -> s{_afirgXgafv = a})
afirgUploadProtocol :: Lens' AppsFirewallIngressRulesGet (Maybe Text)
afirgUploadProtocol
= lens _afirgUploadProtocol
(\ s a -> s{_afirgUploadProtocol = a})
afirgAccessToken :: Lens' AppsFirewallIngressRulesGet (Maybe Text)
afirgAccessToken
= lens _afirgAccessToken
(\ s a -> s{_afirgAccessToken = a})
afirgUploadType :: Lens' AppsFirewallIngressRulesGet (Maybe Text)
afirgUploadType
= lens _afirgUploadType
(\ s a -> s{_afirgUploadType = a})
afirgIngressRulesId :: Lens' AppsFirewallIngressRulesGet Text
afirgIngressRulesId
= lens _afirgIngressRulesId
(\ s a -> s{_afirgIngressRulesId = a})
afirgAppsId :: Lens' AppsFirewallIngressRulesGet Text
afirgAppsId
= lens _afirgAppsId (\ s a -> s{_afirgAppsId = a})
afirgCallback :: Lens' AppsFirewallIngressRulesGet (Maybe Text)
afirgCallback
= lens _afirgCallback
(\ s a -> s{_afirgCallback = a})
instance GoogleRequest AppsFirewallIngressRulesGet
where
type Rs AppsFirewallIngressRulesGet = FirewallRule
type Scopes AppsFirewallIngressRulesGet =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsFirewallIngressRulesGet'{..}
= go _afirgAppsId _afirgIngressRulesId _afirgXgafv
_afirgUploadProtocol
_afirgAccessToken
_afirgUploadType
_afirgCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy :: Proxy AppsFirewallIngressRulesGetResource)
mempty