{-# 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.SetMinCPUPlatform
(
InstancesSetMinCPUPlatformResource
, instancesSetMinCPUPlatform
, InstancesSetMinCPUPlatform
, ismcpRequestId
, ismcpProject
, ismcpZone
, ismcpPayload
, ismcpInstance
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InstancesSetMinCPUPlatformResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"instances" :>
Capture "instance" Text :>
"setMinCpuPlatform" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] InstancesSetMinCPUPlatformRequest :>
Post '[JSON] Operation
data InstancesSetMinCPUPlatform = InstancesSetMinCPUPlatform'
{ _ismcpRequestId :: !(Maybe Text)
, _ismcpProject :: !Text
, _ismcpZone :: !Text
, _ismcpPayload :: !InstancesSetMinCPUPlatformRequest
, _ismcpInstance :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instancesSetMinCPUPlatform
:: Text
-> Text
-> InstancesSetMinCPUPlatformRequest
-> Text
-> InstancesSetMinCPUPlatform
instancesSetMinCPUPlatform pIsmcpProject_ pIsmcpZone_ pIsmcpPayload_ pIsmcpInstance_ =
InstancesSetMinCPUPlatform'
{ _ismcpRequestId = Nothing
, _ismcpProject = pIsmcpProject_
, _ismcpZone = pIsmcpZone_
, _ismcpPayload = pIsmcpPayload_
, _ismcpInstance = pIsmcpInstance_
}
ismcpRequestId :: Lens' InstancesSetMinCPUPlatform (Maybe Text)
ismcpRequestId
= lens _ismcpRequestId
(\ s a -> s{_ismcpRequestId = a})
ismcpProject :: Lens' InstancesSetMinCPUPlatform Text
ismcpProject
= lens _ismcpProject (\ s a -> s{_ismcpProject = a})
ismcpZone :: Lens' InstancesSetMinCPUPlatform Text
ismcpZone
= lens _ismcpZone (\ s a -> s{_ismcpZone = a})
ismcpPayload :: Lens' InstancesSetMinCPUPlatform InstancesSetMinCPUPlatformRequest
ismcpPayload
= lens _ismcpPayload (\ s a -> s{_ismcpPayload = a})
ismcpInstance :: Lens' InstancesSetMinCPUPlatform Text
ismcpInstance
= lens _ismcpInstance
(\ s a -> s{_ismcpInstance = a})
instance GoogleRequest InstancesSetMinCPUPlatform
where
type Rs InstancesSetMinCPUPlatform = Operation
type Scopes InstancesSetMinCPUPlatform =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient InstancesSetMinCPUPlatform'{..}
= go _ismcpProject _ismcpZone _ismcpInstance
_ismcpRequestId
(Just AltJSON)
_ismcpPayload
computeService
where go
= buildClient
(Proxy :: Proxy InstancesSetMinCPUPlatformResource)
mempty