module Network.Google.Resource.ResourceViews.ZoneViews.Delete
(
ZoneViewsDeleteResource
, zoneViewsDelete
, ZoneViewsDelete
, zvdResourceView
, zvdProject
, zvdZone
) where
import Network.Google.Prelude
import Network.Google.ResourceViews.Types
type ZoneViewsDeleteResource =
"resourceviews" :>
"v1beta2" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"resourceViews" :>
Capture "resourceView" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data ZoneViewsDelete = ZoneViewsDelete'
{ _zvdResourceView :: !Text
, _zvdProject :: !Text
, _zvdZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
zoneViewsDelete
:: Text
-> Text
-> Text
-> ZoneViewsDelete
zoneViewsDelete pZvdResourceView_ pZvdProject_ pZvdZone_ =
ZoneViewsDelete'
{ _zvdResourceView = pZvdResourceView_
, _zvdProject = pZvdProject_
, _zvdZone = pZvdZone_
}
zvdResourceView :: Lens' ZoneViewsDelete Text
zvdResourceView
= lens _zvdResourceView
(\ s a -> s{_zvdResourceView = a})
zvdProject :: Lens' ZoneViewsDelete Text
zvdProject
= lens _zvdProject (\ s a -> s{_zvdProject = a})
zvdZone :: Lens' ZoneViewsDelete Text
zvdZone = lens _zvdZone (\ s a -> s{_zvdZone = a})
instance GoogleRequest ZoneViewsDelete where
type Rs ZoneViewsDelete = Operation
type Scopes ZoneViewsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/ndev.cloudman"]
requestClient ZoneViewsDelete'{..}
= go _zvdProject _zvdZone _zvdResourceView
(Just AltJSON)
resourceViewsService
where go
= buildClient
(Proxy :: Proxy ZoneViewsDeleteResource)
mempty