{-# 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.Patch
(
AppsFirewallIngressRulesPatchResource
, appsFirewallIngressRulesPatch
, AppsFirewallIngressRulesPatch
, afirpXgafv
, afirpUploadProtocol
, afirpUpdateMask
, afirpAccessToken
, afirpUploadType
, afirpPayload
, afirpIngressRulesId
, afirpAppsId
, afirpCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsFirewallIngressRulesPatchResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"firewall" :>
"ingressRules" :>
Capture "ingressRulesId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "updateMask" GFieldMask :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] FirewallRule :>
Patch '[JSON] FirewallRule
data AppsFirewallIngressRulesPatch = AppsFirewallIngressRulesPatch'
{ _afirpXgafv :: !(Maybe Xgafv)
, _afirpUploadProtocol :: !(Maybe Text)
, _afirpUpdateMask :: !(Maybe GFieldMask)
, _afirpAccessToken :: !(Maybe Text)
, _afirpUploadType :: !(Maybe Text)
, _afirpPayload :: !FirewallRule
, _afirpIngressRulesId :: !Text
, _afirpAppsId :: !Text
, _afirpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsFirewallIngressRulesPatch
:: FirewallRule
-> Text
-> Text
-> AppsFirewallIngressRulesPatch
appsFirewallIngressRulesPatch pAfirpPayload_ pAfirpIngressRulesId_ pAfirpAppsId_ =
AppsFirewallIngressRulesPatch'
{ _afirpXgafv = Nothing
, _afirpUploadProtocol = Nothing
, _afirpUpdateMask = Nothing
, _afirpAccessToken = Nothing
, _afirpUploadType = Nothing
, _afirpPayload = pAfirpPayload_
, _afirpIngressRulesId = pAfirpIngressRulesId_
, _afirpAppsId = pAfirpAppsId_
, _afirpCallback = Nothing
}
afirpXgafv :: Lens' AppsFirewallIngressRulesPatch (Maybe Xgafv)
afirpXgafv
= lens _afirpXgafv (\ s a -> s{_afirpXgafv = a})
afirpUploadProtocol :: Lens' AppsFirewallIngressRulesPatch (Maybe Text)
afirpUploadProtocol
= lens _afirpUploadProtocol
(\ s a -> s{_afirpUploadProtocol = a})
afirpUpdateMask :: Lens' AppsFirewallIngressRulesPatch (Maybe GFieldMask)
afirpUpdateMask
= lens _afirpUpdateMask
(\ s a -> s{_afirpUpdateMask = a})
afirpAccessToken :: Lens' AppsFirewallIngressRulesPatch (Maybe Text)
afirpAccessToken
= lens _afirpAccessToken
(\ s a -> s{_afirpAccessToken = a})
afirpUploadType :: Lens' AppsFirewallIngressRulesPatch (Maybe Text)
afirpUploadType
= lens _afirpUploadType
(\ s a -> s{_afirpUploadType = a})
afirpPayload :: Lens' AppsFirewallIngressRulesPatch FirewallRule
afirpPayload
= lens _afirpPayload (\ s a -> s{_afirpPayload = a})
afirpIngressRulesId :: Lens' AppsFirewallIngressRulesPatch Text
afirpIngressRulesId
= lens _afirpIngressRulesId
(\ s a -> s{_afirpIngressRulesId = a})
afirpAppsId :: Lens' AppsFirewallIngressRulesPatch Text
afirpAppsId
= lens _afirpAppsId (\ s a -> s{_afirpAppsId = a})
afirpCallback :: Lens' AppsFirewallIngressRulesPatch (Maybe Text)
afirpCallback
= lens _afirpCallback
(\ s a -> s{_afirpCallback = a})
instance GoogleRequest AppsFirewallIngressRulesPatch
where
type Rs AppsFirewallIngressRulesPatch = FirewallRule
type Scopes AppsFirewallIngressRulesPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient AppsFirewallIngressRulesPatch'{..}
= go _afirpAppsId _afirpIngressRulesId _afirpXgafv
_afirpUploadProtocol
_afirpUpdateMask
_afirpAccessToken
_afirpUploadType
_afirpCallback
(Just AltJSON)
_afirpPayload
appEngineService
where go
= buildClient
(Proxy ::
Proxy AppsFirewallIngressRulesPatchResource)
mempty