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
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
Resource in execution result.
-
#rule ⇒ String
The rule that is violated in an evaluation.
-
#severity ⇒ String
The severity of violation.
-
#type ⇒ String
Execution result type of the scanned resource.
-
#violation_details ⇒ Google::Apis::WorkloadmanagerV1::ViolationDetails
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.
1321 1322 1323 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1321 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
1284 1285 1286 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1284 def commands @commands end |
#documentation_url ⇒ String
The URL for the documentation of the rule.
Corresponds to the JSON property documentationUrl
1289 1290 1291 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1289 def documentation_url @documentation_url end |
#resource ⇒ Google::Apis::WorkloadmanagerV1::Resource
Resource in execution result.
Corresponds to the JSON property resource
1294 1295 1296 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1294 def resource @resource end |
#rule ⇒ String
The rule that is violated in an evaluation.
Corresponds to the JSON property rule
1299 1300 1301 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1299 def rule @rule end |
#severity ⇒ String
The severity of violation.
Corresponds to the JSON property severity
1304 1305 1306 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1304 def severity @severity end |
#type ⇒ String
Execution result type of the scanned resource.
Corresponds to the JSON property type
1309 1310 1311 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1309 def type @type end |
#violation_details ⇒ Google::Apis::WorkloadmanagerV1::ViolationDetails
The violation in an evaluation result.
Corresponds to the JSON property violationDetails
1314 1315 1316 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1314 def violation_details @violation_details end |
#violation_message ⇒ String
The violation message of an execution.
Corresponds to the JSON property violationMessage
1319 1320 1321 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1319 def @violation_message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1326 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) @type = args[:type] if args.key?(:type) @violation_details = args[:violation_details] if args.key?(:violation_details) @violation_message = args[:violation_message] if args.key?(:violation_message) end |