{-# 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.Cancel
(
ProjectsTestMatricesCancelResource
, projectsTestMatricesCancel
, ProjectsTestMatricesCancel
, ptmcXgafv
, ptmcUploadProtocol
, ptmcTestMatrixId
, ptmcAccessToken
, ptmcUploadType
, ptmcProjectId
, ptmcCallback
) where
import Network.Google.Prelude
import Network.Google.Testing.Types
type ProjectsTestMatricesCancelResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"testMatrices" :>
CaptureMode "testMatrixId" "cancel" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON] CancelTestMatrixResponse
data ProjectsTestMatricesCancel = ProjectsTestMatricesCancel'
{ _ptmcXgafv :: !(Maybe Xgafv)
, _ptmcUploadProtocol :: !(Maybe Text)
, _ptmcTestMatrixId :: !Text
, _ptmcAccessToken :: !(Maybe Text)
, _ptmcUploadType :: !(Maybe Text)
, _ptmcProjectId :: !Text
, _ptmcCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsTestMatricesCancel
:: Text
-> Text
-> ProjectsTestMatricesCancel
projectsTestMatricesCancel pPtmcTestMatrixId_ pPtmcProjectId_ =
ProjectsTestMatricesCancel'
{ _ptmcXgafv = Nothing
, _ptmcUploadProtocol = Nothing
, _ptmcTestMatrixId = pPtmcTestMatrixId_
, _ptmcAccessToken = Nothing
, _ptmcUploadType = Nothing
, _ptmcProjectId = pPtmcProjectId_
, _ptmcCallback = Nothing
}
ptmcXgafv :: Lens' ProjectsTestMatricesCancel (Maybe Xgafv)
ptmcXgafv
= lens _ptmcXgafv (\ s a -> s{_ptmcXgafv = a})
ptmcUploadProtocol :: Lens' ProjectsTestMatricesCancel (Maybe Text)
ptmcUploadProtocol
= lens _ptmcUploadProtocol
(\ s a -> s{_ptmcUploadProtocol = a})
ptmcTestMatrixId :: Lens' ProjectsTestMatricesCancel Text
ptmcTestMatrixId
= lens _ptmcTestMatrixId
(\ s a -> s{_ptmcTestMatrixId = a})
ptmcAccessToken :: Lens' ProjectsTestMatricesCancel (Maybe Text)
ptmcAccessToken
= lens _ptmcAccessToken
(\ s a -> s{_ptmcAccessToken = a})
ptmcUploadType :: Lens' ProjectsTestMatricesCancel (Maybe Text)
ptmcUploadType
= lens _ptmcUploadType
(\ s a -> s{_ptmcUploadType = a})
ptmcProjectId :: Lens' ProjectsTestMatricesCancel Text
ptmcProjectId
= lens _ptmcProjectId
(\ s a -> s{_ptmcProjectId = a})
ptmcCallback :: Lens' ProjectsTestMatricesCancel (Maybe Text)
ptmcCallback
= lens _ptmcCallback (\ s a -> s{_ptmcCallback = a})
instance GoogleRequest ProjectsTestMatricesCancel
where
type Rs ProjectsTestMatricesCancel =
CancelTestMatrixResponse
type Scopes ProjectsTestMatricesCancel =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsTestMatricesCancel'{..}
= go _ptmcProjectId _ptmcTestMatrixId _ptmcXgafv
_ptmcUploadProtocol
_ptmcAccessToken
_ptmcUploadType
_ptmcCallback
(Just AltJSON)
testingService
where go
= buildClient
(Proxy :: Proxy ProjectsTestMatricesCancelResource)
mempty