google-apis-containeranalysis_v1alpha1 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c979af17b73b82c7689b55828e7056c53767cc64930692306d3026cd4c72809
4
- data.tar.gz: 1b2468b7722550249ad02c2f81b9ac3ef69333744ef6371666cfb8c2320e49c5
3
+ metadata.gz: 5abe474b081377e44a45e4779d84d60fbdbcb2d82cb5450352076809c4ea676e
4
+ data.tar.gz: 51c5a4fb76b07f40a86e098e6422620456c875b9e8b0ab17f281881603165357
5
5
  SHA512:
6
- metadata.gz: acd5c05bf52f03e69d262603f9feba3ad18041781f730f55bb54161401310f90c2b5722d9ebe749bd9fa0d586f2e8431ca4daf43353d2c3a35b52152959dbb98
7
- data.tar.gz: 7dc643861422302f23034d2c6f61b75dbb88c3b15dd32b1625ff5c299acbea28fe89bfb85ce7befd6d6dc08ee3686d84eaec5dcc4bd6ff0b20666a68cb0a5b6c
6
+ metadata.gz: c3cc8bacf3a22c4954ae5df5b8cc4f23d140550b7edb011b0ec730c2bbf7c9532507e69fd831cd065c38d469a9e24c89a0dc884383648a0e211a1baf20706d39
7
+ data.tar.gz: e41bd808d51c4ce59da0f09a0a7b08fd6f08d7596298c828a0823701870619075caf3957c33b8d729def07a8c571d463d1e0f43bbc6525b77977ac96ddc892bd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-containeranalysis_v1alpha1
2
2
 
3
+ ### v0.46.0 (2023-04-02)
4
+
5
+ * Regenerated from discovery document revision 20230324
6
+
3
7
  ### v0.45.0 (2023-03-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20230310
@@ -4584,6 +4584,11 @@ module Google
4584
4584
  # @return [Google::Apis::ContaineranalysisV1alpha1::DocumentNote]
4585
4585
  attr_accessor :sbom
4586
4586
 
4587
+ # The note representing an SBOM reference.
4588
+ # Corresponds to the JSON property `sbomReference`
4589
+ # @return [Google::Apis::ContaineranalysisV1alpha1::SbomReferenceNote]
4590
+ attr_accessor :sbom_reference
4591
+
4587
4592
  # A one sentence description of this `Note`.
4588
4593
  # Corresponds to the JSON property `shortDescription`
4589
4594
  # @return [String]
@@ -4654,6 +4659,7 @@ module Google
4654
4659
  @package = args[:package] if args.key?(:package)
4655
4660
  @related_url = args[:related_url] if args.key?(:related_url)
4656
4661
  @sbom = args[:sbom] if args.key?(:sbom)
4662
+ @sbom_reference = args[:sbom_reference] if args.key?(:sbom_reference)
4657
4663
  @short_description = args[:short_description] if args.key?(:short_description)
4658
4664
  @spdx_file = args[:spdx_file] if args.key?(:spdx_file)
4659
4665
  @spdx_package = args[:spdx_package] if args.key?(:spdx_package)
@@ -4771,6 +4777,13 @@ module Google
4771
4777
  # @return [Google::Apis::ContaineranalysisV1alpha1::DocumentOccurrence]
4772
4778
  attr_accessor :sbom
4773
4779
 
4780
+ # The occurrence representing an SBOM reference as applied to a specific
4781
+ # resource. The occurrence follows the DSSE specification. See https://github.
4782
+ # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
4783
+ # Corresponds to the JSON property `sbomReference`
4784
+ # @return [Google::Apis::ContaineranalysisV1alpha1::SbomReferenceOccurrence]
4785
+ attr_accessor :sbom_reference
4786
+
4774
4787
  # FileOccurrence represents an SPDX File Information section: https://spdx.
4775
4788
  # github.io/spdx-spec/4-file-information/
4776
4789
  # Corresponds to the JSON property `spdxFile`
@@ -4830,6 +4843,7 @@ module Google
4830
4843
  @resource = args[:resource] if args.key?(:resource)
