Class: Google::Apis::ContaineranalysisV1alpha1::PackageInfoOccurrence
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::PackageInfoOccurrence
- 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
Overview
PackageInfoOccurrence 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. -
#home_page ⇒ String
Output only.
-
#id ⇒ String
Uniquely identify any element in an SPDX document which may be referenced by other elements Corresponds to the JSON property
id. -
#license_concluded ⇒ Google::Apis::ContaineranalysisV1alpha1::License
License information.
-
#package_type ⇒ String
Output only.
-
#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. -
#summary_description ⇒ String
Output only.
-
#title ⇒ String
Output only.
-
#version ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PackageInfoOccurrence
constructor
A new instance of PackageInfoOccurrence.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PackageInfoOccurrence
Returns a new instance of PackageInfoOccurrence.
4687 4688 4689 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4687 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
4635 4636 4637 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4635 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
4641 4642 4643 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4641 def filename @filename end |
#home_page ⇒ String
Output only. Provide a place for the SPDX file creator to record a web site
that serves as the package's home page
Corresponds to the JSON property homePage
4647 4648 4649 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4647 def home_page @home_page end |
#id ⇒ String
Uniquely identify any element in an SPDX document which may be referenced by
other elements
Corresponds to the JSON property id
4653 4654 4655 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4653 def id @id end |
#license_concluded ⇒ Google::Apis::ContaineranalysisV1alpha1::License
License information.
Corresponds to the JSON property licenseConcluded
4658 4659 4660 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4658 def license_concluded @license_concluded end |
#package_type ⇒ String
Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
Corresponds to the JSON property packageType
4663 4664 4665 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4663 def package_type @package_type 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
4669 4670 4671 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4669 def source_info @source_info end |
#summary_description ⇒ String
Output only. A short description of the package
Corresponds to the JSON property summaryDescription
4674 4675 4676 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4674 def summary_description @summary_description end |
#title ⇒ String
Output only. Identify the full name of the package as given by the Package
Originator
Corresponds to the JSON property title
4680 4681 4682 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4680 def title @title end |
#version ⇒ String
Output only. Identify the version of the package
Corresponds to the JSON property version
4685 4686 4687 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4685 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4692 def update!(**args) @comment = args[:comment] if args.key?(:comment) @filename = args[:filename] if args.key?(:filename) @home_page = args[:home_page] if args.key?(:home_page) @id = args[:id] if args.key?(:id) @license_concluded = args[:license_concluded] if args.key?(:license_concluded) @package_type = args[:package_type] if args.key?(:package_type) @source_info = args[:source_info] if args.key?(:source_info) @summary_description = args[:summary_description] if args.key?(:summary_description) @title = args[:title] if args.key?(:title) @version = args[:version] if args.key?(:version) end |