google-apis-ondemandscanning_v1beta1 0.35.0 → 0.36.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: dbd715bd19cf20b53b2115c6a176acec109a0ddfa998839859587ee0b72b356c
4
- data.tar.gz: 9aa345c96e05e2ddb292a0f13d3a9d0e43e92b628822273dc1ff6ccefb356e5f
3
+ metadata.gz: df0fa2b60ab13954c212860f98da9152661c1b1270d7362a95c228da11641df4
4
+ data.tar.gz: a94cd525eb7b86571e0a92a25ee7516492fb71280cf050c466597917874d3e0b
5
5
  SHA512:
6
- metadata.gz: 9cfd76b7c2e7c0c9723223114414ea506e0e3f5e937dca4d86c70180bd623be6ad87716d0f25dab01dd466b309fbb3c30a43e586e223228afa55cc0f59f63e0d
7
- data.tar.gz: 2e6a70b19d63ead88bac9ecf8696c280d73ff73191d757f35e09fd30f014fb6c17fbb4fe8a122a368039264480ca11aefa516c2b789fa4d6dce8c76b64626e9b
6
+ metadata.gz: 023e03a5ab277d15525c5e88233ae38cd529a56390140e90ed87826bf8599d33e53cfb198d5372cc4f9565ee99193a4db090b941d1c1dd2d33f0baa46f6115dd
7
+ data.tar.gz: 3ee60f7dffa5c41ebcc41066d9956d00550d3e55720c15dcd408569162c73256015c4c27df310a5949da6343b74794deb4ecb9a452d43f1f0149ebebc4053774
data/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Release history for google-apis-ondemandscanning_v1beta1
2
2
 
3
- ### v0.35.0 (2023-04-02)
3
+ ### v0.36.0 (2023-05-07)
4
4
 
5
- * Regenerated from discovery document revision 20230327
5
+ * Regenerated from discovery document revision 20230501
6
+
7
+ ### v0.35.0 (2023-04-16)
8
+
9
+ * Regenerated from discovery document revision 20230403
6
10
 
7
11
  ### v0.34.0 (2023-03-26)
8
12
 
@@ -269,31 +269,6 @@ module Google
269
269
  end
270
270
  end
271
271
 
272
- #
273
- class Binary
274
- include Google::Apis::Core::Hashable
275
-
276
- #
277
- # Corresponds to the JSON property `name`
278
- # @return [String]
279
- attr_accessor :name
280
-
281
- #
282
- # Corresponds to the JSON property `version`
283
- # @return [String]
284
- attr_accessor :version
285
-
286
- def initialize(**args)
287
- update!(**args)
288
- end
289
-
290
- # Update properties of this object
291
- def update!(**args)
292
- @name = args[:name] if args.key?(:name)
293
- @version = args[:version] if args.key?(:version)
294
- end
295
- end
296
-
297
272
  # Details of a build occurrence.
298
273
  class BuildOccurrence
299
274
  include Google::Apis::Core::Hashable
@@ -1916,6 +1891,13 @@ module Google
1916
1891
  # @return [String]
1917
1892
  attr_accessor :resource_uri
1918
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
+
1919
1901
  # Output only. The time this occurrence was last updated.
1920
1902
  # Corresponds to the JSON property `updateTime`
1921
1903
  # @return [String]
@@ -1956,6 +1938,7 @@ module Google
1956
1938
  @package = args[:package] if args.key?(:package)
1957
1939
  @remediation = args[:remediation] if args.key?(:remediation)
1958
1940
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
1941
+ @sbom_reference = args[:sbom_reference] if args.key?(:sbom_reference)
1959
1942
  @update_time = args[:update_time] if args.key?(:update_time)
1960
1943
  @upgrade = args[:upgrade] if args.key?(:upgrade)
1961
1944
  @vulnerability = args[:vulnerability] if args.key?(:vulnerability)
@@ -2036,11 +2019,11 @@ module Google
2036
2019
  # The binary package. This is significant when the source is different than the
2037
2020
  # binary itself. Historically if they've differed, we've stored the name of the
2038
2021
  # 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
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
2044
2027
 
2045
2028
  # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
2046
2029
  # the vulnerability may manifest. Examples include distro or storage location
@@ -2099,6 +2082,14 @@ module Google
2099
2082
  # @return [Array<String>]
2100
2083
  attr_accessor :patched_cve
2101
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
+
2102
2093
  #
2103
2094
  # Corresponds to the JSON property `unused`
2104
2095
  # @return [String]
@@ -2116,7 +2107,7 @@ module Google
2116
2107
  # Update properties of this object
2117
2108
  def update!(**args)
2118
2109
  @architecture = args[:architecture] if args.key?(:architecture)
2119
- @binary = args[:binary] if args.key?(:binary)
2110
+ @binary_version = args[:binary_version] if args.key?(:binary_version)
2120
2111
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
2121
2112
  @dependency_chain = args[:dependency_chain] if args.key?(:dependency_chain)
