Class: Google::Apis::ContaineranalysisV1beta1::PackageOccurrence
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1beta1::PackageOccurrence
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1beta1/classes.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb
Overview
PackageOccurrence represents an SPDX Package Information section: https://spdx. github.io/spdx-spec/3-package-information/
Instance Attribute Summary collapse
-
#comment ⇒ String
A place for the SPDX file creator to record any general comments about the package being described Corresponds to the JSON property
comment. -
#filename ⇒ String
Provide the actual file name of the package, or path of the directory being treated as a package Corresponds to the JSON property
filename. -
#id ⇒ String
Uniquely identify any element in an SPDX document which may be referenced by other elements Corresponds to the JSON property
id. -
#license_comments ⇒ String
This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package Corresponds to the JSON property
licenseComments. -
#license_concluded ⇒ String
package or alternative values, if the governing license cannot be determined Corresponds to the JSON property
licenseConcluded. -
#source_info ⇒ String
Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package Corresponds to the JSON property
sourceInfo.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PackageOccurrence
constructor
A new instance of PackageOccurrence.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PackageOccurrence
Returns a new instance of PackageOccurrence.
2865 2866 2867 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2865 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comment ⇒ String
A place for the SPDX file creator to record any general comments about the
package being described
Corresponds to the JSON property comment
2833 2834 2835 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2833 def comment @comment end |
#filename ⇒ String
Provide the actual file name of the package, or path of the directory being
treated as a package
Corresponds to the JSON property filename
2839 2840 2841 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2839 def filename @filename end |
#id ⇒ String
Uniquely identify any element in an SPDX document which may be referenced by
other elements
Corresponds to the JSON property id
2845 2846 2847 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2845 def id @id end |
#license_comments ⇒ String
This field provides a place for the SPDX file creator to record any relevant
background information or analysis that went in to arriving at the Concluded
License for a package
Corresponds to the JSON property licenseComments
2852 2853 2854 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2852 def license_comments @license_comments end |
#license_concluded ⇒ String
package or alternative values, if the governing license cannot be determined
Corresponds to the JSON property licenseConcluded
2857 2858 2859 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2857 def license_concluded @license_concluded end |
#source_info ⇒ String
Provide a place for the SPDX file creator to record any relevant background
information or additional comments about the origin of the package
Corresponds to the JSON property sourceInfo
2863 2864 2865 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2863 def source_info @source_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2870 2871 2872 2873 2874 2875 2876 2877 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 2870 def update!(**args) @comment = args[:comment] if args.key?(:comment) @filename = args[:filename] if args.key?(:filename) @id = args[:id] if args.key?(:id) @license_comments = args[:license_comments] if args.key?(:license_comments) @license_concluded = args[:license_concluded] if args.key?(:license_concluded) @source_info = args[:source_info] if args.key?(:source_info) end |