google-apis-ondemandscanning_v1beta1 0.9.0 → 0.13.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: 0d1cadc17c1fa0210c7aa18e4e18ca8d633add8337c30c7545370adec0534abb
4
- data.tar.gz: 700a52366ed09f3f8af5b055d9dd6d2ed5ea6dd6c5f6fdc4b6a05315351459ad
3
+ metadata.gz: 41a13e095bb5eb13bc2d2a22f04f1d01e826e08203f8ab521659b4008a52db6d
4
+ data.tar.gz: 15da553aa70d34f62c867f23fe47b6f61a83324c994be961db2b9099845b81b9
5
5
  SHA512:
6
- metadata.gz: 3a00a9ea996898e8a7a516ced928418ed36ba0b5ec8ac20875f1d500d5a64e9af4e2db196caf2df6d3f25685ba44150fc89b214cdcb829f7479944345f849ee7
7
- data.tar.gz: 2e7b407215cf837599773beaa28f3db00c04e3d3e1df349512fe5d92ce78e7eeea4cfcda4cd143a4569ad868de8bef1a9f85745389047b1b5fb5e236a2e303f2
6
+ metadata.gz: 196acae39f7ee89db270974071e832a1aeeaa70bd3486747d37cf15b0be7ea1cce5b535b4eafe34f4c45faa55a96c6a7984da766b6d1a7b11ebd80d83af70566
7
+ data.tar.gz: 88a2f02aa02d43f9e30522d9d3156d1d16c1a33bc75607331bb0471b4b3615030fd9354ddf780d15226ec3a61057bcaa2f0173a531a80c2e4e79a79ef5f471d7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-ondemandscanning_v1beta1
2
2
 
3
+ ### v0.13.0 (2021-10-21)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.12.0 (2021-09-01)
8
+
9
+ * Regenerated from discovery document revision 20210824
10
+
11
+ ### v0.11.0 (2021-08-05)
12
+
13
+ * Regenerated from discovery document revision 20210731
14
+
15
+ ### v0.10.0 (2021-06-29)
16
+
17
+ * Regenerated using generator version 0.4.0
18
+
3
19
  ### v0.9.0 (2021-06-24)
4
20
 
5
21
  * Unspecified changes
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
 
@@ -253,6 +253,11 @@ module Google
253
253
  class BuildOccurrence
254
254
  include Google::Apis::Core::Hashable
255
255
 
256
+ # In-toto Provenance representation as defined in spec.
257
+ # Corresponds to the JSON property `intotoProvenance`
258
+ # @return [Google::Apis::OndemandscanningV1beta1::InTotoProvenance]
259
+ attr_accessor :intoto_provenance
260
+
256
261
  # Provenance of a build. Contains all information needed to verify the full
257
262
  # details about the build from source to completion.
258
263
  # Corresponds to the JSON property `provenance`
@@ -277,6 +282,7 @@ module Google
277
282
 
278
283
  # Update properties of this object
279
284
  def update!(**args)
285
+ @intoto_provenance = args[:intoto_provenance] if args.key?(:intoto_provenance)
280
286
  @provenance = args[:provenance] if args.key?(:provenance)
281
287
  @provenance_bytes = args[:provenance_bytes] if args.key?(:provenance_bytes)
282
288
  end
@@ -377,6 +383,25 @@ module Google
377
383
  end
378
384
  end
379
385
 
386
+ #
387
+ class BuilderConfig
388
+ include Google::Apis::Core::Hashable
389
+
390
+ #
391
+ # Corresponds to the JSON property `id`
392
+ # @return [String]
393
+ attr_accessor :id
394
+
395
+ def initialize(**args)
396
+ update!(**args)
397
+ end
398
+
399
+ # Update properties of this object
400
+ def update!(**args)
401
+ @id = args[:id] if args.key?(:id)
402
+ end
403
+ end
404
+
380
405
  # The category to which the update belongs.
381
406
  class Category
382
407
  include Google::Apis::Core::Hashable
@@ -486,6 +511,43 @@ module Google
486
511
  end
487
512
  end
488
513
 
