google-apis-ondemandscanning_v1 0.37.0 → 0.39.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: 4f4df01283484c4c0a09ec01ad2cdd6caa02c4db300d011bd94bb1597e177561
4
- data.tar.gz: ab55f3a32012b7f2b2c6f62c88df2a55819e5174956dc22221c7f0908e432373
3
+ metadata.gz: 388c15616165e493856f804ac0fbe29a5ab5c17f3eced02c7942074c2f17664d
4
+ data.tar.gz: 171e17747cc2efbf1e40f2aee0e2d8d156c29e6ac652edac7246a379afced91f
5
5
  SHA512:
6
- metadata.gz: 7ea7078039a927f4d9c6af41d785a52ce6ee37e7e290d2507aabf47b70203b4611a1ec5467e232966527432d251e6f078d3decbf24f2e49ef8bfc0c320ec5bcb
7
- data.tar.gz: 797fec5771da6489e2d77328e9445d292dbd252eb98ea35ec41cafda7cd9539b191ce8a6fc60957f4113562e0424d386da35250de81905e856d2b8f9cfe5727e
6
+ metadata.gz: 9ce60d2540ceabdd50743869252ab7c05753d143a82ba500f4b44dbc0adad6fbe716ef0d3648adf2d36329969a21bb959a21a5a955d3b6ac7f0347ca00667177
7
+ data.tar.gz: 8548f518c736adeae71a59070cae1c30dba9de4ebf47727228dea1d6ad51c2937c7486b304f82df703c3f8a2f244d2f1e7e2b622fa55571c573edc63ba478b97
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-ondemandscanning_v1
2
2
 
3
+ ### v0.39.0 (2023-05-28)
4
+
5
+ * Regenerated from discovery document revision 20230522
6
+
7
+ ### v0.38.0 (2023-05-07)
8
+
9
+ * Regenerated from discovery document revision 20230501
10
+
3
11
  ### v0.37.0 (2023-04-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20230403
@@ -278,18 +278,25 @@ module Google
278
278
  end
279
279
 
280
280
  #
281
- class Binary
281
+ class BinarySourceInfo
282
282
  include Google::Apis::Core::Hashable
283
283
 
284
- #
285
- # Corresponds to the JSON property `name`
286
- # @return [String]
287
- attr_accessor :name
284
+ # The binary package. This is significant when the source is different than the
285
+ # binary itself. Historically if they've differed, we've stored the name of the
286
+ # source and its version in the package/version fields, but we should also store
287
+ # the binary package info, as that's what's actually installed. See b/175908657#
288
+ # comment15.
289
+ # Corresponds to the JSON property `binaryVersion`
290
+ # @return [Google::Apis::OndemandscanningV1::PackageVersion]
291
+ attr_accessor :binary_version
288
292
 
289
- #
290
- # Corresponds to the JSON property `version`
291
- # @return [String]
292
- attr_accessor :version
293
+ # The source package. Similar to the above, this is significant when the source
294
+ # is different than the binary itself. Since the top-level package/version
295
+ # fields are based on an if/else, we need a separate field for both binary and
296
+ # source if we want to know definitively where the data is coming from.
297
+ # Corresponds to the JSON property `sourceVersion`
298
+ # @return [Google::Apis::OndemandscanningV1::PackageVersion]
299
+ attr_accessor :source_version
293
300
 
294
301
  def initialize(**args)
295
302
  update!(**args)
@@ -297,8 +304,8 @@ module Google
297
304
 
298
305
  # Update properties of this object
299
306
  def update!(**args)
300
- @name = args[:name] if args.key?(:name)
301
- @version = args[:version] if args.key?(:version)
307
+ @binary_version = args[:binary_version] if args.key?(:binary_version)
308
+ @source_version = args[:source_version] if args.key?(:source_version)
302
309
  end
303
310
  end
304
311
 
@@ -1924,6 +1931,13 @@ module Google
1924
1931
  # @return [String]
1925
1932
  attr_accessor :resource_uri
1926
1933
 
1934
+ # The occurrence representing an SBOM reference as applied to a specific
1935
+ # resource. The occurrence follows the DSSE specification. See https://github.
1936
+ # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
1937
+ # Corresponds to the JSON property `sbomReference`
1938
+ # @return [Google::Apis::OndemandscanningV1::SbomReferenceOccurrence]
1939
+ attr_accessor :sbom_reference
1940
+
1927
1941
  # Output only. The time this occurrence was last updated.
