Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.43.0"
".": "0.44.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 657
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-ba1eb162beed31f03386720005830bdaad3be08b9e08a07b2f10a2dd124648b8.yml
openapi_spec_hash: 416a4779f456d266b805fef5a54cfbc7
config_hash: d2defa3f4caff86ec6f4b8890f74b295
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-8c3bd3792724737d30da0f0200f0c589f9942ea3a028fcc9bcd56f3490ffc29a.yml
openapi_spec_hash: 7b184f4e52554b89cadf11b43f395583
config_hash: aa5a9dd05b6324fcb454d0694e5901a3
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 0.44.0 (2026-04-27)

Full Changelog: [v0.43.0...v0.44.0](https://github.com/G-Core/gcore-python/compare/v0.43.0...v0.44.0)

### Features

* **api:** aggregated API specs update ([5b07224](https://github.com/G-Core/gcore-python/commit/5b07224ecfcad18c39a2ae1c45fddb2b4ea811f6))
* **api:** aggregated API specs update ([9900f97](https://github.com/G-Core/gcore-python/commit/9900f97b05e97b4f42c7d3a041f32e5a628f0614))
* **storage:** support TF for ssh keys ([b4a70d5](https://github.com/G-Core/gcore-python/commit/b4a70d5fb797121f21daaa7da9026daae9173360))


### Chores

* **internal:** more robust bootstrap script ([8915d9b](https://github.com/G-Core/gcore-python/commit/8915d9b82e1f7f529f8aa930b047ce1bb3b32e08))

## 0.43.0 (2026-04-22)

Full Changelog: [v0.42.0...v0.43.0](https://github.com/G-Core/gcore-python/compare/v0.42.0...v0.43.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "gcore"
version = "0.43.0"
version = "0.44.0"
description = "The official Python library for the gcore API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

cd "$(dirname "$0")/.."

if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "${SKIP_BREW:-}" != "1" ] && [ -t 0 ]; then
brew bundle check >/dev/null 2>&1 || {
echo -n "==> Install Homebrew dependencies? (y/N): "
read -r response
Expand Down
2 changes: 1 addition & 1 deletion src/gcore/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "gcore"
__version__ = "0.43.0" # x-release-please-version
__version__ = "0.44.0" # x-release-please-version
5 changes: 2 additions & 3 deletions src/gcore/resources/cloud/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ Types:
```python
from gcore.types.cloud.inference import (
InferenceDeployment,
InferenceDeploymentAPIKey,
Probe,
ProbeConfig,
ProbeExec,
Expand Down Expand Up @@ -1191,12 +1190,12 @@ Methods:
Types:

```python
from gcore.types.cloud.databases.postgres import PgConfValidation
from gcore.types.cloud.databases.postgres import CustomConfigurationValidateResponse
```

Methods:

- <code title="post /cloud/v1/dbaas/postgres/validate_pg_conf/{project_id}/{region_id}">client.cloud.databases.postgres.custom_configurations.<a href="./src/gcore/resources/cloud/databases/postgres/custom_configurations.py">validate</a>(\*, project_id, region_id, \*\*<a href="src/gcore/types/cloud/databases/postgres/custom_configuration_validate_params.py">params</a>) -> <a href="./src/gcore/types/cloud/databases/postgres/pg_conf_validation.py">PgConfValidation</a></code>
- <code title="post /cloud/v1/dbaas/postgres/validate_pg_conf/{project_id}/{region_id}">client.cloud.databases.postgres.custom_configurations.<a href="./src/gcore/resources/cloud/databases/postgres/custom_configurations.py">validate</a>(\*, project_id, region_id, \*\*<a href="src/gcore/types/cloud/databases/postgres/custom_configuration_validate_params.py">params</a>) -> <a href="./src/gcore/types/cloud/databases/postgres/custom_configuration_validate_response.py">CustomConfigurationValidateResponse</a></code>

## VolumeSnapshots

Expand Down
60 changes: 60 additions & 0 deletions src/gcore/resources/cloud/databases/postgres/clusters/clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ def create(
Create a new PostgreSQL cluster with the specified configuration.

Args:
project_id: Project ID

region_id: Region ID

cluster_name: PostgreSQL cluster name

flavor: Instance RAM and CPU
Expand Down Expand Up @@ -151,6 +155,12 @@ def update(
Update the configuration of an existing PostgreSQL cluster.

Args:
project_id: Project ID

region_id: Region ID

cluster_name: Cluster name

flavor: New instance RAM and CPU

high_availability: New High Availability settings
Expand Down Expand Up @@ -204,6 +214,7 @@ def list(
project_id: int | None = None,
region_id: int | None = None,
limit: int | Omit = omit,
name: str | Omit = omit,
offset: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -218,8 +229,14 @@ def list(
filtered by search query and paginated.

Args:
project_id: Project ID

region_id: Region ID

limit: Maximum number of clusters to return

name: Filter clusters by name

offset: Number of clusters to skip

extra_headers: Send extra headers
Expand Down Expand Up @@ -247,6 +264,7 @@ def list(
query=maybe_transform(
{
"limit": limit,
"name": name,
"offset": offset,
},
cluster_list_params.ClusterListParams,
Expand All @@ -272,6 +290,12 @@ def delete(
Delete a PostgreSQL cluster and all its associated resources.

Args:
project_id: Project ID

region_id: Region ID

cluster_name: Cluster name

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -316,6 +340,12 @@ def get(
Get detailed information about a specific PostgreSQL cluster.

Args:
project_id: Project ID

region_id: Region ID

cluster_name: Cluster name

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -392,6 +422,10 @@ async def create(
Create a new PostgreSQL cluster with the specified configuration.

Args:
project_id: Project ID

region_id: Region ID

cluster_name: PostgreSQL cluster name

flavor: Instance RAM and CPU
Expand Down Expand Up @@ -461,6 +495,12 @@ async def update(
Update the configuration of an existing PostgreSQL cluster.

Args:
project_id: Project ID

region_id: Region ID

cluster_name: Cluster name

flavor: New instance RAM and CPU

high_availability: New High Availability settings
Expand Down Expand Up @@ -514,6 +554,7 @@ def list(
project_id: int | None = None,
region_id: int | None = None,
limit: int | Omit = omit,
name: str | Omit = omit,
offset: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -528,8 +569,14 @@ def list(
filtered by search query and paginated.

Args:
project_id: Project ID

region_id: Region ID

limit: Maximum number of clusters to return

name: Filter clusters by name

offset: Number of clusters to skip

extra_headers: Send extra headers
Expand Down Expand Up @@ -557,6 +604,7 @@ def list(
query=maybe_transform(
{
"limit": limit,
"name": name,
"offset": offset,
},
cluster_list_params.ClusterListParams,
Expand All @@ -582,6 +630,12 @@ async def delete(
Delete a PostgreSQL cluster and all its associated resources.

Args:
project_id: Project ID

region_id: Region ID

cluster_name: Cluster name

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -626,6 +680,12 @@ async def get(
Get detailed information about a specific PostgreSQL cluster.

Args:
project_id: Project ID

region_id: Region ID

cluster_name: Cluster name

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ def get(
can only be used once per user.

Args:
project_id: Project ID

region_id: Region ID

cluster_name: Cluster name

username: Username

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -108,6 +116,14 @@ def regenerate(
Generate new credentials for a specific user in a PostgreSQL cluster.

Args:
project_id: Project ID

region_id: Region ID

cluster_name: Cluster name

username: Username

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -179,6 +195,14 @@ async def get(
can only be used once per user.

Args:
project_id: Project ID

region_id: Region ID

cluster_name: Cluster name

username: Username

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -227,6 +251,14 @@ async def regenerate(
Generate new credentials for a specific user in a PostgreSQL cluster.

Args:
project_id: Project ID

region_id: Region ID

cluster_name: Cluster name

username: Username

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def get(
Get all available PostgreSQL configurations for the specified region.

Args:
project_id: Project ID

region_id: Region ID

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down Expand Up @@ -117,6 +121,10 @@ async def get(
Get all available PostgreSQL configurations for the specified region.

Args:
project_id: Project ID

region_id: Region ID

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
)
from ....._base_client import make_request_options
from .....types.cloud.databases.postgres import custom_configuration_validate_params
from .....types.cloud.databases.postgres.pg_conf_validation import PgConfValidation
from .....types.cloud.databases.postgres.custom_configuration_validate_response import (
CustomConfigurationValidateResponse,
)

__all__ = ["CustomConfigurationsResource", "AsyncCustomConfigurationsResource"]

Expand Down Expand Up @@ -54,11 +56,15 @@ def validate(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PgConfValidation:
) -> CustomConfigurationValidateResponse:
"""
Validate a custom PostgreSQL configuration file.

Args:
project_id: Project ID

region_id: Region ID

pg_conf: PostgreSQL configuration

version: PostgreSQL version
Expand Down Expand Up @@ -91,7 +97,7 @@ def validate(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=PgConfValidation,
cast_to=CustomConfigurationValidateResponse,
)


Expand Down Expand Up @@ -128,11 +134,15 @@ async def validate(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PgConfValidation:
) -> CustomConfigurationValidateResponse:
"""
Validate a custom PostgreSQL configuration file.

Args:
project_id: Project ID

region_id: Region ID

pg_conf: PostgreSQL configuration

version: PostgreSQL version
Expand Down Expand Up @@ -165,7 +175,7 @@ async def validate(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=PgConfValidation,
cast_to=CustomConfigurationValidateResponse,
)


Expand Down
Loading
Loading