@@ -90,12 +90,7 @@ def from_service_account_file(cls, filename, *args, **kwargs):
90
90
91
91
@classmethod
92
92
def annotated_dataset_path (cls , project , dataset , annotated_dataset ):
93
- """DEPRECATED. Return a fully-qualified annotated_dataset string."""
94
- warnings .warn (
95
- "Resource name helper functions are deprecated." ,
96
- PendingDeprecationWarning ,
97
- stacklevel = 1 ,
98
- )
93
+ """Return a fully-qualified annotated_dataset string."""
99
94
return google .api_core .path_template .expand (
100
95
"projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}" ,
101
96
project = project ,
@@ -105,12 +100,7 @@ def annotated_dataset_path(cls, project, dataset, annotated_dataset):
105
100
106
101
@classmethod
107
102
def annotation_spec_set_path (cls , project , annotation_spec_set ):
108
- """DEPRECATED. Return a fully-qualified annotation_spec_set string."""
109
- warnings .warn (
110
- "Resource name helper functions are deprecated." ,
111
- PendingDeprecationWarning ,
112
- stacklevel = 1 ,
113
- )
103
+ """Return a fully-qualified annotation_spec_set string."""
114
104
return google .api_core .path_template .expand (
115
105
"projects/{project}/annotationSpecSets/{annotation_spec_set}" ,
116
106
project = project ,
@@ -119,12 +109,7 @@ def annotation_spec_set_path(cls, project, annotation_spec_set):
119
109
120
110
@classmethod
121
111
def data_item_path (cls , project , dataset , data_item ):
122
- """DEPRECATED. Return a fully-qualified data_item string."""
123
- warnings .warn (
124
- "Resource name helper functions are deprecated." ,
125
- PendingDeprecationWarning ,
126
- stacklevel = 1 ,
127
- )
112
+ """Return a fully-qualified data_item string."""
128
113
return google .api_core .path_template .expand (
129
114
"projects/{project}/datasets/{dataset}/dataItems/{data_item}" ,
130
115
project = project ,
@@ -134,24 +119,14 @@ def data_item_path(cls, project, dataset, data_item):
134
119
135
120
@classmethod
136
121
def dataset_path (cls , project , dataset ):
137
- """DEPRECATED. Return a fully-qualified dataset string."""
138
- warnings .warn (
139
- "Resource name helper functions are deprecated." ,
140
- PendingDeprecationWarning ,
141
- stacklevel = 1 ,
142
- )
122
+ """Return a fully-qualified dataset string."""
143
123
return google .api_core .path_template .expand (
144
124
"projects/{project}/datasets/{dataset}" , project = project , dataset = dataset
145
125
)
146
126
147
127
@classmethod
148
128
def evaluation_path (cls , project , dataset , evaluation ):
149
- """DEPRECATED. Return a fully-qualified evaluation string."""
150
- warnings .warn (
151
- "Resource name helper functions are deprecated." ,
152
- PendingDeprecationWarning ,
153
- stacklevel = 1 ,
154
- )
129
+ """Return a fully-qualified evaluation string."""
155
130
return google .api_core .path_template .expand (
156
131
"projects/{project}/datasets/{dataset}/evaluations/{evaluation}" ,
157
132
project = project ,
@@ -161,12 +136,7 @@ def evaluation_path(cls, project, dataset, evaluation):
161
136
162
137
@classmethod
163
138
def evaluation_job_path (cls , project , evaluation_job ):
164
- """DEPRECATED. Return a fully-qualified evaluation_job string."""
165
- warnings .warn (
166
- "Resource name helper functions are deprecated." ,
167
- PendingDeprecationWarning ,
168
- stacklevel = 1 ,
169
- )
139
+ """Return a fully-qualified evaluation_job string."""
170
140
return google .api_core .path_template .expand (
171
141
"projects/{project}/evaluationJobs/{evaluation_job}" ,
172
142
project = project ,
@@ -175,12 +145,7 @@ def evaluation_job_path(cls, project, evaluation_job):
175
145
176
146
@classmethod
177
147
def example_path (cls , project , dataset , annotated_dataset , example ):
178
- """DEPRECATED. Return a fully-qualified example string."""
179
- warnings .warn (
180
- "Resource name helper functions are deprecated." ,
181
- PendingDeprecationWarning ,
182
- stacklevel = 1 ,
183
- )
148
+ """Return a fully-qualified example string."""
184
149
return google .api_core .path_template .expand (
185
150
"projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}/examples/{example}" ,
186
151
project = project ,
@@ -191,12 +156,7 @@ def example_path(cls, project, dataset, annotated_dataset, example):
191
156
192
157
@classmethod
193
158
def instruction_path (cls , project , instruction ):
194
- """DEPRECATED. Return a fully-qualified instruction string."""
195
- warnings .warn (
196
- "Resource name helper functions are deprecated." ,
197
- PendingDeprecationWarning ,
198
- stacklevel = 1 ,
199
- )
159
+ """Return a fully-qualified instruction string."""
200
160
return google .api_core .path_template .expand (
201
161
"projects/{project}/instructions/{instruction}" ,
202
162
project = project ,
@@ -205,12 +165,7 @@ def instruction_path(cls, project, instruction):
205
165
206
166
@classmethod
207
167
def project_path (cls , project ):
208
- """DEPRECATED. Return a fully-qualified project string."""
209
- warnings .warn (
210
- "Resource name helper functions are deprecated." ,
211
- PendingDeprecationWarning ,
212
- stacklevel = 1 ,
213
- )
168
+ """Return a fully-qualified project string."""
214
169
return google .api_core .path_template .expand (
215
170
"projects/{project}" , project = project
216
171
)
0 commit comments