google-apis-ondemandscanning_v1beta1 0.35.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: dbd715bd19cf20b53b2115c6a176acec109a0ddfa998839859587ee0b72b356c
4
- data.tar.gz: 9aa345c96e05e2ddb292a0f13d3a9d0e43e92b628822273dc1ff6ccefb356e5f
3
+ metadata.gz: f57200ab17f0db8719a511301471b36307efad541683f3c70e9c2840b9780add
4
+ data.tar.gz: e669ed11ffdf6cce45747a4426efba62b39334b7b2a2a161144de885f215c797
5
5
  SHA512:
6
- metadata.gz: 9cfd76b7c2e7c0c9723223114414ea506e0e3f5e937dca4d86c70180bd623be6ad87716d0f25dab01dd466b309fbb3c30a43e586e223228afa55cc0f59f63e0d
7
- data.tar.gz: 2e6a70b19d63ead88bac9ecf8696c280d73ff73191d757f35e09fd30f014fb6c17fbb4fe8a122a368039264480ca11aefa516c2b789fa4d6dce8c76b64626e9b
6
+ metadata.gz: 98be78d34cb1dec43fcba04d32d839ba56c6b4ee7fbbaf1a98b4eae1f9dd0222fc3c382a8fce090740dd8968dbbd0127bc83f34e035801ed9130efee7f11a6d3
7
+ data.tar.gz: 2c262a63da2247d3262c3fc8d9462e7241f1980fa402936445222bae93f2bd79835d0f4349aaf29f4cd12d9748a9ff17d92b18391cb0200845ed3e5ee5ddd86f
data/CHANGELOG.md CHANGED
@@ -1,8 +1,16 @@
1
1
  # Release history for google-apis-ondemandscanning_v1beta1
2
2
 
3
- ### v0.35.0 (2023-04-02)
3
+ ### v0.37.0 (2023-05-28)
4
4
 
5
- * Regenerated from discovery document revision 20230327
5
+ * Regenerated from discovery document revision 20230522
6
+
7
+ ### v0.36.0 (2023-05-07)
8
+
9
+ * Regenerated from discovery document revision 20230501
10
+
11
+ ### v0.35.0 (2023-04-16)
12
+
13
+ * Regenerated from discovery document revision 20230403
6
14
 
7
15
  ### v0.34.0 (2023-03-26)
8
16
 
@@ -270,18 +270,25 @@ module Google
270
270
  end
271
271
 
272
272
  #
273
- class Binary
273
+ class BinarySourceInfo
274
274
  include Google::Apis::Core::Hashable
275
275
 
276
- #
277
- # Corresponds to the JSON property `name`
278
- # @return [String]
279
- attr_accessor :name
276
+ # The binary package. This is significant when the source is different than the
277
+ # binary itself. Historically if they've differed, we've stored the name of the
278
+ # source and its version in the package/version fields, but we should also store
279
+ # the binary package info, as that's what's actually installed. See b/175908657#
280
+ # comment15.
281
+ # Corresponds to the JSON property `binaryVersion`
282
+ # @return [Google::Apis::OndemandscanningV1beta1::PackageVersion]
283
+ attr_accessor :binary_version
280
284
 
281
- #
282
- # Corresponds to the JSON property `version`
283
- # @return [String]
284
- attr_accessor :version
285
+ # The source package. Similar to the above, this is significant when the source
286
+ # is different than the binary itself. Since the top-level package/version
287
+ # fields are based on an if/else, we need a separate field for both binary and
288
+ # source if we want to know definitively where the data is coming from.
289
+ # Corresponds to the JSON property `sourceVersion`
290
+ # @return [Google::Apis::OndemandscanningV1beta1::PackageVersion]
291
+ attr_accessor :source_version
285
292
 
286
293
  def initialize(**args)
287
294
  update!(**args)
@@ -289,8 +296,8 @@ module Google
289
296
 
290
297
  # Update properties of this object
291
298
  def update!(**args)
