google-apis-ondemandscanning_v1 0.7.0 → 0.11.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: 34c14e4ebbd0b64f1562fed2a4b7f30afebd6ee1ad62828a3c77a8c92767b365
4
- data.tar.gz: 12064dcca2ef5db890e02a67cecbf4712d531d105b0b419002e2e9d41964ca41
3
+ metadata.gz: 4955ed8b206fec15d8cb64e148b13c991f2a16e4356f132a7d02a86e17be1b10
4
+ data.tar.gz: 45c394ab1d3e2b632fc90f221eccc22f850d2d9f3dcbd41b66af060b114d3572
5
5
  SHA512:
6
- metadata.gz: 3a19714e48fc870c3410a98328fc588fbaf89e0aa2e174720c3eb0817b588a5495f354bc9e037de8d89d3d69acc173f3e5f72467dd09bebec4e4d9a2425117af
7
- data.tar.gz: 406a38f0094364ec93a63c68f2c1493284ecd42d7491a0cdd5abb22bde5d9ce3acac04435d81eeaa049f6c52db878fb88eaeec6a2909133711b1230f60d0130b
6
+ metadata.gz: b43ae1f6fd0670bc9e0c58422409aef4af4b6dd8d6cddd24f501a3ad16922b7e62e4179cb4570b2f36eb1e764285f05bbe7199803ba9384053db3b2151221ed4
7
+ data.tar.gz: fbbd8c3c8f56c3ff435397c0575bc13da386d723a7ed1cdfe5e9e5518de9115d90157895a95e1d89c16943c34b18156af880aeeff19f340229f46f0fb6e96e0f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-ondemandscanning_v1
2
2
 
3
+ ### v0.11.0 (2021-10-21)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.10.0 (2021-09-16)
8
+
9
+ * Regenerated from discovery document revision 20210911
10
+
11
+ ### v0.9.0 (2021-09-01)
12
+
13
+ * Regenerated from discovery document revision 20210824
14
+
15
+ ### v0.8.0 (2021-08-05)
16
+
17
+ * Regenerated from discovery document revision 20210731
18
+
3
19
  ### v0.7.0 (2021-06-29)
4
20
 
5
21
  * Regenerated using generator version 0.4.0
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Ondemandscanning service in particular.)
67
67
 
@@ -104,6 +104,12 @@ module Google
104
104
  class AnalyzePackagesRequestV1
105
105
  include Google::Apis::Core::Hashable
106
106
 
107
+ # Whether to include OSV data in the scan.
108
+ # Corresponds to the JSON property `includeOsvData`
109
+ # @return [Boolean]
110
+ attr_accessor :include_osv_data
111
+ alias_method :include_osv_data?, :include_osv_data
112
+
107
113
  # The packages to analyze.
108
114
  # Corresponds to the JSON property `packages`
109
115
  # @return [Array<Google::Apis::OndemandscanningV1::PackageData>]
@@ -120,6 +126,7 @@ module Google
120
126
 
121
127
  # Update properties of this object
122
128
  def update!(**args)
129
+ @include_osv_data = args[:include_osv_data] if args.key?(:include_osv_data)
123
130
  @packages = args[:packages] if args.key?(:packages)
124
131
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
125
132
  end
@@ -253,6 +260,11 @@ module Google
253
260
  class BuildOccurrence
254
261
  include Google::Apis::Core::Hashable
255
262
 
263
+ # In-toto Provenance representation as defined in spec.
264
+ # Corresponds to the JSON property `intotoProvenance`
265
+ # @return [Google::Apis::OndemandscanningV1::InTotoProvenance]
266
+ attr_accessor :intoto_provenance
267
+
256
268
  # Provenance of a build. Contains all information needed to verify the full
257
269
  # details about the build from source to completion.
258
270
  # Corresponds to the JSON property `provenance`
@@ -277,6 +289,7 @@ module Google
277
289
 
278
290
  # Update properties of this object
279
291
  def update!(**args)
292
+ @intoto_provenance = args[:intoto_provenance] if args.key?(:intoto_provenance)
280
293
  @provenance = args[:provenance] if args.key?(:provenance)
281
294
  @provenance_bytes = args[:provenance_bytes] if args.key?(:provenance_bytes)
282
295
  end
@@ -377,6 +390,25 @@ module Google
377
390
  end
378
391
  end
379
392
 