1928
1942
  # Corresponds to the JSON property `updateTime`
1929
1943
  # @return [String]
@@ -1964,6 +1978,7 @@ module Google
1964
1978
  @package = args[:package] if args.key?(:package)
1965
1979
  @remediation = args[:remediation] if args.key?(:remediation)
1966
1980
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
1981
+ @sbom_reference = args[:sbom_reference] if args.key?(:sbom_reference)
1967
1982
  @update_time = args[:update_time] if args.key?(:update_time)
1968
1983
  @upgrade = args[:upgrade] if args.key?(:upgrade)
1969
1984
  @vulnerability = args[:vulnerability] if args.key?(:vulnerability)
@@ -2041,14 +2056,15 @@ module Google
2041
2056
  # @return [String]
2042
2057
  attr_accessor :architecture
2043
2058
 
2044
- # The binary package. This is significant when the source is different than the
2045
- # binary itself. Historically if they've differed, we've stored the name of the
2046
- # source and its version in the package/version fields, but we should also store
2047
- # the binary package info, as that's what's actually installed. See b/175908657#
2048
- # comment15.
2049
- # Corresponds to the JSON property `binary`
2050
- # @return [Google::Apis::OndemandscanningV1::Binary]
2051
- attr_accessor :binary
2059
+ # A bundle containing the binary and source information.
2060
+ # Corresponds to the JSON property `binarySourceInfo`
2061
+ # @return [Array<Google::Apis::OndemandscanningV1::BinarySourceInfo>]
2062
+ attr_accessor :binary_source_info
2063
+
2064
+ # DEPRECATED
2065
+ # Corresponds to the JSON property `binaryVersion`
2066
+ # @return [Google::Apis::OndemandscanningV1::PackageVersion]
2067
+ attr_accessor :binary_version
2052
2068
 
2053
2069
  # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
2054
2070
  # the vulnerability may manifest. Examples include distro or storage location
@@ -2107,6 +2123,11 @@ module Google
2107
2123
  # @return [Array<String>]
2108
2124
  attr_accessor :patched_cve
2109
2125
 
2126
+ # DEPRECATED
2127
+ # Corresponds to the JSON property `sourceVersion`
2128
+ # @return [Google::Apis::OndemandscanningV1::PackageVersion]
2129
+ attr_accessor :source_version
2130
+
2110
2131
  #
2111
2132
  # Corresponds to the JSON property `unused`
2112
2133
  # @return [String]
@@ -2124,7 +2145,8 @@ module Google
2124
2145
  # Update properties of this object
2125
2146
  def update!(**args)
2126
2147
  @architecture = args[:architecture] if args.key?(:architecture)
2127
- @binary = args[:binary] if args.key?(:binary)
2148
+ @binary_source_info = args[:binary_source_info] if args.key?(:binary_source_info)
2149
+ @binary_version = args[:binary_version] if args.key?(:binary_version)
2128
2150
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
2129
2151
  @dependency_chain = args[:dependency_chain] if args.key?(:dependency_chain)
2130
2152
  @file_location = args[:file_location] if args.key?(:file_location)
@@ -2135,6 +2157,7 @@ module Google
2135
2157
  @package = args[:package] if args.key?(:package)
2136
2158
  @package_type = args[:package_type] if args.key?(:package_type)
2137
2159
  @patched_cve = args[:patched_cve] if args.key?(:patched_cve)
2160
+ @source_version = args[:source_version] if args.key?(:source_version)
2138
2161
  @unused = args[:unused] if args.key?(:unused)
2139
2162
  @version = args[:version] if args.key?(:version)
2140
2163
  end
@@ -2280,6 +2303,31 @@ module Google
2280
2303
  end
2281
2304
  end
2282
2305
 
