{-# 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.Partners.Companies.List
(
CompaniesListResource
, companiesList
, CompaniesList
, clLanguageCodes
, clXgafv
, clMaxMonthlyBudgetUnits
, clUploadProtocol
, clOrderBy
, clCompanyName
, clAccessToken
, clUploadType
, clAddress
, clMinMonthlyBudgetNanos
, clIndustries
, clRequestMetadataPartnersSessionId
, clSpecializations
, clMaxMonthlyBudgetNanos
, clRequestMetadataLocale
, clView
, clRequestMetadataExperimentIds
, clRequestMetadataUserOverridesIPAddress
, clMaxMonthlyBudgetCurrencyCode
, clWebsiteURL
, clPageToken
, clRequestMetadataTrafficSourceTrafficSubId
, clGpsMotivations
, clPageSize
, clMinMonthlyBudgetCurrencyCode
, clServices
, clRequestMetadataUserOverridesUserId
, clMinMonthlyBudgetUnits
, clRequestMetadataTrafficSourceTrafficSourceId
, clCallback
) where
import Network.Google.Partners.Types
import Network.Google.Prelude
type CompaniesListResource =
"v2" :>
"companies" :>
QueryParams "languageCodes" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "maxMonthlyBudget.units" (Textual Int64)
:>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" Text :>
QueryParam "companyName" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "address" Text :>
QueryParam "minMonthlyBudget.nanos" (Textual Int32)
:>
QueryParams "industries" Text :>
QueryParam "requestMetadata.partnersSessionId"
Text
:>
QueryParams "specializations" Text :>
QueryParam "maxMonthlyBudget.nanos"
(Textual Int32)
:>
QueryParam "requestMetadata.locale" Text :>
QueryParam "view" Text :>
QueryParams
"requestMetadata.experimentIds"
Text
:>
QueryParam
"requestMetadata.userOverrides.ipAddress"
Text
:>
QueryParam
"maxMonthlyBudget.currencyCode"
Text
:>
QueryParam "websiteUrl" Text :>
QueryParam "pageToken" Text :>
QueryParam
"requestMetadata.trafficSource.trafficSubId"
Text
:>
QueryParams
"gpsMotivations"
Text
:>
QueryParam "pageSize"
(Textual Int32)
:>
QueryParam
"minMonthlyBudget.currencyCode"
Text
:>
QueryParams
"services"
Text
:>
QueryParam
"requestMetadata.userOverrides.userId"
Text
:>
QueryParam
"minMonthlyBudget.units"
(Textual Int64)
:>
QueryParam
"requestMetadata.trafficSource.trafficSourceId"
Text
:>
QueryParam
"callback"
Text
:>
QueryParam
"alt"
AltJSON
:>
Get
'[JSON]
ListCompaniesResponse
data CompaniesList = CompaniesList'
{ _clLanguageCodes :: !(Maybe [Text])
, _clXgafv :: !(Maybe Xgafv)
, _clMaxMonthlyBudgetUnits :: !(Maybe (Textual Int64))
, _clUploadProtocol :: !(Maybe Text)
, _clOrderBy :: !(Maybe Text)
, _clCompanyName :: !(Maybe Text)
, _clAccessToken :: !(Maybe Text)
, _clUploadType :: !(Maybe Text)
, _clAddress :: !(Maybe Text)
, _clMinMonthlyBudgetNanos :: !(Maybe (Textual Int32))
, _clIndustries :: !(Maybe [Text])
, _clRequestMetadataPartnersSessionId :: !(Maybe Text)
, _clSpecializations :: !(Maybe [Text])
, _clMaxMonthlyBudgetNanos :: !(Maybe (Textual Int32))
, _clRequestMetadataLocale :: !(Maybe Text)
, _clView :: !(Maybe Text)
, _clRequestMetadataExperimentIds :: !(Maybe [Text])
, _clRequestMetadataUserOverridesIPAddress :: !(Maybe Text)
, _clMaxMonthlyBudgetCurrencyCode :: !(Maybe Text)
, _clWebsiteURL :: !(Maybe Text)
, _clPageToken :: !(Maybe Text)
, _clRequestMetadataTrafficSourceTrafficSubId :: !(Maybe Text)
, _clGpsMotivations :: !(Maybe [Text])
, _clPageSize :: !(Maybe (Textual Int32))
, _clMinMonthlyBudgetCurrencyCode :: !(Maybe Text)
, _clServices :: !(Maybe [Text])
, _clRequestMetadataUserOverridesUserId :: !(Maybe Text)
, _clMinMonthlyBudgetUnits :: !(Maybe (Textual Int64))
, _clRequestMetadataTrafficSourceTrafficSourceId :: !(Maybe Text)
, _clCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
companiesList
:: CompaniesList
companiesList =
CompaniesList'
{ _clLanguageCodes = Nothing
, _clXgafv = Nothing
, _clMaxMonthlyBudgetUnits = Nothing
, _clUploadProtocol = Nothing
, _clOrderBy = Nothing
, _clCompanyName = Nothing
, _clAccessToken = Nothing
, _clUploadType = Nothing
, _clAddress = Nothing
, _clMinMonthlyBudgetNanos = Nothing
, _clIndustries = Nothing
, _clRequestMetadataPartnersSessionId = Nothing
, _clSpecializations = Nothing
, _clMaxMonthlyBudgetNanos = Nothing
, _clRequestMetadataLocale = Nothing
, _clView = Nothing
, _clRequestMetadataExperimentIds = Nothing
, _clRequestMetadataUserOverridesIPAddress = Nothing
, _clMaxMonthlyBudgetCurrencyCode = Nothing
, _clWebsiteURL = Nothing
, _clPageToken = Nothing
, _clRequestMetadataTrafficSourceTrafficSubId = Nothing
, _clGpsMotivations = Nothing
, _clPageSize = Nothing
, _clMinMonthlyBudgetCurrencyCode = Nothing
, _clServices = Nothing
, _clRequestMetadataUserOverridesUserId = Nothing
, _clMinMonthlyBudgetUnits = Nothing
, _clRequestMetadataTrafficSourceTrafficSourceId = Nothing
, _clCallback = Nothing
}
clLanguageCodes :: Lens' CompaniesList [Text]
clLanguageCodes
= lens _clLanguageCodes
(\ s a -> s{_clLanguageCodes = a})
. _Default
. _Coerce
clXgafv :: Lens' CompaniesList (Maybe Xgafv)
clXgafv = lens _clXgafv (\ s a -> s{_clXgafv = a})
clMaxMonthlyBudgetUnits :: Lens' CompaniesList (Maybe Int64)
clMaxMonthlyBudgetUnits
= lens _clMaxMonthlyBudgetUnits
(\ s a -> s{_clMaxMonthlyBudgetUnits = a})
. mapping _Coerce
clUploadProtocol :: Lens' CompaniesList (Maybe Text)
clUploadProtocol
= lens _clUploadProtocol
(\ s a -> s{_clUploadProtocol = a})
clOrderBy :: Lens' CompaniesList (Maybe Text)
clOrderBy
= lens _clOrderBy (\ s a -> s{_clOrderBy = a})
clCompanyName :: Lens' CompaniesList (Maybe Text)
clCompanyName
= lens _clCompanyName
(\ s a -> s{_clCompanyName = a})
clAccessToken :: Lens' CompaniesList (Maybe Text)
clAccessToken
= lens _clAccessToken
(\ s a -> s{_clAccessToken = a})
clUploadType :: Lens' CompaniesList (Maybe Text)
clUploadType
= lens _clUploadType (\ s a -> s{_clUploadType = a})
clAddress :: Lens' CompaniesList (Maybe Text)
clAddress
= lens _clAddress (\ s a -> s{_clAddress = a})
clMinMonthlyBudgetNanos :: Lens' CompaniesList (Maybe Int32)
clMinMonthlyBudgetNanos
= lens _clMinMonthlyBudgetNanos
(\ s a -> s{_clMinMonthlyBudgetNanos = a})
. mapping _Coerce
clIndustries :: Lens' CompaniesList [Text]
clIndustries
= lens _clIndustries (\ s a -> s{_clIndustries = a})
. _Default
. _Coerce
clRequestMetadataPartnersSessionId :: Lens' CompaniesList (Maybe Text)
clRequestMetadataPartnersSessionId
= lens _clRequestMetadataPartnersSessionId
(\ s a -> s{_clRequestMetadataPartnersSessionId = a})
clSpecializations :: Lens' CompaniesList [Text]
clSpecializations
= lens _clSpecializations
(\ s a -> s{_clSpecializations = a})
. _Default
. _Coerce
clMaxMonthlyBudgetNanos :: Lens' CompaniesList (Maybe Int32)
clMaxMonthlyBudgetNanos
= lens _clMaxMonthlyBudgetNanos
(\ s a -> s{_clMaxMonthlyBudgetNanos = a})
. mapping _Coerce
clRequestMetadataLocale :: Lens' CompaniesList (Maybe Text)
clRequestMetadataLocale
= lens _clRequestMetadataLocale
(\ s a -> s{_clRequestMetadataLocale = a})
clView :: Lens' CompaniesList (Maybe Text)
clView = lens _clView (\ s a -> s{_clView = a})
clRequestMetadataExperimentIds :: Lens' CompaniesList [Text]
clRequestMetadataExperimentIds
= lens _clRequestMetadataExperimentIds
(\ s a -> s{_clRequestMetadataExperimentIds = a})
. _Default
. _Coerce
clRequestMetadataUserOverridesIPAddress :: Lens' CompaniesList (Maybe Text)
clRequestMetadataUserOverridesIPAddress
= lens _clRequestMetadataUserOverridesIPAddress
(\ s a ->
s{_clRequestMetadataUserOverridesIPAddress = a})
clMaxMonthlyBudgetCurrencyCode :: Lens' CompaniesList (Maybe Text)
clMaxMonthlyBudgetCurrencyCode
= lens _clMaxMonthlyBudgetCurrencyCode
(\ s a -> s{_clMaxMonthlyBudgetCurrencyCode = a})
clWebsiteURL :: Lens' CompaniesList (Maybe Text)
clWebsiteURL
= lens _clWebsiteURL (\ s a -> s{_clWebsiteURL = a})
clPageToken :: Lens' CompaniesList (Maybe Text)
clPageToken
= lens _clPageToken (\ s a -> s{_clPageToken = a})
clRequestMetadataTrafficSourceTrafficSubId :: Lens' CompaniesList (Maybe Text)
clRequestMetadataTrafficSourceTrafficSubId
= lens _clRequestMetadataTrafficSourceTrafficSubId
(\ s a ->
s{_clRequestMetadataTrafficSourceTrafficSubId = a})
clGpsMotivations :: Lens' CompaniesList [Text]
clGpsMotivations
= lens _clGpsMotivations
(\ s a -> s{_clGpsMotivations = a})
. _Default
. _Coerce
clPageSize :: Lens' CompaniesList (Maybe Int32)
clPageSize
= lens _clPageSize (\ s a -> s{_clPageSize = a}) .
mapping _Coerce
clMinMonthlyBudgetCurrencyCode :: Lens' CompaniesList (Maybe Text)
clMinMonthlyBudgetCurrencyCode
= lens _clMinMonthlyBudgetCurrencyCode
(\ s a -> s{_clMinMonthlyBudgetCurrencyCode = a})
clServices :: Lens' CompaniesList [Text]
clServices
= lens _clServices (\ s a -> s{_clServices = a}) .
_Default
. _Coerce
clRequestMetadataUserOverridesUserId :: Lens' CompaniesList (Maybe Text)
clRequestMetadataUserOverridesUserId
= lens _clRequestMetadataUserOverridesUserId
(\ s a ->
s{_clRequestMetadataUserOverridesUserId = a})
clMinMonthlyBudgetUnits :: Lens' CompaniesList (Maybe Int64)
clMinMonthlyBudgetUnits
= lens _clMinMonthlyBudgetUnits
(\ s a -> s{_clMinMonthlyBudgetUnits = a})
. mapping _Coerce
clRequestMetadataTrafficSourceTrafficSourceId :: Lens' CompaniesList (Maybe Text)
clRequestMetadataTrafficSourceTrafficSourceId
= lens _clRequestMetadataTrafficSourceTrafficSourceId
(\ s a ->
s{_clRequestMetadataTrafficSourceTrafficSourceId =
a})
clCallback :: Lens' CompaniesList (Maybe Text)
clCallback
= lens _clCallback (\ s a -> s{_clCallback = a})
instance GoogleRequest CompaniesList where
type Rs CompaniesList = ListCompaniesResponse
type Scopes CompaniesList = '[]
requestClient CompaniesList'{..}
= go (_clLanguageCodes ^. _Default) _clXgafv
_clMaxMonthlyBudgetUnits
_clUploadProtocol
_clOrderBy
_clCompanyName
_clAccessToken
_clUploadType
_clAddress
_clMinMonthlyBudgetNanos
(_clIndustries ^. _Default)
_clRequestMetadataPartnersSessionId
(_clSpecializations ^. _Default)
_clMaxMonthlyBudgetNanos
_clRequestMetadataLocale
_clView
(_clRequestMetadataExperimentIds ^. _Default)
_clRequestMetadataUserOverridesIPAddress
_clMaxMonthlyBudgetCurrencyCode
_clWebsiteURL
_clPageToken
_clRequestMetadataTrafficSourceTrafficSubId
(_clGpsMotivations ^. _Default)
_clPageSize
_clMinMonthlyBudgetCurrencyCode
(_clServices ^. _Default)
_clRequestMetadataUserOverridesUserId
_clMinMonthlyBudgetUnits
_clRequestMetadataTrafficSourceTrafficSourceId
_clCallback
(Just AltJSON)
partnersService
where go
= buildClient (Proxy :: Proxy CompaniesListResource)
mempty