@@ -103,12 +103,7 @@ def from_service_account_file(cls, filename, *args, **kwargs):
103103
104104 @classmethod
105105 def annotation_spec_path (cls , project , location , dataset , annotation_spec ):
106- """DEPRECATED. Return a fully-qualified annotation_spec string."""
107- warnings .warn (
108- "Resource name helper functions are deprecated." ,
109- PendingDeprecationWarning ,
110- stacklevel = 1 ,
111- )
106+ """Return a fully-qualified annotation_spec string."""
112107 return google .api_core .path_template .expand (
113108 "projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}" ,
114109 project = project ,
@@ -119,12 +114,7 @@ def annotation_spec_path(cls, project, location, dataset, annotation_spec):
119114
120115 @classmethod
121116 def column_spec_path (cls , project , location , dataset , table_spec , column_spec ):
122- """DEPRECATED. Return a fully-qualified column_spec string."""
123- warnings .warn (
124- "Resource name helper functions are deprecated." ,
125- PendingDeprecationWarning ,
126- stacklevel = 1 ,
127- )
117+ """Return a fully-qualified column_spec string."""
128118 return google .api_core .path_template .expand (
129119 "projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}/columnSpecs/{column_spec}" ,
130120 project = project ,
@@ -136,12 +126,7 @@ def column_spec_path(cls, project, location, dataset, table_spec, column_spec):
136126
137127 @classmethod
138128 def dataset_path (cls , project , location , dataset ):
139- """DEPRECATED. Return a fully-qualified dataset string."""
140- warnings .warn (
141- "Resource name helper functions are deprecated." ,
142- PendingDeprecationWarning ,
143- stacklevel = 1 ,
144- )
129+ """Return a fully-qualified dataset string."""
145130 return google .api_core .path_template .expand (
146131 "projects/{project}/locations/{location}/datasets/{dataset}" ,
147132 project = project ,
@@ -151,12 +136,7 @@ def dataset_path(cls, project, location, dataset):
151136
152137 @classmethod
153138 def location_path (cls , project , location ):
154- """DEPRECATED. Return a fully-qualified location string."""
155- warnings .warn (
156- "Resource name helper functions are deprecated." ,
157- PendingDeprecationWarning ,
158- stacklevel = 1 ,
159- )
139+ """Return a fully-qualified location string."""
160140 return google .api_core .path_template .expand (
161141 "projects/{project}/locations/{location}" ,
162142 project = project ,
@@ -165,12 +145,7 @@ def location_path(cls, project, location):
165145
166146 @classmethod
167147 def model_path (cls , project , location , model ):
168- """DEPRECATED. Return a fully-qualified model string."""
169- warnings .warn (
170- "Resource name helper functions are deprecated." ,
171- PendingDeprecationWarning ,
172- stacklevel = 1 ,
173- )
148+ """Return a fully-qualified model string."""
174149 return google .api_core .path_template .expand (
175150 "projects/{project}/locations/{location}/models/{model}" ,
176151 project = project ,
@@ -180,12 +155,7 @@ def model_path(cls, project, location, model):
180155
181156 @classmethod
182157 def model_evaluation_path (cls , project , location , model , model_evaluation ):
183- """DEPRECATED. Return a fully-qualified model_evaluation string."""
184- warnings .warn (
185- "Resource name helper functions are deprecated." ,
186- PendingDeprecationWarning ,
187- stacklevel = 1 ,
188- )
158+ """Return a fully-qualified model_evaluation string."""
189159 return google .api_core .path_template .expand (
190160 "projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}" ,
191161 project = project ,
@@ -196,12 +166,7 @@ def model_evaluation_path(cls, project, location, model, model_evaluation):
196166
197167 @classmethod
198168 def table_spec_path (cls , project , location , dataset , table_spec ):
199- """DEPRECATED. Return a fully-qualified table_spec string."""
200- warnings .warn (
201- "Resource name helper functions are deprecated." ,
202- PendingDeprecationWarning ,
203- stacklevel = 1 ,
204- )
169+ """Return a fully-qualified table_spec string."""
205170 return google .api_core .path_template .expand (
206171 "projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}" ,
207172 project = project ,
0 commit comments