from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
postgres_user_credentials = client.cloud.databases.postgres.clusters.user_credentials.regenerate(
username="username",
project_id=0,
region_id=0,
cluster_name="cluster_name",
)
print(postgres_user_credentials.password)