google-apis-ondemandscanning_v1 0.8.0 → 0.12.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: e4c96d2269729b21f009800c4aef8bc0497d309e7de22e90c7693a4073248b28
4
- data.tar.gz: bd386ca026a341af1269184db84128069038226bf793fcb3cdf7add804fd98b2
3
+ metadata.gz: a132d8ccaf40e2686a9eceac80e444cca5ed42482a35e9d1bfbd1ed5e99a1f38
4
+ data.tar.gz: aa7e0d47312789c74461f3dc4d156a8df3ebf7d505ec9e2f3e4b43bd743fdcd9
5
5
  SHA512:
6
- metadata.gz: 7c2ffad6f0b9bea816428cfcf345f4c6850a038917a81da0e6359cae1964277f9e3687a8ee6a4a0fac67e03451520000920b1ea32cbada18e51a614320f7e56e
7
- data.tar.gz: 475d59e609b85951642263b3a1cbcecc130a850173f67aea5b4ca8a61251ab37396b414537320428753d39e0754641e68aadd020ce058564e89ac8de045e8d18
6
+ metadata.gz: 61e1a50809930ac19758db1f4769673cd133ed520af26226653f845300c23c4e7e1b5e6eb969615802f868701dfeb784ece5be8a1a40447a94bdbc677f5f88fd
7
+ data.tar.gz: e567da537359dbd7637646087e2d585e1fce255073a3d352534fbf1c27df662752bba11f19a686f05410fac061c41ece71759b01b0389ce6d3a1bc0a5fd44300
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-ondemandscanning_v1
2
2
 
3
+ ### v0.12.0 (2021-11-04)
4
+
5
+ * Regenerated from discovery document revision 20211029
6
+
7
+ ### v0.11.0 (2021-10-21)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.10.0 (2021-09-16)
12
+
13
+ * Regenerated from discovery document revision 20210911
14
+
15
+ ### v0.9.0 (2021-09-01)
16
+
17
+ * Regenerated from discovery document revision 20210824
18
+
3
19
  ### v0.8.0 (2021-08-05)
4
20
 
5
21
  * Regenerated from discovery document revision 20210731
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,13 @@ module Google
104
104
  class AnalyzePackagesRequestV1
105
105
  include Google::Apis::Core::Hashable
106
106
 
107
+ # [DEPRECATED] Whether to include OSV data in the scan. For backwards
108
+ # compatibility reasons, this field can be neither removed nor renamed.
109
+ # Corresponds to the JSON property `includeOsvData`
110
+ # @return [Boolean]
111
+ attr_accessor :include_osv_data
112
+ alias_method :include_osv_data?, :include_osv_data
113
+
107
114
  # The packages to analyze.
108
115
  # Corresponds to the JSON property `packages`
109
116
  # @return [Array<Google::Apis::OndemandscanningV1::PackageData>]
@@ -120,6 +127,7 @@ module Google
120
127
 
121
128
  # Update properties of this object
122
129
  def update!(**args)
130
+ @include_osv_data = args[:include_osv_data] if args.key?(:include_osv_data)
123
131
  @packages = args[:packages] if args.key?(:packages)
124
132
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
125
133
  end
@@ -253,11 +261,19 @@ module Google
253
261
  class BuildOccurrence
254
262
  include Google::Apis::Core::Hashable
255
263
 
256
- # In-toto Provenance representation as defined in spec.
264
+ # Deprecated. See InTotoStatement for the replacement. In-toto Provenance
265
+ # representation as defined in spec.
257
266
  # Corresponds to the JSON property `intotoProvenance`
258
267
  # @return [Google::Apis::OndemandscanningV1::InTotoProvenance]
259
268
  attr_accessor :intoto_provenance
260
269
 
