Class: Google::Apis::ContaineranalysisV1::VulnerabilityAttestation

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

Overview

The status of an vulnerability attestation generation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VulnerabilityAttestation

Returns a new instance of VulnerabilityAttestation.



6880
6881
6882
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6880

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

Instance Attribute Details

#errorString

If failure, the error reason for why the attestation generation failed. Corresponds to the JSON property error

Returns:

  • (String)


6868
6869
6870
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6868

def error
  @error
end

#last_attempt_timeString

The last time we attempted to generate an attestation. Corresponds to the JSON property lastAttemptTime

Returns:

  • (String)


6873
6874
6875
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6873

def last_attempt_time
  @last_attempt_time
end

#stateString

The success/failure state of the latest attestation attempt. Corresponds to the JSON property state

Returns:

  • (String)


6878
6879
6880
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6878

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6885
6886
6887
6888
6889
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6885

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