google-apis-ondemandscanning_v1beta1 0.13.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41a13e095bb5eb13bc2d2a22f04f1d01e826e08203f8ab521659b4008a52db6d
4
- data.tar.gz: 15da553aa70d34f62c867f23fe47b6f61a83324c994be961db2b9099845b81b9
3
+ metadata.gz: bde97b7ce023f7338c6bf63851771527bfea26c6abda7c22fa435bccf5986415
4
+ data.tar.gz: fcef6d57e802f32d3ffec855dbfd7164df203d89cd1d112ae09321fe131fe7c5
5
5
  SHA512:
6
- metadata.gz: 196acae39f7ee89db270974071e832a1aeeaa70bd3486747d37cf15b0be7ea1cce5b535b4eafe34f4c45faa55a96c6a7984da766b6d1a7b11ebd80d83af70566
7
- data.tar.gz: 88a2f02aa02d43f9e30522d9d3156d1d16c1a33bc75607331bb0471b4b3615030fd9354ddf780d15226ec3a61057bcaa2f0173a531a80c2e4e79a79ef5f471d7
6
+ metadata.gz: c5f016f671cdab4e8846499ef94db7d4ac41dcbffee98dbf105a2d2a792884ae06fd90e878e8fc27765a29a395111205b6e700dd4d7b5da97db9f5d8ce31e02f
7
+ data.tar.gz: 6772e85ab4df38b7cb993170cdb5652abf2452fc7004bf14b98520176942fa2ad6647e75edf7f3db8eb68a884140a3a19106679e286898037e819652b4a47c5f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-ondemandscanning_v1beta1
2
2
 
3
+ ### v0.17.0 (2022-01-12)
4
+
5
+ * Regenerated from discovery document revision 20220107
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.16.0 (2021-12-14)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.15.0 (2021-12-09)
13
+
14
+ * Regenerated from discovery document revision 20211206
15
+
16
+ ### v0.14.0 (2021-11-04)
17
+
18
+ * Regenerated from discovery document revision 20211029
19
+
3
20
  ### v0.13.0 (2021-10-21)
4
21
 
5
22
  * Unspecified changes
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/ondemandscanning_v1beta1"
51
51
  client = Google::Apis::OndemandscanningV1beta1::OnDemandScanningService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -253,11 +253,19 @@ module Google
253
253
  class BuildOccurrence
254
254
  include Google::Apis::Core::Hashable
255
255
 
256
- # In-toto Provenance representation as defined in spec.
256
+ # Deprecated. See InTotoStatement for the replacement. In-toto Provenance
257
+ # representation as defined in spec.
257
258
  # Corresponds to the JSON property `intotoProvenance`
258
259
  # @return [Google::Apis::OndemandscanningV1beta1::InTotoProvenance]
259
260
  attr_accessor :intoto_provenance
260
261
 
262
+ # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#
263
+ # statement The serialized InTotoStatement will be stored as Envelope.payload.
264
+ # Envelope.payloadType is always "application/vnd.in-toto+json".
265
+ # Corresponds to the JSON property `intotoStatement`
266
+ # @return [Google::Apis::OndemandscanningV1beta1::InTotoStatement]
267
+ attr_accessor :intoto_statement
268
+
261
269
  # Provenance of a build. Contains all information needed to verify the full
262
270
  # details about the build from source to completion.
263
271
  # Corresponds to the JSON property `provenance`
@@ -283,6 +291,7 @@ module Google
283
291
  # Update properties of this object
284
292
  def update!(**args)
285
293
  @intoto_provenance = args[:intoto_provenance] if args.key?(:intoto_provenance)
294
+ @intoto_statement = args[:intoto_statement] if args.key?(:intoto_statement)
286
295
  @provenance = args[:provenance] if args.key?(:provenance)
287
296
  @provenance_bytes = args[:provenance_bytes] if args.key?(:provenance_bytes)
288
297
  end
@@ -402,6 +411,96 @@ module Google
402
411
  end
403
412
  end
404
413
 
