{-# 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.Patch
(
AccessPoliciesServicePerimetersPatchResource
, accessPoliciesServicePerimetersPatch
, AccessPoliciesServicePerimetersPatch
, apsppXgafv
, apsppUploadProtocol
, apsppUpdateMask
, apsppAccessToken
, apsppUploadType
, apsppPayload
, apsppName
, apsppCallback
) where
import Network.Google.AccessContextManager.Types
import Network.Google.Prelude
type AccessPoliciesServicePerimetersPatchResource =
"v1beta" :>
Capture "name" 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] ServicePerimeter :>
Patch '[JSON] Operation
data AccessPoliciesServicePerimetersPatch = AccessPoliciesServicePerimetersPatch'
{ _apsppXgafv :: !(Maybe Xgafv)
, _apsppUploadProtocol :: !(Maybe Text)
, _apsppUpdateMask :: !(Maybe GFieldMask)
, _apsppAccessToken :: !(Maybe Text)
, _apsppUploadType :: !(Maybe Text)
, _apsppPayload :: !ServicePerimeter
, _apsppName :: !Text
, _apsppCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accessPoliciesServicePerimetersPatch
:: ServicePerimeter
-> Text
-> AccessPoliciesServicePerimetersPatch
accessPoliciesServicePerimetersPatch pApsppPayload_ pApsppName_ =
AccessPoliciesServicePerimetersPatch'
{ _apsppXgafv = Nothing
, _apsppUploadProtocol = Nothing
, _apsppUpdateMask = Nothing
, _apsppAccessToken = Nothing
, _apsppUploadType = Nothing
, _apsppPayload = pApsppPayload_
, _apsppName = pApsppName_
, _apsppCallback = Nothing
}
apsppXgafv :: Lens' AccessPoliciesServicePerimetersPatch (Maybe Xgafv)
apsppXgafv
= lens _apsppXgafv (\ s a -> s{_apsppXgafv = a})
apsppUploadProtocol :: Lens' AccessPoliciesServicePerimetersPatch (Maybe Text)
apsppUploadProtocol
= lens _apsppUploadProtocol
(\ s a -> s{_apsppUploadProtocol = a})
apsppUpdateMask :: Lens' AccessPoliciesServicePerimetersPatch (Maybe GFieldMask)
apsppUpdateMask
= lens _apsppUpdateMask
(\ s a -> s{_apsppUpdateMask = a})
apsppAccessToken :: Lens' AccessPoliciesServicePerimetersPatch (Maybe Text)
apsppAccessToken
= lens _apsppAccessToken
(\ s a -> s{_apsppAccessToken = a})
apsppUploadType :: Lens' AccessPoliciesServicePerimetersPatch (Maybe Text)
apsppUploadType
= lens _apsppUploadType
(\ s a -> s{_apsppUploadType = a})
apsppPayload :: Lens' AccessPoliciesServicePerimetersPatch ServicePerimeter
apsppPayload
= lens _apsppPayload (\ s a -> s{_apsppPayload = a})
apsppName :: Lens' AccessPoliciesServicePerimetersPatch Text
apsppName
= lens _apsppName (\ s a -> s{_apsppName = a})
apsppCallback :: Lens' AccessPoliciesServicePerimetersPatch (Maybe Text)
apsppCallback
= lens _apsppCallback
(\ s a -> s{_apsppCallback = a})
instance GoogleRequest
AccessPoliciesServicePerimetersPatch where
type Rs AccessPoliciesServicePerimetersPatch =
Operation
type Scopes AccessPoliciesServicePerimetersPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
AccessPoliciesServicePerimetersPatch'{..}
= go _apsppName _apsppXgafv _apsppUploadProtocol
_apsppUpdateMask
_apsppAccessToken
_apsppUploadType
_apsppCallback
(Just AltJSON)
_apsppPayload
accessContextManagerService
where go
= buildClient
(Proxy ::
Proxy AccessPoliciesServicePerimetersPatchResource)
mempty