Class: Google::Apis::OndemandscanningV1::SbomReferenceIntotoPayload

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

Overview

The actual payload that contains the SBOM Reference data. The payload follows the intoto statement specification. See https://github.com/in-toto/attestation/ blob/main/spec/v1.0/statement.md for more details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SbomReferenceIntotoPayload

Returns a new instance of SbomReferenceIntotoPayload.



3376
3377
3378
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3376

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

Instance Attribute Details

#_typeString

Identifier for the schema of the Statement. Corresponds to the JSON property _type

Returns:

  • (String)


3358
3359
3360
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3358

def _type
  @_type
end

#predicateGoogle::Apis::OndemandscanningV1::SbomReferenceIntotoPredicate

A predicate which describes the SBOM being referenced. Corresponds to the JSON property predicate



3363
3364
3365
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3363

def predicate
  @predicate
end

#predicate_typeString

URI identifying the type of the Predicate. Corresponds to the JSON property predicateType

Returns:

  • (String)


3368
3369
3370
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3368

def predicate_type
  @predicate_type
end

#subjectArray<Google::Apis::OndemandscanningV1::Subject>

Set of software artifacts that the attestation applies to. Each element represents a single software artifact. Corresponds to the JSON property subject



3374
3375
3376
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3374

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3381
3382
3383
3384
3385
3386
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3381

def update!(**args)
  @_type = args[:_type] if args.key?(:_type)
  @predicate = args[:predicate] if args.key?(:predicate)
  @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
  @subject = args[:subject] if args.key?(:subject)
end