{-# 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.TPU.Projects.Locations.Nodes.Reimage
(
ProjectsLocationsNodesReimageResource
, projectsLocationsNodesReimage
, ProjectsLocationsNodesReimage
, plnrXgafv
, plnrUploadProtocol
, plnrAccessToken
, plnrUploadType
, plnrPayload
, plnrName
, plnrCallback
) where
import Network.Google.Prelude
import Network.Google.TPU.Types
type ProjectsLocationsNodesReimageResource =
"v1" :>
CaptureMode "name" "reimage" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ReimageNodeRequest :>
Post '[JSON] Operation
data ProjectsLocationsNodesReimage = ProjectsLocationsNodesReimage'
{ _plnrXgafv :: !(Maybe Xgafv)
, _plnrUploadProtocol :: !(Maybe Text)
, _plnrAccessToken :: !(Maybe Text)
, _plnrUploadType :: !(Maybe Text)
, _plnrPayload :: !ReimageNodeRequest
, _plnrName :: !Text
, _plnrCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsNodesReimage
:: ReimageNodeRequest
-> Text
-> ProjectsLocationsNodesReimage
projectsLocationsNodesReimage pPlnrPayload_ pPlnrName_ =
ProjectsLocationsNodesReimage'
{ _plnrXgafv = Nothing
, _plnrUploadProtocol = Nothing
, _plnrAccessToken = Nothing
, _plnrUploadType = Nothing
, _plnrPayload = pPlnrPayload_
, _plnrName = pPlnrName_
, _plnrCallback = Nothing
}
plnrXgafv :: Lens' ProjectsLocationsNodesReimage (Maybe Xgafv)
plnrXgafv
= lens _plnrXgafv (\ s a -> s{_plnrXgafv = a})
plnrUploadProtocol :: Lens' ProjectsLocationsNodesReimage (Maybe Text)
plnrUploadProtocol
= lens _plnrUploadProtocol
(\ s a -> s{_plnrUploadProtocol = a})
plnrAccessToken :: Lens' ProjectsLocationsNodesReimage (Maybe Text)
plnrAccessToken
= lens _plnrAccessToken
(\ s a -> s{_plnrAccessToken = a})
plnrUploadType :: Lens' ProjectsLocationsNodesReimage (Maybe Text)
plnrUploadType
= lens _plnrUploadType
(\ s a -> s{_plnrUploadType = a})
plnrPayload :: Lens' ProjectsLocationsNodesReimage ReimageNodeRequest
plnrPayload
= lens _plnrPayload (\ s a -> s{_plnrPayload = a})
plnrName :: Lens' ProjectsLocationsNodesReimage Text
plnrName = lens _plnrName (\ s a -> s{_plnrName = a})
plnrCallback :: Lens' ProjectsLocationsNodesReimage (Maybe Text)
plnrCallback
= lens _plnrCallback (\ s a -> s{_plnrCallback = a})
instance GoogleRequest ProjectsLocationsNodesReimage
where
type Rs ProjectsLocationsNodesReimage = Operation
type Scopes ProjectsLocationsNodesReimage =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsNodesReimage'{..}
= go _plnrName _plnrXgafv _plnrUploadProtocol
_plnrAccessToken
_plnrUploadType
_plnrCallback
(Just AltJSON)
_plnrPayload
tPUService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsNodesReimageResource)
mempty