google-apis-ondemandscanning_v1 0.37.0 → 0.38.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: 4f4df01283484c4c0a09ec01ad2cdd6caa02c4db300d011bd94bb1597e177561
4
- data.tar.gz: ab55f3a32012b7f2b2c6f62c88df2a55819e5174956dc22221c7f0908e432373
3
+ metadata.gz: 6e34d77e5870880579179c7b2bd9273665f3d35be3cdd0a8b9ae01927ffd90b8
4
+ data.tar.gz: 7773d412209a5cee3a3994f83cc8514415c6b7830a97c34ccd373dd57badfdd6
5
5
  SHA512:
6
- metadata.gz: 7ea7078039a927f4d9c6af41d785a52ce6ee37e7e290d2507aabf47b70203b4611a1ec5467e232966527432d251e6f078d3decbf24f2e49ef8bfc0c320ec5bcb
7
- data.tar.gz: 797fec5771da6489e2d77328e9445d292dbd252eb98ea35ec41cafda7cd9539b191ce8a6fc60957f4113562e0424d386da35250de81905e856d2b8f9cfe5727e
6
+ metadata.gz: 2304fb4df224a5bc34e35fb7dd20988d43538c3a126a22464d59d4072c970cdeb651e9f73a5986f48a557228f50e4db02448ca6e2b784397d61b69610d78f3ab
7
+ data.tar.gz: 3cf666c6fdb6cf22c86a4d68088326d18279cff2b2b27b1166f441b75c11ede07a8da729cfe40bc297ad71b58e8cb04c28061ae50ffbe6f6ea98bf7366002106
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-ondemandscanning_v1
2
2
 
3
+ ### v0.38.0 (2023-05-07)
4
+
5
+ * Regenerated from discovery document revision 20230501
6
+
3
7
  ### v0.37.0 (2023-04-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20230403
@@ -277,31 +277,6 @@ module Google
277
277
  end
278
278
  end
279
279
 
280
- #
281
- class Binary
282
- include Google::Apis::Core::Hashable
283
-
284
- #
285
- # Corresponds to the JSON property `name`
286
- # @return [String]
287
- attr_accessor :name
288
-
289
- #
290
- # Corresponds to the JSON property `version`
291
- # @return [String]
292
- attr_accessor :version
293
-
294
- def initialize(**args)
295
- update!(**args)
296
- end
297
-
298
- # Update properties of this object
299
- def update!(**args)
300
- @name = args[:name] if args.key?(:name)
301
- @version = args[:version] if args.key?(:version)
302
- end
303
- end
304
-
305
280
  # Details of a build occurrence.
306
281
  class BuildOccurrence
307
282
  include Google::Apis::Core::Hashable
@@ -1924,6 +1899,13 @@ module Google
1924
1899
  # @return [String]
1925
1900
  attr_accessor :resource_uri
1926
1901
 
1902
+ # The occurrence representing an SBOM reference as applied to a specific
1903
+ # resource. The occurrence follows the DSSE specification. See https://github.
1904
+ # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
1905
+ # Corresponds to the JSON property `sbomReference`
1906
+ # @return [Google::Apis::OndemandscanningV1::SbomReferenceOccurrence]
1907
+ attr_accessor :sbom_reference
1908
+
1927
1909
  # Output only. The time this occurrence was last updated.
1928
1910
  # Corresponds to the JSON property `updateTime`
1929
1911
  # @return [String]
@@ -1964,6 +1946,7 @@ module Google
1964
1946
  @package = args[:package] if args.key?(:package)
1965
1947
  @remediation = args[:remediation] if args.key?(:remediation)
1966
1948
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
1949
+ @sbom_reference = args[:sbom_reference] if args.key?(:sbom_reference)
1967
1950
  @update_time = args[:update_time] if args.key?(:update_time)
1968
1951
  @upgrade = args[:upgrade] if args.key?(:upgrade)
1969
1952
  @vulnerability = args[:vulnerability] if args.key?(:vulnerability)
@@ -2046,9 +2029,9 @@ module Google
2046
2029
  # source and its version in the package/version fields, but we should also store
2047
2030
  # the binary package info, as that's what's actually installed. See b/175908657#
2048
2031
  # comment15.
2049
- # Corresponds to the JSON property `binary`
2050
- # @return [Google::Apis::OndemandscanningV1::Binary]
2051
- attr_accessor :binary
2032
+ # Corresponds to the JSON property `binaryVersion`
2033
+ # @return [Google::Apis::OndemandscanningV1::PackageVersion]
2034
+ attr_accessor :binary_version
2052
2035
 