393
+ #
394
+ class BuilderConfig
395
+ include Google::Apis::Core::Hashable
396
+
397
+ #
398
+ # Corresponds to the JSON property `id`
399
+ # @return [String]
400
+ attr_accessor :id
401
+
402
+ def initialize(**args)
403
+ update!(**args)
404
+ end
405
+
406
+ # Update properties of this object
407
+ def update!(**args)
408
+ @id = args[:id] if args.key?(:id)
409
+ end
410
+ end
411
+
380
412
  # The category to which the update belongs.
381
413
  class Category
382
414
  include Google::Apis::Core::Hashable
@@ -486,6 +518,43 @@ module Google
486
518
  end
487
519
  end
488
520
 
521
+ # Indicates that the builder claims certain fields in this message to be
522
+ # complete.
523
+ class Completeness
524
+ include Google::Apis::Core::Hashable
525
+
526
+ # If true, the builder claims that recipe.arguments is complete, meaning that
527
+ # all external inputs are properly captured in the recipe.
528
+ # Corresponds to the JSON property `arguments`
529
+ # @return [Boolean]
530
+ attr_accessor :arguments
531
+ alias_method :arguments?, :arguments
532
+
533
+ # If true, the builder claims that recipe.environment is claimed to be complete.
534
+ # Corresponds to the JSON property `environment`
535
+ # @return [Boolean]
536
+ attr_accessor :environment
537
+ alias_method :environment?, :environment
538
+
539
+ # If true, the builder claims that materials are complete, usually through some
540
+ # controls to prevent network access. Sometimes called "hermetic".
541
+ # Corresponds to the JSON property `materials`
542
+ # @return [Boolean]
543
+ attr_accessor :materials
544
+ alias_method :materials?, :materials
545
+
546
+ def initialize(**args)
547
+ update!(**args)
548
+ end
549
+
550
+ # Update properties of this object
551
+ def update!(**args)
552
+ @arguments = args[:arguments] if args.key?(:arguments)
553
+ @environment = args[:environment] if args.key?(:environment)
554
+ @materials = args[:materials] if args.key?(:materials)
555
+ end
556
+ end
557
+
489
558
  # An indication that the compliance checks in the associated ComplianceNote were
490
559
  # not satisfied for particular resources or a specified reason.
491
560
  class ComplianceOccurrence
@@ -512,6 +581,34 @@ module Google
512
581
  end
513
582
  end
514
583
 
584
+ #
585
+ class DsseAttestationOccurrence
586
+ include Google::Apis::Core::Hashable
587
+
588
+ # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.
589
+ # proto. An authenticated message of arbitrary type.
590
+ # Corresponds to the JSON property `envelope`
591
+ # @return [Google::Apis::OndemandscanningV1::Envelope]
592
+ attr_accessor :envelope
593
+
594
+ # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#
595
+ # statement The serialized InTotoStatement will be stored as Envelope.payload.
596
+ # Envelope.payloadType is always "application/vnd.in-toto+json".
597
+ # Corresponds to the JSON property `statement`
598
+ # @return [Google::Apis::OndemandscanningV1::InTotoStatement]
599
+ attr_accessor :statement
600
+
601
+ def initialize(**args)
602
+ update!(**args)
603
+ end
604
+
605
+ # Update properties of this object
606
+ def update!(**args)
607
+ @envelope = args[:envelope] if args.key?(:envelope)
608
+ @statement = args[:statement] if args.key?(:statement)
609
+ end
610
+ end
611
+
515
612
  # The period during which some deployable was active in a runtime.
516
613
  class DeploymentOccurrence
517
614
  include Google::Apis::Core::Hashable
@@ -633,6 +730,65 @@ module Google
633
730
  end
634
731
  end
635
732
 
733
+ # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.
734
+ # proto. An authenticated message of arbitrary type.
735
+ class Envelope
736
+ include Google::Apis::Core::Hashable
737
+
738
+ #
739
+ # Corresponds to the JSON property `payload`
740
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
741
+ # @return [String]
742
+ attr_accessor :payload
743
+
744
+ #
745
+ # Corresponds to the JSON property `payloadType`
746
+ # @return [String]
747
+ attr_accessor :payload_type
748
+
749
+ #
750
+ # Corresponds to the JSON property `signatures`
751
+ # @return [Array<Google::Apis::OndemandscanningV1::EnvelopeSignature>]
752
+ attr_accessor :signatures
753
+
754
+ def initialize(**args)
755
+ update!(**args)
756
+ end
757
+
758
+ # Update properties of this object
759
+ def update!(**args)
760
+ @payload = args[:payload] if args.key?(:payload)
761
+ @payload_type = args[:payload_type] if args.key?(:payload_type)
762
+ @signatures = args[:signatures] if args.key?(:signatures)
763
+ end
764
+ end
765
+
766
+ #
767
+ class EnvelopeSignature
768
+ include Google::Apis::Core::Hashable
769
+
770
+ #
771
+ # Corresponds to the JSON property `keyid`
772
+ # @return [String]
773
+ attr_accessor :keyid
774
+
775
+ #
776
+ # Corresponds to the JSON property `sig`
777
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
778
+ # @return [String]
779
+ attr_accessor :sig
780
+
781
+ def initialize(**args)
782
+ update!(**args)
783
+ end
784
+
785
+ # Update properties of this object
786
+ def update!(**args)
787
+ @keyid = args[:keyid] if args.key?(:keyid)
788
+ @sig = args[:sig] if args.key?(:sig)
789
+ end
790
+ end
791
+
636
792
  # Container message for hashes of byte content of files, used in source messages
