Class: Google::Apis::DeploymentmanagerV2::DeploymentsCancelPreviewRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/deploymentmanager_v2/classes.rb,
generated/google/apis/deploymentmanager_v2/representations.rb,
generated/google/apis/deploymentmanager_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DeploymentsCancelPreviewRequest

Returns a new instance of DeploymentsCancelPreviewRequest.



356
357
358
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 356

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fingerprintString

Specifies a fingerprint for cancelPreview() requests. A fingerprint is a randomly generated value that must be provided in cancelPreview() requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to cancel a preview, this would prevent one of the requests). The fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a get() request on the deployment. Corresponds to the JSON property fingerprint

Returns:

  • (String)


354
355
356
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 354

def fingerprint
  @fingerprint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



361
362
363
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 361

def update!(**args)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
end