{-# 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.InterconnectAttachments.Get
(
InterconnectAttachmentsGetResource
, interconnectAttachmentsGet
, InterconnectAttachmentsGet
, iagProject
, iagRegion
, iagInterconnectAttachment
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InterconnectAttachmentsGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"interconnectAttachments" :>
Capture "interconnectAttachment" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] InterconnectAttachment
data InterconnectAttachmentsGet = InterconnectAttachmentsGet'
{ _iagProject :: !Text
, _iagRegion :: !Text
, _iagInterconnectAttachment :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
interconnectAttachmentsGet
:: Text
-> Text
-> Text
-> InterconnectAttachmentsGet
interconnectAttachmentsGet pIagProject_ pIagRegion_ pIagInterconnectAttachment_ =
InterconnectAttachmentsGet'
{ _iagProject = pIagProject_
, _iagRegion = pIagRegion_
, _iagInterconnectAttachment = pIagInterconnectAttachment_
}
iagProject :: Lens' InterconnectAttachmentsGet Text
iagProject
= lens _iagProject (\ s a -> s{_iagProject = a})
iagRegion :: Lens' InterconnectAttachmentsGet Text
iagRegion
= lens _iagRegion (\ s a -> s{_iagRegion = a})
iagInterconnectAttachment :: Lens' InterconnectAttachmentsGet Text
iagInterconnectAttachment
= lens _iagInterconnectAttachment
(\ s a -> s{_iagInterconnectAttachment = a})
instance GoogleRequest InterconnectAttachmentsGet
where
type Rs InterconnectAttachmentsGet =
InterconnectAttachment
type Scopes InterconnectAttachmentsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient InterconnectAttachmentsGet'{..}
= go _iagProject _iagRegion
_iagInterconnectAttachment
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy InterconnectAttachmentsGetResource)
mempty