{-# 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.Details.Get
(
EditsDetailsGetResource
, editsDetailsGet
, EditsDetailsGet
, edgPackageName
, edgEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsDetailsGetResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"details" :>
QueryParam "alt" AltJSON :> Get '[JSON] AppDetails
data EditsDetailsGet = EditsDetailsGet'
{ _edgPackageName :: !Text
, _edgEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsDetailsGet
:: Text
-> Text
-> EditsDetailsGet
editsDetailsGet pEdgPackageName_ pEdgEditId_ =
EditsDetailsGet'
{ _edgPackageName = pEdgPackageName_
, _edgEditId = pEdgEditId_
}
edgPackageName :: Lens' EditsDetailsGet Text
edgPackageName
= lens _edgPackageName
(\ s a -> s{_edgPackageName = a})
edgEditId :: Lens' EditsDetailsGet Text
edgEditId
= lens _edgEditId (\ s a -> s{_edgEditId = a})
instance GoogleRequest EditsDetailsGet where
type Rs EditsDetailsGet = AppDetails
type Scopes EditsDetailsGet =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsDetailsGet'{..}
= go _edgPackageName _edgEditId (Just AltJSON)
androidPublisherService
where go
= buildClient
(Proxy :: Proxy EditsDetailsGetResource)
mempty