Class: Google::Apis::BinaryauthorizationV1::CheckResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/binaryauthorization_v1/classes.rb,
lib/google/apis/binaryauthorization_v1/representations.rb,
lib/google/apis/binaryauthorization_v1/representations.rb

Overview

Result of evaluating one check.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CheckResult

Returns a new instance of CheckResult.



525
526
527
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 525

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

Instance Attribute Details

#allowlist_resultGoogle::Apis::BinaryauthorizationV1::AllowlistResult

Result of evaluating an image name allowlist. Corresponds to the JSON property allowlistResult



498
499
500
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 498

def allowlist_result
  @allowlist_result
end

#display_nameString

The name of the check. Corresponds to the JSON property displayName

Returns:

  • (String)


503
504
505
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 503

def display_name
  @display_name
end

#evaluation_resultGoogle::Apis::BinaryauthorizationV1::EvaluationResult

Result of evaluating one check. Corresponds to the JSON property evaluationResult



508
509
510
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 508

def evaluation_result
  @evaluation_result
end

#explanationString

Explanation of this check result. Corresponds to the JSON property explanation

Returns:

  • (String)


513
514
515
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 513

def explanation
  @explanation
end

#indexFixnum

The index of the check. Corresponds to the JSON property index

Returns:

  • (Fixnum)


518
519
520
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 518

def index
  @index
end

#typeString

The type of the check. Corresponds to the JSON property type

Returns:

  • (String)


523
524
525
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 523

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



530
531
532
533
534
535
536
537
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 530

def update!(**args)
  @allowlist_result = args[:allowlist_result] if args.key?(:allowlist_result)
  @display_name = args[:display_name] if args.key?(:display_name)
  @evaluation_result = args[:evaluation_result] if args.key?(:evaluation_result)
  @explanation = args[:explanation] if args.key?(:explanation)
  @index = args[:index] if args.key?(:index)
  @type = args[:type] if args.key?(:type)
end