{-# 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.AppEngine.Apps.DomainMAppings.Patch
(
AppsDomainMAppingsPatchResource
, appsDomainMAppingsPatch
, AppsDomainMAppingsPatch
, admapXgafv
, admapUploadProtocol
, admapUpdateMask
, admapAccessToken
, admapUploadType
, admapPayload
, admapAppsId
, admapDomainMAppingsId
, admapCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsDomainMAppingsPatchResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"domainMappings" :>
Capture "domainMappingsId" 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] DomainMApping :>
Patch '[JSON] Operation
data AppsDomainMAppingsPatch = AppsDomainMAppingsPatch'
{ _admapXgafv :: !(Maybe Xgafv)
, _admapUploadProtocol :: !(Maybe Text)
, _admapUpdateMask :: !(Maybe GFieldMask)
, _admapAccessToken :: !(Maybe Text)
, _admapUploadType :: !(Maybe Text)
, _admapPayload :: !DomainMApping
, _admapAppsId :: !Text
, _admapDomainMAppingsId :: !Text
, _admapCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsDomainMAppingsPatch
:: DomainMApping
-> Text
-> Text
-> AppsDomainMAppingsPatch
appsDomainMAppingsPatch pAdmapPayload_ pAdmapAppsId_ pAdmapDomainMAppingsId_ =
AppsDomainMAppingsPatch'
{ _admapXgafv = Nothing
, _admapUploadProtocol = Nothing
, _admapUpdateMask = Nothing
, _admapAccessToken = Nothing
, _admapUploadType = Nothing
, _admapPayload = pAdmapPayload_
, _admapAppsId = pAdmapAppsId_
, _admapDomainMAppingsId = pAdmapDomainMAppingsId_
, _admapCallback = Nothing
}
admapXgafv :: Lens' AppsDomainMAppingsPatch (Maybe Xgafv)
admapXgafv
= lens _admapXgafv (\ s a -> s{_admapXgafv = a})
admapUploadProtocol :: Lens' AppsDomainMAppingsPatch (Maybe Text)
admapUploadProtocol
= lens _admapUploadProtocol
(\ s a -> s{_admapUploadProtocol = a})
admapUpdateMask :: Lens' AppsDomainMAppingsPatch (Maybe GFieldMask)
admapUpdateMask
= lens _admapUpdateMask
(\ s a -> s{_admapUpdateMask = a})
admapAccessToken :: Lens' AppsDomainMAppingsPatch (Maybe Text)
admapAccessToken
= lens _admapAccessToken
(\ s a -> s{_admapAccessToken = a})
admapUploadType :: Lens' AppsDomainMAppingsPatch (Maybe Text)
admapUploadType
= lens _admapUploadType
(\ s a -> s{_admapUploadType = a})
admapPayload :: Lens' AppsDomainMAppingsPatch DomainMApping
admapPayload
= lens _admapPayload (\ s a -> s{_admapPayload = a})
admapAppsId :: Lens' AppsDomainMAppingsPatch Text
admapAppsId
= lens _admapAppsId (\ s a -> s{_admapAppsId = a})
admapDomainMAppingsId :: Lens' AppsDomainMAppingsPatch Text
admapDomainMAppingsId
= lens _admapDomainMAppingsId
(\ s a -> s{_admapDomainMAppingsId = a})
admapCallback :: Lens' AppsDomainMAppingsPatch (Maybe Text)
admapCallback
= lens _admapCallback
(\ s a -> s{_admapCallback = a})
instance GoogleRequest AppsDomainMAppingsPatch where
type Rs AppsDomainMAppingsPatch = Operation
type Scopes AppsDomainMAppingsPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient AppsDomainMAppingsPatch'{..}
= go _admapAppsId _admapDomainMAppingsId _admapXgafv
_admapUploadProtocol
_admapUpdateMask
_admapAccessToken
_admapUploadType
_admapCallback
(Just AltJSON)
_admapPayload
appEngineService
where go
= buildClient
(Proxy :: Proxy AppsDomainMAppingsPatchResource)
mempty