Class: Google::Apis::RunV2::GoogleCloudRunV2CancelExecutionRequest
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2CancelExecutionRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb
Overview
Request message for deleting an Execution.
Instance Attribute Summary collapse
-
#etag ⇒ String
A system-generated fingerprint for this version of the resource.
-
#validate_only ⇒ Boolean
(also: #validate_only?)
Indicates that the request should be validated without actually cancelling any resources.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2CancelExecutionRequest
constructor
A new instance of GoogleCloudRunV2CancelExecutionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2CancelExecutionRequest
Returns a new instance of GoogleCloudRunV2CancelExecutionRequest.
136 137 138 |
# File 'lib/google/apis/run_v2/classes.rb', line 136 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
A system-generated fingerprint for this version of the resource. This may be
used to detect modification conflict during updates.
Corresponds to the JSON property etag
127 128 129 |
# File 'lib/google/apis/run_v2/classes.rb', line 127 def etag @etag end |
#validate_only ⇒ Boolean Also known as: validate_only?
Indicates that the request should be validated without actually cancelling any
resources.
Corresponds to the JSON property validateOnly
133 134 135 |
# File 'lib/google/apis/run_v2/classes.rb', line 133 def validate_only @validate_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
141 142 143 144 |
# File 'lib/google/apis/run_v2/classes.rb', line 141 def update!(**args) @etag = args[:etag] if args.key?(:etag) @validate_only = args[:validate_only] if args.key?(:validate_only) end |