{-# 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.Regions.WorkflowTemplates.Instantiate
(
ProjectsRegionsWorkflowTemplatesInstantiateResource
, projectsRegionsWorkflowTemplatesInstantiate
, ProjectsRegionsWorkflowTemplatesInstantiate
, prwtiXgafv
, prwtiUploadProtocol
, prwtiAccessToken
, prwtiUploadType
, prwtiPayload
, prwtiName
, prwtiCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsWorkflowTemplatesInstantiateResource
=
"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 ProjectsRegionsWorkflowTemplatesInstantiate = ProjectsRegionsWorkflowTemplatesInstantiate'
{ _prwtiXgafv :: !(Maybe Xgafv)
, _prwtiUploadProtocol :: !(Maybe Text)
, _prwtiAccessToken :: !(Maybe Text)
, _prwtiUploadType :: !(Maybe Text)
, _prwtiPayload :: !InstantiateWorkflowTemplateRequest
, _prwtiName :: !Text
, _prwtiCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsWorkflowTemplatesInstantiate
:: InstantiateWorkflowTemplateRequest
-> Text
-> ProjectsRegionsWorkflowTemplatesInstantiate
projectsRegionsWorkflowTemplatesInstantiate pPrwtiPayload_ pPrwtiName_ =
ProjectsRegionsWorkflowTemplatesInstantiate'
{ _prwtiXgafv = Nothing
, _prwtiUploadProtocol = Nothing
, _prwtiAccessToken = Nothing
, _prwtiUploadType = Nothing
, _prwtiPayload = pPrwtiPayload_
, _prwtiName = pPrwtiName_
, _prwtiCallback = Nothing
}
prwtiXgafv :: Lens' ProjectsRegionsWorkflowTemplatesInstantiate (Maybe Xgafv)
prwtiXgafv
= lens _prwtiXgafv (\ s a -> s{_prwtiXgafv = a})
prwtiUploadProtocol :: Lens' ProjectsRegionsWorkflowTemplatesInstantiate (Maybe Text)
prwtiUploadProtocol
= lens _prwtiUploadProtocol
(\ s a -> s{_prwtiUploadProtocol = a})
prwtiAccessToken :: Lens' ProjectsRegionsWorkflowTemplatesInstantiate (Maybe Text)
prwtiAccessToken
= lens _prwtiAccessToken
(\ s a -> s{_prwtiAccessToken = a})
prwtiUploadType :: Lens' ProjectsRegionsWorkflowTemplatesInstantiate (Maybe Text)
prwtiUploadType
= lens _prwtiUploadType
(\ s a -> s{_prwtiUploadType = a})
prwtiPayload :: Lens' ProjectsRegionsWorkflowTemplatesInstantiate InstantiateWorkflowTemplateRequest
prwtiPayload
= lens _prwtiPayload (\ s a -> s{_prwtiPayload = a})
prwtiName :: Lens' ProjectsRegionsWorkflowTemplatesInstantiate Text
prwtiName
= lens _prwtiName (\ s a -> s{_prwtiName = a})
prwtiCallback :: Lens' ProjectsRegionsWorkflowTemplatesInstantiate (Maybe Text)
prwtiCallback
= lens _prwtiCallback
(\ s a -> s{_prwtiCallback = a})
instance GoogleRequest
ProjectsRegionsWorkflowTemplatesInstantiate where
type Rs ProjectsRegionsWorkflowTemplatesInstantiate =
Operation
type Scopes
ProjectsRegionsWorkflowTemplatesInstantiate
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsRegionsWorkflowTemplatesInstantiate'{..}
= go _prwtiName _prwtiXgafv _prwtiUploadProtocol
_prwtiAccessToken
_prwtiUploadType
_prwtiCallback
(Just AltJSON)
_prwtiPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy
ProjectsRegionsWorkflowTemplatesInstantiateResource)
mempty