Skip to content

Commit 48e7f7a

Browse files
feat: Automated regeneration of containeranalysis v1 client (googleapis#26526)
Auto-created at 2026-05-17 11:48:39 +0000 using the toys pull request generator.
1 parent 1a12e63 commit 48e7f7a

5 files changed

Lines changed: 68 additions & 32 deletions

File tree

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152664,6 +152664,7 @@
152664152664
"/containeranalysis:v1/AISkillAnalysisOccurrence": ai_skill_analysis_occurrence
152665152665
"/containeranalysis:v1/AISkillAnalysisOccurrence/findings": findings
152666152666
"/containeranalysis:v1/AISkillAnalysisOccurrence/findings/finding": finding
152667+
"/containeranalysis:v1/AISkillAnalysisOccurrence/maxSeverity": max_severity
152667152668
"/containeranalysis:v1/AISkillAnalysisOccurrence/skillName": skill_name
152668152669
"/containeranalysis:v1/AliasContext": alias_context
152669152670
"/containeranalysis:v1/AliasContext/kind": kind
@@ -153277,10 +153278,15 @@
153277153278
"/containeranalysis:v1/Finding/category": category
153278153279
"/containeranalysis:v1/Finding/description": description
153279153280
"/containeranalysis:v1/Finding/filePath": file_path
153281+
"/containeranalysis:v1/Finding/location": location
153280153282
"/containeranalysis:v1/Finding/ruleId": rule_id
153283+
"/containeranalysis:v1/Finding/scanner": scanner
153281153284
"/containeranalysis:v1/Finding/severity": severity
153282153285
"/containeranalysis:v1/Finding/snippet": snippet
153283153286
"/containeranalysis:v1/Finding/title": title
153287+
"/containeranalysis:v1/FindingLocation": finding_location
153288+
"/containeranalysis:v1/FindingLocation/filePath": file_path
153289+
"/containeranalysis:v1/FindingLocation/lineNumber": line_number
153284153290
"/containeranalysis:v1/Fingerprint": fingerprint
153285153291
"/containeranalysis:v1/Fingerprint/v1Name": v1_name
153286153292
"/containeranalysis:v1/Fingerprint/v2Blob": v2_blob

generated/google-apis-containeranalysis_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-containeranalysis_v1
22

3+
### v0.74.0 (2026-05-17)
4+
5+
* Regenerated from discovery document revision 20260505
6+
37
### v0.73.0 (2026-05-03)
48

59
* Regenerated from discovery document revision 20260423

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

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ class AiSkillAnalysisOccurrence
4444
# @return [Array<Google::Apis::ContaineranalysisV1::Finding>]
4545
attr_accessor :findings
4646

47+
# Maximum severity found among findings.
48+
# Corresponds to the JSON property `maxSeverity`
49+
# @return [String]
50+
attr_accessor :max_severity
51+
4752
# Name of the skill that produced this analysis.
4853
# Corresponds to the JSON property `skillName`
4954
# @return [String]
@@ -56,6 +61,7 @@ def initialize(**args)
5661
# Update properties of this object
5762
def update!(**args)
5863
@findings = args[:findings] if args.key?(:findings)
64+
@max_severity = args[:max_severity] if args.key?(:max_severity)
5965
@skill_name = args[:skill_name] if args.key?(:skill_name)
6066
end
6167
end
@@ -4374,49 +4380,56 @@ class Finding
43744380
# @return [String]
43754381
attr_accessor :category
43764382

4377-
# Detailed description of the finding.
4378-
# Corresponds to the JSON property `description`
4379-
# @return [String]
4380-
attr_accessor :description
4381-
4382-
# Path to the file where the finding was detected.
4383-
# Corresponds to the JSON property `filePath`
4384-
# @return [String]
4385-
attr_accessor :file_path
4383+
# Location details with file path and line number.
4384+
# Corresponds to the JSON property `location`
4385+
# @return [Google::Apis::ContaineranalysisV1::FindingLocation]
4386+
attr_accessor :location
43864387

4387-
# Unique identifier of the rule that produced this finding.
4388-
# Corresponds to the JSON property `ruleId`
4388+
# Scanner determines which engine (e.g. static, llm) emitted the finding.
4389+
# Corresponds to the JSON property `scanner`
43894390
# @return [String]
4390-
attr_accessor :rule_id
4391+
attr_accessor :scanner
43914392

43924393
# Severity of the finding.
43934394
# Corresponds to the JSON property `severity`
43944395
# @return [String]
43954396
attr_accessor :severity
43964397

4397-
# Code snippet relevant to the finding.
4398-
# Corresponds to the JSON property `snippet`
4399-
# @return [String]
4400-
attr_accessor :snippet
4398+
def initialize(**args)
4399+
update!(**args)
4400+
end
44014401

4402-
# Title of the finding.
4403-
# Corresponds to the JSON property `title`
4402+
# Update properties of this object
4403+
def update!(**args)
4404+
@category = args[:category] if args.key?(:category)
4405+
@location = args[:location] if args.key?(:location)
4406+
@scanner = args[:scanner] if args.key?(:scanner)
4407+
@severity = args[:severity] if args.key?(:severity)
4408+
end
4409+
end
4410+
4411+
# Location details with file path and line number.
4412+
class FindingLocation
4413+
include Google::Apis::Core::Hashable
4414+
4415+
# Relative path of the file containing the finding.
4416+
# Corresponds to the JSON property `filePath`
44044417
# @return [String]
4405-
attr_accessor :title
4418+
attr_accessor :file_path
4419+
4420+
# Line number (1-based), or 0 if whole File / unknown.
4421+
# Corresponds to the JSON property `lineNumber`
4422+
# @return [Fixnum]
4423+
attr_accessor :line_number
44064424

44074425
def initialize(**args)
44084426
update!(**args)
44094427
end
44104428

44114429
# Update properties of this object
44124430
def update!(**args)
4413-
@category = args[:category] if args.key?(:category)
4414-
@description = args[:description] if args.key?(:description)
44154431
@file_path = args[:file_path] if args.key?(:file_path)
4416-
@rule_id = args[:rule_id] if args.key?(:rule_id)
4417-
@severity = args[:severity] if args.key?(:severity)
4418-
@snippet = args[:snippet] if args.key?(:snippet)
4419-
@title = args[:title] if args.key?(:title)
4432+
@line_number = args[:line_number] if args.key?(:line_number)
44204433
end
44214434
end
44224435

generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_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 ContaineranalysisV1
1818
# Version of the google-apis-containeranalysis_v1 gem
19-
GEM_VERSION = "0.73.0"
19+
GEM_VERSION = "0.74.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
628628
include Google::Apis::Core::JsonObjectSupport
629629
end
630630

631+
class FindingLocation
632+
class Representation < Google::Apis::Core::JsonRepresentation; end
633+
634+
include Google::Apis::Core::JsonObjectSupport
635+
end
636+
631637
class Fingerprint
632638
class Representation < Google::Apis::Core::JsonRepresentation; end
633639

@@ -1179,6 +1185,7 @@ class AiSkillAnalysisOccurrence
11791185
class Representation < Google::Apis::Core::JsonRepresentation
11801186
collection :findings, as: 'findings', class: Google::Apis::ContaineranalysisV1::Finding, decorator: Google::Apis::ContaineranalysisV1::Finding::Representation
11811187

1188+
property :max_severity, as: 'maxSeverity'
11821189
property :skill_name, as: 'skillName'
11831190
end
11841191
end
@@ -2301,12 +2308,18 @@ class Finding
23012308
# @private
23022309
class Representation < Google::Apis::Core::JsonRepresentation
23032310
property :category, as: 'category'
2304-
property :description, as: 'description'
2305-
property :file_path, as: 'filePath'
2306-
property :rule_id, as: 'ruleId'
2311+
property :location, as: 'location', class: Google::Apis::ContaineranalysisV1::FindingLocation, decorator: Google::Apis::ContaineranalysisV1::FindingLocation::Representation
2312+
2313+
property :scanner, as: 'scanner'
23072314
property :severity, as: 'severity'
2308-
property :snippet, as: 'snippet'
2309-
property :title, as: 'title'
2315+
end
2316+
end
2317+
2318+
class FindingLocation
2319+
# @private
2320+
class Representation < Google::Apis::Core::JsonRepresentation
2321+
property :file_path, as: 'filePath'
2322+
property :line_number, :numeric_string => true, as: 'lineNumber'
23102323
end
23112324
end
23122325

0 commit comments

Comments
 (0)