4831
4844
  @resource_url = args[:resource_url] if args.key?(:resource_url)
4832
4845
  @sbom = args[:sbom] if args.key?(:sbom)
4846
+ @sbom_reference = args[:sbom_reference] if args.key?(:sbom_reference)
4833
4847
  @spdx_file = args[:spdx_file] if args.key?(:spdx_file)
4834
4848
  @spdx_package = args[:spdx_package] if args.key?(:spdx_package)
4835
4849
  @spdx_relationship = args[:spdx_relationship] if args.key?(:spdx_relationship)
@@ -5716,6 +5730,145 @@ module Google
5716
5730
  end
5717
5731
  end
5718
5732
 
5733
+ # The note representing an SBOM reference.
5734
+ class SbomReferenceNote
5735
+ include Google::Apis::Core::Hashable
5736
+
5737
+ # The format that SBOM takes. E.g. may be spdx, cyclonedx, etc...
5738
+ # Corresponds to the JSON property `format`
5739
+ # @return [String]
5740
+ attr_accessor :format
5741
+
5742
+ # The version of the format that the SBOM takes. E.g. if the format is spdx, the
5743
+ # version may be 2.3.
5744
+ # Corresponds to the JSON property `version`
5745
+ # @return [String]
5746
+ attr_accessor :version
5747
+
5748
+ def initialize(**args)
5749
+ update!(**args)
5750
+ end
5751
+
5752
+ # Update properties of this object
5753
+ def update!(**args)
5754
+ @format = args[:format] if args.key?(:format)
5755
+ @version = args[:version] if args.key?(:version)
5756
+ end
5757
+ end
5758
+
5759
+ # The occurrence representing an SBOM reference as applied to a specific
5760
+ # resource. The occurrence follows the DSSE specification. See https://github.
5761
+ # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
5762
+ class SbomReferenceOccurrence
5763
+ include Google::Apis::Core::Hashable
5764
+
5765
+ # The actual payload that contains the SBOM Reference data. The payload follows
5766
+ # the intoto statement specification. See https://github.com/in-toto/attestation/
5767
+ # blob/main/spec/v1.0/statement.md for more details.
5768
+ # Corresponds to the JSON property `payload`
5769
+ # @return [Google::Apis::ContaineranalysisV1alpha1::SbomReferenceIntotoPayload]
5770
+ attr_accessor :payload
5771
+
5772
+ # The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the
5773
+ # intoto format, this value is expected to be 'application/vnd.in-toto+json'.
5774
+ # Corresponds to the JSON property `payloadType`
5775
+ # @return [String]
5776
+ attr_accessor :payload_type
5777
+
5778
+ # The signatures over the payload.
5779
+ # Corresponds to the JSON property `signatures`
5780
+ # @return [Array<Google::Apis::ContaineranalysisV1alpha1::EnvelopeSignature>]
5781
+ attr_accessor :signatures
5782
+
5783
+ def initialize(**args)
5784
+ update!(**args)
5785
+ end
5786
+
5787
+ # Update properties of this object
5788
+ def update!(**args)
5789
+ @payload = args[:payload] if args.key?(:payload)
5790
+ @payload_type = args[:payload_type] if args.key?(:payload_type)
5791
+ @signatures = args[:signatures] if args.key?(:signatures)
5792
+ end
5793
+ end
5794
+
5795
+ # The actual payload that contains the SBOM Reference data. The payload follows
5796
+ # the intoto statement specification. See https://github.com/in-toto/attestation/
5797
+ # blob/main/spec/v1.0/statement.md for more details.
5798
+ class SbomReferenceIntotoPayload
5799
+ include Google::Apis::Core::Hashable
5800
+
5801
+ # Identifier for the schema of the Statement.
5802
+ # Corresponds to the JSON property `_type`
5803
+ # @return [String]
5804
+ attr_accessor :_type
5805
+
5806
+ # A predicate which describes the SBOM being referenced.
5807
+ # Corresponds to the JSON property `predicate`
5808
+ # @return [Google::Apis::ContaineranalysisV1alpha1::SbomReferenceIntotoPredicate]
5809
+ attr_accessor :predicate
5810
+
5811
+ # URI identifying the type of the Predicate.
5812
+ # Corresponds to the JSON property `predicateType`
5813
+ # @return [String]
5814
+ attr_accessor :predicate_type
5815
+
5816
+ # Set of software artifacts that the attestation applies to. Each element
5817
+ # represents a single software artifact.
5818
+ # Corresponds to the JSON property `subject`
5819
+ # @return [Array<Google::Apis::ContaineranalysisV1alpha1::Subject>]
5820
+ attr_accessor :subject
5821
+
5822
+ def initialize(**args)
5823
+ update!(**args)
5824
+ end
5825
+
5826
+ # Update properties of this object
5827
+ def update!(**args)
5828
+ @_type = args[:_type] if args.key?(:_type)
5829
+ @predicate = args[:predicate] if args.key?(:predicate)
5830
+ @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
5831
+ @subject = args[:subject] if args.key?(:subject)
5832
+ end
5833
+ end
5834
+
5835
+ # A predicate which describes the SBOM being referenced.
5836
+ class SbomReferenceIntotoPredicate
5837
+ include Google::Apis::Core::Hashable
5838
+
5839
+ # A map of algorithm to digest of the contents of the SBOM.
5840
+ # Corresponds to the JSON property `digest`
5841
+ # @return [Hash<String,String>]
5842
+ attr_accessor :digest
5843
+
5844
+ # The location of the SBOM.
5845
+ # Corresponds to the JSON property `location`
5846
+ # @return [String]
5847
+ attr_accessor :location
5848
+
5849
+ # The mime type of the SBOM.
5850
+ # Corresponds to the JSON property `mimeType`
5851
+ # @return [String]
5852
+ attr_accessor :mime_type
5853
+
5854
+ # The person or system referring this predicate to the consumer.
5855
+ # Corresponds to the JSON property `referrerId`
5856
+ # @return [String]
5857
+ attr_accessor :referrer_id
5858
+
5859
+ def initialize(**args)
5860
+ update!(**args)
5861
+ end
5862
+
5863
+ # Update properties of this object
5864
+ def update!(**args)
5865
+ @digest = args[:digest] if args.key?(:digest)
5866
+ @location = args[:location] if args.key?(:location)
5867
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
5868
+ @referrer_id = args[:referrer_id] if args.key?(:referrer_id)
5869
+ end
5870
+ end
5871
+
5719
5872
  # Indicates various scans and whether they are turned on or off.