414
+ # Common Vulnerability Scoring System. For details, see https://www.first.org/
415
+ # cvss/specification-document This is a message we will try to use for storing
416
+ # multiple versions of CVSS. The intention is that as new versions of CVSS
417
+ # scores get added, we will be able to modify this message rather than adding
418
+ # new protos for each new version of the score.
419
+ class Cvss
420
+ include Google::Apis::Core::Hashable
421
+
422
+ #
423
+ # Corresponds to the JSON property `attackComplexity`
424
+ # @return [String]
425
+ attr_accessor :attack_complexity
426
+
427
+ # Base Metrics Represents the intrinsic characteristics of a vulnerability that
428
+ # are constant over time and across user environments.
429
+ # Corresponds to the JSON property `attackVector`
430
+ # @return [String]
431
+ attr_accessor :attack_vector
432
+
433
+ #
434
+ # Corresponds to the JSON property `authentication`
435
+ # @return [String]
436
+ attr_accessor :authentication
437
+
438
+ #
439
+ # Corresponds to the JSON property `availabilityImpact`
440
+ # @return [String]
441
+ attr_accessor :availability_impact
442
+
443
+ # The base score is a function of the base metric scores.
444
+ # Corresponds to the JSON property `baseScore`
445
+ # @return [Float]
446
+ attr_accessor :base_score
447
+
448
+ #
449
+ # Corresponds to the JSON property `confidentialityImpact`
450
+ # @return [String]
451
+ attr_accessor :confidentiality_impact
452
+
453
+ #
454
+ # Corresponds to the JSON property `exploitabilityScore`
455
+ # @return [Float]
456
+ attr_accessor :exploitability_score
457
+
458
+ #
459
+ # Corresponds to the JSON property `impactScore`
460
+ # @return [Float]
461
+ attr_accessor :impact_score
462
+
463
+ #
464
+ # Corresponds to the JSON property `integrityImpact`
465
+ # @return [String]
466
+ attr_accessor :integrity_impact
467
+
468
+ #
469
+ # Corresponds to the JSON property `privilegesRequired`
470
+ # @return [String]
471
+ attr_accessor :privileges_required
472
+
473
+ #
474
+ # Corresponds to the JSON property `scope`
475
+ # @return [String]
476
+ attr_accessor :scope
477
+
478
+ #
479
+ # Corresponds to the JSON property `userInteraction`
480
+ # @return [String]
481
+ attr_accessor :user_interaction
482
+
483
+ def initialize(**args)
484
+ update!(**args)
485
+ end
486
+
487
+ # Update properties of this object
488
+ def update!(**args)
489
+ @attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
490
+ @attack_vector = args[:attack_vector] if args.key?(:attack_vector)
491
+ @authentication = args[:authentication] if args.key?(:authentication)
492
+ @availability_impact = args[:availability_impact] if args.key?(:availability_impact)
493
+ @base_score = args[:base_score] if args.key?(:base_score)
494
+ @confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
495
+ @exploitability_score = args[:exploitability_score] if args.key?(:exploitability_score)
496
+ @impact_score = args[:impact_score] if args.key?(:impact_score)
497
+ @integrity_impact = args[:integrity_impact] if args.key?(:integrity_impact)
498
+ @privileges_required = args[:privileges_required] if args.key?(:privileges_required)
499
+ @scope = args[:scope] if args.key?(:scope)
500
+ @user_interaction = args[:user_interaction] if args.key?(:user_interaction)
501
+ end
502
+ end
503
+
405
504
  # The category to which the update belongs.
406
505
  class Category
407
506
  include Google::Apis::Core::Hashable
@@ -574,7 +673,8 @@ module Google
574
673
  end
575
674
  end
576
675
 
577
- #
676
+ # Deprecated. Prefer to use a regular Occurrence, and populate the Envelope at
677
+ # the top level of the Occurrence.
578
678
  class DsseAttestationOccurrence
579
679
  include Google::Apis::Core::Hashable
580
680
 
@@ -677,6 +777,12 @@ module Google
677
777
  # @return [Google::Apis::OndemandscanningV1beta1::Status]
678
778
  attr_accessor :analysis_status_error
679
779
 
780
+ # Output only. The time occurrences related to this discovery occurrence were
781
+ # archived.
782
+ # Corresponds to the JSON property `archiveTime`
783
+ # @return [String]
784
+ attr_accessor :archive_time
785
+
680
786
  # Whether the resource is continuously analyzed.
