from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
pg_conf_validation = client.cloud.databases.postgres.custom_configurations.validate(
project_id=0,
region_id=0,
pg_conf="\nlisten_addresses = 'localhost'\nport = 5432\nmax_connections = 100\nshared_buffers = 128MB\nlogging_collector = on",
version="15",
)
print(pg_conf_validation.is_valid)