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. This method supports patch semantics.
See: Google Cloud Deployment Manager API Reference for deploymentmanager.deployments.patch
.
Synopsis
- type DeploymentsPatchResource = "deploymentmanager" :> ("v2" :> ("projects" :> (Capture "project" Text :> ("global" :> ("deployments" :> (Capture "deployment" Text :> (QueryParam "createPolicy" DeploymentsPatchCreatePolicy :> (QueryParam "deletePolicy" DeploymentsPatchDeletePolicy :> (QueryParam "preview" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Deployment :> Patch '[JSON] Operation)))))))))))
- deploymentsPatch :: Text -> Deployment -> Text -> DeploymentsPatch
- data DeploymentsPatch
- dpCreatePolicy :: Lens' DeploymentsPatch DeploymentsPatchCreatePolicy
- dpProject :: Lens' DeploymentsPatch Text
- dpPayload :: Lens' DeploymentsPatch Deployment
- dpDeletePolicy :: Lens' DeploymentsPatch DeploymentsPatchDeletePolicy
- dpPreview :: Lens' DeploymentsPatch Bool
- dpDeployment :: Lens' DeploymentsPatch Text
REST Resource
type DeploymentsPatchResource = "deploymentmanager" :> ("v2" :> ("projects" :> (Capture "project" Text :> ("global" :> ("deployments" :> (Capture "deployment" Text :> (QueryParam "createPolicy" DeploymentsPatchCreatePolicy :> (QueryParam "deletePolicy" DeploymentsPatchDeletePolicy :> (QueryParam "preview" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Deployment :> Patch '[JSON] Operation))))))))))) Source #
A resource alias for deploymentmanager.deployments.patch
method which the
DeploymentsPatch
request conforms to.
Creating a Request
Creates a value of DeploymentsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeploymentsPatch Source #
Updates a deployment and all of the resources described by the deployment manifest. This method supports patch semantics.
See: deploymentsPatch
smart constructor.
Instances
Request Lenses
dpCreatePolicy :: Lens' DeploymentsPatch DeploymentsPatchCreatePolicy Source #
Sets the policy to use for creating new resources.
dpPayload :: Lens' DeploymentsPatch Deployment Source #
Multipart request metadata.
dpDeletePolicy :: Lens' DeploymentsPatch DeploymentsPatchDeletePolicy Source #
Sets the policy to use for deleting resources.
dpPreview :: Lens' DeploymentsPatch 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.
dpDeployment :: Lens' DeploymentsPatch Text Source #
The name of the deployment for this request.