{-# 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.Versions.Instances.Get
(
AppsServicesVersionsInstancesGetResource
, appsServicesVersionsInstancesGet
, AppsServicesVersionsInstancesGet
, asvigXgafv
, asvigInstancesId
, asvigUploadProtocol
, asvigAccessToken
, asvigUploadType
, asvigVersionsId
, asvigAppsId
, asvigServicesId
, asvigCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsServicesVersionsInstancesGetResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"services" :>
Capture "servicesId" Text :>
"versions" :>
Capture "versionsId" Text :>
"instances" :>
Capture "instancesId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] Instance
data AppsServicesVersionsInstancesGet = AppsServicesVersionsInstancesGet'
{ _asvigXgafv :: !(Maybe Xgafv)
, _asvigInstancesId :: !Text
, _asvigUploadProtocol :: !(Maybe Text)
, _asvigAccessToken :: !(Maybe Text)
, _asvigUploadType :: !(Maybe Text)
, _asvigVersionsId :: !Text
, _asvigAppsId :: !Text
, _asvigServicesId :: !Text
, _asvigCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsServicesVersionsInstancesGet
:: Text
-> Text
-> Text
-> Text
-> AppsServicesVersionsInstancesGet
appsServicesVersionsInstancesGet pAsvigInstancesId_ pAsvigVersionsId_ pAsvigAppsId_ pAsvigServicesId_ =
AppsServicesVersionsInstancesGet'
{ _asvigXgafv = Nothing
, _asvigInstancesId = pAsvigInstancesId_
, _asvigUploadProtocol = Nothing
, _asvigAccessToken = Nothing
, _asvigUploadType = Nothing
, _asvigVersionsId = pAsvigVersionsId_
, _asvigAppsId = pAsvigAppsId_
, _asvigServicesId = pAsvigServicesId_
, _asvigCallback = Nothing
}
asvigXgafv :: Lens' AppsServicesVersionsInstancesGet (Maybe Xgafv)
asvigXgafv
= lens _asvigXgafv (\ s a -> s{_asvigXgafv = a})
asvigInstancesId :: Lens' AppsServicesVersionsInstancesGet Text
asvigInstancesId
= lens _asvigInstancesId
(\ s a -> s{_asvigInstancesId = a})
asvigUploadProtocol :: Lens' AppsServicesVersionsInstancesGet (Maybe Text)
asvigUploadProtocol
= lens _asvigUploadProtocol
(\ s a -> s{_asvigUploadProtocol = a})
asvigAccessToken :: Lens' AppsServicesVersionsInstancesGet (Maybe Text)
asvigAccessToken
= lens _asvigAccessToken
(\ s a -> s{_asvigAccessToken = a})
asvigUploadType :: Lens' AppsServicesVersionsInstancesGet (Maybe Text)
asvigUploadType
= lens _asvigUploadType
(\ s a -> s{_asvigUploadType = a})
asvigVersionsId :: Lens' AppsServicesVersionsInstancesGet Text
asvigVersionsId
= lens _asvigVersionsId
(\ s a -> s{_asvigVersionsId = a})
asvigAppsId :: Lens' AppsServicesVersionsInstancesGet Text
asvigAppsId
= lens _asvigAppsId (\ s a -> s{_asvigAppsId = a})
asvigServicesId :: Lens' AppsServicesVersionsInstancesGet Text
asvigServicesId
= lens _asvigServicesId
(\ s a -> s{_asvigServicesId = a})
asvigCallback :: Lens' AppsServicesVersionsInstancesGet (Maybe Text)
asvigCallback
= lens _asvigCallback
(\ s a -> s{_asvigCallback = a})
instance GoogleRequest
AppsServicesVersionsInstancesGet where
type Rs AppsServicesVersionsInstancesGet = Instance
type Scopes AppsServicesVersionsInstancesGet =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsServicesVersionsInstancesGet'{..}
= go _asvigAppsId _asvigServicesId _asvigVersionsId
_asvigInstancesId
_asvigXgafv
_asvigUploadProtocol
_asvigAccessToken
_asvigUploadType
_asvigCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy ::
Proxy AppsServicesVersionsInstancesGetResource)
mempty