{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Licensing.LicenseAssignments.ListForProduct
(
LicenseAssignmentsListForProductResource
, licenseAssignmentsListForProduct
, LicenseAssignmentsListForProduct
, lalfpCustomerId
, lalfpPageToken
, lalfpProductId
, lalfpMaxResults
) where
import Network.Google.AppsLicensing.Types
import Network.Google.Prelude
type LicenseAssignmentsListForProductResource =
"apps" :>
"licensing" :>
"v1" :>
"product" :>
Capture "productId" Text :>
"users" :>
QueryParam "customerId" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] LicenseAssignmentList
data LicenseAssignmentsListForProduct = LicenseAssignmentsListForProduct'
{ _lalfpCustomerId :: !Text
, _lalfpPageToken :: !Text
, _lalfpProductId :: !Text
, _lalfpMaxResults :: !(Textual Word32)
} deriving (Eq,Show,Data,Typeable,Generic)
licenseAssignmentsListForProduct
:: Text
-> Text
-> LicenseAssignmentsListForProduct
licenseAssignmentsListForProduct pLalfpCustomerId_ pLalfpProductId_ =
LicenseAssignmentsListForProduct'
{ _lalfpCustomerId = pLalfpCustomerId_
, _lalfpPageToken = ""
, _lalfpProductId = pLalfpProductId_
, _lalfpMaxResults = 100
}
lalfpCustomerId :: Lens' LicenseAssignmentsListForProduct Text
lalfpCustomerId
= lens _lalfpCustomerId
(\ s a -> s{_lalfpCustomerId = a})
lalfpPageToken :: Lens' LicenseAssignmentsListForProduct Text
lalfpPageToken
= lens _lalfpPageToken
(\ s a -> s{_lalfpPageToken = a})
lalfpProductId :: Lens' LicenseAssignmentsListForProduct Text
lalfpProductId
= lens _lalfpProductId
(\ s a -> s{_lalfpProductId = a})
lalfpMaxResults :: Lens' LicenseAssignmentsListForProduct Word32
lalfpMaxResults
= lens _lalfpMaxResults
(\ s a -> s{_lalfpMaxResults = a})
. _Coerce
instance GoogleRequest
LicenseAssignmentsListForProduct where
type Rs LicenseAssignmentsListForProduct =
LicenseAssignmentList
type Scopes LicenseAssignmentsListForProduct =
'["https://www.googleapis.com/auth/apps.licensing"]
requestClient LicenseAssignmentsListForProduct'{..}
= go _lalfpProductId (Just _lalfpCustomerId)
(Just _lalfpPageToken)
(Just _lalfpMaxResults)
(Just AltJSON)
appsLicensingService
where go
= buildClient
(Proxy ::
Proxy LicenseAssignmentsListForProductResource)
mempty