{-# 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.Container.Projects.Locations.GetServerConfig
(
ProjectsLocationsGetServerConfigResource
, projectsLocationsGetServerConfig
, ProjectsLocationsGetServerConfig
, plgscXgafv
, plgscUploadProtocol
, plgscAccessToken
, plgscUploadType
, plgscZone
, plgscName
, plgscProjectId
, plgscCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsGetServerConfigResource =
"v1" :>
Capture "name" Text :>
"serverConfig" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "zone" Text :>
QueryParam "projectId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] ServerConfig
data ProjectsLocationsGetServerConfig = ProjectsLocationsGetServerConfig'
{ _plgscXgafv :: !(Maybe Xgafv)
, _plgscUploadProtocol :: !(Maybe Text)
, _plgscAccessToken :: !(Maybe Text)
, _plgscUploadType :: !(Maybe Text)
, _plgscZone :: !(Maybe Text)
, _plgscName :: !Text
, _plgscProjectId :: !(Maybe Text)
, _plgscCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsGetServerConfig
:: Text
-> ProjectsLocationsGetServerConfig
projectsLocationsGetServerConfig pPlgscName_ =
ProjectsLocationsGetServerConfig'
{ _plgscXgafv = Nothing
, _plgscUploadProtocol = Nothing
, _plgscAccessToken = Nothing
, _plgscUploadType = Nothing
, _plgscZone = Nothing
, _plgscName = pPlgscName_
, _plgscProjectId = Nothing
, _plgscCallback = Nothing
}
plgscXgafv :: Lens' ProjectsLocationsGetServerConfig (Maybe Xgafv)
plgscXgafv
= lens _plgscXgafv (\ s a -> s{_plgscXgafv = a})
plgscUploadProtocol :: Lens' ProjectsLocationsGetServerConfig (Maybe Text)
plgscUploadProtocol
= lens _plgscUploadProtocol
(\ s a -> s{_plgscUploadProtocol = a})
plgscAccessToken :: Lens' ProjectsLocationsGetServerConfig (Maybe Text)
plgscAccessToken
= lens _plgscAccessToken
(\ s a -> s{_plgscAccessToken = a})
plgscUploadType :: Lens' ProjectsLocationsGetServerConfig (Maybe Text)
plgscUploadType
= lens _plgscUploadType
(\ s a -> s{_plgscUploadType = a})
plgscZone :: Lens' ProjectsLocationsGetServerConfig (Maybe Text)
plgscZone
= lens _plgscZone (\ s a -> s{_plgscZone = a})
plgscName :: Lens' ProjectsLocationsGetServerConfig Text
plgscName
= lens _plgscName (\ s a -> s{_plgscName = a})
plgscProjectId :: Lens' ProjectsLocationsGetServerConfig (Maybe Text)
plgscProjectId
= lens _plgscProjectId
(\ s a -> s{_plgscProjectId = a})
plgscCallback :: Lens' ProjectsLocationsGetServerConfig (Maybe Text)
plgscCallback
= lens _plgscCallback
(\ s a -> s{_plgscCallback = a})
instance GoogleRequest
ProjectsLocationsGetServerConfig where
type Rs ProjectsLocationsGetServerConfig =
ServerConfig
type Scopes ProjectsLocationsGetServerConfig =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsGetServerConfig'{..}
= go _plgscName _plgscXgafv _plgscUploadProtocol
_plgscAccessToken
_plgscUploadType
_plgscZone
_plgscProjectId
_plgscCallback
(Just AltJSON)
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsGetServerConfigResource)
mempty