Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
fix: re-add crypto_key_path_path method
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed Apr 14, 2020
1 parent 3c00faf commit 9852b1a
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 222 deletions.
12 changes: 12 additions & 0 deletions google/cloud/kms_v1/gapic/key_management_service_client.py
Expand Up @@ -102,10 +102,22 @@ def crypto_key_path(cls, project, location, key_ring, crypto_key):
crypto_key=crypto_key,
)

@classmethod
def crypto_key_path_path(cls, project, location, key_ring, crypto_key_path):
"""Return a fully-qualified crypto_key_path string."""
return google.api_core.path_template.expand(
"projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key_path=**}",
project=project,
location=location,
key_ring=key_ring,
crypto_key_path=crypto_key_path,
)

@classmethod
def crypto_key_version_path(
cls, project, location, key_ring, crypto_key, crypto_key_version
):

"""Return a fully-qualified crypto_key_version string."""
return google.api_core.path_template.expand(
"projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}",
Expand Down
129 changes: 51 additions & 78 deletions google/cloud/kms_v1/proto/resources_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9852b1a

Please sign in to comment.