google-apis-ondemandscanning_v1 0.38.0 → 0.40.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: 6e34d77e5870880579179c7b2bd9273665f3d35be3cdd0a8b9ae01927ffd90b8
4
- data.tar.gz: 7773d412209a5cee3a3994f83cc8514415c6b7830a97c34ccd373dd57badfdd6
3
+ metadata.gz: 9e0e34757811de970cc79b981fe45d1c5cb9e613b7818bbb8233b43ce5571a2d
4
+ data.tar.gz: 10ba692ff95117e6e0b3496329a0bb9445a584dee6d92d38fb640dc1919882b9
5
5
  SHA512:
6
- metadata.gz: 2304fb4df224a5bc34e35fb7dd20988d43538c3a126a22464d59d4072c970cdeb651e9f73a5986f48a557228f50e4db02448ca6e2b784397d61b69610d78f3ab
7
- data.tar.gz: 3cf666c6fdb6cf22c86a4d68088326d18279cff2b2b27b1166f441b75c11ede07a8da729cfe40bc297ad71b58e8cb04c28061ae50ffbe6f6ea98bf7366002106
6
+ metadata.gz: 9520e6e526587a4e55ea4538f91f80cb01fbc584bb65c329eb466d23535e288ad8cfa1236893d7eed6d7ac60851c4e1f2821b0a1ec9762afab63db2e1e5feae4
7
+ data.tar.gz: c1ecc6fda5e49bf5594707e18d68079dfc3b90737ceaaa8894f37a620871142edcf1c4f9b1a8b97dad3a24983b2b9dafea24377031879a39961b9d744982fe05
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-ondemandscanning_v1
2
2
 
3
+ ### v0.40.0 (2023-07-16)
4
+
5
+ * Regenerated from discovery document revision 20230710
6
+
7
+ ### v0.39.0 (2023-05-28)
8
+
9
+ * Regenerated from discovery document revision 20230522
10
+
3
11
  ### v0.38.0 (2023-05-07)
4
12
 
5
13
  * Regenerated from discovery document revision 20230501
@@ -277,10 +277,117 @@ module Google
277
277
  end
278
278
  end
279
279
 
280
+ #
281
+ class BinarySourceInfo
282
+ include Google::Apis::Core::Hashable
283
+
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
292
+
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
300
+
301
+ def initialize(**args)
302
+ update!(**args)
303
+ end
304
+
305
+ # Update properties of this object
306
+ def update!(**args)
307
+ @binary_version = args[:binary_version] if args.key?(:binary_version)
308
+ @source_version = args[:source_version] if args.key?(:source_version)
309
+ end
310
+ end
311
+
312
+ #
313
+ class BuildDefinition
314
+ include Google::Apis::Core::Hashable
315
+
316
+ #
317
+ # Corresponds to the JSON property `buildType`
318
+ # @return [String]
319
+ attr_accessor :build_type
320
+
321
+ #
322
+ # Corresponds to the JSON property `externalParameters`
323
+ # @return [Hash<String,Object>]
324
+ attr_accessor :external_parameters
325
+
326
+ #
327
+ # Corresponds to the JSON property `internalParameters`
328
+ # @return [Hash<String,Object>]
329
+ attr_accessor :internal_parameters
330
+
331
+ #
332
+ # Corresponds to the JSON property `resolvedDependencies`
333
+ # @return [Array<Google::Apis::OndemandscanningV1::ResourceDescriptor>]
334
+ attr_accessor :resolved_dependencies
335
+
336
+ def initialize(**args)
337
+ update!(**args)
338
+ end
339
+
340
+ # Update properties of this object
341
+ def update!(**args)
342
+ @build_type = args[:build_type] if args.key?(:build_type)
343
+ @external_parameters = args[:external_parameters] if args.key?(:external_parameters)
344
+ @internal_parameters = args[:internal_parameters] if args.key?(:internal_parameters)
345
+ @resolved_dependencies = args[:resolved_dependencies] if args.key?(:resolved_dependencies)
346
+ end
347
+ end
348
+
349
+ #
350
+ class BuildMetadata
351
+ include Google::Apis::Core::Hashable
352
+
353
+ #
354
+ # Corresponds to the JSON property `finishedOn`
355
+ # @return [String]
356
+ attr_accessor :finished_on
357
+
358
+ #
359
+ # Corresponds to the JSON property `invocationId`
360
+ # @return [String]
361
+ attr_accessor :invocation_id
362
+
363
+ #
364
+ # Corresponds to the JSON property `startedOn`
365
+ # @return [String]
366
+ attr_accessor :started_on
367
+
368
+ def initialize(**args)
369
+ update!(**args)
370
+ end
371
+
372
+ # Update properties of this object
373
+ def update!(**args)
374
+ @finished_on = args[:finished_on] if args.key?(:finished_on)
375
+ @invocation_id = args[:invocation_id] if args.key?(:invocation_id)
376
+ @started_on = args[:started_on] if args.key?(:started_on)
377
+ end
378
+ end
379
+
280
380
  # Details of a build occurrence.
