{-# 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.Subnetworks.ExpandIPCIdRRange
(
SubnetworksExpandIPCIdRRangeResource
, subnetworksExpandIPCIdRRange
, SubnetworksExpandIPCIdRRange
, seicirrRequestId
, seicirrProject
, seicirrPayload
, seicirrSubnetwork
, seicirrRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type SubnetworksExpandIPCIdRRangeResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"subnetworks" :>
Capture "subnetwork" Text :>
"expandIpCidrRange" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SubnetworksExpandIPCIdRRangeRequest
:> Post '[JSON] Operation
data SubnetworksExpandIPCIdRRange = SubnetworksExpandIPCIdRRange'
{ _seicirrRequestId :: !(Maybe Text)
, _seicirrProject :: !Text
, _seicirrPayload :: !SubnetworksExpandIPCIdRRangeRequest
, _seicirrSubnetwork :: !Text
, _seicirrRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
subnetworksExpandIPCIdRRange
:: Text
-> SubnetworksExpandIPCIdRRangeRequest
-> Text
-> Text
-> SubnetworksExpandIPCIdRRange
subnetworksExpandIPCIdRRange pSeicirrProject_ pSeicirrPayload_ pSeicirrSubnetwork_ pSeicirrRegion_ =
SubnetworksExpandIPCIdRRange'
{ _seicirrRequestId = Nothing
, _seicirrProject = pSeicirrProject_
, _seicirrPayload = pSeicirrPayload_
, _seicirrSubnetwork = pSeicirrSubnetwork_
, _seicirrRegion = pSeicirrRegion_
}
seicirrRequestId :: Lens' SubnetworksExpandIPCIdRRange (Maybe Text)
seicirrRequestId
= lens _seicirrRequestId
(\ s a -> s{_seicirrRequestId = a})
seicirrProject :: Lens' SubnetworksExpandIPCIdRRange Text
seicirrProject
= lens _seicirrProject
(\ s a -> s{_seicirrProject = a})
seicirrPayload :: Lens' SubnetworksExpandIPCIdRRange SubnetworksExpandIPCIdRRangeRequest
seicirrPayload
= lens _seicirrPayload
(\ s a -> s{_seicirrPayload = a})
seicirrSubnetwork :: Lens' SubnetworksExpandIPCIdRRange Text
seicirrSubnetwork
= lens _seicirrSubnetwork
(\ s a -> s{_seicirrSubnetwork = a})
seicirrRegion :: Lens' SubnetworksExpandIPCIdRRange Text
seicirrRegion
= lens _seicirrRegion
(\ s a -> s{_seicirrRegion = a})
instance GoogleRequest SubnetworksExpandIPCIdRRange
where
type Rs SubnetworksExpandIPCIdRRange = Operation
type Scopes SubnetworksExpandIPCIdRRange =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient SubnetworksExpandIPCIdRRange'{..}
= go _seicirrProject _seicirrRegion
_seicirrSubnetwork
_seicirrRequestId
(Just AltJSON)
_seicirrPayload
computeService
where go
= buildClient
(Proxy :: Proxy SubnetworksExpandIPCIdRRangeResource)
mempty