Skip to content

Commit

Permalink
SecretManager update v1beta1->v1 [(#3065)](GoogleCloudPlatform/python…
Browse files Browse the repository at this point in the history
  • Loading branch information
gwhitehawk authored Mar 17, 2020
1 parent 6d688db commit 81f6685
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion samples/snippets/access_secret_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def access_secret_version(project_id, secret_id, version_id):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/add_secret_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def add_secret_version(project_id, secret_id, payload):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/create_secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def create_secret(project_id, secret_id):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/delete_secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def delete_secret(project_id, secret_id):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/destroy_secret_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def destroy_secret_version(project_id, secret_id, version_id):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/disable_secret_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def disable_secret_version(project_id, secret_id, version_id):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/enable_secret_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def enable_secret_version(project_id, secret_id, version_id):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/get_secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_secret(project_id, secret_id):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/get_secret_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_secret_version(project_id, secret_id, version_id):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/iam_grant_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def iam_grant_access(project_id, secret_id, member):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/iam_revoke_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def iam_revoke_access(project_id, secret_id, member):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/list_secret_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def list_secret_versions(project_id, secret_id):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/list_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def list_secrets(project_id):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def quickstart(_project_id=None, _secret_id=None):
# [START secretmanager_quickstart]
# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# GCP project in which to store secrets in Secret Manager.
project_id = 'YOUR_PROJECT_ID'
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-secret-manager==0.1.1
google-cloud-secret-manager==0.2.0
2 changes: 1 addition & 1 deletion samples/snippets/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from update_secret import update_secret

from google.api_core import exceptions
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager


@pytest.fixture()
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/update_secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def update_secret(project_id, secret_id):
"""

# Import the Secret Manager client library.
from google.cloud import secretmanager_v1beta1 as secretmanager
from google.cloud import secretmanager

# Create the Secret Manager client.
client = secretmanager.SecretManagerServiceClient()
Expand Down

0 comments on commit 81f6685

Please sign in to comment.