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 |
Restores a backup of a Cloud SQL instance.
See: Cloud SQL Admin API Reference for sql.instances.restoreBackup
.
Synopsis
- type InstancesRestoreBackupResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("restoreBackup" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesRestoreBackupRequest :> Post '[JSON] Operation))))))))
- instancesRestoreBackup :: Text -> InstancesRestoreBackupRequest -> Text -> InstancesRestoreBackup
- data InstancesRestoreBackup
- irbProject :: Lens' InstancesRestoreBackup Text
- irbPayload :: Lens' InstancesRestoreBackup InstancesRestoreBackupRequest
- irbInstance :: Lens' InstancesRestoreBackup Text
REST Resource
type InstancesRestoreBackupResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("restoreBackup" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesRestoreBackupRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for sql.instances.restoreBackup
method which the
InstancesRestoreBackup
request conforms to.
Creating a Request
instancesRestoreBackup Source #
Creates a value of InstancesRestoreBackup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InstancesRestoreBackup Source #
Restores a backup of a Cloud SQL instance.
See: instancesRestoreBackup
smart constructor.
Instances
Request Lenses
irbProject :: Lens' InstancesRestoreBackup Text Source #
Project ID of the project that contains the instance.
irbPayload :: Lens' InstancesRestoreBackup InstancesRestoreBackupRequest Source #
Multipart request metadata.
irbInstance :: Lens' InstancesRestoreBackup Text Source #
Cloud SQL instance ID. This does not include the project ID.