514
+ # Indicates that the builder claims certain fields in this message to be
515
+ # complete.
516
+ class Completeness
517
+ include Google::Apis::Core::Hashable
518
+
519
+ # If true, the builder claims that recipe.arguments is complete, meaning that
520
+ # all external inputs are properly captured in the recipe.
521
+ # Corresponds to the JSON property `arguments`
522
+ # @return [Boolean]
523
+ attr_accessor :arguments
524
+ alias_method :arguments?, :arguments
525
+
526
+ # If true, the builder claims that recipe.environment is claimed to be complete.
527
+ # Corresponds to the JSON property `environment`
528
+ # @return [Boolean]
529
+ attr_accessor :environment
530
+ alias_method :environment?, :environment
531
+
532
+ # If true, the builder claims that materials are complete, usually through some
533
+ # controls to prevent network access. Sometimes called "hermetic".
534
+ # Corresponds to the JSON property `materials`
535
+ # @return [Boolean]
536
+ attr_accessor :materials
537
+ alias_method :materials?, :materials
538
+
539
+ def initialize(**args)
540
+ update!(**args)
541
+ end
542
+
543
+ # Update properties of this object
544
+ def update!(**args)
545
+ @arguments = args[:arguments] if args.key?(:arguments)
546
+ @environment = args[:environment] if args.key?(:environment)
547
+ @materials = args[:materials] if args.key?(:materials)
548
+ end
549
+ end
550
+
489
551
  # An indication that the compliance checks in the associated ComplianceNote were
490
552
  # not satisfied for particular resources or a specified reason.
491
553
  class ComplianceOccurrence
@@ -512,6 +574,34 @@ module Google
512
574
  end
513
575
  end
514
576
 
577
+ #
578
+ class DsseAttestationOccurrence
579
+ include Google::Apis::Core::Hashable
580
+
581
+ # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.
582
+ # proto. An authenticated message of arbitrary type.
583
+ # Corresponds to the JSON property `envelope`
584
+ # @return [Google::Apis::OndemandscanningV1beta1::Envelope]
585
+ attr_accessor :envelope
586
+
587
+ # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#
588
+ # statement The serialized InTotoStatement will be stored as Envelope.payload.
589
+ # Envelope.payloadType is always "application/vnd.in-toto+json".
590
+ # Corresponds to the JSON property `statement`
591
+ # @return [Google::Apis::OndemandscanningV1beta1::InTotoStatement]
592
+ attr_accessor :statement
593
+
594
+ def initialize(**args)
595
+ update!(**args)
596
+ end
597
+
598
+ # Update properties of this object
599
+ def update!(**args)
600
+ @envelope = args[:envelope] if args.key?(:envelope)
601
+ @statement = args[:statement] if args.key?(:statement)
602
+ end
603
+ end
604
+
515
605
  # The period during which some deployable was active in a runtime.
516
606
  class DeploymentOccurrence
517
607
  include Google::Apis::Core::Hashable
@@ -633,6 +723,65 @@ module Google
633
723
  end
634
724
  end
635
725
 
726
+ # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.
727
+ # proto. An authenticated message of arbitrary type.
728
+ class Envelope
729
+ include Google::Apis::Core::Hashable
730
+
731
+ #
732
+ # Corresponds to the JSON property `payload`
733
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
734
+ # @return [String]
735
+ attr_accessor :payload
736
+
737
+ #
738
+ # Corresponds to the JSON property `payloadType`
739
+ # @return [String]
740
+ attr_accessor :payload_type
741
+
742
+ #
743
+ # Corresponds to the JSON property `signatures`
744
+ # @return [Array<Google::Apis::OndemandscanningV1beta1::EnvelopeSignature>]
745
+ attr_accessor :signatures
746
+
747
+ def initialize(**args)
748
+ update!(**args)
749
+ end
750
+
751
+ # Update properties of this object
752
+ def update!(**args)
753
+ @payload = args[:payload] if args.key?(:payload)
754
+ @payload_type = args[:payload_type] if args.key?(:payload_type)
755
+ @signatures = args[:signatures] if args.key?(:signatures)
756
+ end
757
+ end
758
+
759
+ #
760
+ class EnvelopeSignature
761
+ include Google::Apis::Core::Hashable
762
+
763
+ #
764
+ # Corresponds to the JSON property `keyid`
765
+ # @return [String]
766
+ attr_accessor :keyid
767
+
768
+ #
769
+ # Corresponds to the JSON property `sig`
770
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
771
+ # @return [String]
772
+ attr_accessor :sig
773
+
774
+ def initialize(**args)
775
+ update!(**args)
776
+ end
777
+
778
+ # Update properties of this object
779
+ def update!(**args)
780
+ @keyid = args[:keyid] if args.key?(:keyid)
781
+ @sig = args[:sig] if args.key?(:sig)
782
+ end
783
+ end
784
+
636
785
  # Container message for hashes of byte content of files, used in source messages
