{-# 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.Regions.Operations.List
(
ProjectsRegionsOperationsListResource
, projectsRegionsOperationsList
, ProjectsRegionsOperationsList
, prolXgafv
, prolUploadProtocol
, prolAccessToken
, prolUploadType
, prolName
, prolFilter
, prolPageToken
, prolPageSize
, prolCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsOperationsListResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListOperationsResponse
data ProjectsRegionsOperationsList = ProjectsRegionsOperationsList'
{ _prolXgafv :: !(Maybe Xgafv)
, _prolUploadProtocol :: !(Maybe Text)
, _prolAccessToken :: !(Maybe Text)
, _prolUploadType :: !(Maybe Text)
, _prolName :: !Text
, _prolFilter :: !(Maybe Text)
, _prolPageToken :: !(Maybe Text)
, _prolPageSize :: !(Maybe (Textual Int32))
, _prolCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsOperationsList
:: Text
-> ProjectsRegionsOperationsList
projectsRegionsOperationsList pProlName_ =
ProjectsRegionsOperationsList'
{ _prolXgafv = Nothing
, _prolUploadProtocol = Nothing
, _prolAccessToken = Nothing
, _prolUploadType = Nothing
, _prolName = pProlName_
, _prolFilter = Nothing
, _prolPageToken = Nothing
, _prolPageSize = Nothing
, _prolCallback = Nothing
}
prolXgafv :: Lens' ProjectsRegionsOperationsList (Maybe Xgafv)
prolXgafv
= lens _prolXgafv (\ s a -> s{_prolXgafv = a})
prolUploadProtocol :: Lens' ProjectsRegionsOperationsList (Maybe Text)
prolUploadProtocol
= lens _prolUploadProtocol
(\ s a -> s{_prolUploadProtocol = a})
prolAccessToken :: Lens' ProjectsRegionsOperationsList (Maybe Text)
prolAccessToken
= lens _prolAccessToken
(\ s a -> s{_prolAccessToken = a})
prolUploadType :: Lens' ProjectsRegionsOperationsList (Maybe Text)
prolUploadType
= lens _prolUploadType
(\ s a -> s{_prolUploadType = a})
prolName :: Lens' ProjectsRegionsOperationsList Text
prolName = lens _prolName (\ s a -> s{_prolName = a})
prolFilter :: Lens' ProjectsRegionsOperationsList (Maybe Text)
prolFilter
= lens _prolFilter (\ s a -> s{_prolFilter = a})
prolPageToken :: Lens' ProjectsRegionsOperationsList (Maybe Text)
prolPageToken
= lens _prolPageToken
(\ s a -> s{_prolPageToken = a})
prolPageSize :: Lens' ProjectsRegionsOperationsList (Maybe Int32)
prolPageSize
= lens _prolPageSize (\ s a -> s{_prolPageSize = a})
. mapping _Coerce
prolCallback :: Lens' ProjectsRegionsOperationsList (Maybe Text)
prolCallback
= lens _prolCallback (\ s a -> s{_prolCallback = a})
instance GoogleRequest ProjectsRegionsOperationsList
where
type Rs ProjectsRegionsOperationsList =
ListOperationsResponse
type Scopes ProjectsRegionsOperationsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRegionsOperationsList'{..}
= go _prolName _prolXgafv _prolUploadProtocol
_prolAccessToken
_prolUploadType
_prolFilter
_prolPageToken
_prolPageSize
_prolCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy ::
Proxy ProjectsRegionsOperationsListResource)
mempty