google-apis-ondemandscanning_v1beta1 0.34.0 → 0.36.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: 5ad60c0aca33c85bbcd51c60bb7b998ad0adab35da9cdc993462e2d34adc685e
4
- data.tar.gz: 141b2a9473f028f94293d826722ae4e9616bcb4b0e3c6f18a052b12586c02d62
3
+ metadata.gz: df0fa2b60ab13954c212860f98da9152661c1b1270d7362a95c228da11641df4
4
+ data.tar.gz: a94cd525eb7b86571e0a92a25ee7516492fb71280cf050c466597917874d3e0b
5
5
  SHA512:
6
- metadata.gz: ec2ad9f495d475ba8206ef485d2e639414b68ca73917ffff2a7ae275bd1fdec0e09b280c1296190349e2feaaaf8626756c9825dd4f0dbb0c33863d8fba611b4f
7
- data.tar.gz: 450888b46881ce1a86e09a8af61bd99d27c5aa28d8e740bed9d95a38a8068442df45caedaba88d1fe8b69a4d3438731a9eeaca0bb67b59b09fb1099aa194bfd7
6
+ metadata.gz: 023e03a5ab277d15525c5e88233ae38cd529a56390140e90ed87826bf8599d33e53cfb198d5372cc4f9565ee99193a4db090b941d1c1dd2d33f0baa46f6115dd
7
+ data.tar.gz: 3ee60f7dffa5c41ebcc41066d9956d00550d3e55720c15dcd408569162c73256015c4c27df310a5949da6343b74794deb4ecb9a452d43f1f0149ebebc4053774
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-ondemandscanning_v1beta1
2
2
 
3
+ ### v0.36.0 (2023-05-07)
4
+
5
+ * Regenerated from discovery document revision 20230501
6
+
7
+ ### v0.35.0 (2023-04-16)
8
+
9
+ * Regenerated from discovery document revision 20230403
10
+
3
11
  ### v0.34.0 (2023-03-26)
4
12
 
5
13
  * Regenerated from discovery document revision 20230313
@@ -1891,6 +1891,13 @@ module Google
1891
1891
  # @return [String]
1892
1892
  attr_accessor :resource_uri
1893
1893
 
1894
+ # The occurrence representing an SBOM reference as applied to a specific
1895
+ # resource. The occurrence follows the DSSE specification. See https://github.
1896
+ # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
1897
+ # Corresponds to the JSON property `sbomReference`
1898
+ # @return [Google::Apis::OndemandscanningV1beta1::SbomReferenceOccurrence]
1899
+ attr_accessor :sbom_reference
1900
+
1894
1901
  # Output only. The time this occurrence was last updated.
1895
1902
  # Corresponds to the JSON property `updateTime`
1896
1903
  # @return [String]
@@ -1931,6 +1938,7 @@ module Google
1931
1938
  @package = args[:package] if args.key?(:package)
1932
1939
  @remediation = args[:remediation] if args.key?(:remediation)
1933
1940
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
1941
+ @sbom_reference = args[:sbom_reference] if args.key?(:sbom_reference)
1934
1942
  @update_time = args[:update_time] if args.key?(:update_time)
1935
1943
  @upgrade = args[:upgrade] if args.key?(:upgrade)
1936
1944
  @vulnerability = args[:vulnerability] if args.key?(:vulnerability)
@@ -2008,6 +2016,15 @@ module Google
2008
2016
  # @return [String]
2009
2017
  attr_accessor :architecture
2010
2018
 
2019
+ # The binary package. This is significant when the source is different than the
2020
+ # binary itself. Historically if they've differed, we've stored the name of the
2021
+ # source and its version in the package/version fields, but we should also store
2022
+ # the binary package info, as that's what's actually installed. See b/175908657#
2023
+ # comment15.
2024
+ # Corresponds to the JSON property `binaryVersion`
2025
+ # @return [Google::Apis::OndemandscanningV1beta1::PackageVersion]
2026
+ attr_accessor :binary_version
2027
+
2011
2028
  # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
2012
2029
  # the vulnerability may manifest. Examples include distro or storage location
2013
2030
  # for vulnerable jar.
@@ -2065,6 +2082,14 @@ module Google
2065
2082
  # @return [Array<String>]
2066
2083
  attr_accessor :patched_cve
2067
2084
 
