Skip to content

Commit 7c286c5

Browse files
feat: Automated regeneration of ondemandscanning v1beta1 client (googleapis#24073)
Auto-created at 2025-08-24 10:35:46 +0000 using the toys pull request generator.
1 parent 3a6916b commit 7c286c5

File tree

5 files changed

+142
-3
lines changed

5 files changed

+142
-3
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300818,6 +300818,8 @@
300818300818
"/ondemandscanning:v1beta1/BuildProvenance/triggerId": trigger_id
300819300819
"/ondemandscanning:v1beta1/BuilderConfig": builder_config
300820300820
"/ondemandscanning:v1beta1/BuilderConfig/id": id
300821+
"/ondemandscanning:v1beta1/CISAKnownExploitedVulnerabilities": cisa_known_exploited_vulnerabilities
300822+
"/ondemandscanning:v1beta1/CISAKnownExploitedVulnerabilities/knownRansomwareCampaignUse": known_ransomware_campaign_use
300821300823
"/ondemandscanning:v1beta1/CVSS": cvss
300822300824
"/ondemandscanning:v1beta1/CVSS/attackComplexity": attack_complexity
300823300825
"/ondemandscanning:v1beta1/CVSS/attackVector": attack_vector
@@ -300896,6 +300898,9 @@
300896300898
"/ondemandscanning:v1beta1/EnvelopeSignature": envelope_signature
300897300899
"/ondemandscanning:v1beta1/EnvelopeSignature/keyid": keyid
300898300900
"/ondemandscanning:v1beta1/EnvelopeSignature/sig": sig
300901+
"/ondemandscanning:v1beta1/ExploitPredictionScoringSystem": exploit_prediction_scoring_system
300902+
"/ondemandscanning:v1beta1/ExploitPredictionScoringSystem/percentile": percentile
300903+
"/ondemandscanning:v1beta1/ExploitPredictionScoringSystem/score": score
300899300904
"/ondemandscanning:v1beta1/File": file
300900300905
"/ondemandscanning:v1beta1/File/digest": digest
300901300906
"/ondemandscanning:v1beta1/File/digest/digest": digest
@@ -301195,6 +301200,9 @@
301195301200
"/ondemandscanning:v1beta1/ResourceDescriptor/mediaType": media_type
301196301201
"/ondemandscanning:v1beta1/ResourceDescriptor/name": name
301197301202
"/ondemandscanning:v1beta1/ResourceDescriptor/uri": uri
301203+
"/ondemandscanning:v1beta1/Risk": risk
301204+
"/ondemandscanning:v1beta1/Risk/cisaKev": cisa_kev
301205+
"/ondemandscanning:v1beta1/Risk/epss": epss
301198301206
"/ondemandscanning:v1beta1/RunDetails": run_details
301199301207
"/ondemandscanning:v1beta1/RunDetails/builder": builder
301200301208
"/ondemandscanning:v1beta1/RunDetails/byproducts": byproducts
@@ -301352,6 +301360,7 @@
301352301360
"/ondemandscanning:v1beta1/VulnerabilityOccurrence/packageIssue/package_issue": package_issue
301353301361
"/ondemandscanning:v1beta1/VulnerabilityOccurrence/relatedUrls": related_urls
301354301362
"/ondemandscanning:v1beta1/VulnerabilityOccurrence/relatedUrls/related_url": related_url
301363+
"/ondemandscanning:v1beta1/VulnerabilityOccurrence/risk": risk
301355301364
"/ondemandscanning:v1beta1/VulnerabilityOccurrence/severity": severity
301356301365
"/ondemandscanning:v1beta1/VulnerabilityOccurrence/shortDescription": short_description
301357301366
"/ondemandscanning:v1beta1/VulnerabilityOccurrence/type": type

generated/google-apis-ondemandscanning_v1beta1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-ondemandscanning_v1beta1
22

3+
### v0.56.0 (2025-08-24)
4+
5+
* Regenerated from discovery document revision 20250815
6+
* Regenerated using generator version 0.18.0
7+
38
### v0.55.0 (2025-05-21)
49

510
* Regenerated from discovery document revision 20250519

generated/google-apis-ondemandscanning_v1beta1/lib/google/apis/ondemandscanning_v1beta1/classes.rb

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,26 @@ def update!(**args)
569569
end
570570
end
571571

572+
#
573+
class CisaKnownExploitedVulnerabilities
574+
include Google::Apis::Core::Hashable
575+
576+
# Whether the vulnerability is known to have been leveraged as part of a
577+
# ransomware campaign.
578+
# Corresponds to the JSON property `knownRansomwareCampaignUse`
579+
# @return [String]
580+
attr_accessor :known_ransomware_campaign_use
581+
582+
def initialize(**args)
583+
update!(**args)
584+
end
585+
586+
# Update properties of this object
587+
def update!(**args)
588+
@known_ransomware_campaign_use = args[:known_ransomware_campaign_use] if args.key?(:known_ransomware_campaign_use)
589+
end
590+
end
591+
572592
# Common Vulnerability Scoring System. For details, see https://www.first.org/
573593
# cvss/specification-document This is a message we will try to use for storing
574594
# various versions of CVSS rather than making a separate proto for storing a
@@ -1113,6 +1133,33 @@ def update!(**args)
11131133
end
11141134
end
11151135

1136+
#
1137+
class ExploitPredictionScoringSystem
1138+
include Google::Apis::Core::Hashable
1139+
1140+
# The percentile of the current score, the proportion of all scored
1141+
# vulnerabilities with the same or a lower EPSS score
1142+
# Corresponds to the JSON property `percentile`
1143+
# @return [Float]
1144+
attr_accessor :percentile
1145+
1146+
# The EPSS score representing the probability [0-1] of exploitation in the wild
1147+
# in the next 30 days
1148+
# Corresponds to the JSON property `score`
1149+
# @return [Float]
1150+
attr_accessor :score
1151+
1152+
def initialize(**args)
1153+
update!(**args)
1154+
end
1155+
1156+
# Update properties of this object
1157+
def update!(**args)
1158+
@percentile = args[:percentile] if args.key?(:percentile)
1159+
@score = args[:score] if args.key?(:score)
1160+
end
1161+
end
1162+
11161163
#
11171164
class File
11181165
include Google::Apis::Core::Hashable
@@ -2976,6 +3023,33 @@ def update!(**args)
29763023
end
29773024
end
29783025

3026+
#
3027+
class Risk
3028+
include Google::Apis::Core::Hashable
3029+
3030+
# CISA maintains the authoritative source of vulnerabilities that have been
3031+
# exploited in the wild.
3032+
# Corresponds to the JSON property `cisaKev`
3033+
# @return [Google::Apis::OndemandscanningV1beta1::CisaKnownExploitedVulnerabilities]
3034+
attr_accessor :cisa_kev
3035+
3036+
# The Exploit Prediction Scoring System (EPSS) estimates the likelihood (
3037+
# probability) that a software vulnerability will be exploited in the wild.
3038+
# Corresponds to the JSON property `epss`
3039+
# @return [Google::Apis::OndemandscanningV1beta1::ExploitPredictionScoringSystem]
3040+
attr_accessor :epss
3041+
3042+
def initialize(**args)
3043+
update!(**args)
3044+
end
3045+
3046+
# Update properties of this object
3047+
def update!(**args)
3048+
@cisa_kev = args[:cisa_kev] if args.key?(:cisa_kev)
3049+
@epss = args[:epss] if args.key?(:epss)
3050+
end
3051+
end
3052+
29793053
#
29803054
class RunDetails
29813055
include Google::Apis::Core::Hashable
@@ -3997,6 +4071,11 @@ class VulnerabilityOccurrence
39974071
# @return [Array<Google::Apis::OndemandscanningV1beta1::RelatedUrl>]
39984072
attr_accessor :related_urls
39994073

4074+
# Risk information about the vulnerability, such as CISA, EPSS, etc.
4075+
# Corresponds to the JSON property `risk`
4076+
# @return [Google::Apis::OndemandscanningV1beta1::Risk]
4077+
attr_accessor :risk
4078+
40004079
# Output only. The note provider assigned severity of this vulnerability.
40014080
# Corresponds to the JSON property `severity`
40024081
# @return [String]
@@ -4035,6 +4114,7 @@ def update!(**args)
40354114
@long_description = args[:long_description] if args.key?(:long_description)
40364115
@package_issue = args[:package_issue] if args.key?(:package_issue)
40374116
@related_urls = args[:related_urls] if args.key?(:related_urls)
4117+
@risk = args[:risk] if args.key?(:risk)
40384118
@severity = args[:severity] if args.key?(:severity)
40394119
@short_description = args[:short_description] if args.key?(:short_description)
40404120
@type = args[:type] if args.key?(:type)

generated/google-apis-ondemandscanning_v1beta1/lib/google/apis/ondemandscanning_v1beta1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module OndemandscanningV1beta1
1818
# Version of the google-apis-ondemandscanning_v1beta1 gem
19-
GEM_VERSION = "0.55.0"
19+
GEM_VERSION = "0.56.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.17.0"
22+
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250519"
25+
REVISION = "20250815"
2626
end
2727
end
2828
end

generated/google-apis-ondemandscanning_v1beta1/lib/google/apis/ondemandscanning_v1beta1/representations.rb

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
118118
include Google::Apis::Core::JsonObjectSupport
119119
end
120120

121+
class CisaKnownExploitedVulnerabilities
122+
class Representation < Google::Apis::Core::JsonRepresentation; end
123+
124+
include Google::Apis::Core::JsonObjectSupport
125+
end
126+
121127
class Cvss
122128
class Representation < Google::Apis::Core::JsonRepresentation; end
123129

@@ -196,6 +202,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
196202
include Google::Apis::Core::JsonObjectSupport
197203
end
198204

205+
class ExploitPredictionScoringSystem
206+
class Representation < Google::Apis::Core::JsonRepresentation; end
207+
208+
include Google::Apis::Core::JsonObjectSupport
209+
end
210+
199211
class File
200212
class Representation < Google::Apis::Core::JsonRepresentation; end
201213

@@ -478,6 +490,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
478490
include Google::Apis::Core::JsonObjectSupport
479491
end
480492

493+
class Risk
494+
class Representation < Google::Apis::Core::JsonRepresentation; end
495+
496+
include Google::Apis::Core::JsonObjectSupport
497+
end
498+
481499
class RunDetails
482500
class Representation < Google::Apis::Core::JsonRepresentation; end
483501

@@ -791,6 +809,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
791809
end
792810
end
793811

812+
class CisaKnownExploitedVulnerabilities
813+
# @private
814+
class Representation < Google::Apis::Core::JsonRepresentation
815+
property :known_ransomware_campaign_use, as: 'knownRansomwareCampaignUse'
816+
end
817+
end
818+
794819
class Cvss
795820
# @private
796821
class Representation < Google::Apis::Core::JsonRepresentation
@@ -937,6 +962,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
937962
end
938963
end
939964

965+
class ExploitPredictionScoringSystem
966+
# @private
967+
class Representation < Google::Apis::Core::JsonRepresentation
968+
property :percentile, as: 'percentile'
969+
property :score, as: 'score'
970+
end
971+
end
972+
940973
class File
941974
# @private
942975
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1457,6 +1490,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
14571490
end
14581491
end
14591492

1493+
class Risk
1494+
# @private
1495+
class Representation < Google::Apis::Core::JsonRepresentation
1496+
property :cisa_kev, as: 'cisaKev', class: Google::Apis::OndemandscanningV1beta1::CisaKnownExploitedVulnerabilities, decorator: Google::Apis::OndemandscanningV1beta1::CisaKnownExploitedVulnerabilities::Representation
1497+
1498+
property :epss, as: 'epss', class: Google::Apis::OndemandscanningV1beta1::ExploitPredictionScoringSystem, decorator: Google::Apis::OndemandscanningV1beta1::ExploitPredictionScoringSystem::Representation
1499+
1500+
end
1501+
end
1502+
14601503
class RunDetails
14611504
# @private
14621505
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1737,6 +1780,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
17371780

17381781
collection :related_urls, as: 'relatedUrls', class: Google::Apis::OndemandscanningV1beta1::RelatedUrl, decorator: Google::Apis::OndemandscanningV1beta1::RelatedUrl::Representation
17391782

1783+
property :risk, as: 'risk', class: Google::Apis::OndemandscanningV1beta1::Risk, decorator: Google::Apis::OndemandscanningV1beta1::Risk::Representation
1784+
17401785
property :severity, as: 'severity'
17411786
property :short_description, as: 'shortDescription'
17421787
property :type, as: 'type'

0 commit comments

Comments
 (0)