diff --git a/VERSION b/VERSION index 0ee5fb6b..4c1fb0d5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.15-release +1.2.16-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index 26fbf33e..92bf01ad 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index 80deb699..712fb13d 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.15-release + 1.2.16-release diff --git a/pom.xml b/pom.xml index c3bce796..ac01974d 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.15-release + 1.2.16-release ucloud-sdk-java-common ucloud-sdk-java-cube @@ -24,6 +24,7 @@ ucloud-sdk-java-udpn ucloud-sdk-java-udisk ucloud-sdk-java-uec + ucloud-sdk-java-uewaf ucloud-sdk-java-ufs ucloud-sdk-java-ufile ucloud-sdk-java-uhost diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 4fea366a..597c35c5 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.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index 6857afde..f8c52bd7 100644 --- a/ucloud-sdk-java-cube/pom.xml +++ b/ucloud-sdk-java-cube/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-cube - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index a2abbe7b..e0318886 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-ipsecvpn - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index c8103744..7b49c64a 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-pathx - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index b0426fdb..5e5c60bc 100644 --- a/ucloud-sdk-java-sts/pom.xml +++ b/ucloud-sdk-java-sts/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-sts - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index 124bae5d..eaf5b636 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-uaccount - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 17362612..bbcdced5 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-ubill - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailResponse.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailResponse.java index f8a7c69b..61e3f234 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailResponse.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailResponse.java @@ -102,6 +102,10 @@ public static class BillDetailItem extends Response { @SerializedName("ProjectName") private String projectName; + /** 业务组 */ + @SerializedName("BusinessGroup") + private String businessGroup; + /** 资源ID */ @SerializedName("ResourceId") private String resourceId; @@ -242,6 +246,14 @@ public void setProjectName(String projectName) { this.projectName = projectName; } + public String getBusinessGroup() { + return businessGroup; + } + + public void setBusinessGroup(String businessGroup) { + this.businessGroup = businessGroup; + } + public String getResourceId() { return resourceId; } diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index f2ae49e0..0886580c 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-ucdn - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index 62e27e92..c375868c 100644 --- a/ucloud-sdk-java-ucompshare/pom.xml +++ b/ucloud-sdk-java-ucompshare/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-ucompshare - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index 15542f2f..85281ce1 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-udb - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java index ee8fbc59..50bbb336 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java @@ -103,6 +103,8 @@ import cn.ucloud.udb.models.ModifyUDBInstanceNameResponse; import cn.ucloud.udb.models.ModifyUDBInstancePasswordRequest; import cn.ucloud.udb.models.ModifyUDBInstancePasswordResponse; +import cn.ucloud.udb.models.ModifyUDBInstanceRemarkNameRequest; +import cn.ucloud.udb.models.ModifyUDBInstanceRemarkNameResponse; import cn.ucloud.udb.models.PromoteUDBInstanceToHARequest; import cn.ucloud.udb.models.PromoteUDBInstanceToHAResponse; import cn.ucloud.udb.models.PromoteUDBSlaveRequest; @@ -691,6 +693,19 @@ public ModifyUDBInstancePasswordResponse modifyUDBInstancePassword( this.invoke(request, ModifyUDBInstancePasswordResponse.class); } + /** + * ModifyUDBInstanceRemarkName - 修改云数据库备注 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDBInstanceRemarkNameResponse modifyUDBInstanceRemarkName( + ModifyUDBInstanceRemarkNameRequest request) throws UCloudException { + request.setAction("ModifyUDBInstanceRemarkName"); + return (ModifyUDBInstanceRemarkNameResponse) + this.invoke(request, ModifyUDBInstanceRemarkNameResponse.class); + } + /** * PromoteUDBInstanceToHA - 普通db升级为高可用 * diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java index 1bcf10e4..790636af 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java @@ -101,6 +101,8 @@ import cn.ucloud.udb.models.ModifyUDBInstanceNameResponse; import cn.ucloud.udb.models.ModifyUDBInstancePasswordRequest; import cn.ucloud.udb.models.ModifyUDBInstancePasswordResponse; +import cn.ucloud.udb.models.ModifyUDBInstanceRemarkNameRequest; +import cn.ucloud.udb.models.ModifyUDBInstanceRemarkNameResponse; import cn.ucloud.udb.models.PromoteUDBInstanceToHARequest; import cn.ucloud.udb.models.PromoteUDBInstanceToHAResponse; import cn.ucloud.udb.models.PromoteUDBSlaveRequest; @@ -521,6 +523,15 @@ public ModifyUDBInstanceNameResponse modifyUDBInstanceName(ModifyUDBInstanceName public ModifyUDBInstancePasswordResponse modifyUDBInstancePassword( ModifyUDBInstancePasswordRequest request) throws UCloudException; + /** + * ModifyUDBInstanceRemarkName - 修改云数据库备注 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDBInstanceRemarkNameResponse modifyUDBInstanceRemarkName( + ModifyUDBInstanceRemarkNameRequest request) throws UCloudException; + /** * PromoteUDBInstanceToHA - 普通db升级为高可用 * diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceErrorLogRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceErrorLogRequest.java index 6774e8f6..f37614cc 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceErrorLogRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceErrorLogRequest.java @@ -20,16 +20,19 @@ public class BackupUDBInstanceErrorLogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceSlowLogRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceSlowLogRequest.java index b8e58568..914a030e 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceSlowLogRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/BackupUDBInstanceSlowLogRequest.java @@ -20,12 +20,15 @@ public class BackupUDBInstanceSlowLogRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ChangeUDBParamGroupRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ChangeUDBParamGroupRequest.java index 6daa8726..43a83860 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ChangeUDBParamGroupRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ChangeUDBParamGroupRequest.java @@ -20,16 +20,19 @@ public class ChangeUDBParamGroupRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryRequest.java index 02db378d..cbd10707 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryRequest.java @@ -20,16 +20,19 @@ public class CreateUDBInstanceByRecoveryRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; @@ -76,6 +79,16 @@ public class CreateUDBInstanceByRecoveryRequest extends Request { @UCloudParam("EnableIpV6") private Boolean enableIpV6; + /** + * 指定需要恢复的表, 如果指定该字段则回档实例只有指定的表数据,格式为(库名.表名), 指定多个用逗号隔开,eg: [ udb.test, mysql_school.my_student] + */ + @UCloudParam("Tables") + private String tables; + + /** 管理员密码 (指定库表回档到新实例时有效) */ + @UCloudParam("AdminPassword") + private String adminPassword; + /** 使用的代金券id */ @UCloudParam("CouponId") private String couponId; @@ -184,6 +197,22 @@ public void setEnableIpV6(Boolean enableIpV6) { this.enableIpV6 = enableIpV6; } + public String getTables() { + return tables; + } + + public void setTables(String tables) { + this.tables = tables; + } + + public String getAdminPassword() { + return adminPassword; + } + + public void setAdminPassword(String adminPassword) { + this.adminPassword = adminPassword; + } + public String getCouponId() { return couponId; } diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBInstanceRequest.java index d60d012f..c5514521 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DeleteUDBInstanceRequest.java @@ -20,16 +20,19 @@ public class DeleteUDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceStateRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceStateRequest.java index 3bc27f15..d78d626a 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceStateRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceStateRequest.java @@ -20,16 +20,19 @@ public class DescribeUDBInstanceStateRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogPackageRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogPackageRequest.java index 28f97c17..4cfa63b9 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogPackageRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBLogPackageRequest.java @@ -47,7 +47,7 @@ public class DescribeUDBLogPackageRequest extends Request { @UCloudParam("Limit") private Integer limit; - /** 需要列出的备份文件类型,每种类型的值如下: 2 代表 BINLOG_BACKUP; 3 代表 SLOW_QUERY_BACKUP; 4 代表 ERRORLOG_BACKUP。 */ + /** 需要列出的备份文件类型,每种类型的值如下: 2 代表 BINLOG_BACKUP; 3 代表 SLOW_QUERY_BACKUP; 4 代表 ERRORLOG_BACKUP; */ @UCloudParam("Type") private Integer type; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DisableUDBRWSplittingRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DisableUDBRWSplittingRequest.java index 2ae528b0..99fb0899 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DisableUDBRWSplittingRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DisableUDBRWSplittingRequest.java @@ -20,12 +20,12 @@ public class DisableUDBRWSplittingRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Zone") private String zone; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/FetchUDBInstanceEarliestRecoverTimeRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/FetchUDBInstanceEarliestRecoverTimeRequest.java index c78d0c62..47fd2f9d 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/FetchUDBInstanceEarliestRecoverTimeRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/FetchUDBInstanceEarliestRecoverTimeRequest.java @@ -20,16 +20,19 @@ public class FetchUDBInstanceEarliestRecoverTimeRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceNameRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceNameRequest.java index 96074c04..f7a07606 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceNameRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceNameRequest.java @@ -20,16 +20,19 @@ public class ModifyUDBInstanceNameRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstancePasswordRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstancePasswordRequest.java index 02776ca9..823ea958 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstancePasswordRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstancePasswordRequest.java @@ -20,16 +20,19 @@ public class ModifyUDBInstancePasswordRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceRemarkNameRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceRemarkNameRequest.java new file mode 100644 index 00000000..34705345 --- /dev/null +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceRemarkNameRequest.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.udb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyUDBInstanceRemarkNameRequest 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,该值可以通过DescribeUDBInstance获取 */ + @NotEmpty + @UCloudParam("DBId") + private String dbId; + + /** 实例的新备注 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + 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 getDBId() { + return dbId; + } + + public void setDBId(String dbId) { + this.dbId = dbId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceRemarkNameResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceRemarkNameResponse.java new file mode 100644 index 00000000..60b93e2c --- /dev/null +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceRemarkNameResponse.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.udb.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyUDBInstanceRemarkNameResponse extends Response {} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBSlaveRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBSlaveRequest.java index 2f59ef93..59ddc757 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBSlaveRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/PromoteUDBSlaveRequest.java @@ -20,16 +20,19 @@ public class PromoteUDBSlaveRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartRWSplittingRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartRWSplittingRequest.java index 944880a4..75154312 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartRWSplittingRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartRWSplittingRequest.java @@ -20,12 +20,12 @@ public class RestartRWSplittingRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Zone") private String zone; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartUDBInstanceRequest.java index 7eab85fa..b2294380 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RestartUDBInstanceRequest.java @@ -20,16 +20,19 @@ public class RestartUDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StartUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StartUDBInstanceRequest.java index bc14b704..db5463d7 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StartUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/StartUDBInstanceRequest.java @@ -20,16 +20,19 @@ public class StartUDBInstanceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceBackupStrategyRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceBackupStrategyRequest.java index 044b8a29..5628f130 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceBackupStrategyRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpdateUDBInstanceBackupStrategyRequest.java @@ -20,16 +20,19 @@ public class UpdateUDBInstanceBackupStrategyRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; @@ -53,12 +56,28 @@ public class UpdateUDBInstanceBackupStrategyRequest extends Request { private Boolean forceDump; /** - * 选择默认的备份方式,可选 snapshot 表示使用快照/物理备份,不填或者其它任何值为默认的逻辑备份。需要同时设置BackupDate字段。(注意现在只有SSD 版本的 - * MySQL实例支持物理备份) + * 选择默认的备份方式,可选nobackup表示不备份, snapshot 表示使用快照备份,logic + * 表示使用逻辑备份。需要同时设置BackupDate字段。(快照备份即物理备份。SSD版本的mysql实例支持设置为snapshot,NVMe版本的mysql实例支持设置为xtrabackup) */ @UCloudParam("BackupMethod") private String backupMethod; + /** 自动备份转存到用户自己的bucket 的tokenid, 需要用户自己自己设置权限 */ + @UCloudParam("UserTokenID") + private String userTokenID; + + /** 自动备份转存到用户自己的bucket名称,要包含到对应的token id里 */ + @UCloudParam("UserBucket") + private String userBucket; + + /** 是否开启binlog备份, 默认为未开启 */ + @UCloudParam("EnableBinlogBackup") + private Boolean enableBinlogBackup; + + /** 远端binlog保存时长(天) */ + @UCloudParam("BinlogRemoteSaveDays") + private Integer binlogRemoteSaveDays; + public String getRegion() { return region; } @@ -122,4 +141,36 @@ public String getBackupMethod() { public void setBackupMethod(String backupMethod) { this.backupMethod = backupMethod; } + + public String getUserTokenID() { + return userTokenID; + } + + public void setUserTokenID(String userTokenID) { + this.userTokenID = userTokenID; + } + + public String getUserBucket() { + return userBucket; + } + + public void setUserBucket(String userBucket) { + this.userBucket = userBucket; + } + + public Boolean getEnableBinlogBackup() { + return enableBinlogBackup; + } + + public void setEnableBinlogBackup(Boolean enableBinlogBackup) { + this.enableBinlogBackup = enableBinlogBackup; + } + + public Integer getBinlogRemoteSaveDays() { + return binlogRemoteSaveDays; + } + + public void setBinlogRemoteSaveDays(Integer binlogRemoteSaveDays) { + this.binlogRemoteSaveDays = binlogRemoteSaveDays; + } } diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index 6dc6ce4c..b3ee0a48 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-udbproxy - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index 109baa78..bc6ec710 100644 --- a/ucloud-sdk-java-udi/pom.xml +++ b/ucloud-sdk-java-udi/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-udi - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index 84e78057..084c039b 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-udisk - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClient.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClient.java index b827d4f9..051ba5a4 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClient.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClient.java @@ -45,6 +45,8 @@ import cn.ucloud.udisk.models.DescribeUDiskSnapshotResponse; import cn.ucloud.udisk.models.DescribeUDiskUpgradePriceRequest; import cn.ucloud.udisk.models.DescribeUDiskUpgradePriceResponse; +import cn.ucloud.udisk.models.DetachDeleteUDiskRequest; +import cn.ucloud.udisk.models.DetachDeleteUDiskResponse; import cn.ucloud.udisk.models.DetachUDiskRequest; import cn.ucloud.udisk.models.DetachUDiskResponse; import cn.ucloud.udisk.models.RecoverUDiskRequest; @@ -233,6 +235,18 @@ public DescribeUDiskUpgradePriceResponse describeUDiskUpgradePrice( this.invoke(request, DescribeUDiskUpgradePriceResponse.class); } + /** + * DetachDeleteUDisk - 卸载删除云硬盘 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DetachDeleteUDiskResponse detachDeleteUDisk(DetachDeleteUDiskRequest request) + throws UCloudException { + request.setAction("DetachDeleteUDisk"); + return (DetachDeleteUDiskResponse) this.invoke(request, DetachDeleteUDiskResponse.class); + } + /** * DetachUDisk - 卸载云硬盘 * diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClientInterface.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClientInterface.java index 48e03184..14f76468 100644 --- a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClientInterface.java +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/client/UDiskClientInterface.java @@ -43,6 +43,8 @@ import cn.ucloud.udisk.models.DescribeUDiskSnapshotResponse; import cn.ucloud.udisk.models.DescribeUDiskUpgradePriceRequest; import cn.ucloud.udisk.models.DescribeUDiskUpgradePriceResponse; +import cn.ucloud.udisk.models.DetachDeleteUDiskRequest; +import cn.ucloud.udisk.models.DetachDeleteUDiskResponse; import cn.ucloud.udisk.models.DetachUDiskRequest; import cn.ucloud.udisk.models.DetachUDiskResponse; import cn.ucloud.udisk.models.RecoverUDiskRequest; @@ -180,6 +182,15 @@ public DescribeUDiskSnapshotResponse describeUDiskSnapshot(DescribeUDiskSnapshot public DescribeUDiskUpgradePriceResponse describeUDiskUpgradePrice( DescribeUDiskUpgradePriceRequest request) throws UCloudException; + /** + * DetachDeleteUDisk - 卸载删除云硬盘 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DetachDeleteUDiskResponse detachDeleteUDisk(DetachDeleteUDiskRequest request) + throws UCloudException; + /** * DetachUDisk - 卸载云硬盘 * diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachDeleteUDiskRequest.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachDeleteUDiskRequest.java new file mode 100644 index 00000000..7ef4efe8 --- /dev/null +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachDeleteUDiskRequest.java @@ -0,0 +1,111 @@ +/** + * 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.udisk.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DetachDeleteUDiskRequest 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; + + /** 需要卸载的UDisk实例ID */ + @NotEmpty + @UCloudParam("UDiskId") + private String uDiskId; + + /** UHost实例ID。【UHostId和HostId必须选填一个,本字段即将废弃,建议使用HostId】 */ + @UCloudParam("UHostId") + private String uHostId; + + /** Host实例ID */ + @UCloudParam("HostId") + private String hostId; + + /** 是否删除快照服务。Yes:删除,No:不删除,默认值:Yes。 */ + @UCloudParam("DeleteSnapshotService") + private String deleteSnapshotService; + + 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 getUDiskId() { + return uDiskId; + } + + public void setUDiskId(String uDiskId) { + this.uDiskId = uDiskId; + } + + public String getUHostId() { + return uHostId; + } + + public void setUHostId(String uHostId) { + this.uHostId = uHostId; + } + + public String getHostId() { + return hostId; + } + + public void setHostId(String hostId) { + this.hostId = hostId; + } + + public String getDeleteSnapshotService() { + return deleteSnapshotService; + } + + public void setDeleteSnapshotService(String deleteSnapshotService) { + this.deleteSnapshotService = deleteSnapshotService; + } +} diff --git a/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachDeleteUDiskResponse.java b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachDeleteUDiskResponse.java new file mode 100644 index 00000000..4eaa26b5 --- /dev/null +++ b/ucloud-sdk-java-udisk/src/main/java/cn/ucloud/udisk/models/DetachDeleteUDiskResponse.java @@ -0,0 +1,58 @@ +/** + * 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.udisk.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DetachDeleteUDiskResponse extends Response { + + /** 卸载的UHost实例ID。【即将废弃,建议使用HostId】 */ + @SerializedName("UHostId") + private String uHostId; + + /** 卸载的Host实例ID */ + @SerializedName("HostId") + private String hostId; + + /** 卸载删除的UDisk实例ID */ + @SerializedName("UDiskId") + private String uDiskId; + + public String getUHostId() { + return uHostId; + } + + public void setUHostId(String uHostId) { + this.uHostId = uHostId; + } + + public String getHostId() { + return hostId; + } + + public void setHostId(String hostId) { + this.hostId = hostId; + } + + public String getUDiskId() { + return uDiskId; + } + + public void setUDiskId(String uDiskId) { + this.uDiskId = uDiskId; + } +} diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index 691e5d70..2bf3cdf2 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-udpn - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index 05cee158..24d8be70 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-uec - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml new file mode 100644 index 00000000..fa218702 --- /dev/null +++ b/ucloud-sdk-java-uewaf/pom.xml @@ -0,0 +1,48 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.2.16-release + + + 4.0.0 + ucloud-sdk-java-uewaf + 1.2.16-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.16-release + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + \ No newline at end of file diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/client/UEWAFClient.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/client/UEWAFClient.java new file mode 100644 index 00000000..3cdb9ae1 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/client/UEWAFClient.java @@ -0,0 +1,815 @@ +/** + * 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.uewaf.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.uewaf.models.AddAntiCCRuleRequest; +import cn.ucloud.uewaf.models.AddAntiCCRuleResponse; +import cn.ucloud.uewaf.models.AddAssurancePageRequest; +import cn.ucloud.uewaf.models.AddAssurancePageResponse; +import cn.ucloud.uewaf.models.AddAutoWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.AddAutoWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.AddWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.AddWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.AddWafDomainCertificateInfoRequest; +import cn.ucloud.uewaf.models.AddWafDomainCertificateInfoResponse; +import cn.ucloud.uewaf.models.AddWafDomainHostInfoRequest; +import cn.ucloud.uewaf.models.AddWafDomainHostInfoResponse; +import cn.ucloud.uewaf.models.AddWafDomainWhiteListRequest; +import cn.ucloud.uewaf.models.AddWafDomainWhiteListResponse; +import cn.ucloud.uewaf.models.AddWafProtectionRuleInfoRequest; +import cn.ucloud.uewaf.models.AddWafProtectionRuleInfoResponse; +import cn.ucloud.uewaf.models.AddWafRegionBlockRuleRequest; +import cn.ucloud.uewaf.models.AddWafRegionBlockRuleResponse; +import cn.ucloud.uewaf.models.CheckWafMenuSettingOverflowRequest; +import cn.ucloud.uewaf.models.CheckWafMenuSettingOverflowResponse; +import cn.ucloud.uewaf.models.CopyWafDomainRulesRequest; +import cn.ucloud.uewaf.models.CopyWafDomainRulesResponse; +import cn.ucloud.uewaf.models.DeleteAntiCCRuleRequest; +import cn.ucloud.uewaf.models.DeleteAntiCCRuleResponse; +import cn.ucloud.uewaf.models.DeleteAssurancePageRequest; +import cn.ucloud.uewaf.models.DeleteAssurancePageResponse; +import cn.ucloud.uewaf.models.DeleteAutoWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.DeleteAutoWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.DeleteWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.DeleteWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.DeleteWafDomainCertificateInfoRequest; +import cn.ucloud.uewaf.models.DeleteWafDomainCertificateInfoResponse; +import cn.ucloud.uewaf.models.DeleteWafDomainHostInfoRequest; +import cn.ucloud.uewaf.models.DeleteWafDomainHostInfoResponse; +import cn.ucloud.uewaf.models.DeleteWafDomainWhiteListRequest; +import cn.ucloud.uewaf.models.DeleteWafDomainWhiteListResponse; +import cn.ucloud.uewaf.models.DeleteWafProtectionRuleInfoRequest; +import cn.ucloud.uewaf.models.DeleteWafProtectionRuleInfoResponse; +import cn.ucloud.uewaf.models.DeleteWafRegionBlockRuleRequest; +import cn.ucloud.uewaf.models.DeleteWafRegionBlockRuleResponse; +import cn.ucloud.uewaf.models.DeleteWafResponseFilterRequest; +import cn.ucloud.uewaf.models.DeleteWafResponseFilterResponse; +import cn.ucloud.uewaf.models.DescribeAntiCCRulesRequest; +import cn.ucloud.uewaf.models.DescribeAntiCCRulesResponse; +import cn.ucloud.uewaf.models.DescribeAssurancePagesRequest; +import cn.ucloud.uewaf.models.DescribeAssurancePagesResponse; +import cn.ucloud.uewaf.models.DescribeAutoWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.DescribeAutoWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.DescribeWafAttackDetailListInfoRequest; +import cn.ucloud.uewaf.models.DescribeWafAttackDetailListInfoResponse; +import cn.ucloud.uewaf.models.DescribeWafAttackFalseAlarmListInfoRequest; +import cn.ucloud.uewaf.models.DescribeWafAttackFalseAlarmListInfoResponse; +import cn.ucloud.uewaf.models.DescribeWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.DescribeWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.DescribeWafDomainCertificateInfoRequest; +import cn.ucloud.uewaf.models.DescribeWafDomainCertificateInfoResponse; +import cn.ucloud.uewaf.models.DescribeWafDomainHostInfoRequest; +import cn.ucloud.uewaf.models.DescribeWafDomainHostInfoResponse; +import cn.ucloud.uewaf.models.DescribeWafDomainWhiteListRequest; +import cn.ucloud.uewaf.models.DescribeWafDomainWhiteListResponse; +import cn.ucloud.uewaf.models.DescribeWafProtectionSummaryInfoRequest; +import cn.ucloud.uewaf.models.DescribeWafProtectionSummaryInfoResponse; +import cn.ucloud.uewaf.models.DescribeWafResponseFilterRequest; +import cn.ucloud.uewaf.models.DescribeWafResponseFilterResponse; +import cn.ucloud.uewaf.models.DescribeWafSystemRulesRequest; +import cn.ucloud.uewaf.models.DescribeWafSystemRulesResponse; +import cn.ucloud.uewaf.models.DescribeWafUserTransactionInfoRequest; +import cn.ucloud.uewaf.models.DescribeWafUserTransactionInfoResponse; +import cn.ucloud.uewaf.models.DownloadWAFAccessLogRequest; +import cn.ucloud.uewaf.models.DownloadWAFAccessLogResponse; +import cn.ucloud.uewaf.models.GetWafRegionBlockRuleRequest; +import cn.ucloud.uewaf.models.GetWafRegionBlockRuleResponse; +import cn.ucloud.uewaf.models.ModifyAntiCCRuleRequest; +import cn.ucloud.uewaf.models.ModifyAntiCCRuleResponse; +import cn.ucloud.uewaf.models.ModifyAntiCCStateRequest; +import cn.ucloud.uewaf.models.ModifyAntiCCStateResponse; +import cn.ucloud.uewaf.models.ModifyAssurancePageRequest; +import cn.ucloud.uewaf.models.ModifyAssurancePageResponse; +import cn.ucloud.uewaf.models.ModifyAutoWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.ModifyAutoWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.ModifyGlobalAssuranceStateRequest; +import cn.ucloud.uewaf.models.ModifyGlobalAssuranceStateResponse; +import cn.ucloud.uewaf.models.ModifyWafAttackFalseAlarmStatusRequest; +import cn.ucloud.uewaf.models.ModifyWafAttackFalseAlarmStatusResponse; +import cn.ucloud.uewaf.models.ModifyWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.ModifyWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.ModifyWafDomainHostInfoRequest; +import cn.ucloud.uewaf.models.ModifyWafDomainHostInfoResponse; +import cn.ucloud.uewaf.models.ModifyWafDomainWhiteListRequest; +import cn.ucloud.uewaf.models.ModifyWafDomainWhiteListResponse; +import cn.ucloud.uewaf.models.ModifyWafProtectionCustomerInfoRequest; +import cn.ucloud.uewaf.models.ModifyWafProtectionCustomerInfoResponse; +import cn.ucloud.uewaf.models.ModifyWafProtectionModeInfoRequest; +import cn.ucloud.uewaf.models.ModifyWafProtectionModeInfoResponse; +import cn.ucloud.uewaf.models.ModifyWafProtectionPriorityInfoRequest; +import cn.ucloud.uewaf.models.ModifyWafProtectionPriorityInfoResponse; +import cn.ucloud.uewaf.models.ModifyWafProtectionPriorityPoleInfoRequest; +import cn.ucloud.uewaf.models.ModifyWafProtectionPriorityPoleInfoResponse; +import cn.ucloud.uewaf.models.ModifyWafProtectionSystemInfoRequest; +import cn.ucloud.uewaf.models.ModifyWafProtectionSystemInfoResponse; +import cn.ucloud.uewaf.models.ModifyWafRegionBlockRuleRequest; +import cn.ucloud.uewaf.models.ModifyWafRegionBlockRuleResponse; +import cn.ucloud.uewaf.models.ModifyWafResponseFilterRequest; +import cn.ucloud.uewaf.models.ModifyWafResponseFilterResponse; +import cn.ucloud.uewaf.models.UpdateAssurePageCacheRequest; +import cn.ucloud.uewaf.models.UpdateAssurePageCacheResponse; + +/** This client is used to call actions of **UEWAF** service */ +public class UEWAFClient extends DefaultClient implements UEWAFClientInterface { + public UEWAFClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * AddAntiCCRule - 添加CC防御规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddAntiCCRuleResponse addAntiCCRule(AddAntiCCRuleRequest request) + throws UCloudException { + request.setAction("AddAntiCCRule"); + return (AddAntiCCRuleResponse) this.invoke(request, AddAntiCCRuleResponse.class); + } + + /** + * AddAssurancePage - 添加防篡改页面 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddAssurancePageResponse addAssurancePage(AddAssurancePageRequest request) + throws UCloudException { + request.setAction("AddAssurancePage"); + return (AddAssurancePageResponse) this.invoke(request, AddAssurancePageResponse.class); + } + + /** + * AddAutoWafDomainBlackList - 创建自动拦截策略接口 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddAutoWafDomainBlackListResponse addAutoWafDomainBlackList( + AddAutoWafDomainBlackListRequest request) throws UCloudException { + request.setAction("AddAutoWafDomainBlackList"); + return (AddAutoWafDomainBlackListResponse) + this.invoke(request, AddAutoWafDomainBlackListResponse.class); + } + + /** + * AddWafDomainBlackList - 添加域名黑名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWafDomainBlackListResponse addWafDomainBlackList(AddWafDomainBlackListRequest request) + throws UCloudException { + request.setAction("AddWafDomainBlackList"); + return (AddWafDomainBlackListResponse) + this.invoke(request, AddWafDomainBlackListResponse.class); + } + + /** + * AddWafDomainCertificateInfo - 添加SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWafDomainCertificateInfoResponse addWafDomainCertificateInfo( + AddWafDomainCertificateInfoRequest request) throws UCloudException { + request.setAction("AddWafDomainCertificateInfo"); + return (AddWafDomainCertificateInfoResponse) + this.invoke(request, AddWafDomainCertificateInfoResponse.class); + } + + /** + * AddWafDomainHostInfo - 新增防护域名配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWafDomainHostInfoResponse addWafDomainHostInfo(AddWafDomainHostInfoRequest request) + throws UCloudException { + request.setAction("AddWafDomainHostInfo"); + return (AddWafDomainHostInfoResponse) + this.invoke(request, AddWafDomainHostInfoResponse.class); + } + + /** + * AddWafDomainWhiteList - 添加域名白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWafDomainWhiteListResponse addWafDomainWhiteList(AddWafDomainWhiteListRequest request) + throws UCloudException { + request.setAction("AddWafDomainWhiteList"); + return (AddWafDomainWhiteListResponse) + this.invoke(request, AddWafDomainWhiteListResponse.class); + } + + /** + * AddWafProtectionRuleInfo - 添加WAF防护规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWafProtectionRuleInfoResponse addWafProtectionRuleInfo( + AddWafProtectionRuleInfoRequest request) throws UCloudException { + request.setAction("AddWafProtectionRuleInfo"); + return (AddWafProtectionRuleInfoResponse) + this.invoke(request, AddWafProtectionRuleInfoResponse.class); + } + + /** + * AddWafRegionBlockRule - 添加WAF区域IP封堵规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWafRegionBlockRuleResponse addWafRegionBlockRule(AddWafRegionBlockRuleRequest request) + throws UCloudException { + request.setAction("AddWafRegionBlockRule"); + return (AddWafRegionBlockRuleResponse) + this.invoke(request, AddWafRegionBlockRuleResponse.class); + } + + /** + * CheckWafMenuSettingOverflow - 校验域名和规则数是否超出指定套餐的限制 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckWafMenuSettingOverflowResponse checkWafMenuSettingOverflow( + CheckWafMenuSettingOverflowRequest request) throws UCloudException { + request.setAction("CheckWafMenuSettingOverflow"); + return (CheckWafMenuSettingOverflowResponse) + this.invoke(request, CheckWafMenuSettingOverflowResponse.class); + } + + /** + * CopyWafDomainRules - 批量复制WAF规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CopyWafDomainRulesResponse copyWafDomainRules(CopyWafDomainRulesRequest request) + throws UCloudException { + request.setAction("CopyWafDomainRules"); + return (CopyWafDomainRulesResponse) this.invoke(request, CopyWafDomainRulesResponse.class); + } + + /** + * DeleteAntiCCRule - 删除CC防御规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteAntiCCRuleResponse deleteAntiCCRule(DeleteAntiCCRuleRequest request) + throws UCloudException { + request.setAction("DeleteAntiCCRule"); + return (DeleteAntiCCRuleResponse) this.invoke(request, DeleteAntiCCRuleResponse.class); + } + + /** + * DeleteAssurancePage - 删除防篡改页面 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteAssurancePageResponse deleteAssurancePage(DeleteAssurancePageRequest request) + throws UCloudException { + request.setAction("DeleteAssurancePage"); + return (DeleteAssurancePageResponse) + this.invoke(request, DeleteAssurancePageResponse.class); + } + + /** + * DeleteAutoWafDomainBlackList - 删除自动添加黑名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteAutoWafDomainBlackListResponse deleteAutoWafDomainBlackList( + DeleteAutoWafDomainBlackListRequest request) throws UCloudException { + request.setAction("DeleteAutoWafDomainBlackList"); + return (DeleteAutoWafDomainBlackListResponse) + this.invoke(request, DeleteAutoWafDomainBlackListResponse.class); + } + + /** + * DeleteWafDomainBlackList - 删除域名黑名单记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafDomainBlackListResponse deleteWafDomainBlackList( + DeleteWafDomainBlackListRequest request) throws UCloudException { + request.setAction("DeleteWafDomainBlackList"); + return (DeleteWafDomainBlackListResponse) + this.invoke(request, DeleteWafDomainBlackListResponse.class); + } + + /** + * DeleteWafDomainCertificateInfo - 删除指定域名的ssl证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafDomainCertificateInfoResponse deleteWafDomainCertificateInfo( + DeleteWafDomainCertificateInfoRequest request) throws UCloudException { + request.setAction("DeleteWafDomainCertificateInfo"); + return (DeleteWafDomainCertificateInfoResponse) + this.invoke(request, DeleteWafDomainCertificateInfoResponse.class); + } + + /** + * DeleteWafDomainHostInfo - 删除WAF防御域名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafDomainHostInfoResponse deleteWafDomainHostInfo( + DeleteWafDomainHostInfoRequest request) throws UCloudException { + request.setAction("DeleteWafDomainHostInfo"); + return (DeleteWafDomainHostInfoResponse) + this.invoke(request, DeleteWafDomainHostInfoResponse.class); + } + + /** + * DeleteWafDomainWhiteList - 删除域名白名单记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafDomainWhiteListResponse deleteWafDomainWhiteList( + DeleteWafDomainWhiteListRequest request) throws UCloudException { + request.setAction("DeleteWafDomainWhiteList"); + return (DeleteWafDomainWhiteListResponse) + this.invoke(request, DeleteWafDomainWhiteListResponse.class); + } + + /** + * DeleteWafProtectionRuleInfo - 删除WAF防护规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafProtectionRuleInfoResponse deleteWafProtectionRuleInfo( + DeleteWafProtectionRuleInfoRequest request) throws UCloudException { + request.setAction("DeleteWafProtectionRuleInfo"); + return (DeleteWafProtectionRuleInfoResponse) + this.invoke(request, DeleteWafProtectionRuleInfoResponse.class); + } + + /** + * DeleteWafRegionBlockRule - 删除地域IP封堵规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafRegionBlockRuleResponse deleteWafRegionBlockRule( + DeleteWafRegionBlockRuleRequest request) throws UCloudException { + request.setAction("DeleteWafRegionBlockRule"); + return (DeleteWafRegionBlockRuleResponse) + this.invoke(request, DeleteWafRegionBlockRuleResponse.class); + } + + /** + * DeleteWafResponseFilter - 删除信息安全过滤规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafResponseFilterResponse deleteWafResponseFilter( + DeleteWafResponseFilterRequest request) throws UCloudException { + request.setAction("DeleteWafResponseFilter"); + return (DeleteWafResponseFilterResponse) + this.invoke(request, DeleteWafResponseFilterResponse.class); + } + + /** + * DescribeAntiCCRules - CC防御规则列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeAntiCCRulesResponse describeAntiCCRules(DescribeAntiCCRulesRequest request) + throws UCloudException { + request.setAction("DescribeAntiCCRules"); + return (DescribeAntiCCRulesResponse) + this.invoke(request, DescribeAntiCCRulesResponse.class); + } + + /** + * DescribeAssurancePages - 获取防篡改页面列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeAssurancePagesResponse describeAssurancePages( + DescribeAssurancePagesRequest request) throws UCloudException { + request.setAction("DescribeAssurancePages"); + return (DescribeAssurancePagesResponse) + this.invoke(request, DescribeAssurancePagesResponse.class); + } + + /** + * DescribeAutoWafDomainBlackList - 查询自动添加黑名单策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeAutoWafDomainBlackListResponse describeAutoWafDomainBlackList( + DescribeAutoWafDomainBlackListRequest request) throws UCloudException { + request.setAction("DescribeAutoWafDomainBlackList"); + return (DescribeAutoWafDomainBlackListResponse) + this.invoke(request, DescribeAutoWafDomainBlackListResponse.class); + } + + /** + * DescribeWafAttackDetailListInfo - 查询WAF攻击详情 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafAttackDetailListInfoResponse describeWafAttackDetailListInfo( + DescribeWafAttackDetailListInfoRequest request) throws UCloudException { + request.setAction("DescribeWafAttackDetailListInfo"); + return (DescribeWafAttackDetailListInfoResponse) + this.invoke(request, DescribeWafAttackDetailListInfoResponse.class); + } + + /** + * DescribeWafAttackFalseAlarmListInfo - 获取误报记录列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafAttackFalseAlarmListInfoResponse describeWafAttackFalseAlarmListInfo( + DescribeWafAttackFalseAlarmListInfoRequest request) throws UCloudException { + request.setAction("DescribeWafAttackFalseAlarmListInfo"); + return (DescribeWafAttackFalseAlarmListInfoResponse) + this.invoke(request, DescribeWafAttackFalseAlarmListInfoResponse.class); + } + + /** + * DescribeWafDomainBlackList - 获取域名黑名单列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafDomainBlackListResponse describeWafDomainBlackList( + DescribeWafDomainBlackListRequest request) throws UCloudException { + request.setAction("DescribeWafDomainBlackList"); + return (DescribeWafDomainBlackListResponse) + this.invoke(request, DescribeWafDomainBlackListResponse.class); + } + + /** + * DescribeWafDomainCertificateInfo - 显示域名对应的证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafDomainCertificateInfoResponse describeWafDomainCertificateInfo( + DescribeWafDomainCertificateInfoRequest request) throws UCloudException { + request.setAction("DescribeWafDomainCertificateInfo"); + return (DescribeWafDomainCertificateInfoResponse) + this.invoke(request, DescribeWafDomainCertificateInfoResponse.class); + } + + /** + * DescribeWafDomainHostInfo - 获取WAF防护域名列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafDomainHostInfoResponse describeWafDomainHostInfo( + DescribeWafDomainHostInfoRequest request) throws UCloudException { + request.setAction("DescribeWafDomainHostInfo"); + return (DescribeWafDomainHostInfoResponse) + this.invoke(request, DescribeWafDomainHostInfoResponse.class); + } + + /** + * DescribeWafDomainWhiteList - 获取域名白名单列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafDomainWhiteListResponse describeWafDomainWhiteList( + DescribeWafDomainWhiteListRequest request) throws UCloudException { + request.setAction("DescribeWafDomainWhiteList"); + return (DescribeWafDomainWhiteListResponse) + this.invoke(request, DescribeWafDomainWhiteListResponse.class); + } + + /** + * DescribeWafProtectionSummaryInfo - 获取防护规则列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafProtectionSummaryInfoResponse describeWafProtectionSummaryInfo( + DescribeWafProtectionSummaryInfoRequest request) throws UCloudException { + request.setAction("DescribeWafProtectionSummaryInfo"); + return (DescribeWafProtectionSummaryInfoResponse) + this.invoke(request, DescribeWafProtectionSummaryInfoResponse.class); + } + + /** + * DescribeWafResponseFilter - 查询信息安全过滤规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafResponseFilterResponse describeWafResponseFilter( + DescribeWafResponseFilterRequest request) throws UCloudException { + request.setAction("DescribeWafResponseFilter"); + return (DescribeWafResponseFilterResponse) + this.invoke(request, DescribeWafResponseFilterResponse.class); + } + + /** + * DescribeWafSystemRules - 查询指定域名的系统默认规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafSystemRulesResponse describeWafSystemRules( + DescribeWafSystemRulesRequest request) throws UCloudException { + request.setAction("DescribeWafSystemRules"); + return (DescribeWafSystemRulesResponse) + this.invoke(request, DescribeWafSystemRulesResponse.class); + } + + /** + * DescribeWafUserTransactionInfo - 获取用户购买详细信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafUserTransactionInfoResponse describeWafUserTransactionInfo( + DescribeWafUserTransactionInfoRequest request) throws UCloudException { + request.setAction("DescribeWafUserTransactionInfo"); + return (DescribeWafUserTransactionInfoResponse) + this.invoke(request, DescribeWafUserTransactionInfoResponse.class); + } + + /** + * DownloadWAFAccessLog - 下载访问日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadWAFAccessLogResponse downloadWAFAccessLog(DownloadWAFAccessLogRequest request) + throws UCloudException { + request.setAction("DownloadWAFAccessLog"); + return (DownloadWAFAccessLogResponse) + this.invoke(request, DownloadWAFAccessLogResponse.class); + } + + /** + * GetWafRegionBlockRule - 查询区域IP封堵规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetWafRegionBlockRuleResponse getWafRegionBlockRule(GetWafRegionBlockRuleRequest request) + throws UCloudException { + request.setAction("GetWafRegionBlockRule"); + return (GetWafRegionBlockRuleResponse) + this.invoke(request, GetWafRegionBlockRuleResponse.class); + } + + /** + * ModifyAntiCCRule - 修改CC防御规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyAntiCCRuleResponse modifyAntiCCRule(ModifyAntiCCRuleRequest request) + throws UCloudException { + request.setAction("ModifyAntiCCRule"); + return (ModifyAntiCCRuleResponse) this.invoke(request, ModifyAntiCCRuleResponse.class); + } + + /** + * ModifyAntiCCState - 更改域名CC防御状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyAntiCCStateResponse modifyAntiCCState(ModifyAntiCCStateRequest request) + throws UCloudException { + request.setAction("ModifyAntiCCState"); + return (ModifyAntiCCStateResponse) this.invoke(request, ModifyAntiCCStateResponse.class); + } + + /** + * ModifyAssurancePage - 编辑防篡改页面 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyAssurancePageResponse modifyAssurancePage(ModifyAssurancePageRequest request) + throws UCloudException { + request.setAction("ModifyAssurancePage"); + return (ModifyAssurancePageResponse) + this.invoke(request, ModifyAssurancePageResponse.class); + } + + /** + * ModifyAutoWafDomainBlackList - 修改自动拦截规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyAutoWafDomainBlackListResponse modifyAutoWafDomainBlackList( + ModifyAutoWafDomainBlackListRequest request) throws UCloudException { + request.setAction("ModifyAutoWafDomainBlackList"); + return (ModifyAutoWafDomainBlackListResponse) + this.invoke(request, ModifyAutoWafDomainBlackListResponse.class); + } + + /** + * ModifyGlobalAssuranceState - 网页防篡改全局开关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyGlobalAssuranceStateResponse modifyGlobalAssuranceState( + ModifyGlobalAssuranceStateRequest request) throws UCloudException { + request.setAction("ModifyGlobalAssuranceState"); + return (ModifyGlobalAssuranceStateResponse) + this.invoke(request, ModifyGlobalAssuranceStateResponse.class); + } + + /** + * ModifyWafAttackFalseAlarmStatus - 新的误报接口 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafAttackFalseAlarmStatusResponse modifyWafAttackFalseAlarmStatus( + ModifyWafAttackFalseAlarmStatusRequest request) throws UCloudException { + request.setAction("ModifyWafAttackFalseAlarmStatus"); + return (ModifyWafAttackFalseAlarmStatusResponse) + this.invoke(request, ModifyWafAttackFalseAlarmStatusResponse.class); + } + + /** + * ModifyWafDomainBlackList - 编辑域名黑名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafDomainBlackListResponse modifyWafDomainBlackList( + ModifyWafDomainBlackListRequest request) throws UCloudException { + request.setAction("ModifyWafDomainBlackList"); + return (ModifyWafDomainBlackListResponse) + this.invoke(request, ModifyWafDomainBlackListResponse.class); + } + + /** + * ModifyWafDomainHostInfo - 编辑防护域名信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafDomainHostInfoResponse modifyWafDomainHostInfo( + ModifyWafDomainHostInfoRequest request) throws UCloudException { + request.setAction("ModifyWafDomainHostInfo"); + return (ModifyWafDomainHostInfoResponse) + this.invoke(request, ModifyWafDomainHostInfoResponse.class); + } + + /** + * ModifyWafDomainWhiteList - 编辑域名白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafDomainWhiteListResponse modifyWafDomainWhiteList( + ModifyWafDomainWhiteListRequest request) throws UCloudException { + request.setAction("ModifyWafDomainWhiteList"); + return (ModifyWafDomainWhiteListResponse) + this.invoke(request, ModifyWafDomainWhiteListResponse.class); + } + + /** + * ModifyWafProtectionCustomerInfo - 编辑自定义防护规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafProtectionCustomerInfoResponse modifyWafProtectionCustomerInfo( + ModifyWafProtectionCustomerInfoRequest request) throws UCloudException { + request.setAction("ModifyWafProtectionCustomerInfo"); + return (ModifyWafProtectionCustomerInfoResponse) + this.invoke(request, ModifyWafProtectionCustomerInfoResponse.class); + } + + /** + * ModifyWafProtectionModeInfo - 更改WAF工作模式 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafProtectionModeInfoResponse modifyWafProtectionModeInfo( + ModifyWafProtectionModeInfoRequest request) throws UCloudException { + request.setAction("ModifyWafProtectionModeInfo"); + return (ModifyWafProtectionModeInfoResponse) + this.invoke(request, ModifyWafProtectionModeInfoResponse.class); + } + + /** + * ModifyWafProtectionPriorityInfo - 修改防护规则优先级 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafProtectionPriorityInfoResponse modifyWafProtectionPriorityInfo( + ModifyWafProtectionPriorityInfoRequest request) throws UCloudException { + request.setAction("ModifyWafProtectionPriorityInfo"); + return (ModifyWafProtectionPriorityInfoResponse) + this.invoke(request, ModifyWafProtectionPriorityInfoResponse.class); + } + + /** + * ModifyWafProtectionPriorityPoleInfo - 调整防护规则优先级至最高或者最低 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafProtectionPriorityPoleInfoResponse modifyWafProtectionPriorityPoleInfo( + ModifyWafProtectionPriorityPoleInfoRequest request) throws UCloudException { + request.setAction("ModifyWafProtectionPriorityPoleInfo"); + return (ModifyWafProtectionPriorityPoleInfoResponse) + this.invoke(request, ModifyWafProtectionPriorityPoleInfoResponse.class); + } + + /** + * ModifyWafProtectionSystemInfo - 修改用户系统规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafProtectionSystemInfoResponse modifyWafProtectionSystemInfo( + ModifyWafProtectionSystemInfoRequest request) throws UCloudException { + request.setAction("ModifyWafProtectionSystemInfo"); + return (ModifyWafProtectionSystemInfoResponse) + this.invoke(request, ModifyWafProtectionSystemInfoResponse.class); + } + + /** + * ModifyWafRegionBlockRule - 修改地域IP封堵规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafRegionBlockRuleResponse modifyWafRegionBlockRule( + ModifyWafRegionBlockRuleRequest request) throws UCloudException { + request.setAction("ModifyWafRegionBlockRule"); + return (ModifyWafRegionBlockRuleResponse) + this.invoke(request, ModifyWafRegionBlockRuleResponse.class); + } + + /** + * ModifyWafResponseFilter - 修改信息安全过滤规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafResponseFilterResponse modifyWafResponseFilter( + ModifyWafResponseFilterRequest request) throws UCloudException { + request.setAction("ModifyWafResponseFilter"); + return (ModifyWafResponseFilterResponse) + this.invoke(request, ModifyWafResponseFilterResponse.class); + } + + /** + * UpdateAssurePageCache - 网页防篡改更新指定url的缓存 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateAssurePageCacheResponse updateAssurePageCache(UpdateAssurePageCacheRequest request) + throws UCloudException { + request.setAction("UpdateAssurePageCache"); + return (UpdateAssurePageCacheResponse) + this.invoke(request, UpdateAssurePageCacheResponse.class); + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/client/UEWAFClientInterface.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/client/UEWAFClientInterface.java new file mode 100644 index 00000000..48b55744 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/client/UEWAFClientInterface.java @@ -0,0 +1,603 @@ +/** + * 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.uewaf.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.uewaf.models.AddAntiCCRuleRequest; +import cn.ucloud.uewaf.models.AddAntiCCRuleResponse; +import cn.ucloud.uewaf.models.AddAssurancePageRequest; +import cn.ucloud.uewaf.models.AddAssurancePageResponse; +import cn.ucloud.uewaf.models.AddAutoWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.AddAutoWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.AddWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.AddWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.AddWafDomainCertificateInfoRequest; +import cn.ucloud.uewaf.models.AddWafDomainCertificateInfoResponse; +import cn.ucloud.uewaf.models.AddWafDomainHostInfoRequest; +import cn.ucloud.uewaf.models.AddWafDomainHostInfoResponse; +import cn.ucloud.uewaf.models.AddWafDomainWhiteListRequest; +import cn.ucloud.uewaf.models.AddWafDomainWhiteListResponse; +import cn.ucloud.uewaf.models.AddWafProtectionRuleInfoRequest; +import cn.ucloud.uewaf.models.AddWafProtectionRuleInfoResponse; +import cn.ucloud.uewaf.models.AddWafRegionBlockRuleRequest; +import cn.ucloud.uewaf.models.AddWafRegionBlockRuleResponse; +import cn.ucloud.uewaf.models.CheckWafMenuSettingOverflowRequest; +import cn.ucloud.uewaf.models.CheckWafMenuSettingOverflowResponse; +import cn.ucloud.uewaf.models.CopyWafDomainRulesRequest; +import cn.ucloud.uewaf.models.CopyWafDomainRulesResponse; +import cn.ucloud.uewaf.models.DeleteAntiCCRuleRequest; +import cn.ucloud.uewaf.models.DeleteAntiCCRuleResponse; +import cn.ucloud.uewaf.models.DeleteAssurancePageRequest; +import cn.ucloud.uewaf.models.DeleteAssurancePageResponse; +import cn.ucloud.uewaf.models.DeleteAutoWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.DeleteAutoWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.DeleteWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.DeleteWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.DeleteWafDomainCertificateInfoRequest; +import cn.ucloud.uewaf.models.DeleteWafDomainCertificateInfoResponse; +import cn.ucloud.uewaf.models.DeleteWafDomainHostInfoRequest; +import cn.ucloud.uewaf.models.DeleteWafDomainHostInfoResponse; +import cn.ucloud.uewaf.models.DeleteWafDomainWhiteListRequest; +import cn.ucloud.uewaf.models.DeleteWafDomainWhiteListResponse; +import cn.ucloud.uewaf.models.DeleteWafProtectionRuleInfoRequest; +import cn.ucloud.uewaf.models.DeleteWafProtectionRuleInfoResponse; +import cn.ucloud.uewaf.models.DeleteWafRegionBlockRuleRequest; +import cn.ucloud.uewaf.models.DeleteWafRegionBlockRuleResponse; +import cn.ucloud.uewaf.models.DeleteWafResponseFilterRequest; +import cn.ucloud.uewaf.models.DeleteWafResponseFilterResponse; +import cn.ucloud.uewaf.models.DescribeAntiCCRulesRequest; +import cn.ucloud.uewaf.models.DescribeAntiCCRulesResponse; +import cn.ucloud.uewaf.models.DescribeAssurancePagesRequest; +import cn.ucloud.uewaf.models.DescribeAssurancePagesResponse; +import cn.ucloud.uewaf.models.DescribeAutoWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.DescribeAutoWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.DescribeWafAttackDetailListInfoRequest; +import cn.ucloud.uewaf.models.DescribeWafAttackDetailListInfoResponse; +import cn.ucloud.uewaf.models.DescribeWafAttackFalseAlarmListInfoRequest; +import cn.ucloud.uewaf.models.DescribeWafAttackFalseAlarmListInfoResponse; +import cn.ucloud.uewaf.models.DescribeWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.DescribeWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.DescribeWafDomainCertificateInfoRequest; +import cn.ucloud.uewaf.models.DescribeWafDomainCertificateInfoResponse; +import cn.ucloud.uewaf.models.DescribeWafDomainHostInfoRequest; +import cn.ucloud.uewaf.models.DescribeWafDomainHostInfoResponse; +import cn.ucloud.uewaf.models.DescribeWafDomainWhiteListRequest; +import cn.ucloud.uewaf.models.DescribeWafDomainWhiteListResponse; +import cn.ucloud.uewaf.models.DescribeWafProtectionSummaryInfoRequest; +import cn.ucloud.uewaf.models.DescribeWafProtectionSummaryInfoResponse; +import cn.ucloud.uewaf.models.DescribeWafResponseFilterRequest; +import cn.ucloud.uewaf.models.DescribeWafResponseFilterResponse; +import cn.ucloud.uewaf.models.DescribeWafSystemRulesRequest; +import cn.ucloud.uewaf.models.DescribeWafSystemRulesResponse; +import cn.ucloud.uewaf.models.DescribeWafUserTransactionInfoRequest; +import cn.ucloud.uewaf.models.DescribeWafUserTransactionInfoResponse; +import cn.ucloud.uewaf.models.DownloadWAFAccessLogRequest; +import cn.ucloud.uewaf.models.DownloadWAFAccessLogResponse; +import cn.ucloud.uewaf.models.GetWafRegionBlockRuleRequest; +import cn.ucloud.uewaf.models.GetWafRegionBlockRuleResponse; +import cn.ucloud.uewaf.models.ModifyAntiCCRuleRequest; +import cn.ucloud.uewaf.models.ModifyAntiCCRuleResponse; +import cn.ucloud.uewaf.models.ModifyAntiCCStateRequest; +import cn.ucloud.uewaf.models.ModifyAntiCCStateResponse; +import cn.ucloud.uewaf.models.ModifyAssurancePageRequest; +import cn.ucloud.uewaf.models.ModifyAssurancePageResponse; +import cn.ucloud.uewaf.models.ModifyAutoWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.ModifyAutoWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.ModifyGlobalAssuranceStateRequest; +import cn.ucloud.uewaf.models.ModifyGlobalAssuranceStateResponse; +import cn.ucloud.uewaf.models.ModifyWafAttackFalseAlarmStatusRequest; +import cn.ucloud.uewaf.models.ModifyWafAttackFalseAlarmStatusResponse; +import cn.ucloud.uewaf.models.ModifyWafDomainBlackListRequest; +import cn.ucloud.uewaf.models.ModifyWafDomainBlackListResponse; +import cn.ucloud.uewaf.models.ModifyWafDomainHostInfoRequest; +import cn.ucloud.uewaf.models.ModifyWafDomainHostInfoResponse; +import cn.ucloud.uewaf.models.ModifyWafDomainWhiteListRequest; +import cn.ucloud.uewaf.models.ModifyWafDomainWhiteListResponse; +import cn.ucloud.uewaf.models.ModifyWafProtectionCustomerInfoRequest; +import cn.ucloud.uewaf.models.ModifyWafProtectionCustomerInfoResponse; +import cn.ucloud.uewaf.models.ModifyWafProtectionModeInfoRequest; +import cn.ucloud.uewaf.models.ModifyWafProtectionModeInfoResponse; +import cn.ucloud.uewaf.models.ModifyWafProtectionPriorityInfoRequest; +import cn.ucloud.uewaf.models.ModifyWafProtectionPriorityInfoResponse; +import cn.ucloud.uewaf.models.ModifyWafProtectionPriorityPoleInfoRequest; +import cn.ucloud.uewaf.models.ModifyWafProtectionPriorityPoleInfoResponse; +import cn.ucloud.uewaf.models.ModifyWafProtectionSystemInfoRequest; +import cn.ucloud.uewaf.models.ModifyWafProtectionSystemInfoResponse; +import cn.ucloud.uewaf.models.ModifyWafRegionBlockRuleRequest; +import cn.ucloud.uewaf.models.ModifyWafRegionBlockRuleResponse; +import cn.ucloud.uewaf.models.ModifyWafResponseFilterRequest; +import cn.ucloud.uewaf.models.ModifyWafResponseFilterResponse; +import cn.ucloud.uewaf.models.UpdateAssurePageCacheRequest; +import cn.ucloud.uewaf.models.UpdateAssurePageCacheResponse; + +/** This client is used to call actions of **UEWAF** service */ +public interface UEWAFClientInterface extends Client { + + /** + * AddAntiCCRule - 添加CC防御规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddAntiCCRuleResponse addAntiCCRule(AddAntiCCRuleRequest request) throws UCloudException; + + /** + * AddAssurancePage - 添加防篡改页面 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddAssurancePageResponse addAssurancePage(AddAssurancePageRequest request) + throws UCloudException; + + /** + * AddAutoWafDomainBlackList - 创建自动拦截策略接口 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddAutoWafDomainBlackListResponse addAutoWafDomainBlackList( + AddAutoWafDomainBlackListRequest request) throws UCloudException; + + /** + * AddWafDomainBlackList - 添加域名黑名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWafDomainBlackListResponse addWafDomainBlackList(AddWafDomainBlackListRequest request) + throws UCloudException; + + /** + * AddWafDomainCertificateInfo - 添加SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWafDomainCertificateInfoResponse addWafDomainCertificateInfo( + AddWafDomainCertificateInfoRequest request) throws UCloudException; + + /** + * AddWafDomainHostInfo - 新增防护域名配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWafDomainHostInfoResponse addWafDomainHostInfo(AddWafDomainHostInfoRequest request) + throws UCloudException; + + /** + * AddWafDomainWhiteList - 添加域名白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWafDomainWhiteListResponse addWafDomainWhiteList(AddWafDomainWhiteListRequest request) + throws UCloudException; + + /** + * AddWafProtectionRuleInfo - 添加WAF防护规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWafProtectionRuleInfoResponse addWafProtectionRuleInfo( + AddWafProtectionRuleInfoRequest request) throws UCloudException; + + /** + * AddWafRegionBlockRule - 添加WAF区域IP封堵规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddWafRegionBlockRuleResponse addWafRegionBlockRule(AddWafRegionBlockRuleRequest request) + throws UCloudException; + + /** + * CheckWafMenuSettingOverflow - 校验域名和规则数是否超出指定套餐的限制 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckWafMenuSettingOverflowResponse checkWafMenuSettingOverflow( + CheckWafMenuSettingOverflowRequest request) throws UCloudException; + + /** + * CopyWafDomainRules - 批量复制WAF规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CopyWafDomainRulesResponse copyWafDomainRules(CopyWafDomainRulesRequest request) + throws UCloudException; + + /** + * DeleteAntiCCRule - 删除CC防御规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteAntiCCRuleResponse deleteAntiCCRule(DeleteAntiCCRuleRequest request) + throws UCloudException; + + /** + * DeleteAssurancePage - 删除防篡改页面 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteAssurancePageResponse deleteAssurancePage(DeleteAssurancePageRequest request) + throws UCloudException; + + /** + * DeleteAutoWafDomainBlackList - 删除自动添加黑名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteAutoWafDomainBlackListResponse deleteAutoWafDomainBlackList( + DeleteAutoWafDomainBlackListRequest request) throws UCloudException; + + /** + * DeleteWafDomainBlackList - 删除域名黑名单记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafDomainBlackListResponse deleteWafDomainBlackList( + DeleteWafDomainBlackListRequest request) throws UCloudException; + + /** + * DeleteWafDomainCertificateInfo - 删除指定域名的ssl证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafDomainCertificateInfoResponse deleteWafDomainCertificateInfo( + DeleteWafDomainCertificateInfoRequest request) throws UCloudException; + + /** + * DeleteWafDomainHostInfo - 删除WAF防御域名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafDomainHostInfoResponse deleteWafDomainHostInfo( + DeleteWafDomainHostInfoRequest request) throws UCloudException; + + /** + * DeleteWafDomainWhiteList - 删除域名白名单记录 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafDomainWhiteListResponse deleteWafDomainWhiteList( + DeleteWafDomainWhiteListRequest request) throws UCloudException; + + /** + * DeleteWafProtectionRuleInfo - 删除WAF防护规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafProtectionRuleInfoResponse deleteWafProtectionRuleInfo( + DeleteWafProtectionRuleInfoRequest request) throws UCloudException; + + /** + * DeleteWafRegionBlockRule - 删除地域IP封堵规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafRegionBlockRuleResponse deleteWafRegionBlockRule( + DeleteWafRegionBlockRuleRequest request) throws UCloudException; + + /** + * DeleteWafResponseFilter - 删除信息安全过滤规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteWafResponseFilterResponse deleteWafResponseFilter( + DeleteWafResponseFilterRequest request) throws UCloudException; + + /** + * DescribeAntiCCRules - CC防御规则列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeAntiCCRulesResponse describeAntiCCRules(DescribeAntiCCRulesRequest request) + throws UCloudException; + + /** + * DescribeAssurancePages - 获取防篡改页面列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeAssurancePagesResponse describeAssurancePages( + DescribeAssurancePagesRequest request) throws UCloudException; + + /** + * DescribeAutoWafDomainBlackList - 查询自动添加黑名单策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeAutoWafDomainBlackListResponse describeAutoWafDomainBlackList( + DescribeAutoWafDomainBlackListRequest request) throws UCloudException; + + /** + * DescribeWafAttackDetailListInfo - 查询WAF攻击详情 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafAttackDetailListInfoResponse describeWafAttackDetailListInfo( + DescribeWafAttackDetailListInfoRequest request) throws UCloudException; + + /** + * DescribeWafAttackFalseAlarmListInfo - 获取误报记录列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafAttackFalseAlarmListInfoResponse describeWafAttackFalseAlarmListInfo( + DescribeWafAttackFalseAlarmListInfoRequest request) throws UCloudException; + + /** + * DescribeWafDomainBlackList - 获取域名黑名单列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafDomainBlackListResponse describeWafDomainBlackList( + DescribeWafDomainBlackListRequest request) throws UCloudException; + + /** + * DescribeWafDomainCertificateInfo - 显示域名对应的证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafDomainCertificateInfoResponse describeWafDomainCertificateInfo( + DescribeWafDomainCertificateInfoRequest request) throws UCloudException; + + /** + * DescribeWafDomainHostInfo - 获取WAF防护域名列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafDomainHostInfoResponse describeWafDomainHostInfo( + DescribeWafDomainHostInfoRequest request) throws UCloudException; + + /** + * DescribeWafDomainWhiteList - 获取域名白名单列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafDomainWhiteListResponse describeWafDomainWhiteList( + DescribeWafDomainWhiteListRequest request) throws UCloudException; + + /** + * DescribeWafProtectionSummaryInfo - 获取防护规则列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafProtectionSummaryInfoResponse describeWafProtectionSummaryInfo( + DescribeWafProtectionSummaryInfoRequest request) throws UCloudException; + + /** + * DescribeWafResponseFilter - 查询信息安全过滤规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafResponseFilterResponse describeWafResponseFilter( + DescribeWafResponseFilterRequest request) throws UCloudException; + + /** + * DescribeWafSystemRules - 查询指定域名的系统默认规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafSystemRulesResponse describeWafSystemRules( + DescribeWafSystemRulesRequest request) throws UCloudException; + + /** + * DescribeWafUserTransactionInfo - 获取用户购买详细信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeWafUserTransactionInfoResponse describeWafUserTransactionInfo( + DescribeWafUserTransactionInfoRequest request) throws UCloudException; + + /** + * DownloadWAFAccessLog - 下载访问日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadWAFAccessLogResponse downloadWAFAccessLog(DownloadWAFAccessLogRequest request) + throws UCloudException; + + /** + * GetWafRegionBlockRule - 查询区域IP封堵规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetWafRegionBlockRuleResponse getWafRegionBlockRule(GetWafRegionBlockRuleRequest request) + throws UCloudException; + + /** + * ModifyAntiCCRule - 修改CC防御规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyAntiCCRuleResponse modifyAntiCCRule(ModifyAntiCCRuleRequest request) + throws UCloudException; + + /** + * ModifyAntiCCState - 更改域名CC防御状态 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyAntiCCStateResponse modifyAntiCCState(ModifyAntiCCStateRequest request) + throws UCloudException; + + /** + * ModifyAssurancePage - 编辑防篡改页面 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyAssurancePageResponse modifyAssurancePage(ModifyAssurancePageRequest request) + throws UCloudException; + + /** + * ModifyAutoWafDomainBlackList - 修改自动拦截规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyAutoWafDomainBlackListResponse modifyAutoWafDomainBlackList( + ModifyAutoWafDomainBlackListRequest request) throws UCloudException; + + /** + * ModifyGlobalAssuranceState - 网页防篡改全局开关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyGlobalAssuranceStateResponse modifyGlobalAssuranceState( + ModifyGlobalAssuranceStateRequest request) throws UCloudException; + + /** + * ModifyWafAttackFalseAlarmStatus - 新的误报接口 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafAttackFalseAlarmStatusResponse modifyWafAttackFalseAlarmStatus( + ModifyWafAttackFalseAlarmStatusRequest request) throws UCloudException; + + /** + * ModifyWafDomainBlackList - 编辑域名黑名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafDomainBlackListResponse modifyWafDomainBlackList( + ModifyWafDomainBlackListRequest request) throws UCloudException; + + /** + * ModifyWafDomainHostInfo - 编辑防护域名信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafDomainHostInfoResponse modifyWafDomainHostInfo( + ModifyWafDomainHostInfoRequest request) throws UCloudException; + + /** + * ModifyWafDomainWhiteList - 编辑域名白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafDomainWhiteListResponse modifyWafDomainWhiteList( + ModifyWafDomainWhiteListRequest request) throws UCloudException; + + /** + * ModifyWafProtectionCustomerInfo - 编辑自定义防护规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafProtectionCustomerInfoResponse modifyWafProtectionCustomerInfo( + ModifyWafProtectionCustomerInfoRequest request) throws UCloudException; + + /** + * ModifyWafProtectionModeInfo - 更改WAF工作模式 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafProtectionModeInfoResponse modifyWafProtectionModeInfo( + ModifyWafProtectionModeInfoRequest request) throws UCloudException; + + /** + * ModifyWafProtectionPriorityInfo - 修改防护规则优先级 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafProtectionPriorityInfoResponse modifyWafProtectionPriorityInfo( + ModifyWafProtectionPriorityInfoRequest request) throws UCloudException; + + /** + * ModifyWafProtectionPriorityPoleInfo - 调整防护规则优先级至最高或者最低 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafProtectionPriorityPoleInfoResponse modifyWafProtectionPriorityPoleInfo( + ModifyWafProtectionPriorityPoleInfoRequest request) throws UCloudException; + + /** + * ModifyWafProtectionSystemInfo - 修改用户系统规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafProtectionSystemInfoResponse modifyWafProtectionSystemInfo( + ModifyWafProtectionSystemInfoRequest request) throws UCloudException; + + /** + * ModifyWafRegionBlockRule - 修改地域IP封堵规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafRegionBlockRuleResponse modifyWafRegionBlockRule( + ModifyWafRegionBlockRuleRequest request) throws UCloudException; + + /** + * ModifyWafResponseFilter - 修改信息安全过滤规则 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyWafResponseFilterResponse modifyWafResponseFilter( + ModifyWafResponseFilterRequest request) throws UCloudException; + + /** + * UpdateAssurePageCache - 网页防篡改更新指定url的缓存 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateAssurePageCacheResponse updateAssurePageCache(UpdateAssurePageCacheRequest request) + throws UCloudException; +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAntiCCRuleRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAntiCCRuleRequest.java new file mode 100644 index 00000000..4e479f43 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAntiCCRuleRequest.java @@ -0,0 +1,125 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AddAntiCCRuleRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要添加防护规则的域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + /** 统计时长内的请求数 */ + @NotEmpty + @UCloudParam("Reqs") + private Integer reqs; + + /** uri,eg:/index.html */ + @NotEmpty + @UCloudParam("URL") + private String url; + + /** 匹配模式,equal:完全匹配;contains:包含 */ + @NotEmpty + @UCloudParam("Mode") + private String mode; + + /** 统计时长,单位: 秒 */ + @NotEmpty + @UCloudParam("Duration") + private Integer duration; + + /** 匹配后执行的动作,forbidden:拦截请求;captcha:验证码; iptables:IP封堵 */ + @NotEmpty + @UCloudParam("ActionType") + private String actionType; + + /** 动作有效期,单位:分钟 */ + @NotEmpty + @UCloudParam("Validity") + private Integer validity; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public Integer getReqs() { + return reqs; + } + + public void setReqs(Integer reqs) { + this.reqs = reqs; + } + + public String getURL() { + return url; + } + + public void setURL(String url) { + this.url = url; + } + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public Integer getDuration() { + return duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + } + + public String getActionType() { + return actionType; + } + + public void setActionType(String actionType) { + this.actionType = actionType; + } + + public Integer getValidity() { + return validity; + } + + public void setValidity(Integer validity) { + this.validity = validity; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAntiCCRuleResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAntiCCRuleResponse.java new file mode 100644 index 00000000..e380aed4 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAntiCCRuleResponse.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.uewaf.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class AddAntiCCRuleResponse extends Response { + + /** 添加成功后返回的规则ID */ + @SerializedName("Id") + private Integer id; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAssurancePageRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAssurancePageRequest.java new file mode 100644 index 00000000..46203b6b --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAssurancePageRequest.java @@ -0,0 +1,85 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AddAssurancePageRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要添加防篡改规则的域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + /** 要防篡改的URL */ + @NotEmpty + @UCloudParam("URL") + private String url; + + /** 防护状态,on:开启;off:关闭 */ + @NotEmpty + @UCloudParam("State") + private String state; + + /** 备注信息 */ + @UCloudParam("Remark") + private String remark; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public String getURL() { + return url; + } + + public void setURL(String url) { + this.url = url; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAssurancePageResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAssurancePageResponse.java new file mode 100644 index 00000000..4ad176ff --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAssurancePageResponse.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.uewaf.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class AddAssurancePageResponse extends Response { + + /** 添加成功后返回的规则ID */ + @SerializedName("Id") + private Integer id; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAutoWafDomainBlackListRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAutoWafDomainBlackListRequest.java new file mode 100644 index 00000000..0995bcd1 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAutoWafDomainBlackListRequest.java @@ -0,0 +1,113 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AddAutoWafDomainBlackListRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 防御的域名,只能选择已添加的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** + * 攻击统计类型,默认全选;参数选项: protocol: 协议违规, xss: XSS攻击, sql: SQL注入, loopholes: 漏洞攻击, exec: 命令执行, + * webshell: WebShell上传, eaa: 越权访问, infoleak: 信息泄露, scan: 恶意扫描, cc: CC攻击, other: 其他 + */ + @UCloudParam("AttackType") + private String attackType; + + /** 检测到攻击后的动作, 默认为forbidden,支持captcha */ + @UCloudParam("ActionType") + private String actionType; + + /** 添加黑名单的过期时间,单位分钟, 0 长期有效,默认60分钟 */ + @UCloudParam("ExpireTime") + private Integer expireTime; + + /** 攻击阈值,默认10个 */ + @UCloudParam("AttackCount") + private Integer attackCount; + + /** 攻击统计区间,单位秒,默认60秒 */ + @UCloudParam("Interval") + private Integer interval; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getAttackType() { + return attackType; + } + + public void setAttackType(String attackType) { + this.attackType = attackType; + } + + public String getActionType() { + return actionType; + } + + public void setActionType(String actionType) { + this.actionType = actionType; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getAttackCount() { + return attackCount; + } + + public void setAttackCount(Integer attackCount) { + this.attackCount = attackCount; + } + + public Integer getInterval() { + return interval; + } + + public void setInterval(Integer interval) { + this.interval = interval; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAutoWafDomainBlackListResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAutoWafDomainBlackListResponse.java new file mode 100644 index 00000000..0b66bdb0 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddAutoWafDomainBlackListResponse.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.uewaf.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class AddAutoWafDomainBlackListResponse extends Response { + + /** 添加成功返回的策略ID */ + @SerializedName("Id") + private Integer id; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainBlackListRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainBlackListRequest.java new file mode 100644 index 00000000..ac876357 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainBlackListRequest.java @@ -0,0 +1,127 @@ +/** + * 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.uewaf.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 AddWafDomainBlackListRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要添加黑名单的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 黑名单来源, 用户自定义(custom)/机器行为检测(bot)/ bot-rule/ auto(自动拦截规则) */ + @NotEmpty + @UCloudParam("Source") + private String source; + + /** 类型:境内(internal)、境外(oversea),自定义(custom) */ + @NotEmpty + @UCloudParam("Type") + private String type; + + /** 执行动作: 可选值:拦截请求(forbidden) ,验证码(captcha) */ + @NotEmpty + @UCloudParam("ActionType") + private String actionType; + + /** 过期时间,即有效时长,单位为秒,永不过期传0 */ + @NotEmpty + @UCloudParam("ExpireTime") + private Integer expireTime; + + /** IP、网段或者IP段,传递数组;类型为custom时必填 */ + @UCloudParam("CIDRS") + private List cidrs; + + /** 备注信息 */ + @UCloudParam("Remark") + private String remark; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getActionType() { + return actionType; + } + + public void setActionType(String actionType) { + this.actionType = actionType; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public List getCIDRS() { + return cidrs; + } + + public void setCIDRS(List cidrs) { + this.cidrs = cidrs; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainBlackListResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainBlackListResponse.java new file mode 100644 index 00000000..ac0644f4 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainBlackListResponse.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.uewaf.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class AddWafDomainBlackListResponse extends Response { + + /** 添加成功后返回的域名黑名单ID */ + @SerializedName("Id") + private Integer id; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainCertificateInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainCertificateInfoRequest.java new file mode 100644 index 00000000..9558683f --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainCertificateInfoRequest.java @@ -0,0 +1,102 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AddWafDomainCertificateInfoRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + /** 证书名称 */ + @NotEmpty + @UCloudParam("CertificateName") + private String certificateName; + + /** ssl公钥 */ + @NotEmpty + @UCloudParam("SslPublicKey") + private String sslPublicKey; + + /** 证书MD5校验值,开启keyless只需要计算公钥的md5 */ + @NotEmpty + @UCloudParam("SslMD") + private String sslMD; + + /** keyless开关,默认关闭;可选值:开启(on),关闭(off) */ + @NotEmpty + @UCloudParam("SslKeyless") + private String sslKeyless; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public String getCertificateName() { + return certificateName; + } + + public void setCertificateName(String certificateName) { + this.certificateName = certificateName; + } + + public String getSslPublicKey() { + return sslPublicKey; + } + + public void setSslPublicKey(String sslPublicKey) { + this.sslPublicKey = sslPublicKey; + } + + public String getSslMD() { + return sslMD; + } + + public void setSslMD(String sslMD) { + this.sslMD = sslMD; + } + + public String getSslKeyless() { + return sslKeyless; + } + + public void setSslKeyless(String sslKeyless) { + this.sslKeyless = sslKeyless; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainCertificateInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainCertificateInfoResponse.java new file mode 100644 index 00000000..d9588bb9 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainCertificateInfoResponse.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.uewaf.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class AddWafDomainCertificateInfoResponse extends Response { + + /** 添加成功返回的SSL证书ID */ + @SerializedName("Id") + private Integer id; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainHostInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainHostInfoRequest.java new file mode 100644 index 00000000..cca97be3 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainHostInfoRequest.java @@ -0,0 +1,172 @@ +/** + * 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.uewaf.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 AddWafDomainHostInfoRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要防护的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 工作区域,用户已购买区域的子集,以逗号分隔,如:cn-bj,cn-sh */ + @NotEmpty + @UCloudParam("WorkRegions") + private String workRegions; + + /** 工作模式,Defence:启用防护规则,Alarm:记录不拦截,Inactive:放行;默认Alarm */ + @UCloudParam("WorkMode") + private String workMode; + + /** 源站IP端口信息,格式为:http://192.168.1.1或http://192.168.1.1:80;兼容http:192.168.1.1:80,支持CNAME */ + @UCloudParam("SrcIP") + private List srcIP; + + /** HTTPS证书编号,源站前缀为https时必填 */ + @UCloudParam("CertificateID") + private Integer certificateID; + + /** 使用HTTP跳转,YES是,NO否,只允许HTTPS:YES,HTTP:NO的情况下使用且只配置了https 443端口的源站 */ + @UCloudParam("HTTPRedirection") + private String httpRedirection; + + /** 标识该域名使用独享防御IP,YES是,NO否;启用将为改域名分配一个独享防御IP */ + @UCloudParam("ExclusiveIP") + private String exclusiveIP; + + /** 获取真实客户端地址字段,如对接CDN等其他代理时使用 */ + @UCloudParam("RealIPHeader") + private String realIPHeader; + + /** 是否使用HTTPS卸载,YES/NO */ + @UCloudParam("HTTPBack") + private String httpBack; + + /** 流量标记,格式为key:value */ + @UCloudParam("SourceIndicate") + private String sourceIndicate; + + /** 是否开启HTTP2, YES开启,其他关闭 */ + @UCloudParam("Http2") + private String http2; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getWorkRegions() { + return workRegions; + } + + public void setWorkRegions(String workRegions) { + this.workRegions = workRegions; + } + + public String getWorkMode() { + return workMode; + } + + public void setWorkMode(String workMode) { + this.workMode = workMode; + } + + public List getSrcIP() { + return srcIP; + } + + public void setSrcIP(List srcIP) { + this.srcIP = srcIP; + } + + public Integer getCertificateID() { + return certificateID; + } + + public void setCertificateID(Integer certificateID) { + this.certificateID = certificateID; + } + + public String getHTTPRedirection() { + return httpRedirection; + } + + public void setHTTPRedirection(String httpRedirection) { + this.httpRedirection = httpRedirection; + } + + public String getExclusiveIP() { + return exclusiveIP; + } + + public void setExclusiveIP(String exclusiveIP) { + this.exclusiveIP = exclusiveIP; + } + + public String getRealIPHeader() { + return realIPHeader; + } + + public void setRealIPHeader(String realIPHeader) { + this.realIPHeader = realIPHeader; + } + + public String getHTTPBack() { + return httpBack; + } + + public void setHTTPBack(String httpBack) { + this.httpBack = httpBack; + } + + public String getSourceIndicate() { + return sourceIndicate; + } + + public void setSourceIndicate(String sourceIndicate) { + this.sourceIndicate = sourceIndicate; + } + + public String getHttp2() { + return http2; + } + + public void setHttp2(String http2) { + this.http2 = http2; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainHostInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainHostInfoResponse.java new file mode 100644 index 00000000..bc682405 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainHostInfoResponse.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.uewaf.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class AddWafDomainHostInfoResponse extends Response { + + /** 添加成功后返回的域名配置ID */ + @SerializedName("Id") + private Integer id; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainWhiteListRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainWhiteListRequest.java new file mode 100644 index 00000000..bb4923a3 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainWhiteListRequest.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.uewaf.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 AddWafDomainWhiteListRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要添加白名单的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 白名单来源;可选值:用户自定义(custom),机器行为检测(bot),bot-rule */ + @NotEmpty + @UCloudParam("Source") + private String source; + + /** IP、网段或者IP段,传递数组 */ + @NotEmpty + @UCloudParam("CIDRS") + private List cidrs; + + /** 备注信息 */ + @UCloudParam("Remark") + private String remark; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public List getCIDRS() { + return cidrs; + } + + public void setCIDRS(List cidrs) { + this.cidrs = cidrs; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainWhiteListResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainWhiteListResponse.java new file mode 100644 index 00000000..1a4ba6f1 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafDomainWhiteListResponse.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.uewaf.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class AddWafDomainWhiteListResponse extends Response { + + /** 添加成功后返回的域名白名单ID */ + @SerializedName("Id") + private Integer id; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafProtectionRuleInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafProtectionRuleInfoRequest.java new file mode 100644 index 00000000..d5d09172 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafProtectionRuleInfoRequest.java @@ -0,0 +1,125 @@ +/** + * 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.uewaf.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 AddWafProtectionRuleInfoRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 规则匹配条件个数 */ + @NotEmpty + @UCloudParam("RuleNum") + private Integer ruleNum; + + /** 规则名称 */ + @NotEmpty + @UCloudParam("RuleName") + private String ruleName; + + /** 规则命中之后的动作,Deny:拦截,Accept */ + @NotEmpty + @UCloudParam("RuleAction") + private String ruleAction; + + /** 风险等级,Low:低,Middle:中,High:高 */ + @NotEmpty + @UCloudParam("RiskRank") + private String riskRank; + + /** 要添加防护规则的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 规则匹配条件,举例:Field:UserAgent,Operator:Contain,Content:xxxx */ + @NotEmpty + @UCloudParam("Rule") + private List rule; + + /** 风险种类;可选值:scan,loopholes,xss,cc,sql,exec,webshell,infoleak,eaa,protocol,other */ + @UCloudParam("RiskType") + private String riskType; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getRuleNum() { + return ruleNum; + } + + public void setRuleNum(Integer ruleNum) { + this.ruleNum = ruleNum; + } + + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public String getRuleAction() { + return ruleAction; + } + + public void setRuleAction(String ruleAction) { + this.ruleAction = ruleAction; + } + + public String getRiskRank() { + return riskRank; + } + + public void setRiskRank(String riskRank) { + this.riskRank = riskRank; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public List getRule() { + return rule; + } + + public void setRule(List rule) { + this.rule = rule; + } + + public String getRiskType() { + return riskType; + } + + public void setRiskType(String riskType) { + this.riskType = riskType; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafProtectionRuleInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafProtectionRuleInfoResponse.java new file mode 100644 index 00000000..b1fa9abf --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafProtectionRuleInfoResponse.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.uewaf.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class AddWafProtectionRuleInfoResponse extends Response { + + /** 添加成功后返回的防护规则ID */ + @SerializedName("Id") + private Integer id; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafRegionBlockRuleRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafRegionBlockRuleRequest.java new file mode 100644 index 00000000..f8e7ea4a --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafRegionBlockRuleRequest.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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AddWafRegionBlockRuleRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 规则名称 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** + * 封堵地域编码,格式:国家代码:区域列表 大陆区支持省级和市级细分,其他只支持国家,e.g.: CN:110000|440300|320000代表对北京市 深圳市 江苏省 的ip进行封堵; + * US表示对美国ip进行封堵 + */ + @NotEmpty + @UCloudParam("BlockRegion") + private String blockRegion; + + /** 匹配Action,Accept or Deny(默认),Accept暂不支持 */ + @NotEmpty + @UCloudParam("ActionType") + private String actionType; + + /** 备注信息 */ + @UCloudParam("Description") + private String description; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getBlockRegion() { + return blockRegion; + } + + public void setBlockRegion(String blockRegion) { + this.blockRegion = blockRegion; + } + + public String getActionType() { + return actionType; + } + + public void setActionType(String actionType) { + this.actionType = actionType; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafRegionBlockRuleResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafRegionBlockRuleResponse.java new file mode 100644 index 00000000..17a459e7 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/AddWafRegionBlockRuleResponse.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.uewaf.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class AddWafRegionBlockRuleResponse extends Response { + + /** 添加成功后返回的封堵规则ID */ + @SerializedName("Id") + private Integer id; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/CheckWafMenuSettingOverflowRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/CheckWafMenuSettingOverflowRequest.java new file mode 100644 index 00000000..16742647 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/CheckWafMenuSettingOverflowRequest.java @@ -0,0 +1,33 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CheckWafMenuSettingOverflowRequest extends Request { + + /** 不填为默认项目 */ + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/CheckWafMenuSettingOverflowResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/CheckWafMenuSettingOverflowResponse.java new file mode 100644 index 00000000..954ec389 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/CheckWafMenuSettingOverflowResponse.java @@ -0,0 +1,112 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CheckWafMenuSettingOverflowResponse extends Response { + + /** 用量描述,参考UsageInfo */ + @SerializedName("UsageInfo") + private UsageInfo usageInfo; + + public UsageInfo getUsageInfo() { + return usageInfo; + } + + public void setUsageInfo(UsageInfo usageInfo) { + this.usageInfo = usageInfo; + } + + public static class UsageInfo extends Response { + + /** 域名数量限额,参考UsageInfoDetail */ + @SerializedName("DomainLimit") + private UsageInfoDetail domainLimit; + + /** 独享ip限额,参考UsageInfoDetail */ + @SerializedName("ExclusiveIPLimit") + private UsageInfoDetail exclusiveIPLimit; + + /** 内部带宽限额,参考UsageInfoDetail */ + @SerializedName("BandwidthInner") + private UsageInfoDetail bandwidthInner; + + /** 外部带宽限额,参考UsageInfoDetail */ + @SerializedName("BandwidthOuter") + private UsageInfoDetail bandwidthOuter; + + public UsageInfoDetail getDomainLimit() { + return domainLimit; + } + + public void setDomainLimit(UsageInfoDetail domainLimit) { + this.domainLimit = domainLimit; + } + + public UsageInfoDetail getExclusiveIPLimit() { + return exclusiveIPLimit; + } + + public void setExclusiveIPLimit(UsageInfoDetail exclusiveIPLimit) { + this.exclusiveIPLimit = exclusiveIPLimit; + } + + public UsageInfoDetail getBandwidthInner() { + return bandwidthInner; + } + + public void setBandwidthInner(UsageInfoDetail bandwidthInner) { + this.bandwidthInner = bandwidthInner; + } + + public UsageInfoDetail getBandwidthOuter() { + return bandwidthOuter; + } + + public void setBandwidthOuter(UsageInfoDetail bandwidthOuter) { + this.bandwidthOuter = bandwidthOuter; + } + } + + public static class UsageInfoDetail extends Response { + + /** 配额数量 */ + @SerializedName("Quota") + private Integer quota; + + /** 已使用数量 */ + @SerializedName("Used") + private Integer used; + + public Integer getQuota() { + return quota; + } + + public void setQuota(Integer quota) { + this.quota = quota; + } + + public Integer getUsed() { + return used; + } + + public void setUsed(Integer used) { + this.used = used; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/CopyWafDomainRulesRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/CopyWafDomainRulesRequest.java new file mode 100644 index 00000000..99fb51af --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/CopyWafDomainRulesRequest.java @@ -0,0 +1,80 @@ +/** + * 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.uewaf.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 CopyWafDomainRulesRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 源域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 目的域名 */ + @NotEmpty + @UCloudParam("DestDomain") + private List destDomain; + + /** + * 规则类型,CCRule:CC规则; ProtectionRule:防护规则; AutoBlacklistRule:自动拦截规则; HTTPDisguiseRule:信息防护规则; + * RegionBlockRule:区域封堵规则;WhiteList:白名单规则;BlackList:黑名单规则 + */ + @NotEmpty + @UCloudParam("RuleType") + private String ruleType; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public List getDestDomain() { + return destDomain; + } + + public void setDestDomain(List destDomain) { + this.destDomain = destDomain; + } + + public String getRuleType() { + return ruleType; + } + + public void setRuleType(String ruleType) { + this.ruleType = ruleType; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/CopyWafDomainRulesResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/CopyWafDomainRulesResponse.java new file mode 100644 index 00000000..ed4bbb95 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/CopyWafDomainRulesResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class CopyWafDomainRulesResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAntiCCRuleRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAntiCCRuleRequest.java new file mode 100644 index 00000000..4d574657 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAntiCCRuleRequest.java @@ -0,0 +1,60 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteAntiCCRuleRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要删除的规则ID */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + /** 要删除的规则所属域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAntiCCRuleResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAntiCCRuleResponse.java new file mode 100644 index 00000000..0b7aa706 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAntiCCRuleResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteAntiCCRuleResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAssurancePageRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAssurancePageRequest.java new file mode 100644 index 00000000..0139ff31 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAssurancePageRequest.java @@ -0,0 +1,50 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteAssurancePageRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要删除的防篡改记录ID */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAssurancePageResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAssurancePageResponse.java new file mode 100644 index 00000000..5b818709 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAssurancePageResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteAssurancePageResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAutoWafDomainBlackListRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAutoWafDomainBlackListRequest.java new file mode 100644 index 00000000..dea48107 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAutoWafDomainBlackListRequest.java @@ -0,0 +1,60 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteAutoWafDomainBlackListRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要删除的规则所属域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 要删除的自动拦截规则的ID */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAutoWafDomainBlackListResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAutoWafDomainBlackListResponse.java new file mode 100644 index 00000000..1dc0214e --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteAutoWafDomainBlackListResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteAutoWafDomainBlackListResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainBlackListRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainBlackListRequest.java new file mode 100644 index 00000000..151c79f1 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainBlackListRequest.java @@ -0,0 +1,60 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteWafDomainBlackListRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 黑名单记录id */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainBlackListResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainBlackListResponse.java new file mode 100644 index 00000000..fa05179b --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainBlackListResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteWafDomainBlackListResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainCertificateInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainCertificateInfoRequest.java new file mode 100644 index 00000000..cb7d8654 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainCertificateInfoRequest.java @@ -0,0 +1,47 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteWafDomainCertificateInfoRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要删除的证书ID */ + @NotEmpty + @UCloudParam("CertificateID") + private Integer certificateID; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getCertificateID() { + return certificateID; + } + + public void setCertificateID(Integer certificateID) { + this.certificateID = certificateID; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainCertificateInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainCertificateInfoResponse.java new file mode 100644 index 00000000..b318e9a0 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainCertificateInfoResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteWafDomainCertificateInfoResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainHostInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainHostInfoRequest.java new file mode 100644 index 00000000..19ae060f --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainHostInfoRequest.java @@ -0,0 +1,48 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteWafDomainHostInfoRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要删除的域名,该字段与RecordId不能同时为空,优先取RecordId进行删除 */ + @UCloudParam("FullDomain") + private String fullDomain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainHostInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainHostInfoResponse.java new file mode 100644 index 00000000..77df1cd1 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainHostInfoResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteWafDomainHostInfoResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainWhiteListRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainWhiteListRequest.java new file mode 100644 index 00000000..ce441b93 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainWhiteListRequest.java @@ -0,0 +1,60 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteWafDomainWhiteListRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 白名单记录ID */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainWhiteListResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainWhiteListResponse.java new file mode 100644 index 00000000..ac4201e0 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafDomainWhiteListResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteWafDomainWhiteListResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafProtectionRuleInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafProtectionRuleInfoRequest.java new file mode 100644 index 00000000..1bd57db3 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafProtectionRuleInfoRequest.java @@ -0,0 +1,60 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteWafProtectionRuleInfoRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要删除的规则集ID */ + @NotEmpty + @UCloudParam("RuleSetID") + private Integer ruleSetID; + + /** 要删除的防护规则所属域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getRuleSetID() { + return ruleSetID; + } + + public void setRuleSetID(Integer ruleSetID) { + this.ruleSetID = ruleSetID; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafProtectionRuleInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafProtectionRuleInfoResponse.java new file mode 100644 index 00000000..e19ddab4 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafProtectionRuleInfoResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteWafProtectionRuleInfoResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafRegionBlockRuleRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafRegionBlockRuleRequest.java new file mode 100644 index 00000000..78223035 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafRegionBlockRuleRequest.java @@ -0,0 +1,47 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteWafRegionBlockRuleRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 规则ID */ + @NotEmpty + @UCloudParam("ID") + private String id; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getID() { + return id; + } + + public void setID(String id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafRegionBlockRuleResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafRegionBlockRuleResponse.java new file mode 100644 index 00000000..7ad2a2fd --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafRegionBlockRuleResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteWafRegionBlockRuleResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafResponseFilterRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafResponseFilterRequest.java new file mode 100644 index 00000000..02316160 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafResponseFilterRequest.java @@ -0,0 +1,60 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteWafResponseFilterRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要操作的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 要删除的规则ID */ + @NotEmpty + @UCloudParam("ID") + private String id; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getID() { + return id; + } + + public void setID(String id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafResponseFilterResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafResponseFilterResponse.java new file mode 100644 index 00000000..a4aeb3f8 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DeleteWafResponseFilterResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteWafResponseFilterResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAntiCCRulesRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAntiCCRulesRequest.java new file mode 100644 index 00000000..c5d43d75 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAntiCCRulesRequest.java @@ -0,0 +1,47 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeAntiCCRulesRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要查询防护规则的域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAntiCCRulesResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAntiCCRulesResponse.java new file mode 100644 index 00000000..d54b3ea2 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAntiCCRulesResponse.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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeAntiCCRulesResponse extends Response { + + /** CC规则,参考AntiCcRes */ + @SerializedName("Res") + private AntiCcRes res; + + public AntiCcRes getRes() { + return res; + } + + public void setRes(AntiCcRes res) { + this.res = res; + } + + public static class AntiCcRes extends Response { + + /** 指定域名的CC防护状态 */ + @SerializedName("State") + private String state; + + /** 指定域名的CC防护模式 */ + @SerializedName("Mode") + private String mode; + + /** CC规则最大容量 */ + @SerializedName("Max") + private Integer max; + + /** CC规则列表,参考AntiCcRule */ + @SerializedName("Rules") + private List rules; + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public Integer getMax() { + return max; + } + + public void setMax(Integer max) { + this.max = max; + } + + public List getRules() { + return rules; + } + + public void setRules(List rules) { + this.rules = rules; + } + } + + public static class AntiCcRule extends Response { + + /** 规则ID */ + @SerializedName("Id") + private Integer id; + + /** URI */ + @SerializedName("Uri") + private String uri; + + /** 模式 */ + @SerializedName("Mode") + private String mode; + + /** 统计时长. 单位:秒 */ + @SerializedName("Duration") + private Integer duration; + + /** 请求次数 */ + @SerializedName("Reqs") + private Integer reqs; + + /** 执行动作 */ + @SerializedName("Action") + private String action; + + /** 动作有效期,单位:分钟 */ + @SerializedName("Validity") + private Integer validity; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public Integer getDuration() { + return duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + } + + public Integer getReqs() { + return reqs; + } + + public void setReqs(Integer reqs) { + this.reqs = reqs; + } + + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public Integer getValidity() { + return validity; + } + + public void setValidity(Integer validity) { + this.validity = validity; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAssurancePagesRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAssurancePagesRequest.java new file mode 100644 index 00000000..dadf7b50 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAssurancePagesRequest.java @@ -0,0 +1,50 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeAssurancePagesRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要获取的域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAssurancePagesResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAssurancePagesResponse.java new file mode 100644 index 00000000..b465d315 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAssurancePagesResponse.java @@ -0,0 +1,137 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeAssurancePagesResponse extends Response { + + /** 防篡改信息,参考AssurancePages */ + @SerializedName("Res") + private AssurancePages res; + + public AssurancePages getRes() { + return res; + } + + public void setRes(AssurancePages res) { + this.res = res; + } + + public static class AssuracePagesDetail extends Response { + + /** 反篡改规则ID */ + @SerializedName("Id") + private Integer id; + + /** 防篡改页面url */ + @SerializedName("Url") + private String url; + + /** 防护状态 */ + @SerializedName("State") + private String state; + + /** 备注信息 */ + @SerializedName("Remark") + private String remark; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + } + + public static class AssurancePages extends Response { + + /** 防篡改全局状态 */ + @SerializedName("State") + private String state; + + /** 防篡改配置总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 防篡改规则配额 */ + @SerializedName("Limit") + private Integer limit; + + /** 防篡改规则列表,参考AssuracePagesDetail */ + @SerializedName("Items") + private List items; + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAutoWafDomainBlackListRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAutoWafDomainBlackListRequest.java new file mode 100644 index 00000000..af9d4f2b --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAutoWafDomainBlackListRequest.java @@ -0,0 +1,50 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeAutoWafDomainBlackListRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAutoWafDomainBlackListResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAutoWafDomainBlackListResponse.java new file mode 100644 index 00000000..4816c6f0 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeAutoWafDomainBlackListResponse.java @@ -0,0 +1,158 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeAutoWafDomainBlackListResponse extends Response { + + /** 自动拦截策略列表,参考AutoWafDomainBlackList */ + @SerializedName("Rows") + private List rows; + + /** 自动拦截策略数量 */ + @SerializedName("TotalCount") + private Integer totalCount; + + public List getRows() { + return rows; + } + + public void setRows(List rows) { + this.rows = rows; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public static class AutoWafDomainBlackList extends Response { + + /** 规则ID */ + @SerializedName("Id") + private Integer id; + + /** 规则所属域名 */ + @SerializedName("FullDomain") + private String fullDomain; + + /** 攻击类型 */ + @SerializedName("AttackType") + private String attackType; + + /** 防御模式 */ + @SerializedName("ActionType") + private String actionType; + + /** 攻击数量 */ + @SerializedName("AttackCount") + private Integer attackCount; + + /** 攻击统计区间,单位:秒 */ + @SerializedName("IntervalTime") + private Integer intervalTime; + + /** 攻击过期区间,单位:秒 */ + @SerializedName("ExpireTime") + private Integer expireTime; + + /** 启用状态;1表示启用,0表示禁用 */ + @SerializedName("Enable") + private Integer enable; + + /** 创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getAttackType() { + return attackType; + } + + public void setAttackType(String attackType) { + this.attackType = attackType; + } + + public String getActionType() { + return actionType; + } + + public void setActionType(String actionType) { + this.actionType = actionType; + } + + public Integer getAttackCount() { + return attackCount; + } + + public void setAttackCount(Integer attackCount) { + this.attackCount = attackCount; + } + + public Integer getIntervalTime() { + return intervalTime; + } + + public void setIntervalTime(Integer intervalTime) { + this.intervalTime = intervalTime; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getEnable() { + return enable; + } + + public void setEnable(Integer enable) { + this.enable = enable; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafAttackDetailListInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafAttackDetailListInfoRequest.java new file mode 100644 index 00000000..1afccee6 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafAttackDetailListInfoRequest.java @@ -0,0 +1,147 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeWafAttackDetailListInfoRequest extends Request { + + /** 项目ID,不填表示默认项目 */ + @UCloudParam("ProjectId") + private String projectId; + + /** 页面偏移 */ + @NotEmpty + @UCloudParam("Offset") + private Integer offset; + + /** 每页数量限制 */ + @NotEmpty + @UCloudParam("Limit") + private Integer limit; + + /** 时间单位;可选项:Hour|Day|Week|Month|Custom;默认Hour */ + @UCloudParam("TimeType") + private String timeType; + + /** + * 攻击类型["scan", "loopholes", "xss", "cc", "sql", "exec", "webshell", "infoleak", "eaa", + * "protocol", "other"] + */ + @UCloudParam("AttackType") + private String attackType; + + /** 风险级别 */ + @UCloudParam("RiskRank") + private String riskRank; + + /** 匹配动作,拦截、放行、告警 */ + @UCloudParam("ActionType") + private String actionType; + + /** 自定义开始时间戳 */ + @UCloudParam("BeginTime") + private Integer beginTime; + + /** 自定义结束时间戳 */ + @UCloudParam("EndTime") + private Integer endTime; + + /** 要查询的域名,为空时查询所有 */ + @UCloudParam("FullDomain") + private String fullDomain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + 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; + } + + public String getTimeType() { + return timeType; + } + + public void setTimeType(String timeType) { + this.timeType = timeType; + } + + public String getAttackType() { + return attackType; + } + + public void setAttackType(String attackType) { + this.attackType = attackType; + } + + public String getRiskRank() { + return riskRank; + } + + public void setRiskRank(String riskRank) { + this.riskRank = riskRank; + } + + public String getActionType() { + return actionType; + } + + public void setActionType(String actionType) { + this.actionType = actionType; + } + + public Integer getBeginTime() { + return beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafAttackDetailListInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafAttackDetailListInfoResponse.java new file mode 100644 index 00000000..0fb55d5b --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafAttackDetailListInfoResponse.java @@ -0,0 +1,317 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeWafAttackDetailListInfoResponse extends Response { + + /** 攻击详情列表,参考WafAttack */ + @SerializedName("DetailList") + private List detailList; + + /** 攻击详情总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + public List getDetailList() { + return detailList; + } + + public void setDetailList(List detailList) { + this.detailList = detailList; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public static class WafAlert extends Response { + + /** 规则描述 */ + @SerializedName("Description") + private String description; + + /** 匹配规则ID */ + @SerializedName("Id") + private Integer id; + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + } + + public static class WafAttack extends Response { + + /** 区域 */ + @SerializedName("Region") + private String region; + + /** 协议 */ + @SerializedName("Protocol") + private String protocol; + + /** 服务器名称 */ + @SerializedName("ServerName") + private String serverName; + + /** 目标IP地址 */ + @SerializedName("DestIp") + private String destIp; + + /** 端口 */ + @SerializedName("Port") + private String port; + + /** 告警匹配信息,参考WafAlert */ + @SerializedName("Alerts") + private List alerts; + + /** 攻击类型 */ + @SerializedName("Attack") + private String attack; + + /** 请求方法 */ + @SerializedName("Method") + private String method; + + /** 是否误报 */ + @SerializedName("FalsePositive") + private Boolean falsePositive; + + /** 风险等级 */ + @SerializedName("RiskRank") + private String riskRank; + + /** 攻击时间戳 */ + @SerializedName("TimeStamp") + private Integer timeStamp; + + /** 主机名 */ + @SerializedName("Host") + private String host; + + /** 引用地址 */ + @SerializedName("Referer") + private String referer; + + /** 攻击次数 */ + @SerializedName("Count") + private Integer count; + + /** URI */ + @SerializedName("Uri") + private String uri; + + /** 客户端 */ + @SerializedName("Client") + private String client; + + /** 工作模式 */ + @SerializedName("Mode") + private String mode; + + /** 匹配动作 */ + @SerializedName("Action") + private String action; + + /** 用户代理 */ + @SerializedName("UA") + private String ua; + + /** 参数 */ + @SerializedName("Args") + private String args; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getServerName() { + return serverName; + } + + public void setServerName(String serverName) { + this.serverName = serverName; + } + + public String getDestIp() { + return destIp; + } + + public void setDestIp(String destIp) { + this.destIp = destIp; + } + + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port; + } + + public List getAlerts() { + return alerts; + } + + public void setAlerts(List alerts) { + this.alerts = alerts; + } + + public String getAttack() { + return attack; + } + + public void setAttack(String attack) { + this.attack = attack; + } + + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + public Boolean getFalsePositive() { + return falsePositive; + } + + public void setFalsePositive(Boolean falsePositive) { + this.falsePositive = falsePositive; + } + + public String getRiskRank() { + return riskRank; + } + + public void setRiskRank(String riskRank) { + this.riskRank = riskRank; + } + + public Integer getTimeStamp() { + return timeStamp; + } + + public void setTimeStamp(Integer timeStamp) { + this.timeStamp = timeStamp; + } + + public String getHost() { + return host; + } + + public void setHost(String host) { + this.host = host; + } + + public String getReferer() { + return referer; + } + + public void setReferer(String referer) { + this.referer = referer; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public String getClient() { + return client; + } + + public void setClient(String client) { + this.client = client; + } + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public String getUA() { + return ua; + } + + public void setUA(String ua) { + this.ua = ua; + } + + public String getArgs() { + return args; + } + + public void setArgs(String args) { + this.args = args; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafAttackFalseAlarmListInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafAttackFalseAlarmListInfoRequest.java new file mode 100644 index 00000000..3a0705ed --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafAttackFalseAlarmListInfoRequest.java @@ -0,0 +1,75 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeWafAttackFalseAlarmListInfoRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 记录 偏移,等效于PageNum */ + @NotEmpty + @UCloudParam("Offset") + private Integer offset; + + /** 记录限制数目,等效于PageSize */ + @NotEmpty + @UCloudParam("Limit") + private Integer limit; + + /** 要查询的域名,优先级比Domain高 */ + @UCloudParam("FullDomain") + private String fullDomain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + 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; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafAttackFalseAlarmListInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafAttackFalseAlarmListInfoResponse.java new file mode 100644 index 00000000..543f79d5 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafAttackFalseAlarmListInfoResponse.java @@ -0,0 +1,317 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeWafAttackFalseAlarmListInfoResponse extends Response { + + /** 误报记录总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 误报记录列表,参考WafAttack */ + @SerializedName("DetailList") + private List detailList; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getDetailList() { + return detailList; + } + + public void setDetailList(List detailList) { + this.detailList = detailList; + } + + public static class WafAlert extends Response { + + /** 规则描述 */ + @SerializedName("Description") + private String description; + + /** 匹配规则ID */ + @SerializedName("Id") + private Integer id; + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + } + + public static class WafAttack extends Response { + + /** 区域 */ + @SerializedName("Region") + private String region; + + /** 协议 */ + @SerializedName("Protocol") + private String protocol; + + /** 服务器名称 */ + @SerializedName("ServerName") + private String serverName; + + /** 目标IP地址 */ + @SerializedName("DestIp") + private String destIp; + + /** 端口 */ + @SerializedName("Port") + private String port; + + /** 告警匹配信息,参考WafAlert */ + @SerializedName("Alerts") + private List alerts; + + /** 攻击类型 */ + @SerializedName("Attack") + private String attack; + + /** 请求方法 */ + @SerializedName("Method") + private String method; + + /** 是否误报 */ + @SerializedName("FalsePositive") + private Boolean falsePositive; + + /** 风险等级 */ + @SerializedName("RiskRank") + private String riskRank; + + /** 攻击时间戳 */ + @SerializedName("TimeStamp") + private Integer timeStamp; + + /** 主机名 */ + @SerializedName("Host") + private String host; + + /** 引用地址 */ + @SerializedName("Referer") + private String referer; + + /** 攻击次数 */ + @SerializedName("Count") + private Integer count; + + /** URI */ + @SerializedName("Uri") + private String uri; + + /** 客户端 */ + @SerializedName("Client") + private String client; + + /** 工作模式 */ + @SerializedName("Mode") + private String mode; + + /** 匹配动作 */ + @SerializedName("Action") + private String action; + + /** 用户代理 */ + @SerializedName("UA") + private String ua; + + /** 参数 */ + @SerializedName("Args") + private String args; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getServerName() { + return serverName; + } + + public void setServerName(String serverName) { + this.serverName = serverName; + } + + public String getDestIp() { + return destIp; + } + + public void setDestIp(String destIp) { + this.destIp = destIp; + } + + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port; + } + + public List getAlerts() { + return alerts; + } + + public void setAlerts(List alerts) { + this.alerts = alerts; + } + + public String getAttack() { + return attack; + } + + public void setAttack(String attack) { + this.attack = attack; + } + + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + public Boolean getFalsePositive() { + return falsePositive; + } + + public void setFalsePositive(Boolean falsePositive) { + this.falsePositive = falsePositive; + } + + public String getRiskRank() { + return riskRank; + } + + public void setRiskRank(String riskRank) { + this.riskRank = riskRank; + } + + public Integer getTimeStamp() { + return timeStamp; + } + + public void setTimeStamp(Integer timeStamp) { + this.timeStamp = timeStamp; + } + + public String getHost() { + return host; + } + + public void setHost(String host) { + this.host = host; + } + + public String getReferer() { + return referer; + } + + public void setReferer(String referer) { + this.referer = referer; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public String getClient() { + return client; + } + + public void setClient(String client) { + this.client = client; + } + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public String getUA() { + return ua; + } + + public void setUA(String ua) { + this.ua = ua; + } + + public String getArgs() { + return args; + } + + public void setArgs(String args) { + this.args = args; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainBlackListRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainBlackListRequest.java new file mode 100644 index 00000000..f18d9f90 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainBlackListRequest.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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeWafDomainBlackListRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要查询的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 每页数量限制(等效page size) */ + @NotEmpty + @UCloudParam("Limit") + private Integer limit; + + /** 页面偏移(等效page number) */ + @NotEmpty + @UCloudParam("Offset") + private Integer offset; + + /** 想要查找的IP、网段或者IP段,传递数组(CIDRS) */ + @UCloudParam("Filter") + private String filter; + + /** 排序参数,支持"ExpireTime", "-ExpireTime", "CreateTime", "-CreateTime" */ + @UCloudParam("Sort") + private String sort; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + 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; + } + + public String getFilter() { + return filter; + } + + public void setFilter(String filter) { + this.filter = filter; + } + + public String getSort() { + return sort; + } + + public void setSort(String sort) { + this.sort = sort; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainBlackListResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainBlackListResponse.java new file mode 100644 index 00000000..689f8e94 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainBlackListResponse.java @@ -0,0 +1,197 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeWafDomainBlackListResponse extends Response { + + /** 黑名单返回结果,参考BWInfoRes */ + @SerializedName("Res") + private BWInfoRes res; + + public BWInfoRes getRes() { + return res; + } + + public void setRes(BWInfoRes res) { + this.res = res; + } + + public static class BWInfo extends Response { + + /** 黑名单/白名单规则ID */ + @SerializedName("ID") + private Integer id; + + /** 类型 */ + @SerializedName("Type") + private String type; + + /** 加入方式(黑) */ + @SerializedName("Source") + private String source; + + /** IP列表 */ + @SerializedName("CIDRS") + private List cidrs; + + /** 加入时间 */ + @SerializedName("CreateTime") + private String createTime; + + /** 过期时间 */ + @SerializedName("ExpireTime") + private Integer expireTime; + + /** 状态 */ + @SerializedName("State") + private Integer state; + + /** 加入方式(白) */ + @SerializedName("SRC") + private String src; + + /** 规则名称 */ + @SerializedName("Name") + private String name; + + /** 备注信息 */ + @SerializedName("Remark") + private String remark; + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public List getCIDRS() { + return cidrs; + } + + public void setCIDRS(List cidrs) { + this.cidrs = cidrs; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getState() { + return state; + } + + public void setState(Integer state) { + this.state = state; + } + + public String getSRC() { + return src; + } + + public void setSRC(String src) { + this.src = src; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + } + + public static class BWInfoRes extends Response { + + /** 总数 */ + @SerializedName("Total") + private Integer total; + + /** 返回数量 */ + @SerializedName("Count") + private Integer count; + + /** 详情列表,参考BWInfo */ + @SerializedName("Info") + private List info; + + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public List getInfo() { + return info; + } + + public void setInfo(List info) { + this.info = info; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainCertificateInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainCertificateInfoRequest.java new file mode 100644 index 00000000..c65538bd --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainCertificateInfoRequest.java @@ -0,0 +1,48 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeWafDomainCertificateInfoRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要查询域名,为空时查找所有 */ + @UCloudParam("Domain") + private String domain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainCertificateInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainCertificateInfoResponse.java new file mode 100644 index 00000000..6d9577da --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainCertificateInfoResponse.java @@ -0,0 +1,110 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeWafDomainCertificateInfoResponse extends Response { + + /** 证书数量 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 证书详情列表,参考DoaminCertificateInfo */ + @SerializedName("CertificateInfo") + private List certificateInfo; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getCertificateInfo() { + return certificateInfo; + } + + public void setCertificateInfo(List certificateInfo) { + this.certificateInfo = certificateInfo; + } + + public static class DoaminCertificateInfo extends Response { + + /** 证书ID */ + @SerializedName("CertificateID") + private Integer certificateID; + + /** 证书名称 */ + @SerializedName("CertificateName") + private String certificateName; + + /** 证书一级域名 */ + @SerializedName("Domain") + private String domain; + + /** 证书入库时间,utc时间格式,如:2020-02-06T18:46:17+08:00 */ + @SerializedName("UploadTime") + private String uploadTime; + + /** 过期时间 */ + @SerializedName("ExpireTime") + private String expireTime; + + public Integer getCertificateID() { + return certificateID; + } + + public void setCertificateID(Integer certificateID) { + this.certificateID = certificateID; + } + + public String getCertificateName() { + return certificateName; + } + + public void setCertificateName(String certificateName) { + this.certificateName = certificateName; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public String getUploadTime() { + return uploadTime; + } + + public void setUploadTime(String uploadTime) { + this.uploadTime = uploadTime; + } + + public String getExpireTime() { + return expireTime; + } + + public void setExpireTime(String expireTime) { + this.expireTime = expireTime; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainHostInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainHostInfoRequest.java new file mode 100644 index 00000000..04321a14 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainHostInfoRequest.java @@ -0,0 +1,75 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeWafDomainHostInfoRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 每页数量限制(等效page size) */ + @NotEmpty + @UCloudParam("Limit") + private Integer limit; + + /** 页面偏移(等效page number) */ + @NotEmpty + @UCloudParam("Offset") + private Integer offset; + + /** 域名,用于查询单一域名 */ + @UCloudParam("FullDomain") + private String fullDomain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + 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; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainHostInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainHostInfoResponse.java new file mode 100644 index 00000000..b258492f --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainHostInfoResponse.java @@ -0,0 +1,404 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeWafDomainHostInfoResponse extends Response { + + /** 域名总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 域名信息列表,参考HostStatausInfo */ + @SerializedName("DomainHostList") + private List domainHostList; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getDomainHostList() { + return domainHostList; + } + + public void setDomainHostList(List domainHostList) { + this.domainHostList = domainHostList; + } + + public static class DomainStatus extends Response { + + /** 部署区域 */ + @SerializedName("Region") + private String region; + + /** 协议 */ + @SerializedName("Scheme") + private String scheme; + + /** 状态信息 */ + @SerializedName("Status") + private String status; + + /** 原始状态信息 */ + @SerializedName("RawStatus") + private String rawStatus; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getScheme() { + return scheme; + } + + public void setScheme(String scheme) { + this.scheme = scheme; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getRawStatus() { + return rawStatus; + } + + public void setRawStatus(String rawStatus) { + this.rawStatus = rawStatus; + } + } + + public static class HostStatausInfo extends Response { + + /** 域名 */ + @SerializedName("FullDomain") + private String fullDomain; + + /** 工作模式 */ + @SerializedName("WorkMode") + private String workMode; + + /** 域名记录ID */ + @SerializedName("RecordId") + private Integer recordId; + + /** 证书ID */ + @SerializedName("CertificateID") + private Integer certificateID; + + /** CNAME记录值 */ + @SerializedName("Cname") + private String cname; + + /** 部署区域 */ + @SerializedName("WorkRegions") + private String workRegions; + + /** 是否开启CC防护 */ + @SerializedName("AntiCC") + private String antiCC; + + /** 是否开启网页防篡改 */ + @SerializedName("Assurance") + private String assurance; + + /** 创建时间戳 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 源站IP地址信息,参考SrcIPInfo */ + @SerializedName("SrcIPInfo") + private List srcIPInfo; + + /** http是否重定向 */ + @SerializedName("HTTPRedirection") + private String httpRedirection; + + /** 是否开启HTTPS offload, YES - 是 */ + @SerializedName("HTTPBack") + private String httpBack; + + /** http状态描述,WAF主动探测结果 */ + @SerializedName("HttpStatus") + private String httpStatus; + + /** http异常信息,WAF主动探测结果 */ + @SerializedName("HttpException") + private String httpException; + + /** https状态,WAF主动探测结果 */ + @SerializedName("HttpsStatus") + private String httpsStatus; + + /** https异常描述,WAF主动探测结果 */ + @SerializedName("HttpsException") + private String httpsException; + + /** 是否独享IP地址 */ + @SerializedName("UniqueIP") + private String uniqueIP; + + /** 真实IP头部 */ + @SerializedName("RealIPHeader") + private String realIPHeader; + + /** 攻击次数 */ + @SerializedName("AttackCount") + private Integer attackCount; + + /** WAF探测域名状态信息,参考DomainStatus,ULB版本无效 */ + @SerializedName("DomainStatus") + private List domainStatus; + + /** 域名有效性,ULB版本有效,其他版本无效,为1时表示域名正常接入,为0 时表示域名已从ULB删除,WAF仅保留历史记录 */ + @SerializedName("Status") + private Integer status; + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getWorkMode() { + return workMode; + } + + public void setWorkMode(String workMode) { + this.workMode = workMode; + } + + public Integer getRecordId() { + return recordId; + } + + public void setRecordId(Integer recordId) { + this.recordId = recordId; + } + + public Integer getCertificateID() { + return certificateID; + } + + public void setCertificateID(Integer certificateID) { + this.certificateID = certificateID; + } + + public String getCname() { + return cname; + } + + public void setCname(String cname) { + this.cname = cname; + } + + public String getWorkRegions() { + return workRegions; + } + + public void setWorkRegions(String workRegions) { + this.workRegions = workRegions; + } + + public String getAntiCC() { + return antiCC; + } + + public void setAntiCC(String antiCC) { + this.antiCC = antiCC; + } + + public String getAssurance() { + return assurance; + } + + public void setAssurance(String assurance) { + this.assurance = assurance; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public List getSrcIPInfo() { + return srcIPInfo; + } + + public void setSrcIPInfo(List srcIPInfo) { + this.srcIPInfo = srcIPInfo; + } + + public String getHTTPRedirection() { + return httpRedirection; + } + + public void setHTTPRedirection(String httpRedirection) { + this.httpRedirection = httpRedirection; + } + + public String getHTTPBack() { + return httpBack; + } + + public void setHTTPBack(String httpBack) { + this.httpBack = httpBack; + } + + public String getHttpStatus() { + return httpStatus; + } + + public void setHttpStatus(String httpStatus) { + this.httpStatus = httpStatus; + } + + public String getHttpException() { + return httpException; + } + + public void setHttpException(String httpException) { + this.httpException = httpException; + } + + public String getHttpsStatus() { + return httpsStatus; + } + + public void setHttpsStatus(String httpsStatus) { + this.httpsStatus = httpsStatus; + } + + public String getHttpsException() { + return httpsException; + } + + public void setHttpsException(String httpsException) { + this.httpsException = httpsException; + } + + public String getUniqueIP() { + return uniqueIP; + } + + public void setUniqueIP(String uniqueIP) { + this.uniqueIP = uniqueIP; + } + + public String getRealIPHeader() { + return realIPHeader; + } + + public void setRealIPHeader(String realIPHeader) { + this.realIPHeader = realIPHeader; + } + + public Integer getAttackCount() { + return attackCount; + } + + public void setAttackCount(Integer attackCount) { + this.attackCount = attackCount; + } + + public List getDomainStatus() { + return domainStatus; + } + + public void setDomainStatus(List domainStatus) { + this.domainStatus = domainStatus; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + } + + public static class SrcIPInfo extends Response { + + /** 协议 */ + @SerializedName("Proto") + private String proto; + + /** 源IP地址 */ + @SerializedName("SrcIP") + private String srcIP; + + /** 源端口 */ + @SerializedName("Port") + private List port; + + /** URI */ + @SerializedName("URI") + private String uri; + + public String getProto() { + return proto; + } + + public void setProto(String proto) { + this.proto = proto; + } + + public String getSrcIP() { + return srcIP; + } + + public void setSrcIP(String srcIP) { + this.srcIP = srcIP; + } + + public List getPort() { + return port; + } + + public void setPort(List port) { + this.port = port; + } + + public String getURI() { + return uri; + } + + public void setURI(String uri) { + this.uri = uri; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainWhiteListRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainWhiteListRequest.java new file mode 100644 index 00000000..4992db08 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainWhiteListRequest.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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeWafDomainWhiteListRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要获取的白名单的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 每个请求限制返回数量,等效于page size */ + @NotEmpty + @UCloudParam("Limit") + private Integer limit; + + /** 偏移,等效于 page number */ + @NotEmpty + @UCloudParam("Offset") + private Integer offset; + + /** 想要查找的IP、网段或者IP段,传递数组(CIDRS) */ + @UCloudParam("Filter") + private String filter; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + 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; + } + + public String getFilter() { + return filter; + } + + public void setFilter(String filter) { + this.filter = filter; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainWhiteListResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainWhiteListResponse.java new file mode 100644 index 00000000..eabe0594 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafDomainWhiteListResponse.java @@ -0,0 +1,197 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeWafDomainWhiteListResponse extends Response { + + /** 白名单返回结果,参考BWInfoRes */ + @SerializedName("Res") + private BWInfoRes res; + + public BWInfoRes getRes() { + return res; + } + + public void setRes(BWInfoRes res) { + this.res = res; + } + + public static class BWInfo extends Response { + + /** 黑名单/白名单规则ID */ + @SerializedName("ID") + private Integer id; + + /** 类型 */ + @SerializedName("Type") + private String type; + + /** 加入方式(黑) */ + @SerializedName("Source") + private String source; + + /** IP列表 */ + @SerializedName("CIDRS") + private List cidrs; + + /** 加入时间 */ + @SerializedName("CreateTime") + private String createTime; + + /** 过期时间 */ + @SerializedName("ExpireTime") + private Integer expireTime; + + /** 状态 */ + @SerializedName("State") + private Integer state; + + /** 加入方式(白) */ + @SerializedName("SRC") + private String src; + + /** 规则名称 */ + @SerializedName("Name") + private String name; + + /** 备注信息 */ + @SerializedName("Remark") + private String remark; + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public List getCIDRS() { + return cidrs; + } + + public void setCIDRS(List cidrs) { + this.cidrs = cidrs; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getState() { + return state; + } + + public void setState(Integer state) { + this.state = state; + } + + public String getSRC() { + return src; + } + + public void setSRC(String src) { + this.src = src; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + } + + public static class BWInfoRes extends Response { + + /** 总数 */ + @SerializedName("Total") + private Integer total; + + /** 返回数量 */ + @SerializedName("Count") + private Integer count; + + /** 详情列表,参考BWInfo */ + @SerializedName("Info") + private List info; + + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public List getInfo() { + return info; + } + + public void setInfo(List info) { + this.info = info; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafProtectionSummaryInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafProtectionSummaryInfoRequest.java new file mode 100644 index 00000000..8a7b33f7 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafProtectionSummaryInfoRequest.java @@ -0,0 +1,47 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeWafProtectionSummaryInfoRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要查询的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafProtectionSummaryInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafProtectionSummaryInfoResponse.java new file mode 100644 index 00000000..523bc777 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafProtectionSummaryInfoResponse.java @@ -0,0 +1,245 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeWafProtectionSummaryInfoResponse extends Response { + + /** 规则数量 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 工作模式 */ + @SerializedName("WorkMode") + private String workMode; + + /** 规则集列表,参考ProtectionSummaryRuleSetEntry */ + @SerializedName("RuleSetList") + private List ruleSetList; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public String getWorkMode() { + return workMode; + } + + public void setWorkMode(String workMode) { + this.workMode = workMode; + } + + public List getRuleSetList() { + return ruleSetList; + } + + public void setRuleSetList(List ruleSetList) { + this.ruleSetList = ruleSetList; + } + + public static class ProtectionSummaryRuleInfo extends Response { + + /** 匹配字段 */ + @SerializedName("Field") + private String field; + + /** 行为动作 */ + @SerializedName("Operator") + private String operator; + + /** 匹配内容 */ + @SerializedName("Content") + private String content; + + /** 规则ID */ + @SerializedName("RuleId") + private Integer ruleId; + + /** 规则描述 */ + @SerializedName("Description") + private String description; + + public String getField() { + return field; + } + + public void setField(String field) { + this.field = field; + } + + public String getOperator() { + return operator; + } + + public void setOperator(String operator) { + this.operator = operator; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public Integer getRuleId() { + return ruleId; + } + + public void setRuleId(Integer ruleId) { + this.ruleId = ruleId; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + } + + public static class ProtectionSummaryRuleSetEntry extends Response { + + /** 规则名称 */ + @SerializedName("RuleName") + private String ruleName; + + /** 规则动作 */ + @SerializedName("RuleAction") + private String ruleAction; + + /** 优先级 */ + @SerializedName("Priority") + private Integer priority; + + /** 风险等级 */ + @SerializedName("RiskRank") + private String riskRank; + + /** 风险类型 */ + @SerializedName("RiskType") + private String riskType; + + /** 规则集ID */ + @SerializedName("RuleSetID") + private Integer ruleSetID; + + /** 规则集类型 */ + @SerializedName("RuleSetType") + private String ruleSetType; + + /** 规则集起始ID */ + @SerializedName("SysRuleset") + private Integer sysRuleset; + + /** 规则描述 */ + @SerializedName("RuleDescription") + private String ruleDescription; + + /** 规则详情,参考ProtectionSummaryRuleInfo */ + @SerializedName("RuleList") + private List ruleList; + + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public String getRuleAction() { + return ruleAction; + } + + public void setRuleAction(String ruleAction) { + this.ruleAction = ruleAction; + } + + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public String getRiskRank() { + return riskRank; + } + + public void setRiskRank(String riskRank) { + this.riskRank = riskRank; + } + + public String getRiskType() { + return riskType; + } + + public void setRiskType(String riskType) { + this.riskType = riskType; + } + + public Integer getRuleSetID() { + return ruleSetID; + } + + public void setRuleSetID(Integer ruleSetID) { + this.ruleSetID = ruleSetID; + } + + public String getRuleSetType() { + return ruleSetType; + } + + public void setRuleSetType(String ruleSetType) { + this.ruleSetType = ruleSetType; + } + + public Integer getSysRuleset() { + return sysRuleset; + } + + public void setSysRuleset(Integer sysRuleset) { + this.sysRuleset = sysRuleset; + } + + public String getRuleDescription() { + return ruleDescription; + } + + public void setRuleDescription(String ruleDescription) { + this.ruleDescription = ruleDescription; + } + + public List getRuleList() { + return ruleList; + } + + public void setRuleList(List ruleList) { + this.ruleList = ruleList; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafResponseFilterRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafResponseFilterRequest.java new file mode 100644 index 00000000..87a7c3e1 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafResponseFilterRequest.java @@ -0,0 +1,47 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeWafResponseFilterRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要查询的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafResponseFilterResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafResponseFilterResponse.java new file mode 100644 index 00000000..a312027d --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafResponseFilterResponse.java @@ -0,0 +1,110 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeWafResponseFilterResponse extends Response { + + /** 信息安全过滤规则列表,参考HttpReponseFilter */ + @SerializedName("Data") + private List data; + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class HttpReponseFilter extends Response { + + /** 规则ID */ + @SerializedName("ID") + private Integer id; + + /** 规则名称 */ + @SerializedName("Name") + private String name; + + /** 防护类型;可选项:Status(状态码),Sensitive(敏感内容),Customize(自定义字符串) */ + @SerializedName("Type") + private String type; + + /** 过滤内容 */ + @SerializedName("Content") + private String content; + + /** 丢弃响应或伪装内容 */ + @SerializedName("RuleAction") + private String ruleAction; + + /** 伪装响应内容 */ + @SerializedName("DisguiseFile") + private String disguiseFile; + + 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 getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public String getRuleAction() { + return ruleAction; + } + + public void setRuleAction(String ruleAction) { + this.ruleAction = ruleAction; + } + + public String getDisguiseFile() { + return disguiseFile; + } + + public void setDisguiseFile(String disguiseFile) { + this.disguiseFile = disguiseFile; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafSystemRulesRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafSystemRulesRequest.java new file mode 100644 index 00000000..65fe84af --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafSystemRulesRequest.java @@ -0,0 +1,47 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeWafSystemRulesRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要查询的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafSystemRulesResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafSystemRulesResponse.java new file mode 100644 index 00000000..df13bd08 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafSystemRulesResponse.java @@ -0,0 +1,122 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeWafSystemRulesResponse extends Response { + + /** 规则内容列表,参考SystemRuleInfo */ + @SerializedName("Rules") + private List rules; + + public List getRules() { + return rules; + } + + public void setRules(List rules) { + this.rules = rules; + } + + public static class SystemRuleInfo extends Response { + + /** 规则起始编号 */ + @SerializedName("SysRuleset") + private Integer sysRuleset; + + /** 动作 */ + @SerializedName("Action") + private String action; + + /** 风险等级 */ + @SerializedName("RiskRank") + private String riskRank; + + /** 规则集类型 */ + @SerializedName("RulesetType") + private String rulesetType; + + /** 优先级 */ + @SerializedName("Priority") + private Integer priority; + + /** 攻击类型 */ + @SerializedName("AttackType") + private String attackType; + + /** 规则描述 */ + @SerializedName("Description") + private String description; + + public Integer getSysRuleset() { + return sysRuleset; + } + + public void setSysRuleset(Integer sysRuleset) { + this.sysRuleset = sysRuleset; + } + + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public String getRiskRank() { + return riskRank; + } + + public void setRiskRank(String riskRank) { + this.riskRank = riskRank; + } + + public String getRulesetType() { + return rulesetType; + } + + public void setRulesetType(String rulesetType) { + this.rulesetType = rulesetType; + } + + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public String getAttackType() { + return attackType; + } + + public void setAttackType(String attackType) { + this.attackType = attackType; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafUserTransactionInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafUserTransactionInfoRequest.java new file mode 100644 index 00000000..23ad4d26 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafUserTransactionInfoRequest.java @@ -0,0 +1,36 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeWafUserTransactionInfoRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafUserTransactionInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafUserTransactionInfoResponse.java new file mode 100644 index 00000000..24487f65 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DescribeWafUserTransactionInfoResponse.java @@ -0,0 +1,193 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DescribeWafUserTransactionInfoResponse extends Response { + + /** 用户购买服务的详细信息,参考TransactionInfo */ + @SerializedName("TransactionInfo") + private TransactionInfo transactionInfo; + + public TransactionInfo getTransactionInfo() { + return transactionInfo; + } + + public void setTransactionInfo(TransactionInfo transactionInfo) { + this.transactionInfo = transactionInfo; + } + + public static class TransactionInfo extends Response { + + /** 资源ID */ + @SerializedName("ResourceId") + private String resourceId; + + /** 版本类型 */ + @SerializedName("Editon") + private String editon; + + /** 服务到期时间 */ + @SerializedName("ExpireTime") + private String expireTime; + + /** 付费类型 */ + @SerializedName("ChargeType") + private String chargeType; + + /** 资源的唯一索引 */ + @SerializedName("TransactionId") + private Integer transactionId; + + /** 资源订单号 */ + @SerializedName("TransactionNo") + private String transactionNo; + + /** 是否购买了WAF */ + @SerializedName("HasWaf") + private Boolean hasWaf; + + /** 是否已过期,有此字段即为已过期 */ + @SerializedName("Expired") + private String expired; + + /** 主工作区 */ + @SerializedName("WorkZone") + private String workZone; + + /** 部署区域,WorkZone为ULB时,显示为ULB id(列表) */ + @SerializedName("WorkRegions") + private String workRegions; + + /** 服务是否生效中 */ + @SerializedName("Serving") + private String serving; + + /** WorkZone 为ULB时候,显示对应ULB上的域名列表 */ + @SerializedName("Servers") + private Object servers; + + /** 是否开启日志扩展包 */ + @SerializedName("LogStorage") + private Integer logStorage; + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getEditon() { + return editon; + } + + public void setEditon(String editon) { + this.editon = editon; + } + + public String getExpireTime() { + return expireTime; + } + + public void setExpireTime(String expireTime) { + this.expireTime = expireTime; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getTransactionId() { + return transactionId; + } + + public void setTransactionId(Integer transactionId) { + this.transactionId = transactionId; + } + + public String getTransactionNo() { + return transactionNo; + } + + public void setTransactionNo(String transactionNo) { + this.transactionNo = transactionNo; + } + + public Boolean getHasWaf() { + return hasWaf; + } + + public void setHasWaf(Boolean hasWaf) { + this.hasWaf = hasWaf; + } + + public String getExpired() { + return expired; + } + + public void setExpired(String expired) { + this.expired = expired; + } + + public String getWorkZone() { + return workZone; + } + + public void setWorkZone(String workZone) { + this.workZone = workZone; + } + + public String getWorkRegions() { + return workRegions; + } + + public void setWorkRegions(String workRegions) { + this.workRegions = workRegions; + } + + public String getServing() { + return serving; + } + + public void setServing(String serving) { + this.serving = serving; + } + + public Object getServers() { + return servers; + } + + public void setServers(Object servers) { + this.servers = servers; + } + + public Integer getLogStorage() { + return logStorage; + } + + public void setLogStorage(Integer logStorage) { + this.logStorage = logStorage; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DownloadWAFAccessLogRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DownloadWAFAccessLogRequest.java new file mode 100644 index 00000000..7a6761fa --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DownloadWAFAccessLogRequest.java @@ -0,0 +1,73 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DownloadWAFAccessLogRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要下载日志的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 日期,yyyy-mm-dd形式 */ + @NotEmpty + @UCloudParam("Date") + private String date; + + /** accessLog 访问日志,attackLog 攻击日志 */ + @NotEmpty + @UCloudParam("LogType") + private String logType; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public String getLogType() { + return logType; + } + + public void setLogType(String logType) { + this.logType = logType; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DownloadWAFAccessLogResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DownloadWAFAccessLogResponse.java new file mode 100644 index 00000000..532531ad --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/DownloadWAFAccessLogResponse.java @@ -0,0 +1,35 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DownloadWAFAccessLogResponse extends Response { + + /** 文件下载的URL 列表,每小时提供一个文件 */ + @SerializedName("URL") + private List url; + + public List getURL() { + return url; + } + + public void setURL(List url) { + this.url = url; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/GetWafRegionBlockRuleRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/GetWafRegionBlockRuleRequest.java new file mode 100644 index 00000000..2abf6eaf --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/GetWafRegionBlockRuleRequest.java @@ -0,0 +1,73 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetWafRegionBlockRuleRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 查询域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 分页查询偏移设置 */ + @NotEmpty + @UCloudParam("Offset") + private Integer offset; + + /** 单页数量限制 */ + @NotEmpty + @UCloudParam("Limit") + private Integer limit; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + 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-uewaf/src/main/java/cn/ucloud/uewaf/models/GetWafRegionBlockRuleResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/GetWafRegionBlockRuleResponse.java new file mode 100644 index 00000000..caf06466 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/GetWafRegionBlockRuleResponse.java @@ -0,0 +1,146 @@ +/** + * 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.uewaf.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetWafRegionBlockRuleResponse extends Response { + + /** 规则数量 */ + @SerializedName("Count") + private Integer count; + + /** 规则列表,参考RegionBlackInfo */ + @SerializedName("RuleList") + private List ruleList; + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public List getRuleList() { + return ruleList; + } + + public void setRuleList(List ruleList) { + this.ruleList = ruleList; + } + + public static class RegionBlackInfo extends Response { + + /** 规则ID */ + @SerializedName("ID") + private Integer id; + + /** 规则名称 */ + @SerializedName("Name") + private String name; + + /** 所属域名 */ + @SerializedName("FullDomain") + private String fullDomain; + + /** 执行动作 */ + @SerializedName("Action") + private String action; + + /** 生效区域 */ + @SerializedName("Regions") + private String regions; + + /** 规则描述 */ + @SerializedName("Description") + private String description; + + /** 用户ID */ + @SerializedName("TopOrganizationId") + private Integer topOrganizationId; + + /** 项目ID */ + @SerializedName("OrganizationId") + private Integer organizationId; + + 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 getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public String getRegions() { + return regions; + } + + public void setRegions(String regions) { + this.regions = regions; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getTopOrganizationId() { + return topOrganizationId; + } + + public void setTopOrganizationId(Integer topOrganizationId) { + this.topOrganizationId = topOrganizationId; + } + + public Integer getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(Integer organizationId) { + this.organizationId = organizationId; + } + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAntiCCRuleRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAntiCCRuleRequest.java new file mode 100644 index 00000000..74043db9 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAntiCCRuleRequest.java @@ -0,0 +1,138 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyAntiCCRuleRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要修改的规则ID */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + /** 统计时长内请求次数 */ + @NotEmpty + @UCloudParam("Reqs") + private Integer reqs; + + /** 请求的uri */ + @NotEmpty + @UCloudParam("URL") + private String url; + + /** URI匹配模式,equal:完全匹配;,contains:包含; */ + @NotEmpty + @UCloudParam("Mode") + private String mode; + + /** 统计时长,单位:秒 */ + @NotEmpty + @UCloudParam("Duration") + private Integer duration; + + /** 触发条件后执行的动作,forbidden:拦截请求; captcha:验证码;iptables:IP封堵 */ + @NotEmpty + @UCloudParam("ActionType") + private String actionType; + + /** 动作有效期,单位:分钟 */ + @NotEmpty + @UCloudParam("Validity") + private Integer validity; + + /** 添加CC防护规则的域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } + + public Integer getReqs() { + return reqs; + } + + public void setReqs(Integer reqs) { + this.reqs = reqs; + } + + public String getURL() { + return url; + } + + public void setURL(String url) { + this.url = url; + } + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public Integer getDuration() { + return duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + } + + public String getActionType() { + return actionType; + } + + public void setActionType(String actionType) { + this.actionType = actionType; + } + + public Integer getValidity() { + return validity; + } + + public void setValidity(Integer validity) { + this.validity = validity; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAntiCCRuleResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAntiCCRuleResponse.java new file mode 100644 index 00000000..0a72a6e8 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAntiCCRuleResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyAntiCCRuleResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAntiCCStateRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAntiCCStateRequest.java new file mode 100644 index 00000000..d1a1f800 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAntiCCStateRequest.java @@ -0,0 +1,73 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyAntiCCStateRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 添加防护规则的域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + /** CC防护功能开关,on:开启;off:关闭 */ + @NotEmpty + @UCloudParam("State") + private String state; + + /** CC防护模式,normal:正常;,urgent:紧急; */ + @NotEmpty + @UCloudParam("Mode") + private String mode; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAntiCCStateResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAntiCCStateResponse.java new file mode 100644 index 00000000..fe1975b1 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAntiCCStateResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyAntiCCStateResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAssurancePageRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAssurancePageRequest.java new file mode 100644 index 00000000..1ffd0ac7 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAssurancePageRequest.java @@ -0,0 +1,102 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyAssurancePageRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要编辑的防篡改记录ID */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + /** 防篡改的url */ + @NotEmpty + @UCloudParam("URL") + private String url; + + /** 防篡改业务名称 */ + @NotEmpty + @UCloudParam("Remark") + private String remark; + + /** 是否开启防护 */ + @NotEmpty + @UCloudParam("State") + private String state; + + /** 要添加防篡改规则的域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } + + public String getURL() { + return url; + } + + public void setURL(String url) { + this.url = url; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAssurancePageResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAssurancePageResponse.java new file mode 100644 index 00000000..1dd611da --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAssurancePageResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyAssurancePageResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAutoWafDomainBlackListRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAutoWafDomainBlackListRequest.java new file mode 100644 index 00000000..fcfccb02 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAutoWafDomainBlackListRequest.java @@ -0,0 +1,125 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyAutoWafDomainBlackListRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 需要修改的自动拦截规则ID */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + /** 防御的域名,只能选择已添加的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** + * 攻击种类,默认统计所有攻击种类,可选值:all|protocol|xss|sql|loopholes|exec|webshell|eaa|infoleak|scan|cc|other等 + */ + @UCloudParam("AttackType") + private String attackType; + + /** 检测到攻击后的动作, 默认为forbidden,支持captcha */ + @UCloudParam("ActionType") + private String actionType; + + /** 规则生效后, 添加黑名单的过期时间,单位分钟, 0 长期有效,默认60分钟 */ + @UCloudParam("ExpireTime") + private Integer expireTime; + + /** 攻击阈值,默认10个 */ + @UCloudParam("AttackCount") + private Integer attackCount; + + /** 攻击统计区间,单位秒,默认60秒 */ + @UCloudParam("Interval") + private Integer interval; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getAttackType() { + return attackType; + } + + public void setAttackType(String attackType) { + this.attackType = attackType; + } + + public String getActionType() { + return actionType; + } + + public void setActionType(String actionType) { + this.actionType = actionType; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getAttackCount() { + return attackCount; + } + + public void setAttackCount(Integer attackCount) { + this.attackCount = attackCount; + } + + public Integer getInterval() { + return interval; + } + + public void setInterval(Integer interval) { + this.interval = interval; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAutoWafDomainBlackListResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAutoWafDomainBlackListResponse.java new file mode 100644 index 00000000..dee06ed4 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyAutoWafDomainBlackListResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyAutoWafDomainBlackListResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyGlobalAssuranceStateRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyGlobalAssuranceStateRequest.java new file mode 100644 index 00000000..3413a76c --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyGlobalAssuranceStateRequest.java @@ -0,0 +1,63 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyGlobalAssuranceStateRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 网页防篡改全局开关状态,on:开,off:关 */ + @NotEmpty + @UCloudParam("State") + private String state; + + /** 要操作的域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyGlobalAssuranceStateResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyGlobalAssuranceStateResponse.java new file mode 100644 index 00000000..40345160 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyGlobalAssuranceStateResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyGlobalAssuranceStateResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafAttackFalseAlarmStatusRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafAttackFalseAlarmStatusRequest.java new file mode 100644 index 00000000..98d261aa --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafAttackFalseAlarmStatusRequest.java @@ -0,0 +1,73 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyWafAttackFalseAlarmStatusRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 枚举值,SetFalseAlarm:标记误报,UnsetFalseAlarm:取消误报 */ + @NotEmpty + @UCloudParam("SetStatus") + private String setStatus; + + /** 记录的 ID值 作为Key传递 */ + @NotEmpty + @UCloudParam("Key") + private String key; + + /** 要操作的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSetStatus() { + return setStatus; + } + + public void setSetStatus(String setStatus) { + this.setStatus = setStatus; + } + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafAttackFalseAlarmStatusResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafAttackFalseAlarmStatusResponse.java new file mode 100644 index 00000000..936daf0c --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafAttackFalseAlarmStatusResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyWafAttackFalseAlarmStatusResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainBlackListRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainBlackListRequest.java new file mode 100644 index 00000000..c015053a --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainBlackListRequest.java @@ -0,0 +1,140 @@ +/** + * 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.uewaf.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 ModifyWafDomainBlackListRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 黑名单记录ID */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + /** 黑名单来源, 用户自定义(custom)/机器行为检测(bot)/ bot-rule/ auto(自动拦截规则) */ + @NotEmpty + @UCloudParam("Source") + private String source; + + /** 类型:境内(internal)、境外(oversea),自定义(custom) */ + @NotEmpty + @UCloudParam("Type") + private String type; + + /** 动作: captcha/forbidden */ + @NotEmpty + @UCloudParam("ActionType") + private String actionType; + + /** 过期时间,即有效时长,单位为秒,永不过期传0 */ + @NotEmpty + @UCloudParam("ExpireTime") + private Integer expireTime; + + /** 该条记录所属的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** IP、网段或者IP段,传递数组;类型为custom时必填 */ + @UCloudParam("CIDRS") + private List cidrs; + + /** 备注信息 */ + @UCloudParam("Remark") + private String remark; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } + + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getActionType() { + return actionType; + } + + public void setActionType(String actionType) { + this.actionType = actionType; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public List getCIDRS() { + return cidrs; + } + + public void setCIDRS(List cidrs) { + this.cidrs = cidrs; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainBlackListResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainBlackListResponse.java new file mode 100644 index 00000000..21cfab1c --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainBlackListResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyWafDomainBlackListResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainHostInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainHostInfoRequest.java new file mode 100644 index 00000000..f4c79c3b --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainHostInfoRequest.java @@ -0,0 +1,125 @@ +/** + * 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.uewaf.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 ModifyWafDomainHostInfoRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 源站IP信息 */ + @NotEmpty + @UCloudParam("SrcIP") + private List srcIP; + + /** 工作区域,用户已购买区域的子集,以逗号分隔,如:cn-bj,cn-sh */ + @NotEmpty + @UCloudParam("WorkRegions") + private String workRegions; + + /** 被编辑的域名,域名与记录ID必须选填一项 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 使用HTTP跳转,YES是,NO否,只允许HTTPS:YES,HTTP:NO的情况下使用 */ + @UCloudParam("HTTPRedirection") + private String httpRedirection; + + /** HTTPS证书编号 */ + @UCloudParam("CertificateID") + private Integer certificateID; + + /** 获取真实客户端地址字段,如对接CDN等其他代理时使用 */ + @UCloudParam("RealIPHeader") + private String realIPHeader; + + /** 工作模式,Defence:启用防护规则,Alarm:记录不拦截,Inactive:放行 */ + @UCloudParam("WorkMode") + private String workMode; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public List getSrcIP() { + return srcIP; + } + + public void setSrcIP(List srcIP) { + this.srcIP = srcIP; + } + + public String getWorkRegions() { + return workRegions; + } + + public void setWorkRegions(String workRegions) { + this.workRegions = workRegions; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getHTTPRedirection() { + return httpRedirection; + } + + public void setHTTPRedirection(String httpRedirection) { + this.httpRedirection = httpRedirection; + } + + public Integer getCertificateID() { + return certificateID; + } + + public void setCertificateID(Integer certificateID) { + this.certificateID = certificateID; + } + + public String getRealIPHeader() { + return realIPHeader; + } + + public void setRealIPHeader(String realIPHeader) { + this.realIPHeader = realIPHeader; + } + + public String getWorkMode() { + return workMode; + } + + public void setWorkMode(String workMode) { + this.workMode = workMode; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainHostInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainHostInfoResponse.java new file mode 100644 index 00000000..47c27556 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainHostInfoResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyWafDomainHostInfoResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainWhiteListRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainWhiteListRequest.java new file mode 100644 index 00000000..81b4bf48 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainWhiteListRequest.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.uewaf.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 ModifyWafDomainWhiteListRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要编辑的白名单记录ID */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + /** 该条记录所属的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** IP、网段或者IP段,传递数组 */ + @UCloudParam("CIDRS") + private List cidrs; + + /** 备注信息 */ + @UCloudParam("Remark") + private String remark; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public List getCIDRS() { + return cidrs; + } + + public void setCIDRS(List cidrs) { + this.cidrs = cidrs; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainWhiteListResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainWhiteListResponse.java new file mode 100644 index 00000000..9afccc76 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafDomainWhiteListResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyWafDomainWhiteListResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionCustomerInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionCustomerInfoRequest.java new file mode 100644 index 00000000..c0ca4814 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionCustomerInfoRequest.java @@ -0,0 +1,137 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyWafProtectionCustomerInfoRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 规则ID */ + @NotEmpty + @UCloudParam("RuleSetID") + private Integer ruleSetID; + + /** 规则名称 */ + @NotEmpty + @UCloudParam("RuleName") + private String ruleName; + + /** 规则风险等级 */ + @NotEmpty + @UCloudParam("RiskRank") + private String riskRank; + + /** 规则匹配后的动作 */ + @NotEmpty + @UCloudParam("RuleAction") + private String ruleAction; + + /** 规则匹配条件个数 */ + @NotEmpty + @UCloudParam("RuleNum") + private Integer ruleNum; + + /** 风险种类,scan,loopholes,xss,cc,sql,exec,webshell,infoleak,eaa,protocol,other */ + @NotEmpty + @UCloudParam("RiskType") + private String riskType; + + /** 域名, 域名与域名ID 必须选填一项 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 规则匹配条件 */ + @UCloudParam("Rule") + private String rule; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getRuleSetID() { + return ruleSetID; + } + + public void setRuleSetID(Integer ruleSetID) { + this.ruleSetID = ruleSetID; + } + + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public String getRiskRank() { + return riskRank; + } + + public void setRiskRank(String riskRank) { + this.riskRank = riskRank; + } + + public String getRuleAction() { + return ruleAction; + } + + public void setRuleAction(String ruleAction) { + this.ruleAction = ruleAction; + } + + public Integer getRuleNum() { + return ruleNum; + } + + public void setRuleNum(Integer ruleNum) { + this.ruleNum = ruleNum; + } + + public String getRiskType() { + return riskType; + } + + public void setRiskType(String riskType) { + this.riskType = riskType; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getRule() { + return rule; + } + + public void setRule(String rule) { + this.rule = rule; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionCustomerInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionCustomerInfoResponse.java new file mode 100644 index 00000000..4f3e638f --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionCustomerInfoResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyWafProtectionCustomerInfoResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionModeInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionModeInfoRequest.java new file mode 100644 index 00000000..5d8f6ecd --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionModeInfoRequest.java @@ -0,0 +1,60 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyWafProtectionModeInfoRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 工作模式,Defence:启用防护规则,Alarm:记录不拦截,Inactive:放行 */ + @NotEmpty + @UCloudParam("WorkMode") + private String workMode; + + /** 要变更工作模式的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getWorkMode() { + return workMode; + } + + public void setWorkMode(String workMode) { + this.workMode = workMode; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionModeInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionModeInfoResponse.java new file mode 100644 index 00000000..8d449e3a --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionModeInfoResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyWafProtectionModeInfoResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionPriorityInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionPriorityInfoRequest.java new file mode 100644 index 00000000..1be0f911 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionPriorityInfoRequest.java @@ -0,0 +1,73 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyWafProtectionPriorityInfoRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要操作的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 规则ID */ + @NotEmpty + @UCloudParam("RuleSetID") + private String ruleSetID; + + /** 提高或者降低nice值,UP:优先级向上调整,DOWN:优先级向下调整 */ + @NotEmpty + @UCloudParam("UpDown") + private String upDown; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public String getRuleSetID() { + return ruleSetID; + } + + public void setRuleSetID(String ruleSetID) { + this.ruleSetID = ruleSetID; + } + + public String getUpDown() { + return upDown; + } + + public void setUpDown(String upDown) { + this.upDown = upDown; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionPriorityInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionPriorityInfoResponse.java new file mode 100644 index 00000000..0d6f4674 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionPriorityInfoResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyWafProtectionPriorityInfoResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionPriorityPoleInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionPriorityPoleInfoRequest.java new file mode 100644 index 00000000..3d25c31b --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionPriorityPoleInfoRequest.java @@ -0,0 +1,73 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyWafProtectionPriorityPoleInfoRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要操作的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 规则ID */ + @NotEmpty + @UCloudParam("RuleSetID") + private Integer ruleSetID; + + /** 优先级调整策略 */ + @NotEmpty + @UCloudParam("Pole") + private String pole; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public Integer getRuleSetID() { + return ruleSetID; + } + + public void setRuleSetID(Integer ruleSetID) { + this.ruleSetID = ruleSetID; + } + + public String getPole() { + return pole; + } + + public void setPole(String pole) { + this.pole = pole; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionPriorityPoleInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionPriorityPoleInfoResponse.java new file mode 100644 index 00000000..9bbd5db1 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionPriorityPoleInfoResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyWafProtectionPriorityPoleInfoResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionSystemInfoRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionSystemInfoRequest.java new file mode 100644 index 00000000..3e81e0cc --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionSystemInfoRequest.java @@ -0,0 +1,72 @@ +/** + * 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.uewaf.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 ModifyWafProtectionSystemInfoRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要操作的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 设置为拦截的系统默认规则 */ + @UCloudParam("Deny") + private List deny; + + /** 设置为放行的系统默认规则 */ + @UCloudParam("Accept") + private List accept; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + public List getDeny() { + return deny; + } + + public void setDeny(List deny) { + this.deny = deny; + } + + public List getAccept() { + return accept; + } + + public void setAccept(List accept) { + this.accept = accept; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionSystemInfoResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionSystemInfoResponse.java new file mode 100644 index 00000000..7e920bac --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafProtectionSystemInfoResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyWafProtectionSystemInfoResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafRegionBlockRuleRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafRegionBlockRuleRequest.java new file mode 100644 index 00000000..dac6962c --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafRegionBlockRuleRequest.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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyWafRegionBlockRuleRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 规则ID */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + /** 规则名称 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** 匹配Action,Accept or Deny(默认) */ + @NotEmpty + @UCloudParam("ActionType") + private String actionType; + + /** 封堵地域编码,定义与添加的api相同 */ + @NotEmpty + @UCloudParam("BlockRegion") + private String blockRegion; + + /** 备注信息 */ + @UCloudParam("Description") + private String description; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + 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 getActionType() { + return actionType; + } + + public void setActionType(String actionType) { + this.actionType = actionType; + } + + public String getBlockRegion() { + return blockRegion; + } + + public void setBlockRegion(String blockRegion) { + this.blockRegion = blockRegion; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafRegionBlockRuleResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafRegionBlockRuleResponse.java new file mode 100644 index 00000000..6b60924f --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafRegionBlockRuleResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyWafRegionBlockRuleResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafResponseFilterRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafResponseFilterRequest.java new file mode 100644 index 00000000..ee9c828d --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafResponseFilterRequest.java @@ -0,0 +1,123 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyWafResponseFilterRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 要修改的规则ID */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + /** 要操作的域名 */ + @NotEmpty + @UCloudParam("FullDomain") + private String fullDomain; + + /** 规则名称 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** 过滤类型;可选项:Status(状态码),Sensitive(敏感内容),Customize(自定义字符串) */ + @NotEmpty + @UCloudParam("Type") + private String type; + + /** 丢弃响应或伪装内容;可选项:DROP(丢弃响应),DISGUISE(伪装内容) */ + @NotEmpty + @UCloudParam("RuleAction") + private String ruleAction; + + /** 过滤内容。当过滤类型为Sensitive时为可选项,可选值:Identity(身份证号),TelNum(手机号),Email(邮件),BankNum(银行卡号) */ + @UCloudParam("Content") + private String content; + + /** 伪装响应内容 */ + @UCloudParam("DisguiseFile") + private String disguiseFile; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } + + public String getFullDomain() { + return fullDomain; + } + + public void setFullDomain(String fullDomain) { + this.fullDomain = fullDomain; + } + + 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 getRuleAction() { + return ruleAction; + } + + public void setRuleAction(String ruleAction) { + this.ruleAction = ruleAction; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public String getDisguiseFile() { + return disguiseFile; + } + + public void setDisguiseFile(String disguiseFile) { + this.disguiseFile = disguiseFile; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafResponseFilterResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafResponseFilterResponse.java new file mode 100644 index 00000000..718d4839 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/ModifyWafResponseFilterResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyWafResponseFilterResponse extends Response {} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/UpdateAssurePageCacheRequest.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/UpdateAssurePageCacheRequest.java new file mode 100644 index 00000000..debd02c2 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/UpdateAssurePageCacheRequest.java @@ -0,0 +1,47 @@ +/** + * 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.uewaf.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateAssurePageCacheRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 待更新的防篡改页面ID */ + @NotEmpty + @UCloudParam("ID") + private Integer id; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } +} diff --git a/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/UpdateAssurePageCacheResponse.java b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/UpdateAssurePageCacheResponse.java new file mode 100644 index 00000000..2f2c2a62 --- /dev/null +++ b/ucloud-sdk-java-uewaf/src/main/java/cn/ucloud/uewaf/models/UpdateAssurePageCacheResponse.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.uewaf.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateAssurePageCacheResponse extends Response {} diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 84acd84c..043d5d98 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-ufile - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index bcf1f544..199ac35a 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-ufs - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index f095ef8b..35d7ae70 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-uhost - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 73169377..a4942631 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-uk8s - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index 6a619778..83d2dc4c 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-ulb - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index 8c0da835..8160d319 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-umem - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index eb1cb800..9c628761 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-umongodb - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index 5c4a0ece..991dce85 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-unet - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index 43c2fe60..0d2169e1 100644 --- a/ucloud-sdk-java-upgsql/pom.xml +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-upgsql - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClient.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClient.java index 912cf648..ed4e9e1e 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClient.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClient.java @@ -53,6 +53,8 @@ import cn.ucloud.upgsql.models.ListUPgSQLLogResponse; import cn.ucloud.upgsql.models.ListUPgSQLMachineTypeRequest; import cn.ucloud.upgsql.models.ListUPgSQLMachineTypeResponse; +import cn.ucloud.upgsql.models.ListUPgSQLParamTemplateRequest; +import cn.ucloud.upgsql.models.ListUPgSQLParamTemplateResponse; import cn.ucloud.upgsql.models.ListUPgSQLVersionRequest; import cn.ucloud.upgsql.models.ListUPgSQLVersionResponse; import cn.ucloud.upgsql.models.RestartUPgSQLInstanceRequest; @@ -308,6 +310,19 @@ public ListUPgSQLMachineTypeResponse listUPgSQLMachineType(ListUPgSQLMachineType this.invoke(request, ListUPgSQLMachineTypeResponse.class); } + /** + * ListUPgSQLParamTemplate - 获取可用参数模板列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLParamTemplateResponse listUPgSQLParamTemplate( + ListUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("ListUPgSQLParamTemplate"); + return (ListUPgSQLParamTemplateResponse) + this.invoke(request, ListUPgSQLParamTemplateResponse.class); + } + /** * ListUPgSQLVersion - 获取UPgSQL支持版本列表 * diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClientInterface.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClientInterface.java index 6d6b2800..91f8657a 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClientInterface.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClientInterface.java @@ -51,6 +51,8 @@ import cn.ucloud.upgsql.models.ListUPgSQLLogResponse; import cn.ucloud.upgsql.models.ListUPgSQLMachineTypeRequest; import cn.ucloud.upgsql.models.ListUPgSQLMachineTypeResponse; +import cn.ucloud.upgsql.models.ListUPgSQLParamTemplateRequest; +import cn.ucloud.upgsql.models.ListUPgSQLParamTemplateResponse; import cn.ucloud.upgsql.models.ListUPgSQLVersionRequest; import cn.ucloud.upgsql.models.ListUPgSQLVersionResponse; import cn.ucloud.upgsql.models.RestartUPgSQLInstanceRequest; @@ -236,6 +238,15 @@ public ListUPgSQLInstanceResponse listUPgSQLInstance(ListUPgSQLInstanceRequest r public ListUPgSQLMachineTypeResponse listUPgSQLMachineType(ListUPgSQLMachineTypeRequest request) throws UCloudException; + /** + * ListUPgSQLParamTemplate - 获取可用参数模板列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLParamTemplateResponse listUPgSQLParamTemplate( + ListUPgSQLParamTemplateRequest request) throws UCloudException; + /** * ListUPgSQLVersion - 获取UPgSQL支持版本列表 * diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..1f022007 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLParamTemplateRequest.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.upgsql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUPgSQLParamTemplateRequest 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; + + /** 偏移量, 默认是0,100 */ + @UCloudParam("Offset") + private Integer offset; + + /** 总数 */ + @UCloudParam("Count") + private Integer count; + + 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 getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } +} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..f5fbcce4 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLParamTemplateResponse.java @@ -0,0 +1,110 @@ +/** + * 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.upgsql.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUPgSQLParamTemplateResponse extends Response { + + /** 参数模板信息 */ + @SerializedName("Data") + private List data; + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class TemplateGroup extends Response { + + /** 参数模板ID */ + @SerializedName("GroupID") + private Integer groupID; + + /** 参数模板名称 */ + @SerializedName("GroupName") + private String groupName; + + /** 应用的DB版本 */ + @SerializedName("DBVersion") + private String dbVersion; + + /** 描述信息 */ + @SerializedName("Description") + private String description; + + /** 是否可以修改 */ + @SerializedName("Modifiable") + private Boolean modifiable; + + /** 模板组类型名称 */ + @SerializedName("ParamGroupTypeName") + private String paramGroupTypeName; + + public Integer getGroupID() { + return groupID; + } + + public void setGroupID(Integer groupID) { + this.groupID = groupID; + } + + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Boolean getModifiable() { + return modifiable; + } + + public void setModifiable(Boolean modifiable) { + this.modifiable = modifiable; + } + + public String getParamGroupTypeName() { + return paramGroupTypeName; + } + + public void setParamGroupTypeName(String paramGroupTypeName) { + this.paramGroupTypeName = paramGroupTypeName; + } + } +} diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 6d9aa0ce..67686154 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-uphone - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 614244c0..7368be35 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-uphost - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index e3a8f60e..de64a825 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-uslk - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 9073218c..504189ee 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-usms - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index 14cfbafb..758ef785 100644 --- a/ucloud-sdk-java-usnap/pom.xml +++ b/ucloud-sdk-java-usnap/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-usnap - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index 0e253f46..b6c6706d 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-uvms - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index 1f6a2065..74787f0e 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.15-release + 1.2.16-release 4.0.0 ucloud-sdk-java-vpc - 1.2.15-release + 1.2.16-release cn.ucloud ucloud-sdk-java-common - 1.2.15-release + 1.2.16-release