681
787
  # Corresponds to the JSON property `continuousAnalysis`
682
788
  # @return [String]
@@ -700,6 +806,7 @@ module Google
700
806
  def update!(**args)
701
807
  @analysis_status = args[:analysis_status] if args.key?(:analysis_status)
702
808
  @analysis_status_error = args[:analysis_status_error] if args.key?(:analysis_status_error)
809
+ @archive_time = args[:archive_time] if args.key?(:archive_time)
703
810
  @continuous_analysis = args[:continuous_analysis] if args.key?(:continuous_analysis)
704
811
  @cpe = args[:cpe] if args.key?(:cpe)
705
812
  @last_scan_time = args[:last_scan_time] if args.key?(:last_scan_time)
@@ -1039,7 +1146,12 @@ module Google
1039
1146
  class InTotoStatement
1040
1147
  include Google::Apis::Core::Hashable
1041
1148
 
1042
- # "https://in-toto.io/Provenance/v0.1" for InTotoProvenance.
1149
+ # Always `https://in-toto.io/Statement/v0.1`.
1150
+ # Corresponds to the JSON property `_type`
1151
+ # @return [String]
1152
+ attr_accessor :_type
1153
+
1154
+ # `https://slsa.dev/provenance/v0.1` for SlsaProvenance.
1043
1155
  # Corresponds to the JSON property `predicateType`
1044
1156
  # @return [String]
1045
1157
  attr_accessor :predicate_type
@@ -1049,26 +1161,27 @@ module Google
1049
1161
  # @return [Google::Apis::OndemandscanningV1beta1::InTotoProvenance]
1050
1162
  attr_accessor :provenance
1051
1163
 
1164
+ #
1165
+ # Corresponds to the JSON property `slsaProvenance`
1166
+ # @return [Google::Apis::OndemandscanningV1beta1::SlsaProvenance]
1167
+ attr_accessor :slsa_provenance
1168
+
1052
1169
  #
1053
1170
  # Corresponds to the JSON property `subject`
1054
1171
  # @return [Array<Google::Apis::OndemandscanningV1beta1::Subject>]
1055
1172
  attr_accessor :subject
1056
1173
 
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
1174
  def initialize(**args)
1063
1175
  update!(**args)
1064
1176
  end
1065
1177
 
1066
1178
  # Update properties of this object
1067
1179
  def update!(**args)
1180
+ @_type = args[:_type] if args.key?(:_type)
1068
1181
  @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
1069
1182
  @provenance = args[:provenance] if args.key?(:provenance)
1183
+ @slsa_provenance = args[:slsa_provenance] if args.key?(:slsa_provenance)
1070
1184
  @subject = args[:subject] if args.key?(:subject)
1071
- @type = args[:type] if args.key?(:type)
1072
1185
  end
1073
1186
  end
1074
1187
 
@@ -1204,6 +1317,31 @@ module Google
1204
1317
  end
1205
1318
  end
1206
1319
 
1320
+ #
1321
+ class Material
1322
+ include Google::Apis::Core::Hashable
1323
+
1324
+ #
1325
+ # Corresponds to the JSON property `digest`
1326
+ # @return [Hash<String,String>]
1327
+ attr_accessor :digest
1328
+
1329
+ #
1330
+ # Corresponds to the JSON property `uri`
1331
+ # @return [String]
1332
+ attr_accessor :uri
1333
+
1334
+ def initialize(**args)
1335
+ update!(**args)
1336
+ end
1337
+
1338
+ # Update properties of this object
1339
+ def update!(**args)
1340
+ @digest = args[:digest] if args.key?(:digest)
1341
+ @uri = args[:uri] if args.key?(:uri)
1342
+ end
1343
+ end
1344
+
1207
1345
  # Other properties of the build.
1208
1346
  class Metadata
1209
1347
  include Google::Apis::Core::Hashable
@@ -1252,7 +1390,10 @@ module Google
1252
1390
  end
1253
1391
  end
1254
1392
 
