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 |
Creates a new Cloud SQL instance.
See: Cloud SQL Admin API Reference for sql.instances.insert
.
Synopsis
- type InstancesInsertResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DatabaseInstance :> Post '[JSON] Operation))))))
- instancesInsert :: Text -> DatabaseInstance -> InstancesInsert
- data InstancesInsert
- iiiProject :: Lens' InstancesInsert Text
- iiiPayload :: Lens' InstancesInsert DatabaseInstance
REST Resource
type InstancesInsertResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DatabaseInstance :> Post '[JSON] Operation)))))) Source #
A resource alias for sql.instances.insert
method which the
InstancesInsert
request conforms to.
Creating a Request
Creates a value of InstancesInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InstancesInsert Source #
Creates a new Cloud SQL instance.
See: instancesInsert
smart constructor.
Instances
Request Lenses
iiiProject :: Lens' InstancesInsert Text Source #
Project ID of the project to which the newly created Cloud SQL instances should belong.
iiiPayload :: Lens' InstancesInsert DatabaseInstance Source #
Multipart request metadata.