5720
5873
  class ScanConfig
5721
5874
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContaineranalysisV1alpha1
18
18
  # Version of the google-apis-containeranalysis_v1alpha1 gem
19
- GEM_VERSION = "0.45.0"
19
+ GEM_VERSION = "0.46.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230310"
25
+ REVISION = "20230324"
26
26
  end
27
27
  end
28
28
  end
@@ -778,6 +778,30 @@ module Google
778
778
  include Google::Apis::Core::JsonObjectSupport
779
779
  end
780
780
 
781
+ class SbomReferenceNote
782
+ class Representation < Google::Apis::Core::JsonRepresentation; end
783
+
784
+ include Google::Apis::Core::JsonObjectSupport
785
+ end
786
+
787
+ class SbomReferenceOccurrence
788
+ class Representation < Google::Apis::Core::JsonRepresentation; end
789
+
790
+ include Google::Apis::Core::JsonObjectSupport
791
+ end
792
+
793
+ class SbomReferenceIntotoPayload
794
+ class Representation < Google::Apis::Core::JsonRepresentation; end
795
+
796
+ include Google::Apis::Core::JsonObjectSupport
797
+ end
798
+
799
+ class SbomReferenceIntotoPredicate
800
+ class Representation < Google::Apis::Core::JsonRepresentation; end
801
+
802
+ include Google::Apis::Core::JsonObjectSupport
803
+ end
804
+
781
805
  class ScanConfig
782
806
  class Representation < Google::Apis::Core::JsonRepresentation; end
