{-# 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.Reset
(
InstancesResetResource
, instancesReset
, InstancesReset
, irRequestId
, irProject
, irZone
, irInstance
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InstancesResetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"instances" :>
Capture "instance" Text :>
"reset" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] Operation
data InstancesReset = InstancesReset'
{ _irRequestId :: !(Maybe Text)
, _irProject :: !Text
, _irZone :: !Text
, _irInstance :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instancesReset
:: Text
-> Text
-> Text
-> InstancesReset
instancesReset pIrProject_ pIrZone_ pIrInstance_ =
InstancesReset'
{ _irRequestId = Nothing
, _irProject = pIrProject_
, _irZone = pIrZone_
, _irInstance = pIrInstance_
}
irRequestId :: Lens' InstancesReset (Maybe Text)
irRequestId
= lens _irRequestId (\ s a -> s{_irRequestId = a})
irProject :: Lens' InstancesReset Text
irProject
= lens _irProject (\ s a -> s{_irProject = a})
irZone :: Lens' InstancesReset Text
irZone = lens _irZone (\ s a -> s{_irZone = a})
irInstance :: Lens' InstancesReset Text
irInstance
= lens _irInstance (\ s a -> s{_irInstance = a})
instance GoogleRequest InstancesReset where
type Rs InstancesReset = Operation
type Scopes InstancesReset =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient InstancesReset'{..}
= go _irProject _irZone _irInstance _irRequestId
(Just AltJSON)
computeService
where go
= buildClient (Proxy :: Proxy InstancesResetResource)
mempty