Commit 8a2d2e5
authored
## Problem
When the Python client was released for `2025-10`, the spec did not yet
include `BYOCSpec.read_capacity`, so the ability to configure BYOC
indexes with DRN is limited through the SDK.
Additionally, I noticed we never pulled in `BYOCSpec.schema` either, so
that can be added in as well.
## Solution
- Regenerate core off of the `2025-10` spec to pull in most recent
changes (`make generate-oas`). We shouldn't need to regenerate grpc for
this as the changes are limited to `BYOCSpec` in the control plane.
- Add support for `schema` and `read_capacity` to `BYOCSpec`, and make
sure things are wired properly in `request_factory.py`.
- Update references to `BackupModelSchema` to use `MetadataSchema`. This
was due to an error in the spec wherein the `MetadataSchema` in the
OpenAPI spec did not have an `x-component-name`. That was fixed here:
pinecone-io/apis#417. It's confusing to have
`BackupModelSchema` used in all these areas that aren't backup-related.
Also pulled in some dependency bumps based on dependabot alerts:
### `aiohttp` (`2.6.3`)
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/42
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/47
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/46
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/48
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/45
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/44
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/49
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/43
### `urllib3` (`3.13.3`)
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/39
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/40
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/50
### `filelock` (`3.21.0`)
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/41
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/51
### `virtualenv` (`20.31.1`)
-
https://github.com/pinecone-io/pinecone-python-client/security/dependabot/52
## Type of Change
- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update
- [ ] Infrastructure change (CI configs, etc)
- [ ] Non-code change (docs, etc)
- [ ] None of the above: (explain here)
## Test Plan
CI - unit, integration, etc
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Touches generated API models plus request/response (de)serialization
for index specs, so mismatches could surface at runtime when parsing
`spec`/`read_capacity` payloads. Added tests reduce risk but changes
affect core index management flows.
>
> **Overview**
> Updates codegen to the `2025-10` OpenAPI output and refreshes
generated docs/comments (including index-management and vector
fetch/query guidance).
>
> Extends BYOC index support by adding `read_capacity` and `schema`
wiring end-to-end: new `ByocSpecResponse` model, `ByocSpec` dataclass
serialization, request factory parsing for BYOC
`read_capacity`/`schema`, and `IndexModel` response deserialization
fixes (manual oneOf handling + shared `_deserialize_read_capacity`, with
relaxed type checking to avoid request/response type mismatches).
>
> Renames the generated metadata schema types from `BackupModelSchema*`
to `MetadataSchema*` across control-plane models and public interfaces,
and expands unit/fixture coverage for schema parsing and BYOC/serverless
read-capacity configuration; also tweaks a sparse-index error assertion
and Ruff `target-version` to `py310`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
1976ce9. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---
- To see the specific tasks where the Asana app for GitHub is being
used, see below:
- https://app.asana.com/0/0/1213198931647510
1 parent 72f958f commit 8a2d2e5
35 files changed
Lines changed: 1172 additions & 323 deletions
File tree
- codegen
- pinecone
- core/openapi
- db_control
- api
- models
- model
- db_data
- api
- model
- db_control
- models
- resources
- asyncio
- sync
- openapi_support
- tests
- fixtures
- integration
- rest_asyncio/db/control/resources/index
- rest_sync/db/control/serverless
- unit
- db_control
- models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
Submodule apis updated from c968f9d to be7f2b2
Submodule python-oas-templates updated from 4408a74 to 7c0f6e7
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
1562 | 1562 | | |
1563 | 1563 | | |
1564 | 1564 | | |
1565 | | - | |
| 1565 | + | |
1566 | 1566 | | |
1567 | 1567 | | |
1568 | 1568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
101 | | - | |
| 104 | + | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
| |||
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
164 | 169 | | |
165 | 170 | | |
166 | 171 | | |
167 | | - | |
| 172 | + | |
| 173 | + | |
168 | 174 | | |
169 | 175 | | |
170 | 176 | | |
| |||
258 | 264 | | |
259 | 265 | | |
260 | 266 | | |
261 | | - | |
| 267 | + | |
| 268 | + | |
262 | 269 | | |
263 | 270 | | |
264 | 271 | | |
| |||
0 commit comments