Class: Google::Apis::WorkloadmanagerV1::RuleExecutionResult

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

Execution result summary per rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RuleExecutionResult

Returns a new instance of RuleExecutionResult.



2458
2459
2460
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2458

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

Instance Attribute Details

#messageString

Execution message, if any. Corresponds to the JSON property message

Returns:

  • (String)


2436
2437
2438
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2436

def message
  @message
end

#result_countFixnum

Number of violations. Corresponds to the JSON property resultCount

Returns:

  • (Fixnum)


2441
2442
2443
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2441

def result_count
  @result_count
end

#ruleString

Rule name as plain text like sap-hana-configured. Corresponds to the JSON property rule

Returns:

  • (String)


2446
2447
2448
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2446

def rule
  @rule
end

#scanned_resource_countFixnum

Number of total scanned resources. Corresponds to the JSON property scannedResourceCount

Returns:

  • (Fixnum)


2451
2452
2453
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2451

def scanned_resource_count
  @scanned_resource_count
end

#stateString

Output only. The execution status. Corresponds to the JSON property state

Returns:

  • (String)


2456
2457
2458
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2456

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2463
2464
2465
2466
2467
2468
2469
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2463

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