270
+ # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#
271
+ # statement The serialized InTotoStatement will be stored as Envelope.payload.
272
+ # Envelope.payloadType is always "application/vnd.in-toto+json".
273
+ # Corresponds to the JSON property `intotoStatement`
274
+ # @return [Google::Apis::OndemandscanningV1::InTotoStatement]
275
+ attr_accessor :intoto_statement
276
+
261
277
  # Provenance of a build. Contains all information needed to verify the full
262
278
  # details about the build from source to completion.
263
279
  # Corresponds to the JSON property `provenance`
@@ -283,6 +299,7 @@ module Google
283
299
  # Update properties of this object
284
300
  def update!(**args)
285
301
  @intoto_provenance = args[:intoto_provenance] if args.key?(:intoto_provenance)
302
+ @intoto_statement = args[:intoto_statement] if args.key?(:intoto_statement)
286
303
  @provenance = args[:provenance] if args.key?(:provenance)
287
304
  @provenance_bytes = args[:provenance_bytes] if args.key?(:provenance_bytes)
288
305
  end
@@ -574,7 +591,8 @@ module Google
574
591
  end
575
592
  end
576
593
 
577
- #
594
+ # Deprecated. Prefer to use a regular Occurrence, and populate the Envelope at
595
+ # the top level of the Occurrence.
578
596
  class DsseAttestationOccurrence
579
597
  include Google::Apis::Core::Hashable
580
598
 
@@ -1039,7 +1057,12 @@ module Google
1039
1057
  class InTotoStatement
1040
1058
  include Google::Apis::Core::Hashable
1041
1059
 
1042
- # "https://in-toto.io/Provenance/v0.1" for InTotoProvenance.
1060
+ # Always "https://in-toto.io/Statement/v0.1".
1061
+ # Corresponds to the JSON property `_type`
1062
+ # @return [String]
1063
+ attr_accessor :_type
1064
+
1065
+ # "https://slsa.dev/provenance/v0.1" for SlsaProvenance.
1043
1066
  # Corresponds to the JSON property `predicateType`
1044
1067
  # @return [String]
1045
1068
  attr_accessor :predicate_type
@@ -1049,26 +1072,27 @@ module Google
1049
1072
  # @return [Google::Apis::OndemandscanningV1::InTotoProvenance]
1050
1073
  attr_accessor :provenance
1051
1074
 
1075
+ #
1076
+ # Corresponds to the JSON property `slsaProvenance`
1077
+ # @return [Google::Apis::OndemandscanningV1::SlsaProvenance]
1078
+ attr_accessor :slsa_provenance
1079
+
1052
1080
  #
1053
1081
  # Corresponds to the JSON property `subject`
1054
1082
  # @return [Array<Google::Apis::OndemandscanningV1::Subject>]
1055
1083
  attr_accessor :subject
1056
1084
 
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
1085
  def initialize(**args)
1063
1086
  update!(**args)
1064
1087
  end
1065
1088
 
1066
1089
  # Update properties of this object
1067
1090
  def update!(**args)
1091
+ @_type = args[:_type] if args.key?(:_type)
1068
1092
  @predicate_type = args[:predicate_type] if args.key?(:predicate_type)
1069
1093
  @provenance = args[:provenance] if args.key?(:provenance)
1094
+ @slsa_provenance = args[:slsa_provenance] if args.key?(:slsa_provenance)
1070
1095
  @subject = args[:subject] if args.key?(:subject)
1071
- @type = args[:type] if args.key?(:type)
1072
1096
  end
1073
1097
  end
1074
1098
 
@@ -1204,6 +1228,31 @@ module Google
1204
1228
  end
1205
1229
  end
1206
1230
 
