{-# LANGUAGE DataKinds #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE ImportQualifiedPost #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-duplicate-exports #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- | -- Module : Gogol.DNS.ResourceRecordSets.List -- Copyright : (c) 2015-2025 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Toni Cebrián -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Enumerates ResourceRecordSets that you have created but not yet deleted. -- -- /See:/ for @dns.resourceRecordSets.list@. module Gogol.DNS.ResourceRecordSets.List ( -- * Resource DNSResourceRecordSetsListResource, -- ** Constructing a Request DNSResourceRecordSetsList (..), newDNSResourceRecordSetsList, ) where import Gogol.DNS.Types import Gogol.Prelude qualified as Core -- | A resource alias for @dns.resourceRecordSets.list@ method which the -- 'DNSResourceRecordSetsList' request conforms to. type DNSResourceRecordSetsListResource = "dns" Core.:> "v2" Core.:> "projects" Core.:> Core.Capture "project" Core.Text Core.:> "locations" Core.:> Core.Capture "location" Core.Text Core.:> "managedZones" Core.:> Core.Capture "managedZone" Core.Text Core.:> "rrsets" Core.:> Core.QueryParam "$.xgafv" Xgafv Core.:> Core.QueryParam "access_token" Core.Text Core.:> Core.QueryParam "callback" Core.Text Core.:> Core.QueryParam "maxResults" Core.Int32 Core.:> Core.QueryParam "name" Core.Text Core.:> Core.QueryParam "pageToken" Core.Text Core.:> Core.QueryParam "type" Core.Text Core.:> Core.QueryParam "uploadType" Core.Text Core.:> Core.QueryParam "upload_protocol" Core.Text Core.:> Core.QueryParam "alt" Core.AltJSON Core.:> Core.Get '[Core.JSON] ResourceRecordSetsListResponse -- | Enumerates ResourceRecordSets that you have created but not yet deleted. -- -- /See:/ 'newDNSResourceRecordSetsList' smart constructor. data DNSResourceRecordSetsList = DNSResourceRecordSetsList { -- | V1 error format. xgafv :: (Core.Maybe Xgafv), -- | OAuth access token. accessToken :: (Core.Maybe Core.Text), -- | JSONP callback :: (Core.Maybe Core.Text), -- | Specifies the location of the resource. This information will be used for routing and will be part of the resource name. location :: Core.Text, -- | Identifies the managed zone addressed by this request. Can be the managed zone name or ID. managedZone :: Core.Text, -- | Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return. maxResults :: (Core.Maybe Core.Int32), -- | Restricts the list to return only records with this fully qualified domain name. name :: (Core.Maybe Core.Text), -- | Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request. pageToken :: (Core.Maybe Core.Text), -- | Identifies the project addressed by this request. project :: Core.Text, -- | Restricts the list to return only records of this type. If present, the \"name\" parameter must also be present. type' :: (Core.Maybe Core.Text), -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\"). uploadType :: (Core.Maybe Core.Text), -- | Upload protocol for media (e.g. \"raw\", \"multipart\"). uploadProtocol :: (Core.Maybe Core.Text) } deriving (Core.Eq, Core.Show, Core.Generic) -- | Creates a value of 'DNSResourceRecordSetsList' with the minimum fields required to make a request. newDNSResourceRecordSetsList :: -- | Identifies the managed zone addressed by this request. Can be the managed zone name or ID. See 'managedZone'. Core.Text -> -- | Identifies the project addressed by this request. See 'project'. Core.Text -> DNSResourceRecordSetsList newDNSResourceRecordSetsList managedZone project = DNSResourceRecordSetsList { xgafv = Core.Nothing, accessToken = Core.Nothing, callback = Core.Nothing, location = "global", managedZone = managedZone, maxResults = Core.Nothing, name = Core.Nothing, pageToken = Core.Nothing, project = project, type' = Core.Nothing, uploadType = Core.Nothing, uploadProtocol = Core.Nothing } instance Core.GoogleRequest DNSResourceRecordSetsList where type Rs DNSResourceRecordSetsList = ResourceRecordSetsListResponse type Scopes DNSResourceRecordSetsList = '[ CloudPlatform'FullControl, CloudPlatform'ReadOnly, Ndev'Clouddns'Readonly, Ndev'Clouddns'Readwrite ] requestClient DNSResourceRecordSetsList {..} = go project location managedZone xgafv accessToken callback maxResults name pageToken type' uploadType uploadProtocol (Core.Just Core.AltJSON) dNSService where go = Core.buildClient (Core.Proxy :: Core.Proxy DNSResourceRecordSetsListResource) Core.mempty