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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/containeranalysis_v1beta1/classes.rb,
generated/google/apis/containeranalysis_v1beta1/representations.rb,
generated/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.



115
116
117
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 115

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#artifact_ruleArray<String>

Corresponds to the JSON property artifactRule

Returns:

  • (Array<String>)


113
114
115
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 113

def artifact_rule
  @artifact_rule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



120
121
122
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 120

def update!(**args)
  @artifact_rule = args[:artifact_rule] if args.key?(:artifact_rule)
end