Class: Google::Apis::ContaineranalysisV1beta1::ArtifactRule
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1beta1::ArtifactRule
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1beta1/classes.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb
Overview
Defines an object to declare an in-toto artifact rule
Instance Attribute Summary collapse
-
#artifact_rule ⇒ Array<String>
Corresponds to the JSON property
artifactRule
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ArtifactRule
constructor
A new instance of ArtifactRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ArtifactRule
Returns a new instance of ArtifactRule.
135 136 137 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 135 def initialize(**args) update!(**args) end |
Instance Attribute Details
#artifact_rule ⇒ Array<String>
Corresponds to the JSON property artifactRule
133 134 135 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 133 def artifact_rule @artifact_rule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
140 141 142 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 140 def update!(**args) @artifact_rule = args[:artifact_rule] if args.key?(:artifact_rule) end |