{-# 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.AndroidDeviceProvisioning.Partners.Vendors.List
(
PartnersVendorsListResource
, partnersVendorsList
, PartnersVendorsList
, pvlParent
, pvlXgafv
, pvlUploadProtocol
, pvlAccessToken
, pvlUploadType
, pvlPageToken
, pvlPageSize
, pvlCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type PartnersVendorsListResource =
"v1" :>
Capture "parent" Text :>
"vendors" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListVendorsResponse
data PartnersVendorsList = PartnersVendorsList'
{ _pvlParent :: !Text
, _pvlXgafv :: !(Maybe Xgafv)
, _pvlUploadProtocol :: !(Maybe Text)
, _pvlAccessToken :: !(Maybe Text)
, _pvlUploadType :: !(Maybe Text)
, _pvlPageToken :: !(Maybe Text)
, _pvlPageSize :: !(Maybe (Textual Int32))
, _pvlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
partnersVendorsList
:: Text
-> PartnersVendorsList
partnersVendorsList pPvlParent_ =
PartnersVendorsList'
{ _pvlParent = pPvlParent_
, _pvlXgafv = Nothing
, _pvlUploadProtocol = Nothing
, _pvlAccessToken = Nothing
, _pvlUploadType = Nothing
, _pvlPageToken = Nothing
, _pvlPageSize = Nothing
, _pvlCallback = Nothing
}
pvlParent :: Lens' PartnersVendorsList Text
pvlParent
= lens _pvlParent (\ s a -> s{_pvlParent = a})
pvlXgafv :: Lens' PartnersVendorsList (Maybe Xgafv)
pvlXgafv = lens _pvlXgafv (\ s a -> s{_pvlXgafv = a})
pvlUploadProtocol :: Lens' PartnersVendorsList (Maybe Text)
pvlUploadProtocol
= lens _pvlUploadProtocol
(\ s a -> s{_pvlUploadProtocol = a})
pvlAccessToken :: Lens' PartnersVendorsList (Maybe Text)
pvlAccessToken
= lens _pvlAccessToken
(\ s a -> s{_pvlAccessToken = a})
pvlUploadType :: Lens' PartnersVendorsList (Maybe Text)
pvlUploadType
= lens _pvlUploadType
(\ s a -> s{_pvlUploadType = a})
pvlPageToken :: Lens' PartnersVendorsList (Maybe Text)
pvlPageToken
= lens _pvlPageToken (\ s a -> s{_pvlPageToken = a})
pvlPageSize :: Lens' PartnersVendorsList (Maybe Int32)
pvlPageSize
= lens _pvlPageSize (\ s a -> s{_pvlPageSize = a}) .
mapping _Coerce
pvlCallback :: Lens' PartnersVendorsList (Maybe Text)
pvlCallback
= lens _pvlCallback (\ s a -> s{_pvlCallback = a})
instance GoogleRequest PartnersVendorsList where
type Rs PartnersVendorsList = ListVendorsResponse
type Scopes PartnersVendorsList = '[]
requestClient PartnersVendorsList'{..}
= go _pvlParent _pvlXgafv _pvlUploadProtocol
_pvlAccessToken
_pvlUploadType
_pvlPageToken
_pvlPageSize
_pvlCallback
(Just AltJSON)
androidDeviceProvisioningService
where go
= buildClient
(Proxy :: Proxy PartnersVendorsListResource)
mempty