1231
+ #
1232
+ class Material
1233
+ include Google::Apis::Core::Hashable
1234
+
1235
+ #
1236
+ # Corresponds to the JSON property `digest`
1237
+ # @return [Hash<String,String>]
1238
+ attr_accessor :digest
1239
+
1240
+ #
1241
+ # Corresponds to the JSON property `uri`
1242
+ # @return [String]
1243
+ attr_accessor :uri
1244
+
1245
+ def initialize(**args)
1246
+ update!(**args)
1247
+ end
1248
+
1249
+ # Update properties of this object
1250
+ def update!(**args)
1251
+ @digest = args[:digest] if args.key?(:digest)
1252
+ @uri = args[:uri] if args.key?(:uri)
1253
+ end
1254
+ end
1255
+
1207
1256
  # Other properties of the build.
1208
1257
  class Metadata
1209
1258
  include Google::Apis::Core::Hashable
@@ -1326,7 +1375,8 @@ module Google
1326
1375
  # @return [Google::Apis::OndemandscanningV1::DiscoveryOccurrence]
1327
1376
  attr_accessor :discovery
1328
1377
 
1329
- # Describes an attestation of an artifact using dsse.
1378
+ # Deprecated. Prefer to use a regular Occurrence, and populate the Envelope at
1379
+ # the top level of the Occurrence.
1330
1380
  # Corresponds to the JSON property `dsseAttestation`
1331
1381
  # @return [Google::Apis::OndemandscanningV1::DsseAttestationOccurrence]
1332
1382
  attr_accessor :dsse_attestation
@@ -1567,6 +1617,13 @@ module Google
1567
1617
  # @return [Google::Apis::OndemandscanningV1::Version]
1568
1618
  attr_accessor :affected_version
1569
1619
 
1620
+ # Output only. The distro or language system assigned severity for this
1621
+ # vulnerability when that is available and note provider assigned severity when
1622
+ # it is not available.
1623
+ # Corresponds to the JSON property `effectiveSeverity`
1624
+ # @return [String]
1625
+ attr_accessor :effective_severity
1626
+
1570
1627
  # Output only. Whether a fix is available for this package.
1571
1628
  # Corresponds to the JSON property `fixAvailable`
1572
1629
  # @return [Boolean]
@@ -1590,6 +1647,11 @@ module Google
1590
1647
  # @return [Google::Apis::OndemandscanningV1::Version]
1591
1648
  attr_accessor :fixed_version
1592
1649
 
1650
+ # The type of package (e.g. OS, MAVEN, GO).
1651
+ # Corresponds to the JSON property `packageType`
1652
+ # @return [String]
1653
+ attr_accessor :package_type
1654
+
1593
1655
  def initialize(**args)
1594
1656
  update!(**args)
1595
1657
  end
@@ -1599,10 +1661,12 @@ module Google
1599
1661
  @affected_cpe_uri = args[:affected_cpe_uri] if args.key?(:affected_cpe_uri)
1600
1662
  @affected_package = args[:affected_package] if args.key?(:affected_package)
1601
1663
  @affected_version = args[:affected_version] if args.key?(:affected_version)
1664
+ @effective_severity = args[:effective_severity] if args.key?(:effective_severity)
1602
1665
  @fix_available = args[:fix_available] if args.key?(:fix_available)
1603
1666
  @fixed_cpe_uri = args[:fixed_cpe_uri] if args.key?(:fixed_cpe_uri)
1604
1667
  @fixed_package = args[:fixed_package] if args.key?(:fixed_package)
1605
1668
  @fixed_version = args[:fixed_version] if args.key?(:fixed_version)
1669
+ @package_type = args[:package_type] if args.key?(:package_type)
1606
1670
  end
1607
1671
  end
1608
1672
 
@@ -1666,9 +1730,11 @@ module Google
1666
1730
  # Collection of all external inputs that influenced the build on top of recipe.
1667
1731
  # definedInMaterial and recipe.entryPoint. For example, if the recipe type were "
1668
1732
  # make", then this might be the flags passed to make aside from the target,
1669
- # which is captured in recipe.entryPoint.
1733
+ # which is captured in recipe.entryPoint. Since the arguments field can greatly
1734
+ # vary in structure, depending on the builder and recipe type, this is of form "
1735
+ # Any".
1670
1736
  # Corresponds to the JSON property `arguments`
