{-# 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.ContainerAnalysis.Projects.Occurrences.Get
(
ProjectsOccurrencesGetResource
, projectsOccurrencesGet
, ProjectsOccurrencesGet
, pogXgafv
, pogUploadProtocol
, pogAccessToken
, pogUploadType
, pogName
, pogCallback
) where
import Network.Google.ContainerAnalysis.Types
import Network.Google.Prelude
type ProjectsOccurrencesGetResource =
"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] Occurrence
data ProjectsOccurrencesGet = ProjectsOccurrencesGet'
{ _pogXgafv :: !(Maybe Xgafv)
, _pogUploadProtocol :: !(Maybe Text)
, _pogAccessToken :: !(Maybe Text)
, _pogUploadType :: !(Maybe Text)
, _pogName :: !Text
, _pogCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsOccurrencesGet
:: Text
-> ProjectsOccurrencesGet
projectsOccurrencesGet pPogName_ =
ProjectsOccurrencesGet'
{ _pogXgafv = Nothing
, _pogUploadProtocol = Nothing
, _pogAccessToken = Nothing
, _pogUploadType = Nothing
, _pogName = pPogName_
, _pogCallback = Nothing
}
pogXgafv :: Lens' ProjectsOccurrencesGet (Maybe Xgafv)
pogXgafv = lens _pogXgafv (\ s a -> s{_pogXgafv = a})
pogUploadProtocol :: Lens' ProjectsOccurrencesGet (Maybe Text)
pogUploadProtocol
= lens _pogUploadProtocol
(\ s a -> s{_pogUploadProtocol = a})
pogAccessToken :: Lens' ProjectsOccurrencesGet (Maybe Text)
pogAccessToken
= lens _pogAccessToken
(\ s a -> s{_pogAccessToken = a})
pogUploadType :: Lens' ProjectsOccurrencesGet (Maybe Text)
pogUploadType
= lens _pogUploadType
(\ s a -> s{_pogUploadType = a})
pogName :: Lens' ProjectsOccurrencesGet Text
pogName = lens _pogName (\ s a -> s{_pogName = a})
pogCallback :: Lens' ProjectsOccurrencesGet (Maybe Text)
pogCallback
= lens _pogCallback (\ s a -> s{_pogCallback = a})
instance GoogleRequest ProjectsOccurrencesGet where
type Rs ProjectsOccurrencesGet = Occurrence
type Scopes ProjectsOccurrencesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsOccurrencesGet'{..}
= go _pogName _pogXgafv _pogUploadProtocol
_pogAccessToken
_pogUploadType
_pogCallback
(Just AltJSON)
containerAnalysisService
where go
= buildClient
(Proxy :: Proxy ProjectsOccurrencesGetResource)
mempty