Class: Google::Apis::ContaineranalysisV1alpha1::InTotoSlsaProvenanceV1

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InTotoSlsaProvenanceV1

Returns a new instance of InTotoSlsaProvenanceV1.



4362
4363
4364
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4362

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)


4343
4344
4345
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4343

def _type
  @_type
end

#predicateGoogle::Apis::ContaineranalysisV1alpha1::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



4350
4351
4352
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4350

def predicate
  @predicate
end

#predicate_typeString

Corresponds to the JSON property predicateType

Returns:

  • (String)


4355
4356
4357
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4355

def predicate_type
  @predicate_type
end

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

Corresponds to the JSON property subject



4360
4361
4362
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4360

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4367
4368
4369
4370
4371
4372
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4367

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