Skip to content

Commit 3012a63

Browse files
author
BitsAdmin
committed
Merge branch 'ecs-Java-2020-04-01-online-999-2025_02_28_12_01_46' into 'integration_2025-03-06_777203837442'
feat: [development task] ecs-999-Java (1059815) See merge request iaasng/volcengine-java-sdk!395
2 parents 381e4b9 + 49b9ea5 commit 3012a63

15 files changed

+1691
-8
lines changed

volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/EcsApi.java

Lines changed: 378 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
/*
2+
* ecs
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.ecs.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+
* CreateHpcClusterRequest
28+
*/
29+
30+
31+
32+
public class CreateHpcClusterRequest {
33+
@SerializedName("ClientToken")
34+
private String clientToken = null;
35+
36+
@SerializedName("Description")
37+
private String description = null;
38+
39+
@SerializedName("Name")
40+
private String name = null;
41+
42+
@SerializedName("ZoneId")
43+
private String zoneId = null;
44+
45+
public CreateHpcClusterRequest 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 CreateHpcClusterRequest description(String description) {
64+
this.description = description;
65+
return this;
66+
}
67+
68+
/**
69+
* Get description
70+
* @return description
71+
**/
72+
@Schema(description = "")
73+
public String getDescription() {
74+
return description;
75+
}
76+
77+
public void setDescription(String description) {
78+
this.description = description;
79+
}
80+
81+
public CreateHpcClusterRequest name(String name) {
82+
this.name = name;
83+
return this;
84+
}
85+
86+
/**
87+
* Get name
88+
* @return name
89+
**/
90+
@NotNull
91+
@Schema(required = true, description = "")
92+
public String getName() {
93+
return name;
94+
}
95+
96+
public void setName(String name) {
97+
this.name = name;
98+
}
99+
100+
public CreateHpcClusterRequest zoneId(String zoneId) {
101+
this.zoneId = zoneId;
102+
return this;
103+
}
104+
105+
/**
106+
* Get zoneId
107+
* @return zoneId
108+
**/
109+
@NotNull
110+
@Schema(required = true, description = "")
111+
public String getZoneId() {
112+
return zoneId;
113+
}
114+
115+
public void setZoneId(String zoneId) {
116+
this.zoneId = zoneId;
117+
}
118+
119+
120+
@Override
121+
public boolean equals(java.lang.Object o) {
122+
if (this == o) {
123+
return true;
124+
}
125+
if (o == null || getClass() != o.getClass()) {
126+
return false;
127+
}
128+
CreateHpcClusterRequest createHpcClusterRequest = (CreateHpcClusterRequest) o;
129+
return Objects.equals(this.clientToken, createHpcClusterRequest.clientToken) &&
130+
Objects.equals(this.description, createHpcClusterRequest.description) &&
131+
Objects.equals(this.name, createHpcClusterRequest.name) &&
132+
Objects.equals(this.zoneId, createHpcClusterRequest.zoneId);
133+
}
134+
135+
@Override
136+
public int hashCode() {
137+
return Objects.hash(clientToken, description, name, zoneId);
138+
}
139+
140+
141+
@Override
142+
public String toString() {
143+
StringBuilder sb = new StringBuilder();
144+
sb.append("class CreateHpcClusterRequest {\n");
145+
146+
sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n");
147+
sb.append(" description: ").append(toIndentedString(description)).append("\n");
148+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
149+
sb.append(" zoneId: ").append(toIndentedString(zoneId)).append("\n");
150+
sb.append("}");
151+
return sb.toString();
152+
}
153+
154+
/**
155+
* Convert the given object to string with each line indented by 4 spaces
156+
* (except the first line).
157+
*/
158+
private String toIndentedString(java.lang.Object o) {
159+
if (o == null) {
160+
return "null";
161+
}
162+
return o.toString().replace("\n", "\n ");
163+
}
164+
165+
}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*
2+
* ecs
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.ecs.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+
* CreateHpcClusterResponse
28+
*/
29+
30+
31+
32+
public class CreateHpcClusterResponse extends com.volcengine.model.AbstractResponse {
33+
@SerializedName("HpcClusterId")
34+
private String hpcClusterId = null;
35+
36+
public CreateHpcClusterResponse hpcClusterId(String hpcClusterId) {
37+
this.hpcClusterId = hpcClusterId;
38+
return this;
39+
}
40+
41+
/**
42+
* Get hpcClusterId
43+
* @return hpcClusterId
44+
**/
45+
@Schema(description = "")
46+
public String getHpcClusterId() {
47+
return hpcClusterId;
48+
}
49+
50+
public void setHpcClusterId(String hpcClusterId) {
51+
this.hpcClusterId = hpcClusterId;
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+
CreateHpcClusterResponse createHpcClusterResponse = (CreateHpcClusterResponse) o;
64+
return Objects.equals(this.hpcClusterId, createHpcClusterResponse.hpcClusterId);
65+
}
66+
67+
@Override
68+
public int hashCode() {
69+
return Objects.hash(hpcClusterId);
70+
}
71+
72+
73+
@Override
74+
public String toString() {
75+
StringBuilder sb = new StringBuilder();
76+
sb.append("class CreateHpcClusterResponse {\n");
77+
78+
sb.append(" hpcClusterId: ").append(toIndentedString(hpcClusterId)).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+
}

volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateScheduledInstancesRequest.java

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public class CreateScheduledInstancesRequest {
4545
@SerializedName("Count")
4646
private Integer count = null;
4747

48+
@SerializedName("CpuMaxFrequency")
49+
private Float cpuMaxFrequency = null;
50+
4851
@SerializedName("DeliveryType")
4952
private String deliveryType = null;
5053

@@ -87,6 +90,9 @@ public class CreateScheduledInstancesRequest {
8790
@SerializedName("KeyPairName")
8891
private String keyPairName = null;
8992

93+
@SerializedName("MinCount")
94+
private Integer minCount = null;
95+
9096
@SerializedName("NetworkInterfaces")
9197
private List<NetworkInterfaceForCreateScheduledInstancesInput> networkInterfaces = null;
9298

@@ -180,6 +186,24 @@ public void setCount(Integer count) {
180186
this.count = count;
181187
}
182188

189+
public CreateScheduledInstancesRequest cpuMaxFrequency(Float cpuMaxFrequency) {
190+
this.cpuMaxFrequency = cpuMaxFrequency;
191+
return this;
192+
}
193+
194+
/**
195+
* Get cpuMaxFrequency
196+
* @return cpuMaxFrequency
197+
**/
198+
@Schema(description = "")
199+
public Float getCpuMaxFrequency() {
200+
return cpuMaxFrequency;
201+
}
202+
203+
public void setCpuMaxFrequency(Float cpuMaxFrequency) {
204+
this.cpuMaxFrequency = cpuMaxFrequency;
205+
}
206+
183207
public CreateScheduledInstancesRequest deliveryType(String deliveryType) {
184208
this.deliveryType = deliveryType;
185209
return this;
@@ -436,6 +460,24 @@ public void setKeyPairName(String keyPairName) {
436460
this.keyPairName = keyPairName;
437461
}
438462

463+
public CreateScheduledInstancesRequest minCount(Integer minCount) {
464+
this.minCount = minCount;
465+
return this;
466+
}
467+
468+
/**
469+
* Get minCount
470+
* @return minCount
471+
**/
472+
@Schema(description = "")
473+
public Integer getMinCount() {
474+
return minCount;
475+
}
476+
477+
public void setMinCount(Integer minCount) {
478+
this.minCount = minCount;
479+
}
480+
439481
public CreateScheduledInstancesRequest networkInterfaces(List<NetworkInterfaceForCreateScheduledInstancesInput> networkInterfaces) {
440482
this.networkInterfaces = networkInterfaces;
441483
return this;
@@ -712,6 +754,7 @@ public boolean equals(java.lang.Object o) {
712754
return Objects.equals(this.autoReleaseAt, createScheduledInstancesRequest.autoReleaseAt) &&
713755
Objects.equals(this.clientToken, createScheduledInstancesRequest.clientToken) &&
714756
Objects.equals(this.count, createScheduledInstancesRequest.count) &&
757+
Objects.equals(this.cpuMaxFrequency, createScheduledInstancesRequest.cpuMaxFrequency) &&
715758
Objects.equals(this.deliveryType, createScheduledInstancesRequest.deliveryType) &&
716759
Objects.equals(this.description, createScheduledInstancesRequest.description) &&
717760
Objects.equals(this.dryRun, createScheduledInstancesRequest.dryRun) &&
@@ -726,6 +769,7 @@ public boolean equals(java.lang.Object o) {
726769
Objects.equals(this.instanceTypeId, createScheduledInstancesRequest.instanceTypeId) &&
727770
Objects.equals(this.keepImageCredential, createScheduledInstancesRequest.keepImageCredential) &&
728771
Objects.equals(this.keyPairName, createScheduledInstancesRequest.keyPairName) &&
772+
Objects.equals(this.minCount, createScheduledInstancesRequest.minCount) &&
729773
Objects.equals(this.networkInterfaces, createScheduledInstancesRequest.networkInterfaces) &&
730774
Objects.equals(this.password, createScheduledInstancesRequest.password) &&
731775
Objects.equals(this.projectName, createScheduledInstancesRequest.projectName) &&
@@ -743,7 +787,7 @@ public boolean equals(java.lang.Object o) {
743787

744788
@Override
745789
public int hashCode() {
746-
return Objects.hash(autoReleaseAt, clientToken, count, deliveryType, description, dryRun, eipAddress, elasticScheduledInstanceType, endDeliveryAt, hostname, hpcClusterId, imageId, installRunCommandAgent, instanceName, instanceTypeId, keepImageCredential, keyPairName, networkInterfaces, password, projectName, scheduledInstanceDescription, scheduledInstanceName, securityEnhancementStrategy, startDeliveryAt, suffixIndex, tags, uniqueSuffix, userData, volumes, zoneId);
790+
return Objects.hash(autoReleaseAt, clientToken, count, cpuMaxFrequency, deliveryType, description, dryRun, eipAddress, elasticScheduledInstanceType, endDeliveryAt, hostname, hpcClusterId, imageId, installRunCommandAgent, instanceName, instanceTypeId, keepImageCredential, keyPairName, minCount, networkInterfaces, password, projectName, scheduledInstanceDescription, scheduledInstanceName, securityEnhancementStrategy, startDeliveryAt, suffixIndex, tags, uniqueSuffix, userData, volumes, zoneId);
747791
}
748792

749793

@@ -755,6 +799,7 @@ public String toString() {
755799
sb.append(" autoReleaseAt: ").append(toIndentedString(autoReleaseAt)).append("\n");
756800
sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n");
757801
sb.append(" count: ").append(toIndentedString(count)).append("\n");
802+
sb.append(" cpuMaxFrequency: ").append(toIndentedString(cpuMaxFrequency)).append("\n");
758803
sb.append(" deliveryType: ").append(toIndentedString(deliveryType)).append("\n");
759804
sb.append(" description: ").append(toIndentedString(description)).append("\n");
760805
sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n");
@@ -769,6 +814,7 @@ public String toString() {
769814
sb.append(" instanceTypeId: ").append(toIndentedString(instanceTypeId)).append("\n");
770815
sb.append(" keepImageCredential: ").append(toIndentedString(keepImageCredential)).append("\n");
771816
sb.append(" keyPairName: ").append(toIndentedString(keyPairName)).append("\n");
817+
sb.append(" minCount: ").append(toIndentedString(minCount)).append("\n");
772818
sb.append(" networkInterfaces: ").append(toIndentedString(networkInterfaces)).append("\n");
773819
sb.append(" password: ").append(toIndentedString(password)).append("\n");
774820
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");

0 commit comments

Comments
 (0)