Skip to content

Commit 4b78eb2

Browse files
author
BitsAdmin
committed
Merge 'cbr-Java-2024-03-01-online-2278-2026_02_24_20_35_51' into 'integration_2026-02-26_1118052561922'
feat: [development task] cbr-2278-Java (2130098) See merge request: !892
2 parents 7416f99 + 43973f5 commit 4b78eb2

11 files changed

+376
-445
lines changed

volcengine-java-sdk-cbr/src/main/java/com/volcengine/cbr/model/DescribeZonesRequest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ public DescribeZonesRequest languageCode(String languageCode) {
6767
* Get languageCode
6868
* @return languageCode
6969
**/
70-
@NotNull
71-
@Schema(required = true, description = "")
70+
@Schema(description = "")
7271
public String getLanguageCode() {
7372
return languageCode;
7473
}

volcengine-java-sdk-cbr/src/main/java/com/volcengine/cbr/model/FiltersForDescribeBackupPoliciesInput.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131

3232
public class FiltersForDescribeBackupPoliciesInput {
3333
@SerializedName("EnablePolicy")
34-
private Boolean enablePolicy = null;
34+
private String enablePolicy = null;
3535

3636
@SerializedName("Name")
3737
private String name = null;
3838

3939
@SerializedName("PolicyId")
4040
private String policyId = null;
4141

42-
public FiltersForDescribeBackupPoliciesInput enablePolicy(Boolean enablePolicy) {
42+
public FiltersForDescribeBackupPoliciesInput enablePolicy(String enablePolicy) {
4343
this.enablePolicy = enablePolicy;
4444
return this;
4545
}
@@ -49,11 +49,11 @@ public FiltersForDescribeBackupPoliciesInput enablePolicy(Boolean enablePolicy)
4949
* @return enablePolicy
5050
**/
5151
@Schema(description = "")
52-
public Boolean isEnablePolicy() {
52+
public String getEnablePolicy() {
5353
return enablePolicy;
5454
}
5555

56-
public void setEnablePolicy(Boolean enablePolicy) {
56+
public void setEnablePolicy(String enablePolicy) {
5757
this.enablePolicy = enablePolicy;
5858
}
5959

volcengine-java-sdk-cbr/src/main/java/com/volcengine/cbr/model/FiltersForDescribeRestoreJobsInput.java

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,51 @@ public class FiltersForDescribeRestoreJobsInput {
3333
@SerializedName("RecoveryPointId")
3434
private String recoveryPointId = null;
3535

36-
@SerializedName("ResourceType")
37-
private String resourceType = null;
36+
/**
37+
* Gets or Sets resourceType
38+
*/
39+
@JsonAdapter(ResourceTypeEnum.Adapter.class)
40+
public enum ResourceTypeEnum {
41+
@SerializedName("ECS")
42+
ECS("ECS"),
43+
@SerializedName("vePFS")
44+
VEPFS("vePFS");
45+
46+
private String value;
47+
48+
ResourceTypeEnum(String value) {
49+
this.value = value;
50+
}
51+
public String getValue() {
52+
return value;
53+
}
54+
55+
@Override
56+
public String toString() {
57+
return String.valueOf(value);
58+
}
59+
public static ResourceTypeEnum fromValue(String input) {
60+
for (ResourceTypeEnum b : ResourceTypeEnum.values()) {
61+
if (b.value.equals(input)) {
62+
return b;
63+
}
64+
}
65+
return null;
66+
}
67+
public static class Adapter extends TypeAdapter<ResourceTypeEnum> {
68+
@Override
69+
public void write(final JsonWriter jsonWriter, final ResourceTypeEnum enumeration) throws IOException {
70+
jsonWriter.value(String.valueOf(enumeration.getValue()));
71+
}
72+
73+
@Override
74+
public ResourceTypeEnum read(final JsonReader jsonReader) throws IOException {
75+
Object value = jsonReader.nextString();
76+
return ResourceTypeEnum.fromValue((String)(value));
77+
}
78+
}
79+
} @SerializedName("ResourceType")
80+
private ResourceTypeEnum resourceType = null;
3881

3982
@SerializedName("RestoreJobId")
4083
private String restoreJobId = null;
@@ -60,7 +103,7 @@ public void setRecoveryPointId(String recoveryPointId) {
60103
this.recoveryPointId = recoveryPointId;
61104
}
62105

63-
public FiltersForDescribeRestoreJobsInput resourceType(String resourceType) {
106+
public FiltersForDescribeRestoreJobsInput resourceType(ResourceTypeEnum resourceType) {
64107
this.resourceType = resourceType;
65108
return this;
66109
}
@@ -70,11 +113,11 @@ public FiltersForDescribeRestoreJobsInput resourceType(String resourceType) {
70113
* @return resourceType
71114
**/
72115
@Schema(description = "")
73-
public String getResourceType() {
116+
public ResourceTypeEnum getResourceType() {
74117
return resourceType;
75118
}
76119

77-
public void setResourceType(String resourceType) {
120+
public void setResourceType(ResourceTypeEnum resourceType) {
78121
this.resourceType = resourceType;
79122
}
80123

volcengine-java-sdk-cbr/src/main/java/com/volcengine/cbr/model/JobForDescribeRestoreJobsOutput.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ public ResourceTypeEnum read(final JsonReader jsonReader) throws IOException {
9191
} @SerializedName("ResourceType")
9292
private ResourceTypeEnum resourceType = null;
9393

94+
@SerializedName("RestoreOptions")
95+
private String restoreOptions = null;
96+
9497
/**
9598
* Gets or Sets status
9699
*/
@@ -249,6 +252,24 @@ public void setResourceType(ResourceTypeEnum resourceType) {
249252
this.resourceType = resourceType;
250253
}
251254

255+
public JobForDescribeRestoreJobsOutput restoreOptions(String restoreOptions) {
256+
this.restoreOptions = restoreOptions;
257+
return this;
258+
}
259+
260+
/**
261+
* Get restoreOptions
262+
* @return restoreOptions
263+
**/
264+
@Schema(description = "")
265+
public String getRestoreOptions() {
266+
return restoreOptions;
267+
}
268+
269+
public void setRestoreOptions(String restoreOptions) {
270+
this.restoreOptions = restoreOptions;
271+
}
272+
252273
public JobForDescribeRestoreJobsOutput status(StatusEnum status) {
253274
this.status = status;
254275
return this;
@@ -283,12 +304,13 @@ public boolean equals(java.lang.Object o) {
283304
Objects.equals(this.recoveryPointId, jobForDescribeRestoreJobsOutput.recoveryPointId) &&
284305
Objects.equals(this.recoveryPointName, jobForDescribeRestoreJobsOutput.recoveryPointName) &&
285306
Objects.equals(this.resourceType, jobForDescribeRestoreJobsOutput.resourceType) &&
307+
Objects.equals(this.restoreOptions, jobForDescribeRestoreJobsOutput.restoreOptions) &&
286308
Objects.equals(this.status, jobForDescribeRestoreJobsOutput.status);
287309
}
288310

289311
@Override
290312
public int hashCode() {
291-
return Objects.hash(extraMetadata, jobId, name, recoveryPointId, recoveryPointName, resourceType, status);
313+
return Objects.hash(extraMetadata, jobId, name, recoveryPointId, recoveryPointName, resourceType, restoreOptions, status);
292314
}
293315

294316

@@ -303,6 +325,7 @@ public String toString() {
303325
sb.append(" recoveryPointId: ").append(toIndentedString(recoveryPointId)).append("\n");
304326
sb.append(" recoveryPointName: ").append(toIndentedString(recoveryPointName)).append("\n");
305327
sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n");
328+
sb.append(" restoreOptions: ").append(toIndentedString(restoreOptions)).append("\n");
306329
sb.append(" status: ").append(toIndentedString(status)).append("\n");
307330
sb.append("}");
308331
return sb.toString();

volcengine-java-sdk-cbr/src/main/java/com/volcengine/cbr/model/MetaInformationForCreateBackupPlanInput.java

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)