1671
- # @return [Array<String>]
1737
+ # @return [Array<Hash<String,Object>>]
1672
1738
  attr_accessor :arguments
1673
1739
 
1674
1740
  # Index in materials containing the recipe steps that are not implied by recipe.
@@ -1691,9 +1757,10 @@ module Google
1691
1757
 
1692
1758
  # Any other builder-controlled inputs necessary for correctly evaluating the
1693
1759
  # recipe. Usually only needed for reproducing the build but not evaluated as
1694
- # part of policy.
1760
+ # part of policy. Since the environment field can greatly vary in structure,
1761
+ # depending on the builder and recipe type, this is of form "Any".
1695
1762
  # Corresponds to the JSON property `environment`
1696
- # @return [Hash<String,String>]
1763
+ # @return [Array<Hash<String,Object>>]
1697
1764
  attr_accessor :environment
1698
1765
 
1699
1766
  # URI indicating what type of recipe was performed. It determines the meaning of
@@ -1822,6 +1889,210 @@ module Google
1822
1889
  end
1823
1890
  end
1824
1891
 
1892
+ #
1893
+ class SlsaBuilder
1894
+ include Google::Apis::Core::Hashable
1895
+
1896
+ #
1897
+ # Corresponds to the JSON property `id`
1898
+ # @return [String]
1899
+ attr_accessor :id
1900
+
1901
+ def initialize(**args)
1902
+ update!(**args)
1903
+ end
1904
+
1905
+ # Update properties of this object
1906
+ def update!(**args)
1907
+ @id = args[:id] if args.key?(:id)
1908
+ end
1909
+ end
1910
+
1911
+ # Indicates that the builder claims certain fields in this message to be
1912
+ # complete.
1913
+ class SlsaCompleteness
1914
+ include Google::Apis::Core::Hashable
1915
+
1916
+ # If true, the builder claims that recipe.arguments is complete, meaning that
1917
+ # all external inputs are properly captured in the recipe.
1918
+ # Corresponds to the JSON property `arguments`
1919
+ # @return [Boolean]
1920
+ attr_accessor :arguments
1921
+ alias_method :arguments?, :arguments
1922
+
1923
+ # If true, the builder claims that recipe.environment is claimed to be complete.
1924
+ # Corresponds to the JSON property `environment`
1925
+ # @return [Boolean]
1926
+ attr_accessor :environment
1927
+ alias_method :environment?, :environment
1928
+
1929
+ # If true, the builder claims that materials are complete, usually through some
1930
+ # controls to prevent network access. Sometimes called "hermetic".
1931
+ # Corresponds to the JSON property `materials`
1932
+ # @return [Boolean]
1933
+ attr_accessor :materials
1934
+ alias_method :materials?, :materials
1935
+
1936
+ def initialize(**args)
1937
+ update!(**args)
1938
+ end
1939
+
1940
+ # Update properties of this object
1941
+ def update!(**args)
1942
+ @arguments = args[:arguments] if args.key?(:arguments)
1943
+ @environment = args[:environment] if args.key?(:environment)
1944
+ @materials = args[:materials] if args.key?(:materials)
1945
+ end
1946
+ end
1947
+
1948
+ # Other properties of the build.
1949
+ class SlsaMetadata
1950
+ include Google::Apis::Core::Hashable
1951
+
1952
+ # The timestamp of when the build completed.
1953
+ # Corresponds to the JSON property `buildFinishedOn`
1954
+ # @return [String]
1955
+ attr_accessor :build_finished_on
1956
+
1957
+ # Identifies the particular build invocation, which can be useful for finding
1958
+ # associated logs or other ad-hoc analysis. The value SHOULD be globally unique,
1959
+ # per in-toto Provenance spec.
1960
+ # Corresponds to the JSON property `buildInvocationId`
1961
+ # @return [String]
1962
+ attr_accessor :build_invocation_id
1963
+
1964
+ # The timestamp of when the build started.
1965
+ # Corresponds to the JSON property `buildStartedOn`
1966
+ # @return [String]
1967
+ attr_accessor :build_started_on
1968
+
1969
+ # Indicates that the builder claims certain fields in this message to be
1970
+ # complete.
1971
+ # Corresponds to the JSON property `completeness`
1972
+ # @return [Google::Apis::OndemandscanningV1::SlsaCompleteness]
1973
+ attr_accessor :completeness
1974
+
1975
+ # If true, the builder claims that running the recipe on materials will produce
1976
+ # bit-for-bit identical output.
1977
+ # Corresponds to the JSON property `reproducible`
1978
+ # @return [Boolean]
1979
+ attr_accessor :reproducible
1980
+ alias_method :reproducible?, :reproducible
1981
+
1982
+ def initialize(**args)
1983
+ update!(**args)
1984
+ end
1985
+
1986
+ # Update properties of this object
1987
+ def update!(**args)
1988
+ @build_finished_on = args[:build_finished_on] if args.key?(:build_finished_on)
1989
+ @build_invocation_id = args[:build_invocation_id] if args.key?(:build_invocation_id)
1990
+ @build_started_on = args[:build_started_on] if args.key?(:build_started_on)
1991
+ @completeness = args[:completeness] if args.key?(:completeness)
1992
+ @reproducible = args[:reproducible] if args.key?(:reproducible)
1993
+ end
1994
+ end
1995
+
1996
+ #
1997
+ class SlsaProvenance
1998
+ include Google::Apis::Core::Hashable
1999
+
2000
+ # required
2001
+ # Corresponds to the JSON property `builder`
2002
+ # @return [Google::Apis::OndemandscanningV1::SlsaBuilder]
2003
+ attr_accessor :builder
2004
+
2005
+ # The collection of artifacts that influenced the build including sources,
2006
+ # dependencies, build tools, base images, and so on. This is considered to be
2007
+ # incomplete unless metadata.completeness.materials is true. Unset or null is
2008
+ # equivalent to empty.
2009
+ # Corresponds to the JSON property `materials`
2010
+ # @return [Array<Google::Apis::OndemandscanningV1::Material>]
2011
+ attr_accessor :materials
2012
+
2013
+ # Other properties of the build.
2014
+ # Corresponds to the JSON property `metadata`
2015
+ # @return [Google::Apis::OndemandscanningV1::SlsaMetadata]
2016
+ attr_accessor :metadata
2017
+
2018
+ # Steps taken to build the artifact. For a TaskRun, typically each container
2019
+ # corresponds to one step in the recipe.
2020
+ # Corresponds to the JSON property `recipe`
2021
+ # @return [Google::Apis::OndemandscanningV1::SlsaRecipe]
2022
+ attr_accessor :recipe
2023
+
2024
+ def initialize(**args)
2025
+ update!(**args)
2026
+ end
2027
+
2028
+ # Update properties of this object
2029
+ def update!(**args)
2030
+ @builder = args[:builder] if args.key?(:builder)
2031
+ @materials = args[:materials] if args.key?(:materials)
2032
+ @metadata = args[:metadata] if args.key?(:metadata)
2033
+ @recipe = args[:recipe] if args.key?(:recipe)
2034
+ end
2035
+ end
2036
+
2037
+ # Steps taken to build the artifact. For a TaskRun, typically each container
2038
+ # corresponds to one step in the recipe.
2039
+ class SlsaRecipe
2040
+ include Google::Apis::Core::Hashable
2041
+
2042
+ # Collection of all external inputs that influenced the build on top of recipe.
2043
+ # definedInMaterial and recipe.entryPoint. For example, if the recipe type were "
2044
+ # make", then this might be the flags passed to make aside from the target,
2045
+ # which is captured in recipe.entryPoint. Depending on the recipe Type, the
2046
+ # structure may be different.
2047
+ # Corresponds to the JSON property `arguments`
2048
+ # @return [Hash<String,Object>]
2049
+ attr_accessor :arguments
2050
+
2051
+ # Index in materials containing the recipe steps that are not implied by recipe.
2052
+ # type. For example, if the recipe type were "make", then this would point to
2053
+ # the source containing the Makefile, not the make program itself. Set to -1 if
2054
+ # the recipe doesn't come from a material, as zero is default unset value for
2055
+ # int64.
2056
+ # Corresponds to the JSON property `definedInMaterial`
2057
+ # @return [Fixnum]
2058
+ attr_accessor :defined_in_material
2059
+
2060
+ # String identifying the entry point into the build. This is often a path to a
2061
+ # configuration file and/or a target label within that file. The syntax and
2062
+ # meaning are defined by recipe.type. For example, if the recipe type were "make"
2063
+ # , then this would reference the directory in which to run make as well as
2064
+ # which target to use.
2065
+ # Corresponds to the JSON property `entryPoint`
2066
+ # @return [String]
2067
+ attr_accessor :entry_point
2068
+
2069
+ # Any other builder-controlled inputs necessary for correctly evaluating the
2070
+ # recipe. Usually only needed for reproducing the build but not evaluated as
2071
+ # part of policy. Depending on the recipe Type, the structure may be different.
2072
+ # Corresponds to the JSON property `environment`
2073
+ # @return [Hash<String,Object>]
2074
+ attr_accessor :environment
2075
+
2076
+ # URI indicating what type of recipe was performed. It determines the meaning of
2077
+ # recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
2078
+ # Corresponds to the JSON property `type`
2079
+ # @return [String]
2080
+ attr_accessor :type
2081
+
2082
+ def initialize(**args)
2083
+ update!(**args)
2084
+ end
2085
+
2086
+ # Update properties of this object
2087
+ def update!(**args)
2088
+ @arguments = args[:arguments] if args.key?(:arguments)
2089
+ @defined_in_material = args[:defined_in_material] if args.key?(:defined_in_material)
2090
+ @entry_point = args[:entry_point] if args.key?(:entry_point)
2091
+ @environment = args[:environment] if args.key?(:environment)
2092
+ @type = args[:type] if args.key?(:type)
2093
+ end
2094
+ end
2095
+
1825
2096
  # Source describes the location of the source used for the build.
