Skip to content

Commit a2947f6

Browse files
author
BitsAdmin
committed
Merge branch 'kms-Java-2021-02-18-online-687-2024_10_17_18_59_08' into 'integration_2024-10-24_515996570370'
feat: [development task] kms-687-java (818771) See merge request iaasng/volcengine-java-sdk!271
2 parents aa7e89e + c624fb3 commit a2947f6

36 files changed

+7728
-399
lines changed

volcengine-java-sdk-kms/src/main/java/com/volcengine/kms/KmsApi.java

Lines changed: 2163 additions & 399 deletions
Large diffs are not rendered by default.
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/*
2+
* kms
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.kms.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+
* BackupSecretRequest
28+
*/
29+
30+
31+
32+
public class BackupSecretRequest {
33+
@SerializedName("SecretName")
34+
private String secretName = null;
35+
36+
public BackupSecretRequest secretName(String secretName) {
37+
this.secretName = secretName;
38+
return this;
39+
}
40+
41+
/**
42+
* Get secretName
43+
* @return secretName
44+
**/
45+
@NotNull
46+
@Size(min=2,max=31) @Schema(required = true, description = "")
47+
public String getSecretName() {
48+
return secretName;
49+
}
50+
51+
public void setSecretName(String secretName) {
52+
this.secretName = secretName;
53+
}
54+
55+
56+
@Override
57+
public boolean equals(java.lang.Object o) {
58+
if (this == o) {
59+
return true;
60+
}
61+
if (o == null || getClass() != o.getClass()) {
62+
return false;
63+
}
64+
BackupSecretRequest backupSecretRequest = (BackupSecretRequest) o;
65+
return Objects.equals(this.secretName, backupSecretRequest.secretName);
66+
}
67+
68+
@Override
69+
public int hashCode() {
70+
return Objects.hash(secretName);
71+
}
72+
73+
74+
@Override
75+
public String toString() {
76+
StringBuilder sb = new StringBuilder();
77+
sb.append("class BackupSecretRequest {\n");
78+
79+
sb.append(" secretName: ").append(toIndentedString(secretName)).append("\n");
80+
sb.append("}");
81+
return sb.toString();
82+
}
83+
84+
/**
85+
* Convert the given object to string with each line indented by 4 spaces
86+
* (except the first line).
87+
*/
88+
private String toIndentedString(java.lang.Object o) {
89+
if (o == null) {
90+
return "null";
91+
}
92+
return o.toString().replace("\n", "\n ");
93+
}
94+
95+
}
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
/*
2+
* kms
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.kms.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+
* BackupSecretResponse
28+
*/
29+
30+
31+
32+
public class BackupSecretResponse extends com.volcengine.model.AbstractResponse {
33+
@SerializedName("BackupData")
34+
private String backupData = null;
35+
36+
@SerializedName("SecretDataKey")
37+
private String secretDataKey = null;
38+
39+
@SerializedName("Signature")
40+
private String signature = null;
41+
42+
public BackupSecretResponse backupData(String backupData) {
43+
this.backupData = backupData;
44+
return this;
45+
}
46+
47+
/**
48+
* Get backupData
49+
* @return backupData
50+
**/
51+
@Schema(description = "")
52+
public String getBackupData() {
53+
return backupData;
54+
}
55+
56+
public void setBackupData(String backupData) {
57+
this.backupData = backupData;
58+
}
59+
60+
public BackupSecretResponse secretDataKey(String secretDataKey) {
61+
this.secretDataKey = secretDataKey;
62+
return this;
63+
}
64+
65+
/**
66+
* Get secretDataKey
67+
* @return secretDataKey
68+
**/
69+
@Schema(description = "")
70+
public String getSecretDataKey() {
71+
return secretDataKey;
72+
}
73+
74+
public void setSecretDataKey(String secretDataKey) {
75+
this.secretDataKey = secretDataKey;
76+
}
77+
78+
public BackupSecretResponse signature(String signature) {
79+
this.signature = signature;
80+
return this;
81+
}
82+
83+
/**
84+
* Get signature
85+
* @return signature
86+
**/
87+
@Schema(description = "")
88+
public String getSignature() {
89+
return signature;
90+
}
91+
92+
public void setSignature(String signature) {
93+
this.signature = signature;
94+
}
95+
96+
97+
@Override
98+
public boolean equals(java.lang.Object o) {
99+
if (this == o) {
100+
return true;
101+
}
102+
if (o == null || getClass() != o.getClass()) {
103+
return false;
104+
}
105+
BackupSecretResponse backupSecretResponse = (BackupSecretResponse) o;
106+
return Objects.equals(this.backupData, backupSecretResponse.backupData) &&
107+
Objects.equals(this.secretDataKey, backupSecretResponse.secretDataKey) &&
108+
Objects.equals(this.signature, backupSecretResponse.signature);
109+
}
110+
111+
@Override
112+
public int hashCode() {
113+
return Objects.hash(backupData, secretDataKey, signature);
114+
}
115+
116+
117+
@Override
118+
public String toString() {
119+
StringBuilder sb = new StringBuilder();
120+
sb.append("class BackupSecretResponse {\n");
121+
122+
sb.append(" backupData: ").append(toIndentedString(backupData)).append("\n");
123+
sb.append(" secretDataKey: ").append(toIndentedString(secretDataKey)).append("\n");
124+
sb.append(" signature: ").append(toIndentedString(signature)).append("\n");
125+
sb.append("}");
126+
return sb.toString();
127+
}
128+
129+
/**
130+
* Convert the given object to string with each line indented by 4 spaces
131+
* (except the first line).
132+
*/
133+
private String toIndentedString(java.lang.Object o) {
134+
if (o == null) {
135+
return "null";
136+
}
137+
return o.toString().replace("\n", "\n ");
138+
}
139+
140+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/*
2+
* kms
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.kms.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+
* BatchGetSecretValueRequest
30+
*/
31+
32+
33+
34+
public class BatchGetSecretValueRequest {
35+
@SerializedName("SecretNames")
36+
private List<String> secretNames = null;
37+
38+
public BatchGetSecretValueRequest secretNames(List<String> secretNames) {
39+
this.secretNames = secretNames;
40+
return this;
41+
}
42+
43+
public BatchGetSecretValueRequest addSecretNamesItem(String secretNamesItem) {
44+
if (this.secretNames == null) {
45+
this.secretNames = new ArrayList<String>();
46+
}
47+
this.secretNames.add(secretNamesItem);
48+
return this;
49+
}
50+
51+
/**
52+
* Get secretNames
53+
* @return secretNames
54+
**/
55+
@Schema(description = "")
56+
public List<String> getSecretNames() {
57+
return secretNames;
58+
}
59+
60+
public void setSecretNames(List<String> secretNames) {
61+
this.secretNames = secretNames;
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+
BatchGetSecretValueRequest batchGetSecretValueRequest = (BatchGetSecretValueRequest) o;
74+
return Objects.equals(this.secretNames, batchGetSecretValueRequest.secretNames);
75+
}
76+
77+
@Override
78+
public int hashCode() {
79+
return Objects.hash(secretNames);
80+
}
81+
82+
83+
@Override
84+
public String toString() {
85+
StringBuilder sb = new StringBuilder();
86+
sb.append("class BatchGetSecretValueRequest {\n");
87+
88+
sb.append(" secretNames: ").append(toIndentedString(secretNames)).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)