{-# 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.ServiceConsumerManagement.Services.TenancyUnits.ApplyProjectConfig
(
ServicesTenancyUnitsApplyProjectConfigResource
, servicesTenancyUnitsApplyProjectConfig
, ServicesTenancyUnitsApplyProjectConfig
, stuapcXgafv
, stuapcUploadProtocol
, stuapcAccessToken
, stuapcUploadType
, stuapcPayload
, stuapcName
, stuapcCallback
) where
import Network.Google.Prelude
import Network.Google.ServiceConsumerManagement.Types
type ServicesTenancyUnitsApplyProjectConfigResource =
"v1" :>
CaptureMode "name" "applyProjectConfig" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ApplyTenantProjectConfigRequest :>
Post '[JSON] Operation
data ServicesTenancyUnitsApplyProjectConfig = ServicesTenancyUnitsApplyProjectConfig'
{ _stuapcXgafv :: !(Maybe Xgafv)
, _stuapcUploadProtocol :: !(Maybe Text)
, _stuapcAccessToken :: !(Maybe Text)
, _stuapcUploadType :: !(Maybe Text)
, _stuapcPayload :: !ApplyTenantProjectConfigRequest
, _stuapcName :: !Text
, _stuapcCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
servicesTenancyUnitsApplyProjectConfig
:: ApplyTenantProjectConfigRequest
-> Text
-> ServicesTenancyUnitsApplyProjectConfig
servicesTenancyUnitsApplyProjectConfig pStuapcPayload_ pStuapcName_ =
ServicesTenancyUnitsApplyProjectConfig'
{ _stuapcXgafv = Nothing
, _stuapcUploadProtocol = Nothing
, _stuapcAccessToken = Nothing
, _stuapcUploadType = Nothing
, _stuapcPayload = pStuapcPayload_
, _stuapcName = pStuapcName_
, _stuapcCallback = Nothing
}
stuapcXgafv :: Lens' ServicesTenancyUnitsApplyProjectConfig (Maybe Xgafv)
stuapcXgafv
= lens _stuapcXgafv (\ s a -> s{_stuapcXgafv = a})
stuapcUploadProtocol :: Lens' ServicesTenancyUnitsApplyProjectConfig (Maybe Text)
stuapcUploadProtocol
= lens _stuapcUploadProtocol
(\ s a -> s{_stuapcUploadProtocol = a})
stuapcAccessToken :: Lens' ServicesTenancyUnitsApplyProjectConfig (Maybe Text)
stuapcAccessToken
= lens _stuapcAccessToken
(\ s a -> s{_stuapcAccessToken = a})
stuapcUploadType :: Lens' ServicesTenancyUnitsApplyProjectConfig (Maybe Text)
stuapcUploadType
= lens _stuapcUploadType
(\ s a -> s{_stuapcUploadType = a})
stuapcPayload :: Lens' ServicesTenancyUnitsApplyProjectConfig ApplyTenantProjectConfigRequest
stuapcPayload
= lens _stuapcPayload
(\ s a -> s{_stuapcPayload = a})
stuapcName :: Lens' ServicesTenancyUnitsApplyProjectConfig Text
stuapcName
= lens _stuapcName (\ s a -> s{_stuapcName = a})
stuapcCallback :: Lens' ServicesTenancyUnitsApplyProjectConfig (Maybe Text)
stuapcCallback
= lens _stuapcCallback
(\ s a -> s{_stuapcCallback = a})
instance GoogleRequest
ServicesTenancyUnitsApplyProjectConfig where
type Rs ServicesTenancyUnitsApplyProjectConfig =
Operation
type Scopes ServicesTenancyUnitsApplyProjectConfig =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ServicesTenancyUnitsApplyProjectConfig'{..}
= go _stuapcName _stuapcXgafv _stuapcUploadProtocol
_stuapcAccessToken
_stuapcUploadType
_stuapcCallback
(Just AltJSON)
_stuapcPayload
serviceConsumerManagementService
where go
= buildClient
(Proxy ::
Proxy ServicesTenancyUnitsApplyProjectConfigResource)
mempty