292
- @name = args[:name] if args.key?(:name)
293
- @version = args[:version] if args.key?(:version)
299
+ @binary_version = args[:binary_version] if args.key?(:binary_version)
300
+ @source_version = args[:source_version] if args.key?(:source_version)
294
301
  end
295
302
  end
296
303
 
@@ -1916,6 +1923,13 @@ module Google
1916
1923
  # @return [String]
1917
1924
  attr_accessor :resource_uri
1918
1925
 
1926
+ # The occurrence representing an SBOM reference as applied to a specific
1927
+ # resource. The occurrence follows the DSSE specification. See https://github.
1928
+ # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
1929
+ # Corresponds to the JSON property `sbomReference`
1930
+ # @return [Google::Apis::OndemandscanningV1beta1::SbomReferenceOccurrence]
1931
+ attr_accessor :sbom_reference
1932
+
1919
1933
  # Output only. The time this occurrence was last updated.
1920
1934
  # Corresponds to the JSON property `updateTime`
1921
1935
  # @return [String]
@@ -1956,6 +1970,7 @@ module Google
1956
1970
  @package = args[:package] if args.key?(:package)
1957
1971
  @remediation = args[:remediation] if args.key?(:remediation)
1958
1972
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
1973
+ @sbom_reference = args[:sbom_reference] if args.key?(:sbom_reference)
1959
1974
  @update_time = args[:update_time] if args.key?(:update_time)
1960
1975
  @upgrade = args[:upgrade] if args.key?(:upgrade)
1961
1976
  @vulnerability = args[:vulnerability] if args.key?(:vulnerability)
@@ -2033,14 +2048,15 @@ module Google
2033
2048
  # @return [String]
2034
2049
  attr_accessor :architecture
2035
2050
 
2036
- # The binary package. This is significant when the source is different than the
2037
- # binary itself. Historically if they've differed, we've stored the name of the
2038
- # source and its version in the package/version fields, but we should also store
2039
- # the binary package info, as that's what's actually installed. See https://b.
2040
- # corp.google.com/issues/175908657#comment15
2041
- # Corresponds to the JSON property `binary`
2042
- # @return [Google::Apis::OndemandscanningV1beta1::Binary]
2043
- attr_accessor :binary
2051
+ # A bundle containing the binary and source information.
2052
+ # Corresponds to the JSON property `binarySourceInfo`
2053
+ # @return [Array<Google::Apis::OndemandscanningV1beta1::BinarySourceInfo>]
2054
+ attr_accessor :binary_source_info
2055
+
2056
+ # DEPRECATED
2057
+ # Corresponds to the JSON property `binaryVersion`
2058
+ # @return [Google::Apis::OndemandscanningV1beta1::PackageVersion]
2059
+ attr_accessor :binary_version
2044
2060
 
2045
2061
  # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
2046
2062
  # the vulnerability may manifest. Examples include distro or storage location
@@ -2099,6 +2115,11 @@ module Google
2099
2115
  # @return [Array<String>]
2100
2116
  attr_accessor :patched_cve
2101
2117
 
2118
+ # DEPRECATED
2119
+ # Corresponds to the JSON property `sourceVersion`
2120
+ # @return [Google::Apis::OndemandscanningV1beta1::PackageVersion]
2121
+ attr_accessor :source_version
2122
+
2102
2123
  #
2103
2124
  # Corresponds to the JSON property `unused`
2104
2125
  # @return [String]
@@ -2116,7 +2137,8 @@ module Google
2116
2137
  # Update properties of this object
2117
2138
  def update!(**args)
2118
2139
  @architecture = args[:architecture] if args.key?(:architecture)
2119
- @binary = args[:binary] if args.key?(:binary)
2140
+ @binary_source_info = args[:binary_source_info] if args.key?(:binary_source_info)
2141
+ @binary_version = args[:binary_version] if args.key?(:binary_version)
2120
2142
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
2121
2143
  @dependency_chain = args[:dependency_chain] if args.key?(:dependency_chain)
2122
2144
  @file_location = args[:file_location] if args.key?(:file_location)
