Class: Google::Apis::WorkloadmanagerV1::RuleExecutionResult
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::RuleExecutionResult
- 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
Execution result summary per rule.
Instance Attribute Summary collapse
-
#message ⇒ String
Execution message, if any.
-
#result_count ⇒ Fixnum
Number of violations.
-
#rule ⇒ String
Rule name as plain text like
sap-hana-configured. -
#scanned_resource_count ⇒ Fixnum
Number of total scanned resources.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RuleExecutionResult
constructor
A new instance of RuleExecutionResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RuleExecutionResult
Returns a new instance of RuleExecutionResult.
2460 2461 2462 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2460 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message ⇒ String
Execution message, if any.
Corresponds to the JSON property message
2438 2439 2440 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2438 def @message end |
#result_count ⇒ Fixnum
Number of violations.
Corresponds to the JSON property resultCount
2443 2444 2445 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2443 def result_count @result_count end |
#rule ⇒ String
Rule name as plain text like sap-hana-configured.
Corresponds to the JSON property rule
2448 2449 2450 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2448 def rule @rule end |
#scanned_resource_count ⇒ Fixnum
Number of total scanned resources.
Corresponds to the JSON property scannedResourceCount
2453 2454 2455 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2453 def scanned_resource_count @scanned_resource_count end |
#state ⇒ String
Output only. The execution status.
Corresponds to the JSON property state
2458 2459 2460 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2458 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2465 2466 2467 2468 2469 2470 2471 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2465 def update!(**args) @message = args[:message] if args.key?(:message) @result_count = args[:result_count] if args.key?(:result_count) @rule = args[:rule] if args.key?(:rule) @scanned_resource_count = args[:scanned_resource_count] if args.key?(:scanned_resource_count) @state = args[:state] if args.key?(:state) end |