diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 7b29bee..0c4bf80 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 3e3290ca-0ee8-4981-b1bc-14536048fa63 management: - docChecksum: 74646e230b3f40b8ae92d641bbb73b26 + docChecksum: 155a8a099a04ddbed1268d2c31ba186a docVersion: 0.9.0 speakeasyVersion: 1.675.4 generationVersion: 2.779.2 - releaseVersion: 0.11.24 - configChecksum: a044a31fd8d5216cd834231a60cde29c + releaseVersion: 0.11.25 + configChecksum: eeecb9b00ada03322b4c87d8ec90db91 repoURL: https://github.com/gleanwork/api-client-python.git installationURL: https://github.com/gleanwork/api-client-python.git published: true persistentEdits: - generation_id: ee309897-aec1-4317-88f5-3dff4d49c3cc - pristine_commit_hash: e5668951d13674dd22a14b067aaa6e4edf5ce61d - pristine_tree_hash: 364495821dc525d169bc8c0970f66b60822ff04c + generation_id: ae27c813-e27b-49f4-8b29-b8ea002c14e7 + pristine_commit_hash: dfb743e628fdc9144777502e9abdbc9ef378ce15 + pristine_tree_hash: eb9728fe81c4c32440414597ccce323de02cf3aa features: python: additionalDependencies: 1.0.0 @@ -1087,8 +1087,8 @@ trackedFiles: pristine_git_object: 51c0237020d03cd196c1ec210563364967cead8e docs/models/exportinfo.md: id: 08c8529beddd - last_write_checksum: sha1:4c4902c7c6e5d0b290167f79fce41c29f22b7765 - pristine_git_object: 32bd60f7d1c30790014ce497e6600cbad864d29b + last_write_checksum: sha1:52c974d3e1a4740f5b41a2c96ef2674c4872a1d9 + pristine_git_object: fd1547a8a4890b6565e01918acdef4dc255e82b4 docs/models/exportinfostatus.md: id: 00e8b292b3fb last_write_checksum: sha1:7123b260311651a2ff48d6a66e1c3a573e7752f5 @@ -2611,8 +2611,8 @@ trackedFiles: pristine_git_object: 8e34b78a71b8bb97bad6dea99d0f791beb134e5b pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:c7bf6c95b6765eb1d21e5a312941ed3a187827cd - pristine_git_object: 8c199aae928ee4debecc67433e11d55d8b025b26 + last_write_checksum: sha1:5e9a1c86cdbf59f5853a8ff79c448cab1b21a33c + pristine_git_object: 74e7a505ae169183c934b33ef1e3550bbd93a903 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794 @@ -2639,8 +2639,8 @@ trackedFiles: pristine_git_object: 58c4d70ac1797b86ff5c4237cafbc344c42d8f64 src/glean/api_client/_version.py: id: 0ce22b26136b - last_write_checksum: sha1:7f37552299f470bd24d55bc45e65eebfa6ab51bb - pristine_git_object: 32953e133b21396c657d5a85c2c8d534ac9505a5 + last_write_checksum: sha1:30abb718971de47ac189a7bd4cb7e7aad5c010ce + pristine_git_object: 54635c2e1ffa97430bf82ab8d4db3a8e77e1512d src/glean/api_client/agents.py: id: b925701a9217 last_write_checksum: sha1:56f1329fbf799ea92ed30229d4ed2404666d455d @@ -3583,8 +3583,8 @@ trackedFiles: pristine_git_object: 5ede7c8c9cad35bbf68587ce4247ee51cf74b55e src/glean/api_client/models/exportinfo.py: id: 7039fdf82b53 - last_write_checksum: sha1:34cba20e6b7e17e194cd55a65b5f0f149cf4732e - pristine_git_object: eaa8128293b2c65addbbe8bdeb2a1f9a7c6337be + last_write_checksum: sha1:fa5db79c5e687c4d55001bc778aabd0bec08aec4 + pristine_git_object: 2e4a1a37acb1577fc1d83fe1ac68e5d257fb4651 src/glean/api_client/models/externalsharingoptions.py: id: 0df611382e60 last_write_checksum: sha1:b9b95361f20f2e056f7878c43d2144ca1afc47e3 @@ -5374,7 +5374,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/eventstrategyname.go: last_write_checksum: sha1:acecfa3fb469871561d21b30275631ced4a4a11c tests/mockserver/internal/sdk/models/components/exportinfo.go: - last_write_checksum: sha1:0fd962ff58d720caf13e09ce08624617485a4dcd + last_write_checksum: sha1:a211dd685d03fa0b8d7e0186d15abf9756d1bf4e tests/mockserver/internal/sdk/models/components/externalsharingoptions.go: last_write_checksum: sha1:82c4ead1f0d347a66103a3c44c8232b1a6f78243 tests/mockserver/internal/sdk/models/components/externalshortcut.go: @@ -7144,6 +7144,10 @@ generatedTests: updateshortcut: "2025-06-12T19:13:52-04:00" listfindingsexports: "2025-12-10T17:53:31Z" downloadfindingsexport: "2025-12-10T17:53:31Z" +releaseNotes: | + ## Python SDK Changes: + * `glean.governance.createfindingsexport()`: `response.export_size` **Added** + * `glean.governance.listfindingsexports()`: `response.exports.[].export_size` **Added** generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index e89fcc8..597163b 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -31,7 +31,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true python: - version: 0.11.24 + version: 0.11.25 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 7bd5df1..e448c8b 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: version: 0.9.0 title: Glean API - x-source-commit-sha: 2716d99b958fa0dbf1a48290203cb28f43c37a92 + x-source-commit-sha: 6c18cdaa8da169e191cc66885c326e2ea6d13644 description: | # Introduction In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean. @@ -22,7 +22,7 @@ info: These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice. x-logo: url: https://app.glean.com/images/glean-text2.svg - x-open-api-commit-sha: ecce1959afb4701947e853c482ed77ed6743e643 + x-open-api-commit-sha: c7a6190b989a16d24b879348f08e27efcb304566 x-speakeasy-name: 'Glean API' servers: - url: https://{instance}-be.glean.com @@ -13074,6 +13074,10 @@ components: - PENDING - COMPLETED - FAILED + exportSize: + type: integer + format: int64 + description: The size of the exported file in bytes ListDlpFindingsExportsResponse: properties: exports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 72181a2..31f1aec 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,11 +2,11 @@ speakeasyVersion: 1.675.4 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:cf8e5c9ddb51d4048054a3fd1d50321965893416a776cc9a328031075305918c - sourceBlobDigest: sha256:c3c7966652dafb9a4cd580555d5b9d13a43ab4f198e2693485bdb5cc46094d3b + sourceRevisionDigest: sha256:a38a82dd27fe58019cf7c85c19cbd402e93361c9df38ce070f2ca419eeab832f + sourceBlobDigest: sha256:3840e8da76cb1e20b3c7f053acee46de0e4bcb58e17379e235342990ead4c8f8 tags: - latest - - speakeasy-sdk-regen-1765404408 + - speakeasy-sdk-regen-1765503976 Glean Client API: sourceNamespace: glean-client-api sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2 @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:cf8e5c9ddb51d4048054a3fd1d50321965893416a776cc9a328031075305918c - sourceBlobDigest: sha256:c3c7966652dafb9a4cd580555d5b9d13a43ab4f198e2693485bdb5cc46094d3b + sourceRevisionDigest: sha256:a38a82dd27fe58019cf7c85c19cbd402e93361c9df38ce070f2ca419eeab832f + sourceBlobDigest: sha256:3840e8da76cb1e20b3c7f053acee46de0e4bcb58e17379e235342990ead4c8f8 codeSamplesNamespace: glean-api-specs-python-code-samples - codeSamplesRevisionDigest: sha256:6e1a381d6755237eca46e861e59ef413a5f956a8b35bb4402b6d3e0ec478ea3b + codeSamplesRevisionDigest: sha256:f411ba167f9247fde5f4d1684411db4c43e5c04dcdcf5a631b904551a5fed7b1 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index d170f54..30b2bc1 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -468,4 +468,14 @@ Based on: ### Generated - [python v0.11.24] . ### Releases -- [PyPI v0.11.24] https://pypi.org/project/glean-api-client/0.11.24 - . \ No newline at end of file +- [PyPI v0.11.24] https://pypi.org/project/glean-api-client/0.11.24 - . + +## 2025-12-12 06:44:46 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.675.4 (2.779.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.11.25] . +### Releases +- [PyPI v0.11.25] https://pypi.org/project/glean-api-client/0.11.25 - . \ No newline at end of file diff --git a/docs/models/exportinfo.md b/docs/models/exportinfo.md index 32bd60f..fd1547a 100644 --- a/docs/models/exportinfo.md +++ b/docs/models/exportinfo.md @@ -11,4 +11,5 @@ | `export_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the export | | `file_name` | *Optional[str]* | :heavy_minus_sign: | The name of the file to export the findings to | | `filter_` | [Optional[models.DlpFindingFilter]](../models/dlpfindingfilter.md) | :heavy_minus_sign: | N/A | -| `status` | [Optional[models.ExportInfoStatus]](../models/exportinfostatus.md) | :heavy_minus_sign: | The status of the export | \ No newline at end of file +| `status` | [Optional[models.ExportInfoStatus]](../models/exportinfostatus.md) | :heavy_minus_sign: | The status of the export | +| `export_size` | *Optional[int]* | :heavy_minus_sign: | The size of the exported file in bytes | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 8c199aa..74e7a50 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "glean-api-client" -version = "0.11.24" +version = "0.11.25" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Glean Technologies, Inc." },] readme = "README-PYPI.md" diff --git a/src/glean/api_client/_version.py b/src/glean/api_client/_version.py index 32953e1..54635c2 100644 --- a/src/glean/api_client/_version.py +++ b/src/glean/api_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "glean-api-client" -__version__: str = "0.11.24" +__version__: str = "0.11.25" __openapi_doc_version__: str = "0.9.0" __gen_version__: str = "2.779.2" -__user_agent__: str = "speakeasy-sdk/python 0.11.24 2.779.2 0.9.0 glean-api-client" +__user_agent__: str = "speakeasy-sdk/python 0.11.25 2.779.2 0.9.0 glean-api-client" try: if __package__ is not None: diff --git a/src/glean/api_client/models/exportinfo.py b/src/glean/api_client/models/exportinfo.py index eaa8128..2e4a1a3 100644 --- a/src/glean/api_client/models/exportinfo.py +++ b/src/glean/api_client/models/exportinfo.py @@ -32,6 +32,8 @@ class ExportInfoTypedDict(TypedDict): filter_: NotRequired[DlpFindingFilterTypedDict] status: NotRequired[ExportInfoStatus] r"""The status of the export""" + export_size: NotRequired[int] + r"""The size of the exported file in bytes""" class ExportInfo(BaseModel): @@ -56,3 +58,6 @@ class ExportInfo(BaseModel): status: Optional[ExportInfoStatus] = None r"""The status of the export""" + + export_size: Annotated[Optional[int], pydantic.Field(alias="exportSize")] = None + r"""The size of the exported file in bytes""" diff --git a/tests/mockserver/internal/sdk/models/components/exportinfo.go b/tests/mockserver/internal/sdk/models/components/exportinfo.go index 5d125d3..9cd209b 100644 --- a/tests/mockserver/internal/sdk/models/components/exportinfo.go +++ b/tests/mockserver/internal/sdk/models/components/exportinfo.go @@ -51,6 +51,8 @@ type ExportInfo struct { Filter *DlpFindingFilter `json:"filter,omitempty"` // The status of the export Status *ExportInfoStatus `json:"status,omitempty"` + // The size of the exported file in bytes + ExportSize *int64 `json:"exportSize,omitempty"` } func (o *ExportInfo) GetCreatedBy() *DlpPerson { @@ -101,3 +103,10 @@ func (o *ExportInfo) GetStatus() *ExportInfoStatus { } return o.Status } + +func (o *ExportInfo) GetExportSize() *int64 { + if o == nil { + return nil + } + return o.ExportSize +}