{-# 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.File.Projects.Locations.Instances.Get
(
ProjectsLocationsInstancesGetResource
, projectsLocationsInstancesGet
, ProjectsLocationsInstancesGet
, pligXgafv
, pligUploadProtocol
, pligAccessToken
, pligUploadType
, pligName
, pligCallback
) where
import Network.Google.File.Types
import Network.Google.Prelude
type ProjectsLocationsInstancesGetResource =
"v1beta1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Instance
data ProjectsLocationsInstancesGet = ProjectsLocationsInstancesGet'
{ _pligXgafv :: !(Maybe Xgafv)
, _pligUploadProtocol :: !(Maybe Text)
, _pligAccessToken :: !(Maybe Text)
, _pligUploadType :: !(Maybe Text)
, _pligName :: !Text
, _pligCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsInstancesGet
:: Text
-> ProjectsLocationsInstancesGet
projectsLocationsInstancesGet pPligName_ =
ProjectsLocationsInstancesGet'
{ _pligXgafv = Nothing
, _pligUploadProtocol = Nothing
, _pligAccessToken = Nothing
, _pligUploadType = Nothing
, _pligName = pPligName_
, _pligCallback = Nothing
}
pligXgafv :: Lens' ProjectsLocationsInstancesGet (Maybe Xgafv)
pligXgafv
= lens _pligXgafv (\ s a -> s{_pligXgafv = a})
pligUploadProtocol :: Lens' ProjectsLocationsInstancesGet (Maybe Text)
pligUploadProtocol
= lens _pligUploadProtocol
(\ s a -> s{_pligUploadProtocol = a})
pligAccessToken :: Lens' ProjectsLocationsInstancesGet (Maybe Text)
pligAccessToken
= lens _pligAccessToken
(\ s a -> s{_pligAccessToken = a})
pligUploadType :: Lens' ProjectsLocationsInstancesGet (Maybe Text)
pligUploadType
= lens _pligUploadType
(\ s a -> s{_pligUploadType = a})
pligName :: Lens' ProjectsLocationsInstancesGet Text
pligName = lens _pligName (\ s a -> s{_pligName = a})
pligCallback :: Lens' ProjectsLocationsInstancesGet (Maybe Text)
pligCallback
= lens _pligCallback (\ s a -> s{_pligCallback = a})
instance GoogleRequest ProjectsLocationsInstancesGet
where
type Rs ProjectsLocationsInstancesGet = Instance
type Scopes ProjectsLocationsInstancesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsInstancesGet'{..}
= go _pligName _pligXgafv _pligUploadProtocol
_pligAccessToken
_pligUploadType
_pligCallback
(Just AltJSON)
fileService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsInstancesGetResource)
mempty