{-# 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.Testing.TestEnvironmentCatalog.Get
(
TestEnvironmentCatalogGetResource
, testEnvironmentCatalogGet
, TestEnvironmentCatalogGet
, tecgXgafv
, tecgUploadProtocol
, tecgAccessToken
, tecgUploadType
, tecgEnvironmentType
, tecgProjectId
, tecgCallback
) where
import Network.Google.Prelude
import Network.Google.Testing.Types
type TestEnvironmentCatalogGetResource =
"v1" :>
"testEnvironmentCatalog" :>
Capture "environmentType" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "projectId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] TestEnvironmentCatalog
data TestEnvironmentCatalogGet = TestEnvironmentCatalogGet'
{ _tecgXgafv :: !(Maybe Xgafv)
, _tecgUploadProtocol :: !(Maybe Text)
, _tecgAccessToken :: !(Maybe Text)
, _tecgUploadType :: !(Maybe Text)
, _tecgEnvironmentType :: !Text
, _tecgProjectId :: !(Maybe Text)
, _tecgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
testEnvironmentCatalogGet
:: Text
-> TestEnvironmentCatalogGet
testEnvironmentCatalogGet pTecgEnvironmentType_ =
TestEnvironmentCatalogGet'
{ _tecgXgafv = Nothing
, _tecgUploadProtocol = Nothing
, _tecgAccessToken = Nothing
, _tecgUploadType = Nothing
, _tecgEnvironmentType = pTecgEnvironmentType_
, _tecgProjectId = Nothing
, _tecgCallback = Nothing
}
tecgXgafv :: Lens' TestEnvironmentCatalogGet (Maybe Xgafv)
tecgXgafv
= lens _tecgXgafv (\ s a -> s{_tecgXgafv = a})
tecgUploadProtocol :: Lens' TestEnvironmentCatalogGet (Maybe Text)
tecgUploadProtocol
= lens _tecgUploadProtocol
(\ s a -> s{_tecgUploadProtocol = a})
tecgAccessToken :: Lens' TestEnvironmentCatalogGet (Maybe Text)
tecgAccessToken
= lens _tecgAccessToken
(\ s a -> s{_tecgAccessToken = a})
tecgUploadType :: Lens' TestEnvironmentCatalogGet (Maybe Text)
tecgUploadType
= lens _tecgUploadType
(\ s a -> s{_tecgUploadType = a})
tecgEnvironmentType :: Lens' TestEnvironmentCatalogGet Text
tecgEnvironmentType
= lens _tecgEnvironmentType
(\ s a -> s{_tecgEnvironmentType = a})
tecgProjectId :: Lens' TestEnvironmentCatalogGet (Maybe Text)
tecgProjectId
= lens _tecgProjectId
(\ s a -> s{_tecgProjectId = a})
tecgCallback :: Lens' TestEnvironmentCatalogGet (Maybe Text)
tecgCallback
= lens _tecgCallback (\ s a -> s{_tecgCallback = a})
instance GoogleRequest TestEnvironmentCatalogGet
where
type Rs TestEnvironmentCatalogGet =
TestEnvironmentCatalog
type Scopes TestEnvironmentCatalogGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient TestEnvironmentCatalogGet'{..}
= go _tecgEnvironmentType _tecgXgafv
_tecgUploadProtocol
_tecgAccessToken
_tecgUploadType
_tecgProjectId
_tecgCallback
(Just AltJSON)
testingService
where go
= buildClient
(Proxy :: Proxy TestEnvironmentCatalogGetResource)
mempty