Skip to content

Commit 1018bbe

Browse files
feat: Automated regeneration of ondemandscanning v1beta1 client (googleapis#23207)
Auto-created at 2025-05-21 21:11:10 +0000 using the toys pull request generator.
1 parent 958d27a commit 1018bbe

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
@@ -294089,6 +294089,8 @@
294089294089
"/ondemandscanning:v1beta1/DiscoveryOccurrence/archiveTime": archive_time
294090294090
"/ondemandscanning:v1beta1/DiscoveryOccurrence/continuousAnalysis": continuous_analysis
294091294091
"/ondemandscanning:v1beta1/DiscoveryOccurrence/cpe": cpe
294092+
"/ondemandscanning:v1beta1/DiscoveryOccurrence/files": files
294093+
"/ondemandscanning:v1beta1/DiscoveryOccurrence/files/file": file
294092294094
"/ondemandscanning:v1beta1/DiscoveryOccurrence/lastScanTime": last_scan_time
294093294095
"/ondemandscanning:v1beta1/DiscoveryOccurrence/sbomStatus": sbom_status
294094294096
"/ondemandscanning:v1beta1/DiscoveryOccurrence/vulnerabilityAttestation": vulnerability_attestation
@@ -294101,6 +294103,10 @@
294101294103
"/ondemandscanning:v1beta1/EnvelopeSignature": envelope_signature
294102294104
"/ondemandscanning:v1beta1/EnvelopeSignature/keyid": keyid
294103294105
"/ondemandscanning:v1beta1/EnvelopeSignature/sig": sig
294106+
"/ondemandscanning:v1beta1/File": file
294107+
"/ondemandscanning:v1beta1/File/digest": digest
294108+
"/ondemandscanning:v1beta1/File/digest/digest": digest
294109+
"/ondemandscanning:v1beta1/File/name": name
294104294110
"/ondemandscanning:v1beta1/FileHashes": file_hashes
294105294111
"/ondemandscanning:v1beta1/FileHashes/fileHash": file_hash
294106294112
"/ondemandscanning:v1beta1/FileHashes/fileHash/file_hash": file_hash

generated/google-apis-ondemandscanning_v1beta1/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_v1beta1
22

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

59
* Regenerated from discovery document revision 20250505

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,11 @@ class DiscoveryOccurrence
10041004
# @return [String]
10051005
attr_accessor :cpe
10061006

1007+
# Files that make up the resource described by the occurrence.
1008+
# Corresponds to the JSON property `files`
1009+
# @return [Array<Google::Apis::OndemandscanningV1beta1::File>]
1010+
attr_accessor :files
1011+
10071012
# The last time this resource was scanned.
10081013
# Corresponds to the JSON property `lastScanTime`
10091014
# @return [String]
@@ -1027,6 +1032,7 @@ def update!(**args)
10271032
@archive_time = args[:archive_time] if args.key?(:archive_time)
10281033
@continuous_analysis = args[:continuous_analysis] if args.key?(:continuous_analysis)
10291034
@cpe = args[:cpe] if args.key?(:cpe)
1035+
@files = args[:files] if args.key?(:files)
10301036
@last_scan_time = args[:last_scan_time] if args.key?(:last_scan_time)
10311037
@sbom_status = args[:sbom_status] if args.key?(:sbom_status)
10321038
end
@@ -1107,6 +1113,31 @@ def update!(**args)
11071113
end
11081114
end
11091115

1116+
#
1117+
class File
1118+
include Google::Apis::Core::Hashable
1119+
1120+
#
1121+
# Corresponds to the JSON property `digest`
1122+
# @return [Hash<String,String>]
1123+
attr_accessor :digest
1124+
1125+
#
1126+
# Corresponds to the JSON property `name`
1127+
# @return [String]
1128+
attr_accessor :name
1129+
1130+
def initialize(**args)
1131+
update!(**args)
1132+
end
1133+
1134+
# Update properties of this object
1135+
def update!(**args)
1136+
@digest = args[:digest] if args.key?(:digest)
1137+
@name = args[:name] if args.key?(:name)
1138+
end
1139+
end
1140+
11101141
# Container message for hashes of byte content of files, used in source messages
11111142
# to verify integrity of source input to the build.
11121143
class FileHashes

generated/google-apis-ondemandscanning_v1beta1/lib/google/apis/ondemandscanning_v1beta1/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 OndemandscanningV1beta1
1818
# Version of the google-apis-ondemandscanning_v1beta1 gem
19-
GEM_VERSION = "0.54.0"
19+
GEM_VERSION = "0.55.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_v1beta1/lib/google/apis/ondemandscanning_v1beta1/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

@@ -899,6 +905,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
899905
property :archive_time, as: 'archiveTime'
900906
property :continuous_analysis, as: 'continuousAnalysis'
901907
property :cpe, as: 'cpe'
908+
collection :files, as: 'files', class: Google::Apis::OndemandscanningV1beta1::File, decorator: Google::Apis::OndemandscanningV1beta1::File::Representation
909+
902910
property :last_scan_time, as: 'lastScanTime'
903911
property :sbom_status, as: 'sbomStatus', class: Google::Apis::OndemandscanningV1beta1::SbomStatus, decorator: Google::Apis::OndemandscanningV1beta1::SbomStatus::Representation
904912

@@ -929,6 +937,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
929937
end
930938
end
931939

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

0 commit comments

Comments
 (0)