783
807
 
@@ -2142,6 +2166,8 @@ module Google
2142
2166
 
2143
2167
  property :sbom, as: 'sbom', class: Google::Apis::ContaineranalysisV1alpha1::DocumentNote, decorator: Google::Apis::ContaineranalysisV1alpha1::DocumentNote::Representation
2144
2168
 
2169
+ property :sbom_reference, as: 'sbomReference', class: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceNote, decorator: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceNote::Representation
2170
+
2145
2171
  property :short_description, as: 'shortDescription'
2146
2172
  property :spdx_file, as: 'spdxFile', class: Google::Apis::ContaineranalysisV1alpha1::FileNote, decorator: Google::Apis::ContaineranalysisV1alpha1::FileNote::Representation
2147
2173
 
@@ -2190,6 +2216,8 @@ module Google
2190
2216
  property :resource_url, as: 'resourceUrl'
2191
2217
  property :sbom, as: 'sbom', class: Google::Apis::ContaineranalysisV1alpha1::DocumentOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::DocumentOccurrence::Representation
2192
2218
 
2219
+ property :sbom_reference, as: 'sbomReference', class: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceOccurrence::Representation
2220
+
2193
2221
  property :spdx_file, as: 'spdxFile', class: Google::Apis::ContaineranalysisV1alpha1::FileOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::FileOccurrence::Representation
2194
2222
 
2195
2223
  property :spdx_package, as: 'spdxPackage', class: Google::Apis::ContaineranalysisV1alpha1::PackageInfoOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::PackageInfoOccurrence::Representation
@@ -2397,6 +2425,47 @@ module Google
2397
2425
  end
2398
2426
  end
2399
2427
 
2428
+ class SbomReferenceNote
2429
+ # @private
2430
+ class Representation < Google::Apis::Core::JsonRepresentation
2431
+ property :format, as: 'format'
2432
+ property :version, as: 'version'
2433
+ end
2434
+ end
2435
+
2436
+ class SbomReferenceOccurrence
2437
+ # @private
2438
+ class Representation < Google::Apis::Core::JsonRepresentation
2439
+ property :payload, as: 'payload', class: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceIntotoPayload, decorator: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceIntotoPayload::Representation
2440
+
2441
+ property :payload_type, as: 'payloadType'
2442
+ collection :signatures, as: 'signatures', class: Google::Apis::ContaineranalysisV1alpha1::EnvelopeSignature, decorator: Google::Apis::ContaineranalysisV1alpha1::EnvelopeSignature::Representation
2443
+
2444
+ end
2445
+ end
2446
+
2447
+ class SbomReferenceIntotoPayload
2448
+ # @private
2449
+ class Representation < Google::Apis::Core::JsonRepresentation
2450
+ property :_type, as: '_type'
2451
+ property :predicate, as: 'predicate', class: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceIntotoPredicate, decorator: Google::Apis::ContaineranalysisV1alpha1::SbomReferenceIntotoPredicate::Representation
2452
+
2453
+ property :predicate_type, as: 'predicateType'
2454
+ collection :subject, as: 'subject', class: Google::Apis::ContaineranalysisV1alpha1::Subject, decorator: Google::Apis::ContaineranalysisV1alpha1::Subject::Representation
2455
+
2456
+ end
2457
+ end
2458
+
2459
+ class SbomReferenceIntotoPredicate
2460
+ # @private
2461
+ class Representation < Google::Apis::Core::JsonRepresentation
2462
+ hash :digest, as: 'digest'
2463
+ property :location, as: 'location'
2464
+ property :mime_type, as: 'mimeType'
2465
+ property :referrer_id, as: 'referrerId'
2466
+ end
2467
+ end
2468
+
2400
2469
  class ScanConfig
2401
2470
  # @private
2402
2471
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-containeranalysis_v1alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-19 00:00:00.000000000 Z
11
+ date: 2023-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1alpha1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1alpha1/v0.45.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1alpha1/v0.46.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1alpha1
63
63
  post_install_message:
64
64
  rdoc_options: []