@@ -2127,6 +2149,7 @@ module Google
2127
2149
  @package = args[:package] if args.key?(:package)
2128
2150
  @package_type = args[:package_type] if args.key?(:package_type)
2129
2151
  @patched_cve = args[:patched_cve] if args.key?(:patched_cve)
2152
+ @source_version = args[:source_version] if args.key?(:source_version)
2130
2153
  @unused = args[:unused] if args.key?(:unused)
2131
2154
  @version = args[:version] if args.key?(:version)
2132
2155
  end
@@ -2272,6 +2295,31 @@ module Google
2272
2295
  end
2273
2296
  end
2274
2297
 
2298
+ #
2299
+ class PackageVersion
2300
+ include Google::Apis::Core::Hashable
2301
+
2302
+ #
2303
+ # Corresponds to the JSON property `name`
2304
+ # @return [String]
2305
+ attr_accessor :name
2306
+
2307
+ #
2308
+ # Corresponds to the JSON property `version`
2309
+ # @return [String]
2310
+ attr_accessor :version
2311
+
2312
+ def initialize(**args)
2313
+ update!(**args)
2314
+ end
2315
+
2316
+ # Update properties of this object
2317
+ def update!(**args)
2318
+ @name = args[:name] if args.key?(:name)
2319
+ @version = args[:version] if args.key?(:version)
2320
+ end
2321
+ end
2322
+
2275
2323
  # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31)
2276
2324
  # and a repo name within that project.
2277
2325
  class ProjectRepoId
@@ -2441,6 +2489,119 @@ module Google
2441
2489
  end
2442
2490
  end
2443
2491
 
2492
+ # The occurrence representing an SBOM reference as applied to a specific
2493
+ # resource. The occurrence follows the DSSE specification. See https://github.
2494
+ # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
2495
+ class SbomReferenceOccurrence
2496
+ include Google::Apis::Core::Hashable
2497
+
2498
+ # The actual payload that contains the SBOM Reference data. The payload follows
2499
+ # the intoto statement specification. See https://github.com/in-toto/attestation/
2500
+ # blob/main/spec/v1.0/statement.md for more details.
2501
+ # Corresponds to the JSON property `payload`
2502
+ # @return [Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPayload]
2503
+ attr_accessor :payload
2504
+
2505
+ # The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the
2506
+ # intoto format, this value is expected to be 'application/vnd.in-toto+json'.
2507
+ # Corresponds to the JSON property `payloadType`
2508
+ # @return [String]
2509
+ attr_accessor :payload_type
2510
+
2511
+ # The signatures over the payload.
2512
+ # Corresponds to the JSON property `signatures`
2513
+ # @return [Array<Google::Apis::OndemandscanningV1beta1::EnvelopeSignature>]
2514
+ attr_accessor :signatures
2515
+
2516
+ def initialize(**args)
2517
+ update!(**args)
2518
+ end
2519
+
2520
+ # Update properties of this object
2521
+ def update!(**args)
2522
+ @payload = args[:payload] if args.key?(:payload)
2523
+ @payload_type = args[:payload_type] if args.key?(:payload_type)
2524
+ @signatures = args[:signatures] if args.key?(:signatures)
2525
+ end
2526
+ end
2527
+
2528
+ # The actual payload that contains the SBOM Reference data. The payload follows
2529
+ # the intoto statement specification. See https://github.com/in-toto/attestation/
2530
+ # blob/main/spec/v1.0/statement.md for more details.
2531
+ class SbomReferenceIntotoPayload
2532
+ include Google::Apis::Core::Hashable
2533
+
2534
+ # Identifier for the schema of the Statement.
2535
+ # Corresponds to the JSON property `_type`
2536
+ # @return [String]
2537
+ attr_accessor :_type
2538
+
2539
+ # A predicate which describes the SBOM being referenced.
2540
+ # Corresponds to the JSON property `predicate`
2541
+ # @return [Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPredicate]
2542
+ attr_accessor :predicate
2543
+
2544
+ # URI identifying the type of the Predicate.
2545
+ # Corresponds to the JSON property `predicateType`
2546
+ # @return [String]
2547
+ attr_accessor :predicate_type
2548
+
2549
+ # Set of software artifacts that the attestation applies to. Each element
2550
+ # represents a single software artifact.
2551
+ # Corresponds to the JSON property `subject`
2552
+ # @return [Array<Google::Apis::OndemandscanningV1beta1::Subject>]
2553
+ attr_accessor :subject
2554
+
2555
+ def initialize(**args)
2556
+ update!(**args)
2557
+ end
2558
+
2559
+ # Update properties of this object
2560
+ def update!(**args)
2561
+ @_type = args[:_type] if args.key?(:_type)
2562
+ @predicate = args[:predicate] if args.key?(:predicate)
2563
+ @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
2564
+ @subject = args[:subject] if args.key?(:subject)
2565
+ end
2566
+ end
2567
+
2568
+ # A predicate which describes the SBOM being referenced.
2569
+ class SbomReferenceIntotoPredicate
2570
+ include Google::Apis::Core::Hashable
2571
+
2572
+ # A map of algorithm to digest of the contents of the SBOM.
2573
+ # Corresponds to the JSON property `digest`
2574
+ # @return [Hash<String,String>]
2575
+ attr_accessor :digest
2576
+
2577
+ # The location of the SBOM.
2578
+ # Corresponds to the JSON property `location`
2579
+ # @return [String]
2580
+ attr_accessor :location
2581
+
2582
+ # The mime type of the SBOM.
2583
+ # Corresponds to the JSON property `mimeType`
2584
+ # @return [String]
2585
+ attr_accessor :mime_type
2586
+
2587
+ # The person or system referring this predicate to the consumer.
2588
+ # Corresponds to the JSON property `referrerId`
2589
+ # @return [String]
2590
+ attr_accessor :referrer_id
2591
+
2592
+ def initialize(**args)
2593
+ update!(**args)
2594
+ end
2595
+
2596
+ # Update properties of this object
2597
+ def update!(**args)
2598
+ @digest = args[:digest] if args.key?(:digest)
2599
+ @location = args[:location] if args.key?(:location)
2600
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2601
+ @referrer_id = args[:referrer_id] if args.key?(:referrer_id)
2602
+ end
2603
+ end
2604
+
2444
2605
  # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to
