Skip to content

Commit

Permalink
Build java SDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 20, 2024
1 parent 069b818 commit a97963d
Show file tree
Hide file tree
Showing 29 changed files with 1,099 additions and 32 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-ecs/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-12-20 Version: 5.11.15
- Build java SDK.

2024-11-22 Version: 5.11.14
- Support importImage with clientToken.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-ecs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-ecs</artifactId>
<packaging>jar</packaging>
<version>5.11.14</version>
<version>5.11.15</version>
<name>aliyun-java-sdk-ecs</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ public void setLaunchTemplateConfigs(List<LaunchTemplateConfig> launchTemplateCo
putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".SecondaryNetworkInterface." + (depth2 + 1) + ".VSwitchId" , launchTemplateConfigs.get(depth1).getSecondaryNetworkInterfaces().get(depth2).getVSwitchId());
}
}
putQueryParameter("LaunchTemplateConfig." + (depth1 + 1) + ".ImageId" , launchTemplateConfigs.get(depth1).getImageId());
}
}
}
Expand Down Expand Up @@ -1248,6 +1249,8 @@ public static class LaunchTemplateConfig {

private List<SecondaryNetworkInterface> secondaryNetworkInterfaces;

private String imageId;

public String getVSwitchId() {
return this.vSwitchId;
}
Expand Down Expand Up @@ -1352,6 +1355,14 @@ public void setSecondaryNetworkInterfaces(List<SecondaryNetworkInterface> second
this.secondaryNetworkInterfaces = secondaryNetworkInterfaces;
}

public String getImageId() {
return this.imageId;
}

public void setImageId(String imageId) {
this.imageId = imageId;
}

public static class SecondaryNetworkInterface {

private String vSwitchId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public class CreateImageRequest extends RpcAcsRequest<CreateImageResponse> {

private String resourceGroupId;

private Features features;

private String bootMode;

private String imageName;
Expand Down Expand Up @@ -152,6 +154,18 @@ public void setResourceGroupId(String resourceGroupId) {
}
}

public Features getFeatures() {
return this.features;
}

public void setFeatures(Features features) {
this.features = features;
if (features != null) {

putQueryParameter("Features.ImdsSupport" , features.getImdsSupport());
}
}

public String getBootMode() {
return this.bootMode;
}
Expand Down Expand Up @@ -319,6 +333,19 @@ public void setDevice(String device) {
}
}

public static class Features {

private String imdsSupport;

public String getImdsSupport() {
return this.imdsSupport;
}

public void setImdsSupport(String imdsSupport) {
this.imdsSupport = imdsSupport;
}
}

public static class Tag {

private String value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,23 @@
public class CreateSavingsPlanRequest extends RpcAcsRequest<CreateSavingsPlanResponse> {


private String instanceTypeFamilyGroup;

private String planType;

private String committedAmount;

private String period;

private List<String> resourceIds;

private String instanceTypeFamily;

private String planType;

private String periodUnit;

private String offeringType;

private String chargeType;

private String committedAmount;
private String chargeType;
public CreateSavingsPlanRequest() {
super("Ecs", "2014-05-26", "CreateSavingsPlan", "ecs");
setProtocol(ProtocolType.HTTPS);
Expand All @@ -52,6 +54,39 @@ public CreateSavingsPlanRequest() {
} catch (Exception e) {}
}

public String getInstanceTypeFamilyGroup() {
return this.instanceTypeFamilyGroup;
}

public void setInstanceTypeFamilyGroup(String instanceTypeFamilyGroup) {
this.instanceTypeFamilyGroup = instanceTypeFamilyGroup;
if(instanceTypeFamilyGroup != null){
putQueryParameter("InstanceTypeFamilyGroup", instanceTypeFamilyGroup);
}
}

public String getPlanType() {
return this.planType;
}

public void setPlanType(String planType) {
this.planType = planType;
if(planType != null){
putQueryParameter("PlanType", planType);
}
}

public String getCommittedAmount() {
return this.committedAmount;
}

public void setCommittedAmount(String committedAmount) {
this.committedAmount = committedAmount;
if(committedAmount != null){
putQueryParameter("CommittedAmount", committedAmount);
}
}

public String getPeriod() {
return this.period;
}
Expand Down Expand Up @@ -87,17 +122,6 @@ public void setInstanceTypeFamily(String instanceTypeFamily) {
}
}

public String getPlanType() {
return this.planType;
}

public void setPlanType(String planType) {
this.planType = planType;
if(planType != null){
putQueryParameter("PlanType", planType);
}
}

public String getPeriodUnit() {
return this.periodUnit;
}
Expand Down Expand Up @@ -129,17 +153,6 @@ public void setChargeType(String chargeType) {
if(chargeType != null){
putQueryParameter("ChargeType", chargeType);
}
}

public String getCommittedAmount() {
return this.committedAmount;
}

public void setCommittedAmount(String committedAmount) {
this.committedAmount = committedAmount;
if(committedAmount != null){
putQueryParameter("CommittedAmount", committedAmount);
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class DeleteInstancesResponse extends AcsResponse {

private String requestId;

private String taskGroupId;

public String getRequestId() {
return this.requestId;
}
Expand All @@ -34,6 +36,14 @@ public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getTaskGroupId() {
return this.taskGroupId;
}

public void setTaskGroupId(String taskGroupId) {
this.taskGroupId = taskGroupId;
}

@Override
public DeleteInstancesResponse getInstance(UnmarshallerContext context) {
return DeleteInstancesResponseUnmarshaller.unmarshall(this, context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ public static class DiskDeviceMapping {

private String format;

private String encrypted;

public String getType() {
return this.type;
}
Expand Down Expand Up @@ -498,6 +500,14 @@ public String getFormat() {
public void setFormat(String format) {
this.format = format;
}

public String getEncrypted() {
return this.encrypted;
}

public void setEncrypted(String encrypted) {
this.encrypted = encrypted;
}
}

public static class Tag {
Expand Down Expand Up @@ -593,13 +603,23 @@ public static class Features {

private String nvmeSupport;

private String imdsSupport;

public String getNvmeSupport() {
return this.nvmeSupport;
}

public void setNvmeSupport(String nvmeSupport) {
this.nvmeSupport = nvmeSupport;
}

public String getImdsSupport() {
return this.imdsSupport;
}

public void setImdsSupport(String imdsSupport) {
this.imdsSupport = imdsSupport;
}
}
}

Expand Down
Loading

0 comments on commit a97963d

Please sign in to comment.