{-# 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.ManagedZones.Get
(
ManagedZonesGetResource
, managedZonesGet
, ManagedZonesGet
, mzgProject
, mzgManagedZone
, mzgClientOperationId
) where
import Network.Google.DNS.Types
import Network.Google.Prelude
type ManagedZonesGetResource =
"dns" :>
"v2beta1" :>
"projects" :>
Capture "project" Text :>
"managedZones" :>
Capture "managedZone" Text :>
QueryParam "clientOperationId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] ManagedZone
data ManagedZonesGet = ManagedZonesGet'
{ _mzgProject :: !Text
, _mzgManagedZone :: !Text
, _mzgClientOperationId :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
managedZonesGet
:: Text
-> Text
-> ManagedZonesGet
managedZonesGet pMzgProject_ pMzgManagedZone_ =
ManagedZonesGet'
{ _mzgProject = pMzgProject_
, _mzgManagedZone = pMzgManagedZone_
, _mzgClientOperationId = Nothing
}
mzgProject :: Lens' ManagedZonesGet Text
mzgProject
= lens _mzgProject (\ s a -> s{_mzgProject = a})
mzgManagedZone :: Lens' ManagedZonesGet Text
mzgManagedZone
= lens _mzgManagedZone
(\ s a -> s{_mzgManagedZone = a})
mzgClientOperationId :: Lens' ManagedZonesGet (Maybe Text)
mzgClientOperationId
= lens _mzgClientOperationId
(\ s a -> s{_mzgClientOperationId = a})
instance GoogleRequest ManagedZonesGet where
type Rs ManagedZonesGet = ManagedZone
type Scopes ManagedZonesGet =
'["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 ManagedZonesGet'{..}
= go _mzgProject _mzgManagedZone
_mzgClientOperationId
(Just AltJSON)
dNSService
where go
= buildClient
(Proxy :: Proxy ManagedZonesGetResource)
mempty