From c90a581f8c2a12be52214f45775e837acbd7d4bd Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Thu, 18 Dec 2025 07:35:36 +0000 Subject: [PATCH] sdk: rolling update for 1.2.54-release --- VERSION | 2 +- examples/generic/pom.xml | 4 +- examples/uhost/pom.xml | 4 +- pom.xml | 4 +- ucloud-sdk-java-cloudwatch/pom.xml | 6 +- ucloud-sdk-java-common/pom.xml | 4 +- ucloud-sdk-java-cube/pom.xml | 6 +- ucloud-sdk-java-ipsecvpn/pom.xml | 6 +- ucloud-sdk-java-label/pom.xml | 6 +- ucloud-sdk-java-nlb/pom.xml | 6 +- ucloud-sdk-java-pathx/pom.xml | 6 +- ucloud-sdk-java-sts/pom.xml | 6 +- ucloud-sdk-java-uaccount/pom.xml | 6 +- ucloud-sdk-java-uai_modelverse/pom.xml | 6 +- ucloud-sdk-java-ubill/pom.xml | 6 +- ucloud-sdk-java-ucdn/pom.xml | 6 +- ucloud-sdk-java-ucompshare/pom.xml | 6 +- ucloud-sdk-java-udb/pom.xml | 6 +- ucloud-sdk-java-udbproxy/pom.xml | 6 +- ucloud-sdk-java-udi/pom.xml | 6 +- ucloud-sdk-java-udisk/pom.xml | 6 +- ucloud-sdk-java-udns/pom.xml | 6 +- ucloud-sdk-java-udpn/pom.xml | 6 +- ucloud-sdk-java-uec/pom.xml | 6 +- ucloud-sdk-java-uewaf/pom.xml | 6 +- ucloud-sdk-java-ufile/pom.xml | 6 +- ucloud-sdk-java-ufs/pom.xml | 6 +- ucloud-sdk-java-uhost/pom.xml | 6 +- ucloud-sdk-java-uk8s/pom.xml | 6 +- ucloud-sdk-java-ulb/pom.xml | 6 +- ucloud-sdk-java-ulighthost/pom.xml | 49 ++ .../ulighthost/client/ULightHostClient.java | 250 ++++++++ .../client/ULightHostClientInterface.java | 186 ++++++ .../CheckULHostResourceCapacityRequest.java | 163 +++++ .../CheckULHostResourceCapacityResponse.java | 34 ++ .../models/CreateULHostInstanceRequest.java | 179 ++++++ .../models/CreateULHostInstanceResponse.java | 34 ++ .../models/DescribeULHostBundlesRequest.java | 50 ++ .../models/DescribeULHostBundlesResponse.java | 110 ++++ .../models/DescribeULHostImageRequest.java | 159 +++++ .../models/DescribeULHostImageResponse.java | 272 +++++++++ .../models/DescribeULHostInstanceRequest.java | 87 +++ .../DescribeULHostInstanceResponse.java | 566 ++++++++++++++++++ .../models/GetULHostInstancePriceRequest.java | 99 +++ .../GetULHostInstancePriceResponse.java | 74 +++ .../models/GetULHostRenewPriceRequest.java | 75 +++ .../models/GetULHostRenewPriceResponse.java | 74 +++ .../models/ModifyULHostAttributeRequest.java | 87 +++ .../models/ModifyULHostAttributeResponse.java | 34 ++ .../models/PoweroffULHostInstanceRequest.java | 63 ++ .../PoweroffULHostInstanceResponse.java | 34 ++ .../models/RebootULHostInstanceRequest.java | 63 ++ .../models/RebootULHostInstanceResponse.java | 34 ++ .../ReinstallULHostInstanceRequest.java | 89 +++ .../ReinstallULHostInstanceResponse.java | 34 ++ .../ResetULHostInstancePasswordRequest.java | 76 +++ .../ResetULHostInstancePasswordResponse.java | 34 ++ .../models/StartULHostInstanceRequest.java | 63 ++ .../models/StartULHostInstanceResponse.java | 34 ++ .../models/StopULHostInstanceRequest.java | 63 ++ .../models/StopULHostInstanceResponse.java | 34 ++ .../TerminateULHostInstanceRequest.java | 75 +++ .../TerminateULHostInstanceResponse.java | 46 ++ ucloud-sdk-java-ulog/pom.xml | 6 +- ucloud-sdk-java-umem/pom.xml | 6 +- ucloud-sdk-java-umon/pom.xml | 6 +- ucloud-sdk-java-umongodb/pom.xml | 6 +- ucloud-sdk-java-unet/pom.xml | 6 +- ucloud-sdk-java-upfs/pom.xml | 6 +- ucloud-sdk-java-upgsql/pom.xml | 6 +- ucloud-sdk-java-uphone/pom.xml | 6 +- ucloud-sdk-java-uphost/pom.xml | 6 +- ucloud-sdk-java-uslk/pom.xml | 6 +- ucloud-sdk-java-usms/pom.xml | 6 +- ucloud-sdk-java-usnap/pom.xml | 6 +- ucloud-sdk-java-uvms/pom.xml | 6 +- ucloud-sdk-java-vpc/pom.xml | 6 +- 77 files changed, 3451 insertions(+), 125 deletions(-) create mode 100644 ucloud-sdk-java-ulighthost/pom.xml create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/client/ULightHostClient.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/client/ULightHostClientInterface.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostImageRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostImageResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostInstanceRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostInstanceResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostInstancePriceRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostInstancePriceResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostRenewPriceRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostRenewPriceResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ModifyULHostAttributeRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ModifyULHostAttributeResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceResponse.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceRequest.java create mode 100644 ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceResponse.java diff --git a/VERSION b/VERSION index 6f948023..edce56f4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.53-release +1.2.54-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index feda091f..6df36139 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.53-release + 1.2.54-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index ea31aaec..7aff8ddf 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.53-release + 1.2.54-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.53-release + 1.2.54-release diff --git a/pom.xml b/pom.xml index c20b9169..74d0df5e 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.53-release + 1.2.54-release ucloud-sdk-java-common ucloud-sdk-java-cloudwatch @@ -35,6 +35,7 @@ ucloud-sdk-java-uhost ucloud-sdk-java-uk8s ucloud-sdk-java-ulb + ucloud-sdk-java-ulighthost ucloud-sdk-java-ulog ucloud-sdk-java-umem ucloud-sdk-java-umon @@ -49,6 +50,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 a3e5b118..cf6f0d72 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-cloudwatch ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 6938417c..9d2868da 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-common ucloud-sdk-java - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index 7911900e..262cd995 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-cube ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 44c7146e..1292be4e 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-ipsecvpn ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-label/pom.xml b/ucloud-sdk-java-label/pom.xml index 351a9d11..07527f3b 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-label ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-nlb/pom.xml b/ucloud-sdk-java-nlb/pom.xml index 9a5f6d4f..970e9233 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-nlb ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index eece8fbe..e998dedc 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-pathx ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index 7c394ca8..5acbe087 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-sts ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index d3489ae8..c1832f0e 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-uaccount ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index c6c8b0ac..8d63638e 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-uai_modelverse ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 95df20a5..bb1dd4fb 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-ubill ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index a93b340a..8877b8f9 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-ucdn ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index d97fe3bb..9e382e22 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-ucompshare ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index 6c922e59..f9c8b545 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-udb ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index 4599f5a6..6e60f3fc 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-udbproxy ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index f095b6b5..8556ce11 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-udi ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index fe0f6493..b01a1ce5 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-udisk ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml index 4b600d90..9d437fbb 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-udns ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index b0401084..00f081ee 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-udpn ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index 1d9310c1..68a447cd 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-uec ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index 21c23050..6f29a4d0 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-uewaf ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 8de77258..a8701d20 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-ufile ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 0aecc29b..60474c4d 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-ufs ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index cd7bbdf6..efd57a50 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-uhost ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index be62c078..8e89325c 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-uk8s ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index 5a5465a3..bd5601e3 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-ulb ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-ulighthost/pom.xml b/ucloud-sdk-java-ulighthost/pom.xml new file mode 100644 index 00000000..2a9aeef9 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/pom.xml @@ -0,0 +1,49 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.2.54-release + + + 4.0.0 + ucloud-sdk-java-ulighthost + ucloud-sdk-java + 1.2.54-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.54-release + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/client/ULightHostClient.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/client/ULightHostClient.java new file mode 100644 index 00000000..ed3f82e1 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/client/ULightHostClient.java @@ -0,0 +1,250 @@ +/** + * 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.ulighthost.client; + +import cn.ucloud.common.client.DefaultClient; +import cn.ucloud.common.config.Config; +import cn.ucloud.common.credential.Credential; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.ulighthost.models.CheckULHostResourceCapacityRequest; +import cn.ucloud.ulighthost.models.CheckULHostResourceCapacityResponse; +import cn.ucloud.ulighthost.models.CreateULHostInstanceRequest; +import cn.ucloud.ulighthost.models.CreateULHostInstanceResponse; +import cn.ucloud.ulighthost.models.DescribeULHostBundlesRequest; +import cn.ucloud.ulighthost.models.DescribeULHostBundlesResponse; +import cn.ucloud.ulighthost.models.DescribeULHostImageRequest; +import cn.ucloud.ulighthost.models.DescribeULHostImageResponse; +import cn.ucloud.ulighthost.models.DescribeULHostInstanceRequest; +import cn.ucloud.ulighthost.models.DescribeULHostInstanceResponse; +import cn.ucloud.ulighthost.models.GetULHostInstancePriceRequest; +import cn.ucloud.ulighthost.models.GetULHostInstancePriceResponse; +import cn.ucloud.ulighthost.models.GetULHostRenewPriceRequest; +import cn.ucloud.ulighthost.models.GetULHostRenewPriceResponse; +import cn.ucloud.ulighthost.models.ModifyULHostAttributeRequest; +import cn.ucloud.ulighthost.models.ModifyULHostAttributeResponse; +import cn.ucloud.ulighthost.models.PoweroffULHostInstanceRequest; +import cn.ucloud.ulighthost.models.PoweroffULHostInstanceResponse; +import cn.ucloud.ulighthost.models.RebootULHostInstanceRequest; +import cn.ucloud.ulighthost.models.RebootULHostInstanceResponse; +import cn.ucloud.ulighthost.models.ReinstallULHostInstanceRequest; +import cn.ucloud.ulighthost.models.ReinstallULHostInstanceResponse; +import cn.ucloud.ulighthost.models.ResetULHostInstancePasswordRequest; +import cn.ucloud.ulighthost.models.ResetULHostInstancePasswordResponse; +import cn.ucloud.ulighthost.models.StartULHostInstanceRequest; +import cn.ucloud.ulighthost.models.StartULHostInstanceResponse; +import cn.ucloud.ulighthost.models.StopULHostInstanceRequest; +import cn.ucloud.ulighthost.models.StopULHostInstanceResponse; +import cn.ucloud.ulighthost.models.TerminateULHostInstanceRequest; +import cn.ucloud.ulighthost.models.TerminateULHostInstanceResponse; + +/** This client is used to call actions of **ULightHost** service */ +public class ULightHostClient extends DefaultClient implements ULightHostClientInterface { + public ULightHostClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * CheckULHostResourceCapacity - 检查轻量应用云主机资源余量 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckULHostResourceCapacityResponse checkULHostResourceCapacity( + CheckULHostResourceCapacityRequest request) throws UCloudException { + request.setAction("CheckULHostResourceCapacity"); + return (CheckULHostResourceCapacityResponse) + this.invoke(request, CheckULHostResourceCapacityResponse.class); + } + + /** + * CreateULHostInstance - 创建轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateULHostInstanceResponse createULHostInstance(CreateULHostInstanceRequest request) + throws UCloudException { + request.setAction("CreateULHostInstance"); + return (CreateULHostInstanceResponse) + this.invoke(request, CreateULHostInstanceResponse.class); + } + + /** + * DescribeULHostBundles - 获取轻量应用云主机套餐列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULHostBundlesResponse describeULHostBundles(DescribeULHostBundlesRequest request) + throws UCloudException { + request.setAction("DescribeULHostBundles"); + return (DescribeULHostBundlesResponse) + this.invoke(request, DescribeULHostBundlesResponse.class); + } + + /** + * DescribeULHostImage - 获取轻量应用主机镜像列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULHostImageResponse describeULHostImage(DescribeULHostImageRequest request) + throws UCloudException { + request.setAction("DescribeULHostImage"); + return (DescribeULHostImageResponse) + this.invoke(request, DescribeULHostImageResponse.class); + } + + /** + * DescribeULHostInstance - 获取轻量应用云主机列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULHostInstanceResponse describeULHostInstance( + DescribeULHostInstanceRequest request) throws UCloudException { + request.setAction("DescribeULHostInstance"); + return (DescribeULHostInstanceResponse) + this.invoke(request, DescribeULHostInstanceResponse.class); + } + + /** + * GetULHostInstancePrice - 获取轻量应用云主机套餐价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetULHostInstancePriceResponse getULHostInstancePrice( + GetULHostInstancePriceRequest request) throws UCloudException { + request.setAction("GetULHostInstancePrice"); + return (GetULHostInstancePriceResponse) + this.invoke(request, GetULHostInstancePriceResponse.class); + } + + /** + * GetULHostRenewPrice - 获取主机续费价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetULHostRenewPriceResponse getULHostRenewPrice(GetULHostRenewPriceRequest request) + throws UCloudException { + request.setAction("GetULHostRenewPrice"); + return (GetULHostRenewPriceResponse) + this.invoke(request, GetULHostRenewPriceResponse.class); + } + + /** + * ModifyULHostAttribute - 修改轻量应用主机属性信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyULHostAttributeResponse modifyULHostAttribute(ModifyULHostAttributeRequest request) + throws UCloudException { + request.setAction("ModifyULHostAttribute"); + return (ModifyULHostAttributeResponse) + this.invoke(request, ModifyULHostAttributeResponse.class); + } + + /** + * PoweroffULHostInstance - 模拟主机掉电 + * + * @param request Request object + * @throws UCloudException Exception + */ + public PoweroffULHostInstanceResponse poweroffULHostInstance( + PoweroffULHostInstanceRequest request) throws UCloudException { + request.setAction("PoweroffULHostInstance"); + return (PoweroffULHostInstanceResponse) + this.invoke(request, PoweroffULHostInstanceResponse.class); + } + + /** + * RebootULHostInstance - 重启轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RebootULHostInstanceResponse rebootULHostInstance(RebootULHostInstanceRequest request) + throws UCloudException { + request.setAction("RebootULHostInstance"); + return (RebootULHostInstanceResponse) + this.invoke(request, RebootULHostInstanceResponse.class); + } + + /** + * ReinstallULHostInstance - 重装轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReinstallULHostInstanceResponse reinstallULHostInstance( + ReinstallULHostInstanceRequest request) throws UCloudException { + request.setAction("ReinstallULHostInstance"); + return (ReinstallULHostInstanceResponse) + this.invoke(request, ReinstallULHostInstanceResponse.class); + } + + /** + * ResetULHostInstancePassword - 重置轻量应用云主机密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResetULHostInstancePasswordResponse resetULHostInstancePassword( + ResetULHostInstancePasswordRequest request) throws UCloudException { + request.setAction("ResetULHostInstancePassword"); + return (ResetULHostInstancePasswordResponse) + this.invoke(request, ResetULHostInstancePasswordResponse.class); + } + + /** + * StartULHostInstance - 启动轻量应用主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartULHostInstanceResponse startULHostInstance(StartULHostInstanceRequest request) + throws UCloudException { + request.setAction("StartULHostInstance"); + return (StartULHostInstanceResponse) + this.invoke(request, StartULHostInstanceResponse.class); + } + + /** + * StopULHostInstance - 关闭轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopULHostInstanceResponse stopULHostInstance(StopULHostInstanceRequest request) + throws UCloudException { + request.setAction("StopULHostInstance"); + return (StopULHostInstanceResponse) this.invoke(request, StopULHostInstanceResponse.class); + } + + /** + * TerminateULHostInstance - 删除轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public TerminateULHostInstanceResponse terminateULHostInstance( + TerminateULHostInstanceRequest request) throws UCloudException { + request.setAction("TerminateULHostInstance"); + return (TerminateULHostInstanceResponse) + this.invoke(request, TerminateULHostInstanceResponse.class); + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/client/ULightHostClientInterface.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/client/ULightHostClientInterface.java new file mode 100644 index 00000000..3bb3405d --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/client/ULightHostClientInterface.java @@ -0,0 +1,186 @@ +/** + * 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.ulighthost.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.ulighthost.models.CheckULHostResourceCapacityRequest; +import cn.ucloud.ulighthost.models.CheckULHostResourceCapacityResponse; +import cn.ucloud.ulighthost.models.CreateULHostInstanceRequest; +import cn.ucloud.ulighthost.models.CreateULHostInstanceResponse; +import cn.ucloud.ulighthost.models.DescribeULHostBundlesRequest; +import cn.ucloud.ulighthost.models.DescribeULHostBundlesResponse; +import cn.ucloud.ulighthost.models.DescribeULHostImageRequest; +import cn.ucloud.ulighthost.models.DescribeULHostImageResponse; +import cn.ucloud.ulighthost.models.DescribeULHostInstanceRequest; +import cn.ucloud.ulighthost.models.DescribeULHostInstanceResponse; +import cn.ucloud.ulighthost.models.GetULHostInstancePriceRequest; +import cn.ucloud.ulighthost.models.GetULHostInstancePriceResponse; +import cn.ucloud.ulighthost.models.GetULHostRenewPriceRequest; +import cn.ucloud.ulighthost.models.GetULHostRenewPriceResponse; +import cn.ucloud.ulighthost.models.ModifyULHostAttributeRequest; +import cn.ucloud.ulighthost.models.ModifyULHostAttributeResponse; +import cn.ucloud.ulighthost.models.PoweroffULHostInstanceRequest; +import cn.ucloud.ulighthost.models.PoweroffULHostInstanceResponse; +import cn.ucloud.ulighthost.models.RebootULHostInstanceRequest; +import cn.ucloud.ulighthost.models.RebootULHostInstanceResponse; +import cn.ucloud.ulighthost.models.ReinstallULHostInstanceRequest; +import cn.ucloud.ulighthost.models.ReinstallULHostInstanceResponse; +import cn.ucloud.ulighthost.models.ResetULHostInstancePasswordRequest; +import cn.ucloud.ulighthost.models.ResetULHostInstancePasswordResponse; +import cn.ucloud.ulighthost.models.StartULHostInstanceRequest; +import cn.ucloud.ulighthost.models.StartULHostInstanceResponse; +import cn.ucloud.ulighthost.models.StopULHostInstanceRequest; +import cn.ucloud.ulighthost.models.StopULHostInstanceResponse; +import cn.ucloud.ulighthost.models.TerminateULHostInstanceRequest; +import cn.ucloud.ulighthost.models.TerminateULHostInstanceResponse; + +/** This client is used to call actions of **ULightHost** service */ +public interface ULightHostClientInterface extends Client { + + /** + * CheckULHostResourceCapacity - 检查轻量应用云主机资源余量 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckULHostResourceCapacityResponse checkULHostResourceCapacity( + CheckULHostResourceCapacityRequest request) throws UCloudException; + + /** + * CreateULHostInstance - 创建轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateULHostInstanceResponse createULHostInstance(CreateULHostInstanceRequest request) + throws UCloudException; + + /** + * DescribeULHostBundles - 获取轻量应用云主机套餐列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULHostBundlesResponse describeULHostBundles(DescribeULHostBundlesRequest request) + throws UCloudException; + + /** + * DescribeULHostImage - 获取轻量应用主机镜像列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULHostImageResponse describeULHostImage(DescribeULHostImageRequest request) + throws UCloudException; + + /** + * DescribeULHostInstance - 获取轻量应用云主机列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULHostInstanceResponse describeULHostInstance( + DescribeULHostInstanceRequest request) throws UCloudException; + + /** + * GetULHostInstancePrice - 获取轻量应用云主机套餐价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetULHostInstancePriceResponse getULHostInstancePrice( + GetULHostInstancePriceRequest request) throws UCloudException; + + /** + * GetULHostRenewPrice - 获取主机续费价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetULHostRenewPriceResponse getULHostRenewPrice(GetULHostRenewPriceRequest request) + throws UCloudException; + + /** + * ModifyULHostAttribute - 修改轻量应用主机属性信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyULHostAttributeResponse modifyULHostAttribute(ModifyULHostAttributeRequest request) + throws UCloudException; + + /** + * PoweroffULHostInstance - 模拟主机掉电 + * + * @param request Request object + * @throws UCloudException Exception + */ + public PoweroffULHostInstanceResponse poweroffULHostInstance( + PoweroffULHostInstanceRequest request) throws UCloudException; + + /** + * RebootULHostInstance - 重启轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RebootULHostInstanceResponse rebootULHostInstance(RebootULHostInstanceRequest request) + throws UCloudException; + + /** + * ReinstallULHostInstance - 重装轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReinstallULHostInstanceResponse reinstallULHostInstance( + ReinstallULHostInstanceRequest request) throws UCloudException; + + /** + * ResetULHostInstancePassword - 重置轻量应用云主机密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResetULHostInstancePasswordResponse resetULHostInstancePassword( + ResetULHostInstancePasswordRequest request) throws UCloudException; + + /** + * StartULHostInstance - 启动轻量应用主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartULHostInstanceResponse startULHostInstance(StartULHostInstanceRequest request) + throws UCloudException; + + /** + * StopULHostInstance - 关闭轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopULHostInstanceResponse stopULHostInstance(StopULHostInstanceRequest request) + throws UCloudException; + + /** + * TerminateULHostInstance - 删除轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public TerminateULHostInstanceResponse terminateULHostInstance( + TerminateULHostInstanceRequest request) throws UCloudException; +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityRequest.java new file mode 100644 index 00000000..22e172bf --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityRequest.java @@ -0,0 +1,163 @@ +/** + * 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.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CheckULHostResourceCapacityRequest 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。 请通过 [DescribeImage](describe_image.html)获取 */ + @NotEmpty + @UCloudParam("ImageId") + private String imageId; + + /** 套餐ID。如:"ulh.c1m1s40b30t800" */ + @NotEmpty + @UCloudParam("BundleId") + private String bundleId; + + /** 轻量应用主机名称。默认:套餐ID。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。 */ + @UCloudParam("Name") + private String name; + + /** 计费模式。枚举值: \\ > Year,按年付费; \\ > Month,按月付费;\\ > ThirtyDay,30天期付费,跨境电商相关套餐使用此计费方式;默认:Month */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买时长。默认:1。不支持购买到月末 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** VPC ID。默认为当前地域的默认VPC。 */ + @UCloudParam("VPCId") + private String vpcId; + + /** 子网 ID。默认为当前地域的默认子网。 */ + @UCloudParam("SubnetId") + private String subnetId; + + /** + * 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 + * [DescribeFirewall](api/unet-api/describe_firewall.html)。 + */ + @UCloudParam("SecurityGroupId") + private String securityGroupId; + + /** 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看 */ + @UCloudParam("CouponId") + private String couponId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getBundleId() { + return bundleId; + } + + public void setBundleId(String bundleId) { + this.bundleId = bundleId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityResponse.java new file mode 100644 index 00000000..c928655b --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityResponse.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.ulighthost.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CheckULHostResourceCapacityResponse extends Response { + + /** 资源是否充足 */ + @SerializedName("ResourceEnough") + private Boolean resourceEnough; + + public Boolean getResourceEnough() { + return resourceEnough; + } + + public void setResourceEnough(Boolean resourceEnough) { + this.resourceEnough = resourceEnough; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceRequest.java new file mode 100644 index 00000000..26fb4df5 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceRequest.java @@ -0,0 +1,179 @@ +/** + * 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.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateULHostInstanceRequest 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。 请通过 [DescribeImage](describe_image.html)获取 */ + @NotEmpty + @UCloudParam("ImageId") + private String imageId; + + /** 套餐ID。如:"ulh.c1m1s40b30t800" */ + @NotEmpty + @UCloudParam("BundleId") + private String bundleId; + + /** + * ULHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 + * | base64 + */ + @NotEmpty + @UCloudParam("Password") + private String password; + + /** 轻量应用主机名称。默认:套餐ID。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。 */ + @UCloudParam("Name") + private String name; + + /** 计费模式。枚举值: \\ > Year,按年付费; \\ > Month,按月付费;\\ > ThirtyDay,30天期付费,跨境电商相关套餐使用此计费方式;默认:Month */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买时长。默认:1。不支持购买到月末 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** VPC ID。默认为当前地域的默认VPC。 */ + @UCloudParam("VPCId") + private String vpcId; + + /** 子网 ID。默认为当前地域的默认子网。 */ + @UCloudParam("SubnetId") + private String subnetId; + + /** + * 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 + * [DescribeFirewall](api/unet-api/describe_firewall.html)。 + */ + @UCloudParam("SecurityGroupId") + private String securityGroupId; + + /** 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看 */ + @UCloudParam("CouponId") + private String couponId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getBundleId() { + return bundleId; + } + + public void setBundleId(String bundleId) { + this.bundleId = bundleId; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceResponse.java new file mode 100644 index 00000000..21ea2140 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceResponse.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.ulighthost.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateULHostInstanceResponse extends Response { + + /** 实例ID */ + @SerializedName("ULHostId") + private String ulHostId; + + public String getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesRequest.java new file mode 100644 index 00000000..a3de58b5 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesRequest.java @@ -0,0 +1,50 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeULHostBundlesRequest 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; + + 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; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesResponse.java new file mode 100644 index 00000000..1afdb43c --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesResponse.java @@ -0,0 +1,110 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulighthost.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeULHostBundlesResponse extends Response { + + /** 套餐列表 */ + @SerializedName("Bundles") + private List bundles; + + public List getBundles() { + return bundles; + } + + public void setBundles(List bundles) { + this.bundles = bundles; + } + + public static class Bundle extends Response { + + /** 套餐ID。 */ + @SerializedName("BundleId") + private String bundleId; + + /** CPU核数。 */ + @SerializedName("CPU") + private Integer cpu; + + /** 内存大小。单位:MB。 */ + @SerializedName("Memory") + private Integer memory; + + /** 系统盘大小。单位:GB。 */ + @SerializedName("SysDiskSpace") + private Integer sysDiskSpace; + + /** 外网带宽。单位:Mbps。 */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + /** 流量包大小。单位:GB。 */ + @SerializedName("TrafficPacket") + private Integer trafficPacket; + + public String getBundleId() { + return bundleId; + } + + public void setBundleId(String bundleId) { + this.bundleId = bundleId; + } + + public Integer getCPU() { + return cpu; + } + + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } + + public void setMemory(Integer memory) { + this.memory = memory; + } + + public Integer getSysDiskSpace() { + return sysDiskSpace; + } + + public void setSysDiskSpace(Integer sysDiskSpace) { + this.sysDiskSpace = sysDiskSpace; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public Integer getTrafficPacket() { + return trafficPacket; + } + + public void setTrafficPacket(Integer trafficPacket) { + this.trafficPacket = trafficPacket; + } + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostImageRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostImageRequest.java new file mode 100644 index 00000000..4fe60d4b --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostImageRequest.java @@ -0,0 +1,159 @@ +/** + * 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.ulighthost.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 DescribeULHostImageRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 镜像类型。标准镜像:Base,应用镜像:App, 自定义镜像:Custom,默认返回所有类型 */ + @UCloudParam("ImageType") + private String imageType; + + /** 使用场景,当ImageType为"App"时生效。 - Normal 常规专区 - CrossBorder 跨境专区 默认返回所有 */ + @UCloudParam("Scene") + private String scene; + + /** 操作系统类型:Linux, Windows 默认返回所有类型 */ + @UCloudParam("OsType") + private String osType; + + /** 镜像Id */ + @UCloudParam("ImageId") + private String imageId; + + /** 镜像Id列表 */ + @UCloudParam("ImageIds") + private List imageIds; + + /** 业务组Id。默认:Default */ + @UCloudParam("Tag") + private String tag; + + /** 列表起始位置偏移量,默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + /** 返回数据长度,默认为20 */ + @UCloudParam("Limit") + private Integer limit; + + 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 getImageType() { + return imageType; + } + + public void setImageType(String imageType) { + this.imageType = imageType; + } + + public String getScene() { + return scene; + } + + public void setScene(String scene) { + this.scene = scene; + } + + public String getOsType() { + return osType; + } + + public void setOsType(String osType) { + this.osType = osType; + } + + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public List getImageIds() { + return imageIds; + } + + public void setImageIds(List imageIds) { + this.imageIds = imageIds; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostImageResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostImageResponse.java new file mode 100644 index 00000000..09eca514 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostImageResponse.java @@ -0,0 +1,272 @@ +/** + * 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.ulighthost.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeULHostImageResponse extends Response { + + /** 满足条件的镜像总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 镜像列表详见 UHostImageSet */ + @SerializedName("ImageSet") + private List imageSet; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getImageSet() { + return imageSet; + } + + public void setImageSet(List imageSet) { + this.imageSet = imageSet; + } + + public static class ULHostImageSet extends Response { + + /** 可用区,参见 [可用区列表](../summary/regionlist.html) */ + @SerializedName("Zone") + private String zone; + + /** 镜像ID */ + @SerializedName("ImageId") + private String imageId; + + /** 镜像名称 */ + @SerializedName("ImageName") + private String imageName; + + /** 用于控制台显示的名称 */ + @SerializedName("DisplayName") + private String displayName; + + /** 业务组 */ + @SerializedName("Tag") + private String tag; + + /** 操作系统类型:Linux,Windows */ + @SerializedName("OsType") + private String osType; + + /** 操作系统名称 */ + @SerializedName("OsName") + private String osName; + + /** 镜像类型 标准镜像:Base, 行业镜像:Business,自定义镜像:Custom */ + @SerializedName("ImageType") + private String imageType; + + /** + * 特殊状态标识,目前包含NetEnhnced(网络增强1.0), NetEnhanced_Ultra(网络增强2.0), NetEnhanced_Extreme(网络增强3.0), + * HotPlug(热升级), GPU(GPU镜像),CloudInit, + * IPv6(支持IPv6网络),RssdAttachable(支持RSSD云盘),Vgpu_AMD(支持AMD的vgpu),Vgpu_NVIDIA(支持NVIDIA的vgpu),Aarch64_Type(支持arm64架构) + */ + @SerializedName("Features") + private List features; + + /** 集成软件名称(仅行业镜像将返回这个值) */ + @SerializedName("IntegratedSoftware") + private String integratedSoftware; + + /** 镜像状态, 可用:Available,制作中:Making, 不可用:Unavailable,复制中:Copying */ + @SerializedName("State") + private String state; + + /** 镜像描述 */ + @SerializedName("ImageDescription") + private String imageDescription; + + /** 创建时间,格式为Unix时间戳 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 镜像大小 */ + @SerializedName("ImageSize") + private Integer imageSize; + + /** 默认值为空'''。当CentOS 7.3/7.4/7.5等镜像会标记为“Broadwell” */ + @SerializedName("MinimalCPU") + private String minimalCPU; + + /** 系统EOL的时间,格式:YYYY/MM/DD */ + @SerializedName("MaintainEol") + private String maintainEol; + + /** + * 场景分类,目前包含Featured(精选),PreInstalledDrivers(预装驱动),AIPainting(AI绘画),AIModels(AI模型),HPC(高性能计算) + */ + @SerializedName("SceneCategories") + private List sceneCategories; + + /** 应用镜像图标url */ + @SerializedName("ImageLogoLink") + private String imageLogoLink; + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getImageName() { + return imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public String getOsType() { + return osType; + } + + public void setOsType(String osType) { + this.osType = osType; + } + + public String getOsName() { + return osName; + } + + public void setOsName(String osName) { + this.osName = osName; + } + + public String getImageType() { + return imageType; + } + + public void setImageType(String imageType) { + this.imageType = imageType; + } + + public List getFeatures() { + return features; + } + + public void setFeatures(List features) { + this.features = features; + } + + public String getIntegratedSoftware() { + return integratedSoftware; + } + + public void setIntegratedSoftware(String integratedSoftware) { + this.integratedSoftware = integratedSoftware; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getImageDescription() { + return imageDescription; + } + + public void setImageDescription(String imageDescription) { + this.imageDescription = imageDescription; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getImageSize() { + return imageSize; + } + + public void setImageSize(Integer imageSize) { + this.imageSize = imageSize; + } + + public String getMinimalCPU() { + return minimalCPU; + } + + public void setMinimalCPU(String minimalCPU) { + this.minimalCPU = minimalCPU; + } + + public String getMaintainEol() { + return maintainEol; + } + + public void setMaintainEol(String maintainEol) { + this.maintainEol = maintainEol; + } + + public List getSceneCategories() { + return sceneCategories; + } + + public void setSceneCategories(List sceneCategories) { + this.sceneCategories = sceneCategories; + } + + public String getImageLogoLink() { + return imageLogoLink; + } + + public void setImageLogoLink(String imageLogoLink) { + this.imageLogoLink = imageLogoLink; + } + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostInstanceRequest.java new file mode 100644 index 00000000..a11a1b09 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostInstanceRequest.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.ulighthost.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 DescribeULHostInstanceRequest 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("ULHostIds") + private List ulHostIds; + + /** 列表起始位置偏移量,默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + /** 返回数据长度,默认为20,最大100 */ + @UCloudParam("Limit") + private Integer limit; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public List getULHostIds() { + return ulHostIds; + } + + public void setULHostIds(List ulHostIds) { + this.ulHostIds = ulHostIds; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostInstanceResponse.java new file mode 100644 index 00000000..6b31f906 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostInstanceResponse.java @@ -0,0 +1,566 @@ +/** + * 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.ulighthost.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeULHostInstanceResponse extends Response { + + /** 实例列表 */ + @SerializedName("ULHostInstanceSets") + private List ulHostInstanceSets; + + public List getULHostInstanceSets() { + return ulHostInstanceSets; + } + + public void setULHostInstanceSets(List ulHostInstanceSets) { + this.ulHostInstanceSets = ulHostInstanceSets; + } + + public static class ExclusiveUTPInfo extends Response { + + /** 当前周期总流量 */ + @SerializedName("TotalSize") + private Integer totalSize; + + /** 当前周期剩余流量 */ + @SerializedName("AvailableSize") + private Integer availableSize; + + /** 当前周期已使用流量 */ + @SerializedName("UsedSize") + private Integer usedSize; + + /** 当前周期超出限额的流量 */ + @SerializedName("ExcessSize") + private Integer excessSize; + + /** 上次重置时间 */ + @SerializedName("LastResetTime") + private Integer lastResetTime; + + /** 下次重置时间 */ + @SerializedName("NextResetTime") + private Integer nextResetTime; + + /** 创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + public Integer getTotalSize() { + return totalSize; + } + + public void setTotalSize(Integer totalSize) { + this.totalSize = totalSize; + } + + public Integer getAvailableSize() { + return availableSize; + } + + public void setAvailableSize(Integer availableSize) { + this.availableSize = availableSize; + } + + public Integer getUsedSize() { + return usedSize; + } + + public void setUsedSize(Integer usedSize) { + this.usedSize = usedSize; + } + + public Integer getExcessSize() { + return excessSize; + } + + public void setExcessSize(Integer excessSize) { + this.excessSize = excessSize; + } + + public Integer getLastResetTime() { + return lastResetTime; + } + + public void setLastResetTime(Integer lastResetTime) { + this.lastResetTime = lastResetTime; + } + + public Integer getNextResetTime() { + return nextResetTime; + } + + public void setNextResetTime(Integer nextResetTime) { + this.nextResetTime = nextResetTime; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + } + + public static class UHostIPSet extends Response { + + /** IPv4/IPv6; */ + @SerializedName("IPMode") + private String ipMode; + + /** 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。 */ + @SerializedName("Default") + private String fDefault; + + /** 内网 Private 类型下,当前网卡的Mac。 */ + @SerializedName("Mac") + private String mac; + + /** 当前EIP的权重。权重最大的为当前的出口IP。 */ + @SerializedName("Weight") + private Integer weight; + + /** 国际: Internation,BGP: Bgp,内网: Private */ + @SerializedName("Type") + private String type; + + /** 外网IP资源ID 。(内网IP无对应的资源ID) */ + @SerializedName("IPId") + private String ipId; + + /** IP地址 */ + @SerializedName("IP") + private String ip; + + /** IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + /** IP地址对应的VPC ID。(北京一不支持,字段返回为空) */ + @SerializedName("VPCId") + private String vpcId; + + /** IP地址对应的子网 ID。(北京一不支持,字段返回为空) */ + @SerializedName("SubnetId") + private String subnetId; + + /** 弹性网卡为默认网卡时,返回对应的 ID 值 */ + @SerializedName("NetworkInterfaceId") + private String networkInterfaceId; + + public String getIPMode() { + return ipMode; + } + + public void setIPMode(String ipMode) { + this.ipMode = ipMode; + } + + public String getDefault() { + return fDefault; + } + + public void setDefault(String fDefault) { + this.fDefault = fDefault; + } + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getIPId() { + return ipId; + } + + public void setIPId(String ipId) { + this.ipId = ipId; + } + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getNetworkInterfaceId() { + return networkInterfaceId; + } + + public void setNetworkInterfaceId(String networkInterfaceId) { + this.networkInterfaceId = networkInterfaceId; + } + } + + public static class ULHostDiskSet extends Response { + + /** 磁盘Id */ + @SerializedName("DiskId") + private String diskId; + + /** 磁盘类型。如:"CLOUD_RSSD"、"CLOUD_SSD" */ + @SerializedName("DiskType") + private String diskType; + + /** 磁盘类型。系统盘:"Boot";数据盘:"Data" */ + @SerializedName("Type") + private String type; + + /** 磁盘大小。单位:GB */ + @SerializedName("Size") + private Integer size; + + /** 是否为系统盘。是:"True";否:"False" */ + @SerializedName("IsBoot") + private String isBoot; + + /** 磁盘盘符。系统盘:"vda" */ + @SerializedName("Drive") + private String drive; + + public String getDiskId() { + return diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public String getDiskType() { + return diskType; + } + + public void setDiskType(String diskType) { + this.diskType = diskType; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getIsBoot() { + return isBoot; + } + + public void setIsBoot(String isBoot) { + this.isBoot = isBoot; + } + + public String getDrive() { + return drive; + } + + public void setDrive(String drive) { + this.drive = drive; + } + } + + public static class ULHostInstanceSet extends Response { + + /** 可用区。 */ + @SerializedName("Zone") + private String zone; + + /** 实例Id。 */ + @SerializedName("ULHostId") + private String ulHostId; + + /** 实例名称。默认套餐Id */ + @SerializedName("Name") + private String name; + + /** 业务组。 */ + @SerializedName("Tag") + private String tag; + + /** 备注。 */ + @SerializedName("Remark") + private String remark; + + /** 镜像Id。 */ + @SerializedName("ImageId") + private String imageId; + + /** 镜像名称。 */ + @SerializedName("ImageName") + private String imageName; + + /** 【数组】镜像包含的应用列表。 */ + @SerializedName("Apps") + private List apps; + + /** CPU核数。 */ + @SerializedName("CPU") + private Integer cpu; + + /** 内存。单位:MB */ + @SerializedName("Memory") + private Integer memory; + + /** + * 实例状态。枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; + * \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting; \\ > 未知(空字符串,获取状态超时或出错):"" + */ + @SerializedName("State") + private String state; + + /** 计费模式。枚举值:Month/Year */ + @SerializedName("ChargeType") + private String chargeType; + + /** IP信息 */ + @SerializedName("IPSet") + private List ipSet; + + /** 磁盘信息 */ + @SerializedName("DiskSet") + private List diskSet; + + /** 流量包详情信息 */ + @SerializedName("EIPExclusiveUTPInfo") + private ExclusiveUTPInfo eipExclusiveUTPInfo; + + /** 是否自动续费。枚举值:Yes/No */ + @SerializedName("AutoRenew") + private String autoRenew; + + /** 是否过期。枚举值:Yes/No */ + @SerializedName("IsExpire") + private String isExpire; + + /** 过期时间。Unix时间戳 */ + @SerializedName("ExpireTime") + private Integer expireTime; + + /** 创建时间。Unix时间戳 */ + @SerializedName("CreateTime") + private Integer createTime; + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + 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 getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getImageName() { + return imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public List getApps() { + return apps; + } + + public void setApps(List apps) { + this.apps = apps; + } + + public Integer getCPU() { + return cpu; + } + + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } + + public void setMemory(Integer memory) { + this.memory = memory; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public List getIPSet() { + return ipSet; + } + + public void setIPSet(List ipSet) { + this.ipSet = ipSet; + } + + public List getDiskSet() { + return diskSet; + } + + public void setDiskSet(List diskSet) { + this.diskSet = diskSet; + } + + public ExclusiveUTPInfo getEIPExclusiveUTPInfo() { + return eipExclusiveUTPInfo; + } + + public void setEIPExclusiveUTPInfo(ExclusiveUTPInfo eipExclusiveUTPInfo) { + this.eipExclusiveUTPInfo = eipExclusiveUTPInfo; + } + + public String getAutoRenew() { + return autoRenew; + } + + public void setAutoRenew(String autoRenew) { + this.autoRenew = autoRenew; + } + + public String getIsExpire() { + return isExpire; + } + + public void setIsExpire(String isExpire) { + this.isExpire = isExpire; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostInstancePriceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostInstancePriceRequest.java new file mode 100644 index 00000000..6fdcc444 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostInstancePriceRequest.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.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetULHostInstancePriceRequest 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("BundleId") + private String bundleId; + + /** 获取指定计费模式的价格。枚举值:\\ > Year,按年付费; \\ > Month。未指定时,返回所有计费模式价格 */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买台数,范围[1,5]。默认:1 */ + @UCloudParam("Count") + private Integer count; + + /** 购买时长。默认: 1。不支持购买到月末 */ + @UCloudParam("Quantity") + private Integer quantity; + + 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 getBundleId() { + return bundleId; + } + + public void setBundleId(String bundleId) { + this.bundleId = bundleId; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostInstancePriceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostInstancePriceResponse.java new file mode 100644 index 00000000..6b81b161 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostInstancePriceResponse.java @@ -0,0 +1,74 @@ +/** + * 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.ulighthost.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetULHostInstancePriceResponse extends Response { + + /** 价格 */ + @SerializedName("PriceSet") + private List priceSet; + + public List getPriceSet() { + return priceSet; + } + + public void setPriceSet(List priceSet) { + this.priceSet = priceSet; + } + + public static class ULHostPriceSet extends Response { + + /** 计费模式 */ + @SerializedName("ChargeType") + private String chargeType; + + /** 价格 */ + @SerializedName("Price") + private Double price; + + /** 原价 */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } + + public Double getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostRenewPriceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostRenewPriceRequest.java new file mode 100644 index 00000000..02658503 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostRenewPriceRequest.java @@ -0,0 +1,75 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetULHostRenewPriceRequest 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; + + /** ULHost实例ID */ + @NotEmpty + @UCloudParam("ULHostId") + private String ulHostId; + + /** 计费类型。支持:Year/Month;默认:Month */ + @UCloudParam("ChargeType") + private String chargeType; + + 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 getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostRenewPriceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostRenewPriceResponse.java new file mode 100644 index 00000000..820737c1 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostRenewPriceResponse.java @@ -0,0 +1,74 @@ +/** + * 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.ulighthost.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetULHostRenewPriceResponse extends Response { + + /** 价格 */ + @SerializedName("PriceSet") + private List priceSet; + + public List getPriceSet() { + return priceSet; + } + + public void setPriceSet(List priceSet) { + this.priceSet = priceSet; + } + + public static class ULHostPriceSet extends Response { + + /** 计费模式 */ + @SerializedName("ChargeType") + private String chargeType; + + /** 价格 */ + @SerializedName("Price") + private Double price; + + /** 原价 */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } + + public Double getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ModifyULHostAttributeRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ModifyULHostAttributeRequest.java new file mode 100644 index 00000000..9b1dc6c3 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ModifyULHostAttributeRequest.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.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyULHostAttributeRequest 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; + + /** ULHost实例Id */ + @NotEmpty + @UCloudParam("ULHostId") + private String ulHostId; + + /** 名称。和Remark至少选择一个进行修改 */ + @UCloudParam("Name") + private String name; + + /** 备注。和Name至少选择一个进行修改 */ + @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 getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } + + 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-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ModifyULHostAttributeResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ModifyULHostAttributeResponse.java new file mode 100644 index 00000000..419a8cc0 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ModifyULHostAttributeResponse.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.ulighthost.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class ModifyULHostAttributeResponse extends Response { + + /** ULHost实例Id */ + @SerializedName("ULHostId") + private String ulHostId; + + public String getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceRequest.java new file mode 100644 index 00000000..0eec0a56 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceRequest.java @@ -0,0 +1,63 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class PoweroffULHostInstanceRequest 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; + + /** ULHost实例ID */ + @NotEmpty + @UCloudParam("ULHostId") + private String ulHostId; + + 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 getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceResponse.java new file mode 100644 index 00000000..aaf0d3b3 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceResponse.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.ulighthost.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class PoweroffULHostInstanceResponse extends Response { + + /** ULHost实例ID */ + @SerializedName("ULHostId") + private String ulHostId; + + public String getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceRequest.java new file mode 100644 index 00000000..352a15a5 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceRequest.java @@ -0,0 +1,63 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class RebootULHostInstanceRequest 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; + + /** ULHost实例ID */ + @NotEmpty + @UCloudParam("ULHostId") + private String ulHostId; + + 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 getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceResponse.java new file mode 100644 index 00000000..912745a6 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceResponse.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.ulighthost.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class RebootULHostInstanceResponse extends Response { + + /** ULHost实例ID */ + @SerializedName("ULHostId") + private String ulHostId; + + public String getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceRequest.java new file mode 100644 index 00000000..1c8c2d36 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceRequest.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.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ReinstallULHostInstanceRequest 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("ImageId") + private String imageId; + + /** 实例Id */ + @NotEmpty + @UCloudParam("ULHostId") + private String ulHostId; + + /** 登陆密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64 UGFzc3dvcmQx */ + @NotEmpty + @UCloudParam("Password") + private String password; + + 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 getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceResponse.java new file mode 100644 index 00000000..44907b71 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceResponse.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.ulighthost.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class ReinstallULHostInstanceResponse extends Response { + + /** 实例Id */ + @SerializedName("ULHostId") + private String ulHostId; + + public String getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordRequest.java new file mode 100644 index 00000000..f9910766 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordRequest.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.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ResetULHostInstancePasswordRequest 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; + + /** ULHost实例ID */ + @NotEmpty + @UCloudParam("ULHostId") + private String ulHostId; + + /** ULHost新密码(密码格式使用BASE64编码) */ + @NotEmpty + @UCloudParam("Password") + private String password; + + 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 getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordResponse.java new file mode 100644 index 00000000..a464d06d --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordResponse.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.ulighthost.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class ResetULHostInstancePasswordResponse extends Response { + + /** ULHost实例ID */ + @SerializedName("ULHostId") + private String ulHostId; + + public String getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceRequest.java new file mode 100644 index 00000000..eaa4d733 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceRequest.java @@ -0,0 +1,63 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class StartULHostInstanceRequest 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; + + /** ULHost实例ID */ + @NotEmpty + @UCloudParam("ULHostId") + private String ulHostId; + + 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 getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceResponse.java new file mode 100644 index 00000000..835804db --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceResponse.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.ulighthost.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class StartULHostInstanceResponse extends Response { + + /** ULHost实例ID */ + @SerializedName("ULHostId") + private String ulHostId; + + public String getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceRequest.java new file mode 100644 index 00000000..d912f10a --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceRequest.java @@ -0,0 +1,63 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class StopULHostInstanceRequest 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; + + /** ULHost实例ID。 */ + @NotEmpty + @UCloudParam("ULHostId") + private String ulHostId; + + 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 getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceResponse.java new file mode 100644 index 00000000..94eb6305 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceResponse.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.ulighthost.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class StopULHostInstanceResponse extends Response { + + /** ULHost实例ID */ + @SerializedName("ULHostId") + private String ulHostId; + + public String getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceRequest.java new file mode 100644 index 00000000..718f2aaf --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceRequest.java @@ -0,0 +1,75 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class TerminateULHostInstanceRequest 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; + + /** ULHost资源Id */ + @NotEmpty + @UCloudParam("ULHostId") + private String ulHostId; + + /** 删除主机时是否同时删除挂载的数据盘。默认为false。 */ + @UCloudParam("ReleaseUDisk") + private Boolean releaseUDisk; + + 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 getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } + + public Boolean getReleaseUDisk() { + return releaseUDisk; + } + + public void setReleaseUDisk(Boolean releaseUDisk) { + this.releaseUDisk = releaseUDisk; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceResponse.java new file mode 100644 index 00000000..629dbca9 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceResponse.java @@ -0,0 +1,46 @@ +/** + * 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.ulighthost.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class TerminateULHostInstanceResponse extends Response { + + /** 用于判断主机删除时是否进入回收站。放入回收站:"Yes", 彻底删除:“No”。 */ + @SerializedName("InRecycle") + private String inRecycle; + + /** ULHost 实例 Id */ + @SerializedName("ULHostId") + private String ulHostId; + + public String getInRecycle() { + return inRecycle; + } + + public void setInRecycle(String inRecycle) { + this.inRecycle = inRecycle; + } + + public String getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index 7ba0e26f..be7ef5cc 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-ulog ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index 815f6558..41bae39b 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-umem ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-umon/pom.xml b/ucloud-sdk-java-umon/pom.xml index abe5d662..dce4bc11 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-umon ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index 58ca85bf..eef47c70 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-umongodb ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index 1d173a0a..c137b109 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-unet ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-upfs/pom.xml b/ucloud-sdk-java-upfs/pom.xml index cf973b43..163650c5 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-upfs ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index 0a1bfb37..67074aa2 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-upgsql ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 0ce9bddf..5fb9bbe5 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-uphone ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 1e2bf908..28318cc1 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-uphost ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index 11a22bc5..988dca38 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-uslk ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 429f9968..11a6a6a7 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-usms ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index 4e1e43bd..e735f605 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-usnap ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index 1d529649..5f609f08 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-uvms ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index ec63344b..8ed8fc85 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.53-release + 1.2.54-release 4.0.0 ucloud-sdk-java-vpc ucloud-sdk-java - 1.2.53-release + 1.2.54-release cn.ucloud ucloud-sdk-java-common - 1.2.53-release + 1.2.54-release