From b5e2f472f86735ad89ead9c5997e0d17cb447e23 Mon Sep 17 00:00:00 2001 From: Luke Voelz Date: Wed, 8 Oct 2025 13:57:41 -0500 Subject: [PATCH] Update sample.rb Update sample.rb to use attestation instead of vulnerability, in line with go/aa-deprecate-3p-metadata. --- google-cloud-container_analysis/samples/sample.rb | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/google-cloud-container_analysis/samples/sample.rb b/google-cloud-container_analysis/samples/sample.rb index fb89c32aab8c..de8ef4848773 100644 --- a/google-cloud-container_analysis/samples/sample.rb +++ b/google-cloud-container_analysis/samples/sample.rb @@ -25,15 +25,10 @@ def create_note note_id:, project_id: parent = client.project_path project: project_id note = { - vulnerability: { - details: [ - { - affected_cpe_uri: "your-uri-here", - affected_package: "your-package-here", - affected_version_start: { kind: :MINIMUM }, - fixed_version: { kind: :MAXIMUM } - } - ] + attestation: { + hint: { + human_readable_name: "my-attestation-authority" + } } } response = client.create_note parent: parent, note_id: note_id, note: note