637
786
  # to verify integrity of source input to the build.
638
787
  class FileHashes
@@ -843,6 +992,86 @@ module Google
843
992
  end
844
993
  end
845
994
 
995
+ #
996
+ class InTotoProvenance
997
+ include Google::Apis::Core::Hashable
998
+
999
+ # required
1000
+ # Corresponds to the JSON property `builderConfig`
1001
+ # @return [Google::Apis::OndemandscanningV1beta1::BuilderConfig]
1002
+ attr_accessor :builder_config
1003
+
1004
+ # The collection of artifacts that influenced the build including sources,
1005
+ # dependencies, build tools, base images, and so on. This is considered to be
1006
+ # incomplete unless metadata.completeness.materials is true. Unset or null is
1007
+ # equivalent to empty.
1008
+ # Corresponds to the JSON property `materials`
1009
+ # @return [Array<String>]
1010
+ attr_accessor :materials
1011
+
1012
+ # Other properties of the build.
1013
+ # Corresponds to the JSON property `metadata`
1014
+ # @return [Google::Apis::OndemandscanningV1beta1::Metadata]
1015
+ attr_accessor :metadata
1016
+
1017
+ # Steps taken to build the artifact. For a TaskRun, typically each container
1018
+ # corresponds to one step in the recipe.
1019
+ # Corresponds to the JSON property `recipe`
1020
+ # @return [Google::Apis::OndemandscanningV1beta1::Recipe]
1021
+ attr_accessor :recipe
1022
+
1023
+ def initialize(**args)
1024
+ update!(**args)
1025
+ end
1026
+
1027
+ # Update properties of this object
1028
+ def update!(**args)
1029
+ @builder_config = args[:builder_config] if args.key?(:builder_config)
1030
+ @materials = args[:materials] if args.key?(:materials)
1031
+ @metadata = args[:metadata] if args.key?(:metadata)
1032
+ @recipe = args[:recipe] if args.key?(:recipe)
1033
+ end
1034
+ end
1035
+
1036
+ # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#
1037
+ # statement The serialized InTotoStatement will be stored as Envelope.payload.
1038
+ # Envelope.payloadType is always "application/vnd.in-toto+json".
1039
+ class InTotoStatement
1040
+ include Google::Apis::Core::Hashable
1041
+
1042
+ # "https://in-toto.io/Provenance/v0.1" for InTotoProvenance.
1043
+ # Corresponds to the JSON property `predicateType`
1044
+ # @return [String]
1045
+ attr_accessor :predicate_type
1046
+
1047
+ #
1048
+ # Corresponds to the JSON property `provenance`
1049
+ # @return [Google::Apis::OndemandscanningV1beta1::InTotoProvenance]
1050
+ attr_accessor :provenance
1051
+
1052
+ #
1053
+ # Corresponds to the JSON property `subject`
1054
+ # @return [Array<Google::Apis::OndemandscanningV1beta1::Subject>]
1055
+ attr_accessor :subject
1056
+
1057
+ # Always "https://in-toto.io/Statement/v0.1".
1058
+ # Corresponds to the JSON property `type`
1059
+ # @return [String]
1060
+ attr_accessor :type
1061
+
1062
+ def initialize(**args)
1063
+ update!(**args)
1064
+ end
1065
+
1066
+ # Update properties of this object
1067
+ def update!(**args)
1068
+ @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
1069
+ @provenance = args[:provenance] if args.key?(:provenance)
1070
+ @subject = args[:subject] if args.key?(:subject)
1071
+ @type = args[:type] if args.key?(:type)
1072
+ end
1073
+ end
1074
+
846
1075
  #