2053
2036
  # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
2054
2037
  # the vulnerability may manifest. Examples include distro or storage location
@@ -2107,6 +2090,14 @@ module Google
2107
2090
  # @return [Array<String>]
2108
2091
  attr_accessor :patched_cve
2109
2092
 
2093
+ # The source package. Similar to the above, this is significant when the source
2094
+ # is different than the binary itself. Since the top-level package/version
2095
+ # fields are based on an if/else, we need a separate field for both binary and
2096
+ # source if we want to know definitively where the data is coming from.
2097
+ # Corresponds to the JSON property `sourceVersion`
2098
+ # @return [Google::Apis::OndemandscanningV1::PackageVersion]
2099
+ attr_accessor :source_version
2100
+
2110
2101
  #
2111
2102
  # Corresponds to the JSON property `unused`
2112
2103
  # @return [String]
@@ -2124,7 +2115,7 @@ module Google
2124
2115
  # Update properties of this object
2125
2116
  def update!(**args)
2126
2117
  @architecture = args[:architecture] if args.key?(:architecture)
2127
- @binary = args[:binary] if args.key?(:binary)
2118
+ @binary_version = args[:binary_version] if args.key?(:binary_version)
2128
2119
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
2129
2120
  @dependency_chain = args[:dependency_chain] if args.key?(:dependency_chain)
2130
2121
  @file_location = args[:file_location] if args.key?(:file_location)
@@ -2135,6 +2126,7 @@ module Google
2135
2126
  @package = args[:package] if args.key?(:package)
2136
2127
  @package_type = args[:package_type] if args.key?(:package_type)
2137
2128
  @patched_cve = args[:patched_cve] if args.key?(:patched_cve)
2129
+ @source_version = args[:source_version] if args.key?(:source_version)
2138
2130
  @unused = args[:unused] if args.key?(:unused)
2139
2131
  @version = args[:version] if args.key?(:version)
2140
2132
  end
@@ -2280,6 +2272,31 @@ module Google
2280
2272
  end
2281
2273
  end
2282
2274
 
2275
+ #
2276
+ class PackageVersion
2277
+ include Google::Apis::Core::Hashable
2278
+
2279
+ #
2280
+ # Corresponds to the JSON property `name`
2281
+ # @return [String]
2282
+ attr_accessor :name
2283
+
2284
+ #
2285
+ # Corresponds to the JSON property `version`
2286
+ # @return [String]
2287
+ attr_accessor :version
2288
+
2289
+ def initialize(**args)
2290
+ update!(**args)
2291
+ end
2292
+
2293
+ # Update properties of this object
2294
+ def update!(**args)
2295
+ @name = args[:name] if args.key?(:name)
2296
+ @version = args[:version] if args.key?(:version)
2297
+ end
2298
+ end
2299
+
2283
2300
  # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31)
2284
2301
  # and a repo name within that project.
2285
2302
  class ProjectRepoId
@@ -2449,6 +2466,119 @@ module Google
2449
2466
  end
2450
2467
  end
2451
2468
 
