Skip to content

Commit cd61aea

Browse files
authored
SecretManager update v1beta1->v1 (GoogleCloudPlatform#3065)
Client library has been updated: https://pypi.org/project/google-cloud-secret-manager/
1 parent b00f00d commit cd61aea

17 files changed

+17
-17
lines changed

secretmanager/api-client/access_secret_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def access_secret_version(project_id, secret_id, version_id):
2727
"""
2828

2929
# Import the Secret Manager client library.
30-
from google.cloud import secretmanager_v1beta1 as secretmanager
30+
from google.cloud import secretmanager
3131

3232
# Create the Secret Manager client.
3333
client = secretmanager.SecretManagerServiceClient()

secretmanager/api-client/add_secret_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def add_secret_version(project_id, secret_id, payload):
2727
"""
2828

2929
# Import the Secret Manager client library.
30-
from google.cloud import secretmanager_v1beta1 as secretmanager
30+
from google.cloud import secretmanager
3131

3232
# Create the Secret Manager client.
3333
client = secretmanager.SecretManagerServiceClient()

secretmanager/api-client/create_secret.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def create_secret(project_id, secret_id):
2828
"""
2929

3030
# Import the Secret Manager client library.
31-
from google.cloud import secretmanager_v1beta1 as secretmanager
31+
from google.cloud import secretmanager
3232

3333
# Create the Secret Manager client.
3434
client = secretmanager.SecretManagerServiceClient()

secretmanager/api-client/delete_secret.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def delete_secret(project_id, secret_id):
2626
"""
2727

2828
# Import the Secret Manager client library.
29-
from google.cloud import secretmanager_v1beta1 as secretmanager
29+
from google.cloud import secretmanager
3030

3131
# Create the Secret Manager client.
3232
client = secretmanager.SecretManagerServiceClient()

secretmanager/api-client/destroy_secret_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def destroy_secret_version(project_id, secret_id, version_id):
2727
"""
2828

2929
# Import the Secret Manager client library.
30-
from google.cloud import secretmanager_v1beta1 as secretmanager
30+
from google.cloud import secretmanager
3131

3232
# Create the Secret Manager client.
3333
client = secretmanager.SecretManagerServiceClient()

secretmanager/api-client/disable_secret_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def disable_secret_version(project_id, secret_id, version_id):
2727
"""
2828

2929
# Import the Secret Manager client library.
30-
from google.cloud import secretmanager_v1beta1 as secretmanager
30+
from google.cloud import secretmanager
3131

3232
# Create the Secret Manager client.
3333
client = secretmanager.SecretManagerServiceClient()

secretmanager/api-client/enable_secret_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def enable_secret_version(project_id, secret_id, version_id):
2727
"""
2828

2929
# Import the Secret Manager client library.
30-
from google.cloud import secretmanager_v1beta1 as secretmanager
30+
from google.cloud import secretmanager
3131

3232
# Create the Secret Manager client.
3333
client = secretmanager.SecretManagerServiceClient()

secretmanager/api-client/get_secret.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def get_secret(project_id, secret_id):
2727
"""
2828

2929
# Import the Secret Manager client library.
30-
from google.cloud import secretmanager_v1beta1 as secretmanager
30+
from google.cloud import secretmanager
3131

3232
# Create the Secret Manager client.
3333
client = secretmanager.SecretManagerServiceClient()

secretmanager/api-client/get_secret_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_secret_version(project_id, secret_id, version_id):
2828
"""
2929

3030
# Import the Secret Manager client library.
31-
from google.cloud import secretmanager_v1beta1 as secretmanager
31+
from google.cloud import secretmanager
3232

3333
# Create the Secret Manager client.
3434
client = secretmanager.SecretManagerServiceClient()

secretmanager/api-client/iam_grant_access.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def iam_grant_access(project_id, secret_id, member):
2626
"""
2727

2828
# Import the Secret Manager client library.
29-
from google.cloud import secretmanager_v1beta1 as secretmanager
29+
from google.cloud import secretmanager
3030

3131
# Create the Secret Manager client.
3232
client = secretmanager.SecretManagerServiceClient()

0 commit comments

Comments
 (0)