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