{-# 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.Applications.Verify
(
ApplicationsVerifyResource
, applicationsVerify
, ApplicationsVerify
, avApplicationId
) where
import Network.Google.Games.Types
import Network.Google.Prelude
type ApplicationsVerifyResource =
"games" :>
"v1" :>
"applications" :>
Capture "applicationId" Text :>
"verify" :>
QueryParam "alt" AltJSON :>
Get '[JSON] ApplicationVerifyResponse
newtype ApplicationsVerify = ApplicationsVerify'
{ _avApplicationId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
applicationsVerify
:: Text
-> ApplicationsVerify
applicationsVerify pAvApplicationId_ =
ApplicationsVerify'
{ _avApplicationId = pAvApplicationId_
}
avApplicationId :: Lens' ApplicationsVerify Text
avApplicationId
= lens _avApplicationId
(\ s a -> s{_avApplicationId = a})
instance GoogleRequest ApplicationsVerify where
type Rs ApplicationsVerify =
ApplicationVerifyResponse
type Scopes ApplicationsVerify =
'["https://www.googleapis.com/auth/games"]
requestClient ApplicationsVerify'{..}
= go _avApplicationId (Just AltJSON) gamesService
where go
= buildClient
(Proxy :: Proxy ApplicationsVerifyResource)
mempty