prefect_gcp.secret_manager
Functions
acreate_secret
secret_name: Name of the secret to retrieve.gcp_credentials: Credentials to use for authentication with GCP.timeout: The number of seconds the transport should wait for the server response.project: Name of the project to use; overrides the gcp_credentials project if provided.
- The path of the created secret.
create_secret
secret_name: Name of the secret to retrieve.gcp_credentials: Credentials to use for authentication with GCP.timeout: The number of seconds the transport should wait for the server response.project: Name of the project to use; overrides the gcp_credentials project if provided.
- The path of the created secret.
aupdate_secret
secret_name: Name of the secret to retrieve.secret_value: Desired value of the secret. Can be eitherstrorbytes.gcp_credentials: Credentials to use for authentication with GCP.timeout: The number of seconds the transport should wait for the server response.project: Name of the project to use; overrides the gcp_credentials project if provided.
- The path of the updated secret.
update_secret
secret_name: Name of the secret to retrieve.secret_value: Desired value of the secret. Can be eitherstrorbytes.gcp_credentials: Credentials to use for authentication with GCP.timeout: The number of seconds the transport should wait for the server response.project: Name of the project to use; overrides the gcp_credentials project if provided.
- The path of the updated secret.
aread_secret
secret_name: Name of the secret to retrieve.gcp_credentials: Credentials to use for authentication with GCP.version_id: Version number of the secret to use, or “latest”.timeout: The number of seconds the transport should wait for the server response.project: Name of the project to use; overrides the gcp_credentials project if provided.
- Contents of the specified secret.
read_secret
secret_name: Name of the secret to retrieve.gcp_credentials: Credentials to use for authentication with GCP.version_id: Version number of the secret to use, or “latest”.timeout: The number of seconds the transport should wait for the server response.project: Name of the project to use; overrides the gcp_credentials project if provided.
- Contents of the specified secret.
adelete_secret
secret_name: Name of the secret to delete.gcp_credentials: Credentials to use for authentication with GCP.timeout: The number of seconds the transport should wait for the server response.project: Name of the project to use; overrides the gcp_credentials project if provided.
- The path of the deleted secret.
delete_secret
secret_name: Name of the secret to delete.gcp_credentials: Credentials to use for authentication with GCP.timeout: The number of seconds the transport should wait for the server response.project: Name of the project to use; overrides the gcp_credentials project if provided.
- The path of the deleted secret.
adelete_secret_version
secret_name: Name of the secret to retrieve.version_id: Version number of the secret to use; “latest” can NOT be used.gcp_credentials: Credentials to use for authentication with GCP.timeout: The number of seconds the transport should wait for the server response.project: Name of the project to use; overrides the gcp_credentials project if provided.
- The path of the deleted secret version.
delete_secret_version
secret_name: Name of the secret to retrieve.version_id: Version number of the secret to use; “latest” can NOT be used.gcp_credentials: Credentials to use for authentication with GCP.timeout: The number of seconds the transport should wait for the server response.project: Name of the project to use; overrides the gcp_credentials project if provided.
- The path of the deleted secret version.
Classes
GcpSecret
Manages a secret in Google Cloud Platform’s Secret Manager.
Attributes:
gcp_credentials: Credentials to use for authentication with GCP.secret_name: Name of the secret to manage.secret_version: Version number of the secret to use, or “latest”.
adelete_secret
- The path that the secret was deleted from.
aread_secret
- The secret data as bytes.
awrite_secret
secret_data: The secret to write.
- The path that the secret was written to.
delete_secret
- The path that the secret was deleted from.
read_secret
- The secret data as bytes.
write_secret
secret_data: The secret to write.
- The path that the secret was written to.