{-# 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.SimulateMaintenanceEvent
(
InstancesSimulateMaintenanceEventResource
, instancesSimulateMaintenanceEvent
, InstancesSimulateMaintenanceEvent
, ismeProject
, ismeZone
, ismeInstance
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InstancesSimulateMaintenanceEventResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"instances" :>
Capture "instance" Text :>
"simulateMaintenanceEvent" :>
QueryParam "alt" AltJSON :> Post '[JSON] Operation
data InstancesSimulateMaintenanceEvent = InstancesSimulateMaintenanceEvent'
{ _ismeProject :: !Text
, _ismeZone :: !Text
, _ismeInstance :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instancesSimulateMaintenanceEvent
:: Text
-> Text
-> Text
-> InstancesSimulateMaintenanceEvent
instancesSimulateMaintenanceEvent pIsmeProject_ pIsmeZone_ pIsmeInstance_ =
InstancesSimulateMaintenanceEvent'
{ _ismeProject = pIsmeProject_
, _ismeZone = pIsmeZone_
, _ismeInstance = pIsmeInstance_
}
ismeProject :: Lens' InstancesSimulateMaintenanceEvent Text
ismeProject
= lens _ismeProject (\ s a -> s{_ismeProject = a})
ismeZone :: Lens' InstancesSimulateMaintenanceEvent Text
ismeZone = lens _ismeZone (\ s a -> s{_ismeZone = a})
ismeInstance :: Lens' InstancesSimulateMaintenanceEvent Text
ismeInstance
= lens _ismeInstance (\ s a -> s{_ismeInstance = a})
instance GoogleRequest
InstancesSimulateMaintenanceEvent where
type Rs InstancesSimulateMaintenanceEvent = Operation
type Scopes InstancesSimulateMaintenanceEvent =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient InstancesSimulateMaintenanceEvent'{..}
= go _ismeProject _ismeZone _ismeInstance
(Just AltJSON)
computeService
where go
= buildClient
(Proxy ::
Proxy InstancesSimulateMaintenanceEventResource)
mempty