{-# 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.TPU.Projects.Locations.Operations.List
(
ProjectsLocationsOperationsListResource
, projectsLocationsOperationsList
, ProjectsLocationsOperationsList
, plolXgafv
, plolUploadProtocol
, plolAccessToken
, plolUploadType
, plolName
, plolFilter
, plolPageToken
, plolPageSize
, plolCallback
) where
import Network.Google.Prelude
import Network.Google.TPU.Types
type ProjectsLocationsOperationsListResource =
"v1" :>
Capture "name" Text :>
"operations" :>
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 ProjectsLocationsOperationsList = ProjectsLocationsOperationsList'
{ _plolXgafv :: !(Maybe Xgafv)
, _plolUploadProtocol :: !(Maybe Text)
, _plolAccessToken :: !(Maybe Text)
, _plolUploadType :: !(Maybe Text)
, _plolName :: !Text
, _plolFilter :: !(Maybe Text)
, _plolPageToken :: !(Maybe Text)
, _plolPageSize :: !(Maybe (Textual Int32))
, _plolCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsOperationsList
:: Text
-> ProjectsLocationsOperationsList
projectsLocationsOperationsList pPlolName_ =
ProjectsLocationsOperationsList'
{ _plolXgafv = Nothing
, _plolUploadProtocol = Nothing
, _plolAccessToken = Nothing
, _plolUploadType = Nothing
, _plolName = pPlolName_
, _plolFilter = Nothing
, _plolPageToken = Nothing
, _plolPageSize = Nothing
, _plolCallback = Nothing
}
plolXgafv :: Lens' ProjectsLocationsOperationsList (Maybe Xgafv)
plolXgafv
= lens _plolXgafv (\ s a -> s{_plolXgafv = a})
plolUploadProtocol :: Lens' ProjectsLocationsOperationsList (Maybe Text)
plolUploadProtocol
= lens _plolUploadProtocol
(\ s a -> s{_plolUploadProtocol = a})
plolAccessToken :: Lens' ProjectsLocationsOperationsList (Maybe Text)
plolAccessToken
= lens _plolAccessToken
(\ s a -> s{_plolAccessToken = a})
plolUploadType :: Lens' ProjectsLocationsOperationsList (Maybe Text)
plolUploadType
= lens _plolUploadType
(\ s a -> s{_plolUploadType = a})
plolName :: Lens' ProjectsLocationsOperationsList Text
plolName = lens _plolName (\ s a -> s{_plolName = a})
plolFilter :: Lens' ProjectsLocationsOperationsList (Maybe Text)
plolFilter
= lens _plolFilter (\ s a -> s{_plolFilter = a})
plolPageToken :: Lens' ProjectsLocationsOperationsList (Maybe Text)
plolPageToken
= lens _plolPageToken
(\ s a -> s{_plolPageToken = a})
plolPageSize :: Lens' ProjectsLocationsOperationsList (Maybe Int32)
plolPageSize
= lens _plolPageSize (\ s a -> s{_plolPageSize = a})
. mapping _Coerce
plolCallback :: Lens' ProjectsLocationsOperationsList (Maybe Text)
plolCallback
= lens _plolCallback (\ s a -> s{_plolCallback = a})
instance GoogleRequest
ProjectsLocationsOperationsList where
type Rs ProjectsLocationsOperationsList =
ListOperationsResponse
type Scopes ProjectsLocationsOperationsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsOperationsList'{..}
= go _plolName _plolXgafv _plolUploadProtocol
_plolAccessToken
_plolUploadType
_plolFilter
_plolPageToken
_plolPageSize
_plolCallback
(Just AltJSON)
tPUService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsOperationsListResource)
mempty