{-# 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.Admin.Directory.Chromeosdevices.Get -- 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) -- -- Retrieves a Chrome OS device\'s properties. -- -- /See:/ for @directory.chromeosdevices.get@. module Gogol.Admin.Directory.Chromeosdevices.Get ( -- * Resource DirectoryChromeosdevicesGetResource, -- ** Constructing a Request DirectoryChromeosdevicesGet (..), newDirectoryChromeosdevicesGet, ) where import Gogol.Admin.Directory.Types import Gogol.Prelude qualified as Core -- | A resource alias for @directory.chromeosdevices.get@ method which the -- 'DirectoryChromeosdevicesGet' request conforms to. type DirectoryChromeosdevicesGetResource = "admin" Core.:> "directory" Core.:> "v1" Core.:> "customer" Core.:> Core.Capture "customerId" Core.Text Core.:> "devices" Core.:> "chromeos" Core.:> Core.Capture "deviceId" Core.Text Core.:> Core.QueryParam "$.xgafv" Xgafv Core.:> Core.QueryParam "access_token" Core.Text Core.:> Core.QueryParam "callback" Core.Text Core.:> Core.QueryParam "projection" ChromeosdevicesGetProjection Core.:> Core.QueryParam "uploadType" Core.Text Core.:> Core.QueryParam "upload_protocol" Core.Text Core.:> Core.QueryParam "alt" Core.AltJSON Core.:> Core.Get '[Core.JSON] ChromeOsDevice -- | Retrieves a Chrome OS device\'s properties. -- -- /See:/ 'newDirectoryChromeosdevicesGet' smart constructor. data DirectoryChromeosdevicesGet = DirectoryChromeosdevicesGet { -- | V1 error format. xgafv :: (Core.Maybe Xgafv), -- | OAuth access token. accessToken :: (Core.Maybe Core.Text), -- | JSONP callback :: (Core.Maybe Core.Text), -- | The unique ID for the customer\'s Google Workspace account. As an account administrator, you can also use the @my_customer@ alias to represent your account\'s @customerId@. The @customerId@ is also returned as part of the . customerId :: Core.Text, -- | The unique ID of the device. The @deviceId@s are returned in the response from the method. deviceId :: Core.Text, -- | Determines whether the response contains the full list of properties or only a subset. projection :: (Core.Maybe ChromeosdevicesGetProjection), -- | 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 'DirectoryChromeosdevicesGet' with the minimum fields required to make a request. newDirectoryChromeosdevicesGet :: -- | The unique ID for the customer\'s Google Workspace account. As an account administrator, you can also use the @my_customer@ alias to represent your account\'s @customerId@. The @customerId@ is also returned as part of the . See 'customerId'. Core.Text -> -- | The unique ID of the device. The @deviceId@s are returned in the response from the method. See 'deviceId'. Core.Text -> DirectoryChromeosdevicesGet newDirectoryChromeosdevicesGet customerId deviceId = DirectoryChromeosdevicesGet { xgafv = Core.Nothing, accessToken = Core.Nothing, callback = Core.Nothing, customerId = customerId, deviceId = deviceId, projection = Core.Nothing, uploadType = Core.Nothing, uploadProtocol = Core.Nothing } instance Core.GoogleRequest DirectoryChromeosdevicesGet where type Rs DirectoryChromeosdevicesGet = ChromeOsDevice type Scopes DirectoryChromeosdevicesGet = '[ Admin'Directory'Device'Chromeos, Admin'Directory'Device'Chromeos'Readonly ] requestClient DirectoryChromeosdevicesGet {..} = go customerId deviceId xgafv accessToken callback projection uploadType uploadProtocol (Core.Just Core.AltJSON) adminDirectoryService where go = Core.buildClient (Core.Proxy :: Core.Proxy DirectoryChromeosdevicesGetResource) Core.mempty