{-# 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.AccessLevels.Patch
(
AccessPoliciesAccessLevelsPatchResource
, accessPoliciesAccessLevelsPatch
, AccessPoliciesAccessLevelsPatch
, apalpXgafv
, apalpUploadProtocol
, apalpUpdateMask
, apalpAccessToken
, apalpUploadType
, apalpPayload
, apalpName
, apalpCallback
) where
import Network.Google.AccessContextManager.Types
import Network.Google.Prelude
type AccessPoliciesAccessLevelsPatchResource =
"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] AccessLevel :>
Patch '[JSON] Operation
data AccessPoliciesAccessLevelsPatch = AccessPoliciesAccessLevelsPatch'
{ _apalpXgafv :: !(Maybe Xgafv)
, _apalpUploadProtocol :: !(Maybe Text)
, _apalpUpdateMask :: !(Maybe GFieldMask)
, _apalpAccessToken :: !(Maybe Text)
, _apalpUploadType :: !(Maybe Text)
, _apalpPayload :: !AccessLevel
, _apalpName :: !Text
, _apalpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accessPoliciesAccessLevelsPatch
:: AccessLevel
-> Text
-> AccessPoliciesAccessLevelsPatch
accessPoliciesAccessLevelsPatch pApalpPayload_ pApalpName_ =
AccessPoliciesAccessLevelsPatch'
{ _apalpXgafv = Nothing
, _apalpUploadProtocol = Nothing
, _apalpUpdateMask = Nothing
, _apalpAccessToken = Nothing
, _apalpUploadType = Nothing
, _apalpPayload = pApalpPayload_
, _apalpName = pApalpName_
, _apalpCallback = Nothing
}
apalpXgafv :: Lens' AccessPoliciesAccessLevelsPatch (Maybe Xgafv)
apalpXgafv
= lens _apalpXgafv (\ s a -> s{_apalpXgafv = a})
apalpUploadProtocol :: Lens' AccessPoliciesAccessLevelsPatch (Maybe Text)
apalpUploadProtocol
= lens _apalpUploadProtocol
(\ s a -> s{_apalpUploadProtocol = a})
apalpUpdateMask :: Lens' AccessPoliciesAccessLevelsPatch (Maybe GFieldMask)
apalpUpdateMask
= lens _apalpUpdateMask
(\ s a -> s{_apalpUpdateMask = a})
apalpAccessToken :: Lens' AccessPoliciesAccessLevelsPatch (Maybe Text)
apalpAccessToken
= lens _apalpAccessToken
(\ s a -> s{_apalpAccessToken = a})
apalpUploadType :: Lens' AccessPoliciesAccessLevelsPatch (Maybe Text)
apalpUploadType
= lens _apalpUploadType
(\ s a -> s{_apalpUploadType = a})
apalpPayload :: Lens' AccessPoliciesAccessLevelsPatch AccessLevel
apalpPayload
= lens _apalpPayload (\ s a -> s{_apalpPayload = a})
apalpName :: Lens' AccessPoliciesAccessLevelsPatch Text
apalpName
= lens _apalpName (\ s a -> s{_apalpName = a})
apalpCallback :: Lens' AccessPoliciesAccessLevelsPatch (Maybe Text)
apalpCallback
= lens _apalpCallback
(\ s a -> s{_apalpCallback = a})
instance GoogleRequest
AccessPoliciesAccessLevelsPatch where
type Rs AccessPoliciesAccessLevelsPatch = Operation
type Scopes AccessPoliciesAccessLevelsPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient AccessPoliciesAccessLevelsPatch'{..}
= go _apalpName _apalpXgafv _apalpUploadProtocol
_apalpUpdateMask
_apalpAccessToken
_apalpUploadType
_apalpCallback
(Just AltJSON)
_apalpPayload
accessContextManagerService
where go
= buildClient
(Proxy ::
Proxy AccessPoliciesAccessLevelsPatchResource)
mempty