{-# 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.Directory.Resources.Features.Update
(
ResourcesFeaturesUpdateResource
, resourcesFeaturesUpdate
, ResourcesFeaturesUpdate
, rfuPayload
, rfuCustomer
, rfuFeatureKey
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type ResourcesFeaturesUpdateResource =
"admin" :>
"directory" :>
"v1" :>
"customer" :>
Capture "customer" Text :>
"resources" :>
"features" :>
Capture "featureKey" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Feature :> Put '[JSON] Feature
data ResourcesFeaturesUpdate = ResourcesFeaturesUpdate'
{ _rfuPayload :: !Feature
, _rfuCustomer :: !Text
, _rfuFeatureKey :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
resourcesFeaturesUpdate
:: Feature
-> Text
-> Text
-> ResourcesFeaturesUpdate
resourcesFeaturesUpdate pRfuPayload_ pRfuCustomer_ pRfuFeatureKey_ =
ResourcesFeaturesUpdate'
{ _rfuPayload = pRfuPayload_
, _rfuCustomer = pRfuCustomer_
, _rfuFeatureKey = pRfuFeatureKey_
}
rfuPayload :: Lens' ResourcesFeaturesUpdate Feature
rfuPayload
= lens _rfuPayload (\ s a -> s{_rfuPayload = a})
rfuCustomer :: Lens' ResourcesFeaturesUpdate Text
rfuCustomer
= lens _rfuCustomer (\ s a -> s{_rfuCustomer = a})
rfuFeatureKey :: Lens' ResourcesFeaturesUpdate Text
rfuFeatureKey
= lens _rfuFeatureKey
(\ s a -> s{_rfuFeatureKey = a})
instance GoogleRequest ResourcesFeaturesUpdate where
type Rs ResourcesFeaturesUpdate = Feature
type Scopes ResourcesFeaturesUpdate =
'["https://www.googleapis.com/auth/admin.directory.resource.calendar"]
requestClient ResourcesFeaturesUpdate'{..}
= go _rfuCustomer _rfuFeatureKey (Just AltJSON)
_rfuPayload
directoryService
where go
= buildClient
(Proxy :: Proxy ResourcesFeaturesUpdateResource)
mempty