{-# 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.Activate -- 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) -- -- Activates a beacon. A beacon that is active will return information and attachment data when queried via @beaconinfo.getforobserved@. Calling this method on an already active 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.activate@. module Gogol.ProximityBeacon.Beacons.Activate ( -- * Resource ProximityBeaconBeaconsActivateResource, -- ** Constructing a Request ProximityBeaconBeaconsActivate (..), newProximityBeaconBeaconsActivate, ) where import Gogol.Prelude qualified as Core import Gogol.ProximityBeacon.Types -- | A resource alias for @proximitybeacon.beacons.activate@ method which the -- 'ProximityBeaconBeaconsActivate' request conforms to. type ProximityBeaconBeaconsActivateResource = "v1beta1" Core.:> Core.CaptureMode "beaconName" "activate" 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 -- | Activates a beacon. A beacon that is active will return information and attachment data when queried via @beaconinfo.getforobserved@. Calling this method on an already active 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:/ 'newProximityBeaconBeaconsActivate' smart constructor. data ProximityBeaconBeaconsActivate = ProximityBeaconBeaconsActivate { -- | V1 error format. xgafv :: (Core.Maybe Xgafv), -- | OAuth access token. accessToken :: (Core.Maybe Core.Text), -- | Beacon that should be activated. 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 activate. 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 'ProximityBeaconBeaconsActivate' with the minimum fields required to make a request. newProximityBeaconBeaconsActivate :: -- | Beacon that should be activated. 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 -> ProximityBeaconBeaconsActivate newProximityBeaconBeaconsActivate beaconName = ProximityBeaconBeaconsActivate { xgafv = Core.Nothing, accessToken = Core.Nothing, beaconName = beaconName, callback = Core.Nothing, projectId = Core.Nothing, uploadType = Core.Nothing, uploadProtocol = Core.Nothing } instance Core.GoogleRequest ProximityBeaconBeaconsActivate where type Rs ProximityBeaconBeaconsActivate = Empty type Scopes ProximityBeaconBeaconsActivate = '[Userlocation'Beacon'Registry] requestClient ProximityBeaconBeaconsActivate {..} = go beaconName xgafv accessToken callback projectId uploadType uploadProtocol (Core.Just Core.AltJSON) proximityBeaconService where go = Core.buildClient (Core.Proxy :: Core.Proxy ProximityBeaconBeaconsActivateResource) Core.mempty