google-apis-ondemandscanning_v1 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_v1/classes.rb +131 -0
- data/lib/google/apis/ondemandscanning_v1/gem_version.rb +2 -2
- data/lib/google/apis/ondemandscanning_v1/representations.rb +55 -0
- data/lib/google/apis/ondemandscanning_v1/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: 73f779cce6ff04cb7e01eaa8320a0b3934fc1cde412db6fd58e8ec3e791b41e0
|
4
|
+
data.tar.gz: ce57e65bc3574f1f33a95a3f0787effae51ec9bf4cfb74b4bed0b7df85e50c40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 721491f01af9d8d0b3a16c0a49b024710bdd6d92922159e6be0a9fda838b8a339f966bd3857992d43f81e8b77bedf5efa138b514fac0d8790277ae2f2022caf0
|
7
|
+
data.tar.gz: dcef3f9f5e6fb9ee5315088decb2cd241f517d5643f365e77f3d43ee08be86d57092a6adc74d2cb301547f6441945a62cdef0a92cf67709255b1e785de805ad3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-ondemandscanning_v1
|
2
2
|
|
3
|
+
### v0.35.0 (2023-03-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230313
|
6
|
+
|
7
|
+
### v0.34.0 (2023-03-12)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230306
|
10
|
+
|
3
11
|
### v0.33.0 (2023-03-05)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230227
|
@@ -1461,6 +1461,32 @@ module Google
|
|
1461
1461
|
end
|
1462
1462
|
end
|
1463
1463
|
|
1464
|
+
# Justification provides the justification when the state of the assessment if
|
1465
|
+
# NOT_AFFECTED.
|
1466
|
+
class Justification
|
1467
|
+
include Google::Apis::Core::Hashable
|
1468
|
+
|
1469
|
+
# Additional details on why this justification was chosen.
|
1470
|
+
# Corresponds to the JSON property `details`
|
1471
|
+
# @return [String]
|
1472
|
+
attr_accessor :details
|
1473
|
+
|
1474
|
+
# The justification type for this vulnerability.
|
1475
|
+
# Corresponds to the JSON property `justificationType`
|
1476
|
+
# @return [String]
|
1477
|
+
attr_accessor :justification_type
|
1478
|
+
|
1479
|
+
def initialize(**args)
|
1480
|
+
update!(**args)
|
1481
|
+
end
|
1482
|
+
|
1483
|
+
# Update properties of this object
|
1484
|
+
def update!(**args)
|
1485
|
+
@details = args[:details] if args.key?(:details)
|
1486
|
+
@justification_type = args[:justification_type] if args.key?(:justification_type)
|
1487
|
+
end
|
1488
|
+
end
|
1489
|
+
|
1464
1490
|
#
|
1465
1491
|
class Jwt
|
1466
1492
|
include Google::Apis::Core::Hashable
|
@@ -1985,6 +2011,11 @@ module Google
|
|
1985
2011
|
class PackageData
|
1986
2012
|
include Google::Apis::Core::Hashable
|
1987
2013
|
|
2014
|
+
# The architecture of the package.
|
2015
|
+
# Corresponds to the JSON property `architecture`
|
2016
|
+
# @return [String]
|
2017
|
+
attr_accessor :architecture
|
2018
|
+
|
1988
2019
|
# The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
|
1989
2020
|
# the vulnerability may manifest. Examples include distro or storage location
|
1990
2021
|
# for vulnerable jar.
|
@@ -2058,6 +2089,7 @@ module Google
|
|
2058
2089
|
|
2059
2090
|
# Update properties of this object
|
2060
2091
|
def update!(**args)
|
2092
|
+
@architecture = args[:architecture] if args.key?(:architecture)
|
2061
2093
|
@cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
|
2062
2094
|
@dependency_chain = args[:dependency_chain] if args.key?(:dependency_chain)
|
2063
2095
|
@file_location = args[:file_location] if args.key?(:file_location)
|
@@ -2325,6 +2357,37 @@ module Google
|
|
2325
2357
|
end
|
2326
2358
|
end
|
2327
2359
|
|
2360
|
+
# Specifies details on how to handle (and presumably, fix) a vulnerability.
|
2361
|
+
class Remediation
|
2362
|
+
include Google::Apis::Core::Hashable
|
2363
|
+
|
2364
|
+
# Contains a comprehensive human-readable discussion of the remediation.
|
2365
|
+
# Corresponds to the JSON property `details`
|
2366
|
+
# @return [String]
|
2367
|
+
attr_accessor :details
|
2368
|
+
|
2369
|
+
# The type of remediation that can be applied.
|
2370
|
+
# Corresponds to the JSON property `remediationType`
|
2371
|
+
# @return [String]
|
2372
|
+
attr_accessor :remediation_type
|
2373
|
+
|
2374
|
+
# Metadata for any related URL information.
|
2375
|
+
# Corresponds to the JSON property `remediationUri`
|
2376
|
+
# @return [Google::Apis::OndemandscanningV1::RelatedUrl]
|
2377
|
+
attr_accessor :remediation_uri
|
2378
|
+
|
2379
|
+
def initialize(**args)
|
2380
|
+
update!(**args)
|
2381
|
+
end
|
2382
|
+
|
2383
|
+
# Update properties of this object
|
2384
|
+
def update!(**args)
|
2385
|
+
@details = args[:details] if args.key?(:details)
|
2386
|
+
@remediation_type = args[:remediation_type] if args.key?(:remediation_type)
|
2387
|
+
@remediation_uri = args[:remediation_uri] if args.key?(:remediation_uri)
|
2388
|
+
end
|
2389
|
+
end
|
2390
|
+
|
2328
2391
|
# A unique identifier for a Cloud Repo.
|
2329
2392
|
class RepoId
|
2330
2393
|
include Google::Apis::Core::Hashable
|
@@ -2955,6 +3018,67 @@ module Google
|
|
2955
3018
|
end
|
2956
3019
|
end
|
2957
3020
|
|
3021
|
+
# VexAssessment provides all publisher provided Vex information that is related
|
3022
|
+
# to this vulnerability.
|
3023
|
+
class VexAssessment
|
3024
|
+
include Google::Apis::Core::Hashable
|
3025
|
+
|
3026
|
+
# Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking
|
3027
|
+
# number for the vulnerability.
|
3028
|
+
# Corresponds to the JSON property `cve`
|
3029
|
+
# @return [String]
|
3030
|
+
attr_accessor :cve
|
3031
|
+
|
3032
|
+
# Contains information about the impact of this vulnerability, this will change
|
3033
|
+
# with time.
|
3034
|
+
# Corresponds to the JSON property `impacts`
|
3035
|
+
# @return [Array<String>]
|
3036
|
+
attr_accessor :impacts
|
3037
|
+
|
3038
|
+
# Justification provides the justification when the state of the assessment if
|
3039
|
+
# NOT_AFFECTED.
|
3040
|
+
# Corresponds to the JSON property `justification`
|
3041
|
+
# @return [Google::Apis::OndemandscanningV1::Justification]
|
3042
|
+
attr_accessor :justification
|
3043
|
+
|
3044
|
+
# The VulnerabilityAssessment note from which this VexAssessment was generated.
|
3045
|
+
# This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`.
|
3046
|
+
# Corresponds to the JSON property `noteName`
|
3047
|
+
# @return [String]
|
3048
|
+
attr_accessor :note_name
|
3049
|
+
|
3050
|
+
# Holds a list of references associated with this vulnerability item and
|
3051
|
+
# assessment.
|
3052
|
+
# Corresponds to the JSON property `relatedUris`
|
3053
|
+
# @return [Array<Google::Apis::OndemandscanningV1::RelatedUrl>]
|
3054
|
+
attr_accessor :related_uris
|
3055
|
+
|
3056
|
+
# Specifies details on how to handle (and presumably, fix) a vulnerability.
|
3057
|
+
# Corresponds to the JSON property `remediations`
|
3058
|
+
# @return [Array<Google::Apis::OndemandscanningV1::Remediation>]
|
3059
|
+
attr_accessor :remediations
|
3060
|
+
|
3061
|
+
# Provides the state of this Vulnerability assessment.
|
3062
|
+
# Corresponds to the JSON property `state`
|
3063
|
+
# @return [String]
|
3064
|
+
attr_accessor :state
|
3065
|
+
|
3066
|
+
def initialize(**args)
|
3067
|
+
update!(**args)
|
3068
|
+
end
|
3069
|
+
|
3070
|
+
# Update properties of this object
|
3071
|
+
def update!(**args)
|
3072
|
+
@cve = args[:cve] if args.key?(:cve)
|
3073
|
+
@impacts = args[:impacts] if args.key?(:impacts)
|
3074
|
+
@justification = args[:justification] if args.key?(:justification)
|
3075
|
+
@note_name = args[:note_name] if args.key?(:note_name)
|
3076
|
+
@related_uris = args[:related_uris] if args.key?(:related_uris)
|
3077
|
+
@remediations = args[:remediations] if args.key?(:remediations)
|
3078
|
+
@state = args[:state] if args.key?(:state)
|
3079
|
+
end
|
3080
|
+
end
|
3081
|
+
|
2958
3082
|
# An occurrence of a severity vulnerability on a resource.
|
2959
3083
|
class VulnerabilityOccurrence
|
2960
3084
|
include Google::Apis::Core::Hashable
|
@@ -3036,6 +3160,12 @@ module Google
|
|
3036
3160
|
# @return [String]
|
3037
3161
|
attr_accessor :type
|
3038
3162
|
|
3163
|
+
# VexAssessment provides all publisher provided Vex information that is related
|
3164
|
+
# to this vulnerability.
|
3165
|
+
# Corresponds to the JSON property `vexAssessment`
|
3166
|
+
# @return [Google::Apis::OndemandscanningV1::VexAssessment]
|
3167
|
+
attr_accessor :vex_assessment
|
3168
|
+
|
3039
3169
|
def initialize(**args)
|
3040
3170
|
update!(**args)
|
3041
3171
|
end
|
@@ -3054,6 +3184,7 @@ module Google
|
|
3054
3184
|
@severity = args[:severity] if args.key?(:severity)
|
3055
3185
|
@short_description = args[:short_description] if args.key?(:short_description)
|
3056
3186
|
@type = args[:type] if args.key?(:type)
|
3187
|
+
@vex_assessment = args[:vex_assessment] if args.key?(:vex_assessment)
|
3057
3188
|
end
|
3058
3189
|
end
|
3059
3190
|
|
@@ -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.
|
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 = "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
|
|
@@ -894,6 +912,14 @@ module Google
|
|
894
912
|
end
|
895
913
|
end
|
896
914
|
|
915
|
+
class Justification
|
916
|
+
# @private
|
917
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
918
|
+
property :details, as: 'details'
|
919
|
+
property :justification_type, as: 'justificationType'
|
920
|
+
end
|
921
|
+
end
|
922
|
+
|
897
923
|
class Jwt
|
898
924
|
# @private
|
899
925
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1040,6 +1066,7 @@ module Google
|
|
1040
1066
|
class PackageData
|
1041
1067
|
# @private
|
1042
1068
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1069
|
+
property :architecture, as: 'architecture'
|
1043
1070
|
property :cpe_uri, as: 'cpeUri'
|
1044
1071
|
collection :dependency_chain, as: 'dependencyChain', class: Google::Apis::OndemandscanningV1::LanguagePackageDependency, decorator: Google::Apis::OndemandscanningV1::LanguagePackageDependency::Representation
|
1045
1072
|
|
@@ -1120,6 +1147,16 @@ module Google
|
|
1120
1147
|
end
|
1121
1148
|
end
|
1122
1149
|
|
1150
|
+
class Remediation
|
1151
|
+
# @private
|
1152
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1153
|
+
property :details, as: 'details'
|
1154
|
+
property :remediation_type, as: 'remediationType'
|
1155
|
+
property :remediation_uri, as: 'remediationUri', class: Google::Apis::OndemandscanningV1::RelatedUrl, decorator: Google::Apis::OndemandscanningV1::RelatedUrl::Representation
|
1156
|
+
|
1157
|
+
end
|
1158
|
+
end
|
1159
|
+
|
1123
1160
|
class RepoId
|
1124
1161
|
# @private
|
1125
1162
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1284,6 +1321,22 @@ module Google
|
|
1284
1321
|
end
|
1285
1322
|
end
|
1286
1323
|
|
1324
|
+
class VexAssessment
|
1325
|
+
# @private
|
1326
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1327
|
+
property :cve, as: 'cve'
|
1328
|
+
collection :impacts, as: 'impacts'
|
1329
|
+
property :justification, as: 'justification', class: Google::Apis::OndemandscanningV1::Justification, decorator: Google::Apis::OndemandscanningV1::Justification::Representation
|
1330
|
+
|
1331
|
+
property :note_name, as: 'noteName'
|
1332
|
+
collection :related_uris, as: 'relatedUris', class: Google::Apis::OndemandscanningV1::RelatedUrl, decorator: Google::Apis::OndemandscanningV1::RelatedUrl::Representation
|
1333
|
+
|
1334
|
+
collection :remediations, as: 'remediations', class: Google::Apis::OndemandscanningV1::Remediation, decorator: Google::Apis::OndemandscanningV1::Remediation::Representation
|
1335
|
+
|
1336
|
+
property :state, as: 'state'
|
1337
|
+
end
|
1338
|
+
end
|
1339
|
+
|
1287
1340
|
class VulnerabilityOccurrence
|
1288
1341
|
# @private
|
1289
1342
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1303,6 +1356,8 @@ module Google
|
|
1303
1356
|
property :severity, as: 'severity'
|
1304
1357
|
property :short_description, as: 'shortDescription'
|
1305
1358
|
property :type, as: 'type'
|
1359
|
+
property :vex_assessment, as: 'vexAssessment', class: Google::Apis::OndemandscanningV1::VexAssessment, decorator: Google::Apis::OndemandscanningV1::VexAssessment::Representation
|
1360
|
+
|
1306
1361
|
end
|
1307
1362
|
end
|
1308
1363
|
|
@@ -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_v1
|
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-03-
|
11
|
+
date: 2023-03-19 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_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1/v0.35.0
|
62
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: []
|