{-# 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.Analytics.Metadata.Columns.List
(
MetadataColumnsListResource
, metadataColumnsList
, MetadataColumnsList
, mclReportType
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type MetadataColumnsListResource =
"analytics" :>
"v3" :>
"metadata" :>
Capture "reportType" Text :>
"columns" :>
QueryParam "alt" AltJSON :> Get '[JSON] Columns
newtype MetadataColumnsList = MetadataColumnsList'
{ _mclReportType :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
metadataColumnsList
:: Text
-> MetadataColumnsList
metadataColumnsList pMclReportType_ =
MetadataColumnsList'
{ _mclReportType = pMclReportType_
}
mclReportType :: Lens' MetadataColumnsList Text
mclReportType
= lens _mclReportType
(\ s a -> s{_mclReportType = a})
instance GoogleRequest MetadataColumnsList where
type Rs MetadataColumnsList = Columns
type Scopes MetadataColumnsList =
'["https://www.googleapis.com/auth/analytics",
"https://www.googleapis.com/auth/analytics.edit",
"https://www.googleapis.com/auth/analytics.readonly"]
requestClient MetadataColumnsList'{..}
= go _mclReportType (Just AltJSON) analyticsService
where go
= buildClient
(Proxy :: Proxy MetadataColumnsListResource)
mempty