847
1076
  class Jwt
848
1077
  include Google::Apis::Core::Hashable
@@ -975,6 +1204,54 @@ module Google
975
1204
  end
976
1205
  end
977
1206
 
1207
+ # Other properties of the build.
1208
+ class Metadata
1209
+ include Google::Apis::Core::Hashable
1210
+
1211
+ # The timestamp of when the build completed.
1212
+ # Corresponds to the JSON property `buildFinishedOn`
1213
+ # @return [String]
1214
+ attr_accessor :build_finished_on
1215
+
1216
+ # Identifies the particular build invocation, which can be useful for finding
1217
+ # associated logs or other ad-hoc analysis. The value SHOULD be globally unique,
1218
+ # per in-toto Provenance spec.
1219
+ # Corresponds to the JSON property `buildInvocationId`
1220
+ # @return [String]
1221
+ attr_accessor :build_invocation_id
1222
+
1223
+ # The timestamp of when the build started.
1224
+ # Corresponds to the JSON property `buildStartedOn`
1225
+ # @return [String]
1226
+ attr_accessor :build_started_on
1227
+
1228
+ # Indicates that the builder claims certain fields in this message to be
1229
+ # complete.
1230
+ # Corresponds to the JSON property `completeness`
1231
+ # @return [Google::Apis::OndemandscanningV1beta1::Completeness]
1232
+ attr_accessor :completeness
1233
+
1234
+ # If true, the builder claims that running the recipe on materials will produce
1235
+ # bit-for-bit identical output.
1236
+ # Corresponds to the JSON property `reproducible`
1237
+ # @return [Boolean]
1238
+ attr_accessor :reproducible
1239
+ alias_method :reproducible?, :reproducible
1240
+
1241
+ def initialize(**args)
1242
+ update!(**args)
1243
+ end
1244
+
1245
+ # Update properties of this object
1246
+ def update!(**args)
1247
+ @build_finished_on = args[:build_finished_on] if args.key?(:build_finished_on)
1248
+ @build_invocation_id = args[:build_invocation_id] if args.key?(:build_invocation_id)
1249
+ @build_started_on = args[:build_started_on] if args.key?(:build_started_on)
1250
+ @completeness = args[:completeness] if args.key?(:completeness)
1251
+ @reproducible = args[:reproducible] if args.key?(:reproducible)
1252
+ end
1253
+ end
1254
+
978
1255
  # Details about files that caused a compliance check to fail.
979
1256
  class NonCompliantFile
980
1257
  include Google::Apis::Core::Hashable
@@ -1049,6 +1326,17 @@ module Google
1049
1326
  # @return [Google::Apis::OndemandscanningV1beta1::DiscoveryOccurrence]
1050
1327
  attr_accessor :discovery
1051
1328
 
1329
+ # Describes an attestation of an artifact using dsse.
1330
+ # Corresponds to the JSON property `dsseAttestation`
1331
+ # @return [Google::Apis::OndemandscanningV1beta1::DsseAttestationOccurrence]
1332
+ attr_accessor :dsse_attestation
1333
+
1334
+ # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.
1335
+ # proto. An authenticated message of arbitrary type.
1336
+ # Corresponds to the JSON property `envelope`
1337
+ # @return [Google::Apis::OndemandscanningV1beta1::Envelope]
1338
+ attr_accessor :envelope
1339
+
1052
1340
  # Details of the derived image portion of the DockerImage relationship. This
1053
1341
  # image would be produced from a Dockerfile with FROM .
1054
1342
  # Corresponds to the JSON property `image`
@@ -1122,6 +1410,8 @@ module Google
1122
1410
  @create_time = args[:create_time] if args.key?(:create_time)
1123
1411
  @deployment = args[:deployment] if args.key?(:deployment)
1124
1412
  @discovery = args[:discovery] if args.key?(:discovery)
