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 |
Creates a new backup run on demand. This method is applicable only to Second Generation instances.
See: Cloud SQL Admin API Reference for sql.backupRuns.insert
.
Synopsis
- type BackupRunsInsertResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("backupRuns" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BackupRun :> Post '[JSON] Operation))))))))
- backupRunsInsert :: Text -> BackupRun -> Text -> BackupRunsInsert
- data BackupRunsInsert
- briProject :: Lens' BackupRunsInsert Text
- briPayload :: Lens' BackupRunsInsert BackupRun
- briInstance :: Lens' BackupRunsInsert Text
REST Resource
type BackupRunsInsertResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("backupRuns" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BackupRun :> Post '[JSON] Operation)))))))) Source #
A resource alias for sql.backupRuns.insert
method which the
BackupRunsInsert
request conforms to.
Creating a Request
Creates a value of BackupRunsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BackupRunsInsert Source #
Creates a new backup run on demand. This method is applicable only to Second Generation instances.
See: backupRunsInsert
smart constructor.
Instances
Request Lenses
briProject :: Lens' BackupRunsInsert Text Source #
Project ID of the project that contains the instance.
briPayload :: Lens' BackupRunsInsert BackupRun Source #
Multipart request metadata.
briInstance :: Lens' BackupRunsInsert Text Source #
Cloud SQL instance ID. This does not include the project ID.