281
381
  class BuildOccurrence
282
382
  include Google::Apis::Core::Hashable
283
383
 
384
+ # In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec,
385
+ # wrapped in an in-toto statement. This allows for direct jsonification of a to-
386
+ # spec in-toto slsa statement with a to-spec slsa provenance.
387
+ # Corresponds to the JSON property `inTotoSlsaProvenanceV1`
388
+ # @return [Google::Apis::OndemandscanningV1::InTotoSlsaProvenanceV1]
389
+ attr_accessor :in_toto_slsa_provenance_v1
390
+
284
391
  # Deprecated. See InTotoStatement for the replacement. In-toto Provenance
285
392
  # representation as defined in spec.
286
393
  # Corresponds to the JSON property `intotoProvenance`
@@ -318,6 +425,7 @@ module Google
318
425
 
319
426
  # Update properties of this object
320
427
  def update!(**args)
428
+ @in_toto_slsa_provenance_v1 = args[:in_toto_slsa_provenance_v1] if args.key?(:in_toto_slsa_provenance_v1)
321
429
  @intoto_provenance = args[:intoto_provenance] if args.key?(:intoto_provenance)
322
430
  @intoto_statement = args[:intoto_statement] if args.key?(:intoto_statement)
323
431
  @provenance = args[:provenance] if args.key?(:provenance)
@@ -837,6 +945,11 @@ module Google
837
945
  # @return [String]
838
946
  attr_accessor :last_scan_time
839
947
 
948
+ # The status of an SBOM generation.
949
+ # Corresponds to the JSON property `sbomStatus`
950
+ # @return [Google::Apis::OndemandscanningV1::SbomStatus]
951
+ attr_accessor :sbom_status
952
+
840
953
  def initialize(**args)
841
954
  update!(**args)
842
955
  end
@@ -851,6 +964,7 @@ module Google
851
964
  @continuous_analysis = args[:continuous_analysis] if args.key?(:continuous_analysis)
852
965
  @cpe = args[:cpe] if args.key?(:cpe)
853
966
  @last_scan_time = args[:last_scan_time] if args.key?(:last_scan_time)
967
+ @sbom_status = args[:sbom_status] if args.key?(:sbom_status)
854
968
  end
855
969
  end
856
970
 
@@ -1410,6 +1524,46 @@ module Google
1410
1524
  end
1411
1525
  end
1412
1526
 
1527
+ #
1528
+ class InTotoSlsaProvenanceV1
1529
+ include Google::Apis::Core::Hashable
1530
+
1531
+ # InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#
1532
+ # statement
1533
+ # Corresponds to the JSON property `_type`
1534
+ # @return [String]
1535
+ attr_accessor :_type
1536
+
1537
+ # Keep in sync with schema at https://github.com/slsa-framework/slsa/blob/main/
1538
+ # docs/provenance/schema/v1/provenance.proto Builder renamed to
1539
+ # ProvenanceBuilder because of Java conflicts.
1540
+ # Corresponds to the JSON property `predicate`
1541
+ # @return [Google::Apis::OndemandscanningV1::SlsaProvenanceV1]
1542
+ attr_accessor :predicate
1543
+
1544
+ #
1545
+ # Corresponds to the JSON property `predicateType`
1546
+ # @return [String]
1547
+ attr_accessor :predicate_type
1548
+
1549
+ #
1550
+ # Corresponds to the JSON property `subject`
1551
+ # @return [Array<Google::Apis::OndemandscanningV1::Subject>]
1552
+ attr_accessor :subject
1553
+
1554
+ def initialize(**args)
1555
+ update!(**args)
1556
+ end
1557
+
1558
+ # Update properties of this object
1559
+ def update!(**args)
1560
+ @_type = args[:_type] if args.key?(:_type)
1561
+ @predicate = args[:predicate] if args.key?(:predicate)
1562
+ @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
1563
+ @subject = args[:subject] if args.key?(:subject)
1564
+ end
1565
+ end
1566
+
1413
1567
  # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#