1413
+ @dsse_attestation = args[:dsse_attestation] if args.key?(:dsse_attestation)
1414
+ @envelope = args[:envelope] if args.key?(:envelope)
1125
1415
  @image = args[:image] if args.key?(:image)
1126
1416
  @kind = args[:kind] if args.key?(:kind)
1127
1417
  @name = args[:name] if args.key?(:name)
@@ -1277,6 +1567,13 @@ module Google
1277
1567
  # @return [Google::Apis::OndemandscanningV1beta1::Version]
1278
1568
  attr_accessor :affected_version
1279
1569
 
1570
+ # Output only. The distro or language system assigned severity for this
1571
+ # vulnerability when that is available and note provider assigned severity when
1572
+ # it is not available.
1573
+ # Corresponds to the JSON property `effectiveSeverity`
1574
+ # @return [String]
1575
+ attr_accessor :effective_severity
1576
+
1280
1577
  # Output only. Whether a fix is available for this package.
1281
1578
  # Corresponds to the JSON property `fixAvailable`
1282
1579
  # @return [Boolean]
@@ -1300,6 +1597,11 @@ module Google
1300
1597
  # @return [Google::Apis::OndemandscanningV1beta1::Version]
1301
1598
  attr_accessor :fixed_version
1302
1599
 
1600
+ # The type of package (e.g. OS, MAVEN, GO).
1601
+ # Corresponds to the JSON property `packageType`
1602
+ # @return [String]
1603
+ attr_accessor :package_type
1604
+
1303
1605
  def initialize(**args)
1304
1606
  update!(**args)
1305
1607
  end
@@ -1309,10 +1611,12 @@ module Google
1309
1611
  @affected_cpe_uri = args[:affected_cpe_uri] if args.key?(:affected_cpe_uri)
1310
1612
  @affected_package = args[:affected_package] if args.key?(:affected_package)
1311
1613
  @affected_version = args[:affected_version] if args.key?(:affected_version)
1614
+ @effective_severity = args[:effective_severity] if args.key?(:effective_severity)
1312
1615
  @fix_available = args[:fix_available] if args.key?(:fix_available)
1313
1616
  @fixed_cpe_uri = args[:fixed_cpe_uri] if args.key?(:fixed_cpe_uri)
1314
1617
  @fixed_package = args[:fixed_package] if args.key?(:fixed_package)
1315
1618
  @fixed_version = args[:fixed_version] if args.key?(:fixed_version)
1619
+ @package_type = args[:package_type] if args.key?(:package_type)
1316
1620
  end
1317
1621
  end
1318
1622
 
@@ -1368,6 +1672,67 @@ module Google
1368
1672
  end
1369
1673
  end
1370
1674
 
1675
+ # Steps taken to build the artifact. For a TaskRun, typically each container
1676
+ # corresponds to one step in the recipe.
1677
+ class Recipe
1678
+ include Google::Apis::Core::Hashable
1679
+
1680
+ # Collection of all external inputs that influenced the build on top of recipe.
1681
+ # definedInMaterial and recipe.entryPoint. For example, if the recipe type were "
1682
+ # make", then this might be the flags passed to make aside from the target,
1683
+ # which is captured in recipe.entryPoint. Since the arguments field can greatly
1684
+ # vary in structure, depending on the builder and recipe type, this is of form "
1685
+ # Any".
1686
+ # Corresponds to the JSON property `arguments`
1687
+ # @return [Array<Hash<String,Object>>]
1688
+ attr_accessor :arguments
1689
+
1690
+ # Index in materials containing the recipe steps that are not implied by recipe.
1691
+ # type. For example, if the recipe type were "make", then this would point to
1692
+ # the source containing the Makefile, not the make program itself. Set to -1 if
1693
+ # the recipe doesn't come from a material, as zero is default unset value for
1694
+ # int64.
1695
+ # Corresponds to the JSON property `definedInMaterial`
1696
+ # @return [Fixnum]
1697
+ attr_accessor :defined_in_material
1698
+
1699
+ # String identifying the entry point into the build. This is often a path to a
1700
+ # configuration file and/or a target label within that file. The syntax and
1701
+ # meaning are defined by recipe.type. For example, if the recipe type were "make"
1702
+ # , then this would reference the directory in which to run make as well as
1703
+ # which target to use.
1704
+ # Corresponds to the JSON property `entryPoint`
1705
+ # @return [String]
1706
+ attr_accessor :entry_point
1707
+
1708
+ # Any other builder-controlled inputs necessary for correctly evaluating the
1709
+ # recipe. Usually only needed for reproducing the build but not evaluated as
1710
+ # part of policy. Since the environment field can greatly vary in structure,
1711
+ # depending on the builder and recipe type, this is of form "Any".
1712
+ # Corresponds to the JSON property `environment`
1713
+ # @return [Array<Hash<String,Object>>]
1714
+ attr_accessor :environment
1715
+
1716
+ # URI indicating what type of recipe was performed. It determines the meaning of
1717
+ # recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
1718
+ # Corresponds to the JSON property `type`
1719
+ # @return [String]
1720
+ attr_accessor :type
1721
+
1722
+ def initialize(**args)
1723
+ update!(**args)
1724
+ end
1725
+
1726
+ # Update properties of this object
1727
+ def update!(**args)
1728
+ @arguments = args[:arguments] if args.key?(:arguments)
1729
+ @defined_in_material = args[:defined_in_material] if args.key?(:defined_in_material)
1730
+ @entry_point = args[:entry_point] if args.key?(:entry_point)
1731
+ @environment = args[:environment] if args.key?(:environment)
1732
+ @type = args[:type] if args.key?(:type)
1733
+ end
1734
+ end
1735
+
1371
1736
  # Metadata for any related URL information.
1372
1737
  class RelatedUrl
1373
1738
  include Google::Apis::Core::Hashable
@@ -1598,6 +1963,31 @@ module Google
1598
1963
  end
1599
1964
  end
1600
1965
 
1966
+ #
1967
+ class Subject
1968
+ include Google::Apis::Core::Hashable
1969
+
1970
+ # "": ""
1971
+ # Corresponds to the JSON property `digest`
1972
+ # @return [Hash<String,String>]
1973
+ attr_accessor :digest
1974
+
1975
+ #
1976
+ # Corresponds to the JSON property `name`
1977
+ # @return [String]
1978
+ attr_accessor :name
1979
+
1980
+ def initialize(**args)
1981
+ update!(**args)
1982
+ end
1983
+
1984
+ # Update properties of this object
1985
+ def update!(**args)
1986
+ @digest = args[:digest] if args.key?(:digest)
1987
+ @name = args[:name] if args.key?(:name)
1988
+ end
1989
+ end
1990
+
1601
1991
  # The Upgrade Distribution represents metadata about the Upgrade for each
1602
1992
  # operating system (CPE). Some distributions have additional metadata around
1603
1993
  # updates, classifying them into various categories and severities.
@@ -1754,7 +2144,13 @@ module Google
1754
2144
  attr_accessor :cvss_score
1755
2145
 
1756
2146
  # The distro assigned severity for this vulnerability when it is available,
1757
- # otherwise this is the note provider assigned severity.
2147
+ # otherwise this is the note provider assigned severity. When there are multiple
2148
+ # PackageIssues for this vulnerability, they can have different effective
2149
+ # severities because some might be provided by the distro while others are
2150
+ # provided by the language ecosystem for a language pack. For this reason, it is
2151
+ # advised to use the effective severity on the PackageIssue level. In the case
2152
+ # where multiple PackageIssues have differing effective severities, this field
2153
+ # should be the highest severity for any of the PackageIssues.
1758
2154
  # Corresponds to the JSON property `effectiveSeverity`
1759
2155
  # @return [String]
1760
2156
  attr_accessor :effective_severity
@@ -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.9.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
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 = "20210824"
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
 
@@ -374,6 +434,8 @@ module Google
374
434
  class BuildOccurrence
375
435
  # @private
376
436
  class Representation < Google::Apis::Core::JsonRepresentation
437
+ property :intoto_provenance, as: 'intotoProvenance', class: Google::Apis::OndemandscanningV1beta1::InTotoProvenance, decorator: Google::Apis::OndemandscanningV1beta1::InTotoProvenance::Representation
438
+
377
439
  property :provenance, as: 'provenance', class: Google::Apis::OndemandscanningV1beta1::BuildProvenance, decorator: Google::Apis::OndemandscanningV1beta1::BuildProvenance::Representation
378
440
 
379
441
  property :provenance_bytes, as: 'provenanceBytes'
@@ -402,6 +464,13 @@ module Google
402
464
  end
403
465
  end
404
466
 
467
+ class BuilderConfig
468
+ # @private
469
+ class Representation < Google::Apis::Core::JsonRepresentation
470
+ property :id, as: 'id'
471
+ end
472
+ end
473
+
405
474
  class Category
406
475
  # @private
407
476
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -433,6 +502,15 @@ module Google
433
502
  end
434
503
  end
435
504
 
505
+ class Completeness
506
+ # @private
507
+ class Representation < Google::Apis::Core::JsonRepresentation
508
+ property :arguments, as: 'arguments'
509
+ property :environment, as: 'environment'
510
+ property :materials, as: 'materials'
511
+ end
512
+ end
513
+
436
514
  class ComplianceOccurrence
437
515
  # @private
438
516
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -442,6 +520,16 @@ module Google
442
520
  end
443
521
  end
444
522
 
523
+ class DsseAttestationOccurrence
524
+ # @private
525
+ class Representation < Google::Apis::Core::JsonRepresentation
526
+ property :envelope, as: 'envelope', class: Google::Apis::OndemandscanningV1beta1::Envelope, decorator: Google::Apis::OndemandscanningV1beta1::Envelope::Representation
527
+
528
+ property :statement, as: 'statement', class: Google::Apis::OndemandscanningV1beta1::InTotoStatement, decorator: Google::Apis::OndemandscanningV1beta1::InTotoStatement::Representation
529
+
530
+ end
531
+ end
532
+
445
533
  class DeploymentOccurrence
446
534
  # @private
447
535
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -473,6 +561,24 @@ module Google
473
561
  end
474
562
  end
475
563
 
564
+ class Envelope
565
+ # @private
566
+ class Representation < Google::Apis::Core::JsonRepresentation
567
+ property :payload, :base64 => true, as: 'payload'
568
+ property :payload_type, as: 'payloadType'
569
+ collection :signatures, as: 'signatures', class: Google::Apis::OndemandscanningV1beta1::EnvelopeSignature, decorator: Google::Apis::OndemandscanningV1beta1::EnvelopeSignature::Representation
570
+
571
+ end
572
+ end
573
+
574
+ class EnvelopeSignature
575
+ # @private
576
+ class Representation < Google::Apis::Core::JsonRepresentation
577
+ property :keyid, as: 'keyid'
578
+ property :sig, :base64 => true, as: 'sig'
579
+ end
580
+ end
581
+
476
582
  class FileHashes
477
583
  # @private
478
584
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -537,6 +643,31 @@ module Google
537
643
  end
538
644
  end
539
645
 
646
+ class InTotoProvenance
647
+ # @private
648
+ class Representation < Google::Apis::Core::JsonRepresentation
649
+ property :builder_config, as: 'builderConfig', class: Google::Apis::OndemandscanningV1beta1::BuilderConfig, decorator: Google::Apis::OndemandscanningV1beta1::BuilderConfig::Representation
650
+
651
+ collection :materials, as: 'materials'
652
+ property :metadata, as: 'metadata', class: Google::Apis::OndemandscanningV1beta1::Metadata, decorator: Google::Apis::OndemandscanningV1beta1::Metadata::Representation
653
+
654
+ property :recipe, as: 'recipe', class: Google::Apis::OndemandscanningV1beta1::Recipe, decorator: Google::Apis::OndemandscanningV1beta1::Recipe::Representation
655
+
656
+ end
657
+ end
658
+
659
+ class InTotoStatement
660
+ # @private
661
+ class Representation < Google::Apis::Core::JsonRepresentation
662
+ property :predicate_type, as: 'predicateType'
663
+ property :provenance, as: 'provenance', class: Google::Apis::OndemandscanningV1beta1::InTotoProvenance, decorator: Google::Apis::OndemandscanningV1beta1::InTotoProvenance::Representation
664
+
665
+ collection :subject, as: 'subject', class: Google::Apis::OndemandscanningV1beta1::Subject, decorator: Google::Apis::OndemandscanningV1beta1::Subject::Representation
666
+
667
+ property :type, as: 'type'
668
+ end
669
+ end
670
+
540
671
  class Jwt
541
672
  # @private
542
673
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -580,6 +711,18 @@ module Google
580
711
  end
581
712
  end
582
713
 
714
+ class Metadata
715
+ # @private
716
+ class Representation < Google::Apis::Core::JsonRepresentation
717
+ property :build_finished_on, as: 'buildFinishedOn'
718
+ property :build_invocation_id, as: 'buildInvocationId'
719
+ property :build_started_on, as: 'buildStartedOn'
720
+ property :completeness, as: 'completeness', class: Google::Apis::OndemandscanningV1beta1::Completeness, decorator: Google::Apis::OndemandscanningV1beta1::Completeness::Representation
721
+
722
+ property :reproducible, as: 'reproducible'
723
+ end
724
+ end
725
+
583
726
  class NonCompliantFile
584
727
  # @private
585
728
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -603,6 +746,10 @@ module Google
603
746
 
604
747
  property :discovery, as: 'discovery', class: Google::Apis::OndemandscanningV1beta1::DiscoveryOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::DiscoveryOccurrence::Representation
605
748
 
749
+ property :dsse_attestation, as: 'dsseAttestation', class: Google::Apis::OndemandscanningV1beta1::DsseAttestationOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::DsseAttestationOccurrence::Representation
750
+
751
+ property :envelope, as: 'envelope', class: Google::Apis::OndemandscanningV1beta1::Envelope, decorator: Google::Apis::OndemandscanningV1beta1::Envelope::Representation
752
+
606
753
  property :image, as: 'image', class: Google::Apis::OndemandscanningV1beta1::ImageOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::ImageOccurrence::Representation
607
754
 
608
755
  property :kind, as: 'kind'
@@ -652,11 +799,13 @@ module Google
652
799
  property :affected_package, as: 'affectedPackage'
653
800
  property :affected_version, as: 'affectedVersion', class: Google::Apis::OndemandscanningV1beta1::Version, decorator: Google::Apis::OndemandscanningV1beta1::Version::Representation
654
801
 
802
+ property :effective_severity, as: 'effectiveSeverity'
655
803
  property :fix_available, as: 'fixAvailable'
656
804
  property :fixed_cpe_uri, as: 'fixedCpeUri'
657
805
  property :fixed_package, as: 'fixedPackage'
658
806
  property :fixed_version, as: 'fixedVersion', class: Google::Apis::OndemandscanningV1beta1::Version, decorator: Google::Apis::OndemandscanningV1beta1::Version::Representation
659
807
 
808
+ property :package_type, as: 'packageType'
660
809
  end
661
810
  end
662
811
 
@@ -677,6 +826,17 @@ module Google
677
826
  end
678
827
  end
679
828
 
829
+ class Recipe
830
+ # @private
831
+ class Representation < Google::Apis::Core::JsonRepresentation
832
+ collection :arguments, as: 'arguments'
833
+ property :defined_in_material, :numeric_string => true, as: 'definedInMaterial'
834
+ property :entry_point, as: 'entryPoint'
835
+ collection :environment, as: 'environment'
836
+ property :type, as: 'type'
837
+ end
838
+ end
839
+
680
840
  class RelatedUrl
681
841
  # @private
682
842
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -737,6 +897,14 @@ module Google
737
897
  end
738
898
  end
739
899
 
900
+ class Subject
901
+ # @private
902
+ class Representation < Google::Apis::Core::JsonRepresentation
903
+ hash :digest, as: 'digest'
904
+ property :name, as: 'name'
905
+ end
906
+ end
907
+
740
908
  class UpgradeDistribution
741
909
  # @private
742
910
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1beta1'
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_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.13.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-06-28 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
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.3'
29
+ version: '0.4'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.9.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-ondemandscanning_v1beta1
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.13.0
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: []
65
65
  require_paths: