{-# 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.InstantiateInline
(
ProjectsLocationsWorkflowTemplatesInstantiateInlineResource
, projectsLocationsWorkflowTemplatesInstantiateInline
, ProjectsLocationsWorkflowTemplatesInstantiateInline
, plwtiiParent
, plwtiiXgafv
, plwtiiRequestId
, plwtiiUploadProtocol
, plwtiiAccessToken
, plwtiiUploadType
, plwtiiPayload
, plwtiiCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsLocationsWorkflowTemplatesInstantiateInlineResource
=
"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 ProjectsLocationsWorkflowTemplatesInstantiateInline = ProjectsLocationsWorkflowTemplatesInstantiateInline'
{ _plwtiiParent :: !Text
, _plwtiiXgafv :: !(Maybe Xgafv)
, _plwtiiRequestId :: !(Maybe Text)
, _plwtiiUploadProtocol :: !(Maybe Text)
, _plwtiiAccessToken :: !(Maybe Text)
, _plwtiiUploadType :: !(Maybe Text)
, _plwtiiPayload :: !WorkflowTemplate
, _plwtiiCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsWorkflowTemplatesInstantiateInline
:: Text
-> WorkflowTemplate
-> ProjectsLocationsWorkflowTemplatesInstantiateInline
projectsLocationsWorkflowTemplatesInstantiateInline pPlwtiiParent_ pPlwtiiPayload_ =
ProjectsLocationsWorkflowTemplatesInstantiateInline'
{ _plwtiiParent = pPlwtiiParent_
, _plwtiiXgafv = Nothing
, _plwtiiRequestId = Nothing
, _plwtiiUploadProtocol = Nothing
, _plwtiiAccessToken = Nothing
, _plwtiiUploadType = Nothing
, _plwtiiPayload = pPlwtiiPayload_
, _plwtiiCallback = Nothing
}
plwtiiParent :: Lens' ProjectsLocationsWorkflowTemplatesInstantiateInline Text
plwtiiParent
= lens _plwtiiParent (\ s a -> s{_plwtiiParent = a})
plwtiiXgafv :: Lens' ProjectsLocationsWorkflowTemplatesInstantiateInline (Maybe Xgafv)
plwtiiXgafv
= lens _plwtiiXgafv (\ s a -> s{_plwtiiXgafv = a})
plwtiiRequestId :: Lens' ProjectsLocationsWorkflowTemplatesInstantiateInline (Maybe Text)
plwtiiRequestId
= lens _plwtiiRequestId
(\ s a -> s{_plwtiiRequestId = a})
plwtiiUploadProtocol :: Lens' ProjectsLocationsWorkflowTemplatesInstantiateInline (Maybe Text)
plwtiiUploadProtocol
= lens _plwtiiUploadProtocol
(\ s a -> s{_plwtiiUploadProtocol = a})
plwtiiAccessToken :: Lens' ProjectsLocationsWorkflowTemplatesInstantiateInline (Maybe Text)
plwtiiAccessToken
= lens _plwtiiAccessToken
(\ s a -> s{_plwtiiAccessToken = a})
plwtiiUploadType :: Lens' ProjectsLocationsWorkflowTemplatesInstantiateInline (Maybe Text)
plwtiiUploadType
= lens _plwtiiUploadType
(\ s a -> s{_plwtiiUploadType = a})
plwtiiPayload :: Lens' ProjectsLocationsWorkflowTemplatesInstantiateInline WorkflowTemplate
plwtiiPayload
= lens _plwtiiPayload
(\ s a -> s{_plwtiiPayload = a})
plwtiiCallback :: Lens' ProjectsLocationsWorkflowTemplatesInstantiateInline (Maybe Text)
plwtiiCallback
= lens _plwtiiCallback
(\ s a -> s{_plwtiiCallback = a})
instance GoogleRequest
ProjectsLocationsWorkflowTemplatesInstantiateInline
where
type Rs
ProjectsLocationsWorkflowTemplatesInstantiateInline
= Operation
type Scopes
ProjectsLocationsWorkflowTemplatesInstantiateInline
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsWorkflowTemplatesInstantiateInline'{..}
= go _plwtiiParent _plwtiiXgafv _plwtiiRequestId
_plwtiiUploadProtocol
_plwtiiAccessToken
_plwtiiUploadType
_plwtiiCallback
(Just AltJSON)
_plwtiiPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsWorkflowTemplatesInstantiateInlineResource)
mempty