Skip to content

Commit 4cca83a

Browse files
author
BitsAdmin
committed
Merge 'clawsentry-Java-2026-03-27-online-2552-2026_04_15_14_14_11' into 'integration_2026-04-16_1139696595970'
feat: [development task] clawsentry-2552-Java (2288429) See merge request: !967
2 parents c677ab4 + 20a89a0 commit 4cca83a

7 files changed

Lines changed: 654 additions & 0 deletions

File tree

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@
334334
<module>volcengine-java-sdk-llmscan</module>
335335
<module>volcengine-java-sdk-mem0</module>
336336
<module>volcengine-java-sdk-apmplusserver</module>
337+
<module>volcengine-java-sdk-clawsentry</module>
337338
<module>volcengine-java-sdk-dataleap20260301</module>
338339
<module>volcengine-java-sdk-arkclaw</module>
339340
</modules>

volcengine-java-sdk-bom/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,12 @@
721721
<optional>false</optional>
722722
<version>${project.version}</version>
723723
</dependency>
724+
<dependency>
725+
<groupId>com.volcengine</groupId>
726+
<artifactId>volcengine-java-sdk-clawsentry</artifactId>
727+
<optional>false</optional>
728+
<version>${project.version}</version>
729+
</dependency>
724730
<dependency>
725731
<groupId>com.volcengine</groupId>
726732
<artifactId>volcengine-java-sdk-dataleap20260301</artifactId>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<parent>
4+
<artifactId>volcengine-java-sdk</artifactId>
5+
<groupId>com.volcengine</groupId>
6+
<version>1.0.21</version>
7+
<relativePath>../pom.xml</relativePath>
8+
</parent>
9+
<modelVersion>4.0.0</modelVersion>
10+
<artifactId>volcengine-java-sdk-clawsentry</artifactId>
11+
<name>volcengine-java-sdk-clawsentry</name>
12+
<description>The Java SDK for Volcengine clawsentry</description>
13+
<dependencies>
14+
<dependency>
15+
<groupId>com.volcengine</groupId>
16+
<artifactId>volcengine-java-sdk-core</artifactId>
17+
<version>${project.version}</version>
18+
</dependency>
19+
</dependencies>
20+
<build>
21+
<plugins>
22+
<plugin>
23+
<groupId>org.apache.maven.plugins</groupId>
24+
<artifactId>maven-source-plugin</artifactId>
25+
<configuration>
26+
<excludes>
27+
<exclude>com/volcengine/clawsentry/examples/**</exclude>
28+
</excludes>
29+
</configuration>
30+
</plugin>
31+
<plugin>
32+
<groupId>org.apache.maven.plugins</groupId>
33+
<artifactId>maven-jar-plugin</artifactId>
34+
<configuration>
35+
<excludes>
36+
<exclude>com/volcengine/clawsentry/examples/**</exclude>
37+
</excludes>
38+
</configuration>
39+
</plugin>
40+
</plugins>
41+
</build>
42+
</project>
Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
/*
2+
* clawsentry
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: common-version
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.volcengine.clawsentry;
14+
15+
import com.volcengine.ApiCallback;
16+
import com.volcengine.ApiClient;
17+
import com.volcengine.ApiException;
18+
import com.volcengine.ApiResponse;
19+
import com.volcengine.Configuration;
20+
import com.volcengine.Pair;
21+
import com.volcengine.ProgressRequestBody;
22+
import com.volcengine.ProgressResponseBody;
23+
24+
import com.google.gson.reflect.TypeToken;
25+
26+
import java.io.IOException;
27+
28+
import javax.validation.constraints.*;
29+
30+
import com.volcengine.clawsentry.model.CreateClawRequest;
31+
import com.volcengine.clawsentry.model.CreateClawResponse;
32+
33+
import java.lang.reflect.Type;
34+
import java.util.ArrayList;
35+
import java.util.HashMap;
36+
import java.util.List;
37+
import java.util.Map;
38+
39+
public class ClawsentryApi {
40+
private ApiClient apiClient;
41+
42+
public ClawsentryApi() {
43+
this(Configuration.getDefaultApiClient());
44+
}
45+
46+
public ClawsentryApi(ApiClient apiClient) {
47+
this.apiClient = apiClient;
48+
}
49+
50+
public ApiClient getApiClient() {
51+
return apiClient;
52+
}
53+
54+
public void setApiClient(ApiClient apiClient) {
55+
this.apiClient = apiClient;
56+
}
57+
58+
/**
59+
* Build call for createClaw
60+
* @param body (required)
61+
* @param progressListener Progress listener
62+
* @param progressRequestListener Progress request listener
63+
* @return Call to execute
64+
* @throws ApiException If fail to serialize the request body object
65+
*/
66+
public com.squareup.okhttp.Call createClawCall(CreateClawRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
67+
Object localVarPostBody = body;
68+
69+
// create path and map variables
70+
String localVarPath = "/CreateClaw/2026-03-27/clawsentry/post/application_json/";
71+
72+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
73+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
74+
75+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
76+
77+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
78+
79+
final String[] localVarAccepts = {
80+
"application/json"
81+
};
82+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
83+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
84+
85+
final String[] localVarContentTypes = {
86+
"text/plain"
87+
};
88+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
89+
localVarHeaderParams.put("Content-Type", localVarContentType);
90+
91+
if(progressListener != null) {
92+
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
93+
@Override
94+
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
95+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
96+
return originalResponse.newBuilder()
97+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
98+
.build();
99+
}
100+
});
101+
}
102+
103+
String[] localVarAuthNames = new String[] { "volcengineSign" };
104+
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
105+
}
106+
107+
@SuppressWarnings("rawtypes")
108+
private com.squareup.okhttp.Call createClawValidateBeforeCall(CreateClawRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
109+
// verify the required parameter 'body' is set
110+
if (body == null) {
111+
throw new ApiException("Missing the required parameter 'body' when calling createClaw(Async)");
112+
}
113+
114+
com.squareup.okhttp.Call call = createClawCall(body, progressListener, progressRequestListener);
115+
return call;
116+
117+
118+
119+
120+
121+
}
122+
123+
/**
124+
*
125+
*
126+
* @param body (required)
127+
* @return CreateClawResponse
128+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
129+
*/
130+
public CreateClawResponse createClaw(CreateClawRequest body) throws ApiException {
131+
ApiResponse<CreateClawResponse> resp = createClawWithHttpInfo(body);
132+
return resp.getData();
133+
}
134+
135+
/**
136+
*
137+
*
138+
* @param body (required)
139+
* @return ApiResponse&lt;CreateClawResponse&gt;
140+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
141+
*/
142+
public ApiResponse<CreateClawResponse> createClawWithHttpInfo( @NotNull CreateClawRequest body) throws ApiException {
143+
com.squareup.okhttp.Call call = createClawValidateBeforeCall(body, null, null);
144+
Type localVarReturnType = new TypeToken<CreateClawResponse>(){}.getType();
145+
return apiClient.execute(call, localVarReturnType);
146+
}
147+
148+
/**
149+
* (asynchronously)
150+
*
151+
* @param body (required)
152+
* @param callback The callback to be executed when the API call finishes
153+
* @return The request call
154+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
155+
*/
156+
public com.squareup.okhttp.Call createClawAsync(CreateClawRequest body, final ApiCallback<CreateClawResponse> callback) throws ApiException {
157+
158+
ProgressResponseBody.ProgressListener progressListener = null;
159+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
160+
161+
if (callback != null) {
162+
progressListener = new ProgressResponseBody.ProgressListener() {
163+
@Override
164+
public void update(long bytesRead, long contentLength, boolean done) {
165+
callback.onDownloadProgress(bytesRead, contentLength, done);
166+
}
167+
};
168+
169+
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
170+
@Override
171+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
172+
callback.onUploadProgress(bytesWritten, contentLength, done);
173+
}
174+
};
175+
}
176+
177+
com.squareup.okhttp.Call call = createClawValidateBeforeCall(body, progressListener, progressRequestListener);
178+
Type localVarReturnType = new TypeToken<CreateClawResponse>(){}.getType();
179+
apiClient.executeAsync(call, localVarReturnType, callback);
180+
return call;
181+
}
182+
}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*
2+
* clawsentry
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: common-version
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.volcengine.clawsentry.model;
14+
15+
import java.util.Objects;
16+
import java.util.Arrays;
17+
import com.google.gson.TypeAdapter;
18+
import com.google.gson.annotations.JsonAdapter;
19+
import com.google.gson.annotations.SerializedName;
20+
import com.google.gson.stream.JsonReader;
21+
import com.google.gson.stream.JsonWriter;
22+
import io.swagger.v3.oas.annotations.media.Schema;
23+
import java.io.IOException;
24+
import javax.validation.constraints.*;
25+
import javax.validation.Valid;
26+
/**
27+
* BaseForCreateClawInput
28+
*/
29+
30+
31+
32+
public class BaseForCreateClawInput {
33+
@SerializedName("InstanceID")
34+
private String instanceID = null;
35+
36+
public BaseForCreateClawInput instanceID(String instanceID) {
37+
this.instanceID = instanceID;
38+
return this;
39+
}
40+
41+
/**
42+
* Get instanceID
43+
* @return instanceID
44+
**/
45+
@Schema(description = "")
46+
public String getInstanceID() {
47+
return instanceID;
48+
}
49+
50+
public void setInstanceID(String instanceID) {
51+
this.instanceID = instanceID;
52+
}
53+
54+
55+
@Override
56+
public boolean equals(java.lang.Object o) {
57+
if (this == o) {
58+
return true;
59+
}
60+
if (o == null || getClass() != o.getClass()) {
61+
return false;
62+
}
63+
BaseForCreateClawInput baseForCreateClawInput = (BaseForCreateClawInput) o;
64+
return Objects.equals(this.instanceID, baseForCreateClawInput.instanceID);
65+
}
66+
67+
@Override
68+
public int hashCode() {
69+
return Objects.hash(instanceID);
70+
}
71+
72+
73+
@Override
74+
public String toString() {
75+
StringBuilder sb = new StringBuilder();
76+
sb.append("class BaseForCreateClawInput {\n");
77+
78+
sb.append(" instanceID: ").append(toIndentedString(instanceID)).append("\n");
79+
sb.append("}");
80+
return sb.toString();
81+
}
82+
83+
/**
84+
* Convert the given object to string with each line indented by 4 spaces
85+
* (except the first line).
86+
*/
87+
private String toIndentedString(java.lang.Object o) {
88+
if (o == null) {
89+
return "null";
90+
}
91+
return o.toString().replace("\n", "\n ");
92+
}
93+
94+
}

0 commit comments

Comments
 (0)