Class: Google::Apis::ContaineranalysisV1beta1::ArtifactRule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_ruleArray<String>

Corresponds to the JSON property artifactRule

Returns:

  • (Array<String>)


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