1255
- # Details about files that caused a compliance check to fail.
1393
+ # Details about files that caused a compliance check to fail. display_command is
1394
+ # a single command that can be used to display a list of non compliant files.
1395
+ # When there is no such command, we can also iterate a list of non compliant
1396
+ # file using 'path'.
1256
1397
  class NonCompliantFile
1257
1398
  include Google::Apis::Core::Hashable
1258
1399
 
@@ -1261,9 +1402,7 @@ module Google
1261
1402
  # @return [String]
1262
1403
  attr_accessor :display_command
1263
1404
 
1264
- # display_command is a single command that can be used to display a list of non
1265
- # compliant files. When there is no such command, we can also iterate a list of
1266
- # non compliant file using 'path'. Empty if `display_command` is set.
1405
+ # Empty if `display_command` is set.
1267
1406
  # Corresponds to the JSON property `path`
1268
1407
  # @return [String]
1269
1408
  attr_accessor :path
@@ -1326,7 +1465,8 @@ module Google
1326
1465
  # @return [Google::Apis::OndemandscanningV1beta1::DiscoveryOccurrence]
1327
1466
  attr_accessor :discovery
1328
1467
 
1329
- # Describes an attestation of an artifact using dsse.
1468
+ # Deprecated. Prefer to use a regular Occurrence, and populate the Envelope at
1469
+ # the top level of the Occurrence.
1330
1470
  # Corresponds to the JSON property `dsseAttestation`
1331
1471
  # @return [Google::Apis::OndemandscanningV1beta1::DsseAttestationOccurrence]
1332
1472
  attr_accessor :dsse_attestation
@@ -1839,6 +1979,210 @@ module Google
1839
1979
  end
1840
1980
  end
1841
1981
 
