Copyright | (c) 2015 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. This method supports patch semantics.
See: Cloud SQL Administration API Reference for sql.databases.patch
.
- type DatabasesPatchResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("databases" :> (Capture "database" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Database :> Patch `[JSON]` Operation)))))))))
- databasesPatch :: Text -> Text -> Database -> Text -> DatabasesPatch
- data DatabasesPatch
- dpProject :: Lens' DatabasesPatch Text
- dpDatabase :: Lens' DatabasesPatch Text
- dpPayload :: Lens' DatabasesPatch Database
- dpInstance :: Lens' DatabasesPatch Text
REST Resource
type DatabasesPatchResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("databases" :> (Capture "database" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Database :> Patch `[JSON]` Operation))))))))) Source
A resource alias for sql.databases.patch
method which the
DatabasesPatch
request conforms to.
Creating a Request
Creates a value of DatabasesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DatabasesPatch Source
Updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.
See: databasesPatch
smart constructor.
Request Lenses
dpProject :: Lens' DatabasesPatch Text Source
Project ID of the project that contains the instance.
dpDatabase :: Lens' DatabasesPatch Text Source
Name of the database to be updated in the instance.
dpPayload :: Lens' DatabasesPatch Database Source
Multipart request metadata.
dpInstance :: Lens' DatabasesPatch Text Source
Database instance ID. This does not include the project ID.