Skip to content

Commit

Permalink
Add EndTerminalSession.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jan 14, 2025
1 parent 857ed9d commit 132f6df
Show file tree
Hide file tree
Showing 18 changed files with 791 additions and 5 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 @@
2025-01-14 Version: 5.11.16
- Add EndTerminalSession.

2024-12-20 Version: 5.11.15
- Build java SDK.

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.15</version>
<version>5.11.16</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 @@ -48,6 +48,10 @@ public class CreateImagePipelineRequest extends RpcAcsRequest<CreateImagePipelin

private List<Tag> tags;

private AdvancedOptions advancedOptions;

private String nvmeSupport;

private String resourceOwnerAccount;

private String ownerAccount;
Expand All @@ -70,6 +74,8 @@ public class CreateImagePipelineRequest extends RpcAcsRequest<CreateImagePipelin

private String buildContent;

private ImportImageOptions importImageOptions;

private String testContent;
public CreateImagePipelineRequest() {
super("Ecs", "2014-05-26", "CreateImagePipeline", "ecs");
Expand Down Expand Up @@ -206,6 +212,31 @@ public void setTags(List<Tag> tags) {
}
}

public AdvancedOptions getAdvancedOptions() {
return this.advancedOptions;
}

public void setAdvancedOptions(AdvancedOptions advancedOptions) {
this.advancedOptions = advancedOptions;
if (advancedOptions != null) {

putQueryParameter("AdvancedOptions.RetainCloudAssistant" , advancedOptions.getRetainCloudAssistant());
putQueryParameter("AdvancedOptions.SkipBuildImage" , advancedOptions.getSkipBuildImage());
putQueryParameter("AdvancedOptions.SkipCheckImage" , advancedOptions.getSkipCheckImage());
}
}

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

public void setNvmeSupport(String nvmeSupport) {
this.nvmeSupport = nvmeSupport;
if(nvmeSupport != null){
putQueryParameter("NvmeSupport", nvmeSupport);
}
}

public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
Expand Down Expand Up @@ -329,6 +360,38 @@ public void setBuildContent(String buildContent) {
}
}

public ImportImageOptions getImportImageOptions() {
return this.importImageOptions;
}

public void setImportImageOptions(ImportImageOptions importImageOptions) {
this.importImageOptions = importImageOptions;
if (importImageOptions != null) {

putQueryParameter("ImportImageOptions.Architecture" , importImageOptions.getArchitecture());
putQueryParameter("ImportImageOptions.OSType" , importImageOptions.getOSType());
putQueryParameter("ImportImageOptions.Platform" , importImageOptions.getPlatform());
putQueryParameter("ImportImageOptions.BootMode" , importImageOptions.getBootMode());
putQueryParameter("ImportImageOptions.LicenseType" , importImageOptions.getLicenseType());
if (importImageOptions.getDiskDeviceMappings() != null) {
for (int depth1 = 0; depth1 < importImageOptions.getDiskDeviceMappings().size(); depth1++) {
if (importImageOptions.getDiskDeviceMappings().get(depth1) != null) {

putQueryParameter("ImportImageOptions.DiskDeviceMappings." + (depth1 + 1) + ".OSSBucket" , importImageOptions.getDiskDeviceMappings().get(depth1).getOSSBucket());
putQueryParameter("ImportImageOptions.DiskDeviceMappings." + (depth1 + 1) + ".OSSObject" , importImageOptions.getDiskDeviceMappings().get(depth1).getOSSObject());
putQueryParameter("ImportImageOptions.DiskDeviceMappings." + (depth1 + 1) + ".Format" , importImageOptions.getDiskDeviceMappings().get(depth1).getFormat());
putQueryParameter("ImportImageOptions.DiskDeviceMappings." + (depth1 + 1) + ".DiskImageSize" , importImageOptions.getDiskDeviceMappings().get(depth1).getDiskImageSize());
}
}
}
if (importImageOptions.getFeatures() != null) {

putQueryParameter("ImportImageOptions.Features.NvmeSupport" , importImageOptions.getFeatures().getNvmeSupport());
}
putQueryParameter("ImportImageOptions.RetainImportedImage" , importImageOptions.getRetainImportedImage());
}
}

