{-# 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.Products.UnApprove
(
ProductsUnApproveResource
, productsUnApprove
, ProductsUnApprove
, puaEnterpriseId
, puaProductId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type ProductsUnApproveResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"products" :>
Capture "productId" Text :>
"unapprove" :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
data ProductsUnApprove = ProductsUnApprove'
{ _puaEnterpriseId :: !Text
, _puaProductId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
productsUnApprove
:: Text
-> Text
-> ProductsUnApprove
productsUnApprove pPuaEnterpriseId_ pPuaProductId_ =
ProductsUnApprove'
{ _puaEnterpriseId = pPuaEnterpriseId_
, _puaProductId = pPuaProductId_
}
puaEnterpriseId :: Lens' ProductsUnApprove Text
puaEnterpriseId
= lens _puaEnterpriseId
(\ s a -> s{_puaEnterpriseId = a})
puaProductId :: Lens' ProductsUnApprove Text
puaProductId
= lens _puaProductId (\ s a -> s{_puaProductId = a})
instance GoogleRequest ProductsUnApprove where
type Rs ProductsUnApprove = ()
type Scopes ProductsUnApprove =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient ProductsUnApprove'{..}
= go _puaEnterpriseId _puaProductId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy ProductsUnApproveResource)
mempty