From 599cd60b4dc5324915356bb51be9b14e17a022bd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 17 May 2020 06:17:21 +0200 Subject: [PATCH] chore(deps): update dependency grafeas to v0.4.0 [(#3172)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/3172) * Update dependency grafeas to v0.4.0 * follow the field name changes Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com> Co-authored-by: Takashi Matsuo --- .../samples/snippets/requirements.txt | 2 +- .../samples/snippets/samples.py | 4 ++-- .../samples/snippets/samples_test.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/google-cloud-containeranalysis/samples/snippets/requirements.txt b/packages/google-cloud-containeranalysis/samples/snippets/requirements.txt index 32e0defc4c24..7e7518198bba 100644 --- a/packages/google-cloud-containeranalysis/samples/snippets/requirements.txt +++ b/packages/google-cloud-containeranalysis/samples/snippets/requirements.txt @@ -1,6 +1,6 @@ google-cloud-pubsub==1.4.3 google-cloud-containeranalysis==0.3.1 -grafeas==0.1.0 +grafeas==0.4.0 pytest==5.3.0; python_version > "3.0" pytest==4.6.6; python_version < "3.0" flaky==3.6.1 diff --git a/packages/google-cloud-containeranalysis/samples/snippets/samples.py b/packages/google-cloud-containeranalysis/samples/snippets/samples.py index 2eeda1cae81a..c663e4dac013 100644 --- a/packages/google-cloud-containeranalysis/samples/snippets/samples.py +++ b/packages/google-cloud-containeranalysis/samples/snippets/samples.py @@ -32,7 +32,7 @@ def create_note(note_id, project_id): { 'affected_cpe_uri': 'your-uri-here', 'affected_package': 'your-package-here', - 'min_affected_version': { + 'affected_version_start': { 'kind': Version.VersionKind.MINIMUM }, 'fixed_version': { @@ -88,7 +88,7 @@ def create_occurrence(resource_url, note_id, occurrence_project, note_project): { 'affected_cpe_uri': 'your-uri-here', 'affected_package': 'your-package-here', - 'min_affected_version': { + 'affected_version': { 'kind': Version.VersionKind.MINIMUM }, 'fixed_version': { diff --git a/packages/google-cloud-containeranalysis/samples/snippets/samples_test.py b/packages/google-cloud-containeranalysis/samples/snippets/samples_test.py index a8552e54742b..535544e4265f 100644 --- a/packages/google-cloud-containeranalysis/samples/snippets/samples_test.py +++ b/packages/google-cloud-containeranalysis/samples/snippets/samples_test.py @@ -267,7 +267,7 @@ def test_find_high_severity_vulnerabilities(self): { 'affected_cpe_uri': 'your-uri-here', 'affected_package': 'your-package-here', - 'min_affected_version': { + 'affected_version_start': { 'kind': Version.VersionKind.MINIMUM }, 'fixed_version': { @@ -288,7 +288,7 @@ def test_find_high_severity_vulnerabilities(self): { 'affected_cpe_uri': 'your-uri-here', 'affected_package': 'your-package-here', - 'min_affected_version': { + 'affected_version': { 'kind': Version.VersionKind.MINIMUM }, 'fixed_version': {