1826
2097
  class Source
1827
2098
  include Google::Apis::Core::Hashable
@@ -1950,7 +2221,8 @@ module Google
1950
2221
  class Subject
1951
2222
  include Google::Apis::Core::Hashable
1952
2223
 
1953
- # "": ""
2224
+ # "": "" Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/
2225
+ # attestation/blob/main/spec/field_types.md#DigestSet
1954
2226
  # Corresponds to the JSON property `digest`
1955
2227
  # @return [Hash<String,String>]
1956
2228
  attr_accessor :digest
@@ -2127,7 +2399,13 @@ module Google
2127
2399
  attr_accessor :cvss_score
2128
2400
 
2129
2401
  # The distro assigned severity for this vulnerability when it is available,
2130
- # otherwise this is the note provider assigned severity.
2402
+ # otherwise this is the note provider assigned severity. When there are multiple
2403
+ # PackageIssues for this vulnerability, they can have different effective
2404
+ # severities because some might be provided by the distro while others are
2405
+ # provided by the language ecosystem for a language pack. For this reason, it is
2406
+ # advised to use the effective severity on the PackageIssue level. In the case
2407
+ # where multiple PackageIssues have differing effective severities, this field
2408
+ # should be the highest severity for any of the PackageIssues.
2131
2409
  # Corresponds to the JSON property `effectiveSeverity`
