Class: Google::Apis::BinaryauthorizationV1::ImageResult
- Inherits:
-
Object
- Object
- Google::Apis::BinaryauthorizationV1::ImageResult
- 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
-
#allowlist_result ⇒ Google::Apis::BinaryauthorizationV1::AllowlistResult
Result of evaluating an image name allowlist.
-
#check_set_result ⇒ Google::Apis::BinaryauthorizationV1::CheckSetResult
Result of evaluating one check set.
-
#explanation ⇒ String
Explanation of this image result.
-
#image_uri ⇒ String
Image URI from the request.
-
#verdict ⇒ String
The result of evaluating this image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageResult
constructor
A new instance of ImageResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_result ⇒ Google::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_result ⇒ Google::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 |
#explanation ⇒ String
Explanation of this image result. Only populated if no check sets were
evaluated.
Corresponds to the JSON property explanation
976 977 978 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 976 def explanation @explanation end |
#image_uri ⇒ String
Image URI from the request.
Corresponds to the JSON property imageUri
981 982 983 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 981 def image_uri @image_uri end |
#verdict ⇒ String
The result of evaluating this image.
Corresponds to the JSON property verdict
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 |