Class: Google::Apis::BinaryauthorizationV1::CheckSetResult

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 set.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CheckSetResult

Returns a new instance of CheckSetResult.



639
640
641
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 639

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



611
612
613
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 611

def allowlist_result
  @allowlist_result
end

#check_resultsGoogle::Apis::BinaryauthorizationV1::CheckResults

Result of evaluating one or more checks. Corresponds to the JSON property checkResults



616
617
618
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 616

def check_results
  @check_results
end

#display_nameString

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

Returns:

  • (String)


621
622
623
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 621

def display_name
  @display_name
end

#explanationString

Explanation of this check set result. Only populated if no checks were evaluated. Corresponds to the JSON property explanation

Returns:

  • (String)


627
628
629
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 627

def explanation
  @explanation
end

#indexFixnum

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

Returns:

  • (Fixnum)


632
633
634
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 632

def index
  @index
end

#scopeGoogle::Apis::BinaryauthorizationV1::Scope

A scope specifier for CheckSet objects. Corresponds to the JSON property scope



637
638
639
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 637

def scope
  @scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



644
645
646
647
648
649
650
651
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 644

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