Class: Google::Apis::ContaineranalysisV1alpha1::WorkspacePolicyResult
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::WorkspacePolicyResult
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1alpha1/classes.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb
Overview
Result of Workspace Policy scan.
Instance Attribute Summary collapse
-
#scan_state ⇒ String
Output only.
-
#verdict ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkspacePolicyResult
constructor
A new instance of WorkspacePolicyResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkspacePolicyResult
Returns a new instance of WorkspacePolicyResult.
8907 8908 8909 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 8907 def initialize(**args) update!(**args) end |
Instance Attribute Details
#scan_state ⇒ String
Output only. State of the scan.
Corresponds to the JSON property scanState
8900 8901 8902 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 8900 def scan_state @scan_state end |
#verdict ⇒ String
Optional. Verdict of the scan.
Corresponds to the JSON property verdict
8905 8906 8907 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 8905 def verdict @verdict end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8912 8913 8914 8915 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 8912 def update!(**args) @scan_state = args[:scan_state] if args.key?(:scan_state) @verdict = args[:verdict] if args.key?(:verdict) end |