@@ -75,14 +75,24 @@ def from_service_account_file(cls, filename, *args, **kwargs):
75
75
76
76
@classmethod
77
77
def billing_path (cls , billing_account ):
78
- """Return a fully-qualified billing string."""
78
+ """DEPRECATED. Return a fully-qualified billing string."""
79
+ warnings .warn (
80
+ "Resource name helper functions are deprecated." ,
81
+ PendingDeprecationWarning ,
82
+ stacklevel = 1 ,
83
+ )
79
84
return google .api_core .path_template .expand (
80
85
"billingAccounts/{billing_account}" , billing_account = billing_account ,
81
86
)
82
87
83
88
@classmethod
84
89
def billing_exclusion_path (cls , billing_account , exclusion ):
85
- """Return a fully-qualified billing_exclusion string."""
90
+ """DEPRECATED. Return a fully-qualified billing_exclusion string."""
91
+ warnings .warn (
92
+ "Resource name helper functions are deprecated." ,
93
+ PendingDeprecationWarning ,
94
+ stacklevel = 1 ,
95
+ )
86
96
return google .api_core .path_template .expand (
87
97
"billingAccounts/{billing_account}/exclusions/{exclusion}" ,
88
98
billing_account = billing_account ,
@@ -91,7 +101,12 @@ def billing_exclusion_path(cls, billing_account, exclusion):
91
101
92
102
@classmethod
93
103
def billing_sink_path (cls , billing_account , sink ):
94
- """Return a fully-qualified billing_sink string."""
104
+ """DEPRECATED. Return a fully-qualified billing_sink string."""
105
+ warnings .warn (
106
+ "Resource name helper functions are deprecated." ,
107
+ PendingDeprecationWarning ,
108
+ stacklevel = 1 ,
109
+ )
95
110
return google .api_core .path_template .expand (
96
111
"billingAccounts/{billing_account}/sinks/{sink}" ,
97
112
billing_account = billing_account ,
@@ -100,7 +115,12 @@ def billing_sink_path(cls, billing_account, sink):
100
115
101
116
@classmethod
102
117
def exclusion_path (cls , project , exclusion ):
103
- """Return a fully-qualified exclusion string."""
118
+ """DEPRECATED. Return a fully-qualified exclusion string."""
119
+ warnings .warn (
120
+ "Resource name helper functions are deprecated." ,
121
+ PendingDeprecationWarning ,
122
+ stacklevel = 1 ,
123
+ )
104
124
return google .api_core .path_template .expand (
105
125
"projects/{project}/exclusions/{exclusion}" ,
106
126
project = project ,
@@ -109,12 +129,22 @@ def exclusion_path(cls, project, exclusion):
109
129
110
130
@classmethod
111
131
def folder_path (cls , folder ):
112
- """Return a fully-qualified folder string."""
132
+ """DEPRECATED. Return a fully-qualified folder string."""
133
+ warnings .warn (
134
+ "Resource name helper functions are deprecated." ,
135
+ PendingDeprecationWarning ,
136
+ stacklevel = 1 ,
137
+ )
113
138
return google .api_core .path_template .expand ("folders/{folder}" , folder = folder ,)
114
139
115
140
@classmethod
116
141
def folder_exclusion_path (cls , folder , exclusion ):
117
- """Return a fully-qualified folder_exclusion string."""
142
+ """DEPRECATED. Return a fully-qualified folder_exclusion string."""
143
+ warnings .warn (
144
+ "Resource name helper functions are deprecated." ,
145
+ PendingDeprecationWarning ,
146
+ stacklevel = 1 ,
147
+ )
118
148
return google .api_core .path_template .expand (
119
149
"folders/{folder}/exclusions/{exclusion}" ,
120
150
folder = folder ,
@@ -123,21 +153,36 @@ def folder_exclusion_path(cls, folder, exclusion):
123
153
124
154
@classmethod
125
155
def folder_sink_path (cls , folder , sink ):
126
- """Return a fully-qualified folder_sink string."""
156
+ """DEPRECATED. Return a fully-qualified folder_sink string."""
157
+ warnings .warn (
158
+ "Resource name helper functions are deprecated." ,
159
+ PendingDeprecationWarning ,
160
+ stacklevel = 1 ,
161
+ )
127
162
return google .api_core .path_template .expand (
128
163
"folders/{folder}/sinks/{sink}" , folder = folder , sink = sink ,
129
164
)
130
165
131
166
@classmethod
132
167
def organization_path (cls , organization ):
133
- """Return a fully-qualified organization string."""
168
+ """DEPRECATED. Return a fully-qualified organization string."""
169
+ warnings .warn (
170
+ "Resource name helper functions are deprecated." ,
171
+ PendingDeprecationWarning ,
172
+ stacklevel = 1 ,
173
+ )
134
174
return google .api_core .path_template .expand (
135
175
"organizations/{organization}" , organization = organization ,
136
176
)
137
177
138
178
@classmethod
139
179
def organization_exclusion_path (cls , organization , exclusion ):
140
- """Return a fully-qualified organization_exclusion string."""
180
+ """DEPRECATED. Return a fully-qualified organization_exclusion string."""
181
+ warnings .warn (
182
+ "Resource name helper functions are deprecated." ,
183
+ PendingDeprecationWarning ,
184
+ stacklevel = 1 ,
185
+ )
141
186
return google .api_core .path_template .expand (
142
187
"organizations/{organization}/exclusions/{exclusion}" ,
143
188
organization = organization ,
@@ -146,7 +191,12 @@ def organization_exclusion_path(cls, organization, exclusion):
146
191
147
192
@classmethod
148
193
def organization_sink_path (cls , organization , sink ):
149
- """Return a fully-qualified organization_sink string."""
194
+ """DEPRECATED. Return a fully-qualified organization_sink string."""
195
+ warnings .warn (
196
+ "Resource name helper functions are deprecated." ,
197
+ PendingDeprecationWarning ,
198
+ stacklevel = 1 ,
199
+ )
150
200
return google .api_core .path_template .expand (
151
201
"organizations/{organization}/sinks/{sink}" ,
152
202
organization = organization ,
@@ -155,14 +205,24 @@ def organization_sink_path(cls, organization, sink):
155
205
156
206
@classmethod
157
207
def project_path (cls , project ):
158
- """Return a fully-qualified project string."""
208
+ """DEPRECATED. Return a fully-qualified project string."""
209
+ warnings .warn (
210
+ "Resource name helper functions are deprecated." ,
211
+ PendingDeprecationWarning ,
212
+ stacklevel = 1 ,
213
+ )
159
214
return google .api_core .path_template .expand (
160
215
"projects/{project}" , project = project ,
161
216
)
162
217
163
218
@classmethod
164
219
def sink_path (cls , project , sink ):
165
- """Return a fully-qualified sink string."""
220
+ """DEPRECATED. Return a fully-qualified sink string."""
221
+ warnings .warn (
222
+ "Resource name helper functions are deprecated." ,
223
+ PendingDeprecationWarning ,
224
+ stacklevel = 1 ,
225
+ )
166
226
return google .api_core .path_template .expand (
167
227
"projects/{project}/sinks/{sink}" , project = project , sink = sink ,
168
228
)
0 commit comments