{-# 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.TagManager.Accounts.Containers.Workspaces.Sync
(
AccountsContainersWorkspacesSyncResource
, accountsContainersWorkspacesSync
, AccountsContainersWorkspacesSync
, acwsPath
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesSyncResource =
"tagmanager" :>
"v2" :>
CaptureMode "path" "sync" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON] SyncWorkspaceResponse
newtype AccountsContainersWorkspacesSync = AccountsContainersWorkspacesSync'
{ _acwsPath :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesSync
:: Text
-> AccountsContainersWorkspacesSync
accountsContainersWorkspacesSync pAcwsPath_ =
AccountsContainersWorkspacesSync'
{ _acwsPath = pAcwsPath_
}
acwsPath :: Lens' AccountsContainersWorkspacesSync Text
acwsPath = lens _acwsPath (\ s a -> s{_acwsPath = a})
instance GoogleRequest
AccountsContainersWorkspacesSync where
type Rs AccountsContainersWorkspacesSync =
SyncWorkspaceResponse
type Scopes AccountsContainersWorkspacesSync =
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient AccountsContainersWorkspacesSync'{..}
= go _acwsPath (Just AltJSON) tagManagerService
where go
= buildClient
(Proxy ::
Proxy AccountsContainersWorkspacesSyncResource)
mempty