637
793
  # to verify integrity of source input to the build.
638
794
  class FileHashes
@@ -843,6 +999,86 @@ module Google
843
999
  end
844
1000
  end
845
1001
 
1002
+ #
1003
+ class InTotoProvenance
1004
+ include Google::Apis::Core::Hashable
1005
+
1006
+ # required
1007
+ # Corresponds to the JSON property `builderConfig`
1008
+ # @return [Google::Apis::OndemandscanningV1::BuilderConfig]
1009
+ attr_accessor :builder_config
1010
+
1011
+ # The collection of artifacts that influenced the build including sources,
1012
+ # dependencies, build tools, base images, and so on. This is considered to be
1013
+ # incomplete unless metadata.completeness.materials is true. Unset or null is
1014
+ # equivalent to empty.
1015
+ # Corresponds to the JSON property `materials`
1016
+ # @return [Array<String>]
1017
+ attr_accessor :materials
1018
+
1019
+ # Other properties of the build.
1020
+ # Corresponds to the JSON property `metadata`
1021
+ # @return [Google::Apis::OndemandscanningV1::Metadata]
1022
+ attr_accessor :metadata
1023
+
1024
+ # Steps taken to build the artifact. For a TaskRun, typically each container
1025
+ # corresponds to one step in the recipe.
1026
+ # Corresponds to the JSON property `recipe`
1027
+ # @return [Google::Apis::OndemandscanningV1::Recipe]
1028
+ attr_accessor :recipe
1029
+
1030
+ def initialize(**args)
1031
+ update!(**args)
1032
+ end
1033
+
1034
+ # Update properties of this object
1035
+ def update!(**args)
1036
+ @builder_config = args[:builder_config] if args.key?(:builder_config)
1037
+ @materials = args[:materials] if args.key?(:materials)
1038
+ @metadata = args[:metadata] if args.key?(:metadata)
1039
+ @recipe = args[:recipe] if args.key?(:recipe)
1040
+ end
1041
+ end
1042
+
1043
+ # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#
1044
+ # statement The serialized InTotoStatement will be stored as Envelope.payload.
1045
+ # Envelope.payloadType is always "application/vnd.in-toto+json".
1046
+ class InTotoStatement
1047
+ include Google::Apis::Core::Hashable
1048
+
1049
+ # "https://in-toto.io/Provenance/v0.1" for InTotoProvenance.
1050
+ # Corresponds to the JSON property `predicateType`
1051
+ # @return [String]
1052
+ attr_accessor :predicate_type
1053
+
1054
+ #
1055
+ # Corresponds to the JSON property `provenance`
1056
+ # @return [Google::Apis::OndemandscanningV1::InTotoProvenance]
1057
+ attr_accessor :provenance
1058
+
1059
+ #
1060
+ # Corresponds to the JSON property `subject`
1061
+ # @return [Array<Google::Apis::OndemandscanningV1::Subject>]
1062
+ attr_accessor :subject
1063
+
1064
+ # Always "https://in-toto.io/Statement/v0.1".
1065
+ # Corresponds to the JSON property `type`
1066
+ # @return [String]
1067
+ attr_accessor :type
1068
+
1069
+ def initialize(**args)
1070
+ update!(**args)
1071
+ end
1072
+
1073
+ # Update properties of this object
1074
+ def update!(**args)
1075
+ @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
1076
+ @provenance = args[:provenance] if args.key?(:provenance)
1077
+ @subject = args[:subject] if args.key?(:subject)
1078
+ @type = args[:type] if args.key?(:type)
1079
+ end
1080
+ end
1081
+
846
1082
  #
847
1083
  class Jwt
