@@ -86,36 +86,21 @@ def from_service_account_file(cls, filename, *args, **kwargs):
86
86
87
87
@classmethod
88
88
def dlp_job_path (cls , project , dlp_job ):
89
- """DEPRECATED. Return a fully-qualified dlp_job string."""
90
- warnings .warn (
91
- "Resource name helper functions are deprecated." ,
92
- PendingDeprecationWarning ,
93
- stacklevel = 1 ,
94
- )
89
+ """Return a fully-qualified dlp_job string."""
95
90
return google .api_core .path_template .expand (
96
91
"projects/{project}/dlpJobs/{dlp_job}" , project = project , dlp_job = dlp_job
97
92
)
98
93
99
94
@classmethod
100
95
def organization_path (cls , organization ):
101
- """DEPRECATED. Return a fully-qualified organization string."""
102
- warnings .warn (
103
- "Resource name helper functions are deprecated." ,
104
- PendingDeprecationWarning ,
105
- stacklevel = 1 ,
106
- )
96
+ """Return a fully-qualified organization string."""
107
97
return google .api_core .path_template .expand (
108
98
"organizations/{organization}" , organization = organization
109
99
)
110
100
111
101
@classmethod
112
102
def organization_deidentify_template_path (cls , organization , deidentify_template ):
113
- """DEPRECATED. Return a fully-qualified organization_deidentify_template string."""
114
- warnings .warn (
115
- "Resource name helper functions are deprecated." ,
116
- PendingDeprecationWarning ,
117
- stacklevel = 1 ,
118
- )
103
+ """Return a fully-qualified organization_deidentify_template string."""
119
104
return google .api_core .path_template .expand (
120
105
"organizations/{organization}/deidentifyTemplates/{deidentify_template}" ,
121
106
organization = organization ,
@@ -124,12 +109,7 @@ def organization_deidentify_template_path(cls, organization, deidentify_template
124
109
125
110
@classmethod
126
111
def organization_inspect_template_path (cls , organization , inspect_template ):
127
- """DEPRECATED. Return a fully-qualified organization_inspect_template string."""
128
- warnings .warn (
129
- "Resource name helper functions are deprecated." ,
130
- PendingDeprecationWarning ,
131
- stacklevel = 1 ,
132
- )
112
+ """Return a fully-qualified organization_inspect_template string."""
133
113
return google .api_core .path_template .expand (
134
114
"organizations/{organization}/inspectTemplates/{inspect_template}" ,
135
115
organization = organization ,
@@ -138,12 +118,7 @@ def organization_inspect_template_path(cls, organization, inspect_template):
138
118
139
119
@classmethod
140
120
def organization_stored_info_type_path (cls , organization , stored_info_type ):
141
- """DEPRECATED. Return a fully-qualified organization_stored_info_type string."""
142
- warnings .warn (
143
- "Resource name helper functions are deprecated." ,
144
- PendingDeprecationWarning ,
145
- stacklevel = 1 ,
146
- )
121
+ """Return a fully-qualified organization_stored_info_type string."""
147
122
return google .api_core .path_template .expand (
148
123
"organizations/{organization}/storedInfoTypes/{stored_info_type}" ,
149
124
organization = organization ,
@@ -152,24 +127,14 @@ def organization_stored_info_type_path(cls, organization, stored_info_type):
152
127
153
128
@classmethod
154
129
def project_path (cls , project ):
155
- """DEPRECATED. Return a fully-qualified project string."""
156
- warnings .warn (
157
- "Resource name helper functions are deprecated." ,
158
- PendingDeprecationWarning ,
159
- stacklevel = 1 ,
160
- )
130
+ """Return a fully-qualified project string."""
161
131
return google .api_core .path_template .expand (
162
132
"projects/{project}" , project = project
163
133
)
164
134
165
135
@classmethod
166
136
def project_deidentify_template_path (cls , project , deidentify_template ):
167
- """DEPRECATED. Return a fully-qualified project_deidentify_template string."""
168
- warnings .warn (
169
- "Resource name helper functions are deprecated." ,
170
- PendingDeprecationWarning ,
171
- stacklevel = 1 ,
172
- )
137
+ """Return a fully-qualified project_deidentify_template string."""
173
138
return google .api_core .path_template .expand (
174
139
"projects/{project}/deidentifyTemplates/{deidentify_template}" ,
175
140
project = project ,
@@ -178,12 +143,7 @@ def project_deidentify_template_path(cls, project, deidentify_template):
178
143
179
144
@classmethod
180
145
def project_inspect_template_path (cls , project , inspect_template ):
181
- """DEPRECATED. Return a fully-qualified project_inspect_template string."""
182
- warnings .warn (
183
- "Resource name helper functions are deprecated." ,
184
- PendingDeprecationWarning ,
185
- stacklevel = 1 ,
186
- )
146
+ """Return a fully-qualified project_inspect_template string."""
187
147
return google .api_core .path_template .expand (
188
148
"projects/{project}/inspectTemplates/{inspect_template}" ,
189
149
project = project ,
@@ -192,12 +152,7 @@ def project_inspect_template_path(cls, project, inspect_template):
192
152
193
153
@classmethod
194
154
def project_job_trigger_path (cls , project , job_trigger ):
195
- """DEPRECATED. Return a fully-qualified project_job_trigger string."""
196
- warnings .warn (
197
- "Resource name helper functions are deprecated." ,
198
- PendingDeprecationWarning ,
199
- stacklevel = 1 ,
200
- )
155
+ """Return a fully-qualified project_job_trigger string."""
201
156
return google .api_core .path_template .expand (
202
157
"projects/{project}/jobTriggers/{job_trigger}" ,
203
158
project = project ,
@@ -206,12 +161,7 @@ def project_job_trigger_path(cls, project, job_trigger):
206
161
207
162
@classmethod
208
163
def project_stored_info_type_path (cls , project , stored_info_type ):
209
- """DEPRECATED. Return a fully-qualified project_stored_info_type string."""
210
- warnings .warn (
211
- "Resource name helper functions are deprecated." ,
212
- PendingDeprecationWarning ,
213
- stacklevel = 1 ,
214
- )
164
+ """Return a fully-qualified project_stored_info_type string."""
215
165
return google .api_core .path_template .expand (
216
166
"projects/{project}/storedInfoTypes/{stored_info_type}" ,
217
167
project = project ,
0 commit comments