{-# 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.Update
(
StorelayoutclustersUpdateResource
, storelayoutclustersUpdate
, StorelayoutclustersUpdate
, suuEnterpriseId
, suuPageId
, suuPayload
, suuClusterId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type StorelayoutclustersUpdateResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"storeLayout" :>
"pages" :>
Capture "pageId" Text :>
"clusters" :>
Capture "clusterId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] StoreCluster :>
Put '[JSON] StoreCluster
data StorelayoutclustersUpdate = StorelayoutclustersUpdate'
{ _suuEnterpriseId :: !Text
, _suuPageId :: !Text
, _suuPayload :: !StoreCluster
, _suuClusterId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
storelayoutclustersUpdate
:: Text
-> Text
-> StoreCluster
-> Text
-> StorelayoutclustersUpdate
storelayoutclustersUpdate pSuuEnterpriseId_ pSuuPageId_ pSuuPayload_ pSuuClusterId_ =
StorelayoutclustersUpdate'
{ _suuEnterpriseId = pSuuEnterpriseId_
, _suuPageId = pSuuPageId_
, _suuPayload = pSuuPayload_
, _suuClusterId = pSuuClusterId_
}
suuEnterpriseId :: Lens' StorelayoutclustersUpdate Text
suuEnterpriseId
= lens _suuEnterpriseId
(\ s a -> s{_suuEnterpriseId = a})
suuPageId :: Lens' StorelayoutclustersUpdate Text
suuPageId
= lens _suuPageId (\ s a -> s{_suuPageId = a})
suuPayload :: Lens' StorelayoutclustersUpdate StoreCluster
suuPayload
= lens _suuPayload (\ s a -> s{_suuPayload = a})
suuClusterId :: Lens' StorelayoutclustersUpdate Text
suuClusterId
= lens _suuClusterId (\ s a -> s{_suuClusterId = a})
instance GoogleRequest StorelayoutclustersUpdate
where
type Rs StorelayoutclustersUpdate = StoreCluster
type Scopes StorelayoutclustersUpdate =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient StorelayoutclustersUpdate'{..}
= go _suuEnterpriseId _suuPageId _suuClusterId
(Just AltJSON)
_suuPayload
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy StorelayoutclustersUpdateResource)
mempty