@@ -83,7 +83,12 @@ def from_service_account_file(cls, filename, *args, **kwargs):
83
83
84
84
@classmethod
85
85
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
+ )
87
92
return google .api_core .path_template .expand (
88
93
"projects/{project}/locations/{location}" ,
89
94
project = project ,
@@ -92,14 +97,24 @@ def location_path(cls, project, location):
92
97
93
98
@classmethod
94
99
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
+ )
96
106
return google .api_core .path_template .expand (
97
107
"projects/{project}" , project = project
98
108
)
99
109
100
110
@classmethod
101
111
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
+ )
103
118
return google .api_core .path_template .expand (
104
119
"projects/{project}/locations/{location}/queues/{queue}" ,
105
120
project = project ,
@@ -109,7 +124,12 @@ def queue_path(cls, project, location, queue):
109
124
110
125
@classmethod
111
126
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
+ )
113
133
return google .api_core .path_template .expand (
114
134
"projects/{project}/locations/{location}/queues/{queue}/tasks/{task}" ,
115
135
project = project ,
0 commit comments