{-# 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.Instances.DeleteAccessConfig
(
InstancesDeleteAccessConfigResource
, instancesDeleteAccessConfig
, InstancesDeleteAccessConfig
, idacRequestId
, idacProject
, idacNetworkInterface
, idacZone
, idacAccessConfig
, idacInstance
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InstancesDeleteAccessConfigResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"instances" :>
Capture "instance" Text :>
"deleteAccessConfig" :>
QueryParam "accessConfig" Text :>
QueryParam "networkInterface" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] Operation
data InstancesDeleteAccessConfig = InstancesDeleteAccessConfig'
{ _idacRequestId :: !(Maybe Text)
, _idacProject :: !Text
, _idacNetworkInterface :: !Text
, _idacZone :: !Text
, _idacAccessConfig :: !Text
, _idacInstance :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instancesDeleteAccessConfig
:: Text
-> Text
-> Text
-> Text
-> Text
-> InstancesDeleteAccessConfig
instancesDeleteAccessConfig pIdacProject_ pIdacNetworkInterface_ pIdacZone_ pIdacAccessConfig_ pIdacInstance_ =
InstancesDeleteAccessConfig'
{ _idacRequestId = Nothing
, _idacProject = pIdacProject_
, _idacNetworkInterface = pIdacNetworkInterface_
, _idacZone = pIdacZone_
, _idacAccessConfig = pIdacAccessConfig_
, _idacInstance = pIdacInstance_
}
idacRequestId :: Lens' InstancesDeleteAccessConfig (Maybe Text)
idacRequestId
= lens _idacRequestId
(\ s a -> s{_idacRequestId = a})
idacProject :: Lens' InstancesDeleteAccessConfig Text
idacProject
= lens _idacProject (\ s a -> s{_idacProject = a})
idacNetworkInterface :: Lens' InstancesDeleteAccessConfig Text
idacNetworkInterface
= lens _idacNetworkInterface
(\ s a -> s{_idacNetworkInterface = a})
idacZone :: Lens' InstancesDeleteAccessConfig Text
idacZone = lens _idacZone (\ s a -> s{_idacZone = a})
idacAccessConfig :: Lens' InstancesDeleteAccessConfig Text
idacAccessConfig
= lens _idacAccessConfig
(\ s a -> s{_idacAccessConfig = a})
idacInstance :: Lens' InstancesDeleteAccessConfig Text
idacInstance
= lens _idacInstance (\ s a -> s{_idacInstance = a})
instance GoogleRequest InstancesDeleteAccessConfig
where
type Rs InstancesDeleteAccessConfig = Operation
type Scopes InstancesDeleteAccessConfig =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient InstancesDeleteAccessConfig'{..}
= go _idacProject _idacZone _idacInstance
(Just _idacAccessConfig)
(Just _idacNetworkInterface)
_idacRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy InstancesDeleteAccessConfigResource)
mempty