{-# 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.Tracks.Get
(
EditsTracksGetResource
, editsTracksGet
, EditsTracksGet
, etgtTrack
, etgtPackageName
, etgtEditId
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type EditsTracksGetResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"edits" :>
Capture "editId" Text :>
"tracks" :>
Capture "track" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Track
data EditsTracksGet = EditsTracksGet'
{ _etgtTrack :: !Text
, _etgtPackageName :: !Text
, _etgtEditId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
editsTracksGet
:: Text
-> Text
-> Text
-> EditsTracksGet
editsTracksGet pEtgtTrack_ pEtgtPackageName_ pEtgtEditId_ =
EditsTracksGet'
{ _etgtTrack = pEtgtTrack_
, _etgtPackageName = pEtgtPackageName_
, _etgtEditId = pEtgtEditId_
}
etgtTrack :: Lens' EditsTracksGet Text
etgtTrack
= lens _etgtTrack (\ s a -> s{_etgtTrack = a})
etgtPackageName :: Lens' EditsTracksGet Text
etgtPackageName
= lens _etgtPackageName
(\ s a -> s{_etgtPackageName = a})
etgtEditId :: Lens' EditsTracksGet Text
etgtEditId
= lens _etgtEditId (\ s a -> s{_etgtEditId = a})
instance GoogleRequest EditsTracksGet where
type Rs EditsTracksGet = Track
type Scopes EditsTracksGet =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient EditsTracksGet'{..}
= go _etgtPackageName _etgtEditId _etgtTrack
(Just AltJSON)
androidPublisherService
where go
= buildClient (Proxy :: Proxy EditsTracksGetResource)
mempty