Skip to content

Commit

Permalink
-Supported DeleteEip
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 25, 2024
1 parent 7f3acb0 commit 178603c
Show file tree
Hide file tree
Showing 18 changed files with 384 additions and 3 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-ens/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-12-25 Version: 3.0.20
-- Supported DeleteEip

2024-11-27 Version: 3.0.19
- Generated 2017-11-10 for `Ens`.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-ens/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-ens</artifactId>
<packaging>jar</packaging>
<version>3.0.19</version>
<version>3.0.20</version>
<name>aliyun-java-sdk-ens</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 @@ -38,7 +38,9 @@ public class CreateSnatEntryRequest extends RpcAcsRequest<CreateSnatEntryRespons

private Integer idleTimeout;

private String snatEntryName;
private String snatEntryName;

private Boolean ispAffinity;
public CreateSnatEntryRequest() {
super("Ens", "2017-11-10", "CreateSnatEntry", "ens");
setMethod(MethodType.POST);
Expand Down Expand Up @@ -130,6 +132,17 @@ public void setSnatEntryName(String snatEntryName) {
if(snatEntryName != null){
putQueryParameter("SnatEntryName", snatEntryName);
}
}

public Boolean getIspAffinity() {
return this.ispAffinity;
}

public void setIspAffinity(Boolean ispAffinity) {
this.ispAffinity = ispAffinity;
if(ispAffinity != null){
putQueryParameter("IspAffinity", ispAffinity.toString());
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.ens.model.v20171110;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class DeleteEipRequest extends RpcAcsRequest<DeleteEipResponse> {


private String instanceId;
public DeleteEipRequest() {
super("Ens", "2017-11-10", "DeleteEip", "ens");
setMethod(MethodType.POST);
}

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putQueryParameter("InstanceId", instanceId);
}
}

@Override
public Class<DeleteEipResponse> getResponseClass() {
return DeleteEipResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.ens.model.v20171110;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.ens.transform.v20171110.DeleteEipResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class DeleteEipResponse extends AcsResponse {

private String requestId;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

@Override
public DeleteEipResponse getInstance(UnmarshallerContext context) {
return DeleteEipResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
public class DescribeInstancesRequest extends RpcAcsRequest<DescribeInstancesResponse> {


@SerializedName("serviceStatus")
private List<String> serviceStatus;

private String orderByParams;

private String ensRegionId;
Expand Down Expand Up @@ -70,6 +73,17 @@ public DescribeInstancesRequest() {
setMethod(MethodType.POST);
}

public List<String> getServiceStatus() {
return this.serviceStatus;
}

public void setServiceStatus(List<String> serviceStatus) {
this.serviceStatus = serviceStatus;
if (serviceStatus != null) {
putQueryParameter("ServiceStatus" , new Gson().toJson(serviceStatus));
}
}

public String getOrderByParams() {
return this.orderByParams;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ public static class Instance {

private String keyPairName;

private String serviceStatus;

private List<DataDiskItem> dataDisk;

private List<PublicIpAddress> publicIpAddresses;
Expand Down Expand Up @@ -307,6 +309,14 @@ public void setKeyPairName(String keyPairName) {
this.keyPairName = keyPairName;
}

public String getServiceStatus() {
return this.serviceStatus;
}

public void setServiceStatus(String serviceStatus) {
this.serviceStatus = serviceStatus;
}

public List<DataDiskItem> getDataDisk() {
return this.dataDisk;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public class DescribeSnatAttributeResponse extends AcsResponse {

private String destCIDR;

private Boolean ispAffinity;

private List<Snatip> snatIps;

public String getRequestId() {
Expand Down Expand Up @@ -157,6 +159,14 @@ public void setDestCIDR(String destCIDR) {
this.destCIDR = destCIDR;
}

public Boolean getIspAffinity() {
return this.ispAffinity;
}

public void setIspAffinity(Boolean ispAffinity) {
this.ispAffinity = ispAffinity;
}

public List<Snatip> getSnatIps() {
return this.snatIps;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ public static class SnatTableEntry {

private String destCIDR;

private Boolean ispAffinity;

private List<SnatIp> snatIps;

public String getNatGatewayId() {
Expand Down Expand Up @@ -189,6 +191,14 @@ public void setDestCIDR(String destCIDR) {
this.destCIDR = destCIDR;
}

public Boolean getIspAffinity() {
return this.ispAffinity;
}

public void setIspAffinity(Boolean ispAffinity) {
this.ispAffinity = ispAffinity;
}

public List<SnatIp> getSnatIps() {
return this.snatIps;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public class ListObjectsResponse extends AcsResponse {

private List<Content> contents;

private List<CommonPrefixInfo> commonPrefixInfos;

private List<String> commonPrefixes;

public String getNextContinuationToken() {
Expand Down Expand Up @@ -157,6 +159,14 @@ public void setContents(List<Content> contents) {
this.contents = contents;
}

public List<CommonPrefixInfo> getCommonPrefixInfos() {
return this.commonPrefixInfos;
}

public void setCommonPrefixInfos(List<CommonPrefixInfo> commonPrefixInfos) {
this.commonPrefixInfos = commonPrefixInfos;
}

public List<String> getCommonPrefixes() {
return this.commonPrefixes;
}
Expand Down Expand Up @@ -218,6 +228,29 @@ public void setSize(Long size) {
}
}

public static class CommonPrefixInfo {

private String prefix;

private String lastModified;

public String getPrefix() {
return this.prefix;
}

public void setPrefix(String prefix) {
this.prefix = prefix;
}

public String getLastModified() {
return this.lastModified;
}

public void setLastModified(String lastModified) {
this.lastModified = lastModified;
}
}

@Override
public ListObjectsResponse getInstance(UnmarshallerContext context) {
return ListObjectsResponseUnmarshaller.unmarshall(this, context);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.ens.model.v20171110;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class ModifySnatEntryRequest extends RpcAcsRequest<ModifySnatEntryResponse> {


private String snatEntryId;

private String snatEntryName;

private Boolean ispAffinity;
public ModifySnatEntryRequest() {
super("Ens", "2017-11-10", "ModifySnatEntry", "ens");
setMethod(MethodType.POST);
}

public String getSnatEntryId() {
return this.snatEntryId;
}

public void setSnatEntryId(String snatEntryId) {
this.snatEntryId = snatEntryId;
if(snatEntryId != null){
putQueryParameter("SnatEntryId", snatEntryId);
}
}

public String getSnatEntryName() {
return this.snatEntryName;
}

public void setSnatEntryName(String snatEntryName) {
this.snatEntryName = snatEntryName;
if(snatEntryName != null){
putQueryParameter("SnatEntryName", snatEntryName);
}
}

public Boolean getIspAffinity() {
return this.ispAffinity;
}

public void setIspAffinity(Boolean ispAffinity) {
this.ispAffinity = ispAffinity;
if(ispAffinity != null){
putQueryParameter("IspAffinity", ispAffinity.toString());
}
}

@Override
public Class<ModifySnatEntryResponse> getResponseClass() {
return ModifySnatEntryResponse.class;
}

}
Loading

0 comments on commit 178603c

Please sign in to comment.