diff --git a/VERSION b/VERSION index a05ce7a9..7e2b1e78 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.49-release +1.2.50-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index f807887b..4916cbd0 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.49-release + 1.2.50-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index b18ae315..2f4d4a69 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.49-release + 1.2.50-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.49-release + 1.2.50-release diff --git a/pom.xml b/pom.xml index 9ab64ea8..957bf8e7 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.49-release + 1.2.50-release ucloud-sdk-java-common ucloud-sdk-java-cloudwatch @@ -40,6 +40,7 @@ ucloud-sdk-java-umon ucloud-sdk-java-umongodb ucloud-sdk-java-unet + ucloud-sdk-java-upfs ucloud-sdk-java-uphost ucloud-sdk-java-upgsql ucloud-sdk-java-uphone diff --git a/ucloud-sdk-java-cloudwatch/pom.xml b/ucloud-sdk-java-cloudwatch/pom.xml index 96143dca..531309ed 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-cloudwatch ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index a1a5719e..2e934e15 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-common ucloud-sdk-java - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index 50616a32..21c97735 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-cube ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 7f35a86a..f9b5a0f5 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-ipsecvpn ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-label/pom.xml b/ucloud-sdk-java-label/pom.xml index fce918b3..9a60fc53 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-label ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-nlb/pom.xml b/ucloud-sdk-java-nlb/pom.xml index d4606724..1e443a3b 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-nlb ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index fd859a3b..85a11560 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-pathx ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index 1cef87d5..8fd4f768 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-sts ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index 1390339e..4743ce6b 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-uaccount ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index 6fca0c37..360f67d4 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-uai_modelverse ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 3d6a1854..5fbde382 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-ubill ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index a21af4c8..14f22cfb 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-ucdn ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index 5684a310..bbe633ec 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-ucompshare ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index e21302cb..9d44fc7c 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-udb ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index 8c4c5cb0..47b72b36 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-udbproxy ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index fac59fbf..d34d17c2 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-udi ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index 50292210..7e08263b 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-udisk ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml index df4fbf7d..70fcbe00 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-udns ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index 193c540f..22d66aa3 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-udpn ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index eabb8b2b..555eb8cb 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-uec ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index bd930b65..86f03a59 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-uewaf ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index cf2edf13..5473a272 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-ufile ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 450d1a2c..30dca116 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-ufs ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index 50154d3c..4cf212ed 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-uhost ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 71f92be9..d6a2635c 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-uk8s ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index 51ad4c61..beabef98 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-ulb ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index e3400aef..a730f030 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-ulog ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index 57d4737d..4c7a56bf 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-umem ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-umon/pom.xml b/ucloud-sdk-java-umon/pom.xml index 1c473ec7..993da105 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-umon ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index f4f6e213..cc92ea49 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-umongodb ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index b515187b..f52e90cd 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-unet ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-upfs/pom.xml b/ucloud-sdk-java-upfs/pom.xml new file mode 100644 index 00000000..0d23540e --- /dev/null +++ b/ucloud-sdk-java-upfs/pom.xml @@ -0,0 +1,49 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.2.50-release + + + 4.0.0 + ucloud-sdk-java-upfs + ucloud-sdk-java + 1.2.50-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.50-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-upfs/src/main/java/cn/ucloud/upfs/client/UPFSClient.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/client/UPFSClient.java new file mode 100644 index 00000000..9e0812a5 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/client/UPFSClient.java @@ -0,0 +1,127 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.upfs.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.upfs.models.CreateUPFSVolumeRequest; +import cn.ucloud.upfs.models.CreateUPFSVolumeResponse; +import cn.ucloud.upfs.models.DescribeUPFSVolumePriceRequest; +import cn.ucloud.upfs.models.DescribeUPFSVolumePriceResponse; +import cn.ucloud.upfs.models.DescribeUPFSVolumeRequest; +import cn.ucloud.upfs.models.DescribeUPFSVolumeResponse; +import cn.ucloud.upfs.models.DescribeUPFSVolumeUpgradePriceRequest; +import cn.ucloud.upfs.models.DescribeUPFSVolumeUpgradePriceResponse; +import cn.ucloud.upfs.models.ExtendUPFSVolumeRequest; +import cn.ucloud.upfs.models.ExtendUPFSVolumeResponse; +import cn.ucloud.upfs.models.RemoveUPFSVolumeRequest; +import cn.ucloud.upfs.models.RemoveUPFSVolumeResponse; +import cn.ucloud.upfs.models.UpdateUPFSVolumeInfoRequest; +import cn.ucloud.upfs.models.UpdateUPFSVolumeInfoResponse; + +/** This client is used to call actions of **UPFS** service */ +public class UPFSClient extends DefaultClient implements UPFSClientInterface { + public UPFSClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * CreateUPFSVolume - 创建UPFS文件系统 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPFSVolumeResponse createUPFSVolume(CreateUPFSVolumeRequest request) + throws UCloudException { + request.setAction("CreateUPFSVolume"); + return (CreateUPFSVolumeResponse) this.invoke(request, CreateUPFSVolumeResponse.class); + } + + /** + * DescribeUPFSVolume - 获取UPFS文件系统列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPFSVolumeResponse describeUPFSVolume(DescribeUPFSVolumeRequest request) + throws UCloudException { + request.setAction("DescribeUPFSVolume"); + return (DescribeUPFSVolumeResponse) this.invoke(request, DescribeUPFSVolumeResponse.class); + } + + /** + * DescribeUPFSVolumePrice - 获取UPFS文件系统价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPFSVolumePriceResponse describeUPFSVolumePrice( + DescribeUPFSVolumePriceRequest request) throws UCloudException { + request.setAction("DescribeUPFSVolumePrice"); + return (DescribeUPFSVolumePriceResponse) + this.invoke(request, DescribeUPFSVolumePriceResponse.class); + } + + /** + * DescribeUPFSVolumeUpgradePrice - UPFS文件系统扩容价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPFSVolumeUpgradePriceResponse describeUPFSVolumeUpgradePrice( + DescribeUPFSVolumeUpgradePriceRequest request) throws UCloudException { + request.setAction("DescribeUPFSVolumeUpgradePrice"); + return (DescribeUPFSVolumeUpgradePriceResponse) + this.invoke(request, DescribeUPFSVolumeUpgradePriceResponse.class); + } + + /** + * ExtendUPFSVolume - UPFS文件系统扩容 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ExtendUPFSVolumeResponse extendUPFSVolume(ExtendUPFSVolumeRequest request) + throws UCloudException { + request.setAction("ExtendUPFSVolume"); + return (ExtendUPFSVolumeResponse) this.invoke(request, ExtendUPFSVolumeResponse.class); + } + + /** + * RemoveUPFSVolume - 删除UPFS文件系统 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RemoveUPFSVolumeResponse removeUPFSVolume(RemoveUPFSVolumeRequest request) + throws UCloudException { + request.setAction("RemoveUPFSVolume"); + return (RemoveUPFSVolumeResponse) this.invoke(request, RemoveUPFSVolumeResponse.class); + } + + /** + * UpdateUPFSVolumeInfo - 更改UPFS文件系统相关信息(名称/备注) + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPFSVolumeInfoResponse updateUPFSVolumeInfo(UpdateUPFSVolumeInfoRequest request) + throws UCloudException { + request.setAction("UpdateUPFSVolumeInfo"); + return (UpdateUPFSVolumeInfoResponse) + this.invoke(request, UpdateUPFSVolumeInfoResponse.class); + } +} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/client/UPFSClientInterface.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/client/UPFSClientInterface.java new file mode 100644 index 00000000..1c346827 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/client/UPFSClientInterface.java @@ -0,0 +1,98 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.upfs.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.upfs.models.CreateUPFSVolumeRequest; +import cn.ucloud.upfs.models.CreateUPFSVolumeResponse; +import cn.ucloud.upfs.models.DescribeUPFSVolumePriceRequest; +import cn.ucloud.upfs.models.DescribeUPFSVolumePriceResponse; +import cn.ucloud.upfs.models.DescribeUPFSVolumeRequest; +import cn.ucloud.upfs.models.DescribeUPFSVolumeResponse; +import cn.ucloud.upfs.models.DescribeUPFSVolumeUpgradePriceRequest; +import cn.ucloud.upfs.models.DescribeUPFSVolumeUpgradePriceResponse; +import cn.ucloud.upfs.models.ExtendUPFSVolumeRequest; +import cn.ucloud.upfs.models.ExtendUPFSVolumeResponse; +import cn.ucloud.upfs.models.RemoveUPFSVolumeRequest; +import cn.ucloud.upfs.models.RemoveUPFSVolumeResponse; +import cn.ucloud.upfs.models.UpdateUPFSVolumeInfoRequest; +import cn.ucloud.upfs.models.UpdateUPFSVolumeInfoResponse; + +/** This client is used to call actions of **UPFS** service */ +public interface UPFSClientInterface extends Client { + + /** + * CreateUPFSVolume - 创建UPFS文件系统 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPFSVolumeResponse createUPFSVolume(CreateUPFSVolumeRequest request) + throws UCloudException; + + /** + * DescribeUPFSVolume - 获取UPFS文件系统列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPFSVolumeResponse describeUPFSVolume(DescribeUPFSVolumeRequest request) + throws UCloudException; + + /** + * DescribeUPFSVolumePrice - 获取UPFS文件系统价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPFSVolumePriceResponse describeUPFSVolumePrice( + DescribeUPFSVolumePriceRequest request) throws UCloudException; + + /** + * DescribeUPFSVolumeUpgradePrice - UPFS文件系统扩容价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPFSVolumeUpgradePriceResponse describeUPFSVolumeUpgradePrice( + DescribeUPFSVolumeUpgradePriceRequest request) throws UCloudException; + + /** + * ExtendUPFSVolume - UPFS文件系统扩容 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ExtendUPFSVolumeResponse extendUPFSVolume(ExtendUPFSVolumeRequest request) + throws UCloudException; + + /** + * RemoveUPFSVolume - 删除UPFS文件系统 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RemoveUPFSVolumeResponse removeUPFSVolume(RemoveUPFSVolumeRequest request) + throws UCloudException; + + /** + * UpdateUPFSVolumeInfo - 更改UPFS文件系统相关信息(名称/备注) + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPFSVolumeInfoResponse updateUPFSVolumeInfo(UpdateUPFSVolumeInfoRequest request) + throws UCloudException; +} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/CreateUPFSVolumeRequest.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/CreateUPFSVolumeRequest.java new file mode 100644 index 00000000..e0908411 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/CreateUPFSVolumeRequest.java @@ -0,0 +1,161 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.upfs.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateUPFSVolumeRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 文件系统大小,单位为GB,必须为100的整数倍,Size最小为500GB */ + @NotEmpty + @UCloudParam("Size") + private Integer size; + + /** 文件系统协议,目前仅支持POSIX */ + @NotEmpty + @UCloudParam("ProtocolType") + private String protocolType; + + /** 文件系统名称 */ + @UCloudParam("VolumeName") + private String volumeName; + + /** 备注 */ + @UCloudParam("Remark") + private String remark; + + /** 文件系统所属业务组 */ + @UCloudParam("Tag") + private String tag; + + /** 计费模式,枚举值为: Year,按年付费; Month,按月付费 */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买时长 默认: 1 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** 使用的代金券id */ + @UCloudParam("CouponId") + private String couponId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getProtocolType() { + return protocolType; + } + + public void setProtocolType(String protocolType) { + this.protocolType = protocolType; + } + + public String getVolumeName() { + return volumeName; + } + + public void setVolumeName(String volumeName) { + this.volumeName = volumeName; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + 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 getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/CreateUPFSVolumeResponse.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/CreateUPFSVolumeResponse.java new file mode 100644 index 00000000..529386da --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/CreateUPFSVolumeResponse.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.upfs.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateUPFSVolumeResponse extends Response { + + /** UPFS文件系统名称 */ + @SerializedName("VolumeName") + private String volumeName; + + /** UPFS文件系统ID */ + @SerializedName("VolumeId") + private String volumeId; + + public String getVolumeName() { + return volumeName; + } + + public void setVolumeName(String volumeName) { + this.volumeName = volumeName; + } + + public String getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } +} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumePriceRequest.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumePriceRequest.java new file mode 100644 index 00000000..c8340446 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumePriceRequest.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.upfs.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeUPFSVolumePriceRequest 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; + + /** 文件系统大小,单位为GB,新架构容量型最小容量为500GB,以100GB递增,最大不超过100TB。 */ + @NotEmpty + @UCloudParam("Size") + private Integer size; + + /** 购买UPFS的时长, 默认为1 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** Year, Month默认: Month */ + @UCloudParam("ChargeType") + private String chargeType; + + /** UPFS文件系统id,第一次创建文件系统时不需要传这个参数 */ + @UCloudParam("VolumeId") + private String volumeId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } +} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumePriceResponse.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumePriceResponse.java new file mode 100644 index 00000000..e9f10343 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumePriceResponse.java @@ -0,0 +1,86 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.upfs.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeUPFSVolumePriceResponse extends Response { + + /** upfs 价格信息 */ + @SerializedName("DataSet") + private List dataSet; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class UPFSPriceDataSet extends Response { + + /** Year, Month */ + @SerializedName("ChargeType") + private String chargeType; + + /** 价格 (单位: 分) */ + @SerializedName("Price") + private Double price; + + /** 原价格 (单位: 分) */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + /** “upfs” */ + @SerializedName("ChargeName") + private String chargeName; + + 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; + } + + public String getChargeName() { + return chargeName; + } + + public void setChargeName(String chargeName) { + this.chargeName = chargeName; + } + } +} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumeRequest.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumeRequest.java new file mode 100644 index 00000000..84921d14 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumeRequest.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.upfs.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeUPFSVolumeRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 文件系统ID */ + @UCloudParam("VolumeId") + private String volumeId; + + /** 文件列表起始 */ + @UCloudParam("Offset") + private Integer offset; + + /** 文件列表长度 */ + @UCloudParam("Limit") + private Integer limit; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String 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 getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } + + 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-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumeResponse.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumeResponse.java new file mode 100644 index 00000000..16435421 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumeResponse.java @@ -0,0 +1,206 @@ +/** + * 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.upfs.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeUPFSVolumeResponse extends Response { + + /** UPFS文件系统总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** UPFS文件系统详细信息列表 */ + @SerializedName("DataSet") + private List dataSet; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class UPFSVolumeInfo extends Response { + + /** 可用区名字 */ + @SerializedName("Zone") + private String zone; + + /** 文件系统名称 */ + @SerializedName("VolumeName") + private String volumeName; + + /** 文件系统ID */ + @SerializedName("VolumeId") + private String volumeId; + + /** 文件系统协议类型 */ + @SerializedName("ProtocolType") + private String protocolType; + + /** 文件系统备注信息 */ + @SerializedName("Remark") + private String remark; + + /** 文件系统所属业务组 */ + @SerializedName("Tag") + private String tag; + + /** 文件系统创建时间(unix时间戳) */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 文件系统过期时间(unix时间戳) */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + /** 文件系统大小,单位GB */ + @SerializedName("Size") + private Integer size; + + /** 是否过期 */ + @SerializedName("IsExpired") + private String isExpired; + + /** 计费类型 */ + @SerializedName("ChargeType") + private String chargeType; + + /** 文件系统挂载状态 */ + @SerializedName("MountStatus") + private Integer mountStatus; + + /** 文件系统挂载地址 */ + @SerializedName("MountAddress") + private String mountAddress; + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getVolumeName() { + return volumeName; + } + + public void setVolumeName(String volumeName) { + this.volumeName = volumeName; + } + + public String getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } + + public String getProtocolType() { + return protocolType; + } + + public void setProtocolType(String protocolType) { + this.protocolType = protocolType; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } + + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public String getIsExpired() { + return isExpired; + } + + public void setIsExpired(String isExpired) { + this.isExpired = isExpired; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getMountStatus() { + return mountStatus; + } + + public void setMountStatus(Integer mountStatus) { + this.mountStatus = mountStatus; + } + + public String getMountAddress() { + return mountAddress; + } + + public void setMountAddress(String mountAddress) { + this.mountAddress = mountAddress; + } + } +} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumeUpgradePriceRequest.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumeUpgradePriceRequest.java new file mode 100644 index 00000000..0d27aa27 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumeUpgradePriceRequest.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.upfs.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeUPFSVolumeUpgradePriceRequest 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("VolumeId") + private String volumeId; + + /** 文件系统大小 */ + @NotEmpty + @UCloudParam("Size") + private String size; + + 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 getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } + + public String getSize() { + return size; + } + + public void setSize(String size) { + this.size = size; + } +} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumeUpgradePriceResponse.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumeUpgradePriceResponse.java new file mode 100644 index 00000000..4d7043d5 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/DescribeUPFSVolumeUpgradePriceResponse.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.upfs.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DescribeUPFSVolumeUpgradePriceResponse extends Response { + + /** 价格(单位:分) */ + @SerializedName("Price") + private Double price; + + /** 原价格(单位:分) */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + 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-upfs/src/main/java/cn/ucloud/upfs/models/ExtendUPFSVolumeRequest.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/ExtendUPFSVolumeRequest.java new file mode 100644 index 00000000..6375cf15 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/ExtendUPFSVolumeRequest.java @@ -0,0 +1,78 @@ +/** + * 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.upfs.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ExtendUPFSVolumeRequest 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("VolumeId") + private String volumeId; + + /** + * 文件系统大小,单位为GB,最大不超过20T,香港容量型必须为100的整数倍,Size最小为500GB,北京,上海,广州的容量型必须为1024的整数倍,Size最小为1024GB。性能型文件系统Size最小为100GB + */ + @NotEmpty + @UCloudParam("Size") + private Integer size; + + 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 getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } + + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } +} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/ExtendUPFSVolumeResponse.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/ExtendUPFSVolumeResponse.java new file mode 100644 index 00000000..2ddf497c --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/ExtendUPFSVolumeResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.upfs.models; + + + +import cn.ucloud.common.response.Response; + +public class ExtendUPFSVolumeResponse extends Response {} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/RemoveUPFSVolumeRequest.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/RemoveUPFSVolumeRequest.java new file mode 100644 index 00000000..0486d930 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/RemoveUPFSVolumeRequest.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.upfs.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class RemoveUPFSVolumeRequest 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("VolumeId") + private String volumeId; + + 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 getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } +} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/RemoveUPFSVolumeResponse.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/RemoveUPFSVolumeResponse.java new file mode 100644 index 00000000..3fd6f9b1 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/RemoveUPFSVolumeResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.upfs.models; + + + +import cn.ucloud.common.response.Response; + +public class RemoveUPFSVolumeResponse extends Response {} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/UpdateUPFSVolumeInfoRequest.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/UpdateUPFSVolumeInfoRequest.java new file mode 100644 index 00000000..50e30587 --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/UpdateUPFSVolumeInfoRequest.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.upfs.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateUPFSVolumeInfoRequest 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; + + /** UPFS文件系统ID */ + @NotEmpty + @UCloudParam("VolumeId") + private String volumeId; + + /** UPFS文件系统名称(文件系统名称/备注至少传入其中一个) */ + @UCloudParam("VolumeName") + private String volumeName; + + /** UPFS文件系统备注(文件系统名称/备注至少传入其中一个) */ + @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 getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } + + public String getVolumeName() { + return volumeName; + } + + public void setVolumeName(String volumeName) { + this.volumeName = volumeName; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/UpdateUPFSVolumeInfoResponse.java b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/UpdateUPFSVolumeInfoResponse.java new file mode 100644 index 00000000..f7dd154b --- /dev/null +++ b/ucloud-sdk-java-upfs/src/main/java/cn/ucloud/upfs/models/UpdateUPFSVolumeInfoResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.upfs.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateUPFSVolumeInfoResponse extends Response {} diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index cbdf4de3..31d5aa56 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-upgsql ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index b6a1aafd..f77411c1 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-uphone ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 65d166d1..1dd4d321 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-uphost ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index 280e1029..1a4a5371 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-uslk ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index f07eaaa9..50da06bb 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-usms ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index f82afa8c..f08d10ea 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-usnap ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index 3c947279..c1b5068b 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-uvms ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index f51e0329..78789db4 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.49-release + 1.2.50-release 4.0.0 ucloud-sdk-java-vpc ucloud-sdk-java - 1.2.49-release + 1.2.50-release cn.ucloud ucloud-sdk-java-common - 1.2.49-release + 1.2.50-release