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
32 changes: 18 additions & 14 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 0.12.11
version: 0.12.12
additionalDependencies: []
additionalPlugins: []
artifactID: glean-api-client
Expand Down
8 changes: 6 additions & 2 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ 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:
```xml
<dependency>
<groupId>com.glean.api-client</groupId>
<artifactId>glean-api-client</artifactId>
<version>0.12.11</version>
<version>0.12.12</version>
</dependency>
```

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
3 changes: 2 additions & 1 deletion docs/models/components/ExportInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
| `exportId` | *Optional\<String>* | :heavy_minus_sign: | The ID of the export |
| `fileName` | *Optional\<String>* | :heavy_minus_sign: | The name of the file to export the findings to |
| `filter` | [Optional\<DlpFindingFilter>](../../models/components/DlpFindingFilter.md) | :heavy_minus_sign: | N/A |
| `status` | [Optional\<ExportInfoStatus>](../../models/components/ExportInfoStatus.md) | :heavy_minus_sign: | The status of the export |
| `status` | [Optional\<ExportInfoStatus>](../../models/components/ExportInfoStatus.md) | :heavy_minus_sign: | The status of the export |
| `exportSize` | *Optional\<Long>* | :heavy_minus_sign: | The size of the exported file in bytes |
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -63,6 +64,13 @@ public class ExportInfo {
@JsonProperty("status")
private Optional<? extends ExportInfoStatus> status;

/**
* The size of the exported file in bytes
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("exportSize")
private Optional<Long> exportSize;

@JsonCreator
public ExportInfo(
@JsonProperty("createdBy") Optional<? extends DlpPerson> createdBy,
Expand All @@ -71,27 +79,30 @@ public ExportInfo(
@JsonProperty("exportId") Optional<String> exportId,
@JsonProperty("fileName") Optional<String> fileName,
@JsonProperty("filter") Optional<? extends DlpFindingFilter> filter,
@JsonProperty("status") Optional<? extends ExportInfoStatus> status) {
@JsonProperty("status") Optional<? extends ExportInfoStatus> status,
@JsonProperty("exportSize") Optional<Long> exportSize) {
Utils.checkNotNull(createdBy, "createdBy");
Utils.checkNotNull(startTime, "startTime");
Utils.checkNotNull(endTime, "endTime");
Utils.checkNotNull(exportId, "exportId");
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;
this.exportId = exportId;
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());
}

/**
Expand Down Expand Up @@ -150,6 +161,14 @@ public Optional<ExportInfoStatus> status() {
return (Optional<ExportInfoStatus>) status;
}

/**
* The size of the exported file in bytes
*/
@JsonIgnore
public Optional<Long> exportSize() {
return exportSize;
}

public static Builder builder() {
return new Builder();
}
Expand Down Expand Up @@ -282,6 +301,25 @@ public ExportInfo withStatus(Optional<? extends ExportInfoStatus> 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<Long> exportSize) {
Utils.checkNotNull(exportSize, "exportSize");
this.exportSize = exportSize;
return this;
}

@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
Expand All @@ -298,15 +336,16 @@ 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
public int hashCode() {
return Utils.enhancedHash(
createdBy, startTime, endTime,
exportId, fileName, filter,
status);
status, exportSize);
}

@Override
Expand All @@ -318,7 +357,8 @@ public String toString() {
"exportId", exportId,
"fileName", fileName,
"filter", filter,
"status", status);
"status", status,
"exportSize", exportSize);
}

@SuppressWarnings("UnusedReturnValue")
Expand All @@ -338,6 +378,8 @@ public final static class Builder {

private Optional<? extends ExportInfoStatus> status = Optional.empty();

private Optional<Long> exportSize = Optional.empty();

private Builder() {
// force use of static builder() method
}
Expand Down Expand Up @@ -469,12 +511,31 @@ public Builder status(Optional<? extends ExportInfoStatus> 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<Long> 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);
}

}
Expand Down