1414
1568
  # statement The serialized InTotoStatement will be stored as Envelope.payload.
1415
1569
  # Envelope.payloadType is always "application/vnd.in-toto+json".
@@ -2024,11 +2178,12 @@ module Google
2024
2178
  # @return [String]
2025
2179
  attr_accessor :architecture
2026
2180
 
2027
- # The binary package. This is significant when the source is different than the
2028
- # binary itself. Historically if they've differed, we've stored the name of the
2029
- # source and its version in the package/version fields, but we should also store
2030
- # the binary package info, as that's what's actually installed. See b/175908657#
2031
- # comment15.
2181
+ # A bundle containing the binary and source information.
2182
+ # Corresponds to the JSON property `binarySourceInfo`
2183
+ # @return [Array<Google::Apis::OndemandscanningV1::BinarySourceInfo>]
2184
+ attr_accessor :binary_source_info
2185
+
2186
+ # DEPRECATED
2032
2187
  # Corresponds to the JSON property `binaryVersion`
2033
2188
  # @return [Google::Apis::OndemandscanningV1::PackageVersion]
2034
2189
  attr_accessor :binary_version
@@ -2090,10 +2245,7 @@ module Google
2090
2245
  # @return [Array<String>]
2091
2246
  attr_accessor :patched_cve
2092
2247
 
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.
2248
+ # DEPRECATED
2097
2249
  # Corresponds to the JSON property `sourceVersion`
2098
2250
  # @return [Google::Apis::OndemandscanningV1::PackageVersion]
2099
2251
  attr_accessor :source_version
@@ -2115,6 +2267,7 @@ module Google
2115
2267
  # Update properties of this object
2116
2268
  def update!(**args)
2117
2269
  @architecture = args[:architecture] if args.key?(:architecture)
2270
+ @binary_source_info = args[:binary_source_info] if args.key?(:binary_source_info)
2118
2271
  @binary_version = args[:binary_version] if args.key?(:binary_version)
2119
2272
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
2120
2273
  @dependency_chain = args[:dependency_chain] if args.key?(:dependency_chain)
@@ -2323,6 +2476,37 @@ module Google
2323
2476
  end
2324
2477
  end
2325
2478
 
2479
+ #
2480
+ class ProvenanceBuilder
2481
+ include Google::Apis::Core::Hashable
2482
+
2483
+ #
2484
+ # Corresponds to the JSON property `builderDependencies`
2485
+ # @return [Array<Google::Apis::OndemandscanningV1::ResourceDescriptor>]
2486
+ attr_accessor :builder_dependencies
2487
+
2488
+ #
2489
+ # Corresponds to the JSON property `id`
2490
+ # @return [String]
2491
+ attr_accessor :id
2492
+
2493
+ #
2494
+ # Corresponds to the JSON property `version`
2495
+ # @return [Hash<String,String>]
2496
+ attr_accessor :version
2497
+
2498
+ def initialize(**args)
2499
+ update!(**args)
2500
+ end
2501
+
2502
+ # Update properties of this object
2503
+ def update!(**args)
2504
+ @builder_dependencies = args[:builder_dependencies] if args.key?(:builder_dependencies)
2505
+ @id = args[:id] if args.key?(:id)
2506
+ @version = args[:version] if args.key?(:version)
2507
+ end
2508
+ end
2509
+
2326
2510
  # Steps taken to build the artifact. For a TaskRun, typically each container
2327
2511
  # corresponds to one step in the recipe.
2328
2512
  class Recipe
