diff --git a/VERSION b/VERSION index 87d7216d..6f948023 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.52-release +1.2.53-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index 0ea0309a..feda091f 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index 582c6969..ea31aaec 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.52-release + 1.2.53-release diff --git a/pom.xml b/pom.xml index b7710786..c9fc5631 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.52-release + 1.2.53-release ucloud-sdk-java-common ucloud-sdk-java-cloudwatch @@ -49,6 +49,7 @@ ucloud-sdk-java-usnap ucloud-sdk-java-uvms ucloud-sdk-java-vpc + ucloud-sdk-java-vpc ucloud-sdk-java diff --git a/ucloud-sdk-java-cloudwatch/pom.xml b/ucloud-sdk-java-cloudwatch/pom.xml index 3f5f2ef4..a3e5b118 100644 --- a/ucloud-sdk-java-cloudwatch/pom.xml +++ b/ucloud-sdk-java-cloudwatch/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-cloudwatch ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 6082155b..6938417c 100644 --- a/ucloud-sdk-java-common/pom.xml +++ b/ucloud-sdk-java-common/pom.xml @@ -7,13 +7,13 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-common ucloud-sdk-java - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index db85340a..7911900e 100644 --- a/ucloud-sdk-java-cube/pom.xml +++ b/ucloud-sdk-java-cube/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-cube ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 96d9095a..44c7146e 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-ipsecvpn ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-label/pom.xml b/ucloud-sdk-java-label/pom.xml index 27119f45..351a9d11 100644 --- a/ucloud-sdk-java-label/pom.xml +++ b/ucloud-sdk-java-label/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-label ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-nlb/pom.xml b/ucloud-sdk-java-nlb/pom.xml index ec85515d..9a5f6d4f 100644 --- a/ucloud-sdk-java-nlb/pom.xml +++ b/ucloud-sdk-java-nlb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-nlb ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index c1ecbdd1..eece8fbe 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-pathx ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index a9126d53..7c394ca8 100644 --- a/ucloud-sdk-java-sts/pom.xml +++ b/ucloud-sdk-java-sts/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-sts ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index 8a093fec..d3489ae8 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-uaccount ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index 2b5e08f1..c6c8b0ac 100644 --- a/ucloud-sdk-java-uai_modelverse/pom.xml +++ b/ucloud-sdk-java-uai_modelverse/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-uai_modelverse ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 318dc15c..95df20a5 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-ubill ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index df41be12..a93b340a 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-ucdn ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index baf5b8b4..d97fe3bb 100644 --- a/ucloud-sdk-java-ucompshare/pom.xml +++ b/ucloud-sdk-java-ucompshare/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-ucompshare ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index 491bddd7..6c922e59 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-udb ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index a22797be..4599f5a6 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-udbproxy ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index 5a9903b3..f095b6b5 100644 --- a/ucloud-sdk-java-udi/pom.xml +++ b/ucloud-sdk-java-udi/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-udi ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index 40a97678..fe0f6493 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-udisk ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml index def9a5a4..4b600d90 100644 --- a/ucloud-sdk-java-udns/pom.xml +++ b/ucloud-sdk-java-udns/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-udns ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index 4886ce00..b0401084 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-udpn ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index b4d19332..1d9310c1 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-uec ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index cb391939..21c23050 100644 --- a/ucloud-sdk-java-uewaf/pom.xml +++ b/ucloud-sdk-java-uewaf/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-uewaf ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 76717234..8de77258 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-ufile ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 5b4edf29..0aecc29b 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-ufs ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index 5155f4b4..cd7bbdf6 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-uhost ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index ea61a928..be62c078 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-uk8s ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index 65f6ebb1..5a5465a3 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-ulb ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index 2fb503c6..7ba0e26f 100644 --- a/ucloud-sdk-java-ulog/pom.xml +++ b/ucloud-sdk-java-ulog/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-ulog ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index 76dbbec4..815f6558 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-umem ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-umon/pom.xml b/ucloud-sdk-java-umon/pom.xml index 9f40fd5f..abe5d662 100644 --- a/ucloud-sdk-java-umon/pom.xml +++ b/ucloud-sdk-java-umon/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-umon ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index b2b58b0f..58ca85bf 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-umongodb ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index 10dc127d..1d173a0a 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-unet ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-upfs/pom.xml b/ucloud-sdk-java-upfs/pom.xml index 1e9c84ea..cf973b43 100644 --- a/ucloud-sdk-java-upfs/pom.xml +++ b/ucloud-sdk-java-upfs/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-upfs ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index ee2eacde..0a1bfb37 100644 --- a/ucloud-sdk-java-upgsql/pom.xml +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-upgsql ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 45725d32..0ce9bddf 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-uphone ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index d1f0760c..1e2bf908 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-uphost ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index c9a39780..11a22bc5 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-uslk ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index ed3ac2ad..429f9968 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-usms ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index 195bd291..4e1e43bd 100644 --- a/ucloud-sdk-java-usnap/pom.xml +++ b/ucloud-sdk-java-usnap/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-usnap ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index b569956f..1d529649 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-uvms ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index ecb54303..ec63344b 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.52-release + 1.2.53-release 4.0.0 ucloud-sdk-java-vpc ucloud-sdk-java - 1.2.52-release + 1.2.53-release cn.ucloud ucloud-sdk-java-common - 1.2.52-release + 1.2.53-release diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupDynamicRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupDynamicRequest.java new file mode 100644 index 00000000..fc6ee08a --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupDynamicRequest.java @@ -0,0 +1,77 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.vpc.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 AssociateSecGroupDynamicRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 资源短 ID 数组。支持数组模式。Type 为 string 数组。 */ + @NotEmpty + @UCloudParam("ResourceId") + private List resourceId; + + /** 安全组ID */ + @NotEmpty + @UCloudParam("SecGroupId") + private String secGroupId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public List getResourceId() { + return resourceId; + } + + public void setResourceId(List resourceId) { + this.resourceId = resourceId; + } + + public String getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(String secGroupId) { + this.secGroupId = secGroupId; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupDynamicResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupDynamicResponse.java new file mode 100644 index 00000000..f966607c --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupDynamicResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class AssociateSecGroupDynamicResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupRequest.java new file mode 100644 index 00000000..2563212f --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupRequest.java @@ -0,0 +1,105 @@ +/** + * 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.vpc.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 AssociateSecGroupRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 资源短 ID,安全组参数和该字段只支持一个批量。支持 string 数组。 */ + @NotEmpty + @UCloudParam("ResourceId") + private List resourceId; + + /** */ + @UCloudParam("PrioritySecGroup") + private List prioritySecGroup; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public List getResourceId() { + return resourceId; + } + + public void setResourceId(List resourceId) { + this.resourceId = resourceId; + } + + public List getPrioritySecGroup() { + return prioritySecGroup; + } + + public void setPrioritySecGroup(List prioritySecGroup) { + this.prioritySecGroup = prioritySecGroup; + } + + public static class PrioritySecGroup extends Request { + + /** 绑定优先级。该字段和资源 ID 只支持一个批量。支持 PrioritySecGroup 的 JSON 格式数组。 */ + @NotEmpty + @UCloudParam("Priority") + private Integer priority; + + /** 安全组 ID。该字段和资源 ID 只支持一个批量。支持 PrioritySecGroup 的 JSON 格式数组。 */ + @NotEmpty + @UCloudParam("SecGroupId") + private String secGroupId; + + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public String getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(String secGroupId) { + this.secGroupId = secGroupId; + } + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupResponse.java new file mode 100644 index 00000000..08693c84 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/AssociateSecGroupResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class AssociateSecGroupResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRequest.java new file mode 100644 index 00000000..8cdc5f08 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRequest.java @@ -0,0 +1,76 @@ +/** + * 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.vpc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateSecGroupRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 资源ID所属的VPC */ + @NotEmpty + @UCloudParam("VPCID") + private String vpcid; + + /** 安全组名称,最长64个字符。 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getVPCID() { + return vpcid; + } + + public void setVPCID(String vpcid) { + this.vpcid = vpcid; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupResponse.java new file mode 100644 index 00000000..98158c17 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupResponse.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.vpc.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateSecGroupResponse extends Response { + + /** 安全组ID */ + @SerializedName("SecGroupId") + private String secGroupId; + + public String getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(String secGroupId) { + this.secGroupId = secGroupId; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRuleRequest.java new file mode 100644 index 00000000..f55049db --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRuleRequest.java @@ -0,0 +1,182 @@ +/** + * 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.vpc.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 CreateSecGroupRuleRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 需要添加规则的安全组资源ID。 */ + @NotEmpty + @UCloudParam("SecGroupId") + private String secGroupId; + + /** */ + @UCloudParam("Rule") + private List rule; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(String secGroupId) { + this.secGroupId = secGroupId; + } + + public List getRule() { + return rule; + } + + public void setRule(List rule) { + this.rule = rule; + } + + public static class Rule extends Request { + + /** "Ingress/Egress",入站规则/出站规则 */ + @NotEmpty + @UCloudParam("Direction") + private String direction; + + /** IP 地址信息,逗号分隔。 */ + @NotEmpty + @UCloudParam("IPRange") + private String ipRange; + + /** 规则优先级。范围为 1~200 */ + @NotEmpty + @UCloudParam("Priority") + private Integer priority; + + /** 协议类型。"TCP","UDP","ICMP","ICMPv6","ALL" */ + @NotEmpty + @UCloudParam("ProtocolType") + private String protocolType; + + /** 目的端口。逗号分隔,如 "80,443"、"443,2000-10000" */ + @NotEmpty + @UCloudParam("DstPort") + private String dstPort; + + /** 规则行为。"Accept" 或 "Drop" */ + @NotEmpty + @UCloudParam("RuleAction") + private String ruleAction; + + /** 规则备注 */ + @NotEmpty + @UCloudParam("Remark") + private String remark; + + /** IP 版本,如 “IPv4”。支持 IPv6 后废弃 */ + @UCloudParam("IPVersion") + private String ipVersion; + + public String getDirection() { + return direction; + } + + public void setDirection(String direction) { + this.direction = direction; + } + + public String getIPRange() { + return ipRange; + } + + public void setIPRange(String ipRange) { + this.ipRange = ipRange; + } + + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public String getProtocolType() { + return protocolType; + } + + public void setProtocolType(String protocolType) { + this.protocolType = protocolType; + } + + public String getDstPort() { + return dstPort; + } + + public void setDstPort(String dstPort) { + this.dstPort = dstPort; + } + + public String getRuleAction() { + return ruleAction; + } + + public void setRuleAction(String ruleAction) { + this.ruleAction = ruleAction; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getIPVersion() { + return ipVersion; + } + + public void setIPVersion(String ipVersion) { + this.ipVersion = ipVersion; + } + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRuleResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRuleResponse.java new file mode 100644 index 00000000..bdfb90e6 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/CreateSecGroupRuleResponse.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.vpc.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class CreateSecGroupRuleResponse extends Response { + + /** 规则 ID */ + @SerializedName("RuleId") + private List ruleId; + + public List getRuleId() { + return ruleId; + } + + public void setRuleId(List ruleId) { + this.ruleId = ruleId; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupRequest.java new file mode 100644 index 00000000..00211dc3 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupRequest.java @@ -0,0 +1,64 @@ +/** + * 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.vpc.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 DeleteSecGroupRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 安全组资源 Id。支持 string 数组格式。 */ + @NotEmpty + @UCloudParam("SecGroupId") + private List secGroupId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public List getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(List secGroupId) { + this.secGroupId = secGroupId; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupResponse.java new file mode 100644 index 00000000..f7f28a4a --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteSecGroupResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupRuleRequest.java new file mode 100644 index 00000000..a7742642 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupRuleRequest.java @@ -0,0 +1,77 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.vpc.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 DeleteSecGroupRuleRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 所属安全组 ID。 */ + @NotEmpty + @UCloudParam("SecGroupId") + private String secGroupId; + + /** 安全组规则 ID。支持 string 数组格式。 */ + @NotEmpty + @UCloudParam("RuleId") + private List ruleId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(String secGroupId) { + this.secGroupId = secGroupId; + } + + public List getRuleId() { + return ruleId; + } + + public void setRuleId(List ruleId) { + this.ruleId = ruleId; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupRuleResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupRuleResponse.java new file mode 100644 index 00000000..32a5327c --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DeleteSecGroupRuleResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteSecGroupRuleResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeResourceSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeResourceSecGroupRequest.java new file mode 100644 index 00000000..2fd227db --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeResourceSecGroupRequest.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.vpc.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 DescribeResourceSecGroupRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 资源类型,如 uhost, uni */ + @UCloudParam("ResourceType") + private String resourceType; + + /** 分页查询时的偏移量。传入了 ResourceId 则不分页。 */ + @UCloudParam("Offset") + private Integer offset; + + /** 分页查询时的最大返回资源数量。 */ + @UCloudParam("Limit") + private Integer limit; + + /** VPC ID。非必须,分页使用(分页时,也可不传);ResourceId 非空时,忽略 */ + @UCloudParam("VPCId") + private String vpcId; + + /** 资源 ID 数组,如果指定则不分页;否则分页获取该账号下的指定类型的资源。支持 string 数组格式。 */ + @UCloudParam("ResourceId") + private List resourceId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + 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 getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public List getResourceId() { + return resourceId; + } + + public void setResourceId(List resourceId) { + this.resourceId = resourceId; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeResourceSecGroupResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeResourceSecGroupResponse.java new file mode 100644 index 00000000..65f57a31 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeResourceSecGroupResponse.java @@ -0,0 +1,314 @@ +/** + * 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.vpc.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeResourceSecGroupResponse extends Response { + + /** 资源总数量。传入 ResourceId 时,为传入资源中的有效资源数量。 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 资源绑定的安全组信息 */ + @SerializedName("DataSet") + private List dataSet; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class BindingSecGroupInfo extends Response { + + /** 安全组 ID */ + @SerializedName("SecGroupId") + private String secGroupId; + + /** 安全组名称 */ + @SerializedName("Name") + private String name; + + /** 安全组所属 VPC */ + @SerializedName("VPCId") + private String vpcId; + + /** 该资源与该安全组绑定的优先级 */ + @SerializedName("Priority") + private Integer priority; + + public String getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(String secGroupId) { + this.secGroupId = secGroupId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + } + + public static class ResourceExInfo extends Response { + + /** 父级资源ID */ + @SerializedName("SuperResourceId") + private String superResourceId; + + /** 资源名称 */ + @SerializedName("ResourceName") + private String resourceName; + + /** 主机内网IP */ + @SerializedName("IP") + private List ip; + + /** 主机外网IP */ + @SerializedName("EIP") + private List eip; + + /** 弹性网卡信息 */ + @SerializedName("Uni") + private List uni; + + /** 父级资源名称 */ + @SerializedName("SuperResourceName") + private String superResourceName; + + public String getSuperResourceId() { + return superResourceId; + } + + public void setSuperResourceId(String superResourceId) { + this.superResourceId = superResourceId; + } + + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public List getIP() { + return ip; + } + + public void setIP(List ip) { + this.ip = ip; + } + + public List getEIP() { + return eip; + } + + public void setEIP(List eip) { + this.eip = eip; + } + + public List getUni() { + return uni; + } + + public void setUni(List uni) { + this.uni = uni; + } + + public String getSuperResourceName() { + return superResourceName; + } + + public void setSuperResourceName(String superResourceName) { + this.superResourceName = superResourceName; + } + } + + public static class ResourceSecgroupInfo extends Response { + + /** 资源ID */ + @SerializedName("ResourceId") + private String resourceId; + + /** 资源绑定安全组数量 */ + @SerializedName("Count") + private Integer count; + + /** 详见SecGroupSimpleInfo */ + @SerializedName("SecGroupInfo") + private List secGroupInfo; + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public List getSecGroupInfo() { + return secGroupInfo; + } + + public void setSecGroupInfo(List secGroupInfo) { + this.secGroupInfo = secGroupInfo; + } + } + + public static class ResourceSecgroupInfoEx extends Response { + + /** 资源 ID */ + @SerializedName("ResourceId") + private String resourceId; + + /** 资源名称 */ + @SerializedName("ResourceName") + private String resourceName; + + /** 该资源绑定的安全组数量 */ + @SerializedName("Count") + private Integer count; + + /** 绑定安全组信息 */ + @SerializedName("SecGroupInfo") + private List secGroupInfo; + + /** 表示是否允许绑定安全组 */ + @SerializedName("PermitAssociate") + private Boolean permitAssociate; + + /** 资源额外信息 */ + @SerializedName("ExInfo") + private ResourceExInfo exInfo; + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public List getSecGroupInfo() { + return secGroupInfo; + } + + public void setSecGroupInfo(List secGroupInfo) { + this.secGroupInfo = secGroupInfo; + } + + public Boolean getPermitAssociate() { + return permitAssociate; + } + + public void setPermitAssociate(Boolean permitAssociate) { + this.permitAssociate = permitAssociate; + } + + public ResourceExInfo getExInfo() { + return exInfo; + } + + public void setExInfo(ResourceExInfo exInfo) { + this.exInfo = exInfo; + } + } + + public static class SecGroupSimpleInfo extends Response { + + /** 安全组资源ID */ + @SerializedName("SecGroupId") + private String secGroupId; + + /** 安全组名称 */ + @SerializedName("Name") + private String name; + + public String getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(String secGroupId) { + this.secGroupId = secGroupId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupRequest.java new file mode 100644 index 00000000..610985bd --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupRequest.java @@ -0,0 +1,99 @@ +/** + * 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.vpc.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 DescribeSecGroupRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 分页查询数据长度。默认为20 */ + @UCloudParam("Limit") + private Integer limit; + + /** 分页查询起始位置偏移量。默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + /** 资源ID所属的 VPC ID */ + @UCloudParam("VPCId") + private String vpcId; + + /** 安全组资源 ID 数组,传入则 Offset/Limit/BusinessId 失效。支持数组格式。Type 为 string 数组。 */ + @UCloudParam("SecGroupId") + private List secGroupId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public 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 getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public List getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(List secGroupId) { + this.secGroupId = secGroupId; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupResourceRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupResourceRequest.java new file mode 100644 index 00000000..605c231c --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupResourceRequest.java @@ -0,0 +1,86 @@ +/** + * 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.vpc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeSecGroupResourceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 安全组资源ID。 */ + @UCloudParam("SecGroupId") + private String secGroupId; + + /** 分页查询长度。默认为20 */ + @UCloudParam("Limit") + private Integer limit; + + /** 分页查询起始位置偏移量。默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(String secGroupId) { + this.secGroupId = secGroupId; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupResourceResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupResourceResponse.java new file mode 100644 index 00000000..bbff49e8 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupResourceResponse.java @@ -0,0 +1,161 @@ +/** + * 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.vpc.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeSecGroupResourceResponse extends Response { + + /** 详见SecGroupResourceInfo */ + @SerializedName("DataSet") + private List dataSet; + + /** 安全组绑定的资源总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public static class SecGroupResourceInfo extends Response { + + /** 可用区 */ + @SerializedName("Zone") + private Integer zone; + + /** 绑定的虚拟网卡的名称 */ + @SerializedName("SubResourceName") + private String subResourceName; + + /** 资源绑定的虚拟网卡的ID */ + @SerializedName("SubResourceId") + private String subResourceId; + + /** 绑定的虚拟网卡的类型,“uni”,虚拟网卡 */ + @SerializedName("SubResourceType") + private String subResourceType; + + /** 名称 */ + @SerializedName("Name") + private String name; + + /** 内网IP */ + @SerializedName("PrivateIp") + private String privateIp; + + /** 资源ID */ + @SerializedName("ResourceId") + private String resourceId; + + /** + * 资源类型。"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; + * "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,“uni”,虚拟网卡。 + */ + @SerializedName("ResourceType") + private String resourceType; + + /** 业务组 */ + @SerializedName("Tag") + private String tag; + + public Integer getZone() { + return zone; + } + + public void setZone(Integer zone) { + this.zone = zone; + } + + public String getSubResourceName() { + return subResourceName; + } + + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getSubResourceId() { + return subResourceId; + } + + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public String getSubResourceType() { + return subResourceType; + } + + public void setSubResourceType(String subResourceType) { + this.subResourceType = subResourceType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPrivateIp() { + return privateIp; + } + + public void setPrivateIp(String privateIp) { + this.privateIp = privateIp; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupResponse.java new file mode 100644 index 00000000..9894ceb8 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeSecGroupResponse.java @@ -0,0 +1,260 @@ +/** + * 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.vpc.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeSecGroupResponse extends Response { + + /** 详见SecGroupInfo */ + @SerializedName("DataSet") + private List dataSet; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class SecGroupInfo extends Response { + + /** 安全组资源ID */ + @SerializedName("SecGroupId") + private String secGroupId; + + /** 安全组名称 */ + @SerializedName("Name") + private String name; + + /** VPC资源ID */ + @SerializedName("VPCId") + private String vpcId; + + /** 用户 ID */ + @SerializedName("Account") + private Integer account; + + /** 业务组 */ + @SerializedName("Tag") + private String tag; + + /** 备注 */ + @SerializedName("Remark") + private String remark; + + /** + * 安全组类型,枚举值为: "user defined", 自定义创建安全组; "recommend web", 使用Web模板创建的安全组; "recommend non + * web", 使用非Web模板创建的安全组 + */ + @SerializedName("Type") + private String type; + + /** 创建的时间,格式为Unix Timestamp,如 1747030299 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 安全组组中的规则列表,参见 SecGroupRuleInfo */ + @SerializedName("Rule") + private List rule; + + public String getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(String secGroupId) { + this.secGroupId = secGroupId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public Integer getAccount() { + return account; + } + + public void setAccount(Integer account) { + this.account = account; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public List getRule() { + return rule; + } + + public void setRule(List rule) { + this.rule = rule; + } + } + + public static class SecGroupRuleInfo extends Response { + + /** 规则ID */ + @SerializedName("RuleId") + private String ruleId; + + /** "Ingress/Egress",入站规则/出站规则 */ + @SerializedName("Direction") + private String direction; + + /** 地址 */ + @SerializedName("IPRange") + private String ipRange; + + /** 优先级 */ + @SerializedName("Priority") + private Integer priority; + + /** 协议类型 */ + @SerializedName("ProtocolType") + private String protocolType; + + /** 目标端口 */ + @SerializedName("DstPort") + private String dstPort; + + /** 匹配策略 */ + @SerializedName("RuleAction") + private String ruleAction; + + /** 安全组规则备注 */ + @SerializedName("Remark") + private String remark; + + /** IP 版本,如 "IPv4"。支持 IPv6 后废弃 */ + @SerializedName("IPVersion") + private String ipVersion; + + public String getRuleId() { + return ruleId; + } + + public void setRuleId(String ruleId) { + this.ruleId = ruleId; + } + + public String getDirection() { + return direction; + } + + public void setDirection(String direction) { + this.direction = direction; + } + + public String getIPRange() { + return ipRange; + } + + public void setIPRange(String ipRange) { + this.ipRange = ipRange; + } + + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public String getProtocolType() { + return protocolType; + } + + public void setProtocolType(String protocolType) { + this.protocolType = protocolType; + } + + public String getDstPort() { + return dstPort; + } + + public void setDstPort(String dstPort) { + this.dstPort = dstPort; + } + + public String getRuleAction() { + return ruleAction; + } + + public void setRuleAction(String ruleAction) { + this.ruleAction = ruleAction; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getIPVersion() { + return ipVersion; + } + + public void setIPVersion(String ipVersion) { + this.ipVersion = ipVersion; + } + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisableUniEipDirectModeRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisableUniEipDirectModeRequest.java new file mode 100644 index 00000000..5e93f768 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisableUniEipDirectModeRequest.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.vpc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DisableUniEipDirectModeRequest 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) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** VPC ID */ + @NotEmpty + @UCloudParam("VPCId") + private String vpcId; + + /** 虚拟网卡ID */ + @NotEmpty + @UCloudParam("InterfaceId") + private String interfaceId; + + 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 getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getInterfaceId() { + return interfaceId; + } + + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisableUniEipDirectModeResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisableUniEipDirectModeResponse.java new file mode 100644 index 00000000..ffa9b47d --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisableUniEipDirectModeResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class DisableUniEipDirectModeResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisassociateSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisassociateSecGroupRequest.java new file mode 100644 index 00000000..a35aafa5 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisassociateSecGroupRequest.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.vpc.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 DisassociateSecGroupRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 安全组ID,不传表示解绑安全组绑定的所以资源,安全组ID和资源ID至少传一个,且只能有一个批量。支持 string 数组格式。 */ + @UCloudParam("SecGroupId") + private List secGroupId; + + /** 资源ID,不传表示解绑资源上所有安全组,安全组ID和资源ID至少传一个,且只能有一个批量。支持 string 数组格式。 */ + @UCloudParam("ResourceId") + private List resourceId; + + /** 是否强制解绑。默认为 false。为 true 表示强制解绑,用于删除资源前的解绑,因为开启安全组特性的资源至少绑定一个安全组,正常情况下是不允许解绑所有安全组。 */ + @UCloudParam("Force") + private Boolean force; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public List getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(List secGroupId) { + this.secGroupId = secGroupId; + } + + public List getResourceId() { + return resourceId; + } + + public void setResourceId(List resourceId) { + this.resourceId = resourceId; + } + + public Boolean getForce() { + return force; + } + + public void setForce(Boolean force) { + this.force = force; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisassociateSecGroupResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisassociateSecGroupResponse.java new file mode 100644 index 00000000..f9552f49 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DisassociateSecGroupResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class DisassociateSecGroupResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableUniEipDirectModeRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableUniEipDirectModeRequest.java new file mode 100644 index 00000000..a0dc4dcf --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableUniEipDirectModeRequest.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.vpc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class EnableUniEipDirectModeRequest 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) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** VPC ID */ + @NotEmpty + @UCloudParam("VPCId") + private String vpcId; + + /** 虚拟网卡ID */ + @NotEmpty + @UCloudParam("InterfaceId") + private String interfaceId; + + /** 枚举值: 1-EIP网卡可见 2-EIP直通 默认为1 */ + @UCloudParam("EipDirectVersion") + private Integer eipDirectVersion; + + 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 getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getInterfaceId() { + return interfaceId; + } + + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + public Integer getEipDirectVersion() { + return eipDirectVersion; + } + + public void setEipDirectVersion(Integer eipDirectVersion) { + this.eipDirectVersion = eipDirectVersion; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableUniEipDirectModeResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableUniEipDirectModeResponse.java new file mode 100644 index 00000000..7150a2db --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/EnableUniEipDirectModeResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class EnableUniEipDirectModeResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToFirewallRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToFirewallRequest.java new file mode 100644 index 00000000..638027c7 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToFirewallRequest.java @@ -0,0 +1,91 @@ +/** + * 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.vpc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class SwitchToFirewallRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 资源ID。资源类型为 UHost、UNI、PAAS 资源 */ + @NotEmpty + @UCloudParam("ResourceId") + private String resourceId; + + /** 防火墙 ID */ + @UCloudParam("Firewall") + private String firewall; + + /** + * map[string]string,string 到 防火墙 ID + * 的映射。ResourceId是uhost则Node是uni;ResourceId是uhadoop则Node是hadoophost + */ + @UCloudParam("NodeToFirewall") + private String nodeToFirewall; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getFirewall() { + return firewall; + } + + public void setFirewall(String firewall) { + this.firewall = firewall; + } + + public String getNodeToFirewall() { + return nodeToFirewall; + } + + public void setNodeToFirewall(String nodeToFirewall) { + this.nodeToFirewall = nodeToFirewall; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToFirewallResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToFirewallResponse.java new file mode 100644 index 00000000..1ccf7b46 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToFirewallResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class SwitchToFirewallResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToSecGroupRequest.java new file mode 100644 index 00000000..aa5b4293 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToSecGroupRequest.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.vpc.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 SwitchToSecGroupRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 资源ID。资源类型为 UHost、UNI、PAAS 资源 */ + @NotEmpty + @UCloudParam("ResourceId") + private String resourceId; + + /** 是否移除当前的防火墙(且绑定默认全通的防火墙) */ + @NotEmpty + @UCloudParam("IsRemoveFirewall") + private Boolean isRemoveFirewall; + + /** PrioritySecGroup类型的数组 */ + @UCloudParam("PrioritySecGroup") + private List prioritySecGroup; + + /** map[string][]PrioritySecGroup, string 到 PrioritySecGroup 数组的映射 */ + @UCloudParam("UniToPrioritySecGroup") + private String uniToPrioritySecGroup; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public Boolean getIsRemoveFirewall() { + return isRemoveFirewall; + } + + public void setIsRemoveFirewall(Boolean isRemoveFirewall) { + this.isRemoveFirewall = isRemoveFirewall; + } + + public List getPrioritySecGroup() { + return prioritySecGroup; + } + + public void setPrioritySecGroup(List prioritySecGroup) { + this.prioritySecGroup = prioritySecGroup; + } + + public String getUniToPrioritySecGroup() { + return uniToPrioritySecGroup; + } + + public void setUniToPrioritySecGroup(String uniToPrioritySecGroup) { + this.uniToPrioritySecGroup = uniToPrioritySecGroup; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToSecGroupResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToSecGroupResponse.java new file mode 100644 index 00000000..d5e01087 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/SwitchToSecGroupResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class SwitchToSecGroupResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWRequest.java new file mode 100644 index 00000000..3cb18e1d --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWRequest.java @@ -0,0 +1,99 @@ +/** + * 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.vpc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateNATGWRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** natgw id */ + @NotEmpty + @UCloudParam("NATGWId") + private String natgwId; + + /** NATGateWay 名字 */ + @UCloudParam("NATGWName") + private String natgwName; + + /** 业务组 */ + @UCloudParam("Tag") + private String tag; + + /** 备注 */ + @UCloudParam("Remark") + private String remark; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getNATGWId() { + return natgwId; + } + + public void setNATGWId(String natgwId) { + this.natgwId = natgwId; + } + + public String getNATGWName() { + return natgwName; + } + + public void setNATGWName(String natgwName) { + this.natgwName = natgwName; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWResponse.java new file mode 100644 index 00000000..11fcf136 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateNATGWResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSnatpoolRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSnatpoolRequest.java new file mode 100644 index 00000000..dea703e3 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSnatpoolRequest.java @@ -0,0 +1,76 @@ +/** + * 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.vpc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateNATGWSnatpoolRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** NAT网关的资源ID */ + @NotEmpty + @UCloudParam("NATGWId") + private String natgwId; + + /** 开启,"enable";关闭,"disable"; */ + @NotEmpty + @UCloudParam("IsSnatpoolEnabled") + private String isSnatpoolEnabled; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getNATGWId() { + return natgwId; + } + + public void setNATGWId(String natgwId) { + this.natgwId = natgwId; + } + + public String getIsSnatpoolEnabled() { + return isSnatpoolEnabled; + } + + public void setIsSnatpoolEnabled(String isSnatpoolEnabled) { + this.isSnatpoolEnabled = isSnatpoolEnabled; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSnatpoolResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSnatpoolResponse.java new file mode 100644 index 00000000..240a0267 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNATGWSnatpoolResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateNATGWSnatpoolResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkInterfaceDefaultOutputRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkInterfaceDefaultOutputRequest.java new file mode 100644 index 00000000..a0a7e4d5 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkInterfaceDefaultOutputRequest.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.vpc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateNetworkInterfaceDefaultOutputRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 虚拟网卡Id */ + @NotEmpty + @UCloudParam("InterfaceId") + private String interfaceId; + + /** 出口IP */ + @UCloudParam("Output") + private String output; + + 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 getInterfaceId() { + return interfaceId; + } + + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + public String getOutput() { + return output; + } + + public void setOutput(String output) { + this.output = output; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkInterfaceDefaultOutputResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkInterfaceDefaultOutputResponse.java new file mode 100644 index 00000000..a017dd59 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateNetworkInterfaceDefaultOutputResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateNetworkInterfaceDefaultOutputResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupAssociationRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupAssociationRequest.java new file mode 100644 index 00000000..0b020e3a --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupAssociationRequest.java @@ -0,0 +1,118 @@ +/** + * 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.vpc.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 UpdateSecGroupAssociationRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 资源ID */ + @NotEmpty + @UCloudParam("ResourceId") + private String resourceId; + + /** 被替换的安全组ID。支持数组格式,即为 string 数组。 */ + @NotEmpty + @UCloudParam("OldSecGroupId") + private List oldSecGroupId; + + /** */ + @UCloudParam("NewPrioritySecGroup") + private List newPrioritySecGroup; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public List getOldSecGroupId() { + return oldSecGroupId; + } + + public void setOldSecGroupId(List oldSecGroupId) { + this.oldSecGroupId = oldSecGroupId; + } + + public List getNewPrioritySecGroup() { + return newPrioritySecGroup; + } + + public void setNewPrioritySecGroup(List newPrioritySecGroup) { + this.newPrioritySecGroup = newPrioritySecGroup; + } + + public static class NewPrioritySecGroup extends Request { + + /** 新绑定安全组的绑定优先级。支持 NewPrioritySecGroup 为数组格式,即传对应数据的 JSON 格式数组。 */ + @NotEmpty + @UCloudParam("Priority") + private Integer priority; + + /** 需新绑定的安全组ID */ + @NotEmpty + @UCloudParam("SecGroupId") + private String secGroupId; + + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public String getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(String secGroupId) { + this.secGroupId = secGroupId; + } + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupAssociationResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupAssociationResponse.java new file mode 100644 index 00000000..44cfbd0b --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupAssociationResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateSecGroupAssociationResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRequest.java new file mode 100644 index 00000000..13cdae88 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRequest.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.vpc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateSecGroupRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 安全组资源ID数组。不支持 .n 格式。Type 为 string 数组。 */ + @NotEmpty + @UCloudParam("SecGroupId") + private String secGroupId; + + /** 安全组名称,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 */ + @UCloudParam("Name") + private String name; + + /** 安全组备注,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 */ + @UCloudParam("Remark") + private String remark; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(String secGroupId) { + this.secGroupId = secGroupId; + } + + 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; + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupResponse.java new file mode 100644 index 00000000..18850dbb --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateSecGroupResponse extends Response {} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRuleRequest.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRuleRequest.java new file mode 100644 index 00000000..07307793 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRuleRequest.java @@ -0,0 +1,195 @@ +/** + * 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.vpc.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 UpdateSecGroupRuleRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 规则所属得安全组 ID。 */ + @NotEmpty + @UCloudParam("SecGroupId") + private String secGroupId; + + /** */ + @UCloudParam("Rule") + private List rule; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(String secGroupId) { + this.secGroupId = secGroupId; + } + + public List getRule() { + return rule; + } + + public void setRule(List rule) { + this.rule = rule; + } + + public static class Rule extends Request { + + /** 规则 ID */ + @NotEmpty + @UCloudParam("RuleId") + private String ruleId; + + /** "Ingress/Egress",入站规则/出站规则 */ + @NotEmpty + @UCloudParam("Direction") + private String direction; + + /** IP 地址信息,逗号分隔。 */ + @NotEmpty + @UCloudParam("IPRange") + private String ipRange; + + /** 规则优先级。范围为 1~200 */ + @NotEmpty + @UCloudParam("Priority") + private Integer priority; + + /** 协议类型。"TCP","UDP","ICMP","ICMPv6","ALL" */ + @NotEmpty + @UCloudParam("ProtocolType") + private String protocolType; + + /** 目的端口。逗号分隔,如 "80,443"、"443,2000-10000" */ + @NotEmpty + @UCloudParam("DstPort") + private String dstPort; + + /** 规则行为。"Accept" 或 "Drop" */ + @NotEmpty + @UCloudParam("RuleAction") + private String ruleAction; + + /** 规则备注 */ + @NotEmpty + @UCloudParam("Remark") + private String remark; + + /** IP 版本,如 “IPv4”。支持 IPv6 后废弃 */ + @UCloudParam("IPVersion") + private String ipVersion; + + public String getRuleId() { + return ruleId; + } + + public void setRuleId(String ruleId) { + this.ruleId = ruleId; + } + + public String getDirection() { + return direction; + } + + public void setDirection(String direction) { + this.direction = direction; + } + + public String getIPRange() { + return ipRange; + } + + public void setIPRange(String ipRange) { + this.ipRange = ipRange; + } + + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public String getProtocolType() { + return protocolType; + } + + public void setProtocolType(String protocolType) { + this.protocolType = protocolType; + } + + public String getDstPort() { + return dstPort; + } + + public void setDstPort(String dstPort) { + this.dstPort = dstPort; + } + + public String getRuleAction() { + return ruleAction; + } + + public void setRuleAction(String ruleAction) { + this.ruleAction = ruleAction; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getIPVersion() { + return ipVersion; + } + + public void setIPVersion(String ipVersion) { + this.ipVersion = ipVersion; + } + } +} diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRuleResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRuleResponse.java new file mode 100644 index 00000000..573202a9 --- /dev/null +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/UpdateSecGroupRuleResponse.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.vpc.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateSecGroupRuleResponse extends Response {}