public String getTestContent() {
return this.testContent;
}
Expand Down Expand Up @@ -361,6 +424,178 @@ public String getValue() {
public void setValue(String value) {
this.value = value;
}
}

public static class AdvancedOptions {

private Boolean retainCloudAssistant;

private Boolean skipBuildImage;

private Boolean skipCheckImage;

public Boolean getRetainCloudAssistant() {
return this.retainCloudAssistant;
}

public void setRetainCloudAssistant(Boolean retainCloudAssistant) {
this.retainCloudAssistant = retainCloudAssistant;
}

public Boolean getSkipBuildImage() {
return this.skipBuildImage;
}

public void setSkipBuildImage(Boolean skipBuildImage) {
this.skipBuildImage = skipBuildImage;
}

public Boolean getSkipCheckImage() {
return this.skipCheckImage;
}

public void setSkipCheckImage(Boolean skipCheckImage) {
this.skipCheckImage = skipCheckImage;
}
}

public static class ImportImageOptions {

private String architecture;

private String oSType;

private String platform;

private String bootMode;

private String licenseType;

private List<DiskDeviceMappingsItem> diskDeviceMappings;

private Features features;

private Boolean retainImportedImage;

public String getArchitecture() {
return this.architecture;
}

public void setArchitecture(String architecture) {
this.architecture = architecture;
}

public String getOSType() {
return this.oSType;
}

public void setOSType(String oSType) {
this.oSType = oSType;
}

public String getPlatform() {
return this.platform;
}

public void setPlatform(String platform) {
this.platform = platform;
}

public String getBootMode() {
return this.bootMode;
}

public void setBootMode(String bootMode) {
this.bootMode = bootMode;
}

public String getLicenseType() {
return this.licenseType;
}

public void setLicenseType(String licenseType) {
this.licenseType = licenseType;
}

public List<DiskDeviceMappingsItem> getDiskDeviceMappings() {
return this.diskDeviceMappings;
}

public void setDiskDeviceMappings(List<DiskDeviceMappingsItem> diskDeviceMappings) {
this.diskDeviceMappings = diskDeviceMappings;
}

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

public void setFeatures(Features features) {
this.features = features;
}

public Boolean getRetainImportedImage() {
return this.retainImportedImage;
}

public void setRetainImportedImage(Boolean retainImportedImage) {
this.retainImportedImage = retainImportedImage;
}

public static class DiskDeviceMappingsItem {

private String oSSBucket;

private String oSSObject;

private String format;

private Integer diskImageSize;

public String getOSSBucket() {
return this.oSSBucket;
}

public void setOSSBucket(String oSSBucket) {
this.oSSBucket = oSSBucket;
}

public String getOSSObject() {
return this.oSSObject;
}

public void setOSSObject(String oSSObject) {
this.oSSObject = oSSObject;
}

public String getFormat() {
return this.format;
}

public void setFormat(String format) {
this.format = format;
}

public Integer getDiskImageSize() {
return this.diskImageSize;
}

public void setDiskImageSize(Integer diskImageSize) {
this.diskImageSize = diskImageSize;
}
}

public static class Features {

private String nvmeSupport;

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

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

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ public void setEnhancedNetwork(EnhancedNetwork enhancedNetwork) {
if (enhancedNetwork != null) {

putQueryParameter("EnhancedNetwork.EnableSriov" , enhancedNetwork.getEnableSriov());
putQueryParameter("EnhancedNetwork.EnableRss" , enhancedNetwork.getEnableRss());
}
}

Expand Down Expand Up @@ -555,13 +556,23 @@ public static class EnhancedNetwork {

private Boolean enableSriov;

private Boolean enableRss;

public Boolean getEnableSriov() {
return this.enableSriov;
}

public void setEnableSriov(Boolean enableSriov) {
this.enableSriov = enableSriov;
}

public Boolean getEnableRss() {
return this.enableRss;
}

public void setEnableRss(Boolean enableRss) {
this.enableRss = enableRss;
}
}

public static class Tag {
Expand Down
Loading

0 comments on commit 132f6df

Please sign in to comment.