2306
+ #
2307
+ class PackageVersion
2308
+ include Google::Apis::Core::Hashable
2309
+
2310
+ #
2311
+ # Corresponds to the JSON property `name`
2312
+ # @return [String]
2313
+ attr_accessor :name
2314
+
2315
+ #
2316
+ # Corresponds to the JSON property `version`
2317
+ # @return [String]
2318
+ attr_accessor :version
2319
+
2320
+ def initialize(**args)
2321
+ update!(**args)
2322
+ end
2323
+
2324
+ # Update properties of this object
2325
+ def update!(**args)
2326
+ @name = args[:name] if args.key?(:name)
2327
+ @version = args[:version] if args.key?(:version)
2328
+ end
2329
+ end
2330
+
2283
2331
  # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31)
2284
2332
  # and a repo name within that project.
2285
2333
  class ProjectRepoId
@@ -2449,6 +2497,119 @@ module Google
2449
2497
  end
2450
2498
  end
2451
2499
 
2500
+ # The occurrence representing an SBOM reference as applied to a specific
2501
+ # resource. The occurrence follows the DSSE specification. See https://github.
2502
+ # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
2503
+ class SbomReferenceOccurrence
2504
+ include Google::Apis::Core::Hashable
2505
+
2506
+ # The actual payload that contains the SBOM Reference data. The payload follows
2507
+ # the intoto statement specification. See https://github.com/in-toto/attestation/
2508
+ # blob/main/spec/v1.0/statement.md for more details.
2509
+ # Corresponds to the JSON property `payload`
2510
+ # @return [Google::Apis::OndemandscanningV1::SbomReferenceIntotoPayload]
2511
+ attr_accessor :payload
2512
+
2513
+ # The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the
2514
+ # intoto format, this value is expected to be 'application/vnd.in-toto+json'.
2515
+ # Corresponds to the JSON property `payloadType`
2516
+ # @return [String]
2517
+ attr_accessor :payload_type
2518
+
2519
+ # The signatures over the payload.
2520
+ # Corresponds to the JSON property `signatures`
2521
+ # @return [Array<Google::Apis::OndemandscanningV1::EnvelopeSignature>]
2522
+ attr_accessor :signatures
2523
+
2524
+ def initialize(**args)
2525
+ update!(**args)
2526
+ end
2527
+
2528
+ # Update properties of this object
2529
+ def update!(**args)
2530
+ @payload = args[:payload] if args.key?(:payload)
2531
+ @payload_type = args[:payload_type] if args.key?(:payload_type)
2532
+ @signatures = args[:signatures] if args.key?(:signatures)
2533
+ end
2534
+ end
2535
+
2536
+ # The actual payload that contains the SBOM Reference data. The payload follows
2537
+ # the intoto statement specification. See https://github.com/in-toto/attestation/
2538
+ # blob/main/spec/v1.0/statement.md for more details.
2539
+ class SbomReferenceIntotoPayload
2540
+ include Google::Apis::Core::Hashable
2541
+
2542
+ # Identifier for the schema of the Statement.
2543
+ # Corresponds to the JSON property `_type`
2544
+ # @return [String]
2545
+ attr_accessor :_type
2546
+
2547
+ # A predicate which describes the SBOM being referenced.
2548
+ # Corresponds to the JSON property `predicate`
2549
+ # @return [Google::Apis::OndemandscanningV1::SbomReferenceIntotoPredicate]
2550
+ attr_accessor :predicate
2551
+
2552
+ # URI identifying the type of the Predicate.
2553
+ # Corresponds to the JSON property `predicateType`
2554
+ # @return [String]
2555
+ attr_accessor :predicate_type
2556
+
2557
+ # Set of software artifacts that the attestation applies to. Each element
2558
+ # represents a single software artifact.
2559
+ # Corresponds to the JSON property `subject`
2560
+ # @return [Array<Google::Apis::OndemandscanningV1::Subject>]
2561
+ attr_accessor :subject
2562
+
2563
+ def initialize(**args)
2564
+ update!(**args)
2565
+ end
2566
+
2567
+ # Update properties of this object
2568
+ def update!(**args)
2569
+ @_type = args[:_type] if args.key?(:_type)
2570
+ @predicate = args[:predicate] if args.key?(:predicate)
2571
+ @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
2572
+ @subject = args[:subject] if args.key?(:subject)
2573
+ end
2574
+ end
2575
+
2576
+ # A predicate which describes the SBOM being referenced.
2577
+ class SbomReferenceIntotoPredicate
2578
+ include Google::Apis::Core::Hashable
2579
+
2580
+ # A map of algorithm to digest of the contents of the SBOM.
2581
+ # Corresponds to the JSON property `digest`
2582
+ # @return [Hash<String,String>]
2583
+ attr_accessor :digest
2584
+
2585
+ # The location of the SBOM.
2586
+ # Corresponds to the JSON property `location`
2587
+ # @return [String]
2588
+ attr_accessor :location
2589
+
2590
+ # The mime type of the SBOM.
2591
+ # Corresponds to the JSON property `mimeType`
2592
+ # @return [String]
2593
+ attr_accessor :mime_type
2594
+
2595
+ # The person or system referring this predicate to the consumer.
2596
+ # Corresponds to the JSON property `referrerId`
2597
+ # @return [String]
2598
+ attr_accessor :referrer_id
2599
+
2600
+ def initialize(**args)
2601
+ update!(**args)
2602
+ end
2603
+
2604
+ # Update properties of this object
2605
+ def update!(**args)
2606
+ @digest = args[:digest] if args.key?(:digest)
2607
+ @location = args[:location] if args.key?(:location)
2608
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2609
+ @referrer_id = args[:referrer_id] if args.key?(:referrer_id)
2610
+ end
2611
+ end
2612
+
2452
2613
  # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to
2453
2614
  # the trust anchors defined in policy (e.g. a Kritis policy). Typically this
2454
2615
  # 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 OndemandscanningV1
18
18
  # Version of the google-apis-ondemandscanning_v1 gem
19
- GEM_VERSION = "0.37.0"
19
+ GEM_VERSION = "0.39.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 = "20230403"
25
+ REVISION = "20230522"
26
26
  end
27
27
  end
28
28
  end
@@ -76,7 +76,7 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class Binary
79
+ class BinarySourceInfo
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
@@ -376,6 +376,12 @@ module Google
376
376
  include Google::Apis::Core::JsonObjectSupport
377
377
  end
378
378
 
379
+ class PackageVersion
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
379
385
  class ProjectRepoId
380
386
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
387
 
@@ -406,6 +412,24 @@ module Google
406
412
  include Google::Apis::Core::JsonObjectSupport
407
413
  end
408
414
 
415
+ class SbomReferenceOccurrence
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
421
+ class SbomReferenceIntotoPayload
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
427
+ class SbomReferenceIntotoPredicate
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
432
+
409
433
  class Signature
410
434
  class Representation < Google::Apis::Core::JsonRepresentation; end
411
435
 
@@ -583,11 +607,13 @@ module Google
583
607
  end
584
608
  end
585
609
 
586
- class Binary
610
+ class BinarySourceInfo
587
611
  # @private
588
612
  class Representation < Google::Apis::Core::JsonRepresentation
589
- property :name, as: 'name'
590
- property :version, as: 'version'
613
+ property :binary_version, as: 'binaryVersion', class: Google::Apis::OndemandscanningV1::PackageVersion, decorator: Google::Apis::OndemandscanningV1::PackageVersion::Representation
614
+
615
+ property :source_version, as: 'sourceVersion', class: Google::Apis::OndemandscanningV1::PackageVersion, decorator: Google::Apis::OndemandscanningV1::PackageVersion::Representation
616
+
591
617
  end
592
618
  end
593
619
 
@@ -1057,6 +1083,8 @@ module Google
1057
1083
 
1058
1084
  property :remediation, as: 'remediation'
1059
1085
  property :resource_uri, as: 'resourceUri'
1086
+ property :sbom_reference, as: 'sbomReference', class: Google::Apis::OndemandscanningV1::SbomReferenceOccurrence, decorator: Google::Apis::OndemandscanningV1::SbomReferenceOccurrence::Representation
1087
+
1060
1088
  property :update_time, as: 'updateTime'
1061
1089
  property :upgrade, as: 'upgrade', class: Google::Apis::OndemandscanningV1::UpgradeOccurrence, decorator: Google::Apis::OndemandscanningV1::UpgradeOccurrence::Representation
1062
1090
 
@@ -1081,7 +1109,9 @@ module Google
1081
1109
  # @private
1082
1110
  class Representation < Google::Apis::Core::JsonRepresentation
1083
1111
  property :architecture, as: 'architecture'
