{-# 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.Jobs.Projects.Companies.Get
(
ProjectsCompaniesGetResource
, projectsCompaniesGet
, ProjectsCompaniesGet
, pcgXgafv
, pcgUploadProtocol
, pcgAccessToken
, pcgUploadType
, pcgName
, pcgCallback
) where
import Network.Google.Jobs.Types
import Network.Google.Prelude
type ProjectsCompaniesGetResource =
"v3p1beta1" :>
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] Company
data ProjectsCompaniesGet = ProjectsCompaniesGet'
{ _pcgXgafv :: !(Maybe Xgafv)
, _pcgUploadProtocol :: !(Maybe Text)
, _pcgAccessToken :: !(Maybe Text)
, _pcgUploadType :: !(Maybe Text)
, _pcgName :: !Text
, _pcgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsCompaniesGet
:: Text
-> ProjectsCompaniesGet
projectsCompaniesGet pPcgName_ =
ProjectsCompaniesGet'
{ _pcgXgafv = Nothing
, _pcgUploadProtocol = Nothing
, _pcgAccessToken = Nothing
, _pcgUploadType = Nothing
, _pcgName = pPcgName_
, _pcgCallback = Nothing
}
pcgXgafv :: Lens' ProjectsCompaniesGet (Maybe Xgafv)
pcgXgafv = lens _pcgXgafv (\ s a -> s{_pcgXgafv = a})
pcgUploadProtocol :: Lens' ProjectsCompaniesGet (Maybe Text)
pcgUploadProtocol
= lens _pcgUploadProtocol
(\ s a -> s{_pcgUploadProtocol = a})
pcgAccessToken :: Lens' ProjectsCompaniesGet (Maybe Text)
pcgAccessToken
= lens _pcgAccessToken
(\ s a -> s{_pcgAccessToken = a})
pcgUploadType :: Lens' ProjectsCompaniesGet (Maybe Text)
pcgUploadType
= lens _pcgUploadType
(\ s a -> s{_pcgUploadType = a})
pcgName :: Lens' ProjectsCompaniesGet Text
pcgName = lens _pcgName (\ s a -> s{_pcgName = a})
pcgCallback :: Lens' ProjectsCompaniesGet (Maybe Text)
pcgCallback
= lens _pcgCallback (\ s a -> s{_pcgCallback = a})
instance GoogleRequest ProjectsCompaniesGet where
type Rs ProjectsCompaniesGet = Company
type Scopes ProjectsCompaniesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/jobs"]
requestClient ProjectsCompaniesGet'{..}
= go _pcgName _pcgXgafv _pcgUploadProtocol
_pcgAccessToken
_pcgUploadType
_pcgCallback
(Just AltJSON)
jobsService
where go
= buildClient
(Proxy :: Proxy ProjectsCompaniesGetResource)
mempty