Skip to content

Commit 6f57f95

Browse files
Merge 'private_zone-Java-2022-06-01-online-1197-2025_05_23_10_36_35' into 'integration_2025-05-29_924616531202'
feat: [development task] private_zone-1197-Java (1273669) See merge request: !509
2 parents 9aef948 + a8d2454 commit 6f57f95

File tree

137 files changed

+26313
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+26313
-0
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@
282282
<module>volcengine-java-sdk-bmq20240901</module>
283283
<module>volcengine-java-sdk-quota</module>
284284
<module>volcengine-java-sdk-seccenter20240508</module>
285+
<module>volcengine-java-sdk-privatezone</module>
285286
<module>volcengine-java-sdk-acep</module>
286287
</modules>
287288
</project>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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>0.2.13</version>
7+
<relativePath>../pom.xml</relativePath>
8+
</parent>
9+
<modelVersion>4.0.0</modelVersion>
10+
<artifactId>volcengine-java-sdk-privatezone</artifactId>
11+
<dependencies>
12+
<dependency>
13+
<groupId>com.volcengine</groupId>
14+
<artifactId>volcengine-java-sdk-core</artifactId>
15+
<version>${project.version}</version>
16+
</dependency>
17+
</dependencies>
18+
<build>
19+
<plugins>
20+
<plugin>
21+
<groupId>org.apache.maven.plugins</groupId>
22+
<artifactId>maven-source-plugin</artifactId>
23+
<configuration>
24+
<excludes>
25+
<exclude>com/volcengine/privatezone/examples/**</exclude>
26+
</excludes>
27+
</configuration>
28+
</plugin>
29+
<plugin>
30+
<groupId>org.apache.maven.plugins</groupId>
31+
<artifactId>maven-jar-plugin</artifactId>
32+
<configuration>
33+
<excludes>
34+
<exclude>com/volcengine/privatezone/examples/**</exclude>
35+
</excludes>
36+
</configuration>
37+
</plugin>
38+
</plugins>
39+
</build>
40+
</project>

volcengine-java-sdk-privatezone/src/main/java/com/volcengine/privatezone/PrivateZoneApi.java

Lines changed: 5474 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
/*
2+
* private_zone
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.privatezone.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 com.volcengine.privatezone.model.RecordForBatchCreateRecordInput;
23+
import io.swagger.v3.oas.annotations.media.Schema;
24+
import java.io.IOException;
25+
import java.util.ArrayList;
26+
import java.util.List;
27+
import javax.validation.constraints.*;
28+
import javax.validation.Valid;
29+
/**
30+
* BatchCreateRecordRequest
31+
*/
32+
33+
34+
35+
public class BatchCreateRecordRequest {
36+
@SerializedName("ClientToken")
37+
private String clientToken = null;
38+
39+
@SerializedName("Records")
40+
private List<RecordForBatchCreateRecordInput> records = null;
41+
42+
@SerializedName("ZID")
43+
private Long ZID = null;
44+
45+
public BatchCreateRecordRequest clientToken(String clientToken) {
46+
this.clientToken = clientToken;
47+
return this;
48+
}
49+
50+
/**
51+
* Get clientToken
52+
* @return clientToken
53+
**/
54+
@Schema(description = "")
55+
public String getClientToken() {
56+
return clientToken;
57+
}
58+
59+
public void setClientToken(String clientToken) {
60+
this.clientToken = clientToken;
61+
}
62+
63+
public BatchCreateRecordRequest records(List<RecordForBatchCreateRecordInput> records) {
64+
this.records = records;
65+
return this;
66+
}
67+
68+
public BatchCreateRecordRequest addRecordsItem(RecordForBatchCreateRecordInput recordsItem) {
69+
if (this.records == null) {
70+
this.records = new ArrayList<RecordForBatchCreateRecordInput>();
71+
}
72+
this.records.add(recordsItem);
73+
return this;
74+
}
75+
76+
/**
77+
* Get records
78+
* @return records
79+
**/
80+
@Valid
81+
@Schema(description = "")
82+
public List<RecordForBatchCreateRecordInput> getRecords() {
83+
return records;
84+
}
85+
86+
public void setRecords(List<RecordForBatchCreateRecordInput> records) {
87+
this.records = records;
88+
}
89+
90+
public BatchCreateRecordRequest ZID(Long ZID) {
91+
this.ZID = ZID;
92+
return this;
93+
}
94+
95+
/**
96+
* Get ZID
97+
* @return ZID
98+
**/
99+
@NotNull
100+
@Schema(required = true, description = "")
101+
public Long getZID() {
102+
return ZID;
103+
}
104+
105+
public void setZID(Long ZID) {
106+
this.ZID = ZID;
107+
}
108+
109+
110+
@Override
111+
public boolean equals(java.lang.Object o) {
112+
if (this == o) {
113+
return true;
114+
}
115+
if (o == null || getClass() != o.getClass()) {
116+
return false;
117+
}
118+
BatchCreateRecordRequest batchCreateRecordRequest = (BatchCreateRecordRequest) o;
119+
return Objects.equals(this.clientToken, batchCreateRecordRequest.clientToken) &&
120+
Objects.equals(this.records, batchCreateRecordRequest.records) &&
121+
Objects.equals(this.ZID, batchCreateRecordRequest.ZID);
122+
}
123+
124+
@Override
125+
public int hashCode() {
126+
return Objects.hash(clientToken, records, ZID);
127+
}
128+
129+
130+
@Override
131+
public String toString() {
132+
StringBuilder sb = new StringBuilder();
133+
sb.append("class BatchCreateRecordRequest {\n");
134+
135+
sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n");
136+
sb.append(" records: ").append(toIndentedString(records)).append("\n");
137+
sb.append(" ZID: ").append(toIndentedString(ZID)).append("\n");
138+
sb.append("}");
139+
return sb.toString();
140+
}
141+
142+
/**
143+
* Convert the given object to string with each line indented by 4 spaces
144+
* (except the first line).
145+
*/
146+
private String toIndentedString(java.lang.Object o) {
147+
if (o == null) {
148+
return "null";
149+
}
150+
return o.toString().replace("\n", "\n ");
151+
}
152+
153+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/*
2+
* private_zone
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.privatezone.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 java.util.ArrayList;
25+
import java.util.List;
26+
import javax.validation.constraints.*;
27+
import javax.validation.Valid;
28+
/**
29+
* BatchCreateRecordResponse
30+
*/
31+
32+
33+
34+
public class BatchCreateRecordResponse extends com.volcengine.model.AbstractResponse {
35+
@SerializedName("RecordIDs")
36+
private List<String> recordIDs = null;
37+
38+
public BatchCreateRecordResponse recordIDs(List<String> recordIDs) {
39+
this.recordIDs = recordIDs;
40+
return this;
41+
}
42+
43+
public BatchCreateRecordResponse addRecordIDsItem(String recordIDsItem) {
44+
if (this.recordIDs == null) {
45+
this.recordIDs = new ArrayList<String>();
46+
}
47+
this.recordIDs.add(recordIDsItem);
48+
return this;
49+
}
50+
51+
/**
52+
* Get recordIDs
53+
* @return recordIDs
54+
**/
55+
@Schema(description = "")
56+
public List<String> getRecordIDs() {
57+
return recordIDs;
58+
}
59+
60+
public void setRecordIDs(List<String> recordIDs) {
61+
this.recordIDs = recordIDs;
62+
}
63+
64+
65+
@Override
66+
public boolean equals(java.lang.Object o) {
67+
if (this == o) {
68+
return true;
69+
}
70+
if (o == null || getClass() != o.getClass()) {
71+
return false;
72+
}
73+
BatchCreateRecordResponse batchCreateRecordResponse = (BatchCreateRecordResponse) o;
74+
return Objects.equals(this.recordIDs, batchCreateRecordResponse.recordIDs);
75+
}
76+
77+
@Override
78+
public int hashCode() {
79+
return Objects.hash(recordIDs);
80+
}
81+
82+
83+
@Override
84+
public String toString() {
85+
StringBuilder sb = new StringBuilder();
86+
sb.append("class BatchCreateRecordResponse {\n");
87+
88+
sb.append(" recordIDs: ").append(toIndentedString(recordIDs)).append("\n");
89+
sb.append("}");
90+
return sb.toString();
91+
}
92+
93+
/**
94+
* Convert the given object to string with each line indented by 4 spaces
95+
* (except the first line).
96+
*/
97+
private String toIndentedString(java.lang.Object o) {
98+
if (o == null) {
99+
return "null";
100+
}
101+
return o.toString().replace("\n", "\n ");
102+
}
103+
104+
}

0 commit comments

Comments
 (0)