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 |
Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud Storage.
See: Cloud SQL Administration API Reference for sql.instances.import
.
- type InstancesImportResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("import" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` InstancesImportRequest :> Post `[JSON]` Operation))))))))
- instancesImport :: Text -> InstancesImportRequest -> Text -> InstancesImport
- data InstancesImport
- iiProject :: Lens' InstancesImport Text
- iiPayload :: Lens' InstancesImport InstancesImportRequest
- iiInstance :: Lens' InstancesImport Text
REST Resource
type InstancesImportResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("import" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` InstancesImportRequest :> Post `[JSON]` Operation)))))))) Source
A resource alias for sql.instances.import
method which the
InstancesImport
request conforms to.
Creating a Request
Creates a value of InstancesImport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InstancesImport Source
Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud Storage.
See: instancesImport
smart constructor.
Request Lenses
iiProject :: Lens' InstancesImport Text Source
Project ID of the project that contains the instance.
iiPayload :: Lens' InstancesImport InstancesImportRequest Source
Multipart request metadata.
iiInstance :: Lens' InstancesImport Text Source
Cloud SQL instance ID. This does not include the project ID.