{-# 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.DeploymentManager.Manifests.Get
(
ManifestsGetResource
, manifestsGet
, ManifestsGet
, mgProject
, mgManifest
, mgDeployment
) where
import Network.Google.DeploymentManager.Types
import Network.Google.Prelude
type ManifestsGetResource =
"deploymentmanager" :>
"v2" :>
"projects" :>
Capture "project" Text :>
"global" :>
"deployments" :>
Capture "deployment" Text :>
"manifests" :>
Capture "manifest" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Manifest
data ManifestsGet = ManifestsGet'
{ _mgProject :: !Text
, _mgManifest :: !Text
, _mgDeployment :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
manifestsGet
:: Text
-> Text
-> Text
-> ManifestsGet
manifestsGet pMgProject_ pMgManifest_ pMgDeployment_ =
ManifestsGet'
{ _mgProject = pMgProject_
, _mgManifest = pMgManifest_
, _mgDeployment = pMgDeployment_
}
mgProject :: Lens' ManifestsGet Text
mgProject
= lens _mgProject (\ s a -> s{_mgProject = a})
mgManifest :: Lens' ManifestsGet Text
mgManifest
= lens _mgManifest (\ s a -> s{_mgManifest = a})
mgDeployment :: Lens' ManifestsGet Text
mgDeployment
= lens _mgDeployment (\ s a -> s{_mgDeployment = a})
instance GoogleRequest ManifestsGet where
type Rs ManifestsGet = Manifest
type Scopes ManifestsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only",
"https://www.googleapis.com/auth/ndev.cloudman",
"https://www.googleapis.com/auth/ndev.cloudman.readonly"]
requestClient ManifestsGet'{..}
= go _mgProject _mgDeployment _mgManifest
(Just AltJSON)
deploymentManagerService
where go
= buildClient (Proxy :: Proxy ManifestsGetResource)
mempty