2469
+ # The occurrence representing an SBOM reference as applied to a specific
2470
+ # resource. The occurrence follows the DSSE specification. See https://github.
2471
+ # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
2472
+ class SbomReferenceOccurrence
2473
+ include Google::Apis::Core::Hashable
2474
+
2475
+ # The actual payload that contains the SBOM Reference data. The payload follows
2476
+ # the intoto statement specification. See https://github.com/in-toto/attestation/
2477
+ # blob/main/spec/v1.0/statement.md for more details.
2478
+ # Corresponds to the JSON property `payload`
2479
+ # @return [Google::Apis::OndemandscanningV1::SbomReferenceIntotoPayload]
2480
+ attr_accessor :payload
2481
+
2482
+ # The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the
2483
+ # intoto format, this value is expected to be 'application/vnd.in-toto+json'.
2484
+ # Corresponds to the JSON property `payloadType`
2485
+ # @return [String]
2486
+ attr_accessor :payload_type
2487
+
2488
+ # The signatures over the payload.
2489
+ # Corresponds to the JSON property `signatures`
2490
+ # @return [Array<Google::Apis::OndemandscanningV1::EnvelopeSignature>]
2491
+ attr_accessor :signatures
2492
+
2493
+ def initialize(**args)
2494
+ update!(**args)
2495
+ end
2496
+
2497
+ # Update properties of this object
2498
+ def update!(**args)
2499
+ @payload = args[:payload] if args.key?(:payload)
2500
+ @payload_type = args[:payload_type] if args.key?(:payload_type)
2501
+ @signatures = args[:signatures] if args.key?(:signatures)
2502
+ end
2503
+ end
2504
+
2505
+ # The actual payload that contains the SBOM Reference data. The payload follows
2506
+ # the intoto statement specification. See https://github.com/in-toto/attestation/
2507
+ # blob/main/spec/v1.0/statement.md for more details.
2508
+ class SbomReferenceIntotoPayload
2509
+ include Google::Apis::Core::Hashable
2510
+
2511
+ # Identifier for the schema of the Statement.
2512
+ # Corresponds to the JSON property `_type`
2513
+ # @return [String]
2514
+ attr_accessor :_type
2515
+
2516
+ # A predicate which describes the SBOM being referenced.
2517
+ # Corresponds to the JSON property `predicate`
2518
+ # @return [Google::Apis::OndemandscanningV1::SbomReferenceIntotoPredicate]
2519
+ attr_accessor :predicate
2520
+
2521
+ # URI identifying the type of the Predicate.
2522
+ # Corresponds to the JSON property `predicateType`
2523
+ # @return [String]
2524
+ attr_accessor :predicate_type
2525
+
2526
+ # Set of software artifacts that the attestation applies to. Each element
2527
+ # represents a single software artifact.
2528
+ # Corresponds to the JSON property `subject`
2529
+ # @return [Array<Google::Apis::OndemandscanningV1::Subject>]
2530
+ attr_accessor :subject
2531
+
2532
+ def initialize(**args)
2533
+ update!(**args)
2534
+ end
2535
+
2536
+ # Update properties of this object
2537
+ def update!(**args)
2538
+ @_type = args[:_type] if args.key?(:_type)
2539
+ @predicate = args[:predicate] if args.key?(:predicate)
2540
+ @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
2541
+ @subject = args[:subject] if args.key?(:subject)
2542
+ end
2543
+ end
2544
+
2545
+ # A predicate which describes the SBOM being referenced.
2546
+ class SbomReferenceIntotoPredicate
2547
+ include Google::Apis::Core::Hashable
2548
+
2549
+ # A map of algorithm to digest of the contents of the SBOM.
2550
+ # Corresponds to the JSON property `digest`
2551
+ # @return [Hash<String,String>]
2552
+ attr_accessor :digest
2553
+
2554
+ # The location of the SBOM.
2555
+ # Corresponds to the JSON property `location`
2556
+ # @return [String]
2557
+ attr_accessor :location
2558
+
2559
+ # The mime type of the SBOM.
2560
+ # Corresponds to the JSON property `mimeType`
2561
+ # @return [String]
2562
+ attr_accessor :mime_type
2563
+
2564
+ # The person or system referring this predicate to the consumer.
2565
+ # Corresponds to the JSON property `referrerId`
2566
+ # @return [String]
2567
+ attr_accessor :referrer_id
2568
+
2569
+ def initialize(**args)
2570
+ update!(**args)
2571
+ end
2572
+
2573
+ # Update properties of this object
2574
+ def update!(**args)
2575
+ @digest = args[:digest] if args.key?(:digest)
2576
+ @location = args[:location] if args.key?(:location)
2577
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2578
+ @referrer_id = args[:referrer_id] if args.key?(:referrer_id)
2579
+ end
2580
+ end
2581
+
2452
2582
  # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to
2453
2583
  # the trust anchors defined in policy (e.g. a Kritis policy). Typically this
2454
2584
  # 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.38.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 = "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
 
@@ -583,14 +601,6 @@ module Google
583
601
  end
584
602
  end
585
603
 
586
- class Binary
587
- # @private
588
- class Representation < Google::Apis::Core::JsonRepresentation
589
- property :name, as: 'name'
590
- property :version, as: 'version'
591
- end
592
- end
593
-
594
604
  class BuildOccurrence
595
605
  # @private
596
606
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1057,6 +1067,8 @@ module Google
1057
1067
 
1058
1068
  property :remediation, as: 'remediation'
1059
1069
  property :resource_uri, as: 'resourceUri'
