{-# 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.Get
(
ManagedZoneOperationsGetResource
, managedZoneOperationsGet
, ManagedZoneOperationsGet
, mzogProject
, mzogOperation
, mzogManagedZone
, mzogClientOperationId
) where
import Network.Google.DNS.Types
import Network.Google.Prelude
type ManagedZoneOperationsGetResource =
"dns" :>
"v2beta1" :>
"projects" :>
Capture "project" Text :>
"managedZones" :>
Capture "managedZone" Text :>
"operations" :>
Capture "operation" Text :>
QueryParam "clientOperationId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Operation
data ManagedZoneOperationsGet = ManagedZoneOperationsGet'
{ _mzogProject :: !Text
, _mzogOperation :: !Text
, _mzogManagedZone :: !Text
, _mzogClientOperationId :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
managedZoneOperationsGet
:: Text
-> Text
-> Text
-> ManagedZoneOperationsGet
managedZoneOperationsGet pMzogProject_ pMzogOperation_ pMzogManagedZone_ =
ManagedZoneOperationsGet'
{ _mzogProject = pMzogProject_
, _mzogOperation = pMzogOperation_
, _mzogManagedZone = pMzogManagedZone_
, _mzogClientOperationId = Nothing
}
mzogProject :: Lens' ManagedZoneOperationsGet Text
mzogProject
= lens _mzogProject (\ s a -> s{_mzogProject = a})
mzogOperation :: Lens' ManagedZoneOperationsGet Text
mzogOperation
= lens _mzogOperation
(\ s a -> s{_mzogOperation = a})
mzogManagedZone :: Lens' ManagedZoneOperationsGet Text
mzogManagedZone
= lens _mzogManagedZone
(\ s a -> s{_mzogManagedZone = a})
mzogClientOperationId :: Lens' ManagedZoneOperationsGet (Maybe Text)
mzogClientOperationId
= lens _mzogClientOperationId
(\ s a -> s{_mzogClientOperationId = a})
instance GoogleRequest ManagedZoneOperationsGet where
type Rs ManagedZoneOperationsGet = Operation
type Scopes ManagedZoneOperationsGet =
'["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 ManagedZoneOperationsGet'{..}
= go _mzogProject _mzogManagedZone _mzogOperation
_mzogClientOperationId
(Just AltJSON)
dNSService
where go
= buildClient
(Proxy :: Proxy ManagedZoneOperationsGetResource)
mempty