{-# 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.Management.ClientId.HashClientId
(
ManagementClientIdHashClientIdResource
, managementClientIdHashClientId
, ManagementClientIdHashClientId
, mcihciPayload
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ManagementClientIdHashClientIdResource =
"analytics" :>
"v3" :>
"management" :>
"clientId:hashClientId" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] HashClientIdRequest :>
Post '[JSON] HashClientIdResponse
newtype ManagementClientIdHashClientId = ManagementClientIdHashClientId'
{ _mcihciPayload :: HashClientIdRequest
} deriving (Eq,Show,Data,Typeable,Generic)
managementClientIdHashClientId
:: HashClientIdRequest
-> ManagementClientIdHashClientId
managementClientIdHashClientId pMcihciPayload_ =
ManagementClientIdHashClientId'
{ _mcihciPayload = pMcihciPayload_
}
mcihciPayload :: Lens' ManagementClientIdHashClientId HashClientIdRequest
mcihciPayload
= lens _mcihciPayload
(\ s a -> s{_mcihciPayload = a})
instance GoogleRequest ManagementClientIdHashClientId
where
type Rs ManagementClientIdHashClientId =
HashClientIdResponse
type Scopes ManagementClientIdHashClientId =
'["https://www.googleapis.com/auth/analytics.edit",
"https://www.googleapis.com/auth/analytics.readonly"]
requestClient ManagementClientIdHashClientId'{..}
= go (Just AltJSON) _mcihciPayload analyticsService
where go
= buildClient
(Proxy ::
Proxy ManagementClientIdHashClientIdResource)
mempty