2122
2113
  @file_location = args[:file_location] if args.key?(:file_location)
@@ -2127,6 +2118,7 @@ module Google
2127
2118
  @package = args[:package] if args.key?(:package)
2128
2119
  @package_type = args[:package_type] if args.key?(:package_type)
2129
2120
  @patched_cve = args[:patched_cve] if args.key?(:patched_cve)
2121
+ @source_version = args[:source_version] if args.key?(:source_version)
2130
2122
  @unused = args[:unused] if args.key?(:unused)
2131
2123
  @version = args[:version] if args.key?(:version)
2132
2124
  end
@@ -2272,6 +2264,31 @@ module Google
2272
2264
  end
2273
2265
  end
2274
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
+
2275
2292
  # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31)
2276
2293
  # and a repo name within that project.
2277
2294
  class ProjectRepoId
@@ -2441,6 +2458,119 @@ module Google
2441
2458
  end
2442
2459
  end
2443
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
+
2444
2574
  # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to
2445
2575
  # the trust anchors defined in policy (e.g. a Kritis policy). Typically this
2446
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.35.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 = "20230327"
25
+ REVISION = "20230501"
26
26
  end
27
27
  end
28
28
  end
@@ -76,12 +76,6 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class Binary
80
- class Representation < Google::Apis::Core::JsonRepresentation; end
81
-
82
- include Google::Apis::Core::JsonObjectSupport
83
- end
84
-
85
79
  class BuildOccurrence
86
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
81
 
@@ -376,6 +370,12 @@ module Google
376
370
  include Google::Apis::Core::JsonObjectSupport
377
371
  end
378
372
 
373
+ class PackageVersion
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
379
379
  class ProjectRepoId
380
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
381
 
@@ -406,6 +406,24 @@ module Google
406
406
  include Google::Apis::Core::JsonObjectSupport
407
407
  end
408
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
+
409
427
  class Signature
410
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
411
429
 
@@ -582,14 +600,6 @@ module Google
582
600
  end
583
601
  end
584
602
 
585
- class Binary
586
- # @private
587
- class Representation < Google::Apis::Core::JsonRepresentation
588
- property :name, as: 'name'
589
- property :version, as: 'version'
590
- end
591
- end
592
-
593
603
  class BuildOccurrence
594
604
  # @private
595
605
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1056,6 +1066,8 @@ module Google
1056
1066
 
1057
1067
  property :remediation, as: 'remediation'
1058
1068
  property :resource_uri, as: 'resourceUri'
1069
+ property :sbom_reference, as: 'sbomReference', class: Google::Apis::OndemandscanningV1beta1::SbomReferenceOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::SbomReferenceOccurrence::Representation
1070
+
1059
1071
  property :update_time, as: 'updateTime'
1060
1072
  property :upgrade, as: 'upgrade', class: Google::Apis::OndemandscanningV1beta1::UpgradeOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::UpgradeOccurrence::Representation
1061
1073
 
@@ -1080,7 +1092,7 @@ module Google
1080
1092
  # @private
1081
1093
  class Representation < Google::Apis::Core::JsonRepresentation
1082
1094
  property :architecture, as: 'architecture'
1083
- property :binary, as: 'binary', class: Google::Apis::OndemandscanningV1beta1::Binary, decorator: Google::Apis::OndemandscanningV1beta1::Binary::Representation
1095
+ property :binary_version, as: 'binaryVersion', class: Google::Apis::OndemandscanningV1beta1::PackageVersion, decorator: Google::Apis::OndemandscanningV1beta1::PackageVersion::Representation
1084
1096
 
1085
1097
  property :cpe_uri, as: 'cpeUri'
1086
1098
  collection :dependency_chain, as: 'dependencyChain', class: Google::Apis::OndemandscanningV1beta1::LanguagePackageDependency, decorator: Google::Apis::OndemandscanningV1beta1::LanguagePackageDependency::Representation
@@ -1095,6 +1107,8 @@ module Google
1095
1107
  property :package, as: 'package'
1096
1108
  property :package_type, as: 'packageType'
1097
1109
  collection :patched_cve, as: 'patchedCve'
1110
+ property :source_version, as: 'sourceVersion', class: Google::Apis::OndemandscanningV1beta1::PackageVersion, decorator: Google::Apis::OndemandscanningV1beta1::PackageVersion::Representation
1111
+
1098
1112
  property :unused, as: 'unused'
1099
1113
  property :version, as: 'version'
1100
1114
  end
@@ -1135,6 +1149,14 @@ module Google
1135
1149
  end
1136
1150
  end
1137
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
+
1138
1160
  class ProjectRepoId
1139
1161
  # @private
1140
1162
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1181,6 +1203,39 @@ module Google
1181
1203
  end
1182
1204
  end
1183
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
+
1184
1239
  class Signature
1185
1240
  # @private
1186
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.35.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-04-16 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.35.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: []