{-# 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.Create
(
ProjectsTestMatricesCreateResource
, projectsTestMatricesCreate
, ProjectsTestMatricesCreate
, pXgafv
, pRequestId
, pUploadProtocol
, pAccessToken
, pUploadType
, pPayload
, pProjectId
, pCallback
) where
import Network.Google.Prelude
import Network.Google.Testing.Types
type ProjectsTestMatricesCreateResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"testMatrices" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "requestId" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] TestMatrix :> Post '[JSON] TestMatrix
data ProjectsTestMatricesCreate = ProjectsTestMatricesCreate'
{ _pXgafv :: !(Maybe Xgafv)
, _pRequestId :: !(Maybe Text)
, _pUploadProtocol :: !(Maybe Text)
, _pAccessToken :: !(Maybe Text)
, _pUploadType :: !(Maybe Text)
, _pPayload :: !TestMatrix
, _pProjectId :: !Text
, _pCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsTestMatricesCreate
:: TestMatrix
-> Text
-> ProjectsTestMatricesCreate
projectsTestMatricesCreate pPPayload_ pPProjectId_ =
ProjectsTestMatricesCreate'
{ _pXgafv = Nothing
, _pRequestId = Nothing
, _pUploadProtocol = Nothing
, _pAccessToken = Nothing
, _pUploadType = Nothing
, _pPayload = pPPayload_
, _pProjectId = pPProjectId_
, _pCallback = Nothing
}
pXgafv :: Lens' ProjectsTestMatricesCreate (Maybe Xgafv)
pXgafv = lens _pXgafv (\ s a -> s{_pXgafv = a})
pRequestId :: Lens' ProjectsTestMatricesCreate (Maybe Text)
pRequestId
= lens _pRequestId (\ s a -> s{_pRequestId = a})
pUploadProtocol :: Lens' ProjectsTestMatricesCreate (Maybe Text)
pUploadProtocol
= lens _pUploadProtocol
(\ s a -> s{_pUploadProtocol = a})
pAccessToken :: Lens' ProjectsTestMatricesCreate (Maybe Text)
pAccessToken
= lens _pAccessToken (\ s a -> s{_pAccessToken = a})
pUploadType :: Lens' ProjectsTestMatricesCreate (Maybe Text)
pUploadType
= lens _pUploadType (\ s a -> s{_pUploadType = a})
pPayload :: Lens' ProjectsTestMatricesCreate TestMatrix
pPayload = lens _pPayload (\ s a -> s{_pPayload = a})
pProjectId :: Lens' ProjectsTestMatricesCreate Text
pProjectId
= lens _pProjectId (\ s a -> s{_pProjectId = a})
pCallback :: Lens' ProjectsTestMatricesCreate (Maybe Text)
pCallback
= lens _pCallback (\ s a -> s{_pCallback = a})
instance GoogleRequest ProjectsTestMatricesCreate
where
type Rs ProjectsTestMatricesCreate = TestMatrix
type Scopes ProjectsTestMatricesCreate =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsTestMatricesCreate'{..}
= go _pProjectId _pXgafv _pRequestId _pUploadProtocol
_pAccessToken
_pUploadType
_pCallback
(Just AltJSON)
_pPayload
testingService
where go
= buildClient
(Proxy :: Proxy ProjectsTestMatricesCreateResource)
mempty