{-# 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.Zones.Operations.List
(
ProjectsZonesOperationsListResource
, projectsZonesOperationsList
, ProjectsZonesOperationsList
, pzolParent
, pzolXgafv
, pzolUploadProtocol
, pzolAccessToken
, pzolUploadType
, pzolZone
, pzolProjectId
, pzolCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesOperationsListResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"operations" :>
QueryParam "parent" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListOperationsResponse
data ProjectsZonesOperationsList = ProjectsZonesOperationsList'
{ _pzolParent :: !(Maybe Text)
, _pzolXgafv :: !(Maybe Xgafv)
, _pzolUploadProtocol :: !(Maybe Text)
, _pzolAccessToken :: !(Maybe Text)
, _pzolUploadType :: !(Maybe Text)
, _pzolZone :: !Text
, _pzolProjectId :: !Text
, _pzolCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesOperationsList
:: Text
-> Text
-> ProjectsZonesOperationsList
projectsZonesOperationsList pPzolZone_ pPzolProjectId_ =
ProjectsZonesOperationsList'
{ _pzolParent = Nothing
, _pzolXgafv = Nothing
, _pzolUploadProtocol = Nothing
, _pzolAccessToken = Nothing
, _pzolUploadType = Nothing
, _pzolZone = pPzolZone_
, _pzolProjectId = pPzolProjectId_
, _pzolCallback = Nothing
}
pzolParent :: Lens' ProjectsZonesOperationsList (Maybe Text)
pzolParent
= lens _pzolParent (\ s a -> s{_pzolParent = a})
pzolXgafv :: Lens' ProjectsZonesOperationsList (Maybe Xgafv)
pzolXgafv
= lens _pzolXgafv (\ s a -> s{_pzolXgafv = a})
pzolUploadProtocol :: Lens' ProjectsZonesOperationsList (Maybe Text)
pzolUploadProtocol
= lens _pzolUploadProtocol
(\ s a -> s{_pzolUploadProtocol = a})
pzolAccessToken :: Lens' ProjectsZonesOperationsList (Maybe Text)
pzolAccessToken
= lens _pzolAccessToken
(\ s a -> s{_pzolAccessToken = a})
pzolUploadType :: Lens' ProjectsZonesOperationsList (Maybe Text)
pzolUploadType
= lens _pzolUploadType
(\ s a -> s{_pzolUploadType = a})
pzolZone :: Lens' ProjectsZonesOperationsList Text
pzolZone = lens _pzolZone (\ s a -> s{_pzolZone = a})
pzolProjectId :: Lens' ProjectsZonesOperationsList Text
pzolProjectId
= lens _pzolProjectId
(\ s a -> s{_pzolProjectId = a})
pzolCallback :: Lens' ProjectsZonesOperationsList (Maybe Text)
pzolCallback
= lens _pzolCallback (\ s a -> s{_pzolCallback = a})
instance GoogleRequest ProjectsZonesOperationsList
where
type Rs ProjectsZonesOperationsList =
ListOperationsResponse
type Scopes ProjectsZonesOperationsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesOperationsList'{..}
= go _pzolProjectId _pzolZone _pzolParent _pzolXgafv
_pzolUploadProtocol
_pzolAccessToken
_pzolUploadType
_pzolCallback
(Just AltJSON)
containerService
where go
= buildClient
(Proxy :: Proxy ProjectsZonesOperationsListResource)
mempty