{-# 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.Analytics.Management.WebPropertyAdWordsLinks.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 an existing webProperty-Google Ads link. This method supports patch semantics. -- -- /See:/ for @analytics.management.webPropertyAdWordsLinks.patch@. module Gogol.Analytics.Management.WebPropertyAdWordsLinks.Patch ( -- * Resource AnalyticsManagementWebPropertyAdWordsLinksPatchResource, -- ** Constructing a Request AnalyticsManagementWebPropertyAdWordsLinksPatch (..), newAnalyticsManagementWebPropertyAdWordsLinksPatch, ) where import Gogol.Analytics.Types import Gogol.Prelude qualified as Core -- | A resource alias for @analytics.management.webPropertyAdWordsLinks.patch@ method which the -- 'AnalyticsManagementWebPropertyAdWordsLinksPatch' request conforms to. type AnalyticsManagementWebPropertyAdWordsLinksPatchResource = "analytics" Core.:> "v3" Core.:> "management" Core.:> "accounts" Core.:> Core.Capture "accountId" Core.Text Core.:> "webproperties" Core.:> Core.Capture "webPropertyId" Core.Text Core.:> "entityAdWordsLinks" Core.:> Core.Capture "webPropertyAdWordsLinkId" Core.Text Core.:> Core.QueryParam "alt" Core.AltJSON Core.:> Core.ReqBody '[Core.JSON] EntityAdWordsLink Core.:> Core.Patch '[Core.JSON] EntityAdWordsLink -- | Updates an existing webProperty-Google Ads link. This method supports patch semantics. -- -- /See:/ 'newAnalyticsManagementWebPropertyAdWordsLinksPatch' smart constructor. data AnalyticsManagementWebPropertyAdWordsLinksPatch = AnalyticsManagementWebPropertyAdWordsLinksPatch { -- | ID of the account which the given web property belongs to. accountId :: Core.Text, -- | Multipart request metadata. payload :: EntityAdWordsLink, -- | Web property-Google Ads link ID. webPropertyAdWordsLinkId :: Core.Text, -- | Web property ID to retrieve the Google Ads link for. webPropertyId :: Core.Text } deriving (Core.Eq, Core.Show, Core.Generic) -- | Creates a value of 'AnalyticsManagementWebPropertyAdWordsLinksPatch' with the minimum fields required to make a request. newAnalyticsManagementWebPropertyAdWordsLinksPatch :: -- | ID of the account which the given web property belongs to. See 'accountId'. Core.Text -> -- | Multipart request metadata. See 'payload'. EntityAdWordsLink -> -- | Web property-Google Ads link ID. See 'webPropertyAdWordsLinkId'. Core.Text -> -- | Web property ID to retrieve the Google Ads link for. See 'webPropertyId'. Core.Text -> AnalyticsManagementWebPropertyAdWordsLinksPatch newAnalyticsManagementWebPropertyAdWordsLinksPatch accountId payload webPropertyAdWordsLinkId webPropertyId = AnalyticsManagementWebPropertyAdWordsLinksPatch { accountId = accountId, payload = payload, webPropertyAdWordsLinkId = webPropertyAdWordsLinkId, webPropertyId = webPropertyId } instance Core.GoogleRequest AnalyticsManagementWebPropertyAdWordsLinksPatch where type Rs AnalyticsManagementWebPropertyAdWordsLinksPatch = EntityAdWordsLink type Scopes AnalyticsManagementWebPropertyAdWordsLinksPatch = '[Analytics'Edit] requestClient AnalyticsManagementWebPropertyAdWordsLinksPatch {..} = go accountId webPropertyId webPropertyAdWordsLinkId (Core.Just Core.AltJSON) payload analyticsService where go = Core.buildClient ( Core.Proxy :: Core.Proxy AnalyticsManagementWebPropertyAdWordsLinksPatchResource ) Core.mempty