diff --git a/api_names_out.yaml b/api_names_out.yaml index 0f0bd0c847c..9a2baae9180 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -151310,6 +151310,7 @@ "/containeranalysis:v1/AISkillAnalysisOccurrence": ai_skill_analysis_occurrence "/containeranalysis:v1/AISkillAnalysisOccurrence/findings": findings "/containeranalysis:v1/AISkillAnalysisOccurrence/findings/finding": finding +"/containeranalysis:v1/AISkillAnalysisOccurrence/maxSeverity": max_severity "/containeranalysis:v1/AISkillAnalysisOccurrence/skillName": skill_name "/containeranalysis:v1/AliasContext": alias_context "/containeranalysis:v1/AliasContext/kind": kind @@ -151923,10 +151924,15 @@ "/containeranalysis:v1/Finding/category": category "/containeranalysis:v1/Finding/description": description "/containeranalysis:v1/Finding/filePath": file_path +"/containeranalysis:v1/Finding/location": location "/containeranalysis:v1/Finding/ruleId": rule_id +"/containeranalysis:v1/Finding/scanner": scanner "/containeranalysis:v1/Finding/severity": severity "/containeranalysis:v1/Finding/snippet": snippet "/containeranalysis:v1/Finding/title": title +"/containeranalysis:v1/FindingLocation": finding_location +"/containeranalysis:v1/FindingLocation/filePath": file_path +"/containeranalysis:v1/FindingLocation/lineNumber": line_number "/containeranalysis:v1/Fingerprint": fingerprint "/containeranalysis:v1/Fingerprint/v1Name": v1_name "/containeranalysis:v1/Fingerprint/v2Blob": v2_blob diff --git a/generated/google-apis-containeranalysis_v1/CHANGELOG.md b/generated/google-apis-containeranalysis_v1/CHANGELOG.md index b8776b95ecb..d51da3da120 100644 --- a/generated/google-apis-containeranalysis_v1/CHANGELOG.md +++ b/generated/google-apis-containeranalysis_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-containeranalysis_v1 +### v0.74.0 (2026-05-17) + +* Regenerated from discovery document revision 20260505 + ### v0.73.0 (2026-05-03) * Regenerated from discovery document revision 20260423 diff --git a/generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_v1/classes.rb b/generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_v1/classes.rb index 95284b4dad1..317d05a363f 100644 --- a/generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_v1/classes.rb +++ b/generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_v1/classes.rb @@ -44,6 +44,11 @@ class AiSkillAnalysisOccurrence # @return [Array] attr_accessor :findings + # Maximum severity found among findings. + # Corresponds to the JSON property `maxSeverity` + # @return [String] + attr_accessor :max_severity + # Name of the skill that produced this analysis. # Corresponds to the JSON property `skillName` # @return [String] @@ -56,6 +61,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @findings = args[:findings] if args.key?(:findings) + @max_severity = args[:max_severity] if args.key?(:max_severity) @skill_name = args[:skill_name] if args.key?(:skill_name) end end @@ -4374,35 +4380,47 @@ class Finding # @return [String] attr_accessor :category - # Detailed description of the finding. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Path to the file where the finding was detected. - # Corresponds to the JSON property `filePath` - # @return [String] - attr_accessor :file_path + # Location details with file path and line number. + # Corresponds to the JSON property `location` + # @return [Google::Apis::ContaineranalysisV1::FindingLocation] + attr_accessor :location - # Unique identifier of the rule that produced this finding. - # Corresponds to the JSON property `ruleId` + # Scanner determines which engine (e.g. static, llm) emitted the finding. + # Corresponds to the JSON property `scanner` # @return [String] - attr_accessor :rule_id + attr_accessor :scanner # Severity of the finding. # Corresponds to the JSON property `severity` # @return [String] attr_accessor :severity - # Code snippet relevant to the finding. - # Corresponds to the JSON property `snippet` - # @return [String] - attr_accessor :snippet + def initialize(**args) + update!(**args) + end - # Title of the finding. - # Corresponds to the JSON property `title` + # Update properties of this object + def update!(**args) + @category = args[:category] if args.key?(:category) + @location = args[:location] if args.key?(:location) + @scanner = args[:scanner] if args.key?(:scanner) + @severity = args[:severity] if args.key?(:severity) + end + end + + # Location details with file path and line number. + class FindingLocation + include Google::Apis::Core::Hashable + + # Relative path of the file containing the finding. + # Corresponds to the JSON property `filePath` # @return [String] - attr_accessor :title + attr_accessor :file_path + + # Line number (1-based), or 0 if whole File / unknown. + # Corresponds to the JSON property `lineNumber` + # @return [Fixnum] + attr_accessor :line_number def initialize(**args) update!(**args) @@ -4410,13 +4428,8 @@ def initialize(**args) # Update properties of this object def update!(**args) - @category = args[:category] if args.key?(:category) - @description = args[:description] if args.key?(:description) @file_path = args[:file_path] if args.key?(:file_path) - @rule_id = args[:rule_id] if args.key?(:rule_id) - @severity = args[:severity] if args.key?(:severity) - @snippet = args[:snippet] if args.key?(:snippet) - @title = args[:title] if args.key?(:title) + @line_number = args[:line_number] if args.key?(:line_number) end end diff --git a/generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_v1/gem_version.rb b/generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_v1/gem_version.rb index 798e254d3bf..2e6e5259e58 100644 --- a/generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_v1/gem_version.rb +++ b/generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ContaineranalysisV1 # Version of the google-apis-containeranalysis_v1 gem - GEM_VERSION = "0.73.0" + GEM_VERSION = "0.74.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20260423" + REVISION = "20260505" end end end diff --git a/generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_v1/representations.rb b/generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_v1/representations.rb index 496148bc607..89a8d47ac67 100644 --- a/generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_v1/representations.rb +++ b/generated/google-apis-containeranalysis_v1/lib/google/apis/containeranalysis_v1/representations.rb @@ -628,6 +628,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class FindingLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Fingerprint class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1179,6 +1185,7 @@ class AiSkillAnalysisOccurrence class Representation < Google::Apis::Core::JsonRepresentation collection :findings, as: 'findings', class: Google::Apis::ContaineranalysisV1::Finding, decorator: Google::Apis::ContaineranalysisV1::Finding::Representation + property :max_severity, as: 'maxSeverity' property :skill_name, as: 'skillName' end end @@ -2301,12 +2308,18 @@ class Finding # @private class Representation < Google::Apis::Core::JsonRepresentation property :category, as: 'category' - property :description, as: 'description' - property :file_path, as: 'filePath' - property :rule_id, as: 'ruleId' + property :location, as: 'location', class: Google::Apis::ContaineranalysisV1::FindingLocation, decorator: Google::Apis::ContaineranalysisV1::FindingLocation::Representation + + property :scanner, as: 'scanner' property :severity, as: 'severity' - property :snippet, as: 'snippet' - property :title, as: 'title' + end + end + + class FindingLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :file_path, as: 'filePath' + property :line_number, :numeric_string => true, as: 'lineNumber' end end