gogol-deploymentmanager-0.3.0: Google Cloud Deployment Manager SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.DeploymentManager.Deployments.Update

Contents

Description

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

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))))))))))) #

A resource alias for deploymentmanager.deployments.update method which the DeploymentsUpdate request conforms to.

Creating a Request

deploymentsUpdate #

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 #

Updates a deployment and all of the resources described by the deployment manifest.

See: deploymentsUpdate smart constructor.

Instances

Eq DeploymentsUpdate # 
Data DeploymentsUpdate # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeploymentsUpdate -> c DeploymentsUpdate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeploymentsUpdate #

toConstr :: DeploymentsUpdate -> Constr #

dataTypeOf :: DeploymentsUpdate -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeploymentsUpdate) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeploymentsUpdate) #

gmapT :: (forall b. Data b => b -> b) -> DeploymentsUpdate -> DeploymentsUpdate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeploymentsUpdate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeploymentsUpdate -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeploymentsUpdate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeploymentsUpdate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeploymentsUpdate -> m DeploymentsUpdate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeploymentsUpdate -> m DeploymentsUpdate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeploymentsUpdate -> m DeploymentsUpdate #

Show DeploymentsUpdate # 
Generic DeploymentsUpdate # 
GoogleRequest DeploymentsUpdate # 
type Rep DeploymentsUpdate # 
type Rep DeploymentsUpdate = D1 (MetaData "DeploymentsUpdate" "Network.Google.Resource.DeploymentManager.Deployments.Update" "gogol-deploymentmanager-0.3.0-C0edZERuitSIuMgr5IIyBa" False) (C1 (MetaCons "DeploymentsUpdate'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_duCreatePolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DeploymentsUpdateCreatePolicy)) ((:*:) (S1 (MetaSel (Just Symbol "_duProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_duPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Deployment)))) ((:*:) (S1 (MetaSel (Just Symbol "_duDeletePolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DeploymentsUpdateDeletePolicy)) ((:*:) (S1 (MetaSel (Just Symbol "_duPreview") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_duDeployment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Scopes DeploymentsUpdate # 
type Scopes DeploymentsUpdate = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/ndev.cloudman" ([] Symbol))
type Rs DeploymentsUpdate # 

Request Lenses

duCreatePolicy :: Lens' DeploymentsUpdate DeploymentsUpdateCreatePolicy #

Sets the policy to use for creating new resources.

duProject :: Lens' DeploymentsUpdate Text #

The project ID for this request.

duPayload :: Lens' DeploymentsUpdate Deployment #

Multipart request metadata.

duDeletePolicy :: Lens' DeploymentsUpdate DeploymentsUpdateDeletePolicy #

Sets the policy to use for deleting resources.

duPreview :: Lens' DeploymentsUpdate Bool #

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 #

The name of the deployment for this request.