@@ -90,7 +90,12 @@ def from_service_account_file(cls, filename, *args, **kwargs):
90
90
91
91
@classmethod
92
92
def location_path (cls , project , location ):
93
- """Return a fully-qualified location string."""
93
+ """DEPRECATED. Return a fully-qualified location string."""
94
+ warnings .warn (
95
+ "Resource name helper functions are deprecated." ,
96
+ PendingDeprecationWarning ,
97
+ stacklevel = 1 ,
98
+ )
94
99
return google .api_core .path_template .expand (
95
100
"projects/{project}/locations/{location}" ,
96
101
project = project ,
@@ -99,7 +104,12 @@ def location_path(cls, project, location):
99
104
100
105
@classmethod
101
106
def location_data_source_path (cls , project , location , data_source ):
102
- """Return a fully-qualified location_data_source string."""
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
+ )
103
113
return google .api_core .path_template .expand (
104
114
"projects/{project}/locations/{location}/dataSources/{data_source}" ,
105
115
project = project ,
@@ -109,7 +119,12 @@ def location_data_source_path(cls, project, location, data_source):
109
119
110
120
@classmethod
111
121
def location_run_path (cls , project , location , transfer_config , run ):
112
- """Return a fully-qualified location_run string."""
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
+ )
113
128
return google .api_core .path_template .expand (
114
129
"projects/{project}/locations/{location}/transferConfigs/{transfer_config}/runs/{run}" ,
115
130
project = project ,
@@ -120,7 +135,12 @@ def location_run_path(cls, project, location, transfer_config, run):
120
135
121
136
@classmethod
122
137
def location_transfer_config_path (cls , project , location , transfer_config ):
123
- """Return a fully-qualified location_transfer_config string."""
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
+ )
124
144
return google .api_core .path_template .expand (
125
145
"projects/{project}/locations/{location}/transferConfigs/{transfer_config}" ,
126
146
project = project ,
@@ -130,14 +150,24 @@ def location_transfer_config_path(cls, project, location, transfer_config):
130
150
131
151
@classmethod
132
152
def project_path (cls , project ):
133
- """Return a fully-qualified project string."""
153
+ """DEPRECATED. Return a fully-qualified project string."""
154
+ warnings .warn (
155
+ "Resource name helper functions are deprecated." ,
156
+ PendingDeprecationWarning ,
157
+ stacklevel = 1 ,
158
+ )
134
159
return google .api_core .path_template .expand (
135
160
"projects/{project}" , project = project
136
161
)
137
162
138
163
@classmethod
139
164
def project_data_source_path (cls , project , data_source ):
140
- """Return a fully-qualified project_data_source string."""
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
+ )
141
171
return google .api_core .path_template .expand (
142
172
"projects/{project}/dataSources/{data_source}" ,
143
173
project = project ,
@@ -146,7 +176,12 @@ def project_data_source_path(cls, project, data_source):
146
176
147
177
@classmethod
148
178
def project_run_path (cls , project , transfer_config , run ):
149
- """Return a fully-qualified project_run string."""
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
+ )
150
185
return google .api_core .path_template .expand (
151
186
"projects/{project}/transferConfigs/{transfer_config}/runs/{run}" ,
152
187
project = project ,
@@ -156,7 +191,12 @@ def project_run_path(cls, project, transfer_config, run):
156
191
157
192
@classmethod
158
193
def project_transfer_config_path (cls , project , transfer_config ):
159
- """Return a fully-qualified project_transfer_config string."""
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
+ )
160
200
return google .api_core .path_template .expand (
161
201
"projects/{project}/transferConfigs/{transfer_config}" ,
162
202
project = project ,
0 commit comments