2132
2410
  # @return [String]
2133
2411
  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.8.0"
19
+ GEM_VERSION = "0.12.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 = "20210731"
25
+ REVISION = "20211029"
26
26
  end
27
27
  end
28
28
  end
@@ -238,6 +238,12 @@ module Google
238
238
  include Google::Apis::Core::JsonObjectSupport
239
239
  end
240
240
 
241
+ class Material
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
241
247
  class Metadata
242
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
249
 
@@ -310,6 +316,36 @@ module Google
310
316
  include Google::Apis::Core::JsonObjectSupport
311
317
  end
312
318
 
319
+ class SlsaBuilder
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class SlsaCompleteness
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class SlsaMetadata
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class SlsaProvenance
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
343
+ class SlsaRecipe
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
313
349
  class Source
314
350
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
351
 
@@ -391,6 +427,7 @@ module Google
391
427
  class AnalyzePackagesRequestV1
392
428
  # @private
393
429
  class Representation < Google::Apis::Core::JsonRepresentation
430
+ property :include_osv_data, as: 'includeOsvData'
394
431
  collection :packages, as: 'packages', class: Google::Apis::OndemandscanningV1::PackageData, decorator: Google::Apis::OndemandscanningV1::PackageData::Representation
395
432
 
396
433
  property :resource_uri, as: 'resourceUri'