1982
+ #
1983
+ class SlsaBuilder
1984
+ include Google::Apis::Core::Hashable
1985
+
1986
+ #
1987
+ # Corresponds to the JSON property `id`
1988
+ # @return [String]
1989
+ attr_accessor :id
1990
+
1991
+ def initialize(**args)
1992
+ update!(**args)
1993
+ end
1994
+
1995
+ # Update properties of this object
1996
+ def update!(**args)
1997
+ @id = args[:id] if args.key?(:id)
1998
+ end
1999
+ end
2000
+
2001
+ # Indicates that the builder claims certain fields in this message to be
2002
+ # complete.
2003
+ class SlsaCompleteness
2004
+ include Google::Apis::Core::Hashable
2005
+
2006
+ # If true, the builder claims that recipe.arguments is complete, meaning that
2007
+ # all external inputs are properly captured in the recipe.
2008
+ # Corresponds to the JSON property `arguments`
2009
+ # @return [Boolean]
2010
+ attr_accessor :arguments
2011
+ alias_method :arguments?, :arguments
2012
+
2013
+ # If true, the builder claims that recipe.environment is claimed to be complete.
2014
+ # Corresponds to the JSON property `environment`
2015
+ # @return [Boolean]
2016
+ attr_accessor :environment
2017
+ alias_method :environment?, :environment
2018
+
2019
+ # If true, the builder claims that materials are complete, usually through some
2020
+ # controls to prevent network access. Sometimes called "hermetic".
2021
+ # Corresponds to the JSON property `materials`
2022
+ # @return [Boolean]
2023
+ attr_accessor :materials
2024
+ alias_method :materials?, :materials
2025
+
2026
+ def initialize(**args)
2027
+ update!(**args)
2028
+ end
2029
+
2030
+ # Update properties of this object
2031
+ def update!(**args)
2032
+ @arguments = args[:arguments] if args.key?(:arguments)
2033
+ @environment = args[:environment] if args.key?(:environment)
2034
+ @materials = args[:materials] if args.key?(:materials)
2035
+ end
2036
+ end
2037
+
2038
+ # Other properties of the build.
2039
+ class SlsaMetadata
2040
+ include Google::Apis::Core::Hashable
2041
+
2042
+ # The timestamp of when the build completed.
2043
+ # Corresponds to the JSON property `buildFinishedOn`
2044
+ # @return [String]
2045
+ attr_accessor :build_finished_on
2046
+
2047
+ # Identifies the particular build invocation, which can be useful for finding
2048
+ # associated logs or other ad-hoc analysis. The value SHOULD be globally unique,
2049
+ # per in-toto Provenance spec.
2050
+ # Corresponds to the JSON property `buildInvocationId`
2051
+ # @return [String]
2052
+ attr_accessor :build_invocation_id
2053
+
2054
+ # The timestamp of when the build started.
2055
+ # Corresponds to the JSON property `buildStartedOn`
2056
+ # @return [String]
2057
+ attr_accessor :build_started_on
2058
+
2059
+ # Indicates that the builder claims certain fields in this message to be
2060
+ # complete.
2061
+ # Corresponds to the JSON property `completeness`
2062
+ # @return [Google::Apis::OndemandscanningV1beta1::SlsaCompleteness]
2063
+ attr_accessor :completeness
2064
+
2065
+ # If true, the builder claims that running the recipe on materials will produce
2066
+ # bit-for-bit identical output.
2067
+ # Corresponds to the JSON property `reproducible`
2068
+ # @return [Boolean]
2069
+ attr_accessor :reproducible
2070
+ alias_method :reproducible?, :reproducible
2071
+
2072
+ def initialize(**args)
2073
+ update!(**args)
2074
+ end
2075
+
2076
+ # Update properties of this object
2077
+ def update!(**args)
2078
+ @build_finished_on = args[:build_finished_on] if args.key?(:build_finished_on)
2079
+ @build_invocation_id = args[:build_invocation_id] if args.key?(:build_invocation_id)
2080
+ @build_started_on = args[:build_started_on] if args.key?(:build_started_on)
2081
+ @completeness = args[:completeness] if args.key?(:completeness)
2082
+ @reproducible = args[:reproducible] if args.key?(:reproducible)
2083
+ end
2084
+ end
2085
+
2086
+ #
2087
+ class SlsaProvenance
2088
+ include Google::Apis::Core::Hashable
2089
+
2090
+ # required
2091
+ # Corresponds to the JSON property `builder`
2092
+ # @return [Google::Apis::OndemandscanningV1beta1::SlsaBuilder]
2093
+ attr_accessor :builder
2094
+
2095
+ # The collection of artifacts that influenced the build including sources,
2096
+ # dependencies, build tools, base images, and so on. This is considered to be
2097
+ # incomplete unless metadata.completeness.materials is true. Unset or null is
2098
+ # equivalent to empty.
2099
+ # Corresponds to the JSON property `materials`
2100
+ # @return [Array<Google::Apis::OndemandscanningV1beta1::Material>]
2101
+ attr_accessor :materials
2102
+
2103
+ # Other properties of the build.
2104
+ # Corresponds to the JSON property `metadata`
2105
+ # @return [Google::Apis::OndemandscanningV1beta1::SlsaMetadata]
2106
+ attr_accessor :metadata
2107
+
2108
+ # Steps taken to build the artifact. For a TaskRun, typically each container
2109
+ # corresponds to one step in the recipe.
2110
+ # Corresponds to the JSON property `recipe`
2111
+ # @return [Google::Apis::OndemandscanningV1beta1::SlsaRecipe]
2112
+ attr_accessor :recipe
2113
+
2114
+ def initialize(**args)
2115
+ update!(**args)
2116
+ end
2117
+
2118
+ # Update properties of this object
2119
+ def update!(**args)
2120
+ @builder = args[:builder] if args.key?(:builder)
2121
+ @materials = args[:materials] if args.key?(:materials)
2122
+ @metadata = args[:metadata] if args.key?(:metadata)
2123
+ @recipe = args[:recipe] if args.key?(:recipe)
2124
+ end
2125
+ end
2126
+
2127
+ # Steps taken to build the artifact. For a TaskRun, typically each container
2128
+ # corresponds to one step in the recipe.
2129
+ class SlsaRecipe
2130
+ include Google::Apis::Core::Hashable
2131
+
2132
+ # Collection of all external inputs that influenced the build on top of recipe.
2133
+ # definedInMaterial and recipe.entryPoint. For example, if the recipe type were "
2134
+ # make", then this might be the flags passed to make aside from the target,
2135
+ # which is captured in recipe.entryPoint. Depending on the recipe Type, the
2136
+ # structure may be different.
2137
+ # Corresponds to the JSON property `arguments`
2138
+ # @return [Hash<String,Object>]
2139
+ attr_accessor :arguments
2140
+
2141
+ # Index in materials containing the recipe steps that are not implied by recipe.
2142
+ # type. For example, if the recipe type were "make", then this would point to
2143
+ # the source containing the Makefile, not the make program itself. Set to -1 if
2144
+ # the recipe doesn't come from a material, as zero is default unset value for
2145
+ # int64.
2146
+ # Corresponds to the JSON property `definedInMaterial`
2147
+ # @return [Fixnum]
2148
+ attr_accessor :defined_in_material
2149
+
2150
+ # String identifying the entry point into the build. This is often a path to a
2151
+ # configuration file and/or a target label within that file. The syntax and
2152
+ # meaning are defined by recipe.type. For example, if the recipe type were "make"
2153
+ # , then this would reference the directory in which to run make as well as
2154
+ # which target to use.
2155
+ # Corresponds to the JSON property `entryPoint`
2156
+ # @return [String]
2157
+ attr_accessor :entry_point
2158
+
2159
+ # Any other builder-controlled inputs necessary for correctly evaluating the
2160
+ # recipe. Usually only needed for reproducing the build but not evaluated as
2161
+ # part of policy. Depending on the recipe Type, the structure may be different.
2162
+ # Corresponds to the JSON property `environment`
2163
+ # @return [Hash<String,Object>]
2164
+ attr_accessor :environment
2165
+
2166
+ # URI indicating what type of recipe was performed. It determines the meaning of
2167
+ # recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
2168
+ # Corresponds to the JSON property `type`
2169
+ # @return [String]
2170
+ attr_accessor :type
2171
+
2172
+ def initialize(**args)
2173
+ update!(**args)
2174
+ end
2175
+
2176
+ # Update properties of this object
2177
+ def update!(**args)
2178
+ @arguments = args[:arguments] if args.key?(:arguments)
2179
+ @defined_in_material = args[:defined_in_material] if args.key?(:defined_in_material)
2180
+ @entry_point = args[:entry_point] if args.key?(:entry_point)
2181
+ @environment = args[:environment] if args.key?(:environment)
2182
+ @type = args[:type] if args.key?(:type)
2183
+ end
2184
+ end
2185
+
1842
2186
  # Source describes the location of the source used for the build.
