{-# 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.InstantiateInline
(
ProjectsRegionsWorkflowTemplatesInstantiateInlineResource
, projectsRegionsWorkflowTemplatesInstantiateInline
, ProjectsRegionsWorkflowTemplatesInstantiateInline
, prwtiiParent
, prwtiiXgafv
, prwtiiRequestId
, prwtiiUploadProtocol
, prwtiiAccessToken
, prwtiiUploadType
, prwtiiPayload
, prwtiiCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsWorkflowTemplatesInstantiateInlineResource
=
"v1" :>
Capture "parent" Text :>
"workflowTemplates:instantiateInline" :>
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] WorkflowTemplate :>
Post '[JSON] Operation
data ProjectsRegionsWorkflowTemplatesInstantiateInline = ProjectsRegionsWorkflowTemplatesInstantiateInline'
{ _prwtiiParent :: !Text
, _prwtiiXgafv :: !(Maybe Xgafv)
, _prwtiiRequestId :: !(Maybe Text)
, _prwtiiUploadProtocol :: !(Maybe Text)
, _prwtiiAccessToken :: !(Maybe Text)
, _prwtiiUploadType :: !(Maybe Text)
, _prwtiiPayload :: !WorkflowTemplate
, _prwtiiCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsWorkflowTemplatesInstantiateInline
:: Text
-> WorkflowTemplate
-> ProjectsRegionsWorkflowTemplatesInstantiateInline
projectsRegionsWorkflowTemplatesInstantiateInline pPrwtiiParent_ pPrwtiiPayload_ =
ProjectsRegionsWorkflowTemplatesInstantiateInline'
{ _prwtiiParent = pPrwtiiParent_
, _prwtiiXgafv = Nothing
, _prwtiiRequestId = Nothing
, _prwtiiUploadProtocol = Nothing
, _prwtiiAccessToken = Nothing
, _prwtiiUploadType = Nothing
, _prwtiiPayload = pPrwtiiPayload_
, _prwtiiCallback = Nothing
}
prwtiiParent :: Lens' ProjectsRegionsWorkflowTemplatesInstantiateInline Text
prwtiiParent
= lens _prwtiiParent (\ s a -> s{_prwtiiParent = a})
prwtiiXgafv :: Lens' ProjectsRegionsWorkflowTemplatesInstantiateInline (Maybe Xgafv)
prwtiiXgafv
= lens _prwtiiXgafv (\ s a -> s{_prwtiiXgafv = a})
prwtiiRequestId :: Lens' ProjectsRegionsWorkflowTemplatesInstantiateInline (Maybe Text)
prwtiiRequestId
= lens _prwtiiRequestId
(\ s a -> s{_prwtiiRequestId = a})
prwtiiUploadProtocol :: Lens' ProjectsRegionsWorkflowTemplatesInstantiateInline (Maybe Text)
prwtiiUploadProtocol
= lens _prwtiiUploadProtocol
(\ s a -> s{_prwtiiUploadProtocol = a})
prwtiiAccessToken :: Lens' ProjectsRegionsWorkflowTemplatesInstantiateInline (Maybe Text)
prwtiiAccessToken
= lens _prwtiiAccessToken
(\ s a -> s{_prwtiiAccessToken = a})
prwtiiUploadType :: Lens' ProjectsRegionsWorkflowTemplatesInstantiateInline (Maybe Text)
prwtiiUploadType
= lens _prwtiiUploadType
(\ s a -> s{_prwtiiUploadType = a})
prwtiiPayload :: Lens' ProjectsRegionsWorkflowTemplatesInstantiateInline WorkflowTemplate
prwtiiPayload
= lens _prwtiiPayload
(\ s a -> s{_prwtiiPayload = a})
prwtiiCallback :: Lens' ProjectsRegionsWorkflowTemplatesInstantiateInline (Maybe Text)
prwtiiCallback
= lens _prwtiiCallback
(\ s a -> s{_prwtiiCallback = a})
instance GoogleRequest
ProjectsRegionsWorkflowTemplatesInstantiateInline
where
type Rs
ProjectsRegionsWorkflowTemplatesInstantiateInline
= Operation
type Scopes
ProjectsRegionsWorkflowTemplatesInstantiateInline
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsRegionsWorkflowTemplatesInstantiateInline'{..}
= go _prwtiiParent _prwtiiXgafv _prwtiiRequestId
_prwtiiUploadProtocol
_prwtiiAccessToken
_prwtiiUploadType
_prwtiiCallback
(Just AltJSON)
_prwtiiPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy
ProjectsRegionsWorkflowTemplatesInstantiateInlineResource)
mempty