{-# 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.ProximityBeacon.Beacons.Deactivate -- 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) -- -- Deactivates a beacon. Once deactivated, the API will not return information nor attachment data for the beacon when queried via @beaconinfo.getforobserved@. Calling this method on an already inactive beacon will do nothing (but will return a successful response code). -- -- Authenticate using an from a signed-in user with __Is owner__ or __Can edit__ permissions in the Google Developers Console project. -- -- /See:/ for @proximitybeacon.beacons.deactivate@. module Gogol.ProximityBeacon.Beacons.Deactivate ( -- * Resource ProximityBeaconBeaconsDeactivateResource, -- ** Constructing a Request ProximityBeaconBeaconsDeactivate (..), newProximityBeaconBeaconsDeactivate, ) where import Gogol.Prelude qualified as Core import Gogol.ProximityBeacon.Types -- | A resource alias for @proximitybeacon.beacons.deactivate@ method which the -- 'ProximityBeaconBeaconsDeactivate' request conforms to. type ProximityBeaconBeaconsDeactivateResource = "v1beta1" Core.:> Core.CaptureMode "beaconName" "deactivate" Core.Text Core.:> Core.QueryParam "$.xgafv" Xgafv Core.:> Core.QueryParam "access_token" Core.Text Core.:> Core.QueryParam "callback" Core.Text Core.:> Core.QueryParam "projectId" Core.Text Core.:> Core.QueryParam "uploadType" Core.Text Core.:> Core.QueryParam "upload_protocol" Core.Text Core.:> Core.QueryParam "alt" Core.AltJSON Core.:> Core.Post '[Core.JSON] Empty -- | Deactivates a beacon. Once deactivated, the API will not return information nor attachment data for the beacon when queried via @beaconinfo.getforobserved@. Calling this method on an already inactive beacon will do nothing (but will return a successful response code). -- -- Authenticate using an from a signed-in user with __Is owner__ or __Can edit__ permissions in the Google Developers Console project. -- -- /See:/ 'newProximityBeaconBeaconsDeactivate' smart constructor. data ProximityBeaconBeaconsDeactivate = ProximityBeaconBeaconsDeactivate { -- | V1 error format. xgafv :: (Core.Maybe Xgafv), -- | OAuth access token. accessToken :: (Core.Maybe Core.Text), -- | Beacon that should be deactivated. A beacon name has the format \"beacons\/N!beaconId\" where the beaconId is the base16 ID broadcast by the beacon and N is a code for the beacon\'s type. Possible values are @3@ for Eddystone-UID, @4@ for Eddystone-EID, @1@ for iBeacon, or @5@ for AltBeacon. For Eddystone-EID beacons, you may use either the current EID or the beacon\'s \"stable\" UID. Required. beaconName :: Core.Text, -- | JSONP callback :: (Core.Maybe Core.Text), -- | The project id of the beacon to deactivate. If the project id is not specified then the project making the request is used. The project id must match the project that owns the beacon. Optional. projectId :: (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 'ProximityBeaconBeaconsDeactivate' with the minimum fields required to make a request. newProximityBeaconBeaconsDeactivate :: -- | Beacon that should be deactivated. A beacon name has the format \"beacons\/N!beaconId\" where the beaconId is the base16 ID broadcast by the beacon and N is a code for the beacon\'s type. Possible values are @3@ for Eddystone-UID, @4@ for Eddystone-EID, @1@ for iBeacon, or @5@ for AltBeacon. For Eddystone-EID beacons, you may use either the current EID or the beacon\'s \"stable\" UID. Required. See 'beaconName'. Core.Text -> ProximityBeaconBeaconsDeactivate newProximityBeaconBeaconsDeactivate beaconName = ProximityBeaconBeaconsDeactivate { xgafv = Core.Nothing, accessToken = Core.Nothing, beaconName = beaconName, callback = Core.Nothing, projectId = Core.Nothing, uploadType = Core.Nothing, uploadProtocol = Core.Nothing } instance Core.GoogleRequest ProximityBeaconBeaconsDeactivate where type Rs ProximityBeaconBeaconsDeactivate = Empty type Scopes ProximityBeaconBeaconsDeactivate = '[Userlocation'Beacon'Registry] requestClient ProximityBeaconBeaconsDeactivate {..} = go beaconName xgafv accessToken callback projectId uploadType uploadProtocol (Core.Just Core.AltJSON) proximityBeaconService where go = Core.buildClient (Core.Proxy :: Core.Proxy ProximityBeaconBeaconsDeactivateResource) Core.mempty