{-# 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.CloudScheduler.Projects.Locations.Jobs.List
(
ProjectsLocationsJobsListResource
, projectsLocationsJobsList
, ProjectsLocationsJobsList
, pljlParent
, pljlXgafv
, pljlUploadProtocol
, pljlAccessToken
, pljlUploadType
, pljlPageToken
, pljlPageSize
, pljlCallback
) where
import Network.Google.CloudScheduler.Types
import Network.Google.Prelude
type ProjectsLocationsJobsListResource =
"v1beta1" :>
Capture "parent" Text :>
"jobs" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListJobsResponse
data ProjectsLocationsJobsList = ProjectsLocationsJobsList'
{ _pljlParent :: !Text
, _pljlXgafv :: !(Maybe Xgafv)
, _pljlUploadProtocol :: !(Maybe Text)
, _pljlAccessToken :: !(Maybe Text)
, _pljlUploadType :: !(Maybe Text)
, _pljlPageToken :: !(Maybe Text)
, _pljlPageSize :: !(Maybe (Textual Int32))
, _pljlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsJobsList
:: Text
-> ProjectsLocationsJobsList
projectsLocationsJobsList pPljlParent_ =
ProjectsLocationsJobsList'
{ _pljlParent = pPljlParent_
, _pljlXgafv = Nothing
, _pljlUploadProtocol = Nothing
, _pljlAccessToken = Nothing
, _pljlUploadType = Nothing
, _pljlPageToken = Nothing
, _pljlPageSize = Nothing
, _pljlCallback = Nothing
}
pljlParent :: Lens' ProjectsLocationsJobsList Text
pljlParent
= lens _pljlParent (\ s a -> s{_pljlParent = a})
pljlXgafv :: Lens' ProjectsLocationsJobsList (Maybe Xgafv)
pljlXgafv
= lens _pljlXgafv (\ s a -> s{_pljlXgafv = a})
pljlUploadProtocol :: Lens' ProjectsLocationsJobsList (Maybe Text)
pljlUploadProtocol
= lens _pljlUploadProtocol
(\ s a -> s{_pljlUploadProtocol = a})
pljlAccessToken :: Lens' ProjectsLocationsJobsList (Maybe Text)
pljlAccessToken
= lens _pljlAccessToken
(\ s a -> s{_pljlAccessToken = a})
pljlUploadType :: Lens' ProjectsLocationsJobsList (Maybe Text)
pljlUploadType
= lens _pljlUploadType
(\ s a -> s{_pljlUploadType = a})
pljlPageToken :: Lens' ProjectsLocationsJobsList (Maybe Text)
pljlPageToken
= lens _pljlPageToken
(\ s a -> s{_pljlPageToken = a})
pljlPageSize :: Lens' ProjectsLocationsJobsList (Maybe Int32)
pljlPageSize
= lens _pljlPageSize (\ s a -> s{_pljlPageSize = a})
. mapping _Coerce
pljlCallback :: Lens' ProjectsLocationsJobsList (Maybe Text)
pljlCallback
= lens _pljlCallback (\ s a -> s{_pljlCallback = a})
instance GoogleRequest ProjectsLocationsJobsList
where
type Rs ProjectsLocationsJobsList = ListJobsResponse
type Scopes ProjectsLocationsJobsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsJobsList'{..}
= go _pljlParent _pljlXgafv _pljlUploadProtocol
_pljlAccessToken
_pljlUploadType
_pljlPageToken
_pljlPageSize
_pljlCallback
(Just AltJSON)
cloudSchedulerService
where go
= buildClient
(Proxy :: Proxy ProjectsLocationsJobsListResource)
mempty