@@ -75,14 +75,24 @@ def from_service_account_file(cls, filename, *args, **kwargs):
7575
7676 @classmethod
7777 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+ )
7984 return google .api_core .path_template .expand (
8085 "billingAccounts/{billing_account}" , billing_account = billing_account ,
8186 )
8287
8388 @classmethod
8489 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+ )
8696 return google .api_core .path_template .expand (
8797 "billingAccounts/{billing_account}/exclusions/{exclusion}" ,
8898 billing_account = billing_account ,
@@ -91,7 +101,12 @@ def billing_exclusion_path(cls, billing_account, exclusion):
91101
92102 @classmethod
93103 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+ )
95110 return google .api_core .path_template .expand (
96111 "billingAccounts/{billing_account}/sinks/{sink}" ,
97112 billing_account = billing_account ,
@@ -100,7 +115,12 @@ def billing_sink_path(cls, billing_account, sink):
100115
101116 @classmethod
102117 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+ )
104124 return google .api_core .path_template .expand (
105125 "projects/{project}/exclusions/{exclusion}" ,
106126 project = project ,
@@ -109,12 +129,22 @@ def exclusion_path(cls, project, exclusion):
109129
110130 @classmethod
111131 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+ )
113138 return google .api_core .path_template .expand ("folders/{folder}" , folder = folder ,)
114139
115140 @classmethod
116141 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+ )
118148 return google .api_core .path_template .expand (
119149 "folders/{folder}/exclusions/{exclusion}" ,
120150 folder = folder ,
@@ -123,21 +153,36 @@ def folder_exclusion_path(cls, folder, exclusion):
123153
124154 @classmethod
125155 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+ )
127162 return google .api_core .path_template .expand (
128163 "folders/{folder}/sinks/{sink}" , folder = folder , sink = sink ,
129164 )
130165
131166 @classmethod
132167 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+ )
134174 return google .api_core .path_template .expand (
135175 "organizations/{organization}" , organization = organization ,
136176 )
137177
138178 @classmethod
139179 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+ )
141186 return google .api_core .path_template .expand (
142187 "organizations/{organization}/exclusions/{exclusion}" ,
143188 organization = organization ,
@@ -146,7 +191,12 @@ def organization_exclusion_path(cls, organization, exclusion):
146191
147192 @classmethod
148193 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+ )
150200 return google .api_core .path_template .expand (
151201 "organizations/{organization}/sinks/{sink}" ,
152202 organization = organization ,
@@ -155,14 +205,24 @@ def organization_sink_path(cls, organization, sink):
155205
156206 @classmethod
157207 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+ )
159214 return google .api_core .path_template .expand (
160215 "projects/{project}" , project = project ,
161216 )
162217
163218 @classmethod
164219 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+ )
166226 return google .api_core .path_template .expand (
167227 "projects/{project}/sinks/{sink}" , project = project , sink = sink ,
168228 )
0 commit comments