content: {-# 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.PlusDomains.People.ListByActivity
  -- Copyright   : (c) 2015-2025 Brendan Hay
  -- License     : Mozilla Public License, v. 2.0.
  -- Maintainer  : Brendan Hay <brendan.g.hay+gogol@gmail.com>
  --               Toni Cebrián <toni@tonicebrian.com>
  -- Stability   : auto-generated
  -- Portability : non-portable (GHC extensions)
  --
  -- Shut down. See https:\/\/developers.google.com\/+\/api-shutdown for more details.
  --
  -- /See:/ <https://developers.google.com/+/domains/ Google+ Domains API Reference> for @plusDomains.people.listByActivity@.
  module Gogol.PlusDomains.People.ListByActivity
    ( -- * Resource
      PlusDomainsPeopleListByActivityResource,
  
      -- ** Constructing a Request
      PlusDomainsPeopleListByActivity (..),
      newPlusDomainsPeopleListByActivity,
    )
  where
  
  import Gogol.PlusDomains.Types
  import Gogol.Prelude qualified as Core
  
  -- | A resource alias for @plusDomains.people.listByActivity@ method which the
  -- 'PlusDomainsPeopleListByActivity' request conforms to.
  type PlusDomainsPeopleListByActivityResource =
    "plusDomains"
      Core.:> "v1"
      Core.:> "activities"
      Core.:> Core.Capture "activityId" Core.Text
      Core.:> "people"
      Core.:> Core.Capture "collection" PeopleListByActivityCollection
      Core.:> Core.QueryParam "maxResults" Core.Word32
      Core.:> Core.QueryParam "pageToken" Core.Text
      Core.:> Core.QueryParam "alt" Core.AltJSON
      Core.:> Core.Get '[Core.JSON] PeopleFeed
  
  -- | Shut down. See https:\/\/developers.google.com\/+\/api-shutdown for more details.
  --
  -- /See:/ 'newPlusDomainsPeopleListByActivity' smart constructor.
  data PlusDomainsPeopleListByActivity = PlusDomainsPeopleListByActivity
    { -- | The ID of the activity to get the list of people for.
      activityId :: Core.Text,
      -- | The collection of people to list.
      collection :: PeopleListByActivityCollection,
      -- | The maximum number of people to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.
      maxResults :: Core.Word32,
      -- | The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.
      pageToken :: (Core.Maybe Core.Text)
    }
    deriving (Core.Eq, Core.Show, Core.Generic)
  
  -- | Creates a value of 'PlusDomainsPeopleListByActivity' with the minimum fields required to make a request.
  newPlusDomainsPeopleListByActivity ::
    -- |  The ID of the activity to get the list of people for. See 'activityId'.
    Core.Text ->
    -- |  The collection of people to list. See 'collection'.
    PeopleListByActivityCollection ->
    PlusDomainsPeopleListByActivity
  newPlusDomainsPeopleListByActivity activityId collection =
    PlusDomainsPeopleListByActivity
      { activityId = activityId,
        collection = collection,
        maxResults = 20,
        pageToken = Core.Nothing
      }
  
  instance Core.GoogleRequest PlusDomainsPeopleListByActivity where
    type Rs PlusDomainsPeopleListByActivity = PeopleFeed
    type
      Scopes PlusDomainsPeopleListByActivity =
        '[Plus'Login, Plus'Stream'Read]
    requestClient PlusDomainsPeopleListByActivity {..} =
      go
        activityId
        collection
        (Core.Just maxResults)
        pageToken
        (Core.Just Core.AltJSON)
        plusDomainsService
      where
        go =
          Core.buildClient
            (Core.Proxy :: Core.Proxy PlusDomainsPeopleListByActivityResource)
            Core.mempty
  