848
1084
  include Google::Apis::Core::Hashable
@@ -975,6 +1211,54 @@ module Google
975
1211
  end
976
1212
  end
977
1213
 
1214
+ # Other properties of the build.
1215
+ class Metadata
1216
+ include Google::Apis::Core::Hashable
1217
+
1218
+ # The timestamp of when the build completed.
1219
+ # Corresponds to the JSON property `buildFinishedOn`
1220
+ # @return [String]
1221
+ attr_accessor :build_finished_on
1222
+
1223
+ # Identifies the particular build invocation, which can be useful for finding
1224
+ # associated logs or other ad-hoc analysis. The value SHOULD be globally unique,
1225
+ # per in-toto Provenance spec.
1226
+ # Corresponds to the JSON property `buildInvocationId`
1227
+ # @return [String]
1228
+ attr_accessor :build_invocation_id
1229
+
1230
+ # The timestamp of when the build started.
1231
+ # Corresponds to the JSON property `buildStartedOn`
1232
+ # @return [String]
1233
+ attr_accessor :build_started_on
1234
+
1235
+ # Indicates that the builder claims certain fields in this message to be
1236
+ # complete.
1237
+ # Corresponds to the JSON property `completeness`
1238
+ # @return [Google::Apis::OndemandscanningV1::Completeness]
1239
+ attr_accessor :completeness
1240
+
1241
+ # If true, the builder claims that running the recipe on materials will produce
1242
+ # bit-for-bit identical output.
1243
+ # Corresponds to the JSON property `reproducible`
1244
+ # @return [Boolean]
1245
+ attr_accessor :reproducible
1246
+ alias_method :reproducible?, :reproducible
1247
+
1248
+ def initialize(**args)
1249
+ update!(**args)
1250
+ end
1251
+
1252
+ # Update properties of this object
1253
+ def update!(**args)
1254
+ @build_finished_on = args[:build_finished_on] if args.key?(:build_finished_on)
1255
+ @build_invocation_id = args[:build_invocation_id] if args.key?(:build_invocation_id)
1256
+ @build_started_on = args[:build_started_on] if args.key?(:build_started_on)
1257
+ @completeness = args[:completeness] if args.key?(:completeness)
1258
+ @reproducible = args[:reproducible] if args.key?(:reproducible)
1259
+ end
1260
+ end
1261
+
978
1262
  # Details about files that caused a compliance check to fail.
979
1263
  class NonCompliantFile
980
1264
  include Google::Apis::Core::Hashable
@@ -1049,6 +1333,17 @@ module Google
1049
1333
  # @return [Google::Apis::OndemandscanningV1::DiscoveryOccurrence]
1050
1334
  attr_accessor :discovery
1051
1335
 
1336
+ # Describes an attestation of an artifact using dsse.
1337
+ # Corresponds to the JSON property `dsseAttestation`
1338
+ # @return [Google::Apis::OndemandscanningV1::DsseAttestationOccurrence]
1339
+ attr_accessor :dsse_attestation
1340
+
1341
+ # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.
1342
+ # proto. An authenticated message of arbitrary type.
1343
+ # Corresponds to the JSON property `envelope`
1344
+ # @return [Google::Apis::OndemandscanningV1::Envelope]
1345
+ attr_accessor :envelope
1346
+
1052
1347
  # Details of the derived image portion of the DockerImage relationship. This
1053
1348
  # image would be produced from a Dockerfile with FROM .
1054
1349
  # Corresponds to the JSON property `image`
@@ -1122,6 +1417,8 @@ module Google
1122
1417
  @create_time = args[:create_time] if args.key?(:create_time)
1123
1418
  @deployment = args[:deployment] if args.key?(:deployment)
1124
1419
  @discovery = args[:discovery] if args.key?(:discovery)
1420
+ @dsse_attestation = args[:dsse_attestation] if args.key?(:dsse_attestation)
1421
+ @envelope = args[:envelope] if args.key?(:envelope)
1125
1422
  @image = args[:image] if args.key?(:image)
1126
1423
  @kind = args[:kind] if args.key?(:kind)
1127
1424
  @name = args[:name] if args.key?(:name)
@@ -1277,6 +1574,13 @@ module Google
1277
1574
  # @return [Google::Apis::OndemandscanningV1::Version]
1278
1575
  attr_accessor :affected_version
1279
1576
 
