{-# 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.Dataflow.Projects.Locations.Templates.Launch
(
ProjectsLocationsTemplatesLaunchResource
, projectsLocationsTemplatesLaunch
, ProjectsLocationsTemplatesLaunch
, pltlXgafv
, pltlValidateOnly
, pltlUploadProtocol
, pltlLocation
, pltlAccessToken
, pltlUploadType
, pltlPayload
, pltlDynamicTemplateStagingLocation
, pltlGcsPath
, pltlProjectId
, pltlCallback
, pltlDynamicTemplateGcsPath
) where
import Network.Google.Dataflow.Types
import Network.Google.Prelude
type ProjectsLocationsTemplatesLaunchResource =
"v1b3" :>
"projects" :>
Capture "projectId" Text :>
"locations" :>
Capture "location" Text :>
"templates:launch" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "validateOnly" Bool :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "dynamicTemplate.stagingLocation" Text :>
QueryParam "gcsPath" Text :>
QueryParam "callback" Text :>
QueryParam "dynamicTemplate.gcsPath" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] LaunchTemplateParameters :>
Post '[JSON] LaunchTemplateResponse
data ProjectsLocationsTemplatesLaunch = ProjectsLocationsTemplatesLaunch'
{ _pltlXgafv :: !(Maybe Xgafv)
, _pltlValidateOnly :: !(Maybe Bool)
, _pltlUploadProtocol :: !(Maybe Text)
, _pltlLocation :: !Text
, _pltlAccessToken :: !(Maybe Text)
, _pltlUploadType :: !(Maybe Text)
, _pltlPayload :: !LaunchTemplateParameters
, _pltlDynamicTemplateStagingLocation :: !(Maybe Text)
, _pltlGcsPath :: !(Maybe Text)
, _pltlProjectId :: !Text
, _pltlCallback :: !(Maybe Text)
, _pltlDynamicTemplateGcsPath :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsTemplatesLaunch
:: Text
-> LaunchTemplateParameters
-> Text
-> ProjectsLocationsTemplatesLaunch
projectsLocationsTemplatesLaunch pPltlLocation_ pPltlPayload_ pPltlProjectId_ =
ProjectsLocationsTemplatesLaunch'
{ _pltlXgafv = Nothing
, _pltlValidateOnly = Nothing
, _pltlUploadProtocol = Nothing
, _pltlLocation = pPltlLocation_
, _pltlAccessToken = Nothing
, _pltlUploadType = Nothing
, _pltlPayload = pPltlPayload_
, _pltlDynamicTemplateStagingLocation = Nothing
, _pltlGcsPath = Nothing
, _pltlProjectId = pPltlProjectId_
, _pltlCallback = Nothing
, _pltlDynamicTemplateGcsPath = Nothing
}
pltlXgafv :: Lens' ProjectsLocationsTemplatesLaunch (Maybe Xgafv)
pltlXgafv
= lens _pltlXgafv (\ s a -> s{_pltlXgafv = a})
pltlValidateOnly :: Lens' ProjectsLocationsTemplatesLaunch (Maybe Bool)
pltlValidateOnly
= lens _pltlValidateOnly
(\ s a -> s{_pltlValidateOnly = a})
pltlUploadProtocol :: Lens' ProjectsLocationsTemplatesLaunch (Maybe Text)
pltlUploadProtocol
= lens _pltlUploadProtocol
(\ s a -> s{_pltlUploadProtocol = a})
pltlLocation :: Lens' ProjectsLocationsTemplatesLaunch Text
pltlLocation
= lens _pltlLocation (\ s a -> s{_pltlLocation = a})
pltlAccessToken :: Lens' ProjectsLocationsTemplatesLaunch (Maybe Text)
pltlAccessToken
= lens _pltlAccessToken
(\ s a -> s{_pltlAccessToken = a})
pltlUploadType :: Lens' ProjectsLocationsTemplatesLaunch (Maybe Text)
pltlUploadType
= lens _pltlUploadType
(\ s a -> s{_pltlUploadType = a})
pltlPayload :: Lens' ProjectsLocationsTemplatesLaunch LaunchTemplateParameters
pltlPayload
= lens _pltlPayload (\ s a -> s{_pltlPayload = a})
pltlDynamicTemplateStagingLocation :: Lens' ProjectsLocationsTemplatesLaunch (Maybe Text)
pltlDynamicTemplateStagingLocation
= lens _pltlDynamicTemplateStagingLocation
(\ s a -> s{_pltlDynamicTemplateStagingLocation = a})
pltlGcsPath :: Lens' ProjectsLocationsTemplatesLaunch (Maybe Text)
pltlGcsPath
= lens _pltlGcsPath (\ s a -> s{_pltlGcsPath = a})
pltlProjectId :: Lens' ProjectsLocationsTemplatesLaunch Text
pltlProjectId
= lens _pltlProjectId
(\ s a -> s{_pltlProjectId = a})
pltlCallback :: Lens' ProjectsLocationsTemplatesLaunch (Maybe Text)
pltlCallback
= lens _pltlCallback (\ s a -> s{_pltlCallback = a})
pltlDynamicTemplateGcsPath :: Lens' ProjectsLocationsTemplatesLaunch (Maybe Text)
pltlDynamicTemplateGcsPath
= lens _pltlDynamicTemplateGcsPath
(\ s a -> s{_pltlDynamicTemplateGcsPath = a})
instance GoogleRequest
ProjectsLocationsTemplatesLaunch where
type Rs ProjectsLocationsTemplatesLaunch =
LaunchTemplateResponse
type Scopes ProjectsLocationsTemplatesLaunch =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly",
"https://www.googleapis.com/auth/userinfo.email"]
requestClient ProjectsLocationsTemplatesLaunch'{..}
= go _pltlProjectId _pltlLocation _pltlXgafv
_pltlValidateOnly
_pltlUploadProtocol
_pltlAccessToken
_pltlUploadType
_pltlDynamicTemplateStagingLocation
_pltlGcsPath
_pltlCallback
_pltlDynamicTemplateGcsPath
(Just AltJSON)
_pltlPayload
dataflowService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsTemplatesLaunchResource)
mempty