Class: Google::Apis::ContaineranalysisV1alpha1::Digest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/containeranalysis_v1alpha1/classes.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb

Overview

Digest information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Digest

Returns a new instance of Digest.



2428
2429
2430
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2428

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

Instance Attribute Details

#algoString

SHA1, SHA512 etc. Corresponds to the JSON property algo

Returns:

  • (String)


2420
2421
2422
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2420

def algo
  @algo
end

#digest_bytesString

Value of the digest. Corresponds to the JSON property digestBytes NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2426
2427
2428
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2426

def digest_bytes
  @digest_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2433
2434
2435
2436
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2433

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