1577
+ # Output only. The distro or language system assigned severity for this
1578
+ # vulnerability when that is available and note provider assigned severity when
1579
+ # it is not available.
1580
+ # Corresponds to the JSON property `effectiveSeverity`
1581
+ # @return [String]
1582
+ attr_accessor :effective_severity
1583
+
1280
1584
  # Output only. Whether a fix is available for this package.
1281
1585
  # Corresponds to the JSON property `fixAvailable`
1282
1586
  # @return [Boolean]
@@ -1300,6 +1604,11 @@ module Google
1300
1604
  # @return [Google::Apis::OndemandscanningV1::Version]
1301
1605
  attr_accessor :fixed_version
1302
1606
 
1607
+ # The type of package (e.g. OS, MAVEN, GO).
1608
+ # Corresponds to the JSON property `packageType`
1609
+ # @return [String]
1610
+ attr_accessor :package_type
1611
+
1303
1612
  def initialize(**args)
1304
1613
  update!(**args)
1305
1614
  end
@@ -1309,10 +1618,12 @@ module Google
1309
1618
  @affected_cpe_uri = args[:affected_cpe_uri] if args.key?(:affected_cpe_uri)
1310
1619
  @affected_package = args[:affected_package] if args.key?(:affected_package)
1311
1620
  @affected_version = args[:affected_version] if args.key?(:affected_version)
1621
+ @effective_severity = args[:effective_severity] if args.key?(:effective_severity)
1312
1622
  @fix_available = args[:fix_available] if args.key?(:fix_available)
1313
1623
  @fixed_cpe_uri = args[:fixed_cpe_uri] if args.key?(:fixed_cpe_uri)
1314
1624
  @fixed_package = args[:fixed_package] if args.key?(:fixed_package)
1315
1625
  @fixed_version = args[:fixed_version] if args.key?(:fixed_version)
1626
+ @package_type = args[:package_type] if args.key?(:package_type)
1316
1627
  end
1317
1628
  end
1318
1629
 
@@ -1368,6 +1679,67 @@ module Google
1368
1679
  end
1369
1680
  end
1370
1681
 
1682
+ # Steps taken to build the artifact. For a TaskRun, typically each container
1683
+ # corresponds to one step in the recipe.
1684
+ class Recipe
1685
+ include Google::Apis::Core::Hashable
1686
+
1687
+ # Collection of all external inputs that influenced the build on top of recipe.
1688
+ # definedInMaterial and recipe.entryPoint. For example, if the recipe type were "
1689
+ # make", then this might be the flags passed to make aside from the target,
1690
+ # which is captured in recipe.entryPoint. Since the arguments field can greatly
1691
+ # vary in structure, depending on the builder and recipe type, this is of form "
1692
+ # Any".
1693
+ # Corresponds to the JSON property `arguments`
1694
+ # @return [Array<Hash<String,Object>>]
1695
+ attr_accessor :arguments
1696
+
1697
+ # Index in materials containing the recipe steps that are not implied by recipe.
1698
+ # type. For example, if the recipe type were "make", then this would point to
1699
+ # the source containing the Makefile, not the make program itself. Set to -1 if
1700
+ # the recipe doesn't come from a material, as zero is default unset value for
1701
+ # int64.
1702
+ # Corresponds to the JSON property `definedInMaterial`
1703
+ # @return [Fixnum]
1704
+ attr_accessor :defined_in_material
1705
+
1706
+ # String identifying the entry point into the build. This is often a path to a
1707
+ # configuration file and/or a target label within that file. The syntax and
1708
+ # meaning are defined by recipe.type. For example, if the recipe type were "make"
1709
+ # , then this would reference the directory in which to run make as well as
1710
+ # which target to use.
1711
+ # Corresponds to the JSON property `entryPoint`
1712
+ # @return [String]
1713
+ attr_accessor :entry_point
1714
+
1715
+ # Any other builder-controlled inputs necessary for correctly evaluating the
1716
+ # recipe. Usually only needed for reproducing the build but not evaluated as
1717
+ # part of policy. Since the environment field can greatly vary in structure,
1718
+ # depending on the builder and recipe type, this is of form "Any".
1719
+ # Corresponds to the JSON property `environment`
1720
+ # @return [Array<Hash<String,Object>>]
1721
+ attr_accessor :environment
1722
+
1723
+ # URI indicating what type of recipe was performed. It determines the meaning of
1724
+ # recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
1725
+ # Corresponds to the JSON property `type`
1726
+ # @return [String]
1727
+ attr_accessor :type
1728
+
1729
+ def initialize(**args)
1730
+ update!(**args)
1731
+ end
1732
+
1733
+ # Update properties of this object
1734
+ def update!(**args)
1735
+ @arguments = args[:arguments] if args.key?(:arguments)
1736
+ @defined_in_material = args[:defined_in_material] if args.key?(:defined_in_material)
1737
+ @entry_point = args[:entry_point] if args.key?(:entry_point)
1738
+ @environment = args[:environment] if args.key?(:environment)
1739
+ @type = args[:type] if args.key?(:type)
1740
+ end
1741
+ end
1742
+
1371
1743
  # Metadata for any related URL information.
