Class: Google::Apis::ContaineranalysisV1alpha1::PackageInfoOccurrence

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

Overview

PackageInfoOccurrence represents an SPDX Package Information section: https:// spdx.github.io/spdx-spec/3-package-information/

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PackageInfoOccurrence

Returns a new instance of PackageInfoOccurrence.



3052
3053
3054
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3052

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

Instance Attribute Details

#commentString

A place for the SPDX file creator to record any general comments about the package being described Corresponds to the JSON property comment

Returns:

  • (String)


2999
3000
3001
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2999

def comment
  @comment
end

#filenameString

Provide the actual file name of the package, or path of the directory being treated as a package Corresponds to the JSON property filename

Returns:

  • (String)


3005
3006
3007
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3005

def filename
  @filename
end

#home_pageString

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

Returns:

  • (String)


3011
3012
3013
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3011

def home_page
  @home_page
end

#idString

Uniquely identify any element in an SPDX document which may be referenced by other elements Corresponds to the JSON property id

Returns:

  • (String)


3017
3018
3019
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3017

def id
  @id
end

#license_concludedGoogle::Apis::ContaineranalysisV1alpha1::License

License information: https://spdx.github.io/spdx-spec/3-package-information/# 315-declared-license Corresponds to the JSON property licenseConcluded



3023
3024
3025
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3023

def license_concluded
  @license_concluded
end

#package_typeString

Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc. Corresponds to the JSON property packageType

Returns:

  • (String)


3028
3029
3030
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3028

def package_type
  @package_type
end

#source_infoString

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

Returns:

  • (String)


3034
3035
3036
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3034

def source_info
  @source_info
end

#summary_descriptionString

Output only. A short description of the package Corresponds to the JSON property summaryDescription

Returns:

  • (String)


3039
3040
3041
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3039

def summary_description
  @summary_description
end

#titleString

Output only. Identify the full name of the package as given by the Package Originator Corresponds to the JSON property title

Returns:

  • (String)


3045
3046
3047
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3045

def title
  @title
end

#versionString

Output only. Identify the version of the package Corresponds to the JSON property version

Returns:

  • (String)


3050
3051
3052
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3050

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3057

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