@@ -2466,6 +2650,93 @@ module Google
2466
2650
  end
2467
2651
  end
2468
2652
 
2653
+ #
2654
+ class ResourceDescriptor
2655
+ include Google::Apis::Core::Hashable
2656
+
2657
+ #
2658
+ # Corresponds to the JSON property `annotations`
2659
+ # @return [Hash<String,Object>]
2660
+ attr_accessor :annotations
2661
+
2662
+ #
2663
+ # Corresponds to the JSON property `content`
2664
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2665
+ # @return [String]
2666
+ attr_accessor :content
2667
+
2668
+ #
2669
+ # Corresponds to the JSON property `digest`
2670
+ # @return [Hash<String,String>]
2671
+ attr_accessor :digest
2672
+
2673
+ #
2674
+ # Corresponds to the JSON property `downloadLocation`
2675
+ # @return [String]
2676
+ attr_accessor :download_location
2677
+
2678
+ #
2679
+ # Corresponds to the JSON property `mediaType`
2680
+ # @return [String]
2681
+ attr_accessor :media_type
2682
+
2683
+ #
2684
+ # Corresponds to the JSON property `name`
2685
+ # @return [String]
2686
+ attr_accessor :name
2687
+
2688
+ #
2689
+ # Corresponds to the JSON property `uri`
2690
+ # @return [String]
2691
+ attr_accessor :uri
2692
+
2693
+ def initialize(**args)
2694
+ update!(**args)
2695
+ end
2696
+
2697
+ # Update properties of this object
2698
+ def update!(**args)
2699
+ @annotations = args[:annotations] if args.key?(:annotations)
2700
+ @content = args[:content] if args.key?(:content)
2701
+ @digest = args[:digest] if args.key?(:digest)
2702
+ @download_location = args[:download_location] if args.key?(:download_location)
2703
+ @media_type = args[:media_type] if args.key?(:media_type)
2704
+ @name = args[:name] if args.key?(:name)
2705
+ @uri = args[:uri] if args.key?(:uri)
2706
+ end
2707
+ end
2708
+
2709
+ #
2710
+ class RunDetails
2711
+ include Google::Apis::Core::Hashable
2712
+
2713
+ #
2714
+ # Corresponds to the JSON property `builder`
2715
+ # @return [Google::Apis::OndemandscanningV1::ProvenanceBuilder]
2716
+ attr_accessor :builder
2717
+
2718
+ #
2719
+ # Corresponds to the JSON property `byproducts`
2720
+ # @return [Array<Google::Apis::OndemandscanningV1::ResourceDescriptor>]
2721
+ attr_accessor :byproducts
2722
+
2723
+ #
2724
+ # Corresponds to the JSON property `metadata`
2725
+ # @return [Google::Apis::OndemandscanningV1::BuildMetadata]
2726
+ attr_accessor :metadata
2727
+
2728
+ def initialize(**args)
2729
+ update!(**args)
2730
+ end
2731
+
2732
+ # Update properties of this object
2733
+ def update!(**args)
2734
+ @builder = args[:builder] if args.key?(:builder)
2735
+ @byproducts = args[:byproducts] if args.key?(:byproducts)
2736
+ @metadata = args[:metadata] if args.key?(:metadata)
2737
+ end
2738
+ end
2739
+
2469
2740
  # The occurrence representing an SBOM reference as applied to a specific
2470
2741
  # resource. The occurrence follows the DSSE specification. See https://github.
2471
2742
  # com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
@@ -2502,6 +2773,32 @@ module Google
2502
2773
  end
2503
2774
  end
2504
2775
 
2776
+ # The status of an SBOM generation.
2777
+ class SbomStatus
2778
+ include Google::Apis::Core::Hashable
2779
+
2780
+ # If there was an error generating an SBOM, this will indicate what that error
2781
+ # was.
2782
+ # Corresponds to the JSON property `error`
2783
+ # @return [String]
2784
+ attr_accessor :error
2785
+
2786
+ # The progress of the SBOM generation.
2787
+ # Corresponds to the JSON property `sbomState`
2788
+ # @return [String]
2789
+ attr_accessor :sbom_state
2790
+
2791
+ def initialize(**args)
2792
+ update!(**args)
2793
+ end
2794
+
2795
+ # Update properties of this object
2796
+ def update!(**args)
2797
+ @error = args[:error] if args.key?(:error)
2798
+ @sbom_state = args[:sbom_state] if args.key?(:sbom_state)
2799
+ end
2800
+ end
2801
+
2505
2802
  # The actual payload that contains the SBOM Reference data. The payload follows
