Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cd61aea

Browse filesBrowse 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
Copy full SHA for cd61aea
Expand file treeCollapse file tree

17 files changed

+17
-17
lines changed

‎secretmanager/api-client/access_secret_version.py

Copy file name to clipboardExpand all lines: secretmanager/api-client/access_secret_version.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: secretmanager/api-client/add_secret_version.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: secretmanager/api-client/create_secret.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: secretmanager/api-client/delete_secret.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: secretmanager/api-client/destroy_secret_version.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: secretmanager/api-client/disable_secret_version.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: secretmanager/api-client/enable_secret_version.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: secretmanager/api-client/get_secret.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: secretmanager/api-client/get_secret_version.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: secretmanager/api-client/iam_grant_access.py
+1-1Lines 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()

‎secretmanager/api-client/iam_revoke_access.py

Copy file name to clipboardExpand all lines: secretmanager/api-client/iam_revoke_access.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def iam_revoke_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()

‎secretmanager/api-client/list_secret_versions.py

Copy file name to clipboardExpand all lines: secretmanager/api-client/list_secret_versions.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def list_secret_versions(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/list_secrets.py

Copy file name to clipboardExpand all lines: secretmanager/api-client/list_secrets.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def list_secrets(project_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/quickstart.py

Copy file name to clipboardExpand all lines: secretmanager/api-client/quickstart.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
def quickstart(_project_id=None, _secret_id=None):
2121
# [START secretmanager_quickstart]
2222
# Import the Secret Manager client library.
23-
from google.cloud import secretmanager_v1beta1 as secretmanager
23+
from google.cloud import secretmanager
2424

2525
# GCP project in which to store secrets in Secret Manager.
2626
project_id = 'YOUR_PROJECT_ID'
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-cloud-secret-manager==0.1.1
1+
google-cloud-secret-manager==0.2.0

‎secretmanager/api-client/snippets_test.py

Copy file name to clipboardExpand all lines: secretmanager/api-client/snippets_test.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from update_secret import update_secret
3333

3434
from google.api_core import exceptions
35-
from google.cloud import secretmanager_v1beta1 as secretmanager
35+
from google.cloud import secretmanager
3636

3737

3838
@pytest.fixture()

‎secretmanager/api-client/update_secret.py

Copy file name to clipboardExpand all lines: secretmanager/api-client/update_secret.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def update_secret(project_id, secret_id):
2323
"""
2424

2525
# Import the Secret Manager client library.
26-
from google.cloud import secretmanager_v1beta1 as secretmanager
26+
from google.cloud import secretmanager
2727

2828
# Create the Secret Manager client.
2929
client = secretmanager.SecretManagerServiceClient()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.