{-# 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.AppState.States.List
(
StatesListResource
, statesList
, StatesList
, slIncludeData
) where
import Network.Google.AppState.Types
import Network.Google.Prelude
type StatesListResource =
"appstate" :>
"v1" :>
"states" :>
QueryParam "includeData" Bool :>
QueryParam "alt" AltJSON :> Get '[JSON] ListResponse
newtype StatesList = StatesList'
{ _slIncludeData :: Bool
} deriving (Eq,Show,Data,Typeable,Generic)
statesList
:: StatesList
statesList =
StatesList'
{ _slIncludeData = False
}
slIncludeData :: Lens' StatesList Bool
slIncludeData
= lens _slIncludeData
(\ s a -> s{_slIncludeData = a})
instance GoogleRequest StatesList where
type Rs StatesList = ListResponse
type Scopes StatesList =
'["https://www.googleapis.com/auth/appstate"]
requestClient StatesList'{..}
= go (Just _slIncludeData) (Just AltJSON)
appStateService
where go
= buildClient (Proxy :: Proxy StatesListResource)
mempty