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 Cloud SQL instance as a clone of the source instance.
See: Cloud SQL Admin API Reference for sql.instances.clone
.
Synopsis
- type InstancesCloneResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("clone" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesCloneRequest :> Post '[JSON] Operation))))))))
- instancesClone :: Text -> InstancesCloneRequest -> Text -> InstancesClone
- data InstancesClone
- icProject :: Lens' InstancesClone Text
- icPayload :: Lens' InstancesClone InstancesCloneRequest
- icInstance :: Lens' InstancesClone Text
REST Resource
type InstancesCloneResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("clone" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesCloneRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for sql.instances.clone
method which the
InstancesClone
request conforms to.
Creating a Request
Creates a value of InstancesClone
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InstancesClone Source #
Creates a Cloud SQL instance as a clone of the source instance.
See: instancesClone
smart constructor.
Instances
Request Lenses
icProject :: Lens' InstancesClone Text Source #
Project ID of the source as well as the clone Cloud SQL instance.
icPayload :: Lens' InstancesClone InstancesCloneRequest Source #
Multipart request metadata.
icInstance :: Lens' InstancesClone Text Source #
The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.