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 |
Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
See: Cloud SQL Admin API Reference for sql.instances.demoteMaster
.
Synopsis
- type InstancesDemoteMasterResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("demoteMaster" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesDemoteMasterRequest :> Post '[JSON] Operation))))))))
- instancesDemoteMaster :: Text -> InstancesDemoteMasterRequest -> Text -> InstancesDemoteMaster
- data InstancesDemoteMaster
- idmProject :: Lens' InstancesDemoteMaster Text
- idmPayload :: Lens' InstancesDemoteMaster InstancesDemoteMasterRequest
- idmInstance :: Lens' InstancesDemoteMaster Text
REST Resource
type InstancesDemoteMasterResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("demoteMaster" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesDemoteMasterRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for sql.instances.demoteMaster
method which the
InstancesDemoteMaster
request conforms to.
Creating a Request
instancesDemoteMaster Source #
Creates a value of InstancesDemoteMaster
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InstancesDemoteMaster Source #
Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
See: instancesDemoteMaster
smart constructor.
Instances
Request Lenses
idmProject :: Lens' InstancesDemoteMaster Text Source #
ID of the project that contains the instance.
idmPayload :: Lens' InstancesDemoteMaster InstancesDemoteMasterRequest Source #
Multipart request metadata.
idmInstance :: Lens' InstancesDemoteMaster Text Source #
Cloud SQL instance name.