@@ -436,6 +473,8 @@ module Google
436
473
  class Representation < Google::Apis::Core::JsonRepresentation
437
474
  property :intoto_provenance, as: 'intotoProvenance', class: Google::Apis::OndemandscanningV1::InTotoProvenance, decorator: Google::Apis::OndemandscanningV1::InTotoProvenance::Representation
438
475
 
476
+ property :intoto_statement, as: 'intotoStatement', class: Google::Apis::OndemandscanningV1::InTotoStatement, decorator: Google::Apis::OndemandscanningV1::InTotoStatement::Representation
477
+
439
478
  property :provenance, as: 'provenance', class: Google::Apis::OndemandscanningV1::BuildProvenance, decorator: Google::Apis::OndemandscanningV1::BuildProvenance::Representation
440
479
 
441
480
  property :provenance_bytes, as: 'provenanceBytes'
@@ -659,12 +698,14 @@ module Google
659
698
  class InTotoStatement
660
699
  # @private
661
700
  class Representation < Google::Apis::Core::JsonRepresentation
701
+ property :_type, as: '_type'
662
702
  property :predicate_type, as: 'predicateType'
663
703
  property :provenance, as: 'provenance', class: Google::Apis::OndemandscanningV1::InTotoProvenance, decorator: Google::Apis::OndemandscanningV1::InTotoProvenance::Representation
664
704
 
705
+ property :slsa_provenance, as: 'slsaProvenance', class: Google::Apis::OndemandscanningV1::SlsaProvenance, decorator: Google::Apis::OndemandscanningV1::SlsaProvenance::Representation
706
+
665
707
  collection :subject, as: 'subject', class: Google::Apis::OndemandscanningV1::Subject, decorator: Google::Apis::OndemandscanningV1::Subject::Representation
666
708
 
667
- property :type, as: 'type'
668
709
  end
669
710
  end
670
711
 
@@ -711,6 +752,14 @@ module Google
711
752
  end
712
753
  end
713
754
 
755
+ class Material
756
+ # @private
757
+ class Representation < Google::Apis::Core::JsonRepresentation
758
+ hash :digest, as: 'digest'
759
+ property :uri, as: 'uri'
760
+ end
761
+ end
762
+
714
763
  class Metadata
715
764
  # @private
716
765
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -799,11 +848,13 @@ module Google
799
848
  property :affected_package, as: 'affectedPackage'
800
849
  property :affected_version, as: 'affectedVersion', class: Google::Apis::OndemandscanningV1::Version, decorator: Google::Apis::OndemandscanningV1::Version::Representation