1372
1744
  class RelatedUrl
1373
1745
  include Google::Apis::Core::Hashable
@@ -1598,6 +1970,31 @@ module Google
1598
1970
  end
1599
1971
  end
1600
1972
 
1973
+ #
1974
+ class Subject
1975
+ include Google::Apis::Core::Hashable
1976
+
1977
+ # "": ""
1978
+ # Corresponds to the JSON property `digest`
1979
+ # @return [Hash<String,String>]
1980
+ attr_accessor :digest
1981
+
1982
+ #
1983
+ # Corresponds to the JSON property `name`
1984
+ # @return [String]
1985
+ attr_accessor :name
1986
+
1987
+ def initialize(**args)
1988
+ update!(**args)
1989
+ end
1990
+
1991
+ # Update properties of this object
1992
+ def update!(**args)
1993
+ @digest = args[:digest] if args.key?(:digest)
1994
+ @name = args[:name] if args.key?(:name)
1995
+ end
1996
+ end
1997
+
1601
1998
  # The Upgrade Distribution represents metadata about the Upgrade for each
1602
1999
  # operating system (CPE). Some distributions have additional metadata around
1603
2000
  # updates, classifying them into various categories and severities.
@@ -1754,7 +2151,13 @@ module Google
1754
2151
  attr_accessor :cvss_score
1755
2152
 
1756
2153
  # The distro assigned severity for this vulnerability when it is available,
1757
- # otherwise this is the note provider assigned severity.
2154
+ # otherwise this is the note provider assigned severity. When there are multiple
2155
+ # PackageIssues for this vulnerability, they can have different effective
2156
+ # severities because some might be provided by the distro while others are
2157
+ # provided by the language ecosystem for a language pack. For this reason, it is
2158
+ # advised to use the effective severity on the PackageIssue level. In the case
2159
+ # where multiple PackageIssues have differing effective severities, this field
2160
+ # should be the highest severity for any of the PackageIssues.
1758
2161
  # Corresponds to the JSON property `effectiveSeverity`
1759
2162
  # @return [String]
1760
2163
  attr_accessor :effective_severity
@@ -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.7.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210613"
25
+ REVISION = "20210911"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class BuilderConfig
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class Category
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -100,12 +106,24 @@ module Google
100
106
  include Google::Apis::Core::JsonObjectSupport
101
107
  end
102
108
 
109
+ class Completeness
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
103
115
  class ComplianceOccurrence
104
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
117
 
106
118
  include Google::Apis::Core::JsonObjectSupport
107
119
  end
108
120
 
121
+ class DsseAttestationOccurrence
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
109
127
  class DeploymentOccurrence
110
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
129
 
@@ -124,6 +142,18 @@ module Google
124
142
  include Google::Apis::Core::JsonObjectSupport
125
143
  end
126
144
 
145
+ class Envelope
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class EnvelopeSignature
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
127
157
  class FileHashes
128
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
159
 
@@ -166,6 +196,18 @@ module Google
166
196
  include Google::Apis::Core::JsonObjectSupport
167
197
  end
168
198
 
199
+ class InTotoProvenance
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class InTotoStatement
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
169
211
  class Jwt
170
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
213
 
@@ -196,6 +238,12 @@ module Google
196
238
  include Google::Apis::Core::JsonObjectSupport
197
239
  end
198
240
 
241
+ class Metadata
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
199
247
  class NonCompliantFile
200
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
249
 
@@ -238,6 +286,12 @@ module Google
238
286
  include Google::Apis::Core::JsonObjectSupport
239
287
  end
240
288
 
289
+ class Recipe
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
241
295
  class RelatedUrl
242
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
297
 
@@ -274,6 +328,12 @@ module Google
274
328
  include Google::Apis::Core::JsonObjectSupport
275
329
  end
276
330
 
331
+ class Subject
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
277
337
  class UpgradeDistribution
278
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
339
 
@@ -331,6 +391,7 @@ module Google
331
391
  class AnalyzePackagesRequestV1
332
392
  # @private
