Class: Google::Apis::BinaryauthorizationV1::ImageResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageResult

Returns a new instance of ImageResult.



988
989
990
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 988

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



965
966
967
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 965

def allowlist_result
  @allowlist_result
end

#check_set_resultGoogle::Apis::BinaryauthorizationV1::CheckSetResult

Result of evaluating one check set. Corresponds to the JSON property checkSetResult



970
971
972
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 970

def check_set_result
  @check_set_result
end

#explanationString

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

Returns:

  • (String)


976
977
978
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 976

def explanation
  @explanation
end

#image_uriString

Image URI from the request. Corresponds to the JSON property imageUri

Returns:

  • (String)


981
982
983
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 981

def image_uri
  @image_uri
end

#verdictString

The result of evaluating this image. Corresponds to the JSON property verdict

Returns:

  • (String)


986
987
988
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 986

def verdict
  @verdict
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



993
994
995
996
997
998
999
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 993

def update!(**args)
  @allowlist_result = args[:allowlist_result] if args.key?(:allowlist_result)
  @check_set_result = args[:check_set_result] if args.key?(:check_set_result)
  @explanation = args[:explanation] if args.key?(:explanation)
  @image_uri = args[:image_uri] if args.key?(:image_uri)
  @verdict = args[:verdict] if args.key?(:verdict)
end