2085
+ # The source package. Similar to the above, this is significant when the source
2086
+ # is different than the binary itself. Since the top-level package/version
2087
+ # fields are based on an if/else, we need a separate field for both binary and
2088
+ # source if we want to know definitively where the data is coming from.
2089
+ # Corresponds to the JSON property `sourceVersion`
2090
+ # @return [Google::Apis::OndemandscanningV1beta1::PackageVersion]
2091
+ attr_accessor :source_version
2092
+
2068
2093
  #
2069
2094
  # Corresponds to the JSON property `unused`
2070
2095
  # @return [String]
@@ -2082,6 +2107,7 @@ module Google
2082
2107
  # Update properties of this object
2083
2108
  def update!(**args)
2084
2109
  @architecture = args[:architecture] if args.key?(:architecture)
2110
+ @binary_version = args[:binary_version] if args.key?(:binary_version)
2085
2111
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
2086
2112
  @dependency_chain = args[:dependency_chain] if args.key?(:dependency_chain)
2087
2113
  @file_location = args[:file_location] if args.key?(:file_location)
@@ -2092,6 +2118,7 @@ module Google
2092
2118
  @package = args[:package] if args.key?(:package)
2093
2119
  @package_type = args[:package_type] if args.key?(:package_type)
2094
2120
  @patched_cve = args[:patched_cve] if args.key?(:patched_cve)
2121
+ @source_version = args[:source_version] if args.key?(:source_version)
2095
2122
  @unused = args[:unused] if args.key?(:unused)
2096
2123
  @version = args[:version] if args.key?(:version)
2097
2124
  end
@@ -2237,6 +2264,31 @@ module Google
2237
2264
  end
2238
2265
  end
2239
2266
 
2267
+ #
2268
+ class PackageVersion
2269
+ include Google::Apis::Core::Hashable
2270
+
2271
+ #
2272
+ # Corresponds to the JSON property `name`
2273
+ # @return [String]
2274
+ attr_accessor :name
2275
+
2276
+ #
2277
+ # Corresponds to the JSON property `version`
2278
+ # @return [String]
2279
+ attr_accessor :version
2280
+
2281
+ def initialize(**args)
2282
+ update!(**args)
2283
+ end
2284
+
2285
+ # Update properties of this object
2286
+ def update!(**args)
2287
+ @name = args[:name] if args.key?(:name)
2288
+ @version = args[:version] if args.key?(:version)
2289
+ end
2290
+ end
2291
+
2240
2292
  # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31)
2241
2293
  # and a repo name within that project.
2242
2294
  class ProjectRepoId
@@ -2406,6 +2458,119 @@ module Google
2406
2458
  end
2407
2459
  end
2408
2460
 
