{-# 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.Composer.Projects.Locations.Environments.Get
(
ProjectsLocationsEnvironmentsGetResource
, projectsLocationsEnvironmentsGet
, ProjectsLocationsEnvironmentsGet
, plegXgafv
, plegUploadProtocol
, plegAccessToken
, plegUploadType
, plegName
, plegCallback
) where
import Network.Google.Composer.Types
import Network.Google.Prelude
type ProjectsLocationsEnvironmentsGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Environment
data ProjectsLocationsEnvironmentsGet = ProjectsLocationsEnvironmentsGet'
{ _plegXgafv :: !(Maybe Xgafv)
, _plegUploadProtocol :: !(Maybe Text)
, _plegAccessToken :: !(Maybe Text)
, _plegUploadType :: !(Maybe Text)
, _plegName :: !Text
, _plegCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsEnvironmentsGet
:: Text
-> ProjectsLocationsEnvironmentsGet
projectsLocationsEnvironmentsGet pPlegName_ =
ProjectsLocationsEnvironmentsGet'
{ _plegXgafv = Nothing
, _plegUploadProtocol = Nothing
, _plegAccessToken = Nothing
, _plegUploadType = Nothing
, _plegName = pPlegName_
, _plegCallback = Nothing
}
plegXgafv :: Lens' ProjectsLocationsEnvironmentsGet (Maybe Xgafv)
plegXgafv
= lens _plegXgafv (\ s a -> s{_plegXgafv = a})
plegUploadProtocol :: Lens' ProjectsLocationsEnvironmentsGet (Maybe Text)
plegUploadProtocol
= lens _plegUploadProtocol
(\ s a -> s{_plegUploadProtocol = a})
plegAccessToken :: Lens' ProjectsLocationsEnvironmentsGet (Maybe Text)
plegAccessToken
= lens _plegAccessToken
(\ s a -> s{_plegAccessToken = a})
plegUploadType :: Lens' ProjectsLocationsEnvironmentsGet (Maybe Text)
plegUploadType
= lens _plegUploadType
(\ s a -> s{_plegUploadType = a})
plegName :: Lens' ProjectsLocationsEnvironmentsGet Text
plegName = lens _plegName (\ s a -> s{_plegName = a})
plegCallback :: Lens' ProjectsLocationsEnvironmentsGet (Maybe Text)
plegCallback
= lens _plegCallback (\ s a -> s{_plegCallback = a})
instance GoogleRequest
ProjectsLocationsEnvironmentsGet where
type Rs ProjectsLocationsEnvironmentsGet =
Environment
type Scopes ProjectsLocationsEnvironmentsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsEnvironmentsGet'{..}
= go _plegName _plegXgafv _plegUploadProtocol
_plegAccessToken
_plegUploadType
_plegCallback
(Just AltJSON)
composerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsEnvironmentsGetResource)
mempty