Class: Google::Apis::ContaineranalysisV1beta1::GrafeasV1beta1IntotoArtifact

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GrafeasV1beta1IntotoArtifact

Returns a new instance of GrafeasV1beta1IntotoArtifact.



1569
1570
1571
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1569

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

Instance Attribute Details

#hashesGoogle::Apis::ContaineranalysisV1beta1::ArtifactHashes

Defines a hash object for use in Materials and Products. Corresponds to the JSON property hashes



1562
1563
1564
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1562

def hashes
  @hashes
end

#resource_uriString

Corresponds to the JSON property resourceUri

Returns:

  • (String)


1567
1568
1569
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1567

def resource_uri
  @resource_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1574
1575
1576
1577
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1574

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