333
393
  class Representation < Google::Apis::Core::JsonRepresentation
394
+ property :include_osv_data, as: 'includeOsvData'
334
395
  collection :packages, as: 'packages', class: Google::Apis::OndemandscanningV1::PackageData, decorator: Google::Apis::OndemandscanningV1::PackageData::Representation
335
396
 
336
397
  property :resource_uri, as: 'resourceUri'
@@ -374,6 +435,8 @@ module Google
374
435
  class BuildOccurrence
375
436
  # @private
376
437
  class Representation < Google::Apis::Core::JsonRepresentation
438
+ property :intoto_provenance, as: 'intotoProvenance', class: Google::Apis::OndemandscanningV1::InTotoProvenance, decorator: Google::Apis::OndemandscanningV1::InTotoProvenance::Representation
439
+
377
440
  property :provenance, as: 'provenance', class: Google::Apis::OndemandscanningV1::BuildProvenance, decorator: Google::Apis::OndemandscanningV1::BuildProvenance::Representation
378
441
 
379
442
  property :provenance_bytes, as: 'provenanceBytes'
@@ -402,6 +465,13 @@ module Google
402
465
  end
403
466
  end
404
467
 
468
+ class BuilderConfig
469
+ # @private
470
+ class Representation < Google::Apis::Core::JsonRepresentation
471
+ property :id, as: 'id'
472
+ end
473
+ end
474
+
405
475
  class Category
406
476
  # @private
407
477
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -433,6 +503,15 @@ module Google
433
503
  end
434
504
  end
435
505
 
506
+ class Completeness
507
+ # @private
508
+ class Representation < Google::Apis::Core::JsonRepresentation
509
+ property :arguments, as: 'arguments'
510
+ property :environment, as: 'environment'
511
+ property :materials, as: 'materials'
512
+ end
513
+ end
514
+
436
515
  class ComplianceOccurrence
437
516
  # @private
438
517
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -442,6 +521,16 @@ module Google
442
521
  end
443
522
  end
444
523
 
524
+ class DsseAttestationOccurrence
525
+ # @private
526
+ class Representation < Google::Apis::Core::JsonRepresentation
527
+ property :envelope, as: 'envelope', class: Google::Apis::OndemandscanningV1::Envelope, decorator: Google::Apis::OndemandscanningV1::Envelope::Representation
528
+
529
+ property :statement, as: 'statement', class: Google::Apis::OndemandscanningV1::InTotoStatement, decorator: Google::Apis::OndemandscanningV1::InTotoStatement::Representation
530
+
531
+ end
532
+ end
533
+
445
534
  class DeploymentOccurrence
446
535
  # @private
447
536
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -473,6 +562,24 @@ module Google
473
562
  end
474
563
  end
475
564
 
565
+ class Envelope
566
+ # @private
567
+ class Representation < Google::Apis::Core::JsonRepresentation
568
+ property :payload, :base64 => true, as: 'payload'
569
+ property :payload_type, as: 'payloadType'
570
+ collection :signatures, as: 'signatures', class: Google::Apis::OndemandscanningV1::EnvelopeSignature, decorator: Google::Apis::OndemandscanningV1::EnvelopeSignature::Representation
571
+
572
+ end
573
+ end
574
+
575
+ class EnvelopeSignature
576
+ # @private
577
+ class Representation < Google::Apis::Core::JsonRepresentation
578
+ property :keyid, as: 'keyid'
579
+ property :sig, :base64 => true, as: 'sig'
580
+ end
581
+ end
582
+
476
583
  class FileHashes
477
584
  # @private
478
585
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -537,6 +644,31 @@ module Google
537
644
  end
538
645
  end
539
646
 
647
+ class InTotoProvenance
648
+ # @private
649
+ class Representation < Google::Apis::Core::JsonRepresentation
650
+ property :builder_config, as: 'builderConfig', class: Google::Apis::OndemandscanningV1::BuilderConfig, decorator: Google::Apis::OndemandscanningV1::BuilderConfig::Representation
651
+
652
+ collection :materials, as: 'materials'
653
+ property :metadata, as: 'metadata', class: Google::Apis::OndemandscanningV1::Metadata, decorator: Google::Apis::OndemandscanningV1::Metadata::Representation
654
+
655
+ property :recipe, as: 'recipe', class: Google::Apis::OndemandscanningV1::Recipe, decorator: Google::Apis::OndemandscanningV1::Recipe::Representation
656
+
657
+ end
658
+ end
659
+
660
+ class InTotoStatement
661
+ # @private
662
+ class Representation < Google::Apis::Core::JsonRepresentation
663
+ property :predicate_type, as: 'predicateType'
664
+ property :provenance, as: 'provenance', class: Google::Apis::OndemandscanningV1::InTotoProvenance, decorator: Google::Apis::OndemandscanningV1::InTotoProvenance::Representation
665
+
666
+ collection :subject, as: 'subject', class: Google::Apis::OndemandscanningV1::Subject, decorator: Google::Apis::OndemandscanningV1::Subject::Representation
667
+
668
+ property :type, as: 'type'
669
+ end
670
+ end
671
+
540
672
  class Jwt
