{-# 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.HTTPSHealthChecks.Get
(
HTTPSHealthChecksGetResource
, httpsHealthChecksGet
, HTTPSHealthChecksGet
, hhcgProject
, hhcgHTTPSHealthCheck
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type HTTPSHealthChecksGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"httpsHealthChecks" :>
Capture "httpsHealthCheck" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] HTTPSHealthCheck
data HTTPSHealthChecksGet = HTTPSHealthChecksGet'
{ _hhcgProject :: !Text
, _hhcgHTTPSHealthCheck :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
httpsHealthChecksGet
:: Text
-> Text
-> HTTPSHealthChecksGet
httpsHealthChecksGet pHhcgProject_ pHhcgHTTPSHealthCheck_ =
HTTPSHealthChecksGet'
{ _hhcgProject = pHhcgProject_
, _hhcgHTTPSHealthCheck = pHhcgHTTPSHealthCheck_
}
hhcgProject :: Lens' HTTPSHealthChecksGet Text
hhcgProject
= lens _hhcgProject (\ s a -> s{_hhcgProject = a})
hhcgHTTPSHealthCheck :: Lens' HTTPSHealthChecksGet Text
hhcgHTTPSHealthCheck
= lens _hhcgHTTPSHealthCheck
(\ s a -> s{_hhcgHTTPSHealthCheck = a})
instance GoogleRequest HTTPSHealthChecksGet where
type Rs HTTPSHealthChecksGet = HTTPSHealthCheck
type Scopes HTTPSHealthChecksGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient HTTPSHealthChecksGet'{..}
= go _hhcgProject _hhcgHTTPSHealthCheck
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy HTTPSHealthChecksGetResource)
mempty