{-# 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.List
(
ProjectsCompaniesListResource
, projectsCompaniesList
, ProjectsCompaniesList
, pclParent
, pclXgafv
, pclUploadProtocol
, pclRequireOpenJobs
, pclAccessToken
, pclUploadType
, pclPageToken
, pclPageSize
, pclCallback
) where
import Network.Google.Jobs.Types
import Network.Google.Prelude
type ProjectsCompaniesListResource =
"v3p1beta1" :>
Capture "parent" Text :>
"companies" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "requireOpenJobs" Bool :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListCompaniesResponse
data ProjectsCompaniesList = ProjectsCompaniesList'
{ _pclParent :: !Text
, _pclXgafv :: !(Maybe Xgafv)
, _pclUploadProtocol :: !(Maybe Text)
, _pclRequireOpenJobs :: !(Maybe Bool)
, _pclAccessToken :: !(Maybe Text)
, _pclUploadType :: !(Maybe Text)
, _pclPageToken :: !(Maybe Text)
, _pclPageSize :: !(Maybe (Textual Int32))
, _pclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsCompaniesList
:: Text
-> ProjectsCompaniesList
projectsCompaniesList pPclParent_ =
ProjectsCompaniesList'
{ _pclParent = pPclParent_
, _pclXgafv = Nothing
, _pclUploadProtocol = Nothing
, _pclRequireOpenJobs = Nothing
, _pclAccessToken = Nothing
, _pclUploadType = Nothing
, _pclPageToken = Nothing
, _pclPageSize = Nothing
, _pclCallback = Nothing
}
pclParent :: Lens' ProjectsCompaniesList Text
pclParent
= lens _pclParent (\ s a -> s{_pclParent = a})
pclXgafv :: Lens' ProjectsCompaniesList (Maybe Xgafv)
pclXgafv = lens _pclXgafv (\ s a -> s{_pclXgafv = a})
pclUploadProtocol :: Lens' ProjectsCompaniesList (Maybe Text)
pclUploadProtocol
= lens _pclUploadProtocol
(\ s a -> s{_pclUploadProtocol = a})
pclRequireOpenJobs :: Lens' ProjectsCompaniesList (Maybe Bool)
pclRequireOpenJobs
= lens _pclRequireOpenJobs
(\ s a -> s{_pclRequireOpenJobs = a})
pclAccessToken :: Lens' ProjectsCompaniesList (Maybe Text)
pclAccessToken
= lens _pclAccessToken
(\ s a -> s{_pclAccessToken = a})
pclUploadType :: Lens' ProjectsCompaniesList (Maybe Text)
pclUploadType
= lens _pclUploadType
(\ s a -> s{_pclUploadType = a})
pclPageToken :: Lens' ProjectsCompaniesList (Maybe Text)
pclPageToken
= lens _pclPageToken (\ s a -> s{_pclPageToken = a})
pclPageSize :: Lens' ProjectsCompaniesList (Maybe Int32)
pclPageSize
= lens _pclPageSize (\ s a -> s{_pclPageSize = a}) .
mapping _Coerce
pclCallback :: Lens' ProjectsCompaniesList (Maybe Text)
pclCallback
= lens _pclCallback (\ s a -> s{_pclCallback = a})
instance GoogleRequest ProjectsCompaniesList where
type Rs ProjectsCompaniesList = ListCompaniesResponse
type Scopes ProjectsCompaniesList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/jobs"]
requestClient ProjectsCompaniesList'{..}
= go _pclParent _pclXgafv _pclUploadProtocol
_pclRequireOpenJobs
_pclAccessToken
_pclUploadType
_pclPageToken
_pclPageSize
_pclCallback
(Just AltJSON)
jobsService
where go
= buildClient
(Proxy :: Proxy ProjectsCompaniesListResource)
mempty