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
Message for execution result summary per rule
Instance Attribute Summary collapse
-
#message ⇒ String
Execution message, if any Corresponds to the JSON property
message
. -
#result_count ⇒ Fixnum
Number of violations Corresponds to the JSON property
resultCount
. -
#rule ⇒ String
rule name Corresponds to the JSON property
rule
. -
#scanned_resource_count ⇒ Fixnum
Number of total scanned resources Corresponds to the JSON property
scannedResourceCount
. -
#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.
1381 1382 1383 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1381 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message ⇒ String
Execution message, if any
Corresponds to the JSON property message
1359 1360 1361 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1359 def @message end |
#result_count ⇒ Fixnum
Number of violations
Corresponds to the JSON property resultCount
1364 1365 1366 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1364 def result_count @result_count end |
#rule ⇒ String
rule name
Corresponds to the JSON property rule
1369 1370 1371 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1369 def rule @rule end |
#scanned_resource_count ⇒ Fixnum
Number of total scanned resources
Corresponds to the JSON property scannedResourceCount
1374 1375 1376 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1374 def scanned_resource_count @scanned_resource_count end |
#state ⇒ String
Output only. The execution status
Corresponds to the JSON property state
1379 1380 1381 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1379 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1386 1387 1388 1389 1390 1391 1392 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1386 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 |