2445
2606
  # the trust anchors defined in policy (e.g. a Kritis policy). Typically this
2446
2607
  # 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.35.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 = "20230327"
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
 
@@ -582,11 +606,13 @@ module Google
582
606
  end
583
607
  end
584
608
 
585
- class Binary
609
+ class BinarySourceInfo
586
610
  # @private
587
611
  class Representation < Google::Apis::Core::JsonRepresentation
588
- property :name, as: 'name'
589
- property :version, as: 'version'
612
+ property :binary_version, as: 'binaryVersion', class: Google::Apis::OndemandscanningV1beta1::PackageVersion, decorator: Google::Apis::OndemandscanningV1beta1::PackageVersion::Representation
613
+
614
+ property :source_version, as: 'sourceVersion', class: Google::Apis::OndemandscanningV1beta1::PackageVersion, decorator: Google::Apis::OndemandscanningV1beta1::PackageVersion::Representation
615
+
590
616
  end
591
617
  end
592
618
 
@@ -1056,6 +1082,8 @@ module Google
1056
1082
 
1057
1083
  property :remediation, as: 'remediation'
1058
1084
  property :resource_uri, as: 'resourceUri'
1085
+ property :sbom_reference, as: 'sbomReference', class: Google::Apis::OndemandscanningV1beta1::SbomReferenceOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::SbomReferenceOccurrence::Representation
1086
+
1059
1087
  property :update_time, as: 'updateTime'
1060
1088
  property :upgrade, as: 'upgrade', class: Google::Apis::OndemandscanningV1beta1::UpgradeOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::UpgradeOccurrence::Representation
1061
1089
 
@@ -1080,7 +1108,9 @@ module Google
1080
1108
  # @private
