{-# 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.Container.Projects.Locations.Operations.Get
(
ProjectsLocationsOperationsGetResource
, projectsLocationsOperationsGet
, ProjectsLocationsOperationsGet
, plogXgafv
, plogUploadProtocol
, plogAccessToken
, plogUploadType
, plogZone
, plogName
, plogProjectId
, plogOperationId
, plogCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsOperationsGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "zone" Text :>
QueryParam "projectId" Text :>
QueryParam "operationId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Operation
data ProjectsLocationsOperationsGet = ProjectsLocationsOperationsGet'
{ _plogXgafv :: !(Maybe Xgafv)
, _plogUploadProtocol :: !(Maybe Text)
, _plogAccessToken :: !(Maybe Text)
, _plogUploadType :: !(Maybe Text)
, _plogZone :: !(Maybe Text)
, _plogName :: !Text
, _plogProjectId :: !(Maybe Text)
, _plogOperationId :: !(Maybe Text)
, _plogCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsOperationsGet
:: Text
-> ProjectsLocationsOperationsGet
projectsLocationsOperationsGet pPlogName_ =
ProjectsLocationsOperationsGet'
{ _plogXgafv = Nothing
, _plogUploadProtocol = Nothing
, _plogAccessToken = Nothing
, _plogUploadType = Nothing
, _plogZone = Nothing
, _plogName = pPlogName_
, _plogProjectId = Nothing
, _plogOperationId = Nothing
, _plogCallback = Nothing
}
plogXgafv :: Lens' ProjectsLocationsOperationsGet (Maybe Xgafv)
plogXgafv
= lens _plogXgafv (\ s a -> s{_plogXgafv = a})
plogUploadProtocol :: Lens' ProjectsLocationsOperationsGet (Maybe Text)
plogUploadProtocol
= lens _plogUploadProtocol
(\ s a -> s{_plogUploadProtocol = a})
plogAccessToken :: Lens' ProjectsLocationsOperationsGet (Maybe Text)
plogAccessToken
= lens _plogAccessToken
(\ s a -> s{_plogAccessToken = a})
plogUploadType :: Lens' ProjectsLocationsOperationsGet (Maybe Text)
plogUploadType
= lens _plogUploadType
(\ s a -> s{_plogUploadType = a})
plogZone :: Lens' ProjectsLocationsOperationsGet (Maybe Text)
plogZone = lens _plogZone (\ s a -> s{_plogZone = a})
plogName :: Lens' ProjectsLocationsOperationsGet Text
plogName = lens _plogName (\ s a -> s{_plogName = a})
plogProjectId :: Lens' ProjectsLocationsOperationsGet (Maybe Text)
plogProjectId
= lens _plogProjectId
(\ s a -> s{_plogProjectId = a})
plogOperationId :: Lens' ProjectsLocationsOperationsGet (Maybe Text)
plogOperationId
= lens _plogOperationId
(\ s a -> s{_plogOperationId = a})
plogCallback :: Lens' ProjectsLocationsOperationsGet (Maybe Text)
plogCallback
= lens _plogCallback (\ s a -> s{_plogCallback = a})
instance GoogleRequest ProjectsLocationsOperationsGet
where
type Rs ProjectsLocationsOperationsGet = Operation
type Scopes ProjectsLocationsOperationsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsOperationsGet'{..}
= go _plogName _plogXgafv _plogUploadProtocol
_plogAccessToken
_plogUploadType
_plogZone
_plogProjectId
_plogOperationId
_plogCallback
(Just AltJSON)
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsOperationsGetResource)
mempty