{-# 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.FusionTables.Column.Patch -- 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) -- -- Updates the name or type of an existing column. This method supports patch semantics. -- -- /See:/ for @fusiontables.column.patch@. module Gogol.FusionTables.Column.Patch ( -- * Resource FusionTablesColumnPatchResource, -- ** Constructing a Request FusionTablesColumnPatch (..), newFusionTablesColumnPatch, ) where import Gogol.FusionTables.Types import Gogol.Prelude qualified as Core -- | A resource alias for @fusiontables.column.patch@ method which the -- 'FusionTablesColumnPatch' request conforms to. type FusionTablesColumnPatchResource = "fusiontables" Core.:> "v2" Core.:> "tables" Core.:> Core.Capture "tableId" Core.Text Core.:> "columns" Core.:> Core.Capture "columnId" Core.Text Core.:> Core.QueryParam "alt" Core.AltJSON Core.:> Core.ReqBody '[Core.JSON] Column Core.:> Core.Patch '[Core.JSON] Column -- | Updates the name or type of an existing column. This method supports patch semantics. -- -- /See:/ 'newFusionTablesColumnPatch' smart constructor. data FusionTablesColumnPatch = FusionTablesColumnPatch { -- | Name or identifier for the column that is being updated. columnId :: Core.Text, -- | Multipart request metadata. payload :: Column, -- | Table for which the column is being updated. tableId :: Core.Text } deriving (Core.Eq, Core.Show, Core.Generic) -- | Creates a value of 'FusionTablesColumnPatch' with the minimum fields required to make a request. newFusionTablesColumnPatch :: -- | Name or identifier for the column that is being updated. See 'columnId'. Core.Text -> -- | Multipart request metadata. See 'payload'. Column -> -- | Table for which the column is being updated. See 'tableId'. Core.Text -> FusionTablesColumnPatch newFusionTablesColumnPatch columnId payload tableId = FusionTablesColumnPatch { columnId = columnId, payload = payload, tableId = tableId } instance Core.GoogleRequest FusionTablesColumnPatch where type Rs FusionTablesColumnPatch = Column type Scopes FusionTablesColumnPatch = '[Fusiontables'FullControl] requestClient FusionTablesColumnPatch {..} = go tableId columnId (Core.Just Core.AltJSON) payload fusionTablesService where go = Core.buildClient (Core.Proxy :: Core.Proxy FusionTablesColumnPatchResource) Core.mempty