{-# 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.DNS.ManagedZoneOperations.List
(
ManagedZoneOperationsListResource
, managedZoneOperationsList
, ManagedZoneOperationsList
, mzolProject
, mzolPageToken
, mzolManagedZone
, mzolMaxResults
, mzolSortBy
) where
import Network.Google.DNS.Types
import Network.Google.Prelude
type ManagedZoneOperationsListResource =
"dns" :>
"v2beta1" :>
"projects" :>
Capture "project" Text :>
"managedZones" :>
Capture "managedZone" Text :>
"operations" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "sortBy" ManagedZoneOperationsListSortBy
:>
QueryParam "alt" AltJSON :>
Get '[JSON] ManagedZoneOperationsListResponse
data ManagedZoneOperationsList = ManagedZoneOperationsList'
{ _mzolProject :: !Text
, _mzolPageToken :: !(Maybe Text)
, _mzolManagedZone :: !Text
, _mzolMaxResults :: !(Maybe (Textual Int32))
, _mzolSortBy :: !ManagedZoneOperationsListSortBy
} deriving (Eq,Show,Data,Typeable,Generic)
managedZoneOperationsList
:: Text
-> Text
-> ManagedZoneOperationsList
managedZoneOperationsList pMzolProject_ pMzolManagedZone_ =
ManagedZoneOperationsList'
{ _mzolProject = pMzolProject_
, _mzolPageToken = Nothing
, _mzolManagedZone = pMzolManagedZone_
, _mzolMaxResults = Nothing
, _mzolSortBy = StartTime
}
mzolProject :: Lens' ManagedZoneOperationsList Text
mzolProject
= lens _mzolProject (\ s a -> s{_mzolProject = a})
mzolPageToken :: Lens' ManagedZoneOperationsList (Maybe Text)
mzolPageToken
= lens _mzolPageToken
(\ s a -> s{_mzolPageToken = a})
mzolManagedZone :: Lens' ManagedZoneOperationsList Text
mzolManagedZone
= lens _mzolManagedZone
(\ s a -> s{_mzolManagedZone = a})
mzolMaxResults :: Lens' ManagedZoneOperationsList (Maybe Int32)
mzolMaxResults
= lens _mzolMaxResults
(\ s a -> s{_mzolMaxResults = a})
. mapping _Coerce
mzolSortBy :: Lens' ManagedZoneOperationsList ManagedZoneOperationsListSortBy
mzolSortBy
= lens _mzolSortBy (\ s a -> s{_mzolSortBy = a})
instance GoogleRequest ManagedZoneOperationsList
where
type Rs ManagedZoneOperationsList =
ManagedZoneOperationsListResponse
type Scopes ManagedZoneOperationsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only",
"https://www.googleapis.com/auth/ndev.clouddns.readonly",
"https://www.googleapis.com/auth/ndev.clouddns.readwrite"]
requestClient ManagedZoneOperationsList'{..}
= go _mzolProject _mzolManagedZone _mzolPageToken
_mzolMaxResults
(Just _mzolSortBy)
(Just AltJSON)
dNSService
where go
= buildClient
(Proxy :: Proxy ManagedZoneOperationsListResource)
mempty