{-# 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.CreateVersion
(
AccountsContainersWorkspacesCreateVersionResource
, accountsContainersWorkspacesCreateVersion
, AccountsContainersWorkspacesCreateVersion
, acwcvPath
, acwcvPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesCreateVersionResource
=
"tagmanager" :>
"v2" :>
CaptureMode "path" "create_version" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
CreateContainerVersionRequestVersionOptions
:> Post '[JSON] CreateContainerVersionResponse
data AccountsContainersWorkspacesCreateVersion = AccountsContainersWorkspacesCreateVersion'
{ _acwcvPath :: !Text
, _acwcvPayload :: !CreateContainerVersionRequestVersionOptions
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesCreateVersion
:: Text
-> CreateContainerVersionRequestVersionOptions
-> AccountsContainersWorkspacesCreateVersion
accountsContainersWorkspacesCreateVersion pAcwcvPath_ pAcwcvPayload_ =
AccountsContainersWorkspacesCreateVersion'
{ _acwcvPath = pAcwcvPath_
, _acwcvPayload = pAcwcvPayload_
}
acwcvPath :: Lens' AccountsContainersWorkspacesCreateVersion Text
acwcvPath
= lens _acwcvPath (\ s a -> s{_acwcvPath = a})
acwcvPayload :: Lens' AccountsContainersWorkspacesCreateVersion CreateContainerVersionRequestVersionOptions
acwcvPayload
= lens _acwcvPayload (\ s a -> s{_acwcvPayload = a})
instance GoogleRequest
AccountsContainersWorkspacesCreateVersion where
type Rs AccountsContainersWorkspacesCreateVersion =
CreateContainerVersionResponse
type Scopes AccountsContainersWorkspacesCreateVersion
=
'["https://www.googleapis.com/auth/tagmanager.edit.containerversions"]
requestClient
AccountsContainersWorkspacesCreateVersion'{..}
= go _acwcvPath (Just AltJSON) _acwcvPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesCreateVersionResource)
mempty