google-apis-containeranalysis_v1beta1 0.36.0 → 0.37.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f569d338aee4175641dd5f9d7402211bdc952e051d5819090c926decc3a3a5fa
4
- data.tar.gz: '089002f3b1166c42a1533bb74b018d357e437c059b61d64cd590e5002534c526'
3
+ metadata.gz: 1a97f9d95be1dbf71ad829e1bdcd0bec47c5d6180ef45384abcd8fdce35d0f01
4
+ data.tar.gz: 4ed542eb24e46ff9e8261015805f74a5fe547253aa13e8a400b81f9bcb36191f
5
5
  SHA512:
6
- metadata.gz: 23d1512d803ef79e9eba59235a931fceea5ec43a811d7f7c93c1e77f3791e162ea17617fc24481fc620aea259248ddb35b1f56d8e980ebda92feac3b33296195
7
- data.tar.gz: db3ba93eb62552eb56be1385326836dfa8edee366a185b44f96bf644f8077bea2c39759f28d3aa2bcc1fe71a5caf7f7af94039c6a9bad8de00bb5c73321bf4cd
6
+ metadata.gz: 2c66311b07d48325e6066ccb5ec76fd7da354e1724faa512978c88837627204ef3175908d05b8fae96fa91084bf1b032e33ed408baa632bc5a98f116e22b93db
7
+ data.tar.gz: d453ad38fa3faf53af880ce26caeda6c8f991f9d1c4c456eaed723dbdddd99d90693f0c668f83ece80fbd41d7124905023f181045f912556187e3eac1039ad0a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-containeranalysis_v1beta1
2
2
 
3
+ ### v0.37.0 (2023-04-02)
4
+
5
+ * Regenerated from discovery document revision 20230324
6
+
3
7
  ### v0.36.0 (2023-03-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20230310
@@ -4389,6 +4389,11 @@ module Google
4389
4389
  # @return [Google::Apis::ContaineranalysisV1beta1::DocumentNote]
4390
4390
  attr_accessor :sbom
4391
4391
 
4392
+ # The note representing an SBOM reference.
4393
+ # Corresponds to the JSON property `sbomReference`
4394
+ # @return [Google::Apis::ContaineranalysisV1beta1::SbomReferenceNote]
4395
+ attr_accessor :sbom_reference
4396
+
4392
4397
  # A one sentence description of this note.
4393
4398
  # Corresponds to the JSON property `shortDescription`
4394
4399
  # @return [String]
@@ -4450,6 +4455,7 @@ module Google
4450
4455
  @related_note_names = args[:related_note_names] if args.key?(:related_note_names)
4451
4456
  @related_url = args[:related_url] if args.key?(:related_url)
4452
4457
  @sbom = args[:sbom] if args.key?(:sbom)
4458
+ @sbom_reference = args[:sbom_reference] if args.key?(:sbom_reference)
4453
4459
  @short_description = args[:short_description] if args.key?(:short_description)
4454
4460
  @spdx_file = args[:spdx_file] if args.key?(:spdx_file)
4455
4461
  @spdx_package = args[:spdx_package] if args.key?(:spdx_package)
@@ -4547,6 +4553,13 @@ module Google
4547
4553
  # @return [Google::Apis::ContaineranalysisV1beta1::DocumentOccurrence]
4548
4554
  attr_accessor :sbom
4549
4555
 
4556
+ # The occurrence representing an SBOM reference as applied to a specific
4557
+ # resource. The occurrence follows the DSSE specification. See https://github.
4558
+ # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
4559
+ # Corresponds to the JSON property `sbomReference`
4560
+ # @return [Google::Apis::ContaineranalysisV1beta1::SbomReferenceOccurrence]
4561
+ attr_accessor :sbom_reference
4562
+
4550
4563
  # FileOccurrence represents an SPDX File Information section: https://spdx.
4551
4564
  # github.io/spdx-spec/4-file-information/
4552
4565
  # Corresponds to the JSON property `spdxFile`
@@ -4596,6 +4609,7 @@ module Google
4596
4609
  @remediation = args[:remediation] if args.key?(:remediation)
4597
4610
  @resource = args[:resource] if args.key?(:resource)
4598
4611
  @sbom = args[:sbom] if args.key?(:sbom)
4612
+ @sbom_reference = args[:sbom_reference] if args.key?(:sbom_reference)
4599
4613
  @spdx_file = args[:spdx_file] if args.key?(:spdx_file)
4600
4614
  @spdx_package = args[:spdx_package] if args.key?(:spdx_package)
4601
4615
  @spdx_relationship = args[:spdx_relationship] if args.key?(:spdx_relationship)
