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 |
Failover the instance to its failover replica instance.
See: Cloud SQL Admin API Reference for sql.instances.failover
.
Synopsis
- type InstancesFailoverResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("failover" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesFailoverRequest :> Post '[JSON] Operation))))))))
- instancesFailover :: Text -> InstancesFailoverRequest -> Text -> InstancesFailover
- data InstancesFailover
- ifProject :: Lens' InstancesFailover Text
- ifPayload :: Lens' InstancesFailover InstancesFailoverRequest
- ifInstance :: Lens' InstancesFailover Text
REST Resource
type InstancesFailoverResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("failover" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesFailoverRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for sql.instances.failover
method which the
InstancesFailover
request conforms to.
Creating a Request
Creates a value of InstancesFailover
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InstancesFailover Source #
Failover the instance to its failover replica instance.
See: instancesFailover
smart constructor.
Instances
Request Lenses
ifPayload :: Lens' InstancesFailover InstancesFailoverRequest Source #
Multipart request metadata.
ifInstance :: Lens' InstancesFailover Text Source #
Cloud SQL instance ID. This does not include the project ID.