1081
1109
  class Representation < Google::Apis::Core::JsonRepresentation
1082
1110
  property :architecture, as: 'architecture'
1083
- property :binary, as: 'binary', class: Google::Apis::OndemandscanningV1beta1::Binary, decorator: Google::Apis::OndemandscanningV1beta1::Binary::Representation
1111
+ collection :binary_source_info, as: 'binarySourceInfo', class: Google::Apis::OndemandscanningV1beta1::BinarySourceInfo, decorator: Google::Apis::OndemandscanningV1beta1::BinarySourceInfo::Representation
1112
+
1113
+ property :binary_version, as: 'binaryVersion', class: Google::Apis::OndemandscanningV1beta1::PackageVersion, decorator: Google::Apis::OndemandscanningV1beta1::PackageVersion::Representation
1084
1114
 
1085
1115
  property :cpe_uri, as: 'cpeUri'
1086
1116
  collection :dependency_chain, as: 'dependencyChain', class: Google::Apis::OndemandscanningV1beta1::LanguagePackageDependency, decorator: Google::Apis::OndemandscanningV1beta1::LanguagePackageDependency::Representation
@@ -1095,6 +1125,8 @@ module Google
1095
1125
  property :package, as: 'package'
1096
1126
  property :package_type, as: 'packageType'
1097
1127
  collection :patched_cve, as: 'patchedCve'
1128
+ property :source_version, as: 'sourceVersion', class: Google::Apis::OndemandscanningV1beta1::PackageVersion, decorator: Google::Apis::OndemandscanningV1beta1::PackageVersion::Representation
1129
+
1098
1130
  property :unused, as: 'unused'
1099
1131
  property :version, as: 'version'
1100
1132
  end
@@ -1135,6 +1167,14 @@ module Google
1135
1167
  end
1136
1168
  end
1137
1169
 
1170
+ class PackageVersion
1171
+ # @private
1172
+ class Representation < Google::Apis::Core::JsonRepresentation
1173
+ property :name, as: 'name'
1174
+ property :version, as: 'version'
1175
+ end
1176
+ end
1177
+
1138
1178
  class ProjectRepoId
1139
1179
  # @private
1140
1180
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1181,6 +1221,39 @@ module Google
1181
1221
  end
1182
1222
  end
1183
1223
 
1224
+ class SbomReferenceOccurrence
1225
+ # @private
1226
+ class Representation < Google::Apis::Core::JsonRepresentation
1227
+ property :payload, as: 'payload', class: Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPayload, decorator: Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPayload::Representation
1228
+
1229
+ property :payload_type, as: 'payloadType'
1230
+ collection :signatures, as: 'signatures', class: Google::Apis::OndemandscanningV1beta1::EnvelopeSignature, decorator: Google::Apis::OndemandscanningV1beta1::EnvelopeSignature::Representation
1231
+
1232
+ end
1233
+ end
1234
+
1235
+ class SbomReferenceIntotoPayload
1236
+ # @private
1237
+ class Representation < Google::Apis::Core::JsonRepresentation
1238
+ property :_type, as: '_type'
1239
+ property :predicate, as: 'predicate', class: Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPredicate, decorator: Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPredicate::Representation
1240
+
1241
+ property :predicate_type, as: 'predicateType'
1242
+ collection :subject, as: 'subject', class: Google::Apis::OndemandscanningV1beta1::Subject, decorator: Google::Apis::OndemandscanningV1beta1::Subject::Representation
1243
+
1244
+ end
1245
+ end
1246
+
1247
+ class SbomReferenceIntotoPredicate
1248
+ # @private
1249
+ class Representation < Google::Apis::Core::JsonRepresentation
1250
+ hash :digest, as: 'digest'
1251
+ property :location, as: 'location'
1252
+ property :mime_type, as: 'mimeType'
1253
+ property :referrer_id, as: 'referrerId'
1254
+ end
1255
+ end
1256
+
1184
1257
  class Signature
1185
1258
  # @private
1186
1259
  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.35.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-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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.35.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.37.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: []