2461
+ # The occurrence representing an SBOM reference as applied to a specific
2462
+ # resource. The occurrence follows the DSSE specification. See https://github.
2463
+ # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
2464
+ class SbomReferenceOccurrence
2465
+ include Google::Apis::Core::Hashable
2466
+
2467
+ # The actual payload that contains the SBOM Reference data. The payload follows
2468
+ # the intoto statement specification. See https://github.com/in-toto/attestation/
2469
+ # blob/main/spec/v1.0/statement.md for more details.
2470
+ # Corresponds to the JSON property `payload`
2471
+ # @return [Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPayload]
2472
+ attr_accessor :payload
2473
+
2474
+ # The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the
2475
+ # intoto format, this value is expected to be 'application/vnd.in-toto+json'.
2476
+ # Corresponds to the JSON property `payloadType`
2477
+ # @return [String]
2478
+ attr_accessor :payload_type
2479
+
2480
+ # The signatures over the payload.
2481
+ # Corresponds to the JSON property `signatures`
2482
+ # @return [Array<Google::Apis::OndemandscanningV1beta1::EnvelopeSignature>]
2483
+ attr_accessor :signatures
2484
+
2485
+ def initialize(**args)
2486
+ update!(**args)
2487
+ end
2488
+
2489
+ # Update properties of this object
2490
+ def update!(**args)
2491
+ @payload = args[:payload] if args.key?(:payload)
2492
+ @payload_type = args[:payload_type] if args.key?(:payload_type)
2493
+ @signatures = args[:signatures] if args.key?(:signatures)
2494
+ end
2495
+ end
2496
+
2497
+ # The actual payload that contains the SBOM Reference data. The payload follows
2498
+ # the intoto statement specification. See https://github.com/in-toto/attestation/
2499
+ # blob/main/spec/v1.0/statement.md for more details.
2500
+ class SbomReferenceIntotoPayload
2501
+ include Google::Apis::Core::Hashable
2502
+
2503
+ # Identifier for the schema of the Statement.
2504
+ # Corresponds to the JSON property `_type`
2505
+ # @return [String]
2506
+ attr_accessor :_type
2507
+
2508
+ # A predicate which describes the SBOM being referenced.
2509
+ # Corresponds to the JSON property `predicate`
2510
+ # @return [Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPredicate]
2511
+ attr_accessor :predicate
2512
+
2513
+ # URI identifying the type of the Predicate.
2514
+ # Corresponds to the JSON property `predicateType`
2515
+ # @return [String]
2516
+ attr_accessor :predicate_type
2517
+
2518
+ # Set of software artifacts that the attestation applies to. Each element
2519
+ # represents a single software artifact.
2520
+ # Corresponds to the JSON property `subject`
2521
+ # @return [Array<Google::Apis::OndemandscanningV1beta1::Subject>]
2522
+ attr_accessor :subject
2523
+
2524
+ def initialize(**args)
2525
+ update!(**args)
2526
+ end
2527
+
2528
+ # Update properties of this object
2529
+ def update!(**args)
2530
+ @_type = args[:_type] if args.key?(:_type)
2531
+ @predicate = args[:predicate] if args.key?(:predicate)
2532
+ @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
2533
+ @subject = args[:subject] if args.key?(:subject)
2534
+ end
2535
+ end
2536
+
2537
+ # A predicate which describes the SBOM being referenced.
2538
+ class SbomReferenceIntotoPredicate
2539
+ include Google::Apis::Core::Hashable
2540
+
2541
+ # A map of algorithm to digest of the contents of the SBOM.
2542
+ # Corresponds to the JSON property `digest`
2543
+ # @return [Hash<String,String>]
2544
+ attr_accessor :digest
2545
+
2546
+ # The location of the SBOM.
2547
+ # Corresponds to the JSON property `location`
2548
+ # @return [String]
2549
+ attr_accessor :location
2550
+
2551
+ # The mime type of the SBOM.
2552
+ # Corresponds to the JSON property `mimeType`
2553
+ # @return [String]
2554
+ attr_accessor :mime_type
2555
+
2556
+ # The person or system referring this predicate to the consumer.
2557
+ # Corresponds to the JSON property `referrerId`
2558
+ # @return [String]
2559
+ attr_accessor :referrer_id
2560
+
2561
+ def initialize(**args)
2562
+ update!(**args)
2563
+ end
2564
+
2565
+ # Update properties of this object
2566
+ def update!(**args)
2567
+ @digest = args[:digest] if args.key?(:digest)
2568
+ @location = args[:location] if args.key?(:location)
2569
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2570
+ @referrer_id = args[:referrer_id] if args.key?(:referrer_id)
2571
+ end
2572
+ end
2573
+
2409
2574
  # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to
2410
2575
  # the trust anchors defined in policy (e.g. a Kritis policy). Typically this
2411
2576
  # means that the verifier has been configured with a map from `public_key_id` to
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OndemandscanningV1beta1
18
18
  # Version of the google-apis-ondemandscanning_v1beta1 gem
19
- GEM_VERSION = "0.34.0"
19
+ GEM_VERSION = "0.36.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 = "20230313"
25
+ REVISION = "20230501"
26
26
  end
27
27
  end
28
28
  end
@@ -370,6 +370,12 @@ module Google
370
370
  include Google::Apis::Core::JsonObjectSupport
371
371
  end
372
372
 
373
+ class PackageVersion
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
373
379
  class ProjectRepoId
374
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
381
 
@@ -400,6 +406,24 @@ module Google
400
406
  include Google::Apis::Core::JsonObjectSupport
401
407
  end
402
408
 
409
+ class SbomReferenceOccurrence
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
415
+ class SbomReferenceIntotoPayload
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
421
+ class SbomReferenceIntotoPredicate
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
403
427
  class Signature
404
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
405
429
 
@@ -1042,6 +1066,8 @@ module Google
1042
1066
 
1043
1067
  property :remediation, as: 'remediation'
