google-apis-ondemandscanning_v1beta1 0.33.0 → 0.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/ondemandscanning_v1beta1/classes.rb +166 -0
- data/lib/google/apis/ondemandscanning_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/ondemandscanning_v1beta1/representations.rb +71 -0
- data/lib/google/apis/ondemandscanning_v1beta1/service.rb +1 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbd715bd19cf20b53b2115c6a176acec109a0ddfa998839859587ee0b72b356c
|
4
|
+
data.tar.gz: 9aa345c96e05e2ddb292a0f13d3a9d0e43e92b628822273dc1ff6ccefb356e5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cfd76b7c2e7c0c9723223114414ea506e0e3f5e937dca4d86c70180bd623be6ad87716d0f25dab01dd466b309fbb3c30a43e586e223228afa55cc0f59f63e0d
|
7
|
+
data.tar.gz: 2e6a70b19d63ead88bac9ecf8696c280d73ff73191d757f35e09fd30f014fb6c17fbb4fe8a122a368039264480ca11aefa516c2b789fa4d6dce8c76b64626e9b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-ondemandscanning_v1beta1
|
2
2
|
|
3
|
+
### v0.35.0 (2023-04-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230327
|
6
|
+
|
7
|
+
### v0.34.0 (2023-03-26)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230313
|
10
|
+
|
3
11
|
### v0.33.0 (2023-03-05)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230227
|
@@ -269,6 +269,31 @@ module Google
|
|
269
269
|
end
|
270
270
|
end
|
271
271
|
|
272
|
+
#
|
273
|
+
class Binary
|
274
|
+
include Google::Apis::Core::Hashable
|
275
|
+
|
276
|
+
#
|
277
|
+
# Corresponds to the JSON property `name`
|
278
|
+
# @return [String]
|
279
|
+
attr_accessor :name
|
280
|
+
|
281
|
+
#
|
282
|
+
# Corresponds to the JSON property `version`
|
283
|
+
# @return [String]
|
284
|
+
attr_accessor :version
|
285
|
+
|
286
|
+
def initialize(**args)
|
287
|
+
update!(**args)
|
288
|
+
end
|
289
|
+
|
290
|
+
# Update properties of this object
|
291
|
+
def update!(**args)
|
292
|
+
@name = args[:name] if args.key?(:name)
|
293
|
+
@version = args[:version] if args.key?(:version)
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
272
297
|
# Details of a build occurrence.
|
273
298
|
class BuildOccurrence
|
274
299
|
include Google::Apis::Core::Hashable
|
@@ -1453,6 +1478,32 @@ module Google
|
|
1453
1478
|
end
|
1454
1479
|
end
|
1455
1480
|
|
1481
|
+
# Justification provides the justification when the state of the assessment if
|
1482
|
+
# NOT_AFFECTED.
|
1483
|
+
class Justification
|
1484
|
+
include Google::Apis::Core::Hashable
|
1485
|
+
|
1486
|
+
# Additional details on why this justification was chosen.
|
1487
|
+
# Corresponds to the JSON property `details`
|
1488
|
+
# @return [String]
|
1489
|
+
attr_accessor :details
|
1490
|
+
|
1491
|
+
# The justification type for this vulnerability.
|
1492
|
+
# Corresponds to the JSON property `justificationType`
|
1493
|
+
# @return [String]
|
1494
|
+
attr_accessor :justification_type
|
1495
|
+
|
1496
|
+
def initialize(**args)
|
1497
|
+
update!(**args)
|
1498
|
+
end
|
1499
|
+
|
1500
|
+
# Update properties of this object
|
1501
|
+
def update!(**args)
|
1502
|
+
@details = args[:details] if args.key?(:details)
|
1503
|
+
@justification_type = args[:justification_type] if args.key?(:justification_type)
|
1504
|
+
end
|
1505
|
+
end
|
1506
|
+
|
1456
1507
|
#
|
1457
1508
|
class Jwt
|
1458
1509
|
include Google::Apis::Core::Hashable
|
@@ -1977,6 +2028,20 @@ module Google
|
|
1977
2028
|
class PackageData
|
1978
2029
|
include Google::Apis::Core::Hashable
|
1979
2030
|
|
2031
|
+
# The architecture of the package.
|
2032
|
+
# Corresponds to the JSON property `architecture`
|
2033
|
+
# @return [String]
|
2034
|
+
attr_accessor :architecture
|
2035
|
+
|
2036
|
+
# The binary package. This is significant when the source is different than the
|
2037
|
+
# binary itself. Historically if they've differed, we've stored the name of the
|
2038
|
+
# source and its version in the package/version fields, but we should also store
|
2039
|
+
# the binary package info, as that's what's actually installed. See https://b.
|
2040
|
+
# corp.google.com/issues/175908657#comment15
|
2041
|
+
# Corresponds to the JSON property `binary`
|
2042
|
+
# @return [Google::Apis::OndemandscanningV1beta1::Binary]
|
2043
|
+
attr_accessor :binary
|
2044
|
+
|
1980
2045
|
# The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
|
1981
2046
|
# the vulnerability may manifest. Examples include distro or storage location
|
1982
2047
|
# for vulnerable jar.
|
@@ -2050,6 +2115,8 @@ module Google
|
|
2050
2115
|
|
2051
2116
|
# Update properties of this object
|
2052
2117
|
def update!(**args)
|
2118
|
+
@architecture = args[:architecture] if args.key?(:architecture)
|
2119
|
+
@binary = args[:binary] if args.key?(:binary)
|
2053
2120
|
@cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
|
2054
2121
|
@dependency_chain = args[:dependency_chain] if args.key?(:dependency_chain)
|
2055
2122
|
@file_location = args[:file_location] if args.key?(:file_location)
|
@@ -2317,6 +2384,37 @@ module Google
|
|
2317
2384
|
end
|
2318
2385
|
end
|
2319
2386
|
|
2387
|
+
# Specifies details on how to handle (and presumably, fix) a vulnerability.
|
2388
|
+
class Remediation
|
2389
|
+
include Google::Apis::Core::Hashable
|
2390
|
+
|
2391
|
+
# Contains a comprehensive human-readable discussion of the remediation.
|
2392
|
+
# Corresponds to the JSON property `details`
|
2393
|
+
# @return [String]
|
2394
|
+
attr_accessor :details
|
2395
|
+
|
2396
|
+
# The type of remediation that can be applied.
|
2397
|
+
# Corresponds to the JSON property `remediationType`
|
2398
|
+
# @return [String]
|
2399
|
+
attr_accessor :remediation_type
|
2400
|
+
|
2401
|
+
# Metadata for any related URL information.
|
2402
|
+
# Corresponds to the JSON property `remediationUri`
|
2403
|
+
# @return [Google::Apis::OndemandscanningV1beta1::RelatedUrl]
|
2404
|
+
attr_accessor :remediation_uri
|
2405
|
+
|
2406
|
+
def initialize(**args)
|
2407
|
+
update!(**args)
|
2408
|
+
end
|
2409
|
+
|
2410
|
+
# Update properties of this object
|
2411
|
+
def update!(**args)
|
2412
|
+
@details = args[:details] if args.key?(:details)
|
2413
|
+
@remediation_type = args[:remediation_type] if args.key?(:remediation_type)
|
2414
|
+
@remediation_uri = args[:remediation_uri] if args.key?(:remediation_uri)
|
2415
|
+
end
|
2416
|
+
end
|
2417
|
+
|
2320
2418
|
# A unique identifier for a Cloud Repo.
|
2321
2419
|
class RepoId
|
2322
2420
|
include Google::Apis::Core::Hashable
|
@@ -2947,6 +3045,67 @@ module Google
|
|
2947
3045
|
end
|
2948
3046
|
end
|
2949
3047
|
|
3048
|
+
# VexAssessment provides all publisher provided Vex information that is related
|
3049
|
+
# to this vulnerability.
|
3050
|
+
class VexAssessment
|
3051
|
+
include Google::Apis::Core::Hashable
|
3052
|
+
|
3053
|
+
# Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking
|
3054
|
+
# number for the vulnerability.
|
3055
|
+
# Corresponds to the JSON property `cve`
|
3056
|
+
# @return [String]
|
3057
|
+
attr_accessor :cve
|
3058
|
+
|
3059
|
+
# Contains information about the impact of this vulnerability, this will change
|
3060
|
+
# with time.
|
3061
|
+
# Corresponds to the JSON property `impacts`
|
3062
|
+
# @return [Array<String>]
|
3063
|
+
attr_accessor :impacts
|
3064
|
+
|
3065
|
+
# Justification provides the justification when the state of the assessment if
|
3066
|
+
# NOT_AFFECTED.
|
3067
|
+
# Corresponds to the JSON property `justification`
|
3068
|
+
# @return [Google::Apis::OndemandscanningV1beta1::Justification]
|
3069
|
+
attr_accessor :justification
|
3070
|
+
|
3071
|
+
# The VulnerabilityAssessment note from which this VexAssessment was generated.
|
3072
|
+
# This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`.
|
3073
|
+
# Corresponds to the JSON property `noteName`
|
3074
|
+
# @return [String]
|
3075
|
+
attr_accessor :note_name
|
3076
|
+
|
3077
|
+
# Holds a list of references associated with this vulnerability item and
|
3078
|
+
# assessment.
|
3079
|
+
# Corresponds to the JSON property `relatedUris`
|
3080
|
+
# @return [Array<Google::Apis::OndemandscanningV1beta1::RelatedUrl>]
|
3081
|
+
attr_accessor :related_uris
|
3082
|
+
|
3083
|
+
# Specifies details on how to handle (and presumably, fix) a vulnerability.
|
3084
|
+
# Corresponds to the JSON property `remediations`
|
3085
|
+
# @return [Array<Google::Apis::OndemandscanningV1beta1::Remediation>]
|
3086
|
+
attr_accessor :remediations
|
3087
|
+
|
3088
|
+
# Provides the state of this Vulnerability assessment.
|
3089
|
+
# Corresponds to the JSON property `state`
|
3090
|
+
# @return [String]
|
3091
|
+
attr_accessor :state
|
3092
|
+
|
3093
|
+
def initialize(**args)
|
3094
|
+
update!(**args)
|
3095
|
+
end
|
3096
|
+
|
3097
|
+
# Update properties of this object
|
3098
|
+
def update!(**args)
|
3099
|
+
@cve = args[:cve] if args.key?(:cve)
|
3100
|
+
@impacts = args[:impacts] if args.key?(:impacts)
|
3101
|
+
@justification = args[:justification] if args.key?(:justification)
|
3102
|
+
@note_name = args[:note_name] if args.key?(:note_name)
|
3103
|
+
@related_uris = args[:related_uris] if args.key?(:related_uris)
|
3104
|
+
@remediations = args[:remediations] if args.key?(:remediations)
|
3105
|
+
@state = args[:state] if args.key?(:state)
|
3106
|
+
end
|
3107
|
+
end
|
3108
|
+
|
2950
3109
|
# An occurrence of a severity vulnerability on a resource.
|
2951
3110
|
class VulnerabilityOccurrence
|
2952
3111
|
include Google::Apis::Core::Hashable
|
@@ -3028,6 +3187,12 @@ module Google
|
|
3028
3187
|
# @return [String]
|
3029
3188
|
attr_accessor :type
|
3030
3189
|
|
3190
|
+
# VexAssessment provides all publisher provided Vex information that is related
|
3191
|
+
# to this vulnerability.
|
3192
|
+
# Corresponds to the JSON property `vexAssessment`
|
3193
|
+
# @return [Google::Apis::OndemandscanningV1beta1::VexAssessment]
|
3194
|
+
attr_accessor :vex_assessment
|
3195
|
+
|
3031
3196
|
def initialize(**args)
|
3032
3197
|
update!(**args)
|
3033
3198
|
end
|
@@ -3046,6 +3211,7 @@ module Google
|
|
3046
3211
|
@severity = args[:severity] if args.key?(:severity)
|
3047
3212
|
@short_description = args[:short_description] if args.key?(:short_description)
|
3048
3213
|
@type = args[:type] if args.key?(:type)
|
3214
|
+
@vex_assessment = args[:vex_assessment] if args.key?(:vex_assessment)
|
3049
3215
|
end
|
3050
3216
|
end
|
3051
3217
|
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.35.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230327"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -76,6 +76,12 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
+
class Binary
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
79
85
|
class BuildOccurrence
|
80
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
87
|
|
@@ -268,6 +274,12 @@ module Google
|
|
268
274
|
include Google::Apis::Core::JsonObjectSupport
|
269
275
|
end
|
270
276
|
|
277
|
+
class Justification
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
271
283
|
class Jwt
|
272
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
285
|
|
@@ -382,6 +394,12 @@ module Google
|
|
382
394
|
include Google::Apis::Core::JsonObjectSupport
|
383
395
|
end
|
384
396
|
|
397
|
+
class Remediation
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
+
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
401
|
+
end
|
402
|
+
|
385
403
|
class RepoId
|
386
404
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
405
|
|
@@ -472,6 +490,12 @@ module Google
|
|
472
490
|
include Google::Apis::Core::JsonObjectSupport
|
473
491
|
end
|
474
492
|
|
493
|
+
class VexAssessment
|
494
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
|
+
|
496
|
+
include Google::Apis::Core::JsonObjectSupport
|
497
|
+
end
|
498
|
+
|
475
499
|
class VulnerabilityOccurrence
|
476
500
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
477
501
|
|
@@ -558,6 +582,14 @@ module Google
|
|
558
582
|
end
|
559
583
|
end
|
560
584
|
|
585
|
+
class Binary
|
586
|
+
# @private
|
587
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
588
|
+
property :name, as: 'name'
|
589
|
+
property :version, as: 'version'
|
590
|
+
end
|
591
|
+
end
|
592
|
+
|
561
593
|
class BuildOccurrence
|
562
594
|
# @private
|
563
595
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -893,6 +925,14 @@ module Google
|
|
893
925
|
end
|
894
926
|
end
|
895
927
|
|
928
|
+
class Justification
|
929
|
+
# @private
|
930
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
931
|
+
property :details, as: 'details'
|
932
|
+
property :justification_type, as: 'justificationType'
|
933
|
+
end
|
934
|
+
end
|
935
|
+
|
896
936
|
class Jwt
|
897
937
|
# @private
|
898
938
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1039,6 +1079,9 @@ module Google
|
|
1039
1079
|
class PackageData
|
1040
1080
|
# @private
|
1041
1081
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1082
|
+
property :architecture, as: 'architecture'
|
1083
|
+
property :binary, as: 'binary', class: Google::Apis::OndemandscanningV1beta1::Binary, decorator: Google::Apis::OndemandscanningV1beta1::Binary::Representation
|
1084
|
+
|
1042
1085
|
property :cpe_uri, as: 'cpeUri'
|
1043
1086
|
collection :dependency_chain, as: 'dependencyChain', class: Google::Apis::OndemandscanningV1beta1::LanguagePackageDependency, decorator: Google::Apis::OndemandscanningV1beta1::LanguagePackageDependency::Representation
|
1044
1087
|
|
@@ -1119,6 +1162,16 @@ module Google
|
|
1119
1162
|
end
|
1120
1163
|
end
|
1121
1164
|
|
1165
|
+
class Remediation
|
1166
|
+
# @private
|
1167
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1168
|
+
property :details, as: 'details'
|
1169
|
+
property :remediation_type, as: 'remediationType'
|
1170
|
+
property :remediation_uri, as: 'remediationUri', class: Google::Apis::OndemandscanningV1beta1::RelatedUrl, decorator: Google::Apis::OndemandscanningV1beta1::RelatedUrl::Representation
|
1171
|
+
|
1172
|
+
end
|
1173
|
+
end
|
1174
|
+
|
1122
1175
|
class RepoId
|
1123
1176
|
# @private
|
1124
1177
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1283,6 +1336,22 @@ module Google
|
|
1283
1336
|
end
|
1284
1337
|
end
|
1285
1338
|
|
1339
|
+
class VexAssessment
|
1340
|
+
# @private
|
1341
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1342
|
+
property :cve, as: 'cve'
|
1343
|
+
collection :impacts, as: 'impacts'
|
1344
|
+
property :justification, as: 'justification', class: Google::Apis::OndemandscanningV1beta1::Justification, decorator: Google::Apis::OndemandscanningV1beta1::Justification::Representation
|
1345
|
+
|
1346
|
+
property :note_name, as: 'noteName'
|
1347
|
+
collection :related_uris, as: 'relatedUris', class: Google::Apis::OndemandscanningV1beta1::RelatedUrl, decorator: Google::Apis::OndemandscanningV1beta1::RelatedUrl::Representation
|
1348
|
+
|
1349
|
+
collection :remediations, as: 'remediations', class: Google::Apis::OndemandscanningV1beta1::Remediation, decorator: Google::Apis::OndemandscanningV1beta1::Remediation::Representation
|
1350
|
+
|
1351
|
+
property :state, as: 'state'
|
1352
|
+
end
|
1353
|
+
end
|
1354
|
+
|
1286
1355
|
class VulnerabilityOccurrence
|
1287
1356
|
# @private
|
1288
1357
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1302,6 +1371,8 @@ module Google
|
|
1302
1371
|
property :severity, as: 'severity'
|
1303
1372
|
property :short_description, as: 'shortDescription'
|
1304
1373
|
property :type, as: 'type'
|
1374
|
+
property :vex_assessment, as: 'vexAssessment', class: Google::Apis::OndemandscanningV1beta1::VexAssessment, decorator: Google::Apis::OndemandscanningV1beta1::VexAssessment::Representation
|
1375
|
+
|
1305
1376
|
end
|
1306
1377
|
end
|
1307
1378
|
|
@@ -151,13 +151,7 @@ module Google
|
|
151
151
|
end
|
152
152
|
|
153
153
|
# Lists operations that match the specified filter in the request. If the server
|
154
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
155
|
-
# binding allows API services to override the binding to use different resource
|
156
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
157
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
158
|
-
# service configuration. For backwards compatibility, the default name includes
|
159
|
-
# the operations collection id, however overriding users must ensure the name
|
160
|
-
# binding is the parent resource, without the operations collection id.
|
154
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
161
155
|
# @param [String] name
|
162
156
|
# The name of the operation's parent resource.
|
163
157
|
# @param [String] filter
|
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.
|
4
|
+
version: 0.35.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-ondemandscanning_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.35.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: []
|