{-# 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.Games.Metagame.GetMetagameConfig
(
MetagameGetMetagameConfigResource
, metagameGetMetagameConfig
, MetagameGetMetagameConfig
) where
import Network.Google.Games.Types
import Network.Google.Prelude
type MetagameGetMetagameConfigResource =
"games" :>
"v1" :>
"metagameConfig" :>
QueryParam "alt" AltJSON :>
Get '[JSON] MetagameConfig
data MetagameGetMetagameConfig =
MetagameGetMetagameConfig'
deriving (Eq,Show,Data,Typeable,Generic)
metagameGetMetagameConfig
:: MetagameGetMetagameConfig
metagameGetMetagameConfig = MetagameGetMetagameConfig'
instance GoogleRequest MetagameGetMetagameConfig
where
type Rs MetagameGetMetagameConfig = MetagameConfig
type Scopes MetagameGetMetagameConfig =
'["https://www.googleapis.com/auth/games"]
requestClient MetagameGetMetagameConfig'{}
= go (Just AltJSON) gamesService
where go
= buildClient
(Proxy :: Proxy MetagameGetMetagameConfigResource)
mempty