Class: Google::Apis::OndemandscanningV1beta1::InTotoSlsaProvenanceV1

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) ⇒ InTotoSlsaProvenanceV1

Returns a new instance of InTotoSlsaProvenanceV1.



1546
1547
1548
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1546

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

Instance Attribute Details

#_typeString

InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec# statement Corresponds to the JSON property _type

Returns:

  • (String)


1527
1528
1529
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1527

def _type
  @_type
end

#predicateGoogle::Apis::OndemandscanningV1beta1::SlsaProvenanceV1

Keep in sync with schema at https://github.com/slsa-framework/slsa/blob/main/ docs/provenance/schema/v1/provenance.proto Builder renamed to ProvenanceBuilder because of Java conflicts. Corresponds to the JSON property predicate



1534
1535
1536
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1534

def predicate
  @predicate
end

#predicate_typeString

Corresponds to the JSON property predicateType

Returns:

  • (String)


1539
1540
1541
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1539

def predicate_type
  @predicate_type
end

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

Corresponds to the JSON property subject



1544
1545
1546
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1544

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1551
1552
1553
1554
1555
1556
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1551

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