801
850
 
851
+ property :effective_severity, as: 'effectiveSeverity'
802
852
  property :fix_available, as: 'fixAvailable'
803
853
  property :fixed_cpe_uri, as: 'fixedCpeUri'
804
854
  property :fixed_package, as: 'fixedPackage'
805
855
  property :fixed_version, as: 'fixedVersion', class: Google::Apis::OndemandscanningV1::Version, decorator: Google::Apis::OndemandscanningV1::Version::Representation
806
856
 
857
+ property :package_type, as: 'packageType'
807
858
  end
808
859
  end
809
860
 
@@ -830,7 +881,7 @@ module Google
830
881
  collection :arguments, as: 'arguments'
831
882
  property :defined_in_material, :numeric_string => true, as: 'definedInMaterial'
832
883
  property :entry_point, as: 'entryPoint'
833
- hash :environment, as: 'environment'
884
+ collection :environment, as: 'environment'
834
885
  property :type, as: 'type'
835
886
  end
836
887
  end
@@ -860,6 +911,59 @@ module Google
860
911
  end
861
912
  end
862
913
 
914
+ class SlsaBuilder
915
+ # @private
916
+ class Representation < Google::Apis::Core::JsonRepresentation
917
+ property :id, as: 'id'
918
+ end
919
+ end
920
+
921
+ class SlsaCompleteness
922
+ # @private
923
+ class Representation < Google::Apis::Core::JsonRepresentation
924
+ property :arguments, as: 'arguments'
925
+ property :environment, as: 'environment'
926
+ property :materials, as: 'materials'
927
+ end
928
+ end
929
+
930
+ class SlsaMetadata
931
+ # @private
932
+ class Representation < Google::Apis::Core::JsonRepresentation
933
+ property :build_finished_on, as: 'buildFinishedOn'
934
+ property :build_invocation_id, as: 'buildInvocationId'
935
+ property :build_started_on, as: 'buildStartedOn'
936
+ property :completeness, as: 'completeness', class: Google::Apis::OndemandscanningV1::SlsaCompleteness, decorator: Google::Apis::OndemandscanningV1::SlsaCompleteness::Representation
937
+
938
+ property :reproducible, as: 'reproducible'
939
+ end
940
+ end
941
+
942
+ class SlsaProvenance
943
+ # @private
944
+ class Representation < Google::Apis::Core::JsonRepresentation
945
+ property :builder, as: 'builder', class: Google::Apis::OndemandscanningV1::SlsaBuilder, decorator: Google::Apis::OndemandscanningV1::SlsaBuilder::Representation
946
+
947
+ collection :materials, as: 'materials', class: Google::Apis::OndemandscanningV1::Material, decorator: Google::Apis::OndemandscanningV1::Material::Representation
948
+
949
+ property :metadata, as: 'metadata', class: Google::Apis::OndemandscanningV1::SlsaMetadata, decorator: Google::Apis::OndemandscanningV1::SlsaMetadata::Representation
950
+
951
+ property :recipe, as: 'recipe', class: Google::Apis::OndemandscanningV1::SlsaRecipe, decorator: Google::Apis::OndemandscanningV1::SlsaRecipe::Representation
952
+
953
+ end
954
+ end
955
+
956
+ class SlsaRecipe
957
+ # @private
958
+ class Representation < Google::Apis::Core::JsonRepresentation
959
+ hash :arguments, as: 'arguments'
960
+ property :defined_in_material, :numeric_string => true, as: 'definedInMaterial'
961
+ property :entry_point, as: 'entryPoint'
962
+ hash :environment, as: 'environment'
963
+ property :type, as: 'type'
964
+ end
965
+ end
966
+
863
967
  class Source
864
968
  # @private
865
969
  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.8.0
4
+ version: 0.12.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-08-09 00:00:00.000000000 Z
11
+ date: 2021-11-08 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.8.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.12.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: