Class: Google::Apis::WorkloadmanagerV1::ExecutionResult
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::ExecutionResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
Message describing the result of an execution
Instance Attribute Summary collapse
-
#commands ⇒ Array<Google::Apis::WorkloadmanagerV1::Command>
The commands to remediate the violation.
-
#documentation_url ⇒ String
The URL for the documentation of the rule.
-
#resource ⇒ Google::Apis::WorkloadmanagerV1::Resource
Message represent resource in execution result Corresponds to the JSON property
resource. -
#rule ⇒ String
The rule that is violated in an evaluation.
-
#severity ⇒ String
The severity of violation.
-
#violation_details ⇒ Google::Apis::WorkloadmanagerV1::ViolationDetails
Message describing the violation in an evaluation result.
-
#violation_message ⇒ String
The violation message of an execution.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecutionResult
constructor
A new instance of ExecutionResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExecutionResult
Returns a new instance of ExecutionResult.
450 451 452 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 450 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commands ⇒ Array<Google::Apis::WorkloadmanagerV1::Command>
The commands to remediate the violation.
Corresponds to the JSON property commands
418 419 420 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 418 def commands @commands end |
#documentation_url ⇒ String
The URL for the documentation of the rule.
Corresponds to the JSON property documentationUrl
423 424 425 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 423 def documentation_url @documentation_url end |
#resource ⇒ Google::Apis::WorkloadmanagerV1::Resource
Message represent resource in execution result
Corresponds to the JSON property resource
428 429 430 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 428 def resource @resource end |
#rule ⇒ String
The rule that is violated in an evaluation.
Corresponds to the JSON property rule
433 434 435 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 433 def rule @rule end |
#severity ⇒ String
The severity of violation.
Corresponds to the JSON property severity
438 439 440 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 438 def severity @severity end |
#violation_details ⇒ Google::Apis::WorkloadmanagerV1::ViolationDetails
Message describing the violation in an evaluation result.
Corresponds to the JSON property violationDetails
443 444 445 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 443 def violation_details @violation_details end |
#violation_message ⇒ String
The violation message of an execution.
Corresponds to the JSON property violationMessage
448 449 450 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 448 def @violation_message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
455 456 457 458 459 460 461 462 463 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 455 def update!(**args) @commands = args[:commands] if args.key?(:commands) @documentation_url = args[:documentation_url] if args.key?(:documentation_url) @resource = args[:resource] if args.key?(:resource) @rule = args[:rule] if args.key?(:rule) @severity = args[:severity] if args.key?(:severity) @violation_details = args[:violation_details] if args.key?(:violation_details) @violation_message = args[:violation_message] if args.key?(:violation_message) end |