2506
2803
  # the intoto statement specification. See https://github.com/in-toto/attestation/
2507
2804
  # blob/main/spec/v1.0/statement.md for more details.
@@ -2779,6 +3076,33 @@ module Google
2779
3076
  end
2780
3077
  end
2781
3078
 
3079
+ # Keep in sync with schema at https://github.com/slsa-framework/slsa/blob/main/
3080
+ # docs/provenance/schema/v1/provenance.proto Builder renamed to
3081
+ # ProvenanceBuilder because of Java conflicts.
3082
+ class SlsaProvenanceV1
3083
+ include Google::Apis::Core::Hashable
3084
+
3085
+ #
3086
+ # Corresponds to the JSON property `buildDefinition`
3087
+ # @return [Google::Apis::OndemandscanningV1::BuildDefinition]
3088
+ attr_accessor :build_definition
3089
+
3090
+ #
3091
+ # Corresponds to the JSON property `runDetails`
3092
+ # @return [Google::Apis::OndemandscanningV1::RunDetails]
3093
+ attr_accessor :run_details
3094
+
3095
+ def initialize(**args)
3096
+ update!(**args)
3097
+ end
3098
+
3099
+ # Update properties of this object
3100
+ def update!(**args)
3101
+ @build_definition = args[:build_definition] if args.key?(:build_definition)
3102
+ @run_details = args[:run_details] if args.key?(:run_details)
3103
+ end
3104
+ end
3105
+
2782
3106
  # See full explanation of fields at slsa.dev/provenance/v0.2.
2783
3107
  class SlsaProvenanceZeroTwo
2784
3108
  include Google::Apis::Core::Hashable
@@ -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.38.0"
19
+ GEM_VERSION = "0.40.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 = "20230501"
25
+ REVISION = "20230710"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,24 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class BinarySourceInfo
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class BuildDefinition
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class BuildMetadata
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
79
97
  class BuildOccurrence
80
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
99
 
@@ -262,6 +280,12 @@ module Google
262
280
  include Google::Apis::Core::JsonObjectSupport
263
281
  end
264
282
 
283
+ class InTotoSlsaProvenanceV1
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
265
289
  class InTotoStatement
266
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
291
 
@@ -382,6 +406,12 @@ module Google
382
406
  include Google::Apis::Core::JsonObjectSupport
383
407
  end
384
408
 
409
+ class ProvenanceBuilder
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
385
415
  class Recipe
386
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
387
417
 
@@ -406,12 +436,30 @@ module Google
406
436
  include Google::Apis::Core::JsonObjectSupport
407
437
  end
408
438
 
439
+ class ResourceDescriptor
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
445
+ class RunDetails
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
409
451
  class SbomReferenceOccurrence
410
452
  class Representation < Google::Apis::Core::JsonRepresentation; end
411
453
 
412
454
  include Google::Apis::Core::JsonObjectSupport
413
455
  end
414
456
 
457
+ class SbomStatus
458
+ class Representation < Google::Apis::Core::JsonRepresentation; end
459
+
460
+ include Google::Apis::Core::JsonObjectSupport
461
+ end
462
+
415
463
  class SbomReferenceIntotoPayload
416
464
  class Representation < Google::Apis::Core::JsonRepresentation; end
417
465
 
@@ -454,6 +502,12 @@ module Google
454
502
  include Google::Apis::Core::JsonObjectSupport
455
503
  end
456
504
 
505
+ class SlsaProvenanceV1
506
+ class Representation < Google::Apis::Core::JsonRepresentation; end
507
+
508
+ include Google::Apis::Core::JsonObjectSupport
509
+ end
510
+
457
511
  class SlsaProvenanceZeroTwo
458
512
  class Representation < Google::Apis::Core::JsonRepresentation; end
459
513
 
@@ -601,9 +655,41 @@ module Google
601
655
  end
