Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Truncate MySQL general and slow query log tables
See: Cloud SQL Admin API Reference for sql.instances.truncateLog
.
Synopsis
- type InstancesTruncateLogResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("truncateLog" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesTruncateLogRequest :> Post '[JSON] Operation))))))))
- instancesTruncateLog :: Text -> InstancesTruncateLogRequest -> Text -> InstancesTruncateLog
- data InstancesTruncateLog
- itlProject :: Lens' InstancesTruncateLog Text
- itlPayload :: Lens' InstancesTruncateLog InstancesTruncateLogRequest
- itlInstance :: Lens' InstancesTruncateLog Text
REST Resource
type InstancesTruncateLogResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("truncateLog" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesTruncateLogRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for sql.instances.truncateLog
method which the
InstancesTruncateLog
request conforms to.
Creating a Request
Creates a value of InstancesTruncateLog
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InstancesTruncateLog Source #
Truncate MySQL general and slow query log tables
See: instancesTruncateLog
smart constructor.
Instances
Request Lenses
itlProject :: Lens' InstancesTruncateLog Text Source #
Project ID of the Cloud SQL project.
itlPayload :: Lens' InstancesTruncateLog InstancesTruncateLogRequest Source #
Multipart request metadata.
itlInstance :: Lens' InstancesTruncateLog Text Source #
Cloud SQL instance ID. This does not include the project ID.