Skip to content
Permalink
Browse files

fix: remove deprecations from path helpers (#9)

  • Loading branch information
sethvargo authored and busunkim96 committed Jan 6, 2020
1 parent 18ef8ba commit 723ef9fb59f86e434fb6c9fcb5857bdd492358f6
Showing with 3 additions and 18 deletions.
  1. +3 −18 google/cloud/secretmanager_v1beta1/gapic/secret_manager_service_client.py
@@ -93,36 +93,21 @@ def from_service_account_file(cls, filename, *args, **kwargs):

@classmethod
def project_path(cls, project):
"""DEPRECATED. Return a fully-qualified project string."""
warnings.warn(
"Resource name helper functions are deprecated.",
PendingDeprecationWarning,
stacklevel=1,
)
"""Return a fully-qualified project string."""
return google.api_core.path_template.expand(
"projects/{project}", project=project
)

@classmethod
def secret_path(cls, project, secret):
"""DEPRECATED. Return a fully-qualified secret string."""
warnings.warn(
"Resource name helper functions are deprecated.",
PendingDeprecationWarning,
stacklevel=1,
)
"""Return a fully-qualified secret string."""
return google.api_core.path_template.expand(
"projects/{project}/secrets/{secret}", project=project, secret=secret
)

@classmethod
def secret_version_path(cls, project, secret, secret_version):
"""DEPRECATED. Return a fully-qualified secret_version string."""
warnings.warn(
"Resource name helper functions are deprecated.",
PendingDeprecationWarning,
stacklevel=1,
)
"""Return a fully-qualified secret_version string."""
return google.api_core.path_template.expand(
"projects/{project}/secrets/{secret}/versions/{secret_version}",
project=project,

0 comments on commit 723ef9f

Please sign in to comment.
You can’t perform that action at this time.