Class: Google::Apis::ContaineranalysisV1alpha1::FileOccurrence

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

FileOccurrence represents an SPDX File Information section: https://spdx. github.io/spdx-spec/4-file-information/

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FileOccurrence

Returns a new instance of FileOccurrence.



2916
2917
2918
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2916

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

Instance Attribute Details

#attributionsArray<String>

This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts Corresponds to the JSON property attributions

Returns:

  • (Array<String>)


2874
2875
2876
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2874

def attributions
  @attributions
end

#commentString

This field provides a place for the SPDX file creator to record any general comments about the file Corresponds to the JSON property comment

Returns:

  • (String)


2880
2881
2882
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2880

def comment
  @comment
end

#contributorsArray<String>

This field provides a place for the SPDX file creator to record file contributors Corresponds to the JSON property contributors

Returns:

  • (Array<String>)


2886
2887
2888
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2886

def contributors
  @contributors
end

Identify the copyright holder of the file, as well as any dates present Corresponds to the JSON property copyright

Returns:

  • (String)


2891
2892
2893
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2891

def copyright
  @copyright
end

#files_license_infoArray<String>

This field contains the license information actually found in the file, if any Corresponds to the JSON property filesLicenseInfo

Returns:

  • (Array<String>)


2896
2897
2898
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2896

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


2902
2903
2904
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2902

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



2908
2909
2910
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2908

def license_concluded
  @license_concluded
end

#noticeString

This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file Corresponds to the JSON property notice

Returns:

  • (String)


2914
2915
2916
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2914

def notice
  @notice
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2921

def update!(**args)
  @attributions = args[:attributions] if args.key?(:attributions)
  @comment = args[:comment] if args.key?(:comment)
  @contributors = args[:contributors] if args.key?(:contributors)
  @copyright = args[:copyright] if args.key?(:copyright)
  @files_license_info = args[:files_license_info] if args.key?(:files_license_info)
  @id = args[:id] if args.key?(:id)
  @license_concluded = args[:license_concluded] if args.key?(:license_concluded)
  @notice = args[:notice] if args.key?(:notice)
end