google-apis-ondemandscanning_v1beta1 0.33.0 → 0.34.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 +4 -0
- data/lib/google/apis/ondemandscanning_v1beta1/classes.rb +131 -0
- data/lib/google/apis/ondemandscanning_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/ondemandscanning_v1beta1/representations.rb +55 -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: 5ad60c0aca33c85bbcd51c60bb7b998ad0adab35da9cdc993462e2d34adc685e
|
4
|
+
data.tar.gz: 141b2a9473f028f94293d826722ae4e9616bcb4b0e3c6f18a052b12586c02d62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec2ad9f495d475ba8206ef485d2e639414b68ca73917ffff2a7ae275bd1fdec0e09b280c1296190349e2feaaaf8626756c9825dd4f0dbb0c33863d8fba611b4f
|
7
|
+
data.tar.gz: 450888b46881ce1a86e09a8af61bd99d27c5aa28d8e740bed9d95a38a8068442df45caedaba88d1fe8b69a4d3438731a9eeaca0bb67b59b09fb1099aa194bfd7
|
data/CHANGELOG.md
CHANGED
@@ -1453,6 +1453,32 @@ module Google
|
|
1453
1453
|
end
|
1454
1454
|
end
|
1455
1455
|
|
1456
|
+
# Justification provides the justification when the state of the assessment if
|
1457
|
+
# NOT_AFFECTED.
|
1458
|
+
class Justification
|
1459
|
+
include Google::Apis::Core::Hashable
|
1460
|
+
|
1461
|
+
# Additional details on why this justification was chosen.
|
1462
|
+
# Corresponds to the JSON property `details`
|
1463
|
+
# @return [String]
|
1464
|
+
attr_accessor :details
|
1465
|
+
|
1466
|
+
# The justification type for this vulnerability.
|
1467
|
+
# Corresponds to the JSON property `justificationType`
|
1468
|
+
# @return [String]
|
1469
|
+
attr_accessor :justification_type
|
1470
|
+
|
1471
|
+
def initialize(**args)
|
1472
|
+
update!(**args)
|
1473
|
+
end
|
1474
|
+
|
1475
|
+
# Update properties of this object
|
1476
|
+
def update!(**args)
|
1477
|
+
@details = args[:details] if args.key?(:details)
|
1478
|
+
@justification_type = args[:justification_type] if args.key?(:justification_type)
|
1479
|
+
end
|
1480
|
+
end
|
1481
|
+
|
1456
1482
|
#
|
1457
1483
|
class Jwt
|
1458
1484
|
include Google::Apis::Core::Hashable
|
@@ -1977,6 +2003,11 @@ module Google
|
|
1977
2003
|
class PackageData
|
1978
2004
|
include Google::Apis::Core::Hashable
|
1979
2005
|
|
2006
|
+
# The architecture of the package.
|
2007
|
+
# Corresponds to the JSON property `architecture`
|
2008
|
+
# @return [String]
|
2009
|
+
attr_accessor :architecture
|
2010
|
+
|
1980
2011
|
# The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
|
1981
2012
|
# the vulnerability may manifest. Examples include distro or storage location
|
1982
2013
|
# for vulnerable jar.
|
@@ -2050,6 +2081,7 @@ module Google
|
|
2050
2081
|
|
2051
2082
|
# Update properties of this object
|
2052
2083
|
def update!(**args)
|
2084
|
+
@architecture = args[:architecture] if args.key?(:architecture)
|
2053
2085
|
@cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
|
2054
2086
|
@dependency_chain = args[:dependency_chain] if args.key?(:dependency_chain)
|
2055
2087
|
@file_location = args[:file_location] if args.key?(:file_location)
|
@@ -2317,6 +2349,37 @@ module Google
|
|
2317
2349
|
end
|
2318
2350
|
end
|
2319
2351
|
|
2352
|
+
# Specifies details on how to handle (and presumably, fix) a vulnerability.
|
2353
|
+
class Remediation
|
2354
|
+
include Google::Apis::Core::Hashable
|
2355
|
+
|
2356
|
+
# Contains a comprehensive human-readable discussion of the remediation.
|
2357
|
+
# Corresponds to the JSON property `details`
|
2358
|
+
# @return [String]
|
2359
|
+
attr_accessor :details
|
2360
|
+
|
2361
|
+
# The type of remediation that can be applied.
|
2362
|
+
# Corresponds to the JSON property `remediationType`
|
2363
|
+
# @return [String]
|
2364
|
+
attr_accessor :remediation_type
|
2365
|
+
|
2366
|
+
# Metadata for any related URL information.
|
2367
|
+
# Corresponds to the JSON property `remediationUri`
|
2368
|
+
# @return [Google::Apis::OndemandscanningV1beta1::RelatedUrl]
|
2369
|
+
attr_accessor :remediation_uri
|
2370
|
+
|
2371
|
+
def initialize(**args)
|
2372
|
+
update!(**args)
|
2373
|
+
end
|
2374
|
+
|
2375
|
+
# Update properties of this object
|
2376
|
+
def update!(**args)
|
2377
|
+
@details = args[:details] if args.key?(:details)
|
2378
|
+
@remediation_type = args[:remediation_type] if args.key?(:remediation_type)
|
2379
|
+
@remediation_uri = args[:remediation_uri] if args.key?(:remediation_uri)
|
2380
|
+
end
|
2381
|
+
end
|
2382
|
+
|
2320
2383
|
# A unique identifier for a Cloud Repo.
|
2321
2384
|
class RepoId
|
2322
2385
|
include Google::Apis::Core::Hashable
|
@@ -2947,6 +3010,67 @@ module Google
|
|
2947
3010
|
end
|
2948
3011
|
end
|
2949
3012
|
|
3013
|
+
# VexAssessment provides all publisher provided Vex information that is related
|
3014
|
+
# to this vulnerability.
|
3015
|
+
class VexAssessment
|
3016
|
+
include Google::Apis::Core::Hashable
|
3017
|
+
|
3018
|
+
# Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking
|
3019
|
+
# number for the vulnerability.
|
3020
|
+
# Corresponds to the JSON property `cve`
|
3021
|
+
# @return [String]
|
3022
|
+
attr_accessor :cve
|
3023
|
+
|
3024
|
+
# Contains information about the impact of this vulnerability, this will change
|
3025
|
+
# with time.
|
3026
|
+
# Corresponds to the JSON property `impacts`
|
3027
|
+
# @return [Array<String>]
|
3028
|
+
attr_accessor :impacts
|
3029
|
+
|
3030
|
+
# Justification provides the justification when the state of the assessment if
|
3031
|
+
# NOT_AFFECTED.
|
3032
|
+
# Corresponds to the JSON property `justification`
|
3033
|
+
# @return [Google::Apis::OndemandscanningV1beta1::Justification]
|
3034
|
+
attr_accessor :justification
|
3035
|
+
|
3036
|
+
# The VulnerabilityAssessment note from which this VexAssessment was generated.
|
3037
|
+
# This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`.
|
3038
|
+
# Corresponds to the JSON property `noteName`
|
3039
|
+
# @return [String]
|
3040
|
+
attr_accessor :note_name
|
3041
|
+
|
3042
|
+
# Holds a list of references associated with this vulnerability item and
|
3043
|
+
# assessment.
|
3044
|
+
# Corresponds to the JSON property `relatedUris`
|
3045
|
+
# @return [Array<Google::Apis::OndemandscanningV1beta1::RelatedUrl>]
|
3046
|
+
attr_accessor :related_uris
|
3047
|
+
|
3048
|
+
# Specifies details on how to handle (and presumably, fix) a vulnerability.
|
3049
|
+
# Corresponds to the JSON property `remediations`
|
3050
|
+
# @return [Array<Google::Apis::OndemandscanningV1beta1::Remediation>]
|
3051
|
+
attr_accessor :remediations
|
3052
|
+
|
3053
|
+
# Provides the state of this Vulnerability assessment.
|
3054
|
+
# Corresponds to the JSON property `state`
|
3055
|
+
# @return [String]
|
3056
|
+
attr_accessor :state
|
3057
|
+
|
3058
|
+
def initialize(**args)
|
3059
|
+
update!(**args)
|
3060
|
+
end
|
3061
|
+
|
3062
|
+
# Update properties of this object
|
3063
|
+
def update!(**args)
|
3064
|
+
@cve = args[:cve] if args.key?(:cve)
|
3065
|
+
@impacts = args[:impacts] if args.key?(:impacts)
|
3066
|
+
@justification = args[:justification] if args.key?(:justification)
|
3067
|
+
@note_name = args[:note_name] if args.key?(:note_name)
|
3068
|
+
@related_uris = args[:related_uris] if args.key?(:related_uris)
|
3069
|
+
@remediations = args[:remediations] if args.key?(:remediations)
|
3070
|
+
@state = args[:state] if args.key?(:state)
|
3071
|
+
end
|
3072
|
+
end
|
3073
|
+
|
2950
3074
|
# An occurrence of a severity vulnerability on a resource.
|
2951
3075
|
class VulnerabilityOccurrence
|
2952
3076
|
include Google::Apis::Core::Hashable
|
@@ -3028,6 +3152,12 @@ module Google
|
|
3028
3152
|
# @return [String]
|
3029
3153
|
attr_accessor :type
|
3030
3154
|
|
3155
|
+
# VexAssessment provides all publisher provided Vex information that is related
|
3156
|
+
# to this vulnerability.
|
3157
|
+
# Corresponds to the JSON property `vexAssessment`
|
3158
|
+
# @return [Google::Apis::OndemandscanningV1beta1::VexAssessment]
|
3159
|
+
attr_accessor :vex_assessment
|
3160
|
+
|
3031
3161
|
def initialize(**args)
|
3032
3162
|
update!(**args)
|
3033
3163
|
end
|
@@ -3046,6 +3176,7 @@ module Google
|
|
3046
3176
|
@severity = args[:severity] if args.key?(:severity)
|
3047
3177
|
@short_description = args[:short_description] if args.key?(:short_description)
|
3048
3178
|
@type = args[:type] if args.key?(:type)
|
3179
|
+
@vex_assessment = args[:vex_assessment] if args.key?(:vex_assessment)
|
3049
3180
|
end
|
3050
3181
|
end
|
3051
3182
|
|
@@ -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.34.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 = "20230313"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -268,6 +268,12 @@ module Google
|
|
268
268
|
include Google::Apis::Core::JsonObjectSupport
|
269
269
|
end
|
270
270
|
|
271
|
+
class Justification
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
271
277
|
class Jwt
|
272
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
279
|
|
@@ -382,6 +388,12 @@ module Google
|
|
382
388
|
include Google::Apis::Core::JsonObjectSupport
|
383
389
|
end
|
384
390
|
|
391
|
+
class Remediation
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
385
397
|
class RepoId
|
386
398
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
399
|
|
@@ -472,6 +484,12 @@ module Google
|
|
472
484
|
include Google::Apis::Core::JsonObjectSupport
|
473
485
|
end
|
474
486
|
|
487
|
+
class VexAssessment
|
488
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
489
|
+
|
490
|
+
include Google::Apis::Core::JsonObjectSupport
|
491
|
+
end
|
492
|
+
|
475
493
|
class VulnerabilityOccurrence
|
476
494
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
477
495
|
|
@@ -893,6 +911,14 @@ module Google
|
|
893
911
|
end
|
894
912
|
end
|
895
913
|
|
914
|
+
class Justification
|
915
|
+
# @private
|
916
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
917
|
+
property :details, as: 'details'
|
918
|
+
property :justification_type, as: 'justificationType'
|
919
|
+
end
|
920
|
+
end
|
921
|
+
|
896
922
|
class Jwt
|
897
923
|
# @private
|
898
924
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1039,6 +1065,7 @@ module Google
|
|
1039
1065
|
class PackageData
|
1040
1066
|
# @private
|
1041
1067
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1068
|
+
property :architecture, as: 'architecture'
|
1042
1069
|
property :cpe_uri, as: 'cpeUri'
|
1043
1070
|
collection :dependency_chain, as: 'dependencyChain', class: Google::Apis::OndemandscanningV1beta1::LanguagePackageDependency, decorator: Google::Apis::OndemandscanningV1beta1::LanguagePackageDependency::Representation
|
1044
1071
|
|
@@ -1119,6 +1146,16 @@ module Google
|
|
1119
1146
|
end
|
1120
1147
|
end
|
1121
1148
|
|
1149
|
+
class Remediation
|
1150
|
+
# @private
|
1151
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1152
|
+
property :details, as: 'details'
|
1153
|
+
property :remediation_type, as: 'remediationType'
|
1154
|
+
property :remediation_uri, as: 'remediationUri', class: Google::Apis::OndemandscanningV1beta1::RelatedUrl, decorator: Google::Apis::OndemandscanningV1beta1::RelatedUrl::Representation
|
1155
|
+
|
1156
|
+
end
|
1157
|
+
end
|
1158
|
+
|
1122
1159
|
class RepoId
|
1123
1160
|
# @private
|
1124
1161
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1283,6 +1320,22 @@ module Google
|
|
1283
1320
|
end
|
1284
1321
|
end
|
1285
1322
|
|
1323
|
+
class VexAssessment
|
1324
|
+
# @private
|
1325
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1326
|
+
property :cve, as: 'cve'
|
1327
|
+
collection :impacts, as: 'impacts'
|
1328
|
+
property :justification, as: 'justification', class: Google::Apis::OndemandscanningV1beta1::Justification, decorator: Google::Apis::OndemandscanningV1beta1::Justification::Representation
|
1329
|
+
|
1330
|
+
property :note_name, as: 'noteName'
|
1331
|
+
collection :related_uris, as: 'relatedUris', class: Google::Apis::OndemandscanningV1beta1::RelatedUrl, decorator: Google::Apis::OndemandscanningV1beta1::RelatedUrl::Representation
|
1332
|
+
|
1333
|
+
collection :remediations, as: 'remediations', class: Google::Apis::OndemandscanningV1beta1::Remediation, decorator: Google::Apis::OndemandscanningV1beta1::Remediation::Representation
|
1334
|
+
|
1335
|
+
property :state, as: 'state'
|
1336
|
+
end
|
1337
|
+
end
|
1338
|
+
|
1286
1339
|
class VulnerabilityOccurrence
|
1287
1340
|
# @private
|
1288
1341
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1302,6 +1355,8 @@ module Google
|
|
1302
1355
|
property :severity, as: 'severity'
|
1303
1356
|
property :short_description, as: 'shortDescription'
|
1304
1357
|
property :type, as: 'type'
|
1358
|
+
property :vex_assessment, as: 'vexAssessment', class: Google::Apis::OndemandscanningV1beta1::VexAssessment, decorator: Google::Apis::OndemandscanningV1beta1::VexAssessment::Representation
|
1359
|
+
|
1305
1360
|
end
|
1306
1361
|
end
|
1307
1362
|
|
@@ -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.34.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-03-
|
11
|
+
date: 2023-03-26 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.34.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: []
|