1843
2187
  class Source
1844
2188
  include Google::Apis::Core::Hashable
@@ -1967,7 +2311,8 @@ module Google
1967
2311
  class Subject
1968
2312
  include Google::Apis::Core::Hashable
1969
2313
 
1970
- # "": ""
2314
+ # `"": ""` Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/
2315
+ # attestation/blob/main/spec/field_types.md#DigestSet
1971
2316
  # Corresponds to the JSON property `digest`
1972
2317
  # @return [Hash<String,String>]
1973
2318
  attr_accessor :digest
@@ -2143,6 +2488,15 @@ module Google
2143
2488
  # @return [Float]
2144
2489
  attr_accessor :cvss_score
2145
2490
 
2491
+ # Common Vulnerability Scoring System. For details, see https://www.first.org/
2492
+ # cvss/specification-document This is a message we will try to use for storing
2493
+ # multiple versions of CVSS. The intention is that as new versions of CVSS
2494
+ # scores get added, we will be able to modify this message rather than adding
2495
+ # new protos for each new version of the score.
2496
+ # Corresponds to the JSON property `cvssv3`
2497
+ # @return [Google::Apis::OndemandscanningV1beta1::Cvss]
2498
+ attr_accessor :cvssv3
2499
+
2146
2500
  # The distro assigned severity for this vulnerability when it is available,
2147
2501
  # otherwise this is the note provider assigned severity. When there are multiple
2148
2502
  # PackageIssues for this vulnerability, they can have different effective
@@ -2200,6 +2554,7 @@ module Google
2200
2554
  # Update properties of this object
2201
2555
  def update!(**args)
2202
2556
  @cvss_score = args[:cvss_score] if args.key?(:cvss_score)
2557
+ @cvssv3 = args[:cvssv3] if args.key?(:cvssv3)
2203
2558
  @effective_severity = args[:effective_severity] if args.key?(:effective_severity)
