{-# 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.Zones.Operations.Get
(
ProjectsZonesOperationsGetResource
, projectsZonesOperationsGet
, ProjectsZonesOperationsGet
, pzogXgafv
, pzogUploadProtocol
, pzogAccessToken
, pzogUploadType
, pzogZone
, pzogName
, pzogProjectId
, pzogOperationId
, pzogCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesOperationsGetResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"operations" :>
Capture "operationId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "name" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Operation
data ProjectsZonesOperationsGet = ProjectsZonesOperationsGet'
{ _pzogXgafv :: !(Maybe Xgafv)
, _pzogUploadProtocol :: !(Maybe Text)
, _pzogAccessToken :: !(Maybe Text)
, _pzogUploadType :: !(Maybe Text)
, _pzogZone :: !Text
, _pzogName :: !(Maybe Text)
, _pzogProjectId :: !Text
, _pzogOperationId :: !Text
, _pzogCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesOperationsGet
:: Text
-> Text
-> Text
-> ProjectsZonesOperationsGet
projectsZonesOperationsGet pPzogZone_ pPzogProjectId_ pPzogOperationId_ =
ProjectsZonesOperationsGet'
{ _pzogXgafv = Nothing
, _pzogUploadProtocol = Nothing
, _pzogAccessToken = Nothing
, _pzogUploadType = Nothing
, _pzogZone = pPzogZone_
, _pzogName = Nothing
, _pzogProjectId = pPzogProjectId_
, _pzogOperationId = pPzogOperationId_
, _pzogCallback = Nothing
}
pzogXgafv :: Lens' ProjectsZonesOperationsGet (Maybe Xgafv)
pzogXgafv
= lens _pzogXgafv (\ s a -> s{_pzogXgafv = a})
pzogUploadProtocol :: Lens' ProjectsZonesOperationsGet (Maybe Text)
pzogUploadProtocol
= lens _pzogUploadProtocol
(\ s a -> s{_pzogUploadProtocol = a})
pzogAccessToken :: Lens' ProjectsZonesOperationsGet (Maybe Text)
pzogAccessToken
= lens _pzogAccessToken
(\ s a -> s{_pzogAccessToken = a})
pzogUploadType :: Lens' ProjectsZonesOperationsGet (Maybe Text)
pzogUploadType
= lens _pzogUploadType
(\ s a -> s{_pzogUploadType = a})
pzogZone :: Lens' ProjectsZonesOperationsGet Text
pzogZone = lens _pzogZone (\ s a -> s{_pzogZone = a})
pzogName :: Lens' ProjectsZonesOperationsGet (Maybe Text)
pzogName = lens _pzogName (\ s a -> s{_pzogName = a})
pzogProjectId :: Lens' ProjectsZonesOperationsGet Text
pzogProjectId
= lens _pzogProjectId
(\ s a -> s{_pzogProjectId = a})
pzogOperationId :: Lens' ProjectsZonesOperationsGet Text
pzogOperationId
= lens _pzogOperationId
(\ s a -> s{_pzogOperationId = a})
pzogCallback :: Lens' ProjectsZonesOperationsGet (Maybe Text)
pzogCallback
= lens _pzogCallback (\ s a -> s{_pzogCallback = a})
instance GoogleRequest ProjectsZonesOperationsGet
where
type Rs ProjectsZonesOperationsGet = Operation
type Scopes ProjectsZonesOperationsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesOperationsGet'{..}
= go _pzogProjectId _pzogZone _pzogOperationId
_pzogXgafv
_pzogUploadProtocol
_pzogAccessToken
_pzogUploadType
_pzogName
_pzogCallback
(Just AltJSON)
containerService
where go
= buildClient
(Proxy :: Proxy ProjectsZonesOperationsGetResource)
mempty