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.25.0"
".": "0.26.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 640
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-739b0d84ccefaa883a2334ad16738cc87ec625ded28ee0e2e11781f17ba36580.yml
openapi_spec_hash: deb6a4c127edd808cfd8c8eb9eb9610b
config_hash: 1607041fe51cd832db709af848355624
configured_endpoints: 641
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-2c3abe1f1637f97f6bc750aff6eb77efc45ac2b527376541ac2af6b9626b35af.yml
openapi_spec_hash: ff74a4ccd9ec5ddb1a65963d52e709ba
config_hash: 0df262ae146e43627e9daf27e6b3bebf
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# Changelog

## 0.26.0 (2025-12-23)

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

### ⚠ BREAKING CHANGES

* **cloud:** move methods to gpu_baremetal_clusters.interfaces.attach()/detach()
* **cloud:** restructure to be gpu_virtual.clusters

### Features

* **api:** aggregated API specs update ([3a272e8](https://github.com/G-Core/gcore-python/commit/3a272e8b9a0399be48094ce82cc9127e59a2867a))
* **api:** aggregated API specs update ([789277a](https://github.com/G-Core/gcore-python/commit/789277a61a3ead490d9b8b0f439e0e21100036ba))
* **cloud:** add k8s cluster pools check quotas method ([326786c](https://github.com/G-Core/gcore-python/commit/326786cd4d499fffe760f308326bbd79003e4856))


### Bug Fixes

* **cloud:** move methods to gpu_baremetal_clusters.interfaces.attach()/detach() ([053ebcf](https://github.com/G-Core/gcore-python/commit/053ebcfdf462a66c3edc929e052b75d8afd51a20))
* **cloud:** restructure to be gpu_virtual.clusters ([36b7b63](https://github.com/G-Core/gcore-python/commit/36b7b63d98a20c3927069bb396154b068304f321))
* **examples:** make code consistent with comment ([85a0331](https://github.com/G-Core/gcore-python/commit/85a03310d31fa3ac6b74897b8754a19bd905df75))
* use async_to_httpx_files in patch method ([88c4050](https://github.com/G-Core/gcore-python/commit/88c4050f59d8a55796ab553a60b1e55aaadc81ca))


### Chores

* **internal:** add missing files argument to base client ([7d81efb](https://github.com/G-Core/gcore-python/commit/7d81efb323f72cdcaed3faa59a4fc5182f0fedab))
* **internal:** codegen related update ([3c38f42](https://github.com/G-Core/gcore-python/commit/3c38f4280bc1b57f987ff984c7504c4781d74ab8))
* speedup initial import ([ff1db23](https://github.com/G-Core/gcore-python/commit/ff1db23e58ffc5e118bd1fed3585ffc0cd04855e))

## 0.25.0 (2025-12-12)

Full Changelog: [v0.24.0...v0.25.0](https://github.com/G-Core/gcore-python/compare/v0.24.0...v0.25.0)
Expand Down
63 changes: 33 additions & 30 deletions api.md

Large diffs are not rendered by default.

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.25.0"
version = "0.26.0"
description = "The official Python library for the gcore API"
dynamic = ["readme"]
license = "Apache-2.0"
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.25.0" # x-release-please-version
__version__ = "0.26.0" # x-release-please-version
28 changes: 14 additions & 14 deletions src/gcore/resources/cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@
FileSharesResourceWithStreamingResponse,
AsyncFileSharesResourceWithStreamingResponse,
)
from .gpu_virtual import (
GPUVirtualResource,
AsyncGPUVirtualResource,
GPUVirtualResourceWithRawResponse,
AsyncGPUVirtualResourceWithRawResponse,
GPUVirtualResourceWithStreamingResponse,
AsyncGPUVirtualResourceWithStreamingResponse,
)
from .cost_reports import (
CostReportsResource,
AsyncCostReportsResource,
Expand Down Expand Up @@ -216,14 +224,6 @@
BillingReservationsResourceWithStreamingResponse,
AsyncBillingReservationsResourceWithStreamingResponse,
)
from .gpu_virtual_clusters import (
GPUVirtualClustersResource,
AsyncGPUVirtualClustersResource,
GPUVirtualClustersResourceWithRawResponse,
AsyncGPUVirtualClustersResourceWithRawResponse,
GPUVirtualClustersResourceWithStreamingResponse,
AsyncGPUVirtualClustersResourceWithStreamingResponse,
)
from .gpu_baremetal_clusters import (
GPUBaremetalClustersResource,
AsyncGPUBaremetalClustersResource,
Expand Down Expand Up @@ -360,12 +360,12 @@
"AsyncGPUBaremetalClustersResourceWithRawResponse",
"GPUBaremetalClustersResourceWithStreamingResponse",
"AsyncGPUBaremetalClustersResourceWithStreamingResponse",
"GPUVirtualClustersResource",
"AsyncGPUVirtualClustersResource",
"GPUVirtualClustersResourceWithRawResponse",
"AsyncGPUVirtualClustersResourceWithRawResponse",
"GPUVirtualClustersResourceWithStreamingResponse",
"AsyncGPUVirtualClustersResourceWithStreamingResponse",
"GPUVirtualResource",
"AsyncGPUVirtualResource",
"GPUVirtualResourceWithRawResponse",
"AsyncGPUVirtualResourceWithRawResponse",
"GPUVirtualResourceWithStreamingResponse",
"AsyncGPUVirtualResourceWithStreamingResponse",
"InstancesResource",
"AsyncInstancesResource",
"InstancesResourceWithRawResponse",
Expand Down
40 changes: 20 additions & 20 deletions src/gcore/resources/cloud/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@
FileSharesResourceWithStreamingResponse,
AsyncFileSharesResourceWithStreamingResponse,
)
from .gpu_virtual.gpu_virtual import (
GPUVirtualResource,
AsyncGPUVirtualResource,
GPUVirtualResourceWithRawResponse,
AsyncGPUVirtualResourceWithRawResponse,
GPUVirtualResourceWithStreamingResponse,
AsyncGPUVirtualResourceWithStreamingResponse,
)
from .load_balancers.load_balancers import (
LoadBalancersResource,
AsyncLoadBalancersResource,
Expand All @@ -212,14 +220,6 @@
ReservedFixedIPsResourceWithStreamingResponse,
AsyncReservedFixedIPsResourceWithStreamingResponse,
)
from .gpu_virtual_clusters.gpu_virtual_clusters import (
GPUVirtualClustersResource,
AsyncGPUVirtualClustersResource,
GPUVirtualClustersResourceWithRawResponse,
AsyncGPUVirtualClustersResourceWithRawResponse,
GPUVirtualClustersResourceWithStreamingResponse,
AsyncGPUVirtualClustersResourceWithStreamingResponse,
)
from .gpu_baremetal_clusters.gpu_baremetal_clusters import (
GPUBaremetalClustersResource,
AsyncGPUBaremetalClustersResource,
Expand Down Expand Up @@ -325,8 +325,8 @@ def gpu_baremetal_clusters(self) -> GPUBaremetalClustersResource:
return GPUBaremetalClustersResource(self._client)

@cached_property
def gpu_virtual_clusters(self) -> GPUVirtualClustersResource:
return GPUVirtualClustersResource(self._client)
def gpu_virtual(self) -> GPUVirtualResource:
return GPUVirtualResource(self._client)

@cached_property
def instances(self) -> InstancesResource:
Expand Down Expand Up @@ -465,8 +465,8 @@ def gpu_baremetal_clusters(self) -> AsyncGPUBaremetalClustersResource:
return AsyncGPUBaremetalClustersResource(self._client)

@cached_property
def gpu_virtual_clusters(self) -> AsyncGPUVirtualClustersResource:
return AsyncGPUVirtualClustersResource(self._client)
def gpu_virtual(self) -> AsyncGPUVirtualResource:
return AsyncGPUVirtualResource(self._client)

@cached_property
def instances(self) -> AsyncInstancesResource:
Expand Down Expand Up @@ -608,8 +608,8 @@ def gpu_baremetal_clusters(self) -> GPUBaremetalClustersResourceWithRawResponse:
return GPUBaremetalClustersResourceWithRawResponse(self._cloud.gpu_baremetal_clusters)

@cached_property
def gpu_virtual_clusters(self) -> GPUVirtualClustersResourceWithRawResponse:
return GPUVirtualClustersResourceWithRawResponse(self._cloud.gpu_virtual_clusters)
def gpu_virtual(self) -> GPUVirtualResourceWithRawResponse:
return GPUVirtualResourceWithRawResponse(self._cloud.gpu_virtual)

@cached_property
def instances(self) -> InstancesResourceWithRawResponse:
Expand Down Expand Up @@ -732,8 +732,8 @@ def gpu_baremetal_clusters(self) -> AsyncGPUBaremetalClustersResourceWithRawResp
return AsyncGPUBaremetalClustersResourceWithRawResponse(self._cloud.gpu_baremetal_clusters)

@cached_property
def gpu_virtual_clusters(self) -> AsyncGPUVirtualClustersResourceWithRawResponse:
return AsyncGPUVirtualClustersResourceWithRawResponse(self._cloud.gpu_virtual_clusters)
def gpu_virtual(self) -> AsyncGPUVirtualResourceWithRawResponse:
return AsyncGPUVirtualResourceWithRawResponse(self._cloud.gpu_virtual)

@cached_property
def instances(self) -> AsyncInstancesResourceWithRawResponse:
Expand Down Expand Up @@ -856,8 +856,8 @@ def gpu_baremetal_clusters(self) -> GPUBaremetalClustersResourceWithStreamingRes
return GPUBaremetalClustersResourceWithStreamingResponse(self._cloud.gpu_baremetal_clusters)

@cached_property
def gpu_virtual_clusters(self) -> GPUVirtualClustersResourceWithStreamingResponse:
return GPUVirtualClustersResourceWithStreamingResponse(self._cloud.gpu_virtual_clusters)
def gpu_virtual(self) -> GPUVirtualResourceWithStreamingResponse:
return GPUVirtualResourceWithStreamingResponse(self._cloud.gpu_virtual)

@cached_property
def instances(self) -> InstancesResourceWithStreamingResponse:
Expand Down Expand Up @@ -980,8 +980,8 @@ def gpu_baremetal_clusters(self) -> AsyncGPUBaremetalClustersResourceWithStreami
return AsyncGPUBaremetalClustersResourceWithStreamingResponse(self._cloud.gpu_baremetal_clusters)

@cached_property
def gpu_virtual_clusters(self) -> AsyncGPUVirtualClustersResourceWithStreamingResponse:
return AsyncGPUVirtualClustersResourceWithStreamingResponse(self._cloud.gpu_virtual_clusters)
def gpu_virtual(self) -> AsyncGPUVirtualResourceWithStreamingResponse:
return AsyncGPUVirtualResourceWithStreamingResponse(self._cloud.gpu_virtual)

@cached_property
def instances(self) -> AsyncInstancesResourceWithStreamingResponse:
Expand Down
Loading
Loading