{-# 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.Licenses.Delete
(
LicensesDeleteResource
, licensesDelete
, LicensesDelete
, ldRequestId
, ldProject
, ldLicense
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type LicensesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"licenses" :>
Capture "license" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data LicensesDelete = LicensesDelete'
{ _ldRequestId :: !(Maybe Text)
, _ldProject :: !Text
, _ldLicense :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
licensesDelete
:: Text
-> Text
-> LicensesDelete
licensesDelete pLdProject_ pLdLicense_ =
LicensesDelete'
{ _ldRequestId = Nothing
, _ldProject = pLdProject_
, _ldLicense = pLdLicense_
}
ldRequestId :: Lens' LicensesDelete (Maybe Text)
ldRequestId
= lens _ldRequestId (\ s a -> s{_ldRequestId = a})
ldProject :: Lens' LicensesDelete Text
ldProject
= lens _ldProject (\ s a -> s{_ldProject = a})
ldLicense :: Lens' LicensesDelete Text
ldLicense
= lens _ldLicense (\ s a -> s{_ldLicense = a})
instance GoogleRequest LicensesDelete where
type Rs LicensesDelete = Operation
type Scopes LicensesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient LicensesDelete'{..}
= go _ldProject _ldLicense _ldRequestId
(Just AltJSON)
computeService
where go
= buildClient (Proxy :: Proxy LicensesDeleteResource)
mempty