Class: Google::Apis::DeploymentmanagerAlpha::DeploymentsCancelPreviewRequest
- Inherits:
-
Object
- Object
- Google::Apis::DeploymentmanagerAlpha::DeploymentsCancelPreviewRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/deploymentmanager_alpha/classes.rb,
lib/google/apis/deploymentmanager_alpha/representations.rb,
lib/google/apis/deploymentmanager_alpha/representations.rb
Instance Attribute Summary collapse
-
#fingerprint ⇒ String
Specifies a fingerprint for
cancelPreview()
requests.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeploymentsCancelPreviewRequest
constructor
A new instance of DeploymentsCancelPreviewRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeploymentsCancelPreviewRequest
Returns a new instance of DeploymentsCancelPreviewRequest.
816 817 818 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 816 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fingerprint ⇒ String
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
NOTE: Values are automatically base64 encoded/decoded in the client library.
814 815 816 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 814 def fingerprint @fingerprint end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
821 822 823 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 821 def update!(**args) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) end |