Class: Google::Apis::ContaineranalysisV1alpha1::PackageOccurrence

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

PackageOccurrence 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) ⇒ PackageOccurrence

Returns a new instance of PackageOccurrence.



2558
2559
2560
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2558

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)


2526
2527
2528
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2526

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)


2532
2533
2534
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2532

def filename
  @filename
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)


2538
2539
2540
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2538

def id
  @id
end

#license_commentsString

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

Returns:

  • (String)


2545
2546
2547
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2545

def license_comments
  @license_comments
end

#license_concludedString

package or alternative values, if the governing license cannot be determined Corresponds to the JSON property licenseConcluded

Returns:

  • (String)


2550
2551
2552
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2550

def license_concluded
  @license_concluded
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)


2556
2557
2558
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2556

def source_info
  @source_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2563
2564
2565
2566
2567
2568
2569
2570
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2563

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