Skip to content

Commit 5dd21df

Browse files
feat: Automated regeneration of ondemandscanning v1 client (googleapis#23179)
Auto-created at 2025-05-21 20:07:41 +0000 using the toys pull request generator.
1 parent 56240c9 commit 5dd21df

File tree

5 files changed

+59
-2
lines changed

5 files changed

+59
-2
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293239,6 +293239,8 @@
293239293239
"/ondemandscanning:v1/DiscoveryOccurrence/archiveTime": archive_time
293240293240
"/ondemandscanning:v1/DiscoveryOccurrence/continuousAnalysis": continuous_analysis
293241293241
"/ondemandscanning:v1/DiscoveryOccurrence/cpe": cpe
293242+
"/ondemandscanning:v1/DiscoveryOccurrence/files": files
293243+
"/ondemandscanning:v1/DiscoveryOccurrence/files/file": file
293242293244
"/ondemandscanning:v1/DiscoveryOccurrence/lastScanTime": last_scan_time
293243293245
"/ondemandscanning:v1/DiscoveryOccurrence/sbomStatus": sbom_status
293244293246
"/ondemandscanning:v1/DiscoveryOccurrence/vulnerabilityAttestation": vulnerability_attestation
@@ -293251,6 +293253,10 @@
293251293253
"/ondemandscanning:v1/EnvelopeSignature": envelope_signature
293252293254
"/ondemandscanning:v1/EnvelopeSignature/keyid": keyid
293253293255
"/ondemandscanning:v1/EnvelopeSignature/sig": sig
293256+
"/ondemandscanning:v1/File": file
293257+
"/ondemandscanning:v1/File/digest": digest
293258+
"/ondemandscanning:v1/File/digest/digest": digest
293259+
"/ondemandscanning:v1/File/name": name
293254293260
"/ondemandscanning:v1/FileHashes": file_hashes
293255293261
"/ondemandscanning:v1/FileHashes/fileHash": file_hash
293256293262
"/ondemandscanning:v1/FileHashes/fileHash/file_hash": file_hash

generated/google-apis-ondemandscanning_v1/CHANGELOG.md

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

3+
### v0.56.0 (2025-05-21)
4+
5+
* Regenerated from discovery document revision 20250519
6+
37
### v0.55.0 (2025-05-18)
48

59
* Regenerated from discovery document revision 20250505

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,11 @@ class DiscoveryOccurrence
10121012
# @return [String]
10131013
attr_accessor :cpe
10141014

1015+
# Files that make up the resource described by the occurrence.
1016+
# Corresponds to the JSON property `files`
1017+
# @return [Array<Google::Apis::OndemandscanningV1::File>]
1018+
attr_accessor :files
1019+
10151020
# The last time this resource was scanned.
10161021
# Corresponds to the JSON property `lastScanTime`
10171022
# @return [String]
@@ -1035,6 +1040,7 @@ def update!(**args)
10351040
@archive_time = args[:archive_time] if args.key?(:archive_time)
10361041
@continuous_analysis = args[:continuous_analysis] if args.key?(:continuous_analysis)
10371042
@cpe = args[:cpe] if args.key?(:cpe)
1043+
@files = args[:files] if args.key?(:files)
10381044
@last_scan_time = args[:last_scan_time] if args.key?(:last_scan_time)
10391045
@sbom_status = args[:sbom_status] if args.key?(:sbom_status)
10401046
end
@@ -1115,6 +1121,31 @@ def update!(**args)
11151121
end
11161122
end
11171123

1124+
#
1125+
class File
1126+
include Google::Apis::Core::Hashable
1127+
1128+
#
1129+
# Corresponds to the JSON property `digest`
1130+
# @return [Hash<String,String>]
1131+
attr_accessor :digest
1132+
1133+
#
1134+
# Corresponds to the JSON property `name`
1135+
# @return [String]
1136+
attr_accessor :name
1137+
1138+
def initialize(**args)
1139+
update!(**args)
1140+
end
1141+
1142+
# Update properties of this object
1143+
def update!(**args)
1144+
@digest = args[:digest] if args.key?(:digest)
1145+
@name = args[:name] if args.key?(:name)
1146+
end
1147+
end
1148+
11181149
# Container message for hashes of byte content of files, used in source messages
11191150
# to verify integrity of source input to the build.
11201151
class FileHashes

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module OndemandscanningV1
1818
# Version of the google-apis-ondemandscanning_v1 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
2222
GENERATOR_VERSION = "0.17.0"
2323

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

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
196196
include Google::Apis::Core::JsonObjectSupport
197197
end
198198

199+
class File
200+
class Representation < Google::Apis::Core::JsonRepresentation; end
201+
202+
include Google::Apis::Core::JsonObjectSupport
203+
end
204+
199205
class FileHashes
200206
class Representation < Google::Apis::Core::JsonRepresentation; end
201207

@@ -900,6 +906,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
900906
property :archive_time, as: 'archiveTime'
901907
property :continuous_analysis, as: 'continuousAnalysis'
902908
property :cpe, as: 'cpe'
909+
collection :files, as: 'files', class: Google::Apis::OndemandscanningV1::File, decorator: Google::Apis::OndemandscanningV1::File::Representation
910+
903911
property :last_scan_time, as: 'lastScanTime'
904912
property :sbom_status, as: 'sbomStatus', class: Google::Apis::OndemandscanningV1::SbomStatus, decorator: Google::Apis::OndemandscanningV1::SbomStatus::Representation
905913

@@ -930,6 +938,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
930938
end
931939
end
932940

941+
class File
942+
# @private
943+
class Representation < Google::Apis::Core::JsonRepresentation
944+
hash :digest, as: 'digest'
945+
property :name, as: 'name'
946+
end
947+
end
948+
933949
class FileHashes
934950
# @private
935951
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)