1
1
# -*- coding: utf-8 -*-
2
2
#
3
- # Copyright 2019 Google LLC
3
+ # Copyright 2020 Google LLC
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
@@ -90,12 +90,7 @@ def from_service_account_file(cls, filename, *args, **kwargs):
90
90
91
91
@classmethod
92
92
def location_path (cls , project , location ):
93
- """DEPRECATED. Return a fully-qualified location string."""
94
- warnings .warn (
95
- "Resource name helper functions are deprecated." ,
96
- PendingDeprecationWarning ,
97
- stacklevel = 1 ,
98
- )
93
+ """Return a fully-qualified location string."""
99
94
return google .api_core .path_template .expand (
100
95
"projects/{project}/locations/{location}" ,
101
96
project = project ,
@@ -104,12 +99,7 @@ def location_path(cls, project, location):
104
99
105
100
@classmethod
106
101
def location_data_source_path (cls , project , location , data_source ):
107
- """DEPRECATED. Return a fully-qualified location_data_source string."""
108
- warnings .warn (
109
- "Resource name helper functions are deprecated." ,
110
- PendingDeprecationWarning ,
111
- stacklevel = 1 ,
112
- )
102
+ """Return a fully-qualified location_data_source string."""
113
103
return google .api_core .path_template .expand (
114
104
"projects/{project}/locations/{location}/dataSources/{data_source}" ,
115
105
project = project ,
@@ -119,12 +109,7 @@ def location_data_source_path(cls, project, location, data_source):
119
109
120
110
@classmethod
121
111
def location_run_path (cls , project , location , transfer_config , run ):
122
- """DEPRECATED. Return a fully-qualified location_run string."""
123
- warnings .warn (
124
- "Resource name helper functions are deprecated." ,
125
- PendingDeprecationWarning ,
126
- stacklevel = 1 ,
127
- )
112
+ """Return a fully-qualified location_run string."""
128
113
return google .api_core .path_template .expand (
129
114
"projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}" ,
130
115
project = project ,
@@ -135,12 +120,7 @@ def location_run_path(cls, project, location, transfer_config, run):
135
120
136
121
@classmethod
137
122
def location_transfer_config_path (cls , project , location , transfer_config ):
138
- """DEPRECATED. Return a fully-qualified location_transfer_config string."""
139
- warnings .warn (
140
- "Resource name helper functions are deprecated." ,
141
- PendingDeprecationWarning ,
142
- stacklevel = 1 ,
143
- )
123
+ """Return a fully-qualified location_transfer_config string."""
144
124
return google .api_core .path_template .expand (
145
125
"projects/{project}/locations/{location}/transferConfigs/{transfer_config}" ,
146
126
project = project ,
@@ -150,24 +130,14 @@ def location_transfer_config_path(cls, project, location, transfer_config):
150
130
151
131
@classmethod
152
132
def project_path (cls , project ):
153
- """DEPRECATED. Return a fully-qualified project string."""
154
- warnings .warn (
155
- "Resource name helper functions are deprecated." ,
156
- PendingDeprecationWarning ,
157
- stacklevel = 1 ,
158
- )
133
+ """Return a fully-qualified project string."""
159
134
return google .api_core .path_template .expand (
160
135
"projects/{project}" , project = project
161
136
)
162
137
163
138
@classmethod
164
139
def project_data_source_path (cls , project , data_source ):
165
- """DEPRECATED. Return a fully-qualified project_data_source string."""
166
- warnings .warn (
167
- "Resource name helper functions are deprecated." ,
168
- PendingDeprecationWarning ,
169
- stacklevel = 1 ,
170
- )
140
+ """Return a fully-qualified project_data_source string."""
171
141
return google .api_core .path_template .expand (
172
142
"projects/{project}/dataSources/{data_source}" ,
173
143
project = project ,
@@ -176,12 +146,7 @@ def project_data_source_path(cls, project, data_source):
176
146
177
147
@classmethod
178
148
def project_run_path (cls , project , transfer_config , run ):
179
- """DEPRECATED. Return a fully-qualified project_run string."""
180
- warnings .warn (
181
- "Resource name helper functions are deprecated." ,
182
- PendingDeprecationWarning ,
183
- stacklevel = 1 ,
184
- )
149
+ """Return a fully-qualified project_run string."""
185
150
return google .api_core .path_template .expand (
186
151
"projects/{project}/transferConfigs/{transfer_config}/runs/{run}" ,
187
152
project = project ,
@@ -191,12 +156,7 @@ def project_run_path(cls, project, transfer_config, run):
191
156
192
157
@classmethod
193
158
def project_transfer_config_path (cls , project , transfer_config ):
194
- """DEPRECATED. Return a fully-qualified project_transfer_config string."""
195
- warnings .warn (
196
- "Resource name helper functions are deprecated." ,
197
- PendingDeprecationWarning ,
198
- stacklevel = 1 ,
199
- )
159
+ """Return a fully-qualified project_transfer_config string."""
200
160
return google .api_core .path_template .expand (
201
161
"projects/{project}/transferConfigs/{transfer_config}" ,
202
162
project = project ,
0 commit comments