@@ -67,14 +67,24 @@ class GrafeasClient(object):
6767
6868 @classmethod
6969 def note_path (cls , project , note ):
70- """Return a fully-qualified note string."""
70+ """DEPRECATED. Return a fully-qualified note string."""
71+ warnings .warn (
72+ "Resource name helper functions are deprecated." ,
73+ PendingDeprecationWarning ,
74+ stacklevel = 1 ,
75+ )
7176 return google .api_core .path_template .expand (
7277 "projects/{project}/notes/{note}" , project = project , note = note ,
7378 )
7479
7580 @classmethod
7681 def occurrence_path (cls , project , occurrence ):
77- """Return a fully-qualified occurrence string."""
82+ """DEPRECATED. Return a fully-qualified occurrence string."""
83+ warnings .warn (
84+ "Resource name helper functions are deprecated." ,
85+ PendingDeprecationWarning ,
86+ stacklevel = 1 ,
87+ )
7888 return google .api_core .path_template .expand (
7989 "projects/{project}/occurrences/{occurrence}" ,
8090 project = project ,
@@ -83,7 +93,12 @@ def occurrence_path(cls, project, occurrence):
8393
8494 @classmethod
8595 def project_path (cls , project ):
86- """Return a fully-qualified project string."""
96+ """DEPRECATED. Return a fully-qualified project string."""
97+ warnings .warn (
98+ "Resource name helper functions are deprecated." ,
99+ PendingDeprecationWarning ,
100+ stacklevel = 1 ,
101+ )
87102 return google .api_core .path_template .expand (
88103 "projects/{project}" , project = project ,
89104 )
0 commit comments