{-# 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.ServiceConsumerManagement.Services.TenancyUnits.List
(
ServicesTenancyUnitsListResource
, servicesTenancyUnitsList
, ServicesTenancyUnitsList
, stulParent
, stulXgafv
, stulUploadProtocol
, stulAccessToken
, stulUploadType
, stulFilter
, stulPageToken
, stulPageSize
, stulCallback
) where
import Network.Google.Prelude
import Network.Google.ServiceConsumerManagement.Types
type ServicesTenancyUnitsListResource =
"v1" :>
Capture "parent" Text :>
"tenancyUnits" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListTenancyUnitsResponse
data ServicesTenancyUnitsList = ServicesTenancyUnitsList'
{ _stulParent :: !Text
, _stulXgafv :: !(Maybe Xgafv)
, _stulUploadProtocol :: !(Maybe Text)
, _stulAccessToken :: !(Maybe Text)
, _stulUploadType :: !(Maybe Text)
, _stulFilter :: !(Maybe Text)
, _stulPageToken :: !(Maybe Text)
, _stulPageSize :: !(Maybe (Textual Int32))
, _stulCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
servicesTenancyUnitsList
:: Text
-> ServicesTenancyUnitsList
servicesTenancyUnitsList pStulParent_ =
ServicesTenancyUnitsList'
{ _stulParent = pStulParent_
, _stulXgafv = Nothing
, _stulUploadProtocol = Nothing
, _stulAccessToken = Nothing
, _stulUploadType = Nothing
, _stulFilter = Nothing
, _stulPageToken = Nothing
, _stulPageSize = Nothing
, _stulCallback = Nothing
}
stulParent :: Lens' ServicesTenancyUnitsList Text
stulParent
= lens _stulParent (\ s a -> s{_stulParent = a})
stulXgafv :: Lens' ServicesTenancyUnitsList (Maybe Xgafv)
stulXgafv
= lens _stulXgafv (\ s a -> s{_stulXgafv = a})
stulUploadProtocol :: Lens' ServicesTenancyUnitsList (Maybe Text)
stulUploadProtocol
= lens _stulUploadProtocol
(\ s a -> s{_stulUploadProtocol = a})
stulAccessToken :: Lens' ServicesTenancyUnitsList (Maybe Text)
stulAccessToken
= lens _stulAccessToken
(\ s a -> s{_stulAccessToken = a})
stulUploadType :: Lens' ServicesTenancyUnitsList (Maybe Text)
stulUploadType
= lens _stulUploadType
(\ s a -> s{_stulUploadType = a})
stulFilter :: Lens' ServicesTenancyUnitsList (Maybe Text)
stulFilter
= lens _stulFilter (\ s a -> s{_stulFilter = a})
stulPageToken :: Lens' ServicesTenancyUnitsList (Maybe Text)
stulPageToken
= lens _stulPageToken
(\ s a -> s{_stulPageToken = a})
stulPageSize :: Lens' ServicesTenancyUnitsList (Maybe Int32)
stulPageSize
= lens _stulPageSize (\ s a -> s{_stulPageSize = a})
. mapping _Coerce
stulCallback :: Lens' ServicesTenancyUnitsList (Maybe Text)
stulCallback
= lens _stulCallback (\ s a -> s{_stulCallback = a})
instance GoogleRequest ServicesTenancyUnitsList where
type Rs ServicesTenancyUnitsList =
ListTenancyUnitsResponse
type Scopes ServicesTenancyUnitsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ServicesTenancyUnitsList'{..}
= go _stulParent _stulXgafv _stulUploadProtocol
_stulAccessToken
_stulUploadType
_stulFilter
_stulPageToken
_stulPageSize
_stulCallback
(Just AltJSON)
serviceConsumerManagementService
where go
= buildClient
(Proxy :: Proxy ServicesTenancyUnitsListResource)
mempty