@@ -75,14 +75,24 @@ def from_service_account_file(cls, filename, *args, **kwargs):
@classmethod
def billing_path (cls , billing_account ):
"""Return a fully-qualified billing string."""
"""DEPRECATED. Return a fully-qualified billing string."""
warnings .warn (
"Resource name helper functions are deprecated." ,
PendingDeprecationWarning ,
stacklevel = 1 ,
)
return google .api_core .path_template .expand (
"billingAccounts/{billing_account}" , billing_account = billing_account ,
)
@classmethod
def billing_exclusion_path (cls , billing_account , exclusion ):
"""Return a fully-qualified billing_exclusion string."""
"""DEPRECATED. Return a fully-qualified billing_exclusion string."""
warnings .warn (
"Resource name helper functions are deprecated." ,
PendingDeprecationWarning ,
stacklevel = 1 ,
)
return google .api_core .path_template .expand (
"billingAccounts/{billing_account}/exclusions/{exclusion}" ,
billing_account = billing_account ,
@@ -91,7 +101,12 @@ def billing_exclusion_path(cls, billing_account, exclusion):
@classmethod
def billing_sink_path (cls , billing_account , sink ):
"""Return a fully-qualified billing_sink string."""
"""DEPRECATED. Return a fully-qualified billing_sink string."""
warnings .warn (
"Resource name helper functions are deprecated." ,
PendingDeprecationWarning ,
stacklevel = 1 ,
)
return google .api_core .path_template .expand (
"billingAccounts/{billing_account}/sinks/{sink}" ,
billing_account = billing_account ,
@@ -100,7 +115,12 @@ def billing_sink_path(cls, billing_account, sink):
@classmethod
def exclusion_path (cls , project , exclusion ):
"""Return a fully-qualified exclusion string."""
"""DEPRECATED. Return a fully-qualified exclusion string."""
warnings .warn (
"Resource name helper functions are deprecated." ,
PendingDeprecationWarning ,
stacklevel = 1 ,
)
return google .api_core .path_template .expand (
"projects/{project}/exclusions/{exclusion}" ,
project = project ,
@@ -109,12 +129,22 @@ def exclusion_path(cls, project, exclusion):
@classmethod
def folder_path (cls , folder ):
"""Return a fully-qualified folder string."""
"""DEPRECATED. Return a fully-qualified folder string."""
warnings .warn (
"Resource name helper functions are deprecated." ,
PendingDeprecationWarning ,
stacklevel = 1 ,
)
return google .api_core .path_template .expand ("folders/{folder}" , folder = folder ,)
@classmethod
def folder_exclusion_path (cls , folder , exclusion ):
"""Return a fully-qualified folder_exclusion string."""
"""DEPRECATED. Return a fully-qualified folder_exclusion string."""
warnings .warn (
"Resource name helper functions are deprecated." ,
PendingDeprecationWarning ,
stacklevel = 1 ,
)
return google .api_core .path_template .expand (
"folders/{folder}/exclusions/{exclusion}" ,
folder = folder ,
@@ -123,21 +153,36 @@ def folder_exclusion_path(cls, folder, exclusion):
@classmethod
def folder_sink_path (cls , folder , sink ):
"""Return a fully-qualified folder_sink string."""
"""DEPRECATED. Return a fully-qualified folder_sink string."""
warnings .warn (
"Resource name helper functions are deprecated." ,
PendingDeprecationWarning ,
stacklevel = 1 ,
)
return google .api_core .path_template .expand (
"folders/{folder}/sinks/{sink}" , folder = folder , sink = sink ,
)
@classmethod
def organization_path (cls , organization ):
"""Return a fully-qualified organization string."""
"""DEPRECATED. Return a fully-qualified organization string."""
warnings .warn (
"Resource name helper functions are deprecated." ,
PendingDeprecationWarning ,
stacklevel = 1 ,
)
return google .api_core .path_template .expand (
"organizations/{organization}" , organization = organization ,
)
@classmethod
def organization_exclusion_path (cls , organization , exclusion ):
"""Return a fully-qualified organization_exclusion string."""
"""DEPRECATED. Return a fully-qualified organization_exclusion string."""
warnings .warn (
"Resource name helper functions are deprecated." ,
PendingDeprecationWarning ,
stacklevel = 1 ,
)
return google .api_core .path_template .expand (
"organizations/{organization}/exclusions/{exclusion}" ,
organization = organization ,
@@ -146,7 +191,12 @@ def organization_exclusion_path(cls, organization, exclusion):
@classmethod
def organization_sink_path (cls , organization , sink ):
"""Return a fully-qualified organization_sink string."""
"""DEPRECATED. Return a fully-qualified organization_sink string."""
warnings .warn (
"Resource name helper functions are deprecated." ,
PendingDeprecationWarning ,
stacklevel = 1 ,
)
return google .api_core .path_template .expand (
"organizations/{organization}/sinks/{sink}" ,
organization = organization ,
@@ -155,14 +205,24 @@ def organization_sink_path(cls, organization, sink):
@classmethod
def project_path (cls , project ):
"""Return a fully-qualified project string."""
"""DEPRECATED. Return a fully-qualified project string."""
warnings .warn (
"Resource name helper functions are deprecated." ,
PendingDeprecationWarning ,
stacklevel = 1 ,
)
return google .api_core .path_template .expand (
"projects/{project}" , project = project ,
)
@classmethod
def sink_path (cls , project , sink ):
"""Return a fully-qualified sink string."""
"""DEPRECATED. Return a fully-qualified sink string."""
warnings .warn (
"Resource name helper functions are deprecated." ,
PendingDeprecationWarning ,
stacklevel = 1 ,
)
return google .api_core .path_template .expand (
"projects/{project}/sinks/{sink}" , project = project , sink = sink ,
)