{-# 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.Container.Projects.Locations.Operations.List
(
ProjectsLocationsOperationsListResource
, projectsLocationsOperationsList
, ProjectsLocationsOperationsList
, plolParent
, plolXgafv
, plolUploadProtocol
, plolAccessToken
, plolUploadType
, plolZone
, plolProjectId
, plolCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsOperationsListResource =
"v1" :>
Capture "parent" Text :>
"operations" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "zone" Text :>
QueryParam "projectId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListOperationsResponse
data ProjectsLocationsOperationsList = ProjectsLocationsOperationsList'
{ _plolParent :: !Text
, _plolXgafv :: !(Maybe Xgafv)
, _plolUploadProtocol :: !(Maybe Text)
, _plolAccessToken :: !(Maybe Text)
, _plolUploadType :: !(Maybe Text)
, _plolZone :: !(Maybe Text)
, _plolProjectId :: !(Maybe Text)
, _plolCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsOperationsList
:: Text
-> ProjectsLocationsOperationsList
projectsLocationsOperationsList pPlolParent_ =
ProjectsLocationsOperationsList'
{ _plolParent = pPlolParent_
, _plolXgafv = Nothing
, _plolUploadProtocol = Nothing
, _plolAccessToken = Nothing
, _plolUploadType = Nothing
, _plolZone = Nothing
, _plolProjectId = Nothing
, _plolCallback = Nothing
}
plolParent :: Lens' ProjectsLocationsOperationsList Text
plolParent
= lens _plolParent (\ s a -> s{_plolParent = a})
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})
plolZone :: Lens' ProjectsLocationsOperationsList (Maybe Text)
plolZone = lens _plolZone (\ s a -> s{_plolZone = a})
plolProjectId :: Lens' ProjectsLocationsOperationsList (Maybe Text)
plolProjectId
= lens _plolProjectId
(\ s a -> s{_plolProjectId = a})
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 _plolParent _plolXgafv _plolUploadProtocol
_plolAccessToken
_plolUploadType
_plolZone
_plolProjectId
_plolCallback
(Just AltJSON)
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsOperationsListResource)
mempty