Class: Google::Apis::WorkloadmanagerV1::ExecutionResult

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecutionResult

Returns a new instance of ExecutionResult.



457
458
459
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 457

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#commandsArray<Google::Apis::WorkloadmanagerV1::Command>

The commands to remediate the violation. Corresponds to the JSON property commands



425
426
427
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 425

def commands
  @commands
end

#documentation_urlString

The URL for the documentation of the rule. Corresponds to the JSON property documentationUrl

Returns:

  • (String)


430
431
432
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 430

def documentation_url
  @documentation_url
end

#resourceGoogle::Apis::WorkloadmanagerV1::Resource

Message represent resource in execution result Corresponds to the JSON property resource



435
436
437
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 435

def resource
  @resource
end

#ruleString

The rule that is violated in an evaluation. Corresponds to the JSON property rule

Returns:

  • (String)


440
441
442
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 440

def rule
  @rule
end

#severityString

The severity of violation. Corresponds to the JSON property severity

Returns:

  • (String)


445
446
447
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 445

def severity
  @severity
end

#violation_detailsGoogle::Apis::WorkloadmanagerV1::ViolationDetails

Message describing the violation in an evaluation result. Corresponds to the JSON property violationDetails



450
451
452
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 450

def violation_details
  @violation_details
end

#violation_messageString

The violation message of an execution. Corresponds to the JSON property violationMessage

Returns:

  • (String)


455
456
457
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 455

def violation_message
  @violation_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



462
463
464
465
466
467
468
469
470
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 462

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