Skip to content

Commit 599cd60

Browse files
renovate-botleahecoleTakashi Matsuo
authored andcommitted
chore(deps): update dependency grafeas to v0.4.0 [(#3172)](GoogleCloudPlatform/python-docs-samples#3172)
* Update dependency grafeas to v0.4.0 * follow the field name changes Co-authored-by: Leah E. Cole <[email protected]> Co-authored-by: Takashi Matsuo <[email protected]>
1 parent 2a2a7b2 commit 599cd60

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/google-cloud-containeranalysis/samples/snippets/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
google-cloud-pubsub==1.4.3
22
google-cloud-containeranalysis==0.3.1
3-
grafeas==0.1.0
3+
grafeas==0.4.0
44
pytest==5.3.0; python_version > "3.0"
55
pytest==4.6.6; python_version < "3.0"
66
flaky==3.6.1

packages/google-cloud-containeranalysis/samples/snippets/samples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def create_note(note_id, project_id):
3232
{
3333
'affected_cpe_uri': 'your-uri-here',
3434
'affected_package': 'your-package-here',
35-
'min_affected_version': {
35+
'affected_version_start': {
3636
'kind': Version.VersionKind.MINIMUM
3737
},
3838
'fixed_version': {
@@ -88,7 +88,7 @@ def create_occurrence(resource_url, note_id, occurrence_project, note_project):
8888
{
8989
'affected_cpe_uri': 'your-uri-here',
9090
'affected_package': 'your-package-here',
91-
'min_affected_version': {
91+
'affected_version': {
9292
'kind': Version.VersionKind.MINIMUM
9393
},
9494
'fixed_version': {

packages/google-cloud-containeranalysis/samples/snippets/samples_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def test_find_high_severity_vulnerabilities(self):
267267
{
268268
'affected_cpe_uri': 'your-uri-here',
269269
'affected_package': 'your-package-here',
270-
'min_affected_version': {
270+
'affected_version_start': {
271271
'kind': Version.VersionKind.MINIMUM
272272
},
273273
'fixed_version': {
@@ -288,7 +288,7 @@ def test_find_high_severity_vulnerabilities(self):
288288
{
289289
'affected_cpe_uri': 'your-uri-here',
290290
'affected_package': 'your-package-here',
291-
'min_affected_version': {
291+
'affected_version': {
292292
'kind': Version.VersionKind.MINIMUM
293293
},
294294
'fixed_version': {

0 commit comments

Comments
 (0)