Class: Google::Apis::OndemandscanningV1beta1::SbomStatus

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

Overview

The status of an SBOM generation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SbomStatus

Returns a new instance of SbomStatus.



3330
3331
3332
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 3330

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

Instance Attribute Details

#errorString

If there was an error generating an SBOM, this will indicate what that error was. Corresponds to the JSON property error

Returns:

  • (String)


3323
3324
3325
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 3323

def error
  @error
end

#sbom_stateString

The progress of the SBOM generation. Corresponds to the JSON property sbomState

Returns:

  • (String)


3328
3329
3330
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 3328

def sbom_state
  @sbom_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3335
3336
3337
3338
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 3335

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