{-# 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.AndroidPublisher.Edits.Validate
(
EditsValidateResource
, editsValidate
, EditsValidate
, evPackageName
, evEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsValidateResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
CaptureMode "editId" "validate" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] AppEdit
data EditsValidate = EditsValidate'
{ _evPackageName :: !Text
, _evEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsValidate
:: Text
-> Text
-> EditsValidate
editsValidate pEvPackageName_ pEvEditId_ =
EditsValidate'
{ _evPackageName = pEvPackageName_
, _evEditId = pEvEditId_
}
evPackageName :: Lens' EditsValidate Text
evPackageName
= lens _evPackageName
(\ s a -> s{_evPackageName = a})
evEditId :: Lens' EditsValidate Text
evEditId = lens _evEditId (\ s a -> s{_evEditId = a})
instance GoogleRequest EditsValidate where
type Rs EditsValidate = AppEdit
type Scopes EditsValidate =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsValidate'{..}
= go _evPackageName _evEditId (Just AltJSON)
androidPublisherService
where go
= buildClient (Proxy :: Proxy EditsValidateResource)
mempty