{-# 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.AndroidEnterprise.Storelayoutclusters.Patch
(
StorelayoutclustersPatchResource
, storelayoutclustersPatch
, StorelayoutclustersPatch
, sppEnterpriseId
, sppPageId
, sppPayload
, sppClusterId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type StorelayoutclustersPatchResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"storeLayout" :>
"pages" :>
Capture "pageId" Text :>
"clusters" :>
Capture "clusterId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] StoreCluster :>
Patch '[JSON] StoreCluster
data StorelayoutclustersPatch = StorelayoutclustersPatch'
{ _sppEnterpriseId :: !Text
, _sppPageId :: !Text
, _sppPayload :: !StoreCluster
, _sppClusterId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
storelayoutclustersPatch
:: Text
-> Text
-> StoreCluster
-> Text
-> StorelayoutclustersPatch
storelayoutclustersPatch pSppEnterpriseId_ pSppPageId_ pSppPayload_ pSppClusterId_ =
StorelayoutclustersPatch'
{ _sppEnterpriseId = pSppEnterpriseId_
, _sppPageId = pSppPageId_
, _sppPayload = pSppPayload_
, _sppClusterId = pSppClusterId_
}
sppEnterpriseId :: Lens' StorelayoutclustersPatch Text
sppEnterpriseId
= lens _sppEnterpriseId
(\ s a -> s{_sppEnterpriseId = a})
sppPageId :: Lens' StorelayoutclustersPatch Text
sppPageId
= lens _sppPageId (\ s a -> s{_sppPageId = a})
sppPayload :: Lens' StorelayoutclustersPatch StoreCluster
sppPayload
= lens _sppPayload (\ s a -> s{_sppPayload = a})
sppClusterId :: Lens' StorelayoutclustersPatch Text
sppClusterId
= lens _sppClusterId (\ s a -> s{_sppClusterId = a})
instance GoogleRequest StorelayoutclustersPatch where
type Rs StorelayoutclustersPatch = StoreCluster
type Scopes StorelayoutclustersPatch =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient StorelayoutclustersPatch'{..}
= go _sppEnterpriseId _sppPageId _sppClusterId
(Just AltJSON)
_sppPayload
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy StorelayoutclustersPatchResource)
mempty