{-# 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.ListForProductAndSKU
(
LicenseAssignmentsListForProductAndSKUResource
, licenseAssignmentsListForProductAndSKU
, LicenseAssignmentsListForProductAndSKU
, lalfpaskuSKUId
, lalfpaskuCustomerId
, lalfpaskuPageToken
, lalfpaskuProductId
, lalfpaskuMaxResults
) where
import Network.Google.AppsLicensing.Types
import Network.Google.Prelude
type LicenseAssignmentsListForProductAndSKUResource =
"apps" :>
"licensing" :>
"v1" :>
"product" :>
Capture "productId" Text :>
"sku" :>
Capture "skuId" Text :>
"users" :>
QueryParam "customerId" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] LicenseAssignmentList
data LicenseAssignmentsListForProductAndSKU = LicenseAssignmentsListForProductAndSKU'
{ _lalfpaskuSKUId :: !Text
, _lalfpaskuCustomerId :: !Text
, _lalfpaskuPageToken :: !Text
, _lalfpaskuProductId :: !Text
, _lalfpaskuMaxResults :: !(Textual Word32)
} deriving (Eq,Show,Data,Typeable,Generic)
licenseAssignmentsListForProductAndSKU
:: Text
-> Text
-> Text
-> LicenseAssignmentsListForProductAndSKU
licenseAssignmentsListForProductAndSKU pLalfpaskuSKUId_ pLalfpaskuCustomerId_ pLalfpaskuProductId_ =
LicenseAssignmentsListForProductAndSKU'
{ _lalfpaskuSKUId = pLalfpaskuSKUId_
, _lalfpaskuCustomerId = pLalfpaskuCustomerId_
, _lalfpaskuPageToken = ""
, _lalfpaskuProductId = pLalfpaskuProductId_
, _lalfpaskuMaxResults = 100
}
lalfpaskuSKUId :: Lens' LicenseAssignmentsListForProductAndSKU Text
lalfpaskuSKUId
= lens _lalfpaskuSKUId
(\ s a -> s{_lalfpaskuSKUId = a})
lalfpaskuCustomerId :: Lens' LicenseAssignmentsListForProductAndSKU Text
lalfpaskuCustomerId
= lens _lalfpaskuCustomerId
(\ s a -> s{_lalfpaskuCustomerId = a})
lalfpaskuPageToken :: Lens' LicenseAssignmentsListForProductAndSKU Text
lalfpaskuPageToken
= lens _lalfpaskuPageToken
(\ s a -> s{_lalfpaskuPageToken = a})
lalfpaskuProductId :: Lens' LicenseAssignmentsListForProductAndSKU Text
lalfpaskuProductId
= lens _lalfpaskuProductId
(\ s a -> s{_lalfpaskuProductId = a})
lalfpaskuMaxResults :: Lens' LicenseAssignmentsListForProductAndSKU Word32
lalfpaskuMaxResults
= lens _lalfpaskuMaxResults
(\ s a -> s{_lalfpaskuMaxResults = a})
. _Coerce
instance GoogleRequest
LicenseAssignmentsListForProductAndSKU where
type Rs LicenseAssignmentsListForProductAndSKU =
LicenseAssignmentList
type Scopes LicenseAssignmentsListForProductAndSKU =
'["https://www.googleapis.com/auth/apps.licensing"]
requestClient
LicenseAssignmentsListForProductAndSKU'{..}
= go _lalfpaskuProductId _lalfpaskuSKUId
(Just _lalfpaskuCustomerId)
(Just _lalfpaskuPageToken)
(Just _lalfpaskuMaxResults)
(Just AltJSON)
appsLicensingService
where go
= buildClient
(Proxy ::
Proxy LicenseAssignmentsListForProductAndSKUResource)
mempty