diff --git a/aliyun-java-sdk-eflo/ChangeLog.txt b/aliyun-java-sdk-eflo/ChangeLog.txt index b8f4885dc6..68aab292fa 100644 --- a/aliyun-java-sdk-eflo/ChangeLog.txt +++ b/aliyun-java-sdk-eflo/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-12-24 Version: 1.0.16 +- Supported Jumbo for HDENI and LENI. + 2024-06-26 Version: 1.0.15 - Supported AssumeRoleProxyChain for CreateHighDensityElasticNetworkInterface. diff --git a/aliyun-java-sdk-eflo/pom.xml b/aliyun-java-sdk-eflo/pom.xml index 138d1b9260..3847edba46 100644 --- a/aliyun-java-sdk-eflo/pom.xml +++ b/aliyun-java-sdk-eflo/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-eflo jar - 1.0.15 + 1.0.16 aliyun-java-sdk-eflo http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/CreateElasticNetworkInterfaceRequest.java b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/CreateElasticNetworkInterfaceRequest.java index 976f13465a..d52eb3380c 100644 --- a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/CreateElasticNetworkInterfaceRequest.java +++ b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/CreateElasticNetworkInterfaceRequest.java @@ -32,6 +32,8 @@ public class CreateElasticNetworkInterfaceRequest extends RpcAcsRequest { private String cenOwnerId; + private Long bgpAsn; + private Boolean accessCouldService; private String resourceGroupId; @@ -103,6 +105,17 @@ public void setCenOwnerId(String cenOwnerId) { } } + public Long getBgpAsn() { + return this.bgpAsn; + } + + public void setBgpAsn(Long bgpAsn) { + this.bgpAsn = bgpAsn; + if(bgpAsn != null){ + putBodyParameter("BgpAsn", bgpAsn.toString()); + } + } + public Boolean getAccessCouldService() { return this.accessCouldService; } diff --git a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/GetElasticNetworkInterfaceResponse.java b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/GetElasticNetworkInterfaceResponse.java index dfad7098c4..f3783f4851 100644 --- a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/GetElasticNetworkInterfaceResponse.java +++ b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/GetElasticNetworkInterfaceResponse.java @@ -101,8 +101,12 @@ public static class Content { private String securityGroupId; + private Boolean enableJumboFrame; + private List privateIpAddresses; + private List ipv6Addresses; + public String getRegionId() { return this.regionId; } @@ -239,6 +243,14 @@ public void setSecurityGroupId(String securityGroupId) { this.securityGroupId = securityGroupId; } + public Boolean getEnableJumboFrame() { + return this.enableJumboFrame; + } + + public void setEnableJumboFrame(Boolean enableJumboFrame) { + this.enableJumboFrame = enableJumboFrame; + } + public List getPrivateIpAddresses() { return this.privateIpAddresses; } @@ -247,6 +259,14 @@ public void setPrivateIpAddresses(List privateIpAddresses) { this.privateIpAddresses = privateIpAddresses; } + public List getIpv6Addresses() { + return this.ipv6Addresses; + } + + public void setIpv6Addresses(List ipv6Addresses) { + this.ipv6Addresses = ipv6Addresses; + } + public static class PrivateIpAddress { private String elasticNetworkInterfaceId; @@ -339,6 +359,99 @@ public void setMessage(String message) { this.message = message; } } + + public static class Ipv6Addresse { + + private String elasticNetworkInterfaceId; + + private String ipName; + + private String ipv6Address; + + private String status; + + private String description; + + private String message; + + private String regionId; + + private String gmtCreate; + + private String gmtModified; + + public String getElasticNetworkInterfaceId() { + return this.elasticNetworkInterfaceId; + } + + public void setElasticNetworkInterfaceId(String elasticNetworkInterfaceId) { + this.elasticNetworkInterfaceId = elasticNetworkInterfaceId; + } + + public String getIpName() { + return this.ipName; + } + + public void setIpName(String ipName) { + this.ipName = ipName; + } + + public String getIpv6Address() { + return this.ipv6Address; + } + + public void setIpv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getGmtCreate() { + return this.gmtCreate; + } + + public void setGmtCreate(String gmtCreate) { + this.gmtCreate = gmtCreate; + } + + public String getGmtModified() { + return this.gmtModified; + } + + public void setGmtModified(String gmtModified) { + this.gmtModified = gmtModified; + } + } } @Override diff --git a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/GetVccResponse.java b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/GetVccResponse.java index c9afc1a3b1..06a22b0f59 100644 --- a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/GetVccResponse.java +++ b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/GetVccResponse.java @@ -127,6 +127,8 @@ public static class Content { private String cenOwnerId; + private String bgpAsn; + private List erInfos; private List aliyunRouterInfo; @@ -379,6 +381,14 @@ public void setCenOwnerId(String cenOwnerId) { this.cenOwnerId = cenOwnerId; } + public String getBgpAsn() { + return this.bgpAsn; + } + + public void setBgpAsn(String bgpAsn) { + this.bgpAsn = bgpAsn; + } + public List getErInfos() { return this.erInfos; } diff --git a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/ListVccFlowInfosRequest.java b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/ListVccFlowInfosRequest.java new file mode 100644 index 0000000000..a4c1e96123 --- /dev/null +++ b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/ListVccFlowInfosRequest.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.eflo.model.v20220530; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class ListVccFlowInfosRequest extends RpcAcsRequest { + + + private Long from; + + private Long to; + + private String vccId; + + private String metricName; + + private String direction; + public ListVccFlowInfosRequest() { + super("eflo", "2022-05-30", "ListVccFlowInfos", "eflo"); + setMethod(MethodType.POST); + } + + public Long getFrom() { + return this.from; + } + + public void setFrom(Long from) { + this.from = from; + if(from != null){ + putBodyParameter("From", from.toString()); + } + } + + public Long getTo() { + return this.to; + } + + public void setTo(Long to) { + this.to = to; + if(to != null){ + putBodyParameter("To", to.toString()); + } + } + + public String getVccId() { + return this.vccId; + } + + public void setVccId(String vccId) { + this.vccId = vccId; + if(vccId != null){ + putBodyParameter("VccId", vccId); + } + } + + public String getMetricName() { + return this.metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + if(metricName != null){ + putBodyParameter("MetricName", metricName); + } + } + + public String getDirection() { + return this.direction; + } + + public void setDirection(String direction) { + this.direction = direction; + if(direction != null){ + putBodyParameter("Direction", direction); + } + } + + @Override + public Class getResponseClass() { + return ListVccFlowInfosResponse.class; + } + +} diff --git a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/ListVccFlowInfosResponse.java b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/ListVccFlowInfosResponse.java new file mode 100644 index 0000000000..b9d0cbd562 --- /dev/null +++ b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/ListVccFlowInfosResponse.java @@ -0,0 +1,163 @@ +/* + * 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.eflo.model.v20220530; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eflo.transform.v20220530.ListVccFlowInfosResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ListVccFlowInfosResponse extends AcsResponse { + + private Integer code; + + private String message; + + private String requestId; + + private Content content; + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Content getContent() { + return this.content; + } + + public void setContent(Content content) { + this.content = content; + } + + public static class Content { + + private Long total; + + private List data; + + public Long getTotal() { + return this.total; + } + + public void setTotal(Long total) { + this.total = total; + } + + public List getData() { + return this.data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataItem { + + private String regionId; + + private String vccId; + + private String metricName; + + private String direction; + + private Long timestamp; + + private Double value; + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getVccId() { + return this.vccId; + } + + public void setVccId(String vccId) { + this.vccId = vccId; + } + + public String getMetricName() { + return this.metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public String getDirection() { + return this.direction; + } + + public void setDirection(String direction) { + this.direction = direction; + } + + public Long getTimestamp() { + return this.timestamp; + } + + public void setTimestamp(Long timestamp) { + this.timestamp = timestamp; + } + + public Double getValue() { + return this.value; + } + + public void setValue(Double value) { + this.value = value; + } + } + } + + @Override + public ListVccFlowInfosResponse getInstance(UnmarshallerContext context) { + return ListVccFlowInfosResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/ListVccsResponse.java b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/ListVccsResponse.java index 010720227b..8e4ac43e5c 100644 --- a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/ListVccsResponse.java +++ b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/model/v20220530/ListVccsResponse.java @@ -141,6 +141,8 @@ public static class DataItem { private String cenOwnerId; + private String bgpAsn; + private List erInfos; private List tags; @@ -355,6 +357,14 @@ public void setCenOwnerId(String cenOwnerId) { this.cenOwnerId = cenOwnerId; } + public String getBgpAsn() { + return this.bgpAsn; + } + + public void setBgpAsn(String bgpAsn) { + this.bgpAsn = bgpAsn; + } + public List getErInfos() { return this.erInfos; } diff --git a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/GetElasticNetworkInterfaceResponseUnmarshaller.java b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/GetElasticNetworkInterfaceResponseUnmarshaller.java index 1a98c57d95..b7fa6dbb4f 100644 --- a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/GetElasticNetworkInterfaceResponseUnmarshaller.java +++ b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/GetElasticNetworkInterfaceResponseUnmarshaller.java @@ -19,6 +19,7 @@ import com.aliyuncs.eflo.model.v20220530.GetElasticNetworkInterfaceResponse; import com.aliyuncs.eflo.model.v20220530.GetElasticNetworkInterfaceResponse.Content; +import com.aliyuncs.eflo.model.v20220530.GetElasticNetworkInterfaceResponse.Content.Ipv6Addresse; import com.aliyuncs.eflo.model.v20220530.GetElasticNetworkInterfaceResponse.Content.PrivateIpAddress; import com.aliyuncs.transform.UnmarshallerContext; @@ -49,6 +50,7 @@ public static GetElasticNetworkInterfaceResponse unmarshall(GetElasticNetworkInt content.setGmtModified(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.GmtModified")); content.setDescription(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.Description")); content.setSecurityGroupId(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.SecurityGroupId")); + content.setEnableJumboFrame(_ctx.booleanValue("GetElasticNetworkInterfaceResponse.Content.EnableJumboFrame")); List privateIpAddresses = new ArrayList(); for (int i = 0; i < _ctx.lengthValue("GetElasticNetworkInterfaceResponse.Content.PrivateIpAddresses.Length"); i++) { @@ -66,6 +68,23 @@ public static GetElasticNetworkInterfaceResponse unmarshall(GetElasticNetworkInt privateIpAddresses.add(privateIpAddress); } content.setPrivateIpAddresses(privateIpAddresses); + + List ipv6Addresses = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetElasticNetworkInterfaceResponse.Content.Ipv6Addresses.Length"); i++) { + Ipv6Addresse ipv6Addresse = new Ipv6Addresse(); + ipv6Addresse.setElasticNetworkInterfaceId(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.Ipv6Addresses["+ i +"].ElasticNetworkInterfaceId")); + ipv6Addresse.setIpName(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.Ipv6Addresses["+ i +"].IpName")); + ipv6Addresse.setIpv6Address(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.Ipv6Addresses["+ i +"].Ipv6Address")); + ipv6Addresse.setStatus(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.Ipv6Addresses["+ i +"].Status")); + ipv6Addresse.setDescription(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.Ipv6Addresses["+ i +"].Description")); + ipv6Addresse.setMessage(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.Ipv6Addresses["+ i +"].Message")); + ipv6Addresse.setRegionId(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.Ipv6Addresses["+ i +"].RegionId")); + ipv6Addresse.setGmtCreate(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.Ipv6Addresses["+ i +"].GmtCreate")); + ipv6Addresse.setGmtModified(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.Ipv6Addresses["+ i +"].GmtModified")); + + ipv6Addresses.add(ipv6Addresse); + } + content.setIpv6Addresses(ipv6Addresses); getElasticNetworkInterfaceResponse.setContent(content); return getElasticNetworkInterfaceResponse; diff --git a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/GetVccResponseUnmarshaller.java b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/GetVccResponseUnmarshaller.java index e308431711..21c916ef59 100644 --- a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/GetVccResponseUnmarshaller.java +++ b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/GetVccResponseUnmarshaller.java @@ -69,6 +69,7 @@ public static GetVccResponse unmarshall(GetVccResponse getVccResponse, Unmarshal content.setResourceGroupId(_ctx.stringValue("GetVccResponse.Content.ResourceGroupId")); content.setConnectionType(_ctx.stringValue("GetVccResponse.Content.ConnectionType")); content.setCenOwnerId(_ctx.stringValue("GetVccResponse.Content.CenOwnerId")); + content.setBgpAsn(_ctx.stringValue("GetVccResponse.Content.BgpAsn")); VpdBaseInfo vpdBaseInfo = new VpdBaseInfo(); vpdBaseInfo.setVpdId(_ctx.stringValue("GetVccResponse.Content.VpdBaseInfo.VpdId")); diff --git a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/ListVccFlowInfosResponseUnmarshaller.java b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/ListVccFlowInfosResponseUnmarshaller.java new file mode 100644 index 0000000000..c703e5c859 --- /dev/null +++ b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/ListVccFlowInfosResponseUnmarshaller.java @@ -0,0 +1,54 @@ +/* + * 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.eflo.transform.v20220530; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.eflo.model.v20220530.ListVccFlowInfosResponse; +import com.aliyuncs.eflo.model.v20220530.ListVccFlowInfosResponse.Content; +import com.aliyuncs.eflo.model.v20220530.ListVccFlowInfosResponse.Content.DataItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ListVccFlowInfosResponseUnmarshaller { + + public static ListVccFlowInfosResponse unmarshall(ListVccFlowInfosResponse listVccFlowInfosResponse, UnmarshallerContext _ctx) { + + listVccFlowInfosResponse.setRequestId(_ctx.stringValue("ListVccFlowInfosResponse.RequestId")); + listVccFlowInfosResponse.setCode(_ctx.integerValue("ListVccFlowInfosResponse.Code")); + listVccFlowInfosResponse.setMessage(_ctx.stringValue("ListVccFlowInfosResponse.Message")); + + Content content = new Content(); + content.setTotal(_ctx.longValue("ListVccFlowInfosResponse.Content.Total")); + + List data = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ListVccFlowInfosResponse.Content.Data.Length"); i++) { + DataItem dataItem = new DataItem(); + dataItem.setRegionId(_ctx.stringValue("ListVccFlowInfosResponse.Content.Data["+ i +"].RegionId")); + dataItem.setVccId(_ctx.stringValue("ListVccFlowInfosResponse.Content.Data["+ i +"].VccId")); + dataItem.setMetricName(_ctx.stringValue("ListVccFlowInfosResponse.Content.Data["+ i +"].MetricName")); + dataItem.setDirection(_ctx.stringValue("ListVccFlowInfosResponse.Content.Data["+ i +"].Direction")); + dataItem.setTimestamp(_ctx.longValue("ListVccFlowInfosResponse.Content.Data["+ i +"].Timestamp")); + dataItem.setValue(_ctx.doubleValue("ListVccFlowInfosResponse.Content.Data["+ i +"].Value")); + + data.add(dataItem); + } + content.setData(data); + listVccFlowInfosResponse.setContent(content); + + return listVccFlowInfosResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/ListVccsResponseUnmarshaller.java b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/ListVccsResponseUnmarshaller.java index 0e21da54d3..ab101b7ac1 100644 --- a/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/ListVccsResponseUnmarshaller.java +++ b/aliyun-java-sdk-eflo/src/main/java/com/aliyuncs/eflo/transform/v20220530/ListVccsResponseUnmarshaller.java @@ -66,6 +66,7 @@ public static ListVccsResponse unmarshall(ListVccsResponse listVccsResponse, Unm dataItem.setResourceGroupId(_ctx.stringValue("ListVccsResponse.Content.Data["+ i +"].ResourceGroupId")); dataItem.setConnectionType(_ctx.stringValue("ListVccsResponse.Content.Data["+ i +"].ConnectionType")); dataItem.setCenOwnerId(_ctx.stringValue("ListVccsResponse.Content.Data["+ i +"].CenOwnerId")); + dataItem.setBgpAsn(_ctx.stringValue("ListVccsResponse.Content.Data["+ i +"].BgpAsn")); VpdBaseInfo vpdBaseInfo = new VpdBaseInfo(); vpdBaseInfo.setVpdId(_ctx.stringValue("ListVccsResponse.Content.Data["+ i +"].VpdBaseInfo.VpdId"));