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 |
Updates a deployment and all of the resources described by the deployment manifest.
See: Google Cloud Deployment Manager API Reference for deploymentmanager.deployments.update
.
Synopsis
- type DeploymentsUpdateResource = "deploymentmanager" :> ("v2" :> ("projects" :> (Capture "project" Text :> ("global" :> ("deployments" :> (Capture "deployment" Text :> (QueryParam "createPolicy" DeploymentsUpdateCreatePolicy :> (QueryParam "deletePolicy" DeploymentsUpdateDeletePolicy :> (QueryParam "preview" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Deployment :> Put '[JSON] Operation)))))))))))
- deploymentsUpdate :: Text -> Deployment -> Text -> DeploymentsUpdate
- data DeploymentsUpdate
- duCreatePolicy :: Lens' DeploymentsUpdate DeploymentsUpdateCreatePolicy
- duProject :: Lens' DeploymentsUpdate Text
- duPayload :: Lens' DeploymentsUpdate Deployment
- duDeletePolicy :: Lens' DeploymentsUpdate DeploymentsUpdateDeletePolicy
- duPreview :: Lens' DeploymentsUpdate Bool
- duDeployment :: Lens' DeploymentsUpdate Text
REST Resource
type DeploymentsUpdateResource = "deploymentmanager" :> ("v2" :> ("projects" :> (Capture "project" Text :> ("global" :> ("deployments" :> (Capture "deployment" Text :> (QueryParam "createPolicy" DeploymentsUpdateCreatePolicy :> (QueryParam "deletePolicy" DeploymentsUpdateDeletePolicy :> (QueryParam "preview" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Deployment :> Put '[JSON] Operation))))))))))) Source #
A resource alias for deploymentmanager.deployments.update
method which the
DeploymentsUpdate
request conforms to.
Creating a Request
Creates a value of DeploymentsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeploymentsUpdate Source #
Updates a deployment and all of the resources described by the deployment manifest.
See: deploymentsUpdate
smart constructor.
Instances
Request Lenses
duCreatePolicy :: Lens' DeploymentsUpdate DeploymentsUpdateCreatePolicy Source #
Sets the policy to use for creating new resources.
duPayload :: Lens' DeploymentsUpdate Deployment Source #
Multipart request metadata.
duDeletePolicy :: Lens' DeploymentsUpdate DeploymentsUpdateDeletePolicy Source #
Sets the policy to use for deleting resources.
duPreview :: Lens' DeploymentsUpdate Bool Source #
If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an update would affect your deployment. You must provide a target.config with a configuration if this is set to true. After previewing a deployment, you can deploy your resources by making a request with the update() or you can cancelPreview() to remove 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.
duDeployment :: Lens' DeploymentsUpdate Text Source #
The name of the deployment for this request.