{-# 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.Compute.HTTPHealthChecks.Get
(
HTTPHealthChecksGetResource
, hTTPHealthChecksGet
, HTTPHealthChecksGet
, httphcgProject
, httphcgHTTPHealthCheck
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type HTTPHealthChecksGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"httpHealthChecks" :>
Capture "httpHealthCheck" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] HTTPHealthCheck
data HTTPHealthChecksGet = HTTPHealthChecksGet'
{ _httphcgProject :: !Text
, _httphcgHTTPHealthCheck :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
hTTPHealthChecksGet
:: Text
-> Text
-> HTTPHealthChecksGet
hTTPHealthChecksGet pHttphcgProject_ pHttphcgHTTPHealthCheck_ =
HTTPHealthChecksGet'
{ _httphcgProject = pHttphcgProject_
, _httphcgHTTPHealthCheck = pHttphcgHTTPHealthCheck_
}
httphcgProject :: Lens' HTTPHealthChecksGet Text
httphcgProject
= lens _httphcgProject
(\ s a -> s{_httphcgProject = a})
httphcgHTTPHealthCheck :: Lens' HTTPHealthChecksGet Text
httphcgHTTPHealthCheck
= lens _httphcgHTTPHealthCheck
(\ s a -> s{_httphcgHTTPHealthCheck = a})
instance GoogleRequest HTTPHealthChecksGet where
type Rs HTTPHealthChecksGet = HTTPHealthCheck
type Scopes HTTPHealthChecksGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient HTTPHealthChecksGet'{..}
= go _httphcgProject _httphcgHTTPHealthCheck
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy HTTPHealthChecksGetResource)
mempty