{-# 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.Projects.TestMatrices.Get
(
ProjectsTestMatricesGetResource
, projectsTestMatricesGet
, ProjectsTestMatricesGet
, ptmgXgafv
, ptmgUploadProtocol
, ptmgTestMatrixId
, ptmgAccessToken
, ptmgUploadType
, ptmgProjectId
, ptmgCallback
) where
import Network.Google.Prelude
import Network.Google.Testing.Types
type ProjectsTestMatricesGetResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"testMatrices" :>
Capture "testMatrixId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] TestMatrix
data ProjectsTestMatricesGet = ProjectsTestMatricesGet'
{ _ptmgXgafv :: !(Maybe Xgafv)
, _ptmgUploadProtocol :: !(Maybe Text)
, _ptmgTestMatrixId :: !Text
, _ptmgAccessToken :: !(Maybe Text)
, _ptmgUploadType :: !(Maybe Text)
, _ptmgProjectId :: !Text
, _ptmgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsTestMatricesGet
:: Text
-> Text
-> ProjectsTestMatricesGet
projectsTestMatricesGet pPtmgTestMatrixId_ pPtmgProjectId_ =
ProjectsTestMatricesGet'
{ _ptmgXgafv = Nothing
, _ptmgUploadProtocol = Nothing
, _ptmgTestMatrixId = pPtmgTestMatrixId_
, _ptmgAccessToken = Nothing
, _ptmgUploadType = Nothing
, _ptmgProjectId = pPtmgProjectId_
, _ptmgCallback = Nothing
}
ptmgXgafv :: Lens' ProjectsTestMatricesGet (Maybe Xgafv)
ptmgXgafv
= lens _ptmgXgafv (\ s a -> s{_ptmgXgafv = a})
ptmgUploadProtocol :: Lens' ProjectsTestMatricesGet (Maybe Text)
ptmgUploadProtocol
= lens _ptmgUploadProtocol
(\ s a -> s{_ptmgUploadProtocol = a})
ptmgTestMatrixId :: Lens' ProjectsTestMatricesGet Text
ptmgTestMatrixId
= lens _ptmgTestMatrixId
(\ s a -> s{_ptmgTestMatrixId = a})
ptmgAccessToken :: Lens' ProjectsTestMatricesGet (Maybe Text)
ptmgAccessToken
= lens _ptmgAccessToken
(\ s a -> s{_ptmgAccessToken = a})
ptmgUploadType :: Lens' ProjectsTestMatricesGet (Maybe Text)
ptmgUploadType
= lens _ptmgUploadType
(\ s a -> s{_ptmgUploadType = a})
ptmgProjectId :: Lens' ProjectsTestMatricesGet Text
ptmgProjectId
= lens _ptmgProjectId
(\ s a -> s{_ptmgProjectId = a})
ptmgCallback :: Lens' ProjectsTestMatricesGet (Maybe Text)
ptmgCallback
= lens _ptmgCallback (\ s a -> s{_ptmgCallback = a})
instance GoogleRequest ProjectsTestMatricesGet where
type Rs ProjectsTestMatricesGet = TestMatrix
type Scopes ProjectsTestMatricesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient ProjectsTestMatricesGet'{..}
= go _ptmgProjectId _ptmgTestMatrixId _ptmgXgafv
_ptmgUploadProtocol
_ptmgAccessToken
_ptmgUploadType
_ptmgCallback
(Just AltJSON)
testingService
where go
= buildClient
(Proxy :: Proxy ProjectsTestMatricesGetResource)
mempty