2204
2559
  @fix_available = args[:fix_available] if args.key?(:fix_available)
2205
2560
  @long_description = args[:long_description] if args.key?(:long_description)
@@ -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.13.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210824"
25
+ REVISION = "20220107"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class Cvss
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class Category
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -238,6 +244,12 @@ module Google
238
244
  include Google::Apis::Core::JsonObjectSupport
239
245
  end
240
246
 
247
+ class Material
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
241
253
  class Metadata
242
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
255
 
@@ -310,6 +322,36 @@ module Google
310
322
  include Google::Apis::Core::JsonObjectSupport
311
323
  end
312
324
 
325
+ class SlsaBuilder
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class SlsaCompleteness
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class SlsaMetadata
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
343
+ class SlsaProvenance
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
349
+ class SlsaRecipe
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
313
355
  class Source
314
356
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
357
 
@@ -436,6 +478,8 @@ module Google
436
478
  class Representation < Google::Apis::Core::JsonRepresentation
437
479
  property :intoto_provenance, as: 'intotoProvenance', class: Google::Apis::OndemandscanningV1beta1::InTotoProvenance, decorator: Google::Apis::OndemandscanningV1beta1::InTotoProvenance::Representation
438
480
 
481
+ property :intoto_statement, as: 'intotoStatement', class: Google::Apis::OndemandscanningV1beta1::InTotoStatement, decorator: Google::Apis::OndemandscanningV1beta1::InTotoStatement::Representation
482
+
439
483
  property :provenance, as: 'provenance', class: Google::Apis::OndemandscanningV1beta1::BuildProvenance, decorator: Google::Apis::OndemandscanningV1beta1::BuildProvenance::Representation
440
484
 
441
485
  property :provenance_bytes, as: 'provenanceBytes'
@@ -471,6 +515,24 @@ module Google
471
515
  end
472
516
  end
473
517
 
518
+ class Cvss
519
+ # @private
520
+ class Representation < Google::Apis::Core::JsonRepresentation
521
+ property :attack_complexity, as: 'attackComplexity'
522
+ property :attack_vector, as: 'attackVector'
523
+ property :authentication, as: 'authentication'
524
+ property :availability_impact, as: 'availabilityImpact'
525
+ property :base_score, as: 'baseScore'
526
+ property :confidentiality_impact, as: 'confidentialityImpact'
527
+ property :exploitability_score, as: 'exploitabilityScore'
528
+ property :impact_score, as: 'impactScore'
529
+ property :integrity_impact, as: 'integrityImpact'
530
+ property :privileges_required, as: 'privilegesRequired'
531
+ property :scope, as: 'scope'
532
+ property :user_interaction, as: 'userInteraction'
533
+ end
534
+ end
535
+
474
536
  class Category
475
537
  # @private
476
538
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -549,6 +611,7 @@ module Google
549
611
  property :analysis_status, as: 'analysisStatus'
550
612
  property :analysis_status_error, as: 'analysisStatusError', class: Google::Apis::OndemandscanningV1beta1::Status, decorator: Google::Apis::OndemandscanningV1beta1::Status::Representation
551
613
 
614
+ property :archive_time, as: 'archiveTime'
552
615
  property :continuous_analysis, as: 'continuousAnalysis'
553
616
  property :cpe, as: 'cpe'
554
617
  property :last_scan_time, as: 'lastScanTime'
@@ -659,12 +722,14 @@ module Google
659
722
  class InTotoStatement
660
723
  # @private
661
724
  class Representation < Google::Apis::Core::JsonRepresentation
725
+ property :_type, as: '_type'
662
726
  property :predicate_type, as: 'predicateType'
663
727
  property :provenance, as: 'provenance', class: Google::Apis::OndemandscanningV1beta1::InTotoProvenance, decorator: Google::Apis::OndemandscanningV1beta1::InTotoProvenance::Representation
664
728
 
729
+ property :slsa_provenance, as: 'slsaProvenance', class: Google::Apis::OndemandscanningV1beta1::SlsaProvenance, decorator: Google::Apis::OndemandscanningV1beta1::SlsaProvenance::Representation
730
+
665
731
  collection :subject, as: 'subject', class: Google::Apis::OndemandscanningV1beta1::Subject, decorator: Google::Apis::OndemandscanningV1beta1::Subject::Representation
