{-# 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.Services.Get
(
AppsServicesGetResource
, appsServicesGet
, AppsServicesGet
, asgXgafv
, asgUploadProtocol
, asgAccessToken
, asgUploadType
, asgAppsId
, asgServicesId
, asgCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsServicesGetResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"services" :>
Capture "servicesId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Service
data AppsServicesGet = AppsServicesGet'
{ _asgXgafv :: !(Maybe Xgafv)
, _asgUploadProtocol :: !(Maybe Text)
, _asgAccessToken :: !(Maybe Text)
, _asgUploadType :: !(Maybe Text)
, _asgAppsId :: !Text
, _asgServicesId :: !Text
, _asgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsServicesGet
:: Text
-> Text
-> AppsServicesGet
appsServicesGet pAsgAppsId_ pAsgServicesId_ =
AppsServicesGet'
{ _asgXgafv = Nothing
, _asgUploadProtocol = Nothing
, _asgAccessToken = Nothing
, _asgUploadType = Nothing
, _asgAppsId = pAsgAppsId_
, _asgServicesId = pAsgServicesId_
, _asgCallback = Nothing
}
asgXgafv :: Lens' AppsServicesGet (Maybe Xgafv)
asgXgafv = lens _asgXgafv (\ s a -> s{_asgXgafv = a})
asgUploadProtocol :: Lens' AppsServicesGet (Maybe Text)
asgUploadProtocol
= lens _asgUploadProtocol
(\ s a -> s{_asgUploadProtocol = a})
asgAccessToken :: Lens' AppsServicesGet (Maybe Text)
asgAccessToken
= lens _asgAccessToken
(\ s a -> s{_asgAccessToken = a})
asgUploadType :: Lens' AppsServicesGet (Maybe Text)
asgUploadType
= lens _asgUploadType
(\ s a -> s{_asgUploadType = a})
asgAppsId :: Lens' AppsServicesGet Text
asgAppsId
= lens _asgAppsId (\ s a -> s{_asgAppsId = a})
asgServicesId :: Lens' AppsServicesGet Text
asgServicesId
= lens _asgServicesId
(\ s a -> s{_asgServicesId = a})
asgCallback :: Lens' AppsServicesGet (Maybe Text)
asgCallback
= lens _asgCallback (\ s a -> s{_asgCallback = a})
instance GoogleRequest AppsServicesGet where
type Rs AppsServicesGet = Service
type Scopes AppsServicesGet =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsServicesGet'{..}
= go _asgAppsId _asgServicesId _asgXgafv
_asgUploadProtocol
_asgAccessToken
_asgUploadType
_asgCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy :: Proxy AppsServicesGetResource)
mempty