{-# 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.AppEngine.Apps.Get
(
AppsGetResource
, appsGet
, AppsGet
, agXgafv
, agUploadProtocol
, agAccessToken
, agUploadType
, agAppsId
, agCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsGetResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Application
data AppsGet = AppsGet'
{ _agXgafv :: !(Maybe Xgafv)
, _agUploadProtocol :: !(Maybe Text)
, _agAccessToken :: !(Maybe Text)
, _agUploadType :: !(Maybe Text)
, _agAppsId :: !Text
, _agCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsGet
:: Text
-> AppsGet
appsGet pAgAppsId_ =
AppsGet'
{ _agXgafv = Nothing
, _agUploadProtocol = Nothing
, _agAccessToken = Nothing
, _agUploadType = Nothing
, _agAppsId = pAgAppsId_
, _agCallback = Nothing
}
agXgafv :: Lens' AppsGet (Maybe Xgafv)
agXgafv = lens _agXgafv (\ s a -> s{_agXgafv = a})
agUploadProtocol :: Lens' AppsGet (Maybe Text)
agUploadProtocol
= lens _agUploadProtocol
(\ s a -> s{_agUploadProtocol = a})
agAccessToken :: Lens' AppsGet (Maybe Text)
agAccessToken
= lens _agAccessToken
(\ s a -> s{_agAccessToken = a})
agUploadType :: Lens' AppsGet (Maybe Text)
agUploadType
= lens _agUploadType (\ s a -> s{_agUploadType = a})
agAppsId :: Lens' AppsGet Text
agAppsId = lens _agAppsId (\ s a -> s{_agAppsId = a})
agCallback :: Lens' AppsGet (Maybe Text)
agCallback
= lens _agCallback (\ s a -> s{_agCallback = a})
instance GoogleRequest AppsGet where
type Rs AppsGet = Application
type Scopes AppsGet =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsGet'{..}
= go _agAppsId _agXgafv _agUploadProtocol
_agAccessToken
_agUploadType
_agCallback
(Just AltJSON)
appEngineService
where go
= buildClient (Proxy :: Proxy AppsGetResource) mempty