{-# 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.NodeGroups.Get
(
NodeGroupsGetResource
, nodeGroupsGet
, NodeGroupsGet
, nggNodeGroup
, nggProject
, nggZone
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type NodeGroupsGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"nodeGroups" :>
Capture "nodeGroup" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] NodeGroup
data NodeGroupsGet = NodeGroupsGet'
{ _nggNodeGroup :: !Text
, _nggProject :: !Text
, _nggZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
nodeGroupsGet
:: Text
-> Text
-> Text
-> NodeGroupsGet
nodeGroupsGet pNggNodeGroup_ pNggProject_ pNggZone_ =
NodeGroupsGet'
{ _nggNodeGroup = pNggNodeGroup_
, _nggProject = pNggProject_
, _nggZone = pNggZone_
}
nggNodeGroup :: Lens' NodeGroupsGet Text
nggNodeGroup
= lens _nggNodeGroup (\ s a -> s{_nggNodeGroup = a})
nggProject :: Lens' NodeGroupsGet Text
nggProject
= lens _nggProject (\ s a -> s{_nggProject = a})
nggZone :: Lens' NodeGroupsGet Text
nggZone = lens _nggZone (\ s a -> s{_nggZone = a})
instance GoogleRequest NodeGroupsGet where
type Rs NodeGroupsGet = NodeGroup
type Scopes NodeGroupsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient NodeGroupsGet'{..}
= go _nggProject _nggZone _nggNodeGroup
(Just AltJSON)
computeService
where go
= buildClient (Proxy :: Proxy NodeGroupsGetResource)
mempty