Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecretManager update v1beta1->v1 #3065

Merged
merged 4 commits into from
Mar 17, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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 secretmanager/api-client/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