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 |
Updates a resource containing information about a database inside a Cloud SQL instance.
See: Cloud SQL Admin API Reference for sql.databases.update
.
Synopsis
- type DatabasesUpdateResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("databases" :> (Capture "database" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Database :> Put '[JSON] Operation)))))))))
- databasesUpdate :: Text -> Text -> Database -> Text -> DatabasesUpdate
- data DatabasesUpdate
- duProject :: Lens' DatabasesUpdate Text
- duDatabase :: Lens' DatabasesUpdate Text
- duPayload :: Lens' DatabasesUpdate Database
- duInstance :: Lens' DatabasesUpdate Text
REST Resource
type DatabasesUpdateResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("databases" :> (Capture "database" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Database :> Put '[JSON] Operation))))))))) Source #
A resource alias for sql.databases.update
method which the
DatabasesUpdate
request conforms to.
Creating a Request
Creates a value of DatabasesUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DatabasesUpdate Source #
Updates a resource containing information about a database inside a Cloud SQL instance.
See: databasesUpdate
smart constructor.
Instances
Request Lenses
duProject :: Lens' DatabasesUpdate Text Source #
Project ID of the project that contains the instance.
duDatabase :: Lens' DatabasesUpdate Text Source #
Name of the database to be updated in the instance.
duInstance :: Lens' DatabasesUpdate Text Source #
Database instance ID. This does not include the project ID.