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 deployment and all of the resources described by the deployment manifest.
See: Google Cloud Deployment Manager API Reference for deploymentmanager.deployments.insert
.
Synopsis
- type DeploymentsInsertResource = "deploymentmanager" :> ("v2" :> ("projects" :> (Capture "project" Text :> ("global" :> ("deployments" :> (QueryParam "createPolicy" DeploymentsInsertCreatePolicy :> (QueryParam "preview" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Deployment :> Post '[JSON] Operation)))))))))
- deploymentsInsert :: Text -> Deployment -> DeploymentsInsert
- data DeploymentsInsert
- diCreatePolicy :: Lens' DeploymentsInsert DeploymentsInsertCreatePolicy
- diProject :: Lens' DeploymentsInsert Text
- diPayload :: Lens' DeploymentsInsert Deployment
- diPreview :: Lens' DeploymentsInsert (Maybe Bool)
REST Resource
type DeploymentsInsertResource = "deploymentmanager" :> ("v2" :> ("projects" :> (Capture "project" Text :> ("global" :> ("deployments" :> (QueryParam "createPolicy" DeploymentsInsertCreatePolicy :> (QueryParam "preview" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Deployment :> Post '[JSON] Operation))))))))) Source #
A resource alias for deploymentmanager.deployments.insert
method which the
DeploymentsInsert
request conforms to.
Creating a Request
Creates a value of DeploymentsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeploymentsInsert Source #
Creates a deployment and all of the resources described by the deployment manifest.
See: deploymentsInsert
smart constructor.
Instances
Request Lenses
diCreatePolicy :: Lens' DeploymentsInsert DeploymentsInsertCreatePolicy Source #
Sets the policy to use for creating new resources.
diPayload :: Lens' DeploymentsInsert Deployment Source #
Multipart request metadata.
diPreview :: Lens' DeploymentsInsert (Maybe Bool) Source #
If set to true, creates a deployment and creates "shell" resources but does not actually instantiate these resources. This allows you to preview what your deployment looks like. After previewing a deployment, you can deploy your resources by making a request with the update() method or you can use the cancelPreview() method to cancel the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it.