Class: Google::Apis::OndemandscanningV1beta1::DsseAttestationOccurrence

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DsseAttestationOccurrence

Returns a new instance of DsseAttestationOccurrence.



594
595
596
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 594

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

Instance Attribute Details

#envelopeGoogle::Apis::OndemandscanningV1beta1::Envelope

MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope. proto. An authenticated message of arbitrary type. Corresponds to the JSON property envelope



585
586
587
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 585

def envelope
  @envelope
end

#statementGoogle::Apis::OndemandscanningV1beta1::InTotoStatement

Spec defined at https://github.com/in-toto/attestation/tree/main/spec# statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always "application/vnd.in-toto+json". Corresponds to the JSON property statement



592
593
594
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 592

def statement
  @statement
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



599
600
601
602
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 599

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