1070
+ property :sbom_reference, as: 'sbomReference', class: Google::Apis::OndemandscanningV1::SbomReferenceOccurrence, decorator: Google::Apis::OndemandscanningV1::SbomReferenceOccurrence::Representation
1071
+
1060
1072
  property :update_time, as: 'updateTime'
1061
1073
  property :upgrade, as: 'upgrade', class: Google::Apis::OndemandscanningV1::UpgradeOccurrence, decorator: Google::Apis::OndemandscanningV1::UpgradeOccurrence::Representation
1062
1074
 
@@ -1081,7 +1093,7 @@ module Google
1081
1093
  # @private
1082
1094
  class Representation < Google::Apis::Core::JsonRepresentation
1083
1095
  property :architecture, as: 'architecture'
1084
- property :binary, as: 'binary', class: Google::Apis::OndemandscanningV1::Binary, decorator: Google::Apis::OndemandscanningV1::Binary::Representation
1096
+ property :binary_version, as: 'binaryVersion', class: Google::Apis::OndemandscanningV1::PackageVersion, decorator: Google::Apis::OndemandscanningV1::PackageVersion::Representation
1085
1097
 
1086
1098
  property :cpe_uri, as: 'cpeUri'
1087
1099
  collection :dependency_chain, as: 'dependencyChain', class: Google::Apis::OndemandscanningV1::LanguagePackageDependency, decorator: Google::Apis::OndemandscanningV1::LanguagePackageDependency::Representation
@@ -1096,6 +1108,8 @@ module Google
1096
1108
  property :package, as: 'package'
1097
1109
  property :package_type, as: 'packageType'
1098
1110
  collection :patched_cve, as: 'patchedCve'
1111
+ property :source_version, as: 'sourceVersion', class: Google::Apis::OndemandscanningV1::PackageVersion, decorator: Google::Apis::OndemandscanningV1::PackageVersion::Representation
1112
+
1099
1113
  property :unused, as: 'unused'
1100
1114
  property :version, as: 'version'
1101
1115
  end
@@ -1136,6 +1150,14 @@ module Google
1136
1150
  end
1137
1151
  end
1138
1152
 
1153
+ class PackageVersion
1154
+ # @private
1155
+ class Representation < Google::Apis::Core::JsonRepresentation
1156
+ property :name, as: 'name'
1157
+ property :version, as: 'version'
1158
+ end
1159
+ end
1160
+
1139
1161
  class ProjectRepoId
1140
1162
  # @private
1141
1163
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1182,6 +1204,39 @@ module Google
1182
1204
  end
1183
1205
  end
1184
1206
 
1207
+ class SbomReferenceOccurrence
1208
+ # @private
1209
+ class Representation < Google::Apis::Core::JsonRepresentation
1210
+ property :payload, as: 'payload', class: Google::Apis::OndemandscanningV1::SbomReferenceIntotoPayload, decorator: Google::Apis::OndemandscanningV1::SbomReferenceIntotoPayload::Representation
1211
+
1212
+ property :payload_type, as: 'payloadType'
1213
+ collection :signatures, as: 'signatures', class: Google::Apis::OndemandscanningV1::EnvelopeSignature, decorator: Google::Apis::OndemandscanningV1::EnvelopeSignature::Representation
1214
+
1215
+ end
1216
+ end
1217
+
1218
+ class SbomReferenceIntotoPayload
1219
+ # @private
1220
+ class Representation < Google::Apis::Core::JsonRepresentation
1221
+ property :_type, as: '_type'
1222
+ property :predicate, as: 'predicate', class: Google::Apis::OndemandscanningV1::SbomReferenceIntotoPredicate, decorator: Google::Apis::OndemandscanningV1::SbomReferenceIntotoPredicate::Representation
1223
+
1224
+ property :predicate_type, as: 'predicateType'
1225
+ collection :subject, as: 'subject', class: Google::Apis::OndemandscanningV1::Subject, decorator: Google::Apis::OndemandscanningV1::Subject::Representation
1226
+
1227
+ end
1228
+ end
1229
+
1230
+ class SbomReferenceIntotoPredicate
1231
+ # @private
1232
+ class Representation < Google::Apis::Core::JsonRepresentation
1233
+ hash :digest, as: 'digest'
1234
+ property :location, as: 'location'
1235
+ property :mime_type, as: 'mimeType'
1236
+ property :referrer_id, as: 'referrerId'
1237
+ end
1238
+ end
1239
+
1185
1240
  class Signature
1186
1241
  # @private
1187
1242
  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.38.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_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.38.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: []