{-# 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.Dataproc.Projects.Locations.WorkflowTemplates.List
(
ProjectsLocationsWorkflowTemplatesListResource
, projectsLocationsWorkflowTemplatesList
, ProjectsLocationsWorkflowTemplatesList
, plwtlParent
, plwtlXgafv
, plwtlUploadProtocol
, plwtlAccessToken
, plwtlUploadType
, plwtlPageToken
, plwtlPageSize
, plwtlCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsLocationsWorkflowTemplatesListResource =
"v1" :>
Capture "parent" Text :>
"workflowTemplates" :>
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] ListWorkflowTemplatesResponse
data ProjectsLocationsWorkflowTemplatesList = ProjectsLocationsWorkflowTemplatesList'
{ _plwtlParent :: !Text
, _plwtlXgafv :: !(Maybe Xgafv)
, _plwtlUploadProtocol :: !(Maybe Text)
, _plwtlAccessToken :: !(Maybe Text)
, _plwtlUploadType :: !(Maybe Text)
, _plwtlPageToken :: !(Maybe Text)
, _plwtlPageSize :: !(Maybe (Textual Int32))
, _plwtlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsWorkflowTemplatesList
:: Text
-> ProjectsLocationsWorkflowTemplatesList
projectsLocationsWorkflowTemplatesList pPlwtlParent_ =
ProjectsLocationsWorkflowTemplatesList'
{ _plwtlParent = pPlwtlParent_
, _plwtlXgafv = Nothing
, _plwtlUploadProtocol = Nothing
, _plwtlAccessToken = Nothing
, _plwtlUploadType = Nothing
, _plwtlPageToken = Nothing
, _plwtlPageSize = Nothing
, _plwtlCallback = Nothing
}
plwtlParent :: Lens' ProjectsLocationsWorkflowTemplatesList Text
plwtlParent
= lens _plwtlParent (\ s a -> s{_plwtlParent = a})
plwtlXgafv :: Lens' ProjectsLocationsWorkflowTemplatesList (Maybe Xgafv)
plwtlXgafv
= lens _plwtlXgafv (\ s a -> s{_plwtlXgafv = a})
plwtlUploadProtocol :: Lens' ProjectsLocationsWorkflowTemplatesList (Maybe Text)
plwtlUploadProtocol
= lens _plwtlUploadProtocol
(\ s a -> s{_plwtlUploadProtocol = a})
plwtlAccessToken :: Lens' ProjectsLocationsWorkflowTemplatesList (Maybe Text)
plwtlAccessToken
= lens _plwtlAccessToken
(\ s a -> s{_plwtlAccessToken = a})
plwtlUploadType :: Lens' ProjectsLocationsWorkflowTemplatesList (Maybe Text)
plwtlUploadType
= lens _plwtlUploadType
(\ s a -> s{_plwtlUploadType = a})
plwtlPageToken :: Lens' ProjectsLocationsWorkflowTemplatesList (Maybe Text)
plwtlPageToken
= lens _plwtlPageToken
(\ s a -> s{_plwtlPageToken = a})
plwtlPageSize :: Lens' ProjectsLocationsWorkflowTemplatesList (Maybe Int32)
plwtlPageSize
= lens _plwtlPageSize
(\ s a -> s{_plwtlPageSize = a})
. mapping _Coerce
plwtlCallback :: Lens' ProjectsLocationsWorkflowTemplatesList (Maybe Text)
plwtlCallback
= lens _plwtlCallback
(\ s a -> s{_plwtlCallback = a})
instance GoogleRequest
ProjectsLocationsWorkflowTemplatesList where
type Rs ProjectsLocationsWorkflowTemplatesList =
ListWorkflowTemplatesResponse
type Scopes ProjectsLocationsWorkflowTemplatesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsWorkflowTemplatesList'{..}
= go _plwtlParent _plwtlXgafv _plwtlUploadProtocol
_plwtlAccessToken
_plwtlUploadType
_plwtlPageToken
_plwtlPageSize
_plwtlCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsWorkflowTemplatesListResource)
mempty