{-# 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.Testing.ApplicationDetailService.GetAPKDetails
(
ApplicationDetailServiceGetAPKDetailsResource
, applicationDetailServiceGetAPKDetails
, ApplicationDetailServiceGetAPKDetails
, adsgapkdXgafv
, adsgapkdUploadProtocol
, adsgapkdAccessToken
, adsgapkdUploadType
, adsgapkdPayload
, adsgapkdCallback
) where
import Network.Google.Prelude
import Network.Google.Testing.Types
type ApplicationDetailServiceGetAPKDetailsResource =
"v1" :>
"applicationDetailService" :>
"getApkDetails" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] FileReference :>
Post '[JSON] GetAPKDetailsResponse
data ApplicationDetailServiceGetAPKDetails = ApplicationDetailServiceGetAPKDetails'
{ _adsgapkdXgafv :: !(Maybe Xgafv)
, _adsgapkdUploadProtocol :: !(Maybe Text)
, _adsgapkdAccessToken :: !(Maybe Text)
, _adsgapkdUploadType :: !(Maybe Text)
, _adsgapkdPayload :: !FileReference
, _adsgapkdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
applicationDetailServiceGetAPKDetails
:: FileReference
-> ApplicationDetailServiceGetAPKDetails
applicationDetailServiceGetAPKDetails pAdsgapkdPayload_ =
ApplicationDetailServiceGetAPKDetails'
{ _adsgapkdXgafv = Nothing
, _adsgapkdUploadProtocol = Nothing
, _adsgapkdAccessToken = Nothing
, _adsgapkdUploadType = Nothing
, _adsgapkdPayload = pAdsgapkdPayload_
, _adsgapkdCallback = Nothing
}
adsgapkdXgafv :: Lens' ApplicationDetailServiceGetAPKDetails (Maybe Xgafv)
adsgapkdXgafv
= lens _adsgapkdXgafv
(\ s a -> s{_adsgapkdXgafv = a})
adsgapkdUploadProtocol :: Lens' ApplicationDetailServiceGetAPKDetails (Maybe Text)
adsgapkdUploadProtocol
= lens _adsgapkdUploadProtocol
(\ s a -> s{_adsgapkdUploadProtocol = a})
adsgapkdAccessToken :: Lens' ApplicationDetailServiceGetAPKDetails (Maybe Text)
adsgapkdAccessToken
= lens _adsgapkdAccessToken
(\ s a -> s{_adsgapkdAccessToken = a})
adsgapkdUploadType :: Lens' ApplicationDetailServiceGetAPKDetails (Maybe Text)
adsgapkdUploadType
= lens _adsgapkdUploadType
(\ s a -> s{_adsgapkdUploadType = a})
adsgapkdPayload :: Lens' ApplicationDetailServiceGetAPKDetails FileReference
adsgapkdPayload
= lens _adsgapkdPayload
(\ s a -> s{_adsgapkdPayload = a})
adsgapkdCallback :: Lens' ApplicationDetailServiceGetAPKDetails (Maybe Text)
adsgapkdCallback
= lens _adsgapkdCallback
(\ s a -> s{_adsgapkdCallback = a})
instance GoogleRequest
ApplicationDetailServiceGetAPKDetails where
type Rs ApplicationDetailServiceGetAPKDetails =
GetAPKDetailsResponse
type Scopes ApplicationDetailServiceGetAPKDetails =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ApplicationDetailServiceGetAPKDetails'{..}
= go _adsgapkdXgafv _adsgapkdUploadProtocol
_adsgapkdAccessToken
_adsgapkdUploadType
_adsgapkdCallback
(Just AltJSON)
_adsgapkdPayload
testingService
where go
= buildClient
(Proxy ::
Proxy ApplicationDetailServiceGetAPKDetailsResource)
mempty