diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c43fba2f..fc2ef29c 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,18 +1,18 @@ lockVersion: 2.0.0 id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1 management: - docChecksum: 74646e230b3f40b8ae92d641bbb73b26 + docChecksum: 155a8a099a04ddbed1268d2c31ba186a docVersion: 0.9.0 speakeasyVersion: 1.675.4 generationVersion: 2.779.2 - releaseVersion: 0.12.11 - configChecksum: 6d297fef00957c9be5a11ab69f739e0c + releaseVersion: 0.12.12 + configChecksum: 6b3abe5ac2fcc9c2e11b6b02465871fc repoURL: https://github.com/gleanwork/api-client-java.git published: true persistentEdits: - generation_id: 9a9e9b92-6e57-4757-a626-2c8e2b181bb9 - pristine_commit_hash: ef45dab753934b77d2b35a8b67869776a964e0c7 - pristine_tree_hash: 90b2f38f80f2a1b1f2935e7631a044c5987a3c7f + generation_id: 043e62c2-8461-4dd3-93f8-3c45bfcdb8a1 + pristine_commit_hash: 194673f80b5af90b43a2e7e531890af9aac7591f + pristine_tree_hash: d5bac1aac3ee701a86ec21063a813893ee04f3b0 features: java: additionalDependencies: 0.1.0 @@ -1022,8 +1022,8 @@ trackedFiles: pristine_git_object: 51c0237020d03cd196c1ec210563364967cead8e docs/models/components/ExportInfo.md: id: c7996087902c - last_write_checksum: sha1:b402eb734929d99ff124fe3e7c3b06d98efb3567 - pristine_git_object: 5b2213406d11efa05ac6a590c48bf3184c0d8920 + last_write_checksum: sha1:93a2170166e6f1ae43515b9d1de1d14c1a69cd0e + pristine_git_object: d435b81bc9fddb7580603f15b672587772e46fbc docs/models/components/ExportInfoStatus.md: id: 8a617f221b54 last_write_checksum: sha1:7123b260311651a2ff48d6a66e1c3a573e7752f5 @@ -3038,8 +3038,8 @@ trackedFiles: pristine_git_object: 3decbce5bd40edbe278c1c5d2dbf585808e51d9a gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:eae6868139eed27d7ed9c04fe21d45a7bc9f6157 - pristine_git_object: bee9568960e30f30d20eb47122bc7bc775709963 + last_write_checksum: sha1:a843ea03418340e65a7bdaceb2dda4731b51de6b + pristine_git_object: 28e0a8d29e212ca3e5147071ff42e1b7e02c9364 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -3342,8 +3342,8 @@ trackedFiles: pristine_git_object: 5e30515ba0d212914ac9a195db6019330b6b0a2b src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java: id: d5fcc61f5992 - last_write_checksum: sha1:cd45d229370a2cb119c1908ffdc824f52b361428 - pristine_git_object: 1af5fa45a8c0492b8b52739b91f0e0acabe78711 + last_write_checksum: sha1:eb8f6d2ba88836e6df8b3d3dbd65e99e1b44a945 + pristine_git_object: c1f35c3d0bb79a1a005a07289362535d19e114df src/main/java/com/glean/api_client/glean_api_client/Search.java: id: f22d94b920b5 last_write_checksum: sha1:f4c52d34b05dafaf8037a2fe5df738f6c44c7132 @@ -4342,8 +4342,8 @@ trackedFiles: pristine_git_object: 43cd580d5e8057aa228dcb424b68997016a375e3 src/main/java/com/glean/api_client/glean_api_client/models/components/ExportInfo.java: id: ba6d21a1125d - last_write_checksum: sha1:6e3564240ef20d2de966e9095bc2d8f77d04d504 - pristine_git_object: a3c992f780781efd2b531dc1600efa7c28dd3f56 + last_write_checksum: sha1:7b65357a490ff53b613da6cf39e7f54da38985a4 + pristine_git_object: a7af4f2fed36127d9cf6793c07f671e6cb34b560 src/main/java/com/glean/api_client/glean_api_client/models/components/ExportInfoStatus.java: id: 626d316bca66 last_write_checksum: sha1:0a6421495b7a27cff7c311a1e099121d3db6ff96 @@ -9214,6 +9214,10 @@ generatedTests: get_/rest/api/v1/tools/list: "2025-06-09T18:03:44Z" post_/rest/api/v1/tools/call: "2025-06-09T18:03:44Z" listpolicies: "2025-06-09T18:03:44Z" +releaseNotes: | + ## Java SDK Changes: + * `glean.governance.createfindingsexport()`: `response.exportsize` **Added** + * `glean.governance.listfindingsexports()`: `response.exports.[].exportSize` **Added** generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 861cd2a3..d402818a 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -26,7 +26,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 0.12.11 + version: 0.12.12 additionalDependencies: [] additionalPlugins: [] artifactID: glean-api-client diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 7bd5df18..e448c8b1 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 8d200d6f..486da28c 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-1765404399 + - speakeasy-sdk-regen-1765505291 Glean-OAS: sourceNamespace: glean-oas sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317 @@ -18,10 +18,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-java-code-samples - codeSamplesRevisionDigest: sha256:ea86f11921a1f1270cc36a2e0280b5100c2f51cfca411a8de21472b1ebacf29c + codeSamplesRevisionDigest: sha256:9118d4c534254f586011a33995b011403ca46ec22294d08b1626a82fca790380 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index c4560668..89168f82 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.glean.api-client:glean-api-client:0.12.11' +implementation 'com.glean.api-client:glean-api-client:0.12.12' ``` Maven: @@ -73,7 +73,7 @@ Maven: com.glean.api-client glean-api-client - 0.12.11 + 0.12.12 ``` diff --git a/RELEASES.md b/RELEASES.md index ba89b18f..e30769bd 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -458,4 +458,14 @@ Based on: ### Generated - [java v0.12.11] . ### Releases -- [Maven Central v0.12.11] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.11 - . \ No newline at end of file +- [Maven Central v0.12.11] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.11 - . + +## 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 +- [java v0.12.12] . +### Releases +- [Maven Central v0.12.12] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.12 - . \ No newline at end of file diff --git a/docs/models/components/ExportInfo.md b/docs/models/components/ExportInfo.md index 5b221340..d435b81b 100644 --- a/docs/models/components/ExportInfo.md +++ b/docs/models/components/ExportInfo.md @@ -11,4 +11,5 @@ | `exportId` | *Optional\* | :heavy_minus_sign: | The ID of the export | | `fileName` | *Optional\* | :heavy_minus_sign: | The name of the file to export the findings to | | `filter` | [Optional\](../../models/components/DlpFindingFilter.md) | :heavy_minus_sign: | N/A | -| `status` | [Optional\](../../models/components/ExportInfoStatus.md) | :heavy_minus_sign: | The status of the export | \ No newline at end of file +| `status` | [Optional\](../../models/components/ExportInfoStatus.md) | :heavy_minus_sign: | The status of the export | +| `exportSize` | *Optional\* | :heavy_minus_sign: | The size of the exported file in bytes | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index bee95689..28e0a8d2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.glean.api-client artifactId=glean-api-client -version=0.12.11 +version=0.12.12 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java index 1af5fa45..c1f35c3d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java +++ b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java @@ -24,7 +24,7 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "0.9.0"; - public static final String SDK_VERSION = "0.12.11"; + public static final String SDK_VERSION = "0.12.12"; public static final String GEN_VERSION = "2.779.2"; private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client"; public static final String USER_AGENT = diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ExportInfo.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ExportInfo.java index a3c992f7..a7af4f2f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ExportInfo.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ExportInfo.java @@ -9,6 +9,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Long; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -63,6 +64,13 @@ public class ExportInfo { @JsonProperty("status") private Optional status; + /** + * The size of the exported file in bytes + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("exportSize") + private Optional exportSize; + @JsonCreator public ExportInfo( @JsonProperty("createdBy") Optional createdBy, @@ -71,7 +79,8 @@ public ExportInfo( @JsonProperty("exportId") Optional exportId, @JsonProperty("fileName") Optional fileName, @JsonProperty("filter") Optional filter, - @JsonProperty("status") Optional status) { + @JsonProperty("status") Optional status, + @JsonProperty("exportSize") Optional exportSize) { Utils.checkNotNull(createdBy, "createdBy"); Utils.checkNotNull(startTime, "startTime"); Utils.checkNotNull(endTime, "endTime"); @@ -79,6 +88,7 @@ public ExportInfo( Utils.checkNotNull(fileName, "fileName"); Utils.checkNotNull(filter, "filter"); Utils.checkNotNull(status, "status"); + Utils.checkNotNull(exportSize, "exportSize"); this.createdBy = createdBy; this.startTime = startTime; this.endTime = endTime; @@ -86,12 +96,13 @@ public ExportInfo( this.fileName = fileName; this.filter = filter; this.status = status; + this.exportSize = exportSize; } public ExportInfo() { this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty()); + Optional.empty(), Optional.empty()); } /** @@ -150,6 +161,14 @@ public Optional status() { return (Optional) status; } + /** + * The size of the exported file in bytes + */ + @JsonIgnore + public Optional exportSize() { + return exportSize; + } + public static Builder builder() { return new Builder(); } @@ -282,6 +301,25 @@ public ExportInfo withStatus(Optional status) { return this; } + /** + * The size of the exported file in bytes + */ + public ExportInfo withExportSize(long exportSize) { + Utils.checkNotNull(exportSize, "exportSize"); + this.exportSize = Optional.ofNullable(exportSize); + return this; + } + + + /** + * The size of the exported file in bytes + */ + public ExportInfo withExportSize(Optional exportSize) { + Utils.checkNotNull(exportSize, "exportSize"); + this.exportSize = exportSize; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -298,7 +336,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.exportId, other.exportId) && Utils.enhancedDeepEquals(this.fileName, other.fileName) && Utils.enhancedDeepEquals(this.filter, other.filter) && - Utils.enhancedDeepEquals(this.status, other.status); + Utils.enhancedDeepEquals(this.status, other.status) && + Utils.enhancedDeepEquals(this.exportSize, other.exportSize); } @Override @@ -306,7 +345,7 @@ public int hashCode() { return Utils.enhancedHash( createdBy, startTime, endTime, exportId, fileName, filter, - status); + status, exportSize); } @Override @@ -318,7 +357,8 @@ public String toString() { "exportId", exportId, "fileName", fileName, "filter", filter, - "status", status); + "status", status, + "exportSize", exportSize); } @SuppressWarnings("UnusedReturnValue") @@ -338,6 +378,8 @@ public final static class Builder { private Optional status = Optional.empty(); + private Optional exportSize = Optional.empty(); + private Builder() { // force use of static builder() method } @@ -469,12 +511,31 @@ public Builder status(Optional status) { return this; } + + /** + * The size of the exported file in bytes + */ + public Builder exportSize(long exportSize) { + Utils.checkNotNull(exportSize, "exportSize"); + this.exportSize = Optional.ofNullable(exportSize); + return this; + } + + /** + * The size of the exported file in bytes + */ + public Builder exportSize(Optional exportSize) { + Utils.checkNotNull(exportSize, "exportSize"); + this.exportSize = exportSize; + return this; + } + public ExportInfo build() { return new ExportInfo( createdBy, startTime, endTime, exportId, fileName, filter, - status); + status, exportSize); } }