We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11c1b7a commit 8e0a6a1Copy full SHA for 8e0a6a1
1 file changed
secretmanager/snippets/create_secret.py
@@ -19,8 +19,10 @@
19
import argparse
20
from typing import Optional
21
22
-
23
# [START secretmanager_create_secret]
+# Import the Secret Manager client library.
24
+from google.cloud import secretmanager
25
+
26
def create_secret(
27
project_id: str, secret_id: str, ttl: Optional[str] = None
28
) -> secretmanager.Secret:
@@ -48,8 +50,7 @@ def create_secret(
48
50
new_secret_with_ttl = create_secret("my-project", "my-timed-secret", "7776000s")
49
51
"""
52
- # Import the Secret Manager client library.
- from google.cloud import secretmanager
53
54
55
# Create the Secret Manager client.
56
client = secretmanager.SecretManagerServiceClient()
0 commit comments