diff --git a/VERSION b/VERSION index 432e21c1..f956960a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.26-release +1.2.27-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index 274e7f53..1684bacd 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index e171d2e2..776fb173 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.26-release + 1.2.27-release diff --git a/pom.xml b/pom.xml index 44e84ffa..2c5d8b49 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.26-release + 1.2.27-release ucloud-sdk-java-common ucloud-sdk-java-cube @@ -22,6 +22,7 @@ ucloud-sdk-java-udb ucloud-sdk-java-udbproxy ucloud-sdk-java-udi + ucloud-sdk-java-udns ucloud-sdk-java-udpn ucloud-sdk-java-udisk ucloud-sdk-java-uec diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 7305cb7f..f916293a 100644 --- a/ucloud-sdk-java-common/pom.xml +++ b/ucloud-sdk-java-common/pom.xml @@ -7,12 +7,12 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index ba073a3c..d43785b4 100644 --- a/ucloud-sdk-java-cube/pom.xml +++ b/ucloud-sdk-java-cube/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-cube - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index f75757a9..b71b48e2 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-ipsecvpn - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index c9de8c6b..17463b1d 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-pathx - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index f6b5288a..39863c01 100644 --- a/ucloud-sdk-java-sts/pom.xml +++ b/ucloud-sdk-java-sts/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-sts - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index 0e79a0bd..f6812a0d 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-uaccount - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index b3627cb8..e0959a02 100644 --- a/ucloud-sdk-java-uai_modelverse/pom.xml +++ b/ucloud-sdk-java-uai_modelverse/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-uai_modelverse - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 698d9a15..be7ceb62 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-ubill - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index 976e729c..e77edeb0 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-ucdn - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClient.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClient.java index 23581176..b7656907 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClient.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClient.java @@ -31,6 +31,8 @@ import cn.ucloud.ucdn.models.GetCertificateV2Response; import cn.ucloud.ucdn.models.GetNewUcdnDomainHitRateRequest; import cn.ucloud.ucdn.models.GetNewUcdnDomainHitRateResponse; +import cn.ucloud.ucdn.models.GetNewUcdnLogClientIpStatisticsRequest; +import cn.ucloud.ucdn.models.GetNewUcdnLogClientIpStatisticsResponse; import cn.ucloud.ucdn.models.GetNewUcdnLogRefererStatisticsRequest; import cn.ucloud.ucdn.models.GetNewUcdnLogRefererStatisticsResponse; import cn.ucloud.ucdn.models.GetNewUcdnLogUrlStatisticsRequest; @@ -73,6 +75,8 @@ import cn.ucloud.ucdn.models.RefreshNewUcdnDomainCacheResponse; import cn.ucloud.ucdn.models.SwitchUcdnChargeTypeRequest; import cn.ucloud.ucdn.models.SwitchUcdnChargeTypeResponse; +import cn.ucloud.ucdn.models.UpdateUcdnDomainHttpsConfigV2Request; +import cn.ucloud.ucdn.models.UpdateUcdnDomainHttpsConfigV2Response; import cn.ucloud.ucdn.models.UpdateUcdnDomainStatusRequest; import cn.ucloud.ucdn.models.UpdateUcdnDomainStatusResponse; @@ -169,6 +173,19 @@ public GetNewUcdnDomainHitRateResponse getNewUcdnDomainHitRate( this.invoke(request, GetNewUcdnDomainHitRateResponse.class); } + /** + * GetNewUcdnLogClientIpStatistics - 获取日志客户端ip统计 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetNewUcdnLogClientIpStatisticsResponse getNewUcdnLogClientIpStatistics( + GetNewUcdnLogClientIpStatisticsRequest request) throws UCloudException { + request.setAction("GetNewUcdnLogClientIpStatistics"); + return (GetNewUcdnLogClientIpStatisticsResponse) + this.invoke(request, GetNewUcdnLogClientIpStatisticsResponse.class); + } + /** * GetNewUcdnLogRefererStatistics - 获取热点referer统计 * @@ -439,6 +456,19 @@ public SwitchUcdnChargeTypeResponse switchUcdnChargeType(SwitchUcdnChargeTypeReq this.invoke(request, SwitchUcdnChargeTypeResponse.class); } + /** + * UpdateUcdnDomainHttpsConfigV2 - https加速配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUcdnDomainHttpsConfigV2Response updateUcdnDomainHttpsConfigV2( + UpdateUcdnDomainHttpsConfigV2Request request) throws UCloudException { + request.setAction("UpdateUcdnDomainHttpsConfigV2"); + return (UpdateUcdnDomainHttpsConfigV2Response) + this.invoke(request, UpdateUcdnDomainHttpsConfigV2Response.class); + } + /** * UpdateUcdnDomainStatus - 更新加速域名状态 * diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClientInterface.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClientInterface.java index 1cfdc408..589bac70 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClientInterface.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/client/UCDNClientInterface.java @@ -29,6 +29,8 @@ import cn.ucloud.ucdn.models.GetCertificateV2Response; import cn.ucloud.ucdn.models.GetNewUcdnDomainHitRateRequest; import cn.ucloud.ucdn.models.GetNewUcdnDomainHitRateResponse; +import cn.ucloud.ucdn.models.GetNewUcdnLogClientIpStatisticsRequest; +import cn.ucloud.ucdn.models.GetNewUcdnLogClientIpStatisticsResponse; import cn.ucloud.ucdn.models.GetNewUcdnLogRefererStatisticsRequest; import cn.ucloud.ucdn.models.GetNewUcdnLogRefererStatisticsResponse; import cn.ucloud.ucdn.models.GetNewUcdnLogUrlStatisticsRequest; @@ -71,6 +73,8 @@ import cn.ucloud.ucdn.models.RefreshNewUcdnDomainCacheResponse; import cn.ucloud.ucdn.models.SwitchUcdnChargeTypeRequest; import cn.ucloud.ucdn.models.SwitchUcdnChargeTypeResponse; +import cn.ucloud.ucdn.models.UpdateUcdnDomainHttpsConfigV2Request; +import cn.ucloud.ucdn.models.UpdateUcdnDomainHttpsConfigV2Response; import cn.ucloud.ucdn.models.UpdateUcdnDomainStatusRequest; import cn.ucloud.ucdn.models.UpdateUcdnDomainStatusResponse; @@ -139,6 +143,15 @@ public GetCertificateV2Response getCertificateV2(GetCertificateV2Request request public GetNewUcdnDomainHitRateResponse getNewUcdnDomainHitRate( GetNewUcdnDomainHitRateRequest request) throws UCloudException; + /** + * GetNewUcdnLogClientIpStatistics - 获取日志客户端ip统计 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetNewUcdnLogClientIpStatisticsResponse getNewUcdnLogClientIpStatistics( + GetNewUcdnLogClientIpStatisticsRequest request) throws UCloudException; + /** * GetNewUcdnLogRefererStatistics - 获取热点referer统计 * @@ -328,6 +341,15 @@ public RefreshNewUcdnDomainCacheResponse refreshNewUcdnDomainCache( public SwitchUcdnChargeTypeResponse switchUcdnChargeType(SwitchUcdnChargeTypeRequest request) throws UCloudException; + /** + * UpdateUcdnDomainHttpsConfigV2 - https加速配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUcdnDomainHttpsConfigV2Response updateUcdnDomainHttpsConfigV2( + UpdateUcdnDomainHttpsConfigV2Request request) throws UCloudException; + /** * UpdateUcdnDomainStatus - 更新加速域名状态 * diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogClientIpStatisticsRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogClientIpStatisticsRequest.java new file mode 100644 index 00000000..505939bd --- /dev/null +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogClientIpStatisticsRequest.java @@ -0,0 +1,98 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.ucdn.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetNewUcdnLogClientIpStatisticsRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名id,创建域名时生成的id */ + @NotEmpty + @UCloudParam("DomainId") + private String domainId; + + /** 查询的日期,单位:Unix时间戳。只支持按天查询 */ + @UCloudParam("BeginTime") + private Integer beginTime; + + /** 0表示按照下载次数降序排列,1表示按流量降序排列,默认为0 */ + @UCloudParam("OrderBy") + private Integer orderBy; + + /** 返回结果数量限制,返回最多100条 */ + @UCloudParam("Limit") + private String limit; + + /** 1表示按照1小时粒度,2表示按照一天的粒度 默认是天 */ + @UCloudParam("Type") + private Integer type; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDomainId() { + return domainId; + } + + public void setDomainId(String domainId) { + this.domainId = domainId; + } + + public Integer getBeginTime() { + return beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getOrderBy() { + return orderBy; + } + + public void setOrderBy(Integer orderBy) { + this.orderBy = orderBy; + } + + public String getLimit() { + return limit; + } + + public void setLimit(String limit) { + this.limit = limit; + } + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } +} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogClientIpStatisticsResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogClientIpStatisticsResponse.java new file mode 100644 index 00000000..a0ad3a4e --- /dev/null +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogClientIpStatisticsResponse.java @@ -0,0 +1,98 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.ucdn.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetNewUcdnLogClientIpStatisticsResponse extends Response { + + /** 客户端ip数据集合。 */ + @SerializedName("ClientIpStatisticsList") + private List clientIpStatisticsList; + + public List getClientIpStatisticsList() { + return clientIpStatisticsList; + } + + public void setClientIpStatisticsList(List clientIpStatisticsList) { + this.clientIpStatisticsList = clientIpStatisticsList; + } + + public static class ClientIpStatisticsList extends Response { + + /** 流量单位字节 */ + @SerializedName("Flow") + private Integer flow; + + /** 客户端IP */ + @SerializedName("IP") + private String ip; + + /** 请求数 */ + @SerializedName("Requst") + private Integer requst; + + /** 流量占比 */ + @SerializedName("FlowPercent") + private Double flowPercent; + + /** 请求数占比 */ + @SerializedName("RequestPercent") + private Double requestPercent; + + public Integer getFlow() { + return flow; + } + + public void setFlow(Integer flow) { + this.flow = flow; + } + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public Integer getRequst() { + return requst; + } + + public void setRequst(Integer requst) { + this.requst = requst; + } + + public Double getFlowPercent() { + return flowPercent; + } + + public void setFlowPercent(Double flowPercent) { + this.flowPercent = flowPercent; + } + + public Double getRequestPercent() { + return requestPercent; + } + + public void setRequestPercent(Double requestPercent) { + this.requestPercent = requestPercent; + } + } +} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainHttpsConfigV2Request.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainHttpsConfigV2Request.java new file mode 100644 index 00000000..8935e93c --- /dev/null +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainHttpsConfigV2Request.java @@ -0,0 +1,95 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.ucdn.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateUcdnDomainHttpsConfigV2Request extends Request { + + /** 域名对应的资源Id */ + @NotEmpty + @UCloudParam("DomainId") + private String domainId; + + /** 开启或关闭加速 enable或disable 当加速区域含国内的时候,此参数为必传 */ + @UCloudParam("HttpsStatusCn") + private String httpsStatusCn; + + /** 开启或关闭加速 enable或disable 当加速区域含国外的时候,此参数为必传 */ + @UCloudParam("HttpsStatusAbroad") + private String httpsStatusAbroad; + + /** 证书名称,开启加速必传 */ + @UCloudParam("CertName") + private String certName; + + /** 证书id(可能是ucdn的id,也可能是ussl的id) */ + @UCloudParam("CertId") + private Integer certId; + + /** 证书类型 ucdn/ussl */ + @UCloudParam("CertType") + private String certType; + + public String getDomainId() { + return domainId; + } + + public void setDomainId(String domainId) { + this.domainId = domainId; + } + + public String getHttpsStatusCn() { + return httpsStatusCn; + } + + public void setHttpsStatusCn(String httpsStatusCn) { + this.httpsStatusCn = httpsStatusCn; + } + + public String getHttpsStatusAbroad() { + return httpsStatusAbroad; + } + + public void setHttpsStatusAbroad(String httpsStatusAbroad) { + this.httpsStatusAbroad = httpsStatusAbroad; + } + + public String getCertName() { + return certName; + } + + public void setCertName(String certName) { + this.certName = certName; + } + + public Integer getCertId() { + return certId; + } + + public void setCertId(Integer certId) { + this.certId = certId; + } + + public String getCertType() { + return certType; + } + + public void setCertType(String certType) { + this.certType = certType; + } +} diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainHttpsConfigV2Response.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainHttpsConfigV2Response.java new file mode 100644 index 00000000..a908eb95 --- /dev/null +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/UpdateUcdnDomainHttpsConfigV2Response.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.ucdn.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateUcdnDomainHttpsConfigV2Response extends Response {} diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index 4a781d8a..88c695ab 100644 --- a/ucloud-sdk-java-ucompshare/pom.xml +++ b/ucloud-sdk-java-ucompshare/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-ucompshare - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index d48c2520..f98a63cf 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-udb - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java index 114d93c5..6a339a4d 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java @@ -811,7 +811,7 @@ public static class UDBSlaveInstanceSet extends Response { /** 实例计算规格类型,0或不传代表使用内存方式购买,1代表使用内存-cpu可选配比方式购买,需要填写MachineType */ @SerializedName("SpecificationType") - private String specificationType; + private Integer specificationType; /** 规格类型ID,当SpecificationType为1时有效 */ @SerializedName("MachineType") @@ -1121,11 +1121,11 @@ public void setCaseSensitivityParam(Integer caseSensitivityParam) { this.caseSensitivityParam = caseSensitivityParam; } - public String getSpecificationType() { + public Integer getSpecificationType() { return specificationType; } - public void setSpecificationType(String specificationType) { + public void setSpecificationType(Integer specificationType) { this.specificationType = specificationType; } diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index b3477711..b3481205 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-udbproxy - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index ef7ad95f..b00feca5 100644 --- a/ucloud-sdk-java-udi/pom.xml +++ b/ucloud-sdk-java-udi/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-udi - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index 4b467dcb..a460b792 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-udisk - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml new file mode 100644 index 00000000..7b17c72d --- /dev/null +++ b/ucloud-sdk-java-udns/pom.xml @@ -0,0 +1,49 @@ + + + + + ucloud-sdk-java + cn.ucloud + 1.2.27-release + + + 4.0.0 + ucloud-sdk-java-udns + 1.2.27-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.27-release + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/client/UDNSClient.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/client/UDNSClient.java new file mode 100644 index 00000000..e84ed741 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/client/UDNSClient.java @@ -0,0 +1,168 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.client; + +import cn.ucloud.common.client.DefaultClient; +import cn.ucloud.common.config.Config; +import cn.ucloud.common.credential.Credential; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.udns.models.AssociateUDNSZoneVPCRequest; +import cn.ucloud.udns.models.AssociateUDNSZoneVPCResponse; +import cn.ucloud.udns.models.CreateUDNSRecordRequest; +import cn.ucloud.udns.models.CreateUDNSRecordResponse; +import cn.ucloud.udns.models.CreateUDNSZoneRequest; +import cn.ucloud.udns.models.CreateUDNSZoneResponse; +import cn.ucloud.udns.models.DeleteUDNSRecordRequest; +import cn.ucloud.udns.models.DeleteUDNSRecordResponse; +import cn.ucloud.udns.models.DescribeUDNSDomainRequest; +import cn.ucloud.udns.models.DescribeUDNSDomainResponse; +import cn.ucloud.udns.models.DescribeUDNSRecordRequest; +import cn.ucloud.udns.models.DescribeUDNSRecordResponse; +import cn.ucloud.udns.models.DescribeUDNSZoneRequest; +import cn.ucloud.udns.models.DescribeUDNSZoneResponse; +import cn.ucloud.udns.models.DisassociateUDNSZoneVPCRequest; +import cn.ucloud.udns.models.DisassociateUDNSZoneVPCResponse; +import cn.ucloud.udns.models.ModifyUDNSRecordRequest; +import cn.ucloud.udns.models.ModifyUDNSRecordResponse; +import cn.ucloud.udns.models.ModifyUDNSZoneRequest; +import cn.ucloud.udns.models.ModifyUDNSZoneResponse; + +/** This client is used to call actions of **UDNS** service */ +public class UDNSClient extends DefaultClient implements UDNSClientInterface { + public UDNSClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * AssociateUDNSZoneVPC - 绑定域名与VPC + * + * @param request Request object + * @throws UCloudException Exception + */ + public AssociateUDNSZoneVPCResponse associateUDNSZoneVPC(AssociateUDNSZoneVPCRequest request) + throws UCloudException { + request.setAction("AssociateUDNSZoneVPC"); + return (AssociateUDNSZoneVPCResponse) + this.invoke(request, AssociateUDNSZoneVPCResponse.class); + } + + /** + * CreateUDNSRecord - 创建域名记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUDNSRecordResponse createUDNSRecord(CreateUDNSRecordRequest request) + throws UCloudException { + request.setAction("CreateUDNSRecord"); + return (CreateUDNSRecordResponse) this.invoke(request, CreateUDNSRecordResponse.class); + } + + /** + * CreateUDNSZone - 创建域名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUDNSZoneResponse createUDNSZone(CreateUDNSZoneRequest request) + throws UCloudException { + request.setAction("CreateUDNSZone"); + return (CreateUDNSZoneResponse) this.invoke(request, CreateUDNSZoneResponse.class); + } + + /** + * DeleteUDNSRecord - 删除域名记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUDNSRecordResponse deleteUDNSRecord(DeleteUDNSRecordRequest request) + throws UCloudException { + request.setAction("DeleteUDNSRecord"); + return (DeleteUDNSRecordResponse) this.invoke(request, DeleteUDNSRecordResponse.class); + } + + /** + * DescribeUDNSDomain - zone下所有域名的rr记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDNSDomainResponse describeUDNSDomain(DescribeUDNSDomainRequest request) + throws UCloudException { + request.setAction("DescribeUDNSDomain"); + return (DescribeUDNSDomainResponse) this.invoke(request, DescribeUDNSDomainResponse.class); + } + + /** + * DescribeUDNSRecord - 获取域名记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDNSRecordResponse describeUDNSRecord(DescribeUDNSRecordRequest request) + throws UCloudException { + request.setAction("DescribeUDNSRecord"); + return (DescribeUDNSRecordResponse) this.invoke(request, DescribeUDNSRecordResponse.class); + } + + /** + * DescribeUDNSZone - 获取域名信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDNSZoneResponse describeUDNSZone(DescribeUDNSZoneRequest request) + throws UCloudException { + request.setAction("DescribeUDNSZone"); + return (DescribeUDNSZoneResponse) this.invoke(request, DescribeUDNSZoneResponse.class); + } + + /** + * DisassociateUDNSZoneVPC - 解绑域名和VPC + * + * @param request Request object + * @throws UCloudException Exception + */ + public DisassociateUDNSZoneVPCResponse disassociateUDNSZoneVPC( + DisassociateUDNSZoneVPCRequest request) throws UCloudException { + request.setAction("DisassociateUDNSZoneVPC"); + return (DisassociateUDNSZoneVPCResponse) + this.invoke(request, DisassociateUDNSZoneVPCResponse.class); + } + + /** + * ModifyUDNSRecord - 修改域名记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDNSRecordResponse modifyUDNSRecord(ModifyUDNSRecordRequest request) + throws UCloudException { + request.setAction("ModifyUDNSRecord"); + return (ModifyUDNSRecordResponse) this.invoke(request, ModifyUDNSRecordResponse.class); + } + + /** + * ModifyUDNSZone - 修改域名属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDNSZoneResponse modifyUDNSZone(ModifyUDNSZoneRequest request) + throws UCloudException { + request.setAction("ModifyUDNSZone"); + return (ModifyUDNSZoneResponse) this.invoke(request, ModifyUDNSZoneResponse.class); + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/client/UDNSClientInterface.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/client/UDNSClientInterface.java new file mode 100644 index 00000000..5e3d5eef --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/client/UDNSClientInterface.java @@ -0,0 +1,131 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.udns.models.AssociateUDNSZoneVPCRequest; +import cn.ucloud.udns.models.AssociateUDNSZoneVPCResponse; +import cn.ucloud.udns.models.CreateUDNSRecordRequest; +import cn.ucloud.udns.models.CreateUDNSRecordResponse; +import cn.ucloud.udns.models.CreateUDNSZoneRequest; +import cn.ucloud.udns.models.CreateUDNSZoneResponse; +import cn.ucloud.udns.models.DeleteUDNSRecordRequest; +import cn.ucloud.udns.models.DeleteUDNSRecordResponse; +import cn.ucloud.udns.models.DescribeUDNSDomainRequest; +import cn.ucloud.udns.models.DescribeUDNSDomainResponse; +import cn.ucloud.udns.models.DescribeUDNSRecordRequest; +import cn.ucloud.udns.models.DescribeUDNSRecordResponse; +import cn.ucloud.udns.models.DescribeUDNSZoneRequest; +import cn.ucloud.udns.models.DescribeUDNSZoneResponse; +import cn.ucloud.udns.models.DisassociateUDNSZoneVPCRequest; +import cn.ucloud.udns.models.DisassociateUDNSZoneVPCResponse; +import cn.ucloud.udns.models.ModifyUDNSRecordRequest; +import cn.ucloud.udns.models.ModifyUDNSRecordResponse; +import cn.ucloud.udns.models.ModifyUDNSZoneRequest; +import cn.ucloud.udns.models.ModifyUDNSZoneResponse; + +/** This client is used to call actions of **UDNS** service */ +public interface UDNSClientInterface extends Client { + + /** + * AssociateUDNSZoneVPC - 绑定域名与VPC + * + * @param request Request object + * @throws UCloudException Exception + */ + public AssociateUDNSZoneVPCResponse associateUDNSZoneVPC(AssociateUDNSZoneVPCRequest request) + throws UCloudException; + + /** + * CreateUDNSRecord - 创建域名记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUDNSRecordResponse createUDNSRecord(CreateUDNSRecordRequest request) + throws UCloudException; + + /** + * CreateUDNSZone - 创建域名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUDNSZoneResponse createUDNSZone(CreateUDNSZoneRequest request) + throws UCloudException; + + /** + * DeleteUDNSRecord - 删除域名记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUDNSRecordResponse deleteUDNSRecord(DeleteUDNSRecordRequest request) + throws UCloudException; + + /** + * DescribeUDNSDomain - zone下所有域名的rr记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDNSDomainResponse describeUDNSDomain(DescribeUDNSDomainRequest request) + throws UCloudException; + + /** + * DescribeUDNSRecord - 获取域名记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDNSRecordResponse describeUDNSRecord(DescribeUDNSRecordRequest request) + throws UCloudException; + + /** + * DescribeUDNSZone - 获取域名信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDNSZoneResponse describeUDNSZone(DescribeUDNSZoneRequest request) + throws UCloudException; + + /** + * DisassociateUDNSZoneVPC - 解绑域名和VPC + * + * @param request Request object + * @throws UCloudException Exception + */ + public DisassociateUDNSZoneVPCResponse disassociateUDNSZoneVPC( + DisassociateUDNSZoneVPCRequest request) throws UCloudException; + + /** + * ModifyUDNSRecord - 修改域名记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDNSRecordResponse modifyUDNSRecord(ModifyUDNSRecordRequest request) + throws UCloudException; + + /** + * ModifyUDNSZone - 修改域名属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDNSZoneResponse modifyUDNSZone(ModifyUDNSZoneRequest request) + throws UCloudException; +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/AssociateUDNSZoneVPCRequest.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/AssociateUDNSZoneVPCRequest.java new file mode 100644 index 00000000..fb43c48f --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/AssociateUDNSZoneVPCRequest.java @@ -0,0 +1,89 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AssociateUDNSZoneVPCRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名资源ID */ + @NotEmpty + @UCloudParam("DNSZoneId") + private String dnsZoneId; + + /** VPC所属项目ID */ + @NotEmpty + @UCloudParam("VPCProjectId") + private String vpcProjectId; + + /** VPC资源ID */ + @NotEmpty + @UCloudParam("VPCId") + private String vpcId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDNSZoneId() { + return dnsZoneId; + } + + public void setDNSZoneId(String dnsZoneId) { + this.dnsZoneId = dnsZoneId; + } + + public String getVPCProjectId() { + return vpcProjectId; + } + + public void setVPCProjectId(String vpcProjectId) { + this.vpcProjectId = vpcProjectId; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/AssociateUDNSZoneVPCResponse.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/AssociateUDNSZoneVPCResponse.java new file mode 100644 index 00000000..4d7e5534 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/AssociateUDNSZoneVPCResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + + +import cn.ucloud.common.response.Response; + +public class AssociateUDNSZoneVPCResponse extends Response {} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/CreateUDNSRecordRequest.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/CreateUDNSRecordRequest.java new file mode 100644 index 00000000..37558bef --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/CreateUDNSRecordRequest.java @@ -0,0 +1,141 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateUDNSRecordRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名资源ID */ + @NotEmpty + @UCloudParam("DNSZoneId") + private String dnsZoneId; + + /** 主机记录 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** 记录类型。枚举值,“A”,"CNAME","MX","AAAA","SRV","PTR","TXT"。 */ + @NotEmpty + @UCloudParam("Type") + private String type; + + /** + * 数值组,支持逗号分割。格式为:Value|权重|IsEnabled,其中权重支持1-10,IsEnabled为枚举值(1为启用,0为禁用)。输入格式示例:192.168.1.1|1|1,192.168.1.2|10|0。 + */ + @NotEmpty + @UCloudParam("Value") + private String value; + + /** 值类型。枚举值,“Normal”,标准;“Multivalue”,多值返回。仅在值为“Multivalue”时,Value的权重生效。 */ + @NotEmpty + @UCloudParam("ValueType") + private String valueType; + + /** TTL值,范围为5-600,单位为秒。默认为5 */ + @UCloudParam("TTL") + private Integer ttl; + + /** 记录的备注信息 */ + @UCloudParam("Remark") + private String remark; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDNSZoneId() { + return dnsZoneId; + } + + public void setDNSZoneId(String dnsZoneId) { + this.dnsZoneId = dnsZoneId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getValueType() { + return valueType; + } + + public void setValueType(String valueType) { + this.valueType = valueType; + } + + public Integer getTTL() { + return ttl; + } + + public void setTTL(Integer ttl) { + this.ttl = ttl; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/CreateUDNSRecordResponse.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/CreateUDNSRecordResponse.java new file mode 100644 index 00000000..087bc8d3 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/CreateUDNSRecordResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateUDNSRecordResponse extends Response { + + /** 域名记录的资源ID */ + @SerializedName("DNSRecordId") + private String dnsRecordId; + + public String getDNSRecordId() { + return dnsRecordId; + } + + public void setDNSRecordId(String dnsRecordId) { + this.dnsRecordId = dnsRecordId; + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/CreateUDNSZoneRequest.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/CreateUDNSZoneRequest.java new file mode 100644 index 00000000..ff214538 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/CreateUDNSZoneRequest.java @@ -0,0 +1,148 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateUDNSZoneRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名字符串 */ + @NotEmpty + @UCloudParam("DNSZoneName") + private String dnsZoneName; + + /** 域名类型。枚举值,“private”,内网DNS;“public”,公网DNS,暂只支持private。 */ + @NotEmpty + @UCloudParam("Type") + private String type; + + /** 所属业务组名称 */ + @UCloudParam("Tag") + private String tag; + + /** 备注 */ + @UCloudParam("Remark") + private String remark; + + /** 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代 */ + @UCloudParam("IsRecursionEnabled") + private String isRecursionEnabled; + + /** 购买时长,默认为1 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费,默认为按月付费 */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 代金券ID,默认不使用 */ + @UCloudParam("CouponId") + private String couponId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDNSZoneName() { + return dnsZoneName; + } + + public void setDNSZoneName(String dnsZoneName) { + this.dnsZoneName = dnsZoneName; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getIsRecursionEnabled() { + return isRecursionEnabled; + } + + public void setIsRecursionEnabled(String isRecursionEnabled) { + this.isRecursionEnabled = isRecursionEnabled; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/CreateUDNSZoneResponse.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/CreateUDNSZoneResponse.java new file mode 100644 index 00000000..263d2a02 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/CreateUDNSZoneResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateUDNSZoneResponse extends Response { + + /** 域名资源ID */ + @SerializedName("DNSZoneId") + private String dnsZoneId; + + public String getDNSZoneId() { + return dnsZoneId; + } + + public void setDNSZoneId(String dnsZoneId) { + this.dnsZoneId = dnsZoneId; + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DeleteUDNSRecordRequest.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DeleteUDNSRecordRequest.java new file mode 100644 index 00000000..ea2931eb --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DeleteUDNSRecordRequest.java @@ -0,0 +1,77 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +import java.util.List; + +public class DeleteUDNSRecordRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名资源ID */ + @NotEmpty + @UCloudParam("DNSZoneId") + private String dnsZoneId; + + /** 域名记录资源ID */ + @NotEmpty + @UCloudParam("RecordIds") + private List recordIds; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDNSZoneId() { + return dnsZoneId; + } + + public void setDNSZoneId(String dnsZoneId) { + this.dnsZoneId = dnsZoneId; + } + + public List getRecordIds() { + return recordIds; + } + + public void setRecordIds(List recordIds) { + this.recordIds = recordIds; + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DeleteUDNSRecordResponse.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DeleteUDNSRecordResponse.java new file mode 100644 index 00000000..2ca0be42 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DeleteUDNSRecordResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteUDNSRecordResponse extends Response {} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSDomainRequest.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSDomainRequest.java new file mode 100644 index 00000000..bfa7cb2f --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSDomainRequest.java @@ -0,0 +1,101 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeUDNSDomainRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** zone名称 */ + @NotEmpty + @UCloudParam("DNSZoneName") + private String dnsZoneName; + + /** VPI资源ID */ + @NotEmpty + @UCloudParam("VPCId") + private String vpcId; + + /** 查询数量偏移 */ + @UCloudParam("Offset") + private Integer offset; + + /** 返回数量 */ + @UCloudParam("Limit") + private Integer limit; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDNSZoneName() { + return dnsZoneName; + } + + public void setDNSZoneName(String dnsZoneName) { + this.dnsZoneName = dnsZoneName; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSDomainResponse.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSDomainResponse.java new file mode 100644 index 00000000..4c2fe2f7 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSDomainResponse.java @@ -0,0 +1,173 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeUDNSDomainResponse extends Response { + + /** 查询记录 */ + @SerializedName("RecordInfos") + private List recordInfos; + + /** 总条数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + public List getRecordInfos() { + return recordInfos; + } + + public void setRecordInfos(List recordInfos) { + this.recordInfos = recordInfos; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public static class RecordInfo extends Response { + + /** 域名记录资源ID */ + @SerializedName("RecordId") + private String recordId; + + /** 主机记录 */ + @SerializedName("Name") + private String name; + + /** 记录类型 */ + @SerializedName("Type") + private String type; + + /** 数值组 */ + @SerializedName("ValueSet") + private List valueSet; + + /** 记录策略,标准或随机应答 */ + @SerializedName("ValueType") + private String valueType; + + /** TTL值,单位为秒 */ + @SerializedName("TTL") + private Integer ttl; + + /** 记录备注信息 */ + @SerializedName("Remark") + private String remark; + + public String getRecordId() { + return recordId; + } + + public void setRecordId(String recordId) { + this.recordId = recordId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public List getValueSet() { + return valueSet; + } + + public void setValueSet(List valueSet) { + this.valueSet = valueSet; + } + + public String getValueType() { + return valueType; + } + + public void setValueType(String valueType) { + this.valueType = valueType; + } + + public Integer getTTL() { + return ttl; + } + + public void setTTL(Integer ttl) { + this.ttl = ttl; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + } + + public static class ValueSet extends Response { + + /** 主机记录 */ + @SerializedName("Data") + private String data; + + /** 权重 */ + @SerializedName("Weight") + private Integer weight; + + /** 是否启用 */ + @SerializedName("IsEnabled") + private Integer isEnabled; + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + + public Integer getIsEnabled() { + return isEnabled; + } + + public void setIsEnabled(Integer isEnabled) { + this.isEnabled = isEnabled; + } + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSRecordRequest.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSRecordRequest.java new file mode 100644 index 00000000..d1461dc0 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSRecordRequest.java @@ -0,0 +1,100 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +import java.util.List; + +public class DescribeUDNSRecordRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名资源ID */ + @NotEmpty + @UCloudParam("DNSZoneId") + private String dnsZoneId; + + /** 域名记录资源ID */ + @UCloudParam("RecordIds") + private List recordIds; + + /** 数据分页值, 默认为20 */ + @UCloudParam("Limit") + private Integer limit; + + /** 数据偏移量, 默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDNSZoneId() { + return dnsZoneId; + } + + public void setDNSZoneId(String dnsZoneId) { + this.dnsZoneId = dnsZoneId; + } + + public List getRecordIds() { + return recordIds; + } + + public void setRecordIds(List recordIds) { + this.recordIds = recordIds; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSRecordResponse.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSRecordResponse.java new file mode 100644 index 00000000..3be60568 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSRecordResponse.java @@ -0,0 +1,173 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeUDNSRecordResponse extends Response { + + /** 资源数量 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 域名记录详细信息 */ + @SerializedName("RecordInfos") + private List recordInfos; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getRecordInfos() { + return recordInfos; + } + + public void setRecordInfos(List recordInfos) { + this.recordInfos = recordInfos; + } + + public static class RecordInfo extends Response { + + /** 域名记录资源ID */ + @SerializedName("RecordId") + private String recordId; + + /** 主机记录 */ + @SerializedName("Name") + private String name; + + /** 记录类型 */ + @SerializedName("Type") + private String type; + + /** 数值组 */ + @SerializedName("ValueSet") + private List valueSet; + + /** 记录策略,标准或随机应答 */ + @SerializedName("ValueType") + private String valueType; + + /** TTL值,单位为秒 */ + @SerializedName("TTL") + private Integer ttl; + + /** 记录备注信息 */ + @SerializedName("Remark") + private String remark; + + public String getRecordId() { + return recordId; + } + + public void setRecordId(String recordId) { + this.recordId = recordId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public List getValueSet() { + return valueSet; + } + + public void setValueSet(List valueSet) { + this.valueSet = valueSet; + } + + public String getValueType() { + return valueType; + } + + public void setValueType(String valueType) { + this.valueType = valueType; + } + + public Integer getTTL() { + return ttl; + } + + public void setTTL(Integer ttl) { + this.ttl = ttl; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + } + + public static class ValueSet extends Response { + + /** 主机记录 */ + @SerializedName("Data") + private String data; + + /** 权重 */ + @SerializedName("Weight") + private Integer weight; + + /** 是否启用 */ + @SerializedName("IsEnabled") + private Integer isEnabled; + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + + public Integer getIsEnabled() { + return isEnabled; + } + + public void setIsEnabled(Integer isEnabled) { + this.isEnabled = isEnabled; + } + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSZoneRequest.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSZoneRequest.java new file mode 100644 index 00000000..e4fffc35 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSZoneRequest.java @@ -0,0 +1,87 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +import java.util.List; + +public class DescribeUDNSZoneRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名资源ID */ + @UCloudParam("DNSZoneIds") + private List dnsZoneIds; + + /** 数据分页值, 默认为20 */ + @UCloudParam("Limit") + private Integer limit; + + /** 数据偏移量, 默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public List getDNSZoneIds() { + return dnsZoneIds; + } + + public void setDNSZoneIds(List dnsZoneIds) { + this.dnsZoneIds = dnsZoneIds; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSZoneResponse.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSZoneResponse.java new file mode 100644 index 00000000..0f670953 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DescribeUDNSZoneResponse.java @@ -0,0 +1,233 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeUDNSZoneResponse extends Response { + + /** 符合查询条件的域名数量 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 域名资源信息 */ + @SerializedName("DNSZoneInfos") + private List dnsZoneInfos; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getDNSZoneInfos() { + return dnsZoneInfos; + } + + public void setDNSZoneInfos(List dnsZoneInfos) { + this.dnsZoneInfos = dnsZoneInfos; + } + + public static class VPCInfo extends Response { + + /** VPC ID */ + @SerializedName("VPCId") + private String vpcId; + + /** VPC所属项目ID */ + @SerializedName("VPCProjectId") + private String vpcProjectId; + + /** VPC名称 */ + @SerializedName("Name") + private String name; + + /** VPC地址空间 */ + @SerializedName("Network") + private List network; + + /** VPC类型:Normal 公有云 Hybrid 托管云 */ + @SerializedName("VPCType") + private String vpcType; + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getVPCProjectId() { + return vpcProjectId; + } + + public void setVPCProjectId(String vpcProjectId) { + this.vpcProjectId = vpcProjectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public List getNetwork() { + return network; + } + + public void setNetwork(List network) { + this.network = network; + } + + public String getVPCType() { + return vpcType; + } + + public void setVPCType(String vpcType) { + this.vpcType = vpcType; + } + } + + public static class ZoneInfo extends Response { + + /** 域名名称 */ + @SerializedName("DNSZoneName") + private String dnsZoneName; + + /** 业务组 */ + @SerializedName("Tag") + private String tag; + + /** 备注 */ + @SerializedName("Remark") + private String remark; + + /** 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代 */ + @SerializedName("IsRecursionEnabled") + private String isRecursionEnabled; + + /** 创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 过期时间 */ + @SerializedName("ExpireTime") + private Integer expireTime; + + /** 计费类型(Dynamic、Month、Year) */ + @SerializedName("ChargeType") + private String chargeType; + + /** 是否开启自动续费(Yes No) */ + @SerializedName("IsAutoRenew") + private String isAutoRenew; + + /** 记录相关ID */ + @SerializedName("RecordInfos") + private List recordInfos; + + /** 绑定的VPC信息 */ + @SerializedName("VPCInfos") + private List vpcInfos; + + public String getDNSZoneName() { + return dnsZoneName; + } + + public void setDNSZoneName(String dnsZoneName) { + this.dnsZoneName = dnsZoneName; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getIsRecursionEnabled() { + return isRecursionEnabled; + } + + public void setIsRecursionEnabled(String isRecursionEnabled) { + this.isRecursionEnabled = isRecursionEnabled; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getIsAutoRenew() { + return isAutoRenew; + } + + public void setIsAutoRenew(String isAutoRenew) { + this.isAutoRenew = isAutoRenew; + } + + public List getRecordInfos() { + return recordInfos; + } + + public void setRecordInfos(List recordInfos) { + this.recordInfos = recordInfos; + } + + public List getVPCInfos() { + return vpcInfos; + } + + public void setVPCInfos(List vpcInfos) { + this.vpcInfos = vpcInfos; + } + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DisassociateUDNSZoneVPCRequest.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DisassociateUDNSZoneVPCRequest.java new file mode 100644 index 00000000..bdb2b8e6 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DisassociateUDNSZoneVPCRequest.java @@ -0,0 +1,89 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DisassociateUDNSZoneVPCRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名资源ID */ + @NotEmpty + @UCloudParam("DNSZoneId") + private String dnsZoneId; + + /** VPC所属项目ID */ + @NotEmpty + @UCloudParam("VPCProjectId") + private String vpcProjectId; + + /** VPC资源ID */ + @NotEmpty + @UCloudParam("VPCId") + private String vpcId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDNSZoneId() { + return dnsZoneId; + } + + public void setDNSZoneId(String dnsZoneId) { + this.dnsZoneId = dnsZoneId; + } + + public String getVPCProjectId() { + return vpcProjectId; + } + + public void setVPCProjectId(String vpcProjectId) { + this.vpcProjectId = vpcProjectId; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DisassociateUDNSZoneVPCResponse.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DisassociateUDNSZoneVPCResponse.java new file mode 100644 index 00000000..c81780ce --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/DisassociateUDNSZoneVPCResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + + +import cn.ucloud.common.response.Response; + +public class DisassociateUDNSZoneVPCResponse extends Response {} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/ModifyUDNSRecordRequest.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/ModifyUDNSRecordRequest.java new file mode 100644 index 00000000..e129f7d4 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/ModifyUDNSRecordRequest.java @@ -0,0 +1,126 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyUDNSRecordRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名资源ID */ + @NotEmpty + @UCloudParam("DNSZoneId") + private String dnsZoneId; + + /** 域名记录资源ID */ + @NotEmpty + @UCloudParam("RecordId") + private String recordId; + + /** + * 数值组,支持逗号分割。格式为:Value|权重|Enable,其中权重支持1-10,Enable为枚举值(1为启用,0为禁用)。输入格式示例:192.168.1.1|1|1,192.168.1.2|10|0。 + */ + @UCloudParam("Value") + private String value; + + /** 值类型。枚举值,“Normal”,标准;“Multivalue”,多值返回。仅在值为“Multivalue”时,Value的权重生效。 */ + @UCloudParam("ValueType") + private String valueType; + + /** TTL值,单位为秒 */ + @UCloudParam("TTL") + private Integer ttl; + + /** 记录的备注信息 */ + @UCloudParam("Remark") + private String remark; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDNSZoneId() { + return dnsZoneId; + } + + public void setDNSZoneId(String dnsZoneId) { + this.dnsZoneId = dnsZoneId; + } + + public String getRecordId() { + return recordId; + } + + public void setRecordId(String recordId) { + this.recordId = recordId; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getValueType() { + return valueType; + } + + public void setValueType(String valueType) { + this.valueType = valueType; + } + + public Integer getTTL() { + return ttl; + } + + public void setTTL(Integer ttl) { + this.ttl = ttl; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/ModifyUDNSRecordResponse.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/ModifyUDNSRecordResponse.java new file mode 100644 index 00000000..49b9695e --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/ModifyUDNSRecordResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyUDNSRecordResponse extends Response {} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/ModifyUDNSZoneRequest.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/ModifyUDNSZoneRequest.java new file mode 100644 index 00000000..48e75198 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/ModifyUDNSZoneRequest.java @@ -0,0 +1,87 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyUDNSZoneRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名资源ID */ + @NotEmpty + @UCloudParam("DNSZoneId") + private String dnsZoneId; + + /** 备注 */ + @UCloudParam("Remark") + private String remark; + + /** 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代 */ + @UCloudParam("IsRecursionEnabled") + private String isRecursionEnabled; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDNSZoneId() { + return dnsZoneId; + } + + public void setDNSZoneId(String dnsZoneId) { + this.dnsZoneId = dnsZoneId; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getIsRecursionEnabled() { + return isRecursionEnabled; + } + + public void setIsRecursionEnabled(String isRecursionEnabled) { + this.isRecursionEnabled = isRecursionEnabled; + } +} diff --git a/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/ModifyUDNSZoneResponse.java b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/ModifyUDNSZoneResponse.java new file mode 100644 index 00000000..db83cad7 --- /dev/null +++ b/ucloud-sdk-java-udns/src/main/java/cn/ucloud/udns/models/ModifyUDNSZoneResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.udns.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyUDNSZoneResponse extends Response {} diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index a7eddfa0..42edce25 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-udpn - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index 1c582600..389b637b 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-uec - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index 7b1179d4..02e5e1ea 100644 --- a/ucloud-sdk-java-uewaf/pom.xml +++ b/ucloud-sdk-java-uewaf/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-uewaf - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index a1b92252..5aa3d627 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-ufile - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 0192de36..86223dcf 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-ufs - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index a20739f6..f4e0b9ed 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-uhost - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 3126160b..ca66b5ae 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-uk8s - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index 1ae71e73..1523e5de 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-ulb - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index 7a119bf7..e52b677b 100644 --- a/ucloud-sdk-java-ulog/pom.xml +++ b/ucloud-sdk-java-ulog/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-ulog - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index d16656f2..f96135d3 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-umem - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceRequest.java index 49492f5e..1970f0af 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceRequest.java @@ -20,6 +20,22 @@ public class DescribeUMemcacheUpgradePriceRequest extends Request { + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + /** 购买umemcache大小,单位:GB */ @NotEmpty @UCloudParam("Size") @@ -30,6 +46,30 @@ public class DescribeUMemcacheUpgradePriceRequest extends Request { @UCloudParam("GroupId") private String groupId; + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + public Integer getSize() { return size; } diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceResponse.java index ddf07088..73ecf573 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemcacheUpgradePriceResponse.java @@ -20,15 +20,39 @@ public class DescribeUMemcacheUpgradePriceResponse extends Response { - /** 价格,单位:元 */ + /** 价格 */ @SerializedName("Price") - private Double price; + private Integer price; - public Double getPrice() { + /** 原价 */ + @SerializedName("OriginalPrice") + private Integer originalPrice; + + /** 列表价格 */ + @SerializedName("ListPrice") + private Integer listPrice; + + public Integer getPrice() { return price; } - public void setPrice(Double price) { + public void setPrice(Integer price) { this.price = price; } + + public Integer getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(Integer originalPrice) { + this.originalPrice = originalPrice; + } + + public Integer getListPrice() { + return listPrice; + } + + public void setListPrice(Integer listPrice) { + this.listPrice = listPrice; + } } diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index 0da1b887..029d06e5 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-umongodb - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClient.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClient.java index f81d854d..f0d360f2 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClient.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClient.java @@ -19,6 +19,8 @@ import cn.ucloud.common.exception.UCloudException; import cn.ucloud.umongodb.models.BackupUMongoDBClusterRequest; import cn.ucloud.umongodb.models.BackupUMongoDBClusterResponse; +import cn.ucloud.umongodb.models.BackupUMongoDBLogRequest; +import cn.ucloud.umongodb.models.BackupUMongoDBLogResponse; import cn.ucloud.umongodb.models.CreateUMongoDBConfigTemplateRequest; import cn.ucloud.umongodb.models.CreateUMongoDBConfigTemplateResponse; import cn.ucloud.umongodb.models.CreateUMongoDBReplSetRequest; @@ -41,6 +43,8 @@ import cn.ucloud.umongodb.models.ListUMongoDBConfigTemplateResponse; import cn.ucloud.umongodb.models.ListUMongoDBInstancesRequest; import cn.ucloud.umongodb.models.ListUMongoDBInstancesResponse; +import cn.ucloud.umongodb.models.ListUMongoDBLogPackageRequest; +import cn.ucloud.umongodb.models.ListUMongoDBLogPackageResponse; import cn.ucloud.umongodb.models.ListUMongoDBMachineTypeRequest; import cn.ucloud.umongodb.models.ListUMongoDBMachineTypeResponse; import cn.ucloud.umongodb.models.ListUMongoDBVersionRequest; @@ -77,6 +81,18 @@ public BackupUMongoDBClusterResponse backupUMongoDBCluster(BackupUMongoDBCluster this.invoke(request, BackupUMongoDBClusterResponse.class); } + /** + * BackupUMongoDBLog - 集群日志打包 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUMongoDBLogResponse backupUMongoDBLog(BackupUMongoDBLogRequest request) + throws UCloudException { + request.setAction("BackupUMongoDBLog"); + return (BackupUMongoDBLogResponse) this.invoke(request, BackupUMongoDBLogResponse.class); + } + /** * CreateUMongoDBConfigTemplate - 创建配置模板 * @@ -219,6 +235,19 @@ public ListUMongoDBInstancesResponse listUMongoDBInstances(ListUMongoDBInstances this.invoke(request, ListUMongoDBInstancesResponse.class); } + /** + * ListUMongoDBLogPackage - 日志打包列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUMongoDBLogPackageResponse listUMongoDBLogPackage( + ListUMongoDBLogPackageRequest request) throws UCloudException { + request.setAction("ListUMongoDBLogPackage"); + return (ListUMongoDBLogPackageResponse) + this.invoke(request, ListUMongoDBLogPackageResponse.class); + } + /** * ListUMongoDBMachineType - 获取UmongDB支持机器类型列表 * diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClientInterface.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClientInterface.java index 60242e75..ca36bd97 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClientInterface.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/client/UMongoDBClientInterface.java @@ -17,6 +17,8 @@ import cn.ucloud.common.exception.UCloudException; import cn.ucloud.umongodb.models.BackupUMongoDBClusterRequest; import cn.ucloud.umongodb.models.BackupUMongoDBClusterResponse; +import cn.ucloud.umongodb.models.BackupUMongoDBLogRequest; +import cn.ucloud.umongodb.models.BackupUMongoDBLogResponse; import cn.ucloud.umongodb.models.CreateUMongoDBConfigTemplateRequest; import cn.ucloud.umongodb.models.CreateUMongoDBConfigTemplateResponse; import cn.ucloud.umongodb.models.CreateUMongoDBReplSetRequest; @@ -39,6 +41,8 @@ import cn.ucloud.umongodb.models.ListUMongoDBConfigTemplateResponse; import cn.ucloud.umongodb.models.ListUMongoDBInstancesRequest; import cn.ucloud.umongodb.models.ListUMongoDBInstancesResponse; +import cn.ucloud.umongodb.models.ListUMongoDBLogPackageRequest; +import cn.ucloud.umongodb.models.ListUMongoDBLogPackageResponse; import cn.ucloud.umongodb.models.ListUMongoDBMachineTypeRequest; import cn.ucloud.umongodb.models.ListUMongoDBMachineTypeResponse; import cn.ucloud.umongodb.models.ListUMongoDBVersionRequest; @@ -68,6 +72,15 @@ public interface UMongoDBClientInterface extends Client { public BackupUMongoDBClusterResponse backupUMongoDBCluster(BackupUMongoDBClusterRequest request) throws UCloudException; + /** + * BackupUMongoDBLog - 集群日志打包 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUMongoDBLogResponse backupUMongoDBLog(BackupUMongoDBLogRequest request) + throws UCloudException; + /** * CreateUMongoDBConfigTemplate - 创建配置模板 * @@ -167,6 +180,15 @@ public ListUMongoDBConfigTemplateResponse listUMongoDBConfigTemplate( public ListUMongoDBInstancesResponse listUMongoDBInstances(ListUMongoDBInstancesRequest request) throws UCloudException; + /** + * ListUMongoDBLogPackage - 日志打包列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUMongoDBLogPackageResponse listUMongoDBLogPackage( + ListUMongoDBLogPackageRequest request) throws UCloudException; + /** * ListUMongoDBMachineType - 获取UmongDB支持机器类型列表 * diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBLogRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBLogRequest.java new file mode 100644 index 00000000..b283779e --- /dev/null +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBLogRequest.java @@ -0,0 +1,141 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umongodb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class BackupUMongoDBLogRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 日志包名称 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** 集群id */ + @NotEmpty + @UCloudParam("ClusterId") + private String clusterId; + + /** 节点id, 慢日志 mongos 节点不可选 */ + @NotEmpty + @UCloudParam("NodeId") + private String nodeId; + + /** 日志开始时间,最早为7x24小时前 */ + @NotEmpty + @UCloudParam("Begin") + private Integer begin; + + /** 日志结束时间,时间区间不能超过24小时 */ + @NotEmpty + @UCloudParam("End") + private Integer end; + + /** 日志类型:SlowLog,ErrorLog */ + @NotEmpty + @UCloudParam("LogType") + private String logType; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getNodeId() { + return nodeId; + } + + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public Integer getBegin() { + return begin; + } + + public void setBegin(Integer begin) { + this.begin = begin; + } + + public Integer getEnd() { + return end; + } + + public void setEnd(Integer end) { + this.end = end; + } + + public String getLogType() { + return logType; + } + + public void setLogType(String logType) { + this.logType = logType; + } +} diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBLogResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBLogResponse.java new file mode 100644 index 00000000..77309fd5 --- /dev/null +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBLogResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umongodb.models; + + + +import cn.ucloud.common.response.Response; + +public class BackupUMongoDBLogResponse extends Response {} diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupResponse.java index a73d76b0..26bebd19 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupResponse.java @@ -79,6 +79,10 @@ public static class BackupInfo extends Response { @SerializedName("BatchId") private String batchId; + /** 磁盘大小 */ + @SerializedName("DiskSize") + private Integer diskSize; + public String getBackupId() { return backupId; } @@ -166,5 +170,13 @@ public String getBatchId() { public void setBatchId(String batchId) { this.batchId = batchId; } + + public Integer getDiskSize() { + return diskSize; + } + + public void setDiskSize(Integer diskSize) { + this.diskSize = diskSize; + } } } diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBLogPackageRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBLogPackageRequest.java new file mode 100644 index 00000000..e6563bc8 --- /dev/null +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBLogPackageRequest.java @@ -0,0 +1,88 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umongodb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUMongoDBLogPackageRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 集群id */ + @NotEmpty + @UCloudParam("ClusterId") + private String clusterId; + + /** 节点id */ + @UCloudParam("NodeId") + private String nodeId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getNodeId() { + return nodeId; + } + + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } +} diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBLogPackageResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBLogPackageResponse.java new file mode 100644 index 00000000..af69d594 --- /dev/null +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBLogPackageResponse.java @@ -0,0 +1,184 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.umongodb.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUMongoDBLogPackageResponse extends Response { + + /** 列表 */ + @SerializedName("DataSet") + private List dataSet; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class PackageInfo extends Response { + + /** id */ + @SerializedName("Id") + private Integer id; + + /** 名称 */ + @SerializedName("Name") + private String name; + + /** + * Package_Running,Package_Success,Package_Failed,Package_Deleting,Package_Deleted,Package_DeleteFailed + */ + @SerializedName("State") + private String state; + + /** 大小,单位字节 */ + @SerializedName("Size") + private Integer size; + + /** SlowLog,ErrorLog */ + @SerializedName("PackageType") + private String packageType; + + /** 集群id */ + @SerializedName("ClusterId") + private String clusterId; + + /** 节点id */ + @SerializedName("NodeId") + private String nodeId; + + /** 角色 */ + @SerializedName("Role") + private String role; + + /** 开始时间 */ + @SerializedName("Begin") + private Integer begin; + + /** 结束时间 */ + @SerializedName("End") + private Integer end; + + /** 创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 完成时间 */ + @SerializedName("FinishTime") + private Integer finishTime; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getPackageType() { + return packageType; + } + + public void setPackageType(String packageType) { + this.packageType = packageType; + } + + public String getClusterId() { + return clusterId; + } + + public void setClusterId(String clusterId) { + this.clusterId = clusterId; + } + + public String getNodeId() { + return nodeId; + } + + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public Integer getBegin() { + return begin; + } + + public void setBegin(Integer begin) { + this.begin = begin; + } + + public Integer getEnd() { + return end; + } + + public void setEnd(Integer end) { + this.end = end; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getFinishTime() { + return finishTime; + } + + public void setFinishTime(Integer finishTime) { + this.finishTime = finishTime; + } + } +} diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index b692db5f..3f3a4397 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-unet - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index 49ee73b9..6fa40b41 100644 --- a/ucloud-sdk-java-upgsql/pom.xml +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-upgsql - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 5ec2f7fe..af2f7f22 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-uphone - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 67579bef..36bb08cf 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-uphost - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index dfb5cb62..1b175caf 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-uslk - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 4871010c..3276190f 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-usms - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClient.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClient.java index 2e9cc1a5..e3efcbda 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClient.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClient.java @@ -29,6 +29,8 @@ import cn.ucloud.usms.models.DeleteUSMSTemplateResponse; import cn.ucloud.usms.models.GetUSMSSendReceiptRequest; import cn.ucloud.usms.models.GetUSMSSendReceiptResponse; +import cn.ucloud.usms.models.GetUSMSSendStatisticsRequest; +import cn.ucloud.usms.models.GetUSMSSendStatisticsResponse; import cn.ucloud.usms.models.QueryUSMSSignatureRequest; import cn.ucloud.usms.models.QueryUSMSSignatureResponse; import cn.ucloud.usms.models.QueryUSMSTemplateRequest; @@ -121,6 +123,19 @@ public GetUSMSSendReceiptResponse getUSMSSendReceipt(GetUSMSSendReceiptRequest r return (GetUSMSSendReceiptResponse) this.invoke(request, GetUSMSSendReceiptResponse.class); } + /** + * GetUSMSSendStatistics - 获取发送统计数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUSMSSendStatisticsResponse getUSMSSendStatistics(GetUSMSSendStatisticsRequest request) + throws UCloudException { + request.setAction("GetUSMSSendStatistics"); + return (GetUSMSSendStatisticsResponse) + this.invoke(request, GetUSMSSendStatisticsResponse.class); + } + /** * QueryUSMSSignature - 查询短信签名申请状态 * diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClientInterface.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClientInterface.java index e5474174..e195cc8a 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClientInterface.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/client/USMSClientInterface.java @@ -27,6 +27,8 @@ import cn.ucloud.usms.models.DeleteUSMSTemplateResponse; import cn.ucloud.usms.models.GetUSMSSendReceiptRequest; import cn.ucloud.usms.models.GetUSMSSendReceiptResponse; +import cn.ucloud.usms.models.GetUSMSSendStatisticsRequest; +import cn.ucloud.usms.models.GetUSMSSendStatisticsResponse; import cn.ucloud.usms.models.QueryUSMSSignatureRequest; import cn.ucloud.usms.models.QueryUSMSSignatureResponse; import cn.ucloud.usms.models.QueryUSMSTemplateRequest; @@ -96,6 +98,15 @@ public DeleteUSMSTemplateResponse deleteUSMSTemplate(DeleteUSMSTemplateRequest r public GetUSMSSendReceiptResponse getUSMSSendReceipt(GetUSMSSendReceiptRequest request) throws UCloudException; + /** + * GetUSMSSendStatistics - 获取发送统计数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUSMSSendStatisticsResponse getUSMSSendStatistics(GetUSMSSendStatisticsRequest request) + throws UCloudException; + /** * QueryUSMSSignature - 查询短信签名申请状态 * diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSTemplateRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSTemplateRequest.java index c55b865c..bb0be452 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSTemplateRequest.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/CreateUSMSTemplateRequest.java @@ -53,9 +53,7 @@ public class CreateUSMSTemplateRequest extends Request { @UCloudParam("Remark") private String remark; - /** - * 当Purpose为3时,也即会员推广类短信模板,该项必填。枚举值:TD退订、回T退订、回N退订、回TD退订、退订回T、退订回D、退订回TD、退订回复T、退订回复D、退订回复N、退订回复TD、拒收回T - */ + /** 当Purpose=3并且International=false时,也即国内会员推广类短信模板,该项必填。枚举值:【拒收请回复R】 */ @UCloudParam("UnsubscribeInfo") private String unsubscribeInfo; diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendStatisticsRequest.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendStatisticsRequest.java new file mode 100644 index 00000000..0e86aee6 --- /dev/null +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendStatisticsRequest.java @@ -0,0 +1,153 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.usms.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUSMSSendStatisticsRequest extends Request { + + /** + * 项目ID,不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 页编号,从0开始 */ + @NotEmpty + @UCloudParam("Page") + private Integer page; + + /** 每页记录个数 */ + @NotEmpty + @UCloudParam("NumPerPage") + private Integer numPerPage; + + /** 排序字段,如BrevityCode表示按照BrevityCode排列,配合OrderType使用。目前支持SendDate、BrevityCode */ + @NotEmpty + @UCloudParam("OrderBy") + private String orderBy; + + /** 排序方式,asc-正序 desc-倒序 */ + @NotEmpty + @UCloudParam("OrderType") + private String orderType; + + /** 开始日期,格式为YYYY-MM-DD */ + @NotEmpty + @UCloudParam("StartDate") + private String startDate; + + /** 结束日期,格式为YYYY-MM-DD */ + @NotEmpty + @UCloudParam("EndDate") + private String endDate; + + /** 国内标记,0-国际短信 1-国内短信 */ + @NotEmpty + @UCloudParam("Domestic") + private Integer domestic; + + /** 国际简码,如CN表示中国,当需要查询多个国家时,使用-分割,如CN-ID。 */ + @UCloudParam("BrevityCode") + private String brevityCode; + + /** 短信类型,1-验证码 2-通知类 3-营销类 */ + @UCloudParam("Purpose") + private Integer purpose; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getPage() { + return page; + } + + public void setPage(Integer page) { + this.page = page; + } + + public Integer getNumPerPage() { + return numPerPage; + } + + public void setNumPerPage(Integer numPerPage) { + this.numPerPage = numPerPage; + } + + public String getOrderBy() { + return orderBy; + } + + public void setOrderBy(String orderBy) { + this.orderBy = orderBy; + } + + public String getOrderType() { + return orderType; + } + + public void setOrderType(String orderType) { + this.orderType = orderType; + } + + public String getStartDate() { + return startDate; + } + + public void setStartDate(String startDate) { + this.startDate = startDate; + } + + public String getEndDate() { + return endDate; + } + + public void setEndDate(String endDate) { + this.endDate = endDate; + } + + public Integer getDomestic() { + return domestic; + } + + public void setDomestic(Integer domestic) { + this.domestic = domestic; + } + + public String getBrevityCode() { + return brevityCode; + } + + public void setBrevityCode(String brevityCode) { + this.brevityCode = brevityCode; + } + + public Integer getPurpose() { + return purpose; + } + + public void setPurpose(Integer purpose) { + this.purpose = purpose; + } +} diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendStatisticsResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendStatisticsResponse.java new file mode 100644 index 00000000..b4f304cb --- /dev/null +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendStatisticsResponse.java @@ -0,0 +1,353 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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 cn.ucloud.usms.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetUSMSSendStatisticsResponse extends Response { + + /** 返回记录数 */ + @SerializedName("Total") + private Integer total; + + /** 符合查询条件的发送数据统计求和集,具体字段信息见StatisticsData模型 */ + @SerializedName("StatisticsData") + private StatisticsData statisticsData; + + /** 以天为统计维度的发送数据统计集合,每天的统计数据字段详见StatisticsDataInfo模型 */ + @SerializedName("Data") + private List data; + + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public StatisticsData getStatisticsData() { + return statisticsData; + } + + public void setStatisticsData(StatisticsData statisticsData) { + this.statisticsData = statisticsData; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class StatisticsData extends Response { + + /** 状态未知数(提交条数) */ + @SerializedName("UnknownCount") + private Integer unknownCount; + + /** 发送成功数(提交条数) */ + @SerializedName("SuccessCount") + private Integer successCount; + + /** 发送总数(拆分条数) */ + @SerializedName("SendCostCount") + private Integer sendCostCount; + + /** 发送失败数(提交条数) */ + @SerializedName("FailCount") + private Integer failCount; + + /** 发送总数(提交条数) */ + @SerializedName("SendCount") + private Integer sendCount; + + /** 发送成功数(拆分条数) */ + @SerializedName("SuccessCostCount") + private Integer successCostCount; + + /** 发送失败数(拆分条数) */ + @SerializedName("FailCostCount") + private Integer failCostCount; + + /** 状态未知数(拆分条数) */ + @SerializedName("UnknownCostCount") + private Integer unknownCostCount; + + /** 提交失败数(提交条数) */ + @SerializedName("SubmitFailCount") + private Integer submitFailCount; + + /** 提交失败数(拆分条数) */ + @SerializedName("SubmitFailCostCount") + private Integer submitFailCostCount; + + public Integer getUnknownCount() { + return unknownCount; + } + + public void setUnknownCount(Integer unknownCount) { + this.unknownCount = unknownCount; + } + + public Integer getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Integer successCount) { + this.successCount = successCount; + } + + public Integer getSendCostCount() { + return sendCostCount; + } + + public void setSendCostCount(Integer sendCostCount) { + this.sendCostCount = sendCostCount; + } + + public Integer getFailCount() { + return failCount; + } + + public void setFailCount(Integer failCount) { + this.failCount = failCount; + } + + public Integer getSendCount() { + return sendCount; + } + + public void setSendCount(Integer sendCount) { + this.sendCount = sendCount; + } + + public Integer getSuccessCostCount() { + return successCostCount; + } + + public void setSuccessCostCount(Integer successCostCount) { + this.successCostCount = successCostCount; + } + + public Integer getFailCostCount() { + return failCostCount; + } + + public void setFailCostCount(Integer failCostCount) { + this.failCostCount = failCostCount; + } + + public Integer getUnknownCostCount() { + return unknownCostCount; + } + + public void setUnknownCostCount(Integer unknownCostCount) { + this.unknownCostCount = unknownCostCount; + } + + public Integer getSubmitFailCount() { + return submitFailCount; + } + + public void setSubmitFailCount(Integer submitFailCount) { + this.submitFailCount = submitFailCount; + } + + public Integer getSubmitFailCostCount() { + return submitFailCostCount; + } + + public void setSubmitFailCostCount(Integer submitFailCostCount) { + this.submitFailCostCount = submitFailCostCount; + } + } + + public static class StatisticsDataInfo extends Response { + + /** 发送总数(提交条数) */ + @SerializedName("Count") + private Integer count; + + /** 发送失败数(拆分条数) */ + @SerializedName("FailedCostCount") + private Integer failedCostCount; + + /** 国际/地区标识码 */ + @SerializedName("BrevityCode") + private String brevityCode; + + /** 发送总数(拆分条数) */ + @SerializedName("CostCount") + private Integer costCount; + + /** 发送时间 */ + @SerializedName("SendDate") + private String sendDate; + + /** 发送失败数(提交条数) */ + @SerializedName("FailedCount") + private Integer failedCount; + + /** 发送成功率 */ + @SerializedName("SuccessRate") + private Double successRate; + + /** 发送成功数(提交条数) */ + @SerializedName("SuccessCount") + private Integer successCount; + + /** 状态未知数(提交条数) */ + @SerializedName("UnknownCount") + private Integer unknownCount; + + /** 发送成功数(拆分条数) */ + @SerializedName("SuccessCostCount") + private Integer successCostCount; + + /** 状态未知数(拆分条数) */ + @SerializedName("UnknownCostCount") + private Integer unknownCostCount; + + /** UserId */ + @SerializedName("UserId") + private String userId; + + /** 提交失败数(提交条数) */ + @SerializedName("SubmitFailedCount") + private Integer submitFailedCount; + + /** 提交失败数(拆分条数) */ + @SerializedName("SubmitFailedCostCount") + private Integer submitFailedCostCount; + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public Integer getFailedCostCount() { + return failedCostCount; + } + + public void setFailedCostCount(Integer failedCostCount) { + this.failedCostCount = failedCostCount; + } + + public String getBrevityCode() { + return brevityCode; + } + + public void setBrevityCode(String brevityCode) { + this.brevityCode = brevityCode; + } + + public Integer getCostCount() { + return costCount; + } + + public void setCostCount(Integer costCount) { + this.costCount = costCount; + } + + public String getSendDate() { + return sendDate; + } + + public void setSendDate(String sendDate) { + this.sendDate = sendDate; + } + + public Integer getFailedCount() { + return failedCount; + } + + public void setFailedCount(Integer failedCount) { + this.failedCount = failedCount; + } + + public Double getSuccessRate() { + return successRate; + } + + public void setSuccessRate(Double successRate) { + this.successRate = successRate; + } + + public Integer getSuccessCount() { + return successCount; + } + + public void setSuccessCount(Integer successCount) { + this.successCount = successCount; + } + + public Integer getUnknownCount() { + return unknownCount; + } + + public void setUnknownCount(Integer unknownCount) { + this.unknownCount = unknownCount; + } + + public Integer getSuccessCostCount() { + return successCostCount; + } + + public void setSuccessCostCount(Integer successCostCount) { + this.successCostCount = successCostCount; + } + + public Integer getUnknownCostCount() { + return unknownCostCount; + } + + public void setUnknownCostCount(Integer unknownCostCount) { + this.unknownCostCount = unknownCostCount; + } + + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + + public Integer getSubmitFailedCount() { + return submitFailedCount; + } + + public void setSubmitFailedCount(Integer submitFailedCount) { + this.submitFailedCount = submitFailedCount; + } + + public Integer getSubmitFailedCostCount() { + return submitFailedCostCount; + } + + public void setSubmitFailedCostCount(Integer submitFailedCostCount) { + this.submitFailedCostCount = submitFailedCostCount; + } + } +} diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index 75bd4109..82a6d667 100644 --- a/ucloud-sdk-java-usnap/pom.xml +++ b/ucloud-sdk-java-usnap/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-usnap - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index 33ecac1c..2774b961 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-uvms - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index 79121548..3698d710 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.26-release + 1.2.27-release 4.0.0 ucloud-sdk-java-vpc - 1.2.26-release + 1.2.27-release cn.ucloud ucloud-sdk-java-common - 1.2.26-release + 1.2.27-release