Skip to content

Commit 154da09

Browse files
author
BitsAdmin
committed
Merge branch 'storage_ebs-Java-2020-04-01-online-981-2025_02_19_19_29_45' into 'integration_2025-02-20_759260291074'
feat: [development task] storage_ebs-981-Java (1027512) See merge request iaasng/volcengine-java-sdk!382
2 parents 3844035 + 83adae2 commit 154da09

23 files changed

+2444
-13
lines changed

volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/StorageEbsApi.java

Lines changed: 504 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
/*
2+
* storage_ebs
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.storageebs.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+
* AutoRenewReservedStorageCapacityRequest
28+
*/
29+
30+
31+
32+
public class AutoRenewReservedStorageCapacityRequest {
33+
@SerializedName("Period")
34+
private Integer period = null;
35+
36+
@SerializedName("PeriodUnit")
37+
private String periodUnit = null;
38+
39+
@SerializedName("RSCAutoRenew")
40+
private Boolean rsCAutoRenew = null;
41+
42+
@SerializedName("RSCId")
43+
private String rsCId = null;
44+
45+
public AutoRenewReservedStorageCapacityRequest period(Integer period) {
46+
this.period = period;
47+
return this;
48+
}
49+
50+
/**
51+
* Get period
52+
* @return period
53+
**/
54+
@Schema(description = "")
55+
public Integer getPeriod() {
56+
return period;
57+
}
58+
59+
public void setPeriod(Integer period) {
60+
this.period = period;
61+
}
62+
63+
public AutoRenewReservedStorageCapacityRequest periodUnit(String periodUnit) {
64+
this.periodUnit = periodUnit;
65+
return this;
66+
}
67+
68+
/**
69+
* Get periodUnit
70+
* @return periodUnit
71+
**/
72+
@Schema(description = "")
73+
public String getPeriodUnit() {
74+
return periodUnit;
75+
}
76+
77+
public void setPeriodUnit(String periodUnit) {
78+
this.periodUnit = periodUnit;
79+
}
80+
81+
public AutoRenewReservedStorageCapacityRequest rsCAutoRenew(Boolean rsCAutoRenew) {
82+
this.rsCAutoRenew = rsCAutoRenew;
83+
return this;
84+
}
85+
86+
/**
87+
* Get rsCAutoRenew
88+
* @return rsCAutoRenew
89+
**/
90+
@Schema(description = "")
91+
public Boolean isRsCAutoRenew() {
92+
return rsCAutoRenew;
93+
}
94+
95+
public void setRsCAutoRenew(Boolean rsCAutoRenew) {
96+
this.rsCAutoRenew = rsCAutoRenew;
97+
}
98+
99+
public AutoRenewReservedStorageCapacityRequest rsCId(String rsCId) {
100+
this.rsCId = rsCId;
101+
return this;
102+
}
103+
104+
/**
105+
* Get rsCId
106+
* @return rsCId
107+
**/
108+
@NotNull
109+
@Schema(required = true, description = "")
110+
public String getRsCId() {
111+
return rsCId;
112+
}
113+
114+
public void setRsCId(String rsCId) {
115+
this.rsCId = rsCId;
116+
}
117+
118+
119+
@Override
120+
public boolean equals(java.lang.Object o) {
121+
if (this == o) {
122+
return true;
123+
}
124+
if (o == null || getClass() != o.getClass()) {
125+
return false;
126+
}
127+
AutoRenewReservedStorageCapacityRequest autoRenewReservedStorageCapacityRequest = (AutoRenewReservedStorageCapacityRequest) o;
128+
return Objects.equals(this.period, autoRenewReservedStorageCapacityRequest.period) &&
129+
Objects.equals(this.periodUnit, autoRenewReservedStorageCapacityRequest.periodUnit) &&
130+
Objects.equals(this.rsCAutoRenew, autoRenewReservedStorageCapacityRequest.rsCAutoRenew) &&
131+
Objects.equals(this.rsCId, autoRenewReservedStorageCapacityRequest.rsCId);
132+
}
133+
134+
@Override
135+
public int hashCode() {
136+
return Objects.hash(period, periodUnit, rsCAutoRenew, rsCId);
137+
}
138+
139+
140+
@Override
141+
public String toString() {
142+
StringBuilder sb = new StringBuilder();
143+
sb.append("class AutoRenewReservedStorageCapacityRequest {\n");
144+
145+
sb.append(" period: ").append(toIndentedString(period)).append("\n");
146+
sb.append(" periodUnit: ").append(toIndentedString(periodUnit)).append("\n");
147+
sb.append(" rsCAutoRenew: ").append(toIndentedString(rsCAutoRenew)).append("\n");
148+
sb.append(" rsCId: ").append(toIndentedString(rsCId)).append("\n");
149+
sb.append("}");
150+
return sb.toString();
151+
}
152+
153+
/**
154+
* Convert the given object to string with each line indented by 4 spaces
155+
* (except the first line).
156+
*/
157+
private String toIndentedString(java.lang.Object o) {
158+
if (o == null) {
159+
return "null";
160+
}
161+
return o.toString().replace("\n", "\n ");
162+
}
163+
164+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/*
2+
* storage_ebs
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.storageebs.model;
14+
15+
import java.util.Objects;
16+
import java.util.Arrays;
17+
import javax.validation.constraints.*;
18+
import javax.validation.Valid;
19+
/**
20+
* AutoRenewReservedStorageCapacityResponse
21+
*/
22+
23+
24+
25+
public class AutoRenewReservedStorageCapacityResponse extends com.volcengine.model.AbstractResponse {
26+
27+
@Override
28+
public boolean equals(java.lang.Object o) {
29+
if (this == o) {
30+
return true;
31+
}
32+
if (o == null || getClass() != o.getClass()) {
33+
return false;
34+
}
35+
return true;
36+
}
37+
38+
@Override
39+
public int hashCode() {
40+
return Objects.hash();
41+
}
42+
43+
44+
@Override
45+
public String toString() {
46+
StringBuilder sb = new StringBuilder();
47+
sb.append("class AutoRenewReservedStorageCapacityResponse {\n");
48+
49+
sb.append("}");
50+
return sb.toString();
51+
}
52+
53+
/**
54+
* Convert the given object to string with each line indented by 4 spaces
55+
* (except the first line).
56+
*/
57+
private String toIndentedString(java.lang.Object o) {
58+
if (o == null) {
59+
return "null";
60+
}
61+
return o.toString().replace("\n", "\n ");
62+
}
63+
64+
}

0 commit comments

Comments
 (0)