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.
983 984 985 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 983 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
960 961 962 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 960 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
965 966 967 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 965 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
971 972 973 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 971 def explanation @explanation end |
#image_uri ⇒ String
Image URI from the request.
Corresponds to the JSON property imageUri
976 977 978 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 976 def image_uri @image_uri end |
#verdict ⇒ String
The result of evaluating this image.
Corresponds to the JSON property verdict
981 982 983 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 981 def verdict @verdict end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
988 989 990 991 992 993 994 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 988 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 |