602
656
  end
603
657
 
658
+ class BinarySourceInfo
659
+ # @private
660
+ class Representation < Google::Apis::Core::JsonRepresentation
661
+ property :binary_version, as: 'binaryVersion', class: Google::Apis::OndemandscanningV1::PackageVersion, decorator: Google::Apis::OndemandscanningV1::PackageVersion::Representation
662
+
663
+ property :source_version, as: 'sourceVersion', class: Google::Apis::OndemandscanningV1::PackageVersion, decorator: Google::Apis::OndemandscanningV1::PackageVersion::Representation
664
+
665
+ end
666
+ end
667
+
668
+ class BuildDefinition
669
+ # @private
670
+ class Representation < Google::Apis::Core::JsonRepresentation
671
+ property :build_type, as: 'buildType'
672
+ hash :external_parameters, as: 'externalParameters'
673
+ hash :internal_parameters, as: 'internalParameters'
674
+ collection :resolved_dependencies, as: 'resolvedDependencies', class: Google::Apis::OndemandscanningV1::ResourceDescriptor, decorator: Google::Apis::OndemandscanningV1::ResourceDescriptor::Representation
675
+
676
+ end
677
+ end
678
+
679
+ class BuildMetadata
680
+ # @private
681
+ class Representation < Google::Apis::Core::JsonRepresentation
682
+ property :finished_on, as: 'finishedOn'
683
+ property :invocation_id, as: 'invocationId'
684
+ property :started_on, as: 'startedOn'
685
+ end
686
+ end
687
+
604
688
  class BuildOccurrence
605
689
  # @private
606
690
  class Representation < Google::Apis::Core::JsonRepresentation
691
+ property :in_toto_slsa_provenance_v1, as: 'inTotoSlsaProvenanceV1', class: Google::Apis::OndemandscanningV1::InTotoSlsaProvenanceV1, decorator: Google::Apis::OndemandscanningV1::InTotoSlsaProvenanceV1::Representation
692
+
607
693
  property :intoto_provenance, as: 'intotoProvenance', class: Google::Apis::OndemandscanningV1::InTotoProvenance, decorator: Google::Apis::OndemandscanningV1::InTotoProvenance::Representation
608
694
 
609
695
  property :intoto_statement, as: 'intotoStatement', class: Google::Apis::OndemandscanningV1::InTotoStatement, decorator: Google::Apis::OndemandscanningV1::InTotoStatement::Representation
@@ -747,6 +833,8 @@ module Google
747
833
  property :continuous_analysis, as: 'continuousAnalysis'
748
834
  property :cpe, as: 'cpe'
749
835
  property :last_scan_time, as: 'lastScanTime'
836
+ property :sbom_status, as: 'sbomStatus', class: Google::Apis::OndemandscanningV1::SbomStatus, decorator: Google::Apis::OndemandscanningV1::SbomStatus::Representation
837
+
750
838
  end
751
839
  end
752
840
 
@@ -920,6 +1008,18 @@ module Google
920
1008
  end
921
1009
  end
922
1010
 
1011
+ class InTotoSlsaProvenanceV1
1012
+ # @private
1013
+ class Representation < Google::Apis::Core::JsonRepresentation
1014
+ property :_type, as: '_type'
1015
+ property :predicate, as: 'predicate', class: Google::Apis::OndemandscanningV1::SlsaProvenanceV1, decorator: Google::Apis::OndemandscanningV1::SlsaProvenanceV1::Representation
1016
+
1017
+ property :predicate_type, as: 'predicateType'
1018
+ collection :subject, as: 'subject', class: Google::Apis::OndemandscanningV1::Subject, decorator: Google::Apis::OndemandscanningV1::Subject::Representation
1019
+
1020
+ end
1021
+ end
1022
+
923
1023
  class InTotoStatement
924
1024
  # @private
925
1025
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1093,6 +1193,8 @@ module Google
1093
1193
  # @private
1094
1194
  class Representation < Google::Apis::Core::JsonRepresentation
1095
1195
  property :architecture, as: 'architecture'
