From 84e6d643f8791dd4a138a9441888943b6a5ac007 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 27 Nov 2024 12:39:48 +0000 Subject: [PATCH] Generated 2017-11-10 for Ens. --- aliyun-java-sdk-ens/ChangeLog.txt | 3 + aliyun-java-sdk-ens/pom.xml | 2 +- .../v20171110/AttachInstanceSDGRequest.java | 68 +++++++ .../v20171110/AttachInstanceSDGResponse.java | 146 ++++++++++++++ .../CreateARMServerInstancesRequest.java | 13 ++ .../model/v20171110/CreateHaVipRequest.java | 103 ++++++++++ .../model/v20171110/CreateHaVipResponse.java | 57 ++++++ .../CreateNetworkInterfaceRequest.java | 92 +++++++++ .../CreateNetworkInterfaceResponse.java | 57 ++++++ .../model/v20171110/DeleteHaVipsRequest.java | 55 ++++++ .../model/v20171110/DeleteHaVipsResponse.java | 46 +++++ .../DeleteNetworkInterfacesRequest.java | 53 ++++++ .../DeleteNetworkInterfacesResponse.java | 46 +++++ .../v20171110/DescribeDisksResponse.java | 20 ++ .../DescribeEnsRouteTablesRequest.java | 101 ++++++++++ .../DescribeEnsRouteTablesResponse.java | 180 ++++++++++++++++++ .../DescribeInstanceSDGStatusRequest.java | 107 +++++++++++ .../DescribeInstanceSDGStatusResponse.java | 160 ++++++++++++++++ .../DescribeSDGDeploymentStatusResponse.java | 10 + .../v20171110/DescribeSnapshotsRequest.java | 66 +++++-- .../v20171110/DetachInstanceSDGRequest.java | 68 +++++++ .../v20171110/DetachInstanceSDGResponse.java | 146 ++++++++++++++ .../v20171110/MountInstanceSDGRequest.java | 68 +++++++ .../v20171110/MountInstanceSDGResponse.java | 146 ++++++++++++++ .../v20171110/UnmountInstanceSDGRequest.java | 68 +++++++ .../v20171110/UnmountInstanceSDGResponse.java | 146 ++++++++++++++ ...AttachInstanceSDGResponseUnmarshaller.java | 55 ++++++ .../CreateHaVipResponseUnmarshaller.java | 38 ++++ ...eNetworkInterfaceResponseUnmarshaller.java | 38 ++++ .../DeleteHaVipsResponseUnmarshaller.java | 29 +++ ...NetworkInterfacesResponseUnmarshaller.java | 29 +++ .../DescribeDisksResponseUnmarshaller.java | 2 + ...ibeEnsRouteTablesResponseUnmarshaller.java | 58 ++++++ ...InstanceSDGStatusResponseUnmarshaller.java | 51 +++++ ...GDeploymentStatusResponseUnmarshaller.java | 1 + ...DetachInstanceSDGResponseUnmarshaller.java | 55 ++++++ .../MountInstanceSDGResponseUnmarshaller.java | 55 ++++++ ...nmountInstanceSDGResponseUnmarshaller.java | 55 ++++++ 38 files changed, 2472 insertions(+), 21 deletions(-) create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/AttachInstanceSDGRequest.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/AttachInstanceSDGResponse.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateHaVipRequest.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateHaVipResponse.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateNetworkInterfaceRequest.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateNetworkInterfaceResponse.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteHaVipsRequest.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteHaVipsResponse.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteNetworkInterfacesRequest.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteNetworkInterfacesResponse.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeEnsRouteTablesRequest.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeEnsRouteTablesResponse.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeInstanceSDGStatusRequest.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeInstanceSDGStatusResponse.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DetachInstanceSDGRequest.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DetachInstanceSDGResponse.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/MountInstanceSDGRequest.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/MountInstanceSDGResponse.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/UnmountInstanceSDGRequest.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/UnmountInstanceSDGResponse.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/AttachInstanceSDGResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/CreateHaVipResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/CreateNetworkInterfaceResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DeleteHaVipsResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DeleteNetworkInterfacesResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeEnsRouteTablesResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeInstanceSDGStatusResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DetachInstanceSDGResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/MountInstanceSDGResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/UnmountInstanceSDGResponseUnmarshaller.java diff --git a/aliyun-java-sdk-ens/ChangeLog.txt b/aliyun-java-sdk-ens/ChangeLog.txt index fa20c900cf..56390c7797 100644 --- a/aliyun-java-sdk-ens/ChangeLog.txt +++ b/aliyun-java-sdk-ens/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-11-27 Version: 3.0.19 +- Generated 2017-11-10 for `Ens`. + 2024-10-25 Version: 3.0.18 - Generated 2017-11-10 for `Ens`. diff --git a/aliyun-java-sdk-ens/pom.xml b/aliyun-java-sdk-ens/pom.xml index 35024d3c13..0de27f7da6 100644 --- a/aliyun-java-sdk-ens/pom.xml +++ b/aliyun-java-sdk-ens/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-ens jar - 3.0.18 + 3.0.19 aliyun-java-sdk-ens http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/AttachInstanceSDGRequest.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/AttachInstanceSDGRequest.java new file mode 100644 index 0000000000..9a2fdaa34a --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/AttachInstanceSDGRequest.java @@ -0,0 +1,68 @@ +/* + * 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 java.util.List; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class AttachInstanceSDGRequest extends RpcAcsRequest { + + + private String sDGId; + + @SerializedName("instanceIds") + private List instanceIds; + public AttachInstanceSDGRequest() { + super("Ens", "2017-11-10", "AttachInstanceSDG", "ens"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getSDGId() { + return this.sDGId; + } + + public void setSDGId(String sDGId) { + this.sDGId = sDGId; + if(sDGId != null){ + putQueryParameter("SDGId", sDGId); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + putQueryParameter("InstanceIds" , new Gson().toJson(instanceIds)); + } + } + + @Override + public Class getResponseClass() { + return AttachInstanceSDGResponse.class; + } + +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/AttachInstanceSDGResponse.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/AttachInstanceSDGResponse.java new file mode 100644 index 0000000000..eec73a6525 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/AttachInstanceSDGResponse.java @@ -0,0 +1,146 @@ +/* + * 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 java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ens.transform.v20171110.AttachInstanceSDGResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AttachInstanceSDGResponse extends AcsResponse { + + private String requestId; + + private Data data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String message; + + private Boolean success; + + private Result result; + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public Result getResult() { + return this.result; + } + + public void setResult(Result result) { + this.result = result; + } + + public static class Result { + + private Long failedCount; + + private Long successCount; + + private List failedItems; + + public Long getFailedCount() { + return this.failedCount; + } + + public void setFailedCount(Long failedCount) { + this.failedCount = failedCount; + } + + public Long getSuccessCount() { + return this.successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + public List getFailedItems() { + return this.failedItems; + } + + public void setFailedItems(List failedItems) { + this.failedItems = failedItems; + } + + public static class FailedItemsItem { + + private String errMessage; + + private String instanceId; + + public String getErrMessage() { + return this.errMessage; + } + + public void setErrMessage(String errMessage) { + this.errMessage = errMessage; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + } + } + + @Override + public AttachInstanceSDGResponse getInstance(UnmarshallerContext context) { + return AttachInstanceSDGResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateARMServerInstancesRequest.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateARMServerInstancesRequest.java index 55472258b5..85e5264493 100644 --- a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateARMServerInstancesRequest.java +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateARMServerInstancesRequest.java @@ -48,6 +48,8 @@ public class CreateARMServerInstancesRequest extends RpcAcsRequest { + + + private String ipAddress; + + private String description; + + private Integer amount; + + private String vSwitchId; + + private String name; + public CreateHaVipRequest() { + super("Ens", "2017-11-10", "CreateHaVip", "ens"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getIpAddress() { + return this.ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + if(ipAddress != null){ + putQueryParameter("IpAddress", ipAddress); + } + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public Integer getAmount() { + return this.amount; + } + + public void setAmount(Integer amount) { + this.amount = amount; + if(amount != null){ + putQueryParameter("Amount", amount.toString()); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + @Override + public Class getResponseClass() { + return CreateHaVipResponse.class; + } + +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateHaVipResponse.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateHaVipResponse.java new file mode 100644 index 0000000000..e3b2cb8eee --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateHaVipResponse.java @@ -0,0 +1,57 @@ +/* + * 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 java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ens.transform.v20171110.CreateHaVipResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateHaVipResponse extends AcsResponse { + + private String requestId; + + private List haVipIds; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getHaVipIds() { + return this.haVipIds; + } + + public void setHaVipIds(List haVipIds) { + this.haVipIds = haVipIds; + } + + @Override + public CreateHaVipResponse getInstance(UnmarshallerContext context) { + return CreateHaVipResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateNetworkInterfaceRequest.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateNetworkInterfaceRequest.java new file mode 100644 index 0000000000..8ee08a1b25 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateNetworkInterfaceRequest.java @@ -0,0 +1,92 @@ +/* + * 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 java.util.List; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class CreateNetworkInterfaceRequest extends RpcAcsRequest { + + + private String description; + + @SerializedName("securityGroupIds") + private List securityGroupIds; + + private String vSwitchId; + + private String name; + public CreateNetworkInterfaceRequest() { + super("Ens", "2017-11-10", "CreateNetworkInterface", "ens"); + setMethod(MethodType.POST); + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public List getSecurityGroupIds() { + return this.securityGroupIds; + } + + public void setSecurityGroupIds(List securityGroupIds) { + this.securityGroupIds = securityGroupIds; + if (securityGroupIds != null) { + putQueryParameter("SecurityGroupIds" , new Gson().toJson(securityGroupIds)); + } + } + + public String getVSwitchId() { + return this.vSwitchId; + } + + public void setVSwitchId(String vSwitchId) { + this.vSwitchId = vSwitchId; + if(vSwitchId != null){ + putQueryParameter("VSwitchId", vSwitchId); + } + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + if(name != null){ + putQueryParameter("Name", name); + } + } + + @Override + public Class getResponseClass() { + return CreateNetworkInterfaceResponse.class; + } + +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateNetworkInterfaceResponse.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateNetworkInterfaceResponse.java new file mode 100644 index 0000000000..d5a6a656a4 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/CreateNetworkInterfaceResponse.java @@ -0,0 +1,57 @@ +/* + * 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 java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ens.transform.v20171110.CreateNetworkInterfaceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateNetworkInterfaceResponse extends AcsResponse { + + private String requestId; + + private List networkInterfaceIds; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getNetworkInterfaceIds() { + return this.networkInterfaceIds; + } + + public void setNetworkInterfaceIds(List networkInterfaceIds) { + this.networkInterfaceIds = networkInterfaceIds; + } + + @Override + public CreateNetworkInterfaceResponse getInstance(UnmarshallerContext context) { + return CreateNetworkInterfaceResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteHaVipsRequest.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteHaVipsRequest.java new file mode 100644 index 0000000000..f59a1d3aa9 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteHaVipsRequest.java @@ -0,0 +1,55 @@ +/* + * 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 java.util.List; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class DeleteHaVipsRequest extends RpcAcsRequest { + + + @SerializedName("haVipIds") + private List haVipIds; + public DeleteHaVipsRequest() { + super("Ens", "2017-11-10", "DeleteHaVips", "ens"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public List getHaVipIds() { + return this.haVipIds; + } + + public void setHaVipIds(List haVipIds) { + this.haVipIds = haVipIds; + if (haVipIds != null) { + putQueryParameter("HaVipIds" , new Gson().toJson(haVipIds)); + } + } + + @Override + public Class getResponseClass() { + return DeleteHaVipsResponse.class; + } + +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteHaVipsResponse.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteHaVipsResponse.java new file mode 100644 index 0000000000..c7d4ee188d --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteHaVipsResponse.java @@ -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.DeleteHaVipsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteHaVipsResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteHaVipsResponse getInstance(UnmarshallerContext context) { + return DeleteHaVipsResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteNetworkInterfacesRequest.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteNetworkInterfacesRequest.java new file mode 100644 index 0000000000..79a9a5e192 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteNetworkInterfacesRequest.java @@ -0,0 +1,53 @@ +/* + * 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 java.util.List; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class DeleteNetworkInterfacesRequest extends RpcAcsRequest { + + + @SerializedName("networkInterfaceIds") + private List networkInterfaceIds; + public DeleteNetworkInterfacesRequest() { + super("Ens", "2017-11-10", "DeleteNetworkInterfaces", "ens"); + setMethod(MethodType.POST); + } + + public List getNetworkInterfaceIds() { + return this.networkInterfaceIds; + } + + public void setNetworkInterfaceIds(List networkInterfaceIds) { + this.networkInterfaceIds = networkInterfaceIds; + if (networkInterfaceIds != null) { + putQueryParameter("NetworkInterfaceIds" , new Gson().toJson(networkInterfaceIds)); + } + } + + @Override + public Class getResponseClass() { + return DeleteNetworkInterfacesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteNetworkInterfacesResponse.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteNetworkInterfacesResponse.java new file mode 100644 index 0000000000..8884c97c62 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DeleteNetworkInterfacesResponse.java @@ -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.DeleteNetworkInterfacesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteNetworkInterfacesResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteNetworkInterfacesResponse getInstance(UnmarshallerContext context) { + return DeleteNetworkInterfacesResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeDisksResponse.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeDisksResponse.java index 99f6dbb727..dd59046449 100644 --- a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeDisksResponse.java +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeDisksResponse.java @@ -103,6 +103,8 @@ public static class DisksItem { private String instanceName; + private String description; + private Integer size; private String status; @@ -119,6 +121,8 @@ public static class DisksItem { private String encryptedKeyId; + private Boolean deleteWithInstance; + public String getCategory() { return this.category; } @@ -183,6 +187,14 @@ public void setInstanceName(String instanceName) { this.instanceName = instanceName; } + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + public Integer getSize() { return this.size; } @@ -246,6 +258,14 @@ public String getEncryptedKeyId() { public void setEncryptedKeyId(String encryptedKeyId) { this.encryptedKeyId = encryptedKeyId; } + + public Boolean getDeleteWithInstance() { + return this.deleteWithInstance; + } + + public void setDeleteWithInstance(Boolean deleteWithInstance) { + this.deleteWithInstance = deleteWithInstance; + } } @Override diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeEnsRouteTablesRequest.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeEnsRouteTablesRequest.java new file mode 100644 index 0000000000..5a015c9f62 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeEnsRouteTablesRequest.java @@ -0,0 +1,101 @@ +/* + * 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 DescribeEnsRouteTablesRequest extends RpcAcsRequest { + + + private Integer pageNumber; + + private Integer pageSize; + + private String ensRegionId; + + private String routeTableId; + + private String networkId; + public DescribeEnsRouteTablesRequest() { + super("Ens", "2017-11-10", "DescribeEnsRouteTables", "ens"); + setMethod(MethodType.POST); + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getEnsRegionId() { + return this.ensRegionId; + } + + public void setEnsRegionId(String ensRegionId) { + this.ensRegionId = ensRegionId; + if(ensRegionId != null){ + putQueryParameter("EnsRegionId", ensRegionId); + } + } + + public String getRouteTableId() { + return this.routeTableId; + } + + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + if(routeTableId != null){ + putQueryParameter("RouteTableId", routeTableId); + } + } + + public String getNetworkId() { + return this.networkId; + } + + public void setNetworkId(String networkId) { + this.networkId = networkId; + if(networkId != null){ + putQueryParameter("NetworkId", networkId); + } + } + + @Override + public Class getResponseClass() { + return DescribeEnsRouteTablesResponse.class; + } + +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeEnsRouteTablesResponse.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeEnsRouteTablesResponse.java new file mode 100644 index 0000000000..c20a32773e --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeEnsRouteTablesResponse.java @@ -0,0 +1,180 @@ +/* + * 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 java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ens.transform.v20171110.DescribeEnsRouteTablesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeEnsRouteTablesResponse extends AcsResponse { + + private String requestId; + + private Integer pageNumber; + + private Integer totalCount; + + private Integer pageSize; + + private List routeTables; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public Integer getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public List getRouteTables() { + return this.routeTables; + } + + public void setRouteTables(List routeTables) { + this.routeTables = routeTables; + } + + public static class RouteTable { + + private String creationTime; + + private String status; + + private String routeTableId; + + private String networkId; + + private String ensRegionId; + + private String type; + + private String routeTableName; + + private String networkName; + + private List vSwitchIds; + + public String getCreationTime() { + return this.creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getRouteTableId() { + return this.routeTableId; + } + + public void setRouteTableId(String routeTableId) { + this.routeTableId = routeTableId; + } + + public String getNetworkId() { + return this.networkId; + } + + public void setNetworkId(String networkId) { + this.networkId = networkId; + } + + public String getEnsRegionId() { + return this.ensRegionId; + } + + public void setEnsRegionId(String ensRegionId) { + this.ensRegionId = ensRegionId; + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + } + + public String getRouteTableName() { + return this.routeTableName; + } + + public void setRouteTableName(String routeTableName) { + this.routeTableName = routeTableName; + } + + public String getNetworkName() { + return this.networkName; + } + + public void setNetworkName(String networkName) { + this.networkName = networkName; + } + + public List getVSwitchIds() { + return this.vSwitchIds; + } + + public void setVSwitchIds(List vSwitchIds) { + this.vSwitchIds = vSwitchIds; + } + } + + @Override + public DescribeEnsRouteTablesResponse getInstance(UnmarshallerContext context) { + return DescribeEnsRouteTablesResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeInstanceSDGStatusRequest.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeInstanceSDGStatusRequest.java new file mode 100644 index 0000000000..4b43f4f8cc --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeInstanceSDGStatusRequest.java @@ -0,0 +1,107 @@ +/* + * 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 java.util.List; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceSDGStatusRequest extends RpcAcsRequest { + + + private Integer pageNumber; + + private Integer pageSize; + + @SerializedName("sDGIds") + private List sDGIds; + + private String instanceId; + + private String status; + public DescribeInstanceSDGStatusRequest() { + super("Ens", "2017-11-10", "DescribeInstanceSDGStatus", "ens"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.GET); + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public List getSDGIds() { + return this.sDGIds; + } + + public void setSDGIds(List sDGIds) { + this.sDGIds = sDGIds; + if (sDGIds != null) { + putQueryParameter("SDGIds" , new Gson().toJson(sDGIds)); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + @Override + public Class getResponseClass() { + return DescribeInstanceSDGStatusResponse.class; + } + +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeInstanceSDGStatusResponse.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeInstanceSDGStatusResponse.java new file mode 100644 index 0000000000..f3b7636ce5 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeInstanceSDGStatusResponse.java @@ -0,0 +1,160 @@ +/* + * 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 java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ens.transform.v20171110.DescribeInstanceSDGStatusResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeInstanceSDGStatusResponse extends AcsResponse { + + private String requestId; + + private Long pageNumber; + + private String pageSize; + + private String totalCount; + + private List deploymentStatus; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + } + + public String getPageSize() { + return this.pageSize; + } + + public void setPageSize(String pageSize) { + this.pageSize = pageSize; + } + + public String getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(String totalCount) { + this.totalCount = totalCount; + } + + public List getDeploymentStatus() { + return this.deploymentStatus; + } + + public void setDeploymentStatus(List deploymentStatus) { + this.deploymentStatus = deploymentStatus; + } + + public static class DeploymentStatusItem { + + private String instanceId; + + private String sDGId; + + private String mountType; + + private String ensRegionId; + + private String status; + + private String phase; + + private String updateTime; + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getSDGId() { + return this.sDGId; + } + + public void setSDGId(String sDGId) { + this.sDGId = sDGId; + } + + public String getMountType() { + return this.mountType; + } + + public void setMountType(String mountType) { + this.mountType = mountType; + } + + public String getEnsRegionId() { + return this.ensRegionId; + } + + public void setEnsRegionId(String ensRegionId) { + this.ensRegionId = ensRegionId; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getPhase() { + return this.phase; + } + + public void setPhase(String phase) { + this.phase = phase; + } + + public String getUpdateTime() { + return this.updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + } + + @Override + public DescribeInstanceSDGStatusResponse getInstance(UnmarshallerContext context) { + return DescribeInstanceSDGStatusResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeSDGDeploymentStatusResponse.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeSDGDeploymentStatusResponse.java index 9444bdccb1..d40419096c 100644 --- a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeSDGDeploymentStatusResponse.java +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeSDGDeploymentStatusResponse.java @@ -85,6 +85,8 @@ public static class DeploymentStatusItem { private String status; + private String phase; + private String updateTime; public String getInstanceId() { @@ -119,6 +121,14 @@ public void setStatus(String status) { this.status = status; } + public String getPhase() { + return this.phase; + } + + public void setPhase(String phase) { + this.phase = phase; + } + public String getUpdateTime() { return this.updateTime; } diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeSnapshotsRequest.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeSnapshotsRequest.java index 569e0e0e9a..b7423e6127 100644 --- a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeSnapshotsRequest.java +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DescribeSnapshotsRequest.java @@ -24,22 +24,48 @@ public class DescribeSnapshotsRequest extends RpcAcsRequest { + private String ensRegionId; + + private String instanceId; + private String snapshotId; - private Integer pageNumber; + private String snapshotName; - private String ensRegionId; + private Integer pageNumber; private Integer pageSize; private String diskId; - private String instanceId; + private String ensRegionIds; public DescribeSnapshotsRequest() { super("Ens", "2017-11-10", "DescribeSnapshots", "ens"); setMethod(MethodType.POST); } + public String getEnsRegionId() { + return this.ensRegionId; + } + + public void setEnsRegionId(String ensRegionId) { + this.ensRegionId = ensRegionId; + if(ensRegionId != null){ + putQueryParameter("EnsRegionId", ensRegionId); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + public String getSnapshotId() { return this.snapshotId; } @@ -51,6 +77,17 @@ public void setSnapshotId(String snapshotId) { } } + public String getSnapshotName() { + return this.snapshotName; + } + + public void setSnapshotName(String snapshotName) { + this.snapshotName = snapshotName; + if(snapshotName != null){ + putQueryParameter("SnapshotName", snapshotName); + } + } + public Integer getPageNumber() { return this.pageNumber; } @@ -62,17 +99,6 @@ public void setPageNumber(Integer pageNumber) { } } - public String getEnsRegionId() { - return this.ensRegionId; - } - - public void setEnsRegionId(String ensRegionId) { - this.ensRegionId = ensRegionId; - if(ensRegionId != null){ - putQueryParameter("EnsRegionId", ensRegionId); - } - } - public Integer getPageSize() { return this.pageSize; } @@ -95,14 +121,14 @@ public void setDiskId(String diskId) { } } - public String getInstanceId() { - return this.instanceId; + public String getEnsRegionIds() { + return this.ensRegionIds; } - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - if(instanceId != null){ - putQueryParameter("InstanceId", instanceId); + public void setEnsRegionIds(String ensRegionIds) { + this.ensRegionIds = ensRegionIds; + if(ensRegionIds != null){ + putQueryParameter("EnsRegionIds", ensRegionIds); } } diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DetachInstanceSDGRequest.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DetachInstanceSDGRequest.java new file mode 100644 index 0000000000..174c6c6ed2 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DetachInstanceSDGRequest.java @@ -0,0 +1,68 @@ +/* + * 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 java.util.List; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class DetachInstanceSDGRequest extends RpcAcsRequest { + + + private String sDGId; + + @SerializedName("instanceIds") + private List instanceIds; + public DetachInstanceSDGRequest() { + super("Ens", "2017-11-10", "DetachInstanceSDG", "ens"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getSDGId() { + return this.sDGId; + } + + public void setSDGId(String sDGId) { + this.sDGId = sDGId; + if(sDGId != null){ + putQueryParameter("SDGId", sDGId); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + putQueryParameter("InstanceIds" , new Gson().toJson(instanceIds)); + } + } + + @Override + public Class getResponseClass() { + return DetachInstanceSDGResponse.class; + } + +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DetachInstanceSDGResponse.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DetachInstanceSDGResponse.java new file mode 100644 index 0000000000..aaac742716 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/DetachInstanceSDGResponse.java @@ -0,0 +1,146 @@ +/* + * 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 java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ens.transform.v20171110.DetachInstanceSDGResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DetachInstanceSDGResponse extends AcsResponse { + + private String requestId; + + private Data data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String message; + + private Boolean success; + + private Result result; + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public Result getResult() { + return this.result; + } + + public void setResult(Result result) { + this.result = result; + } + + public static class Result { + + private Long failedCount; + + private String successCount; + + private List failedItems; + + public Long getFailedCount() { + return this.failedCount; + } + + public void setFailedCount(Long failedCount) { + this.failedCount = failedCount; + } + + public String getSuccessCount() { + return this.successCount; + } + + public void setSuccessCount(String successCount) { + this.successCount = successCount; + } + + public List getFailedItems() { + return this.failedItems; + } + + public void setFailedItems(List failedItems) { + this.failedItems = failedItems; + } + + public static class FailedItem { + + private String errMessage; + + private String instanceId; + + public String getErrMessage() { + return this.errMessage; + } + + public void setErrMessage(String errMessage) { + this.errMessage = errMessage; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + } + } + + @Override + public DetachInstanceSDGResponse getInstance(UnmarshallerContext context) { + return DetachInstanceSDGResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/MountInstanceSDGRequest.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/MountInstanceSDGRequest.java new file mode 100644 index 0000000000..f0564c300d --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/MountInstanceSDGRequest.java @@ -0,0 +1,68 @@ +/* + * 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 java.util.List; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class MountInstanceSDGRequest extends RpcAcsRequest { + + + private String sDGId; + + @SerializedName("instanceIds") + private List instanceIds; + public MountInstanceSDGRequest() { + super("Ens", "2017-11-10", "MountInstanceSDG", "ens"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getSDGId() { + return this.sDGId; + } + + public void setSDGId(String sDGId) { + this.sDGId = sDGId; + if(sDGId != null){ + putQueryParameter("SDGId", sDGId); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + putQueryParameter("InstanceIds" , new Gson().toJson(instanceIds)); + } + } + + @Override + public Class getResponseClass() { + return MountInstanceSDGResponse.class; + } + +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/MountInstanceSDGResponse.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/MountInstanceSDGResponse.java new file mode 100644 index 0000000000..2cf1888766 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/MountInstanceSDGResponse.java @@ -0,0 +1,146 @@ +/* + * 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 java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ens.transform.v20171110.MountInstanceSDGResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class MountInstanceSDGResponse extends AcsResponse { + + private String requestId; + + private Data data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String message; + + private Boolean success; + + private Result result; + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public Result getResult() { + return this.result; + } + + public void setResult(Result result) { + this.result = result; + } + + public static class Result { + + private Long failedCount; + + private Long successCount; + + private List failedItems; + + public Long getFailedCount() { + return this.failedCount; + } + + public void setFailedCount(Long failedCount) { + this.failedCount = failedCount; + } + + public Long getSuccessCount() { + return this.successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + public List getFailedItems() { + return this.failedItems; + } + + public void setFailedItems(List failedItems) { + this.failedItems = failedItems; + } + + public static class FailedItem { + + private String errMessage; + + private String instanceId; + + public String getErrMessage() { + return this.errMessage; + } + + public void setErrMessage(String errMessage) { + this.errMessage = errMessage; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + } + } + + @Override + public MountInstanceSDGResponse getInstance(UnmarshallerContext context) { + return MountInstanceSDGResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/UnmountInstanceSDGRequest.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/UnmountInstanceSDGRequest.java new file mode 100644 index 0000000000..dbc06fe960 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/UnmountInstanceSDGRequest.java @@ -0,0 +1,68 @@ +/* + * 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 java.util.List; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class UnmountInstanceSDGRequest extends RpcAcsRequest { + + + private String sDGId; + + @SerializedName("instanceIds") + private List instanceIds; + public UnmountInstanceSDGRequest() { + super("Ens", "2017-11-10", "UnmountInstanceSDG", "ens"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getSDGId() { + return this.sDGId; + } + + public void setSDGId(String sDGId) { + this.sDGId = sDGId; + if(sDGId != null){ + putQueryParameter("SDGId", sDGId); + } + } + + public List getInstanceIds() { + return this.instanceIds; + } + + public void setInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + if (instanceIds != null) { + putQueryParameter("InstanceIds" , new Gson().toJson(instanceIds)); + } + } + + @Override + public Class getResponseClass() { + return UnmountInstanceSDGResponse.class; + } + +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/UnmountInstanceSDGResponse.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/UnmountInstanceSDGResponse.java new file mode 100644 index 0000000000..2f775b455a --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/UnmountInstanceSDGResponse.java @@ -0,0 +1,146 @@ +/* + * 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 java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.ens.transform.v20171110.UnmountInstanceSDGResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UnmountInstanceSDGResponse extends AcsResponse { + + private String requestId; + + private Data data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String message; + + private Boolean success; + + private Result result; + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public Result getResult() { + return this.result; + } + + public void setResult(Result result) { + this.result = result; + } + + public static class Result { + + private Long failedCount; + + private Long successCount; + + private List failedItems; + + public Long getFailedCount() { + return this.failedCount; + } + + public void setFailedCount(Long failedCount) { + this.failedCount = failedCount; + } + + public Long getSuccessCount() { + return this.successCount; + } + + public void setSuccessCount(Long successCount) { + this.successCount = successCount; + } + + public List getFailedItems() { + return this.failedItems; + } + + public void setFailedItems(List failedItems) { + this.failedItems = failedItems; + } + + public static class FailedItem { + + private String errMessage; + + private String instanceId; + + public String getErrMessage() { + return this.errMessage; + } + + public void setErrMessage(String errMessage) { + this.errMessage = errMessage; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + } + } + } + + @Override + public UnmountInstanceSDGResponse getInstance(UnmarshallerContext context) { + return UnmountInstanceSDGResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/AttachInstanceSDGResponseUnmarshaller.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/AttachInstanceSDGResponseUnmarshaller.java new file mode 100644 index 0000000000..cae4a6642a --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/AttachInstanceSDGResponseUnmarshaller.java @@ -0,0 +1,55 @@ +/* + * 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.transform.v20171110; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ens.model.v20171110.AttachInstanceSDGResponse; +import com.aliyuncs.ens.model.v20171110.AttachInstanceSDGResponse.Data; +import com.aliyuncs.ens.model.v20171110.AttachInstanceSDGResponse.Data.Result; +import com.aliyuncs.ens.model.v20171110.AttachInstanceSDGResponse.Data.Result.FailedItemsItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AttachInstanceSDGResponseUnmarshaller { + + public static AttachInstanceSDGResponse unmarshall(AttachInstanceSDGResponse attachInstanceSDGResponse, UnmarshallerContext _ctx) { + + attachInstanceSDGResponse.setRequestId(_ctx.stringValue("AttachInstanceSDGResponse.RequestId")); + + Data data = new Data(); + data.setMessage(_ctx.stringValue("AttachInstanceSDGResponse.Data.Message")); + data.setSuccess(_ctx.booleanValue("AttachInstanceSDGResponse.Data.Success")); + + Result result = new Result(); + result.setFailedCount(_ctx.longValue("AttachInstanceSDGResponse.Data.Result.FailedCount")); + result.setSuccessCount(_ctx.longValue("AttachInstanceSDGResponse.Data.Result.SuccessCount")); + + List failedItems = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("AttachInstanceSDGResponse.Data.Result.FailedItems.Length"); i++) { + FailedItemsItem failedItemsItem = new FailedItemsItem(); + failedItemsItem.setErrMessage(_ctx.stringValue("AttachInstanceSDGResponse.Data.Result.FailedItems["+ i +"].ErrMessage")); + failedItemsItem.setInstanceId(_ctx.stringValue("AttachInstanceSDGResponse.Data.Result.FailedItems["+ i +"].InstanceId")); + + failedItems.add(failedItemsItem); + } + result.setFailedItems(failedItems); + data.setResult(result); + attachInstanceSDGResponse.setData(data); + + return attachInstanceSDGResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/CreateHaVipResponseUnmarshaller.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/CreateHaVipResponseUnmarshaller.java new file mode 100644 index 0000000000..7f713759ea --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/CreateHaVipResponseUnmarshaller.java @@ -0,0 +1,38 @@ +/* + * 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.transform.v20171110; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ens.model.v20171110.CreateHaVipResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateHaVipResponseUnmarshaller { + + public static CreateHaVipResponse unmarshall(CreateHaVipResponse createHaVipResponse, UnmarshallerContext _ctx) { + + createHaVipResponse.setRequestId(_ctx.stringValue("CreateHaVipResponse.RequestId")); + + List haVipIds = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateHaVipResponse.HaVipIds.Length"); i++) { + haVipIds.add(_ctx.stringValue("CreateHaVipResponse.HaVipIds["+ i +"]")); + } + createHaVipResponse.setHaVipIds(haVipIds); + + return createHaVipResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/CreateNetworkInterfaceResponseUnmarshaller.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/CreateNetworkInterfaceResponseUnmarshaller.java new file mode 100644 index 0000000000..8f7f15e653 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/CreateNetworkInterfaceResponseUnmarshaller.java @@ -0,0 +1,38 @@ +/* + * 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.transform.v20171110; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ens.model.v20171110.CreateNetworkInterfaceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateNetworkInterfaceResponseUnmarshaller { + + public static CreateNetworkInterfaceResponse unmarshall(CreateNetworkInterfaceResponse createNetworkInterfaceResponse, UnmarshallerContext _ctx) { + + createNetworkInterfaceResponse.setRequestId(_ctx.stringValue("CreateNetworkInterfaceResponse.RequestId")); + + List networkInterfaceIds = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateNetworkInterfaceResponse.NetworkInterfaceIds.Length"); i++) { + networkInterfaceIds.add(_ctx.stringValue("CreateNetworkInterfaceResponse.NetworkInterfaceIds["+ i +"]")); + } + createNetworkInterfaceResponse.setNetworkInterfaceIds(networkInterfaceIds); + + return createNetworkInterfaceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DeleteHaVipsResponseUnmarshaller.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DeleteHaVipsResponseUnmarshaller.java new file mode 100644 index 0000000000..b7b7de7999 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DeleteHaVipsResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * 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.transform.v20171110; + +import com.aliyuncs.ens.model.v20171110.DeleteHaVipsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteHaVipsResponseUnmarshaller { + + public static DeleteHaVipsResponse unmarshall(DeleteHaVipsResponse deleteHaVipsResponse, UnmarshallerContext _ctx) { + + deleteHaVipsResponse.setRequestId(_ctx.stringValue("DeleteHaVipsResponse.RequestId")); + + return deleteHaVipsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DeleteNetworkInterfacesResponseUnmarshaller.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DeleteNetworkInterfacesResponseUnmarshaller.java new file mode 100644 index 0000000000..31784fb2bc --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DeleteNetworkInterfacesResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * 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.transform.v20171110; + +import com.aliyuncs.ens.model.v20171110.DeleteNetworkInterfacesResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteNetworkInterfacesResponseUnmarshaller { + + public static DeleteNetworkInterfacesResponse unmarshall(DeleteNetworkInterfacesResponse deleteNetworkInterfacesResponse, UnmarshallerContext _ctx) { + + deleteNetworkInterfacesResponse.setRequestId(_ctx.stringValue("DeleteNetworkInterfacesResponse.RequestId")); + + return deleteNetworkInterfacesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeDisksResponseUnmarshaller.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeDisksResponseUnmarshaller.java index 4aaeee9d9c..0b5c346812 100644 --- a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeDisksResponseUnmarshaller.java +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeDisksResponseUnmarshaller.java @@ -43,6 +43,7 @@ public static DescribeDisksResponse unmarshall(DescribeDisksResponse describeDis disksItem.setEnsRegionId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].EnsRegionId")); disksItem.setInstanceId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].InstanceId")); disksItem.setInstanceName(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].InstanceName")); + disksItem.setDescription(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Description")); disksItem.setSize(_ctx.integerValue("DescribeDisksResponse.Disks["+ i +"].Size")); disksItem.setStatus(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Status")); disksItem.setType(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].Type")); @@ -51,6 +52,7 @@ public static DescribeDisksResponse unmarshall(DescribeDisksResponse describeDis disksItem.setSerialId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].SerialId")); disksItem.setEncrypted(_ctx.booleanValue("DescribeDisksResponse.Disks["+ i +"].Encrypted")); disksItem.setEncryptedKeyId(_ctx.stringValue("DescribeDisksResponse.Disks["+ i +"].EncryptedKeyId")); + disksItem.setDeleteWithInstance(_ctx.booleanValue("DescribeDisksResponse.Disks["+ i +"].DeleteWithInstance")); disks.add(disksItem); } diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeEnsRouteTablesResponseUnmarshaller.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeEnsRouteTablesResponseUnmarshaller.java new file mode 100644 index 0000000000..e98aa240a6 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeEnsRouteTablesResponseUnmarshaller.java @@ -0,0 +1,58 @@ +/* + * 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.transform.v20171110; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ens.model.v20171110.DescribeEnsRouteTablesResponse; +import com.aliyuncs.ens.model.v20171110.DescribeEnsRouteTablesResponse.RouteTable; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeEnsRouteTablesResponseUnmarshaller { + + public static DescribeEnsRouteTablesResponse unmarshall(DescribeEnsRouteTablesResponse describeEnsRouteTablesResponse, UnmarshallerContext _ctx) { + + describeEnsRouteTablesResponse.setRequestId(_ctx.stringValue("DescribeEnsRouteTablesResponse.RequestId")); + describeEnsRouteTablesResponse.setPageNumber(_ctx.integerValue("DescribeEnsRouteTablesResponse.PageNumber")); + describeEnsRouteTablesResponse.setTotalCount(_ctx.integerValue("DescribeEnsRouteTablesResponse.TotalCount")); + describeEnsRouteTablesResponse.setPageSize(_ctx.integerValue("DescribeEnsRouteTablesResponse.PageSize")); + + List routeTables = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeEnsRouteTablesResponse.RouteTables.Length"); i++) { + RouteTable routeTable = new RouteTable(); + routeTable.setCreationTime(_ctx.stringValue("DescribeEnsRouteTablesResponse.RouteTables["+ i +"].CreationTime")); + routeTable.setStatus(_ctx.stringValue("DescribeEnsRouteTablesResponse.RouteTables["+ i +"].Status")); + routeTable.setRouteTableId(_ctx.stringValue("DescribeEnsRouteTablesResponse.RouteTables["+ i +"].RouteTableId")); + routeTable.setNetworkId(_ctx.stringValue("DescribeEnsRouteTablesResponse.RouteTables["+ i +"].NetworkId")); + routeTable.setEnsRegionId(_ctx.stringValue("DescribeEnsRouteTablesResponse.RouteTables["+ i +"].EnsRegionId")); + routeTable.setType(_ctx.stringValue("DescribeEnsRouteTablesResponse.RouteTables["+ i +"].Type")); + routeTable.setRouteTableName(_ctx.stringValue("DescribeEnsRouteTablesResponse.RouteTables["+ i +"].RouteTableName")); + routeTable.setNetworkName(_ctx.stringValue("DescribeEnsRouteTablesResponse.RouteTables["+ i +"].NetworkName")); + + List vSwitchIds = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("DescribeEnsRouteTablesResponse.RouteTables["+ i +"].VSwitchIds.Length"); j++) { + vSwitchIds.add(_ctx.stringValue("DescribeEnsRouteTablesResponse.RouteTables["+ i +"].VSwitchIds["+ j +"]")); + } + routeTable.setVSwitchIds(vSwitchIds); + + routeTables.add(routeTable); + } + describeEnsRouteTablesResponse.setRouteTables(routeTables); + + return describeEnsRouteTablesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeInstanceSDGStatusResponseUnmarshaller.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeInstanceSDGStatusResponseUnmarshaller.java new file mode 100644 index 0000000000..c535ecedbe --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeInstanceSDGStatusResponseUnmarshaller.java @@ -0,0 +1,51 @@ +/* + * 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.transform.v20171110; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ens.model.v20171110.DescribeInstanceSDGStatusResponse; +import com.aliyuncs.ens.model.v20171110.DescribeInstanceSDGStatusResponse.DeploymentStatusItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeInstanceSDGStatusResponseUnmarshaller { + + public static DescribeInstanceSDGStatusResponse unmarshall(DescribeInstanceSDGStatusResponse describeInstanceSDGStatusResponse, UnmarshallerContext _ctx) { + + describeInstanceSDGStatusResponse.setRequestId(_ctx.stringValue("DescribeInstanceSDGStatusResponse.RequestId")); + describeInstanceSDGStatusResponse.setPageNumber(_ctx.longValue("DescribeInstanceSDGStatusResponse.PageNumber")); + describeInstanceSDGStatusResponse.setPageSize(_ctx.stringValue("DescribeInstanceSDGStatusResponse.PageSize")); + describeInstanceSDGStatusResponse.setTotalCount(_ctx.stringValue("DescribeInstanceSDGStatusResponse.TotalCount")); + + List deploymentStatus = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeInstanceSDGStatusResponse.DeploymentStatus.Length"); i++) { + DeploymentStatusItem deploymentStatusItem = new DeploymentStatusItem(); + deploymentStatusItem.setInstanceId(_ctx.stringValue("DescribeInstanceSDGStatusResponse.DeploymentStatus["+ i +"].InstanceId")); + deploymentStatusItem.setSDGId(_ctx.stringValue("DescribeInstanceSDGStatusResponse.DeploymentStatus["+ i +"].SDGId")); + deploymentStatusItem.setMountType(_ctx.stringValue("DescribeInstanceSDGStatusResponse.DeploymentStatus["+ i +"].MountType")); + deploymentStatusItem.setEnsRegionId(_ctx.stringValue("DescribeInstanceSDGStatusResponse.DeploymentStatus["+ i +"].EnsRegionId")); + deploymentStatusItem.setStatus(_ctx.stringValue("DescribeInstanceSDGStatusResponse.DeploymentStatus["+ i +"].Status")); + deploymentStatusItem.setPhase(_ctx.stringValue("DescribeInstanceSDGStatusResponse.DeploymentStatus["+ i +"].Phase")); + deploymentStatusItem.setUpdateTime(_ctx.stringValue("DescribeInstanceSDGStatusResponse.DeploymentStatus["+ i +"].UpdateTime")); + + deploymentStatus.add(deploymentStatusItem); + } + describeInstanceSDGStatusResponse.setDeploymentStatus(deploymentStatus); + + return describeInstanceSDGStatusResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeSDGDeploymentStatusResponseUnmarshaller.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeSDGDeploymentStatusResponseUnmarshaller.java index 16157cac94..be2223b08b 100644 --- a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeSDGDeploymentStatusResponseUnmarshaller.java +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DescribeSDGDeploymentStatusResponseUnmarshaller.java @@ -38,6 +38,7 @@ public static DescribeSDGDeploymentStatusResponse unmarshall(DescribeSDGDeployme deploymentStatusItem.setMountType(_ctx.stringValue("DescribeSDGDeploymentStatusResponse.DeploymentStatus["+ i +"].MountType")); deploymentStatusItem.setRegionId(_ctx.stringValue("DescribeSDGDeploymentStatusResponse.DeploymentStatus["+ i +"].RegionId")); deploymentStatusItem.setStatus(_ctx.stringValue("DescribeSDGDeploymentStatusResponse.DeploymentStatus["+ i +"].Status")); + deploymentStatusItem.setPhase(_ctx.stringValue("DescribeSDGDeploymentStatusResponse.DeploymentStatus["+ i +"].Phase")); deploymentStatusItem.setUpdateTime(_ctx.stringValue("DescribeSDGDeploymentStatusResponse.DeploymentStatus["+ i +"].UpdateTime")); deploymentStatus.add(deploymentStatusItem); diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DetachInstanceSDGResponseUnmarshaller.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DetachInstanceSDGResponseUnmarshaller.java new file mode 100644 index 0000000000..e123d882aa --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/DetachInstanceSDGResponseUnmarshaller.java @@ -0,0 +1,55 @@ +/* + * 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.transform.v20171110; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ens.model.v20171110.DetachInstanceSDGResponse; +import com.aliyuncs.ens.model.v20171110.DetachInstanceSDGResponse.Data; +import com.aliyuncs.ens.model.v20171110.DetachInstanceSDGResponse.Data.Result; +import com.aliyuncs.ens.model.v20171110.DetachInstanceSDGResponse.Data.Result.FailedItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DetachInstanceSDGResponseUnmarshaller { + + public static DetachInstanceSDGResponse unmarshall(DetachInstanceSDGResponse detachInstanceSDGResponse, UnmarshallerContext _ctx) { + + detachInstanceSDGResponse.setRequestId(_ctx.stringValue("DetachInstanceSDGResponse.RequestId")); + + Data data = new Data(); + data.setMessage(_ctx.stringValue("DetachInstanceSDGResponse.Data.Message")); + data.setSuccess(_ctx.booleanValue("DetachInstanceSDGResponse.Data.Success")); + + Result result = new Result(); + result.setFailedCount(_ctx.longValue("DetachInstanceSDGResponse.Data.Result.FailedCount")); + result.setSuccessCount(_ctx.stringValue("DetachInstanceSDGResponse.Data.Result.SuccessCount")); + + List failedItems = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DetachInstanceSDGResponse.Data.Result.FailedItems.Length"); i++) { + FailedItem failedItem = new FailedItem(); + failedItem.setErrMessage(_ctx.stringValue("DetachInstanceSDGResponse.Data.Result.FailedItems["+ i +"].ErrMessage")); + failedItem.setInstanceId(_ctx.stringValue("DetachInstanceSDGResponse.Data.Result.FailedItems["+ i +"].InstanceId")); + + failedItems.add(failedItem); + } + result.setFailedItems(failedItems); + data.setResult(result); + detachInstanceSDGResponse.setData(data); + + return detachInstanceSDGResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/MountInstanceSDGResponseUnmarshaller.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/MountInstanceSDGResponseUnmarshaller.java new file mode 100644 index 0000000000..2310437ba8 --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/MountInstanceSDGResponseUnmarshaller.java @@ -0,0 +1,55 @@ +/* + * 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.transform.v20171110; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ens.model.v20171110.MountInstanceSDGResponse; +import com.aliyuncs.ens.model.v20171110.MountInstanceSDGResponse.Data; +import com.aliyuncs.ens.model.v20171110.MountInstanceSDGResponse.Data.Result; +import com.aliyuncs.ens.model.v20171110.MountInstanceSDGResponse.Data.Result.FailedItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class MountInstanceSDGResponseUnmarshaller { + + public static MountInstanceSDGResponse unmarshall(MountInstanceSDGResponse mountInstanceSDGResponse, UnmarshallerContext _ctx) { + + mountInstanceSDGResponse.setRequestId(_ctx.stringValue("MountInstanceSDGResponse.RequestId")); + + Data data = new Data(); + data.setMessage(_ctx.stringValue("MountInstanceSDGResponse.Data.Message")); + data.setSuccess(_ctx.booleanValue("MountInstanceSDGResponse.Data.Success")); + + Result result = new Result(); + result.setFailedCount(_ctx.longValue("MountInstanceSDGResponse.Data.Result.FailedCount")); + result.setSuccessCount(_ctx.longValue("MountInstanceSDGResponse.Data.Result.SuccessCount")); + + List failedItems = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("MountInstanceSDGResponse.Data.Result.FailedItems.Length"); i++) { + FailedItem failedItem = new FailedItem(); + failedItem.setErrMessage(_ctx.stringValue("MountInstanceSDGResponse.Data.Result.FailedItems["+ i +"].ErrMessage")); + failedItem.setInstanceId(_ctx.stringValue("MountInstanceSDGResponse.Data.Result.FailedItems["+ i +"].InstanceId")); + + failedItems.add(failedItem); + } + result.setFailedItems(failedItems); + data.setResult(result); + mountInstanceSDGResponse.setData(data); + + return mountInstanceSDGResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/UnmountInstanceSDGResponseUnmarshaller.java b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/UnmountInstanceSDGResponseUnmarshaller.java new file mode 100644 index 0000000000..6d278a0d1e --- /dev/null +++ b/aliyun-java-sdk-ens/src/main/java/com/aliyuncs/ens/transform/v20171110/UnmountInstanceSDGResponseUnmarshaller.java @@ -0,0 +1,55 @@ +/* + * 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.transform.v20171110; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.ens.model.v20171110.UnmountInstanceSDGResponse; +import com.aliyuncs.ens.model.v20171110.UnmountInstanceSDGResponse.Data; +import com.aliyuncs.ens.model.v20171110.UnmountInstanceSDGResponse.Data.Result; +import com.aliyuncs.ens.model.v20171110.UnmountInstanceSDGResponse.Data.Result.FailedItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UnmountInstanceSDGResponseUnmarshaller { + + public static UnmountInstanceSDGResponse unmarshall(UnmountInstanceSDGResponse unmountInstanceSDGResponse, UnmarshallerContext _ctx) { + + unmountInstanceSDGResponse.setRequestId(_ctx.stringValue("UnmountInstanceSDGResponse.RequestId")); + + Data data = new Data(); + data.setMessage(_ctx.stringValue("UnmountInstanceSDGResponse.Data.Message")); + data.setSuccess(_ctx.booleanValue("UnmountInstanceSDGResponse.Data.Success")); + + Result result = new Result(); + result.setFailedCount(_ctx.longValue("UnmountInstanceSDGResponse.Data.Result.FailedCount")); + result.setSuccessCount(_ctx.longValue("UnmountInstanceSDGResponse.Data.Result.SuccessCount")); + + List failedItems = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("UnmountInstanceSDGResponse.Data.Result.FailedItems.Length"); i++) { + FailedItem failedItem = new FailedItem(); + failedItem.setErrMessage(_ctx.stringValue("UnmountInstanceSDGResponse.Data.Result.FailedItems["+ i +"].ErrMessage")); + failedItem.setInstanceId(_ctx.stringValue("UnmountInstanceSDGResponse.Data.Result.FailedItems["+ i +"].InstanceId")); + + failedItems.add(failedItem); + } + result.setFailedItems(failedItems); + data.setResult(result); + unmountInstanceSDGResponse.setData(data); + + return unmountInstanceSDGResponse; + } +} \ No newline at end of file