Class: Google::Apis::ContaineranalysisV1beta1::Digest

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

Digest information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Digest

Returns a new instance of Digest.



2301
2302
2303
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2301

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

Instance Attribute Details

#algoString

SHA1, SHA512 etc. Corresponds to the JSON property algo

Returns:

  • (String)


2293
2294
2295
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2293

def algo
  @algo
end

#digest_valueString

Value of the digest encoded. For example: SHA512 - base64 encoding, SHA1 - hex encoding. Corresponds to the JSON property digestValue

Returns:

  • (String)


2299
2300
2301
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2299

def digest_value
  @digest_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2306
2307
2308
2309
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2306

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