666
732
 
667
- property :type, as: 'type'
668
733
  end
669
734
  end
670
735
 
@@ -711,6 +776,14 @@ module Google
711
776
  end
712
777
  end
713
778
 
779
+ class Material
780
+ # @private
781
+ class Representation < Google::Apis::Core::JsonRepresentation
782
+ hash :digest, as: 'digest'
783
+ property :uri, as: 'uri'
784
+ end
785
+ end
786
+
714
787
  class Metadata
715
788
  # @private
716
789
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -862,6 +935,59 @@ module Google
862
935
  end
863
936
  end
864
937
 
938
+ class SlsaBuilder
939
+ # @private
940
+ class Representation < Google::Apis::Core::JsonRepresentation
941
+ property :id, as: 'id'
942
+ end
943
+ end
944
+
945
+ class SlsaCompleteness
946
+ # @private
947
+ class Representation < Google::Apis::Core::JsonRepresentation
948
+ property :arguments, as: 'arguments'
949
+ property :environment, as: 'environment'
950
+ property :materials, as: 'materials'
951
+ end
952
+ end
953
+
954
+ class SlsaMetadata
955
+ # @private
956
+ class Representation < Google::Apis::Core::JsonRepresentation
957
+ property :build_finished_on, as: 'buildFinishedOn'
958
+ property :build_invocation_id, as: 'buildInvocationId'
959
+ property :build_started_on, as: 'buildStartedOn'
960
+ property :completeness, as: 'completeness', class: Google::Apis::OndemandscanningV1beta1::SlsaCompleteness, decorator: Google::Apis::OndemandscanningV1beta1::SlsaCompleteness::Representation
961
+
962
+ property :reproducible, as: 'reproducible'
963
+ end
964
+ end
965
+
966
+ class SlsaProvenance
967
+ # @private
968
+ class Representation < Google::Apis::Core::JsonRepresentation
969
+ property :builder, as: 'builder', class: Google::Apis::OndemandscanningV1beta1::SlsaBuilder, decorator: Google::Apis::OndemandscanningV1beta1::SlsaBuilder::Representation
970
+
971
+ collection :materials, as: 'materials', class: Google::Apis::OndemandscanningV1beta1::Material, decorator: Google::Apis::OndemandscanningV1beta1::Material::Representation
972
+
973
+ property :metadata, as: 'metadata', class: Google::Apis::OndemandscanningV1beta1::SlsaMetadata, decorator: Google::Apis::OndemandscanningV1beta1::SlsaMetadata::Representation
974
+
975
+ property :recipe, as: 'recipe', class: Google::Apis::OndemandscanningV1beta1::SlsaRecipe, decorator: Google::Apis::OndemandscanningV1beta1::SlsaRecipe::Representation
976
+
977
+ end
978
+ end
979
+
980
+ class SlsaRecipe
981
+ # @private
982
+ class Representation < Google::Apis::Core::JsonRepresentation
983
+ hash :arguments, as: 'arguments'
984
+ property :defined_in_material, :numeric_string => true, as: 'definedInMaterial'
985
+ property :entry_point, as: 'entryPoint'
986
+ hash :environment, as: 'environment'
987
+ property :type, as: 'type'
988
+ end
989
+ end
990
+
865
991
  class Source
866
992
  # @private
867
993
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -944,6 +1070,8 @@ module Google
944
1070
  # @private
945
1071
  class Representation < Google::Apis::Core::JsonRepresentation
946
1072
  property :cvss_score, as: 'cvssScore'
1073
+ property :cvssv3, as: 'cvssv3', class: Google::Apis::OndemandscanningV1beta1::Cvss, decorator: Google::Apis::OndemandscanningV1beta1::Cvss::Representation
1074
+
947
1075
  property :effective_severity, as: 'effectiveSeverity'
948
1076
  property :fix_available, as: 'fixAvailable'
949
1077
  property :long_description, as: 'longDescription'
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.13.0
4
+ version: 0.17.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-10-27 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-ondemandscanning_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.13.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.17.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-ondemandscanning_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for On-Demand Scanning API V1beta1