{-# 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.Dataproc.Projects.Locations.WorkflowTemplates.Instantiate
(
ProjectsLocationsWorkflowTemplatesInstantiateResource
, projectsLocationsWorkflowTemplatesInstantiate
, ProjectsLocationsWorkflowTemplatesInstantiate
, plwtiXgafv
, plwtiUploadProtocol
, plwtiAccessToken
, plwtiUploadType
, plwtiPayload
, plwtiName
, plwtiCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsLocationsWorkflowTemplatesInstantiateResource
=
"v1" :>
CaptureMode "name" "instantiate" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] InstantiateWorkflowTemplateRequest :>
Post '[JSON] Operation
data ProjectsLocationsWorkflowTemplatesInstantiate = ProjectsLocationsWorkflowTemplatesInstantiate'
{ _plwtiXgafv :: !(Maybe Xgafv)
, _plwtiUploadProtocol :: !(Maybe Text)
, _plwtiAccessToken :: !(Maybe Text)
, _plwtiUploadType :: !(Maybe Text)
, _plwtiPayload :: !InstantiateWorkflowTemplateRequest
, _plwtiName :: !Text
, _plwtiCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsWorkflowTemplatesInstantiate
:: InstantiateWorkflowTemplateRequest
-> Text
-> ProjectsLocationsWorkflowTemplatesInstantiate
projectsLocationsWorkflowTemplatesInstantiate pPlwtiPayload_ pPlwtiName_ =
ProjectsLocationsWorkflowTemplatesInstantiate'
{ _plwtiXgafv = Nothing
, _plwtiUploadProtocol = Nothing
, _plwtiAccessToken = Nothing
, _plwtiUploadType = Nothing
, _plwtiPayload = pPlwtiPayload_
, _plwtiName = pPlwtiName_
, _plwtiCallback = Nothing
}
plwtiXgafv :: Lens' ProjectsLocationsWorkflowTemplatesInstantiate (Maybe Xgafv)
plwtiXgafv
= lens _plwtiXgafv (\ s a -> s{_plwtiXgafv = a})
plwtiUploadProtocol :: Lens' ProjectsLocationsWorkflowTemplatesInstantiate (Maybe Text)
plwtiUploadProtocol
= lens _plwtiUploadProtocol
(\ s a -> s{_plwtiUploadProtocol = a})
plwtiAccessToken :: Lens' ProjectsLocationsWorkflowTemplatesInstantiate (Maybe Text)
plwtiAccessToken
= lens _plwtiAccessToken
(\ s a -> s{_plwtiAccessToken = a})
plwtiUploadType :: Lens' ProjectsLocationsWorkflowTemplatesInstantiate (Maybe Text)
plwtiUploadType
= lens _plwtiUploadType
(\ s a -> s{_plwtiUploadType = a})
plwtiPayload :: Lens' ProjectsLocationsWorkflowTemplatesInstantiate InstantiateWorkflowTemplateRequest
plwtiPayload
= lens _plwtiPayload (\ s a -> s{_plwtiPayload = a})
plwtiName :: Lens' ProjectsLocationsWorkflowTemplatesInstantiate Text
plwtiName
= lens _plwtiName (\ s a -> s{_plwtiName = a})
plwtiCallback :: Lens' ProjectsLocationsWorkflowTemplatesInstantiate (Maybe Text)
plwtiCallback
= lens _plwtiCallback
(\ s a -> s{_plwtiCallback = a})
instance GoogleRequest
ProjectsLocationsWorkflowTemplatesInstantiate where
type Rs ProjectsLocationsWorkflowTemplatesInstantiate
= Operation
type Scopes
ProjectsLocationsWorkflowTemplatesInstantiate
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsWorkflowTemplatesInstantiate'{..}
= go _plwtiName _plwtiXgafv _plwtiUploadProtocol
_plwtiAccessToken
_plwtiUploadType
_plwtiCallback
(Just AltJSON)
_plwtiPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsWorkflowTemplatesInstantiateResource)
mempty