1044
1068
  property :resource_uri, as: 'resourceUri'
1069
+ property :sbom_reference, as: 'sbomReference', class: Google::Apis::OndemandscanningV1beta1::SbomReferenceOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::SbomReferenceOccurrence::Representation
1070
+
1045
1071
  property :update_time, as: 'updateTime'
1046
1072
  property :upgrade, as: 'upgrade', class: Google::Apis::OndemandscanningV1beta1::UpgradeOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::UpgradeOccurrence::Representation
1047
1073
 
@@ -1066,6 +1092,8 @@ module Google
1066
1092
  # @private
1067
1093
  class Representation < Google::Apis::Core::JsonRepresentation
1068
1094
  property :architecture, as: 'architecture'
1095
+ property :binary_version, as: 'binaryVersion', class: Google::Apis::OndemandscanningV1beta1::PackageVersion, decorator: Google::Apis::OndemandscanningV1beta1::PackageVersion::Representation
1096
+
1069
1097
  property :cpe_uri, as: 'cpeUri'
1070
1098
  collection :dependency_chain, as: 'dependencyChain', class: Google::Apis::OndemandscanningV1beta1::LanguagePackageDependency, decorator: Google::Apis::OndemandscanningV1beta1::LanguagePackageDependency::Representation
1071
1099
 
@@ -1079,6 +1107,8 @@ module Google
1079
1107
  property :package, as: 'package'
1080
1108
  property :package_type, as: 'packageType'
1081
1109
  collection :patched_cve, as: 'patchedCve'
1110
+ property :source_version, as: 'sourceVersion', class: Google::Apis::OndemandscanningV1beta1::PackageVersion, decorator: Google::Apis::OndemandscanningV1beta1::PackageVersion::Representation
1111
+
1082
1112
  property :unused, as: 'unused'
1083
1113
  property :version, as: 'version'
1084
1114
  end
@@ -1119,6 +1149,14 @@ module Google
1119
1149
  end
1120
1150
  end
1121
1151
 
1152
+ class PackageVersion
1153
+ # @private
1154
+ class Representation < Google::Apis::Core::JsonRepresentation
1155
+ property :name, as: 'name'
1156
+ property :version, as: 'version'
1157
+ end
1158
+ end
1159
+
1122
1160
  class ProjectRepoId
1123
1161
  # @private
1124
1162
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1165,6 +1203,39 @@ module Google
1165
1203
  end
1166
1204
  end
1167
1205
 
1206
+ class SbomReferenceOccurrence
1207
+ # @private
1208
+ class Representation < Google::Apis::Core::JsonRepresentation
1209
+ property :payload, as: 'payload', class: Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPayload, decorator: Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPayload::Representation
1210
+
1211
+ property :payload_type, as: 'payloadType'
1212
+ collection :signatures, as: 'signatures', class: Google::Apis::OndemandscanningV1beta1::EnvelopeSignature, decorator: Google::Apis::OndemandscanningV1beta1::EnvelopeSignature::Representation
1213
+
1214
+ end
1215
+ end
1216
+
1217
+ class SbomReferenceIntotoPayload
1218
+ # @private
1219
+ class Representation < Google::Apis::Core::JsonRepresentation
1220
+ property :_type, as: '_type'
1221
+ property :predicate, as: 'predicate', class: Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPredicate, decorator: Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPredicate::Representation
1222
+
1223
+ property :predicate_type, as: 'predicateType'
1224
+ collection :subject, as: 'subject', class: Google::Apis::OndemandscanningV1beta1::Subject, decorator: Google::Apis::OndemandscanningV1beta1::Subject::Representation
1225
+
1226
+ end
1227
+ end
1228
+
1229
+ class SbomReferenceIntotoPredicate
1230
+ # @private
1231
+ class Representation < Google::Apis::Core::JsonRepresentation
1232
+ hash :digest, as: 'digest'
1233
+ property :location, as: 'location'
1234
+ property :mime_type, as: 'mimeType'
1235
+ property :referrer_id, as: 'referrerId'
1236
+ end
1237
+ end
1238
+
1168
1239
  class Signature
1169
1240
  # @private
1170
1241
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-ondemandscanning_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.36.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-26 00:00:00.000000000 Z
11
+ date: 2023-05-14 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-ondemandscanning_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.34.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.36.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-ondemandscanning_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []