{-# 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.SQL.Instances.ResetSSLConfig
(
InstancesResetSSLConfigResource
, instancesResetSSLConfig
, InstancesResetSSLConfig
, irscProject
, irscInstance
) where
import Network.Google.Prelude
import Network.Google.SQLAdmin.Types
type InstancesResetSSLConfigResource =
"sql" :>
"v1beta4" :>
"projects" :>
Capture "project" Text :>
"instances" :>
Capture "instance" Text :>
"resetSslConfig" :>
QueryParam "alt" AltJSON :> Post '[JSON] Operation
data InstancesResetSSLConfig = InstancesResetSSLConfig'
{ _irscProject :: !Text
, _irscInstance :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instancesResetSSLConfig
:: Text
-> Text
-> InstancesResetSSLConfig
instancesResetSSLConfig pIrscProject_ pIrscInstance_ =
InstancesResetSSLConfig'
{ _irscProject = pIrscProject_
, _irscInstance = pIrscInstance_
}
irscProject :: Lens' InstancesResetSSLConfig Text
irscProject
= lens _irscProject (\ s a -> s{_irscProject = a})
irscInstance :: Lens' InstancesResetSSLConfig Text
irscInstance
= lens _irscInstance (\ s a -> s{_irscInstance = a})
instance GoogleRequest InstancesResetSSLConfig where
type Rs InstancesResetSSLConfig = Operation
type Scopes InstancesResetSSLConfig =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"]
requestClient InstancesResetSSLConfig'{..}
= go _irscProject _irscInstance (Just AltJSON)
sQLAdminService
where go
= buildClient
(Proxy :: Proxy InstancesResetSSLConfigResource)
mempty