Class: Google::Apis::ContaineranalysisV1beta1::ArtifactHashes

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 a hash object for use in Materials and Products.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ArtifactHashes

Returns a new instance of ArtifactHashes.



96
97
98
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 96

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

Instance Attribute Details

#sha256String

Corresponds to the JSON property sha256

Returns:

  • (String)


94
95
96
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 94

def sha256
  @sha256
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



101
102
103
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 101

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