1084
- property :binary, as: 'binary', class: Google::Apis::OndemandscanningV1::Binary, decorator: Google::Apis::OndemandscanningV1::Binary::Representation
1112
+ collection :binary_source_info, as: 'binarySourceInfo', class: Google::Apis::OndemandscanningV1::BinarySourceInfo, decorator: Google::Apis::OndemandscanningV1::BinarySourceInfo::Representation
1113
+
1114
+ property :binary_version, as: 'binaryVersion', class: Google::Apis::OndemandscanningV1::PackageVersion, decorator: Google::Apis::OndemandscanningV1::PackageVersion::Representation
1085
1115
 
1086
1116
  property :cpe_uri, as: 'cpeUri'
1087
1117
  collection :dependency_chain, as: 'dependencyChain', class: Google::Apis::OndemandscanningV1::LanguagePackageDependency, decorator: Google::Apis::OndemandscanningV1::LanguagePackageDependency::Representation
@@ -1096,6 +1126,8 @@ module Google
1096
1126
  property :package, as: 'package'
1097
1127
  property :package_type, as: 'packageType'
1098
1128
  collection :patched_cve, as: 'patchedCve'
1129
+ property :source_version, as: 'sourceVersion', class: Google::Apis::OndemandscanningV1::PackageVersion, decorator: Google::Apis::OndemandscanningV1::PackageVersion::Representation
1130
+
1099
1131
  property :unused, as: 'unused'
1100
1132
  property :version, as: 'version'
1101
1133
  end
@@ -1136,6 +1168,14 @@ module Google
1136
1168
  end
1137
1169
  end
1138
1170
 
1171
+ class PackageVersion
1172
+ # @private
1173
+ class Representation < Google::Apis::Core::JsonRepresentation
1174
+ property :name, as: 'name'
1175
+ property :version, as: 'version'
1176
+ end
1177
+ end
1178
+
1139
1179
  class ProjectRepoId
1140
1180
  # @private
1141
1181
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1182,6 +1222,39 @@ module Google
1182
1222
  end
1183
1223
  end
1184
1224
 
1225
+ class SbomReferenceOccurrence
1226
+ # @private
1227
+ class Representation < Google::Apis::Core::JsonRepresentation
1228
+ property :payload, as: 'payload', class: Google::Apis::OndemandscanningV1::SbomReferenceIntotoPayload, decorator: Google::Apis::OndemandscanningV1::SbomReferenceIntotoPayload::Representation
1229
+
1230
+ property :payload_type, as: 'payloadType'
1231
+ collection :signatures, as: 'signatures', class: Google::Apis::OndemandscanningV1::EnvelopeSignature, decorator: Google::Apis::OndemandscanningV1::EnvelopeSignature::Representation
1232
+
1233
+ end
1234
+ end
1235
+
1236
+ class SbomReferenceIntotoPayload
1237
+ # @private
1238
+ class Representation < Google::Apis::Core::JsonRepresentation
1239
+ property :_type, as: '_type'
1240
+ property :predicate, as: 'predicate', class: Google::Apis::OndemandscanningV1::SbomReferenceIntotoPredicate, decorator: Google::Apis::OndemandscanningV1::SbomReferenceIntotoPredicate::Representation
1241
+
1242
+ property :predicate_type, as: 'predicateType'
1243
+ collection :subject, as: 'subject', class: Google::Apis::OndemandscanningV1::Subject, decorator: Google::Apis::OndemandscanningV1::Subject::Representation
1244
+
1245
+ end
1246
+ end
1247
+
1248
+ class SbomReferenceIntotoPredicate
1249
+ # @private
1250
+ class Representation < Google::Apis::Core::JsonRepresentation
1251
+ hash :digest, as: 'digest'
1252
+ property :location, as: 'location'
1253
+ property :mime_type, as: 'mimeType'
1254
+ property :referrer_id, as: 'referrerId'
1255
+ end
1256
+ end
1257
+
1185
1258
  class Signature
1186
1259
  # @private
1187
1260
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-ondemandscanning_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.0
4
+ version: 0.39.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-04-16 00:00:00.000000000 Z
11
+ date: 2023-05-28 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1/v0.37.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1/v0.39.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-ondemandscanning_v1
63
63
  post_install_message:
64
64
  rdoc_options: []