{-# 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.CloudBilling.Services.SKUs.List
(
ServicesSKUsListResource
, servicesSKUsList
, ServicesSKUsList
, sskulParent
, sskulXgafv
, sskulCurrencyCode
, sskulUploadProtocol
, sskulStartTime
, sskulAccessToken
, sskulUploadType
, sskulEndTime
, sskulPageToken
, sskulPageSize
, sskulCallback
) where
import Network.Google.Billing.Types
import Network.Google.Prelude
type ServicesSKUsListResource =
"v1" :>
Capture "parent" Text :>
"skus" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "currencyCode" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "startTime" DateTime' :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "endTime" DateTime' :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListSKUsResponse
data ServicesSKUsList = ServicesSKUsList'
{ _sskulParent :: !Text
, _sskulXgafv :: !(Maybe Xgafv)
, _sskulCurrencyCode :: !(Maybe Text)
, _sskulUploadProtocol :: !(Maybe Text)
, _sskulStartTime :: !(Maybe DateTime')
, _sskulAccessToken :: !(Maybe Text)
, _sskulUploadType :: !(Maybe Text)
, _sskulEndTime :: !(Maybe DateTime')
, _sskulPageToken :: !(Maybe Text)
, _sskulPageSize :: !(Maybe (Textual Int32))
, _sskulCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
servicesSKUsList
:: Text
-> ServicesSKUsList
servicesSKUsList pSskulParent_ =
ServicesSKUsList'
{ _sskulParent = pSskulParent_
, _sskulXgafv = Nothing
, _sskulCurrencyCode = Nothing
, _sskulUploadProtocol = Nothing
, _sskulStartTime = Nothing
, _sskulAccessToken = Nothing
, _sskulUploadType = Nothing
, _sskulEndTime = Nothing
, _sskulPageToken = Nothing
, _sskulPageSize = Nothing
, _sskulCallback = Nothing
}
sskulParent :: Lens' ServicesSKUsList Text
sskulParent
= lens _sskulParent (\ s a -> s{_sskulParent = a})
sskulXgafv :: Lens' ServicesSKUsList (Maybe Xgafv)
sskulXgafv
= lens _sskulXgafv (\ s a -> s{_sskulXgafv = a})
sskulCurrencyCode :: Lens' ServicesSKUsList (Maybe Text)
sskulCurrencyCode
= lens _sskulCurrencyCode
(\ s a -> s{_sskulCurrencyCode = a})
sskulUploadProtocol :: Lens' ServicesSKUsList (Maybe Text)
sskulUploadProtocol
= lens _sskulUploadProtocol
(\ s a -> s{_sskulUploadProtocol = a})
sskulStartTime :: Lens' ServicesSKUsList (Maybe UTCTime)
sskulStartTime
= lens _sskulStartTime
(\ s a -> s{_sskulStartTime = a})
. mapping _DateTime
sskulAccessToken :: Lens' ServicesSKUsList (Maybe Text)
sskulAccessToken
= lens _sskulAccessToken
(\ s a -> s{_sskulAccessToken = a})
sskulUploadType :: Lens' ServicesSKUsList (Maybe Text)
sskulUploadType
= lens _sskulUploadType
(\ s a -> s{_sskulUploadType = a})
sskulEndTime :: Lens' ServicesSKUsList (Maybe UTCTime)
sskulEndTime
= lens _sskulEndTime (\ s a -> s{_sskulEndTime = a})
. mapping _DateTime
sskulPageToken :: Lens' ServicesSKUsList (Maybe Text)
sskulPageToken
= lens _sskulPageToken
(\ s a -> s{_sskulPageToken = a})
sskulPageSize :: Lens' ServicesSKUsList (Maybe Int32)
sskulPageSize
= lens _sskulPageSize
(\ s a -> s{_sskulPageSize = a})
. mapping _Coerce
sskulCallback :: Lens' ServicesSKUsList (Maybe Text)
sskulCallback
= lens _sskulCallback
(\ s a -> s{_sskulCallback = a})
instance GoogleRequest ServicesSKUsList where
type Rs ServicesSKUsList = ListSKUsResponse
type Scopes ServicesSKUsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ServicesSKUsList'{..}
= go _sskulParent _sskulXgafv _sskulCurrencyCode
_sskulUploadProtocol
_sskulStartTime
_sskulAccessToken
_sskulUploadType
_sskulEndTime
_sskulPageToken
_sskulPageSize
_sskulCallback
(Just AltJSON)
billingService
where go
= buildClient
(Proxy :: Proxy ServicesSKUsListResource)
mempty