1196
+ collection :binary_source_info, as: 'binarySourceInfo', class: Google::Apis::OndemandscanningV1::BinarySourceInfo, decorator: Google::Apis::OndemandscanningV1::BinarySourceInfo::Representation
1197
+
1096
1198
  property :binary_version, as: 'binaryVersion', class: Google::Apis::OndemandscanningV1::PackageVersion, decorator: Google::Apis::OndemandscanningV1::PackageVersion::Representation
1097
1199
 
1098
1200
  property :cpe_uri, as: 'cpeUri'
@@ -1166,6 +1268,16 @@ module Google
1166
1268
  end
1167
1269
  end
1168
1270
 
1271
+ class ProvenanceBuilder
1272
+ # @private
1273
+ class Representation < Google::Apis::Core::JsonRepresentation
1274
+ collection :builder_dependencies, as: 'builderDependencies', class: Google::Apis::OndemandscanningV1::ResourceDescriptor, decorator: Google::Apis::OndemandscanningV1::ResourceDescriptor::Representation
1275
+
1276
+ property :id, as: 'id'
1277
+ hash :version, as: 'version'
1278
+ end
1279
+ end
1280
+
1169
1281
  class Recipe
1170
1282
  # @private
1171
1283
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1204,6 +1316,31 @@ module Google
1204
1316
  end
1205
1317
  end
1206
1318
 
1319
+ class ResourceDescriptor
1320
+ # @private
1321
+ class Representation < Google::Apis::Core::JsonRepresentation
1322
+ hash :annotations, as: 'annotations'
1323
+ property :content, :base64 => true, as: 'content'
1324
+ hash :digest, as: 'digest'
1325
+ property :download_location, as: 'downloadLocation'
1326
+ property :media_type, as: 'mediaType'
1327
+ property :name, as: 'name'
1328
+ property :uri, as: 'uri'
1329
+ end
1330
+ end
1331
+
1332
+ class RunDetails
1333
+ # @private
1334
+ class Representation < Google::Apis::Core::JsonRepresentation
1335
+ property :builder, as: 'builder', class: Google::Apis::OndemandscanningV1::ProvenanceBuilder, decorator: Google::Apis::OndemandscanningV1::ProvenanceBuilder::Representation
1336
+
1337
+ collection :byproducts, as: 'byproducts', class: Google::Apis::OndemandscanningV1::ResourceDescriptor, decorator: Google::Apis::OndemandscanningV1::ResourceDescriptor::Representation
1338
+
1339
+ property :metadata, as: 'metadata', class: Google::Apis::OndemandscanningV1::BuildMetadata, decorator: Google::Apis::OndemandscanningV1::BuildMetadata::Representation
1340
+
1341
+ end
1342
+ end
1343
+
1207
1344
  class SbomReferenceOccurrence
1208
1345
  # @private
1209
1346
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1215,6 +1352,14 @@ module Google
1215
1352
  end
1216
1353
  end
1217
1354
 
1355
+ class SbomStatus
1356
+ # @private
1357
+ class Representation < Google::Apis::Core::JsonRepresentation
1358
+ property :error, as: 'error'
1359
+ property :sbom_state, as: 'sbomState'
1360
+ end
1361
+ end
1362
+
1218
1363
  class SbomReferenceIntotoPayload
1219
1364
  # @private
1220
1365
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1287,6 +1432,16 @@ module Google
1287
1432
  end
1288
1433
  end
1289
1434
 
1435
+ class SlsaProvenanceV1
1436
+ # @private
1437
+ class Representation < Google::Apis::Core::JsonRepresentation
1438
+ property :build_definition, as: 'buildDefinition', class: Google::Apis::OndemandscanningV1::BuildDefinition, decorator: Google::Apis::OndemandscanningV1::BuildDefinition::Representation
1439
+
1440
+ property :run_details, as: 'runDetails', class: Google::Apis::OndemandscanningV1::RunDetails, decorator: Google::Apis::OndemandscanningV1::RunDetails::Representation
1441
+
1442
+ end
1443
+ end
1444
+
1290
1445
  class SlsaProvenanceZeroTwo
1291
1446
  # @private
1292
1447
  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.38.0
4
+ version: 0.40.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-05-14 00:00:00.000000000 Z
11
+ date: 2023-07-16 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.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1/v0.40.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: []