541
673
  # @private
542
674
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -580,6 +712,18 @@ module Google
580
712
  end
581
713
  end
582
714
 
715
+ class Metadata
716
+ # @private
717
+ class Representation < Google::Apis::Core::JsonRepresentation
718
+ property :build_finished_on, as: 'buildFinishedOn'
719
+ property :build_invocation_id, as: 'buildInvocationId'
720
+ property :build_started_on, as: 'buildStartedOn'
721
+ property :completeness, as: 'completeness', class: Google::Apis::OndemandscanningV1::Completeness, decorator: Google::Apis::OndemandscanningV1::Completeness::Representation
722
+
723
+ property :reproducible, as: 'reproducible'
724
+ end
725
+ end
726
+
583
727
  class NonCompliantFile
584
728
  # @private
585
729
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -603,6 +747,10 @@ module Google
603
747
 
604
748
  property :discovery, as: 'discovery', class: Google::Apis::OndemandscanningV1::DiscoveryOccurrence, decorator: Google::Apis::OndemandscanningV1::DiscoveryOccurrence::Representation
605
749
 
750
+ property :dsse_attestation, as: 'dsseAttestation', class: Google::Apis::OndemandscanningV1::DsseAttestationOccurrence, decorator: Google::Apis::OndemandscanningV1::DsseAttestationOccurrence::Representation
751
+
752
+ property :envelope, as: 'envelope', class: Google::Apis::OndemandscanningV1::Envelope, decorator: Google::Apis::OndemandscanningV1::Envelope::Representation
753
+
606
754
  property :image, as: 'image', class: Google::Apis::OndemandscanningV1::ImageOccurrence, decorator: Google::Apis::OndemandscanningV1::ImageOccurrence::Representation
607
755
 
608
756
  property :kind, as: 'kind'
@@ -652,11 +800,13 @@ module Google
652
800
  property :affected_package, as: 'affectedPackage'
653
801
  property :affected_version, as: 'affectedVersion', class: Google::Apis::OndemandscanningV1::Version, decorator: Google::Apis::OndemandscanningV1::Version::Representation
654
802
 
803
+ property :effective_severity, as: 'effectiveSeverity'
655
804
  property :fix_available, as: 'fixAvailable'
656
805
  property :fixed_cpe_uri, as: 'fixedCpeUri'
657
806
  property :fixed_package, as: 'fixedPackage'
658
807
  property :fixed_version, as: 'fixedVersion', class: Google::Apis::OndemandscanningV1::Version, decorator: Google::Apis::OndemandscanningV1::Version::Representation
659
808
 
809
+ property :package_type, as: 'packageType'
660
810
  end
661
811
  end
662
812
 
@@ -677,6 +827,17 @@ module Google
677
827
  end
678
828
  end
679
829
 
830
+ class Recipe
831
+ # @private
832
+ class Representation < Google::Apis::Core::JsonRepresentation
833
+ collection :arguments, as: 'arguments'
834
+ property :defined_in_material, :numeric_string => true, as: 'definedInMaterial'
835
+ property :entry_point, as: 'entryPoint'
836
+ collection :environment, as: 'environment'
837
+ property :type, as: 'type'
838
+ end
839
+ end
840
+
680
841
  class RelatedUrl
681
842
  # @private
682
843
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -737,6 +898,14 @@ module Google
737
898
  end
738
899
  end
739
900
 
901
+ class Subject
902
+ # @private
903
+ class Representation < Google::Apis::Core::JsonRepresentation
904
+ hash :digest, as: 'digest'
905
+ property :name, as: 'name'
906
+ end
907
+ end
908
+
740
909
  class UpgradeDistribution
741
910
  # @private
742
911
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # See, edit, configure, and delete your Google Cloud Platform data
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
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.7.0
4
+ version: 0.11.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: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-ondemandscanning_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1/v0.7.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-ondemandscanning_v1
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.11.0
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: []
65
65
  require_paths: