@@ -83,7 +83,12 @@ def from_service_account_file(cls, filename, *args, **kwargs):
8383
8484 @classmethod
8585 def location_path (cls , project , location ):
86- """Return a fully-qualified location string."""
86+ """DEPRECATED. Return a fully-qualified location string."""
87+ warnings .warn (
88+ "Resource name helper functions are deprecated." ,
89+ PendingDeprecationWarning ,
90+ stacklevel = 1 ,
91+ )
8792 return google .api_core .path_template .expand (
8893 "projects/{project}/locations/{location}" ,
8994 project = project ,
@@ -92,14 +97,24 @@ def location_path(cls, project, location):
9297
9398 @classmethod
9499 def project_path (cls , project ):
95- """Return a fully-qualified project string."""
100+ """DEPRECATED. Return a fully-qualified project string."""
101+ warnings .warn (
102+ "Resource name helper functions are deprecated." ,
103+ PendingDeprecationWarning ,
104+ stacklevel = 1 ,
105+ )
96106 return google .api_core .path_template .expand (
97107 "projects/{project}" , project = project
98108 )
99109
100110 @classmethod
101111 def queue_path (cls , project , location , queue ):
102- """Return a fully-qualified queue string."""
112+ """DEPRECATED. Return a fully-qualified queue string."""
113+ warnings .warn (
114+ "Resource name helper functions are deprecated." ,
115+ PendingDeprecationWarning ,
116+ stacklevel = 1 ,
117+ )
103118 return google .api_core .path_template .expand (
104119 "projects/{project}/locations/{location}/queues/{queue}" ,
105120 project = project ,
@@ -109,7 +124,12 @@ def queue_path(cls, project, location, queue):
109124
110125 @classmethod
111126 def task_path (cls , project , location , queue , task ):
112- """Return a fully-qualified task string."""
127+ """DEPRECATED. Return a fully-qualified task string."""
128+ warnings .warn (
129+ "Resource name helper functions are deprecated." ,
130+ PendingDeprecationWarning ,
131+ stacklevel = 1 ,
132+ )
113133 return google .api_core .path_template .expand (
114134 "projects/{project}/locations/{location}/queues/{queue}/tasks/{task}" ,
115135 project = project ,
0 commit comments