{-# 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.DNSKeys.List
(
DNSKeysListResource
, dnsKeysList
, DNSKeysList
, dklProject
, dklDigestType
, dklPageToken
, dklManagedZone
, dklMaxResults
) where
import Network.Google.DNS.Types
import Network.Google.Prelude
type DNSKeysListResource =
"dns" :>
"v2beta1" :>
"projects" :>
Capture "project" Text :>
"managedZones" :>
Capture "managedZone" Text :>
"dnsKeys" :>
QueryParam "digestType" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] DNSKeysListResponse
data DNSKeysList = DNSKeysList'
{ _dklProject :: !Text
, _dklDigestType :: !(Maybe Text)
, _dklPageToken :: !(Maybe Text)
, _dklManagedZone :: !Text
, _dklMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
dnsKeysList
:: Text
-> Text
-> DNSKeysList
dnsKeysList pDklProject_ pDklManagedZone_ =
DNSKeysList'
{ _dklProject = pDklProject_
, _dklDigestType = Nothing
, _dklPageToken = Nothing
, _dklManagedZone = pDklManagedZone_
, _dklMaxResults = Nothing
}
dklProject :: Lens' DNSKeysList Text
dklProject
= lens _dklProject (\ s a -> s{_dklProject = a})
dklDigestType :: Lens' DNSKeysList (Maybe Text)
dklDigestType
= lens _dklDigestType
(\ s a -> s{_dklDigestType = a})
dklPageToken :: Lens' DNSKeysList (Maybe Text)
dklPageToken
= lens _dklPageToken (\ s a -> s{_dklPageToken = a})
dklManagedZone :: Lens' DNSKeysList Text
dklManagedZone
= lens _dklManagedZone
(\ s a -> s{_dklManagedZone = a})
dklMaxResults :: Lens' DNSKeysList (Maybe Int32)
dklMaxResults
= lens _dklMaxResults
(\ s a -> s{_dklMaxResults = a})
. mapping _Coerce
instance GoogleRequest DNSKeysList where
type Rs DNSKeysList = DNSKeysListResponse
type Scopes DNSKeysList =
'["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 DNSKeysList'{..}
= go _dklProject _dklManagedZone _dklDigestType
_dklPageToken
_dklMaxResults
(Just AltJSON)
dNSService
where go
= buildClient (Proxy :: Proxy DNSKeysListResource)
mempty