@@ -5364,6 +5378,145 @@ module Google
5364
5378
  end
5365
5379
  end
5366
5380
 
5381
+ # The note representing an SBOM reference.
5382
+ class SbomReferenceNote
5383
+ include Google::Apis::Core::Hashable
5384
+
5385
+ # The format that SBOM takes. E.g. may be spdx, cyclonedx, etc...
5386
+ # Corresponds to the JSON property `format`
5387
+ # @return [String]
5388
+ attr_accessor :format
5389
+
5390
+ # The version of the format that the SBOM takes. E.g. if the format is spdx, the
5391
+ # version may be 2.3.
5392
+ # Corresponds to the JSON property `version`
5393
+ # @return [String]
5394
+ attr_accessor :version
5395
+
5396
+ def initialize(**args)
5397
+ update!(**args)
5398
+ end
5399
+
5400
+ # Update properties of this object
5401
+ def update!(**args)
5402
+ @format = args[:format] if args.key?(:format)
5403
+ @version = args[:version] if args.key?(:version)
5404
+ end
5405
+ end
5406
+
5407
+ # The occurrence representing an SBOM reference as applied to a specific
5408
+ # resource. The occurrence follows the DSSE specification. See https://github.
5409
+ # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
5410
+ class SbomReferenceOccurrence
5411
+ include Google::Apis::Core::Hashable
5412
+
5413
+ # The actual payload that contains the SBOM Reference data. The payload follows
5414
+ # the intoto statement specification. See https://github.com/in-toto/attestation/
5415
+ # blob/main/spec/v1.0/statement.md for more details.
5416
+ # Corresponds to the JSON property `payload`
5417
+ # @return [Google::Apis::ContaineranalysisV1beta1::SbomReferenceIntotoPayload]
5418
+ attr_accessor :payload
5419
+
5420
+ # The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the
5421
+ # intoto format, this value is expected to be 'application/vnd.in-toto+json'.
5422
+ # Corresponds to the JSON property `payloadType`
5423
+ # @return [String]
5424
+ attr_accessor :payload_type
5425
+
5426
+ # The signatures over the payload.
5427
+ # Corresponds to the JSON property `signatures`
5428
+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::EnvelopeSignature>]
5429
+ attr_accessor :signatures
5430
+
5431
+ def initialize(**args)
5432
+ update!(**args)
5433
+ end
5434
+
5435
+ # Update properties of this object
5436
+ def update!(**args)
5437
+ @payload = args[:payload] if args.key?(:payload)
5438
+ @payload_type = args[:payload_type] if args.key?(:payload_type)
5439
+ @signatures = args[:signatures] if args.key?(:signatures)
5440
+ end
5441
+ end
5442
+
5443
+ # The actual payload that contains the SBOM Reference data. The payload follows
5444
+ # the intoto statement specification. See https://github.com/in-toto/attestation/
5445
+ # blob/main/spec/v1.0/statement.md for more details.
5446
+ class SbomReferenceIntotoPayload
5447
+ include Google::Apis::Core::Hashable
5448
+
5449
+ # Identifier for the schema of the Statement.
5450
+ # Corresponds to the JSON property `_type`
5451
+ # @return [String]
5452
+ attr_accessor :_type
5453
+
5454
+ # A predicate which describes the SBOM being referenced.
5455
+ # Corresponds to the JSON property `predicate`
5456
+ # @return [Google::Apis::ContaineranalysisV1beta1::SbomReferenceIntotoPredicate]
5457
+ attr_accessor :predicate
5458
+
5459
+ # URI identifying the type of the Predicate.
5460
+ # Corresponds to the JSON property `predicateType`
5461
+ # @return [String]
5462
+ attr_accessor :predicate_type
5463
+
5464
+ # Set of software artifacts that the attestation applies to. Each element
5465
+ # represents a single software artifact.
5466
+ # Corresponds to the JSON property `subject`
5467
+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::Subject>]
5468
+ attr_accessor :subject
5469
+
5470
+ def initialize(**args)
5471
+ update!(**args)
5472
+ end
5473
+
5474
+ # Update properties of this object
5475
+ def update!(**args)
5476
+ @_type = args[:_type] if args.key?(:_type)
5477
+ @predicate = args[:predicate] if args.key?(:predicate)
5478
+ @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
5479
+ @subject = args[:subject] if args.key?(:subject)
5480
+ end
5481
+ end
5482
+
5483
+ # A predicate which describes the SBOM being referenced.
5484
+ class SbomReferenceIntotoPredicate
5485
+ include Google::Apis::Core::Hashable
5486
+
5487
+ # A map of algorithm to digest of the contents of the SBOM.
5488
+ # Corresponds to the JSON property `digest`
5489
+ # @return [Hash<String,String>]
5490
+ attr_accessor :digest
5491
+
5492
+ # The location of the SBOM.
5493
+ # Corresponds to the JSON property `location`
5494
+ # @return [String]
5495
+ attr_accessor :location
5496
+
5497
+ # The mime type of the SBOM.
5498
+ # Corresponds to the JSON property `mimeType`
5499
+ # @return [String]
5500
+ attr_accessor :mime_type
5501
+
5502
+ # The person or system referring this predicate to the consumer.
5503
+ # Corresponds to the JSON property `referrerId`
5504
+ # @return [String]
5505
+ attr_accessor :referrer_id
5506
+
5507
+ def initialize(**args)
5508
+ update!(**args)
5509
+ end
5510
+
5511
+ # Update properties of this object
5512
+ def update!(**args)
5513
+ @digest = args[:digest] if args.key?(:digest)
5514
+ @location = args[:location] if args.key?(:location)
5515
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
5516
+ @referrer_id = args[:referrer_id] if args.key?(:referrer_id)
5517
+ end
5518
+ end
5519
+
5367
5520
  # Request message for `SetIamPolicy` method.
5368
5521
  class SetIamPolicyRequest
5369
5522
  include Google::Apis::Core::Hashable
@@ -5633,6 +5786,33 @@ module Google
5633
5786
  end
5634
5787
  end
5635
5788
 
5789
+ # Set of software artifacts that the attestation applies to. Each element
5790
+ # represents a single software artifact.
5791
+ class Subject
5792
+ include Google::Apis::Core::Hashable
5793
+
5794
+ # `"": ""` Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/
5795
+ # attestation/blob/main/spec/field_types.md#DigestSet
5796
+ # Corresponds to the JSON property `digest`
5797
+ # @return [Hash<String,String>]
5798
+ attr_accessor :digest
5799
+
5800
+ # Identifier to distinguish this artifact from others within the subject.
5801
+ # Corresponds to the JSON property `name`
5802
+ # @return [String]
5803
+ attr_accessor :name
5804
+
5805
+ def initialize(**args)
5806
+ update!(**args)
5807
+ end
5808
+
5809
+ # Update properties of this object
5810
+ def update!(**args)
5811
+ @digest = args[:digest] if args.key?(:digest)
5812
+ @name = args[:name] if args.key?(:name)
5813
+ end
5814
+ end
5815
+
5636
5816
  # Request message for `TestIamPermissions` method.
5637
5817
  class TestIamPermissionsRequest
5638
5818
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContaineranalysisV1beta1
18
18
  # Version of the google-apis-containeranalysis_v1beta1 gem
19
- GEM_VERSION = "0.36.0"
19
+ GEM_VERSION = "0.37.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
@@ -742,6 +742,30 @@ module Google
742
742
  include Google::Apis::Core::JsonObjectSupport
743
743
  end
744
744
 
745
+ class SbomReferenceNote
746
+ class Representation < Google::Apis::Core::JsonRepresentation; end
747
+
748
+ include Google::Apis::Core::JsonObjectSupport
749
+ end
750
+
751
+ class SbomReferenceOccurrence
752
+ class Representation < Google::Apis::Core::JsonRepresentation; end
753
+
754
+ include Google::Apis::Core::JsonObjectSupport
755
+ end
756
+
757
+ class SbomReferenceIntotoPayload
758
+ class Representation < Google::Apis::Core::JsonRepresentation; end
759
+
760
+ include Google::Apis::Core::JsonObjectSupport
761
+ end
762
+
763
+ class SbomReferenceIntotoPredicate
764
+ class Representation < Google::Apis::Core::JsonRepresentation; end
765
+
766
+ include Google::Apis::Core::JsonObjectSupport
767
+ end
768
+
745
769
  class SetIamPolicyRequest
746
770
  class Representation < Google::Apis::Core::JsonRepresentation; end
747
771
 
@@ -778,6 +802,12 @@ module Google
778
802
  include Google::Apis::Core::JsonObjectSupport
779
803
  end
780
804
 
805
+ class Subject
806
+ class Representation < Google::Apis::Core::JsonRepresentation; end
807
+
808
+ include Google::Apis::Core::JsonObjectSupport
809
+ end
810
+
781
811
  class TestIamPermissionsRequest
782
812
  class Representation < Google::Apis::Core::JsonRepresentation; end
783
813
 
@@ -1993,6 +2023,8 @@ module Google
1993
2023
 
1994
2024
  property :sbom, as: 'sbom', class: Google::Apis::ContaineranalysisV1beta1::DocumentNote, decorator: Google::Apis::ContaineranalysisV1beta1::DocumentNote::Representation
1995
2025
 
2026
+ property :sbom_reference, as: 'sbomReference', class: Google::Apis::ContaineranalysisV1beta1::SbomReferenceNote, decorator: Google::Apis::ContaineranalysisV1beta1::SbomReferenceNote::Representation
2027
+
1996
2028
  property :short_description, as: 'shortDescription'
1997
2029
  property :spdx_file, as: 'spdxFile', class: Google::Apis::ContaineranalysisV1beta1::FileNote, decorator: Google::Apis::ContaineranalysisV1beta1::FileNote::Representation
1998
2030
 
@@ -2036,6 +2068,8 @@ module Google
2036
2068
 
2037
2069
  property :sbom, as: 'sbom', class: Google::Apis::ContaineranalysisV1beta1::DocumentOccurrence, decorator: Google::Apis::ContaineranalysisV1beta1::DocumentOccurrence::Representation
2038
2070
 
2071
+ property :sbom_reference, as: 'sbomReference', class: Google::Apis::ContaineranalysisV1beta1::SbomReferenceOccurrence, decorator: Google::Apis::ContaineranalysisV1beta1::SbomReferenceOccurrence::Representation
2072
+
2039
2073
  property :spdx_file, as: 'spdxFile', class: Google::Apis::ContaineranalysisV1beta1::FileOccurrence, decorator: Google::Apis::ContaineranalysisV1beta1::FileOccurrence::Representation
2040
2074
 
2041
2075
  property :spdx_package, as: 'spdxPackage', class: Google::Apis::ContaineranalysisV1beta1::PackageInfoOccurrence, decorator: Google::Apis::ContaineranalysisV1beta1::PackageInfoOccurrence::Representation
@@ -2223,6 +2257,47 @@ module Google
2223
2257
  end
2224
2258
  end
2225
2259
 
2260
+ class SbomReferenceNote
2261
+ # @private
2262
+ class Representation < Google::Apis::Core::JsonRepresentation
2263
+ property :format, as: 'format'
2264
+ property :version, as: 'version'
2265
+ end
2266
+ end
2267
+
2268
+ class SbomReferenceOccurrence
2269
+ # @private
2270
+ class Representation < Google::Apis::Core::JsonRepresentation
2271
+ property :payload, as: 'payload', class: Google::Apis::ContaineranalysisV1beta1::SbomReferenceIntotoPayload, decorator: Google::Apis::ContaineranalysisV1beta1::SbomReferenceIntotoPayload::Representation
2272
+
2273
+ property :payload_type, as: 'payloadType'
2274
+ collection :signatures, as: 'signatures', class: Google::Apis::ContaineranalysisV1beta1::EnvelopeSignature, decorator: Google::Apis::ContaineranalysisV1beta1::EnvelopeSignature::Representation
2275
+
2276
+ end
2277
+ end
2278
+
2279
+ class SbomReferenceIntotoPayload
2280
+ # @private
2281
+ class Representation < Google::Apis::Core::JsonRepresentation
2282
+ property :_type, as: '_type'
2283
+ property :predicate, as: 'predicate', class: Google::Apis::ContaineranalysisV1beta1::SbomReferenceIntotoPredicate, decorator: Google::Apis::ContaineranalysisV1beta1::SbomReferenceIntotoPredicate::Representation
2284
+
2285
+ property :predicate_type, as: 'predicateType'
2286
+ collection :subject, as: 'subject', class: Google::Apis::ContaineranalysisV1beta1::Subject, decorator: Google::Apis::ContaineranalysisV1beta1::Subject::Representation
2287
+
2288
+ end
2289
+ end
2290
+
2291
+ class SbomReferenceIntotoPredicate
2292
+ # @private
2293
+ class Representation < Google::Apis::Core::JsonRepresentation
2294
+ hash :digest, as: 'digest'
2295
+ property :location, as: 'location'
2296
+ property :mime_type, as: 'mimeType'
2297
+ property :referrer_id, as: 'referrerId'
2298
+ end
2299
+ end
2300
+
2226
2301
  class SetIamPolicyRequest
2227
2302
  # @private
2228
2303
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2284,6 +2359,14 @@ module Google
2284
2359
  end
2285
2360
  end
2286
2361
 
2362
+ class Subject
2363
+ # @private
2364
+ class Representation < Google::Apis::Core::JsonRepresentation
2365
+ hash :digest, as: 'digest'
2366
+ property :name, as: 'name'
2367
+ end
2368
+ end
2369
+
2287
2370
  class TestIamPermissionsRequest
2288
2371
  # @private
2289
2372
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-containeranalysis_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.37.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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.36.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.37.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []