From 5c48078e00f1bbb83edea4383f0815085f069405 Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Wed, 19 Aug 2026 10:14:02 +0000 Subject: [PATCH] sdk: rolling update for 1.2.84-release --- VERSION | 2 +- examples/generic/pom.xml | 4 +- examples/uhost/pom.xml | 4 +- pom.xml | 3 +- 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-sandbox/pom.xml | 49 ++ .../ucloud/sandbox/client/sandboxClient.java | 40 ++ .../client/sandboxClientInterface.java | 32 ++ .../sandbox/models/GetSandboxSiteRequest.java | 76 +++ .../models/GetSandboxSiteResponse.java | 194 +++++++ ucloud-sdk-java-sts/pom.xml | 6 +- ucloud-sdk-java-tidb/pom.xml | 6 +- ucloud-sdk-java-uaccount/pom.xml | 6 +- ucloud-sdk-java-uai_modelverse/pom.xml | 6 +- .../models/CreateUMInferAPIKeyRequest.java | 12 + .../models/CreateUMInferAPIKeyResponse.java | 12 + .../GetUFSquareModelDetailResponse.java | 36 ++ .../models/ListUFSquareModelRequest.java | 24 + .../models/ListUFSquareModelResponse.java | 36 ++ .../models/ListUMInferAPIKeyResponse.java | 12 + .../models/UpdateUMInferAPIKeyRequest.java | 12 + ucloud-sdk-java-uas/pom.xml | 6 +- ucloud-sdk-java-ubill/pom.xml | 6 +- ucloud-sdk-java-ucdn/pom.xml | 6 +- ucloud-sdk-java-uclickhouse/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-ues/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-uhadoop/pom.xml | 6 +- ucloud-sdk-java-uhids/pom.xml | 6 +- ucloud-sdk-java-uhost/pom.xml | 6 +- ucloud-sdk-java-uk8s/pom.xml | 6 +- ucloud-sdk-java-ukafka/pom.xml | 6 +- ucloud-sdk-java-ukms/pom.xml | 6 +- ucloud-sdk-java-ulb/pom.xml | 6 +- ucloud-sdk-java-ulighthost/pom.xml | 6 +- 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-uwsc/pom.xml | 6 +- .../cn/ucloud/uwsc/client/UWSCClient.java | 211 +++++++ .../uwsc/client/UWSCClientInterface.java | 162 ++++++ .../uwsc/models/CreateCEGatewayRequest.java | 124 ++++ .../uwsc/models/CreateCEGatewayResponse.java | 46 ++ .../uwsc/models/CreateCETunnelRequest.java | 501 +++++++++++++++++ .../uwsc/models/CreateCETunnelResponse.java | 34 ++ .../uwsc/models/CreatePOPGWRequest.java | 263 +++++++++ .../uwsc/models/CreatePOPGWResponse.java | 46 ++ .../uwsc/models/DeleteCEGatewayRequest.java | 74 +++ .../uwsc/models/DeleteCEGatewayResponse.java | 34 ++ .../uwsc/models/DeleteCETunnelRequest.java | 74 +++ .../uwsc/models/DeleteCETunnelResponse.java | 34 ++ .../uwsc/models/DeletePOPGWRequest.java | 74 +++ .../uwsc/models/DeletePOPGWResponse.java | 34 ++ .../uwsc/models/DescribeCEGatewayRequest.java | 108 ++++ .../models/DescribeCEGatewayResponse.java | 194 +++++++ .../uwsc/models/DescribeCETunnelRequest.java | 108 ++++ .../uwsc/models/DescribeCETunnelResponse.java | 530 ++++++++++++++++++ .../uwsc/models/DescribePOPGWRequest.java | 99 ++++ .../uwsc/models/DescribePOPGWResponse.java | 395 +++++++++++++ .../models/ListAvailableRegionRequest.java | 38 ++ .../models/ListAvailableRegionResponse.java | 35 ++ .../uwsc/models/UpdateBWPackageRequest.java | 88 +++ .../uwsc/models/UpdateBWPackageResponse.java | 34 ++ .../uwsc/models/UpdateCEGatewayRequest.java | 110 ++++ .../uwsc/models/UpdateCEGatewayResponse.java | 34 ++ .../UpdateCETunnelAttributeRequest.java | 98 ++++ .../UpdateCETunnelAttributeResponse.java | 34 ++ .../uwsc/models/UpdateCETunnelRequest.java | 462 +++++++++++++++ .../uwsc/models/UpdateCETunnelResponse.java | 20 + .../models/UpdatePOPGWAttributeRequest.java | 98 ++++ .../models/UpdatePOPGWAttributeResponse.java | 34 ++ ucloud-sdk-java-vpc/pom.xml | 6 +- 98 files changed, 4921 insertions(+), 155 deletions(-) create mode 100644 ucloud-sdk-java-sandbox/pom.xml create mode 100644 ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClient.java create mode 100644 ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClientInterface.java create mode 100644 ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/GetSandboxSiteRequest.java create mode 100644 ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/GetSandboxSiteResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCEGatewayRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCEGatewayResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCETunnelRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCETunnelResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreatePOPGWRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreatePOPGWResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCEGatewayRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCEGatewayResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCETunnelRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCETunnelResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeletePOPGWRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeletePOPGWResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCEGatewayRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCEGatewayResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCETunnelRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCETunnelResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribePOPGWRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribePOPGWResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/ListAvailableRegionRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/ListAvailableRegionResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateBWPackageRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateBWPackageResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCEGatewayRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCEGatewayResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelAttributeRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelAttributeResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelResponse.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdatePOPGWAttributeRequest.java create mode 100644 ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdatePOPGWAttributeResponse.java diff --git a/VERSION b/VERSION index a14f2231..55504cd2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.83-release +1.2.84-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index 183005a0..33c1d799 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.83-release + 1.2.84-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index 701c8501..2fcab651 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.83-release + 1.2.84-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.83-release + 1.2.84-release diff --git a/pom.xml b/pom.xml index e8fdb846..6a4e2a71 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.83-release + 1.2.84-release ucloud-sdk-java-common ucloud-sdk-java-cloudwatch @@ -59,6 +59,7 @@ ucloud-sdk-java-uvms ucloud-sdk-java-uwsc ucloud-sdk-java-vpc + ucloud-sdk-java-sandbox ucloud-sdk-java diff --git a/ucloud-sdk-java-cloudwatch/pom.xml b/ucloud-sdk-java-cloudwatch/pom.xml index 372768a6..e7442824 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-cloudwatch ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index c8698761..360e8f1e 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-common ucloud-sdk-java - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index a2092f4d..3cb201db 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-cube ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 2731e6fe..833b7933 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-ipsecvpn ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-label/pom.xml b/ucloud-sdk-java-label/pom.xml index ee2546fe..87a70100 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-label ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-nlb/pom.xml b/ucloud-sdk-java-nlb/pom.xml index a7b1490c..a6fe679f 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-nlb ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index 6d64159f..a064327b 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-pathx ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-sandbox/pom.xml b/ucloud-sdk-java-sandbox/pom.xml new file mode 100644 index 00000000..8b5da515 --- /dev/null +++ b/ucloud-sdk-java-sandbox/pom.xml @@ -0,0 +1,49 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.2.84-release + + + 4.0.0 + ucloud-sdk-java-sandbox + ucloud-sdk-java + 1.2.84-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.84-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-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClient.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClient.java new file mode 100644 index 00000000..51573ccf --- /dev/null +++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClient.java @@ -0,0 +1,40 @@ +/** + * 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.sandbox.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.sandbox.models.GetSandboxSiteRequest; +import cn.ucloud.sandbox.models.GetSandboxSiteResponse; + +/** This client is used to call actions of **sandbox** service */ +public class sandboxClient extends DefaultClient implements sandboxClientInterface { + public sandboxClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * GetSandboxSite - 获取沙箱站点 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetSandboxSiteResponse getSandboxSite(GetSandboxSiteRequest request) + throws UCloudException { + request.setAction("GetSandboxSite"); + return (GetSandboxSiteResponse) this.invoke(request, GetSandboxSiteResponse.class); + } +} diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClientInterface.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClientInterface.java new file mode 100644 index 00000000..26a8304f --- /dev/null +++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/client/sandboxClientInterface.java @@ -0,0 +1,32 @@ +/** + * 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.sandbox.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.sandbox.models.GetSandboxSiteRequest; +import cn.ucloud.sandbox.models.GetSandboxSiteResponse; + +/** This client is used to call actions of **sandbox** service */ +public interface sandboxClientInterface extends Client { + + /** + * GetSandboxSite - 获取沙箱站点 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetSandboxSiteResponse getSandboxSite(GetSandboxSiteRequest request) + throws UCloudException; +} diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/GetSandboxSiteRequest.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/GetSandboxSiteRequest.java new file mode 100644 index 00000000..bddbfd0e --- /dev/null +++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/GetSandboxSiteRequest.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.sandbox.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetSandboxSiteRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 沙箱ID */ + @NotEmpty + @UCloudParam("SandboxID") + private String sandboxID; + + 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 getSandboxID() { + return sandboxID; + } + + public void setSandboxID(String sandboxID) { + this.sandboxID = sandboxID; + } +} diff --git a/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/GetSandboxSiteResponse.java b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/GetSandboxSiteResponse.java new file mode 100644 index 00000000..a75caeb1 --- /dev/null +++ b/ucloud-sdk-java-sandbox/src/main/java/cn/ucloud/sandbox/models/GetSandboxSiteResponse.java @@ -0,0 +1,194 @@ +/** + * 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.sandbox.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetSandboxSiteResponse extends Response { + + /** 站点 */ + @SerializedName("Site") + private Site site; + + public Site getSite() { + return site; + } + + public void setSite(Site site) { + this.site = site; + } + + public static class Site extends Response { + + /** 名称 */ + @SerializedName("Name") + private String name; + + /** 是否就绪 */ + @SerializedName("Ready") + private Boolean ready; + + /** 站点ID */ + @SerializedName("ID") + private String id; + + /** 沙箱ID */ + @SerializedName("SandboxID") + private String sandboxID; + + /** 站点访问地址 */ + @SerializedName("Host") + private String host; + + /** 站点Key ID */ + @SerializedName("KeyID") + private String keyID; + + /** 更新时间 */ + @SerializedName("UpdateTime") + private Integer updateTime; + + /** 访问码 */ + @SerializedName("AccessCode") + private String accessCode; + + /** 连接密钥 */ + @SerializedName("ConnectKey") + private String connectKey; + + /** 站点环境变量。格式:key=value */ + @SerializedName("Envs") + private List envs; + + /** 自定义域名 */ + @SerializedName("CustomDomain") + private String customDomain; + + /** 自定义域名签发状态 */ + @SerializedName("CustomDomainStatus") + private String customDomainStatus; + + /** 自定义域名签发错误信息 */ + @SerializedName("CustomDomainError") + private String customDomainError; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Boolean getReady() { + return ready; + } + + public void setReady(Boolean ready) { + this.ready = ready; + } + + public String getID() { + return id; + } + + public void setID(String id) { + this.id = id; + } + + public String getSandboxID() { + return sandboxID; + } + + public void setSandboxID(String sandboxID) { + this.sandboxID = sandboxID; + } + + public String getHost() { + return host; + } + + public void setHost(String host) { + this.host = host; + } + + public String getKeyID() { + return keyID; + } + + public void setKeyID(String keyID) { + this.keyID = keyID; + } + + public Integer getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Integer updateTime) { + this.updateTime = updateTime; + } + + public String getAccessCode() { + return accessCode; + } + + public void setAccessCode(String accessCode) { + this.accessCode = accessCode; + } + + public String getConnectKey() { + return connectKey; + } + + public void setConnectKey(String connectKey) { + this.connectKey = connectKey; + } + + public List getEnvs() { + return envs; + } + + public void setEnvs(List envs) { + this.envs = envs; + } + + public String getCustomDomain() { + return customDomain; + } + + public void setCustomDomain(String customDomain) { + this.customDomain = customDomain; + } + + public String getCustomDomainStatus() { + return customDomainStatus; + } + + public void setCustomDomainStatus(String customDomainStatus) { + this.customDomainStatus = customDomainStatus; + } + + public String getCustomDomainError() { + return customDomainError; + } + + public void setCustomDomainError(String customDomainError) { + this.customDomainError = customDomainError; + } + } +} diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index 9d5cdebb..cd8b7763 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-sts ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-tidb/pom.xml b/ucloud-sdk-java-tidb/pom.xml index bf04a942..89a786c1 100644 --- a/ucloud-sdk-java-tidb/pom.xml +++ b/ucloud-sdk-java-tidb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-tidb ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index dce1f63a..7ff58f94 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uaccount ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index 7883f92d..f907af20 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uai_modelverse ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyRequest.java index 83a9f008..f85653ba 100644 --- a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyRequest.java +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyRequest.java @@ -66,6 +66,10 @@ public class CreateUMInferAPIKeyRequest extends Request { @UCloudParam("IPWhitelist") private String ipWhitelist; + /** 是否开启推理日志 */ + @UCloudParam("InferenceLogEnabled") + private Integer inferenceLogEnabled; + public String getProjectId() { return projectId; } @@ -137,4 +141,12 @@ public String getIPWhitelist() { public void setIPWhitelist(String ipWhitelist) { this.ipWhitelist = ipWhitelist; } + + public Integer getInferenceLogEnabled() { + return inferenceLogEnabled; + } + + public void setInferenceLogEnabled(Integer inferenceLogEnabled) { + this.inferenceLogEnabled = inferenceLogEnabled; + } } diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyResponse.java index 2f41ff64..3e18f0b7 100644 --- a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyResponse.java +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyResponse.java @@ -54,6 +54,10 @@ public static class APIKey extends Response { @SerializedName("IPWhitelist") private String ipWhitelist; + /** 是否开启推理日志 */ + @SerializedName("InferenceLogEnabled") + private Integer inferenceLogEnabled; + /** 资源ID */ @SerializedName("KeyId") private String keyId; @@ -130,6 +134,14 @@ public void setIPWhitelist(String ipWhitelist) { this.ipWhitelist = ipWhitelist; } + public Integer getInferenceLogEnabled() { + return inferenceLogEnabled; + } + + public void setInferenceLogEnabled(Integer inferenceLogEnabled) { + this.inferenceLogEnabled = inferenceLogEnabled; + } + public String getKeyId() { return keyId; } diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUFSquareModelDetailResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUFSquareModelDetailResponse.java index dfb0025d..aca2f3a1 100644 --- a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUFSquareModelDetailResponse.java +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUFSquareModelDetailResponse.java @@ -260,6 +260,18 @@ public void setUnitEn(String unitEn) { public static class SquareModel extends Response { + /** 关联的 batch 模型广场id */ + @SerializedName("BatchSquareModelId") + private String batchSquareModelId; + + /** 是否关联有可用 batch 模型 */ + @SerializedName("IsHasBatch") + private Boolean isHasBatch; + + /** 关联的 batch 模型名称 */ + @SerializedName("BatchName") + private String batchName; + /** 制造商 */ @SerializedName("Manufacturer") private String manufacturer; @@ -320,6 +332,30 @@ public static class SquareModel extends Response { @SerializedName("Tiers") private List tiers; + public String getBatchSquareModelId() { + return batchSquareModelId; + } + + public void setBatchSquareModelId(String batchSquareModelId) { + this.batchSquareModelId = batchSquareModelId; + } + + public Boolean getIsHasBatch() { + return isHasBatch; + } + + public void setIsHasBatch(Boolean isHasBatch) { + this.isHasBatch = isHasBatch; + } + + public String getBatchName() { + return batchName; + } + + public void setBatchName(String batchName) { + this.batchName = batchName; + } + public String getManufacturer() { return manufacturer; } diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelRequest.java index f2bcc2aa..47bd2330 100644 --- a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelRequest.java +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelRequest.java @@ -67,6 +67,14 @@ public class ListUFSquareModelRequest extends Request { @UCloudParam("Language") private List language; + /** 制造商,可选值来源于ListUFSquareModelFilters枚举接口。可多选 */ + @UCloudParam("Manufacturer") + private List manufacturer; + + /** 模型特性,可选值来源于ListUFSquareModelFilters枚举接口。可多选 */ + @UCloudParam("Capabilities") + private List capabilities; + public String getRegion() { return region; } @@ -154,4 +162,20 @@ public List getLanguage() { public void setLanguage(List language) { this.language = language; } + + public List getManufacturer() { + return manufacturer; + } + + public void setManufacturer(List manufacturer) { + this.manufacturer = manufacturer; + } + + public List getCapabilities() { + return capabilities; + } + + public void setCapabilities(List capabilities) { + this.capabilities = capabilities; + } } diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelResponse.java index 38fa4c7a..0577372c 100644 --- a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelResponse.java +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelResponse.java @@ -272,6 +272,18 @@ public void setUnitEn(String unitEn) { public static class SquareModel extends Response { + /** 关联的 batch 模型广场id */ + @SerializedName("BatchSquareModelId") + private String batchSquareModelId; + + /** 是否关联有可用 batch 模型 */ + @SerializedName("IsHasBatch") + private Boolean isHasBatch; + + /** 关联的 batch 模型名称 */ + @SerializedName("BatchName") + private String batchName; + /** 制造商 */ @SerializedName("Manufacturer") private String manufacturer; @@ -332,6 +344,30 @@ public static class SquareModel extends Response { @SerializedName("Tiers") private List tiers; + public String getBatchSquareModelId() { + return batchSquareModelId; + } + + public void setBatchSquareModelId(String batchSquareModelId) { + this.batchSquareModelId = batchSquareModelId; + } + + public Boolean getIsHasBatch() { + return isHasBatch; + } + + public void setIsHasBatch(Boolean isHasBatch) { + this.isHasBatch = isHasBatch; + } + + public String getBatchName() { + return batchName; + } + + public void setBatchName(String batchName) { + this.batchName = batchName; + } + public String getManufacturer() { return manufacturer; } diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUMInferAPIKeyResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUMInferAPIKeyResponse.java index 17412a87..f9a5a9f8 100644 --- a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUMInferAPIKeyResponse.java +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUMInferAPIKeyResponse.java @@ -42,6 +42,10 @@ public static class APIKey extends Response { @SerializedName("IPWhitelist") private String ipWhitelist; + /** 是否开启推理日志 */ + @SerializedName("InferenceLogEnabled") + private Integer inferenceLogEnabled; + /** 资源ID */ @SerializedName("KeyId") private String keyId; @@ -118,6 +122,14 @@ public void setIPWhitelist(String ipWhitelist) { this.ipWhitelist = ipWhitelist; } + public Integer getInferenceLogEnabled() { + return inferenceLogEnabled; + } + + public void setInferenceLogEnabled(Integer inferenceLogEnabled) { + this.inferenceLogEnabled = inferenceLogEnabled; + } + public String getKeyId() { return keyId; } diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateUMInferAPIKeyRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateUMInferAPIKeyRequest.java index b6e7f5b8..cf4f2d91 100644 --- a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateUMInferAPIKeyRequest.java +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateUMInferAPIKeyRequest.java @@ -70,6 +70,10 @@ public class UpdateUMInferAPIKeyRequest extends Request { @UCloudParam("IPWhitelist") private String ipWhitelist; + /** 是否开启推理日志 */ + @UCloudParam("InferenceLogEnabled") + private Integer inferenceLogEnabled; + public String getProjectId() { return projectId; } @@ -149,4 +153,12 @@ public String getIPWhitelist() { public void setIPWhitelist(String ipWhitelist) { this.ipWhitelist = ipWhitelist; } + + public Integer getInferenceLogEnabled() { + return inferenceLogEnabled; + } + + public void setInferenceLogEnabled(Integer inferenceLogEnabled) { + this.inferenceLogEnabled = inferenceLogEnabled; + } } diff --git a/ucloud-sdk-java-uas/pom.xml b/ucloud-sdk-java-uas/pom.xml index 83a781d6..0946042a 100644 --- a/ucloud-sdk-java-uas/pom.xml +++ b/ucloud-sdk-java-uas/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uas ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 05309143..6bcffd14 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-ubill ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index e891835d..d7efb50e 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-ucdn ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uclickhouse/pom.xml b/ucloud-sdk-java-uclickhouse/pom.xml index 6c59aa4d..8612e451 100644 --- a/ucloud-sdk-java-uclickhouse/pom.xml +++ b/ucloud-sdk-java-uclickhouse/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uclickhouse ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index b9f69ed7..21e2d11e 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-ucompshare ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index aaff21b3..ad7cd868 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-udb ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index 44429ec0..781a1087 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-udbproxy ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index 9ec6568e..6a25867d 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-udi ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index e82467c3..e1c5b2e6 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-udisk ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml index 15e0d237..a9105bd0 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-udns ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index a2256f6e..4666f812 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-udpn ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index 8de1db09..97153eff 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uec ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-ues/pom.xml b/ucloud-sdk-java-ues/pom.xml index c9361aec..eec084bc 100644 --- a/ucloud-sdk-java-ues/pom.xml +++ b/ucloud-sdk-java-ues/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-ues ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index 39c66655..81811016 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uewaf ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 330aa38f..d64035b3 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-ufile ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 164ad8e0..e3725dae 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-ufs ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uhadoop/pom.xml b/ucloud-sdk-java-uhadoop/pom.xml index 5c8efdb8..5f612d0e 100644 --- a/ucloud-sdk-java-uhadoop/pom.xml +++ b/ucloud-sdk-java-uhadoop/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uhadoop ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uhids/pom.xml b/ucloud-sdk-java-uhids/pom.xml index a192e3ef..f70c2d34 100644 --- a/ucloud-sdk-java-uhids/pom.xml +++ b/ucloud-sdk-java-uhids/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uhids ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index 9bceea55..8bc15059 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uhost ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 43e7ac5f..3c49beff 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uk8s ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-ukafka/pom.xml b/ucloud-sdk-java-ukafka/pom.xml index f63e5384..a0fd5136 100644 --- a/ucloud-sdk-java-ukafka/pom.xml +++ b/ucloud-sdk-java-ukafka/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-ukafka ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-ukms/pom.xml b/ucloud-sdk-java-ukms/pom.xml index 2788f7de..f4da17db 100644 --- a/ucloud-sdk-java-ukms/pom.xml +++ b/ucloud-sdk-java-ukms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-ukms ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index 4b479a97..ba54d483 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-ulb ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-ulighthost/pom.xml b/ucloud-sdk-java-ulighthost/pom.xml index 9e76152d..8c43ffb8 100644 --- a/ucloud-sdk-java-ulighthost/pom.xml +++ b/ucloud-sdk-java-ulighthost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-ulighthost ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index eff36b73..51ce6c89 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-ulog ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index 5280007a..df4899ed 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-umem ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-umon/pom.xml b/ucloud-sdk-java-umon/pom.xml index 999a6867..c980ab53 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-umon ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index d8f0f262..5774eaa0 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-umongodb ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index d40a1730..d638793a 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-unet ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-upfs/pom.xml b/ucloud-sdk-java-upfs/pom.xml index a93d737f..25152321 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-upfs ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index 587de5e1..65734bfb 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-upgsql ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 1491f3a4..4ec68c97 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uphone ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 7238b02c..841c7614 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uphost ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index e05ce222..047d500b 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uslk ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 85f5b205..c080cfea 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-usms ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index 6992ea60..91ae1258 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-usnap ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index 171cf22d..001a61b3 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uvms ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uwsc/pom.xml b/ucloud-sdk-java-uwsc/pom.xml index 3bf82f64..5bd32510 100644 --- a/ucloud-sdk-java-uwsc/pom.xml +++ b/ucloud-sdk-java-uwsc/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-uwsc ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/client/UWSCClient.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/client/UWSCClient.java index 52e3c7b2..dd2bfd4f 100644 --- a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/client/UWSCClient.java +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/client/UWSCClient.java @@ -21,22 +21,52 @@ import cn.ucloud.uwsc.models.AddExportLineRulesResponse; import cn.ucloud.uwsc.models.BindCPERequest; import cn.ucloud.uwsc.models.BindCPEResponse; +import cn.ucloud.uwsc.models.CreateCEGatewayRequest; +import cn.ucloud.uwsc.models.CreateCEGatewayResponse; +import cn.ucloud.uwsc.models.CreateCETunnelRequest; +import cn.ucloud.uwsc.models.CreateCETunnelResponse; import cn.ucloud.uwsc.models.CreateCPERequest; import cn.ucloud.uwsc.models.CreateCPEResponse; import cn.ucloud.uwsc.models.CreateExportLineRequest; import cn.ucloud.uwsc.models.CreateExportLineResponse; +import cn.ucloud.uwsc.models.CreatePOPGWRequest; +import cn.ucloud.uwsc.models.CreatePOPGWResponse; +import cn.ucloud.uwsc.models.DeleteCEGatewayRequest; +import cn.ucloud.uwsc.models.DeleteCEGatewayResponse; +import cn.ucloud.uwsc.models.DeleteCETunnelRequest; +import cn.ucloud.uwsc.models.DeleteCETunnelResponse; import cn.ucloud.uwsc.models.DeleteExportLineRequest; import cn.ucloud.uwsc.models.DeleteExportLineResponse; import cn.ucloud.uwsc.models.DeleteExportLineRulesRequest; import cn.ucloud.uwsc.models.DeleteExportLineRulesResponse; +import cn.ucloud.uwsc.models.DeletePOPGWRequest; +import cn.ucloud.uwsc.models.DeletePOPGWResponse; +import cn.ucloud.uwsc.models.DescribeCEGatewayRequest; +import cn.ucloud.uwsc.models.DescribeCEGatewayResponse; +import cn.ucloud.uwsc.models.DescribeCETunnelRequest; +import cn.ucloud.uwsc.models.DescribeCETunnelResponse; import cn.ucloud.uwsc.models.DescribeCPERequest; import cn.ucloud.uwsc.models.DescribeCPEResponse; import cn.ucloud.uwsc.models.DescribeExportLineRequest; import cn.ucloud.uwsc.models.DescribeExportLineResponse; import cn.ucloud.uwsc.models.DescribeExportLineRulesRequest; import cn.ucloud.uwsc.models.DescribeExportLineRulesResponse; +import cn.ucloud.uwsc.models.DescribePOPGWRequest; +import cn.ucloud.uwsc.models.DescribePOPGWResponse; +import cn.ucloud.uwsc.models.ListAvailableRegionRequest; +import cn.ucloud.uwsc.models.ListAvailableRegionResponse; +import cn.ucloud.uwsc.models.UpdateBWPackageRequest; +import cn.ucloud.uwsc.models.UpdateBWPackageResponse; +import cn.ucloud.uwsc.models.UpdateCEGatewayRequest; +import cn.ucloud.uwsc.models.UpdateCEGatewayResponse; +import cn.ucloud.uwsc.models.UpdateCETunnelAttributeRequest; +import cn.ucloud.uwsc.models.UpdateCETunnelAttributeResponse; +import cn.ucloud.uwsc.models.UpdateCETunnelRequest; +import cn.ucloud.uwsc.models.UpdateCETunnelResponse; import cn.ucloud.uwsc.models.UpdateExportLineRequest; import cn.ucloud.uwsc.models.UpdateExportLineResponse; +import cn.ucloud.uwsc.models.UpdatePOPGWAttributeRequest; +import cn.ucloud.uwsc.models.UpdatePOPGWAttributeResponse; import cn.ucloud.uwsc.models.UpgradeExportLineRequest; import cn.ucloud.uwsc.models.UpgradeExportLineResponse; @@ -69,6 +99,30 @@ public BindCPEResponse bindCPE(BindCPERequest request) throws UCloudException { return (BindCPEResponse) this.invoke(request, BindCPEResponse.class); } + /** + * CreateCEGateway - 创建CE客户网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCEGatewayResponse createCEGateway(CreateCEGatewayRequest request) + throws UCloudException { + request.setAction("CreateCEGateway"); + return (CreateCEGatewayResponse) this.invoke(request, CreateCEGatewayResponse.class); + } + + /** + * CreateCETunnel - 创建隧道 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCETunnelResponse createCETunnel(CreateCETunnelRequest request) + throws UCloudException { + request.setAction("CreateCETunnel"); + return (CreateCETunnelResponse) this.invoke(request, CreateCETunnelResponse.class); + } + /** * CreateCPE - 创建 CPE * @@ -92,6 +146,41 @@ public CreateExportLineResponse createExportLine(CreateExportLineRequest request return (CreateExportLineResponse) this.invoke(request, CreateExportLineResponse.class); } + /** + * CreatePOPGW - 创建UWAN虚拟路由器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreatePOPGWResponse createPOPGW(CreatePOPGWRequest request) throws UCloudException { + request.setAction("CreatePOPGW"); + return (CreatePOPGWResponse) this.invoke(request, CreatePOPGWResponse.class); + } + + /** + * DeleteCEGateway - 删除CE网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCEGatewayResponse deleteCEGateway(DeleteCEGatewayRequest request) + throws UCloudException { + request.setAction("DeleteCEGateway"); + return (DeleteCEGatewayResponse) this.invoke(request, DeleteCEGatewayResponse.class); + } + + /** + * DeleteCETunnel - 删除隧道 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCETunnelResponse deleteCETunnel(DeleteCETunnelRequest request) + throws UCloudException { + request.setAction("DeleteCETunnel"); + return (DeleteCETunnelResponse) this.invoke(request, DeleteCETunnelResponse.class); + } + /** * DeleteExportLine - 删除加速线路 * @@ -117,6 +206,41 @@ public DeleteExportLineRulesResponse deleteExportLineRules(DeleteExportLineRules this.invoke(request, DeleteExportLineRulesResponse.class); } + /** + * DeletePOPGW - 删除UWAN虚拟路由器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeletePOPGWResponse deletePOPGW(DeletePOPGWRequest request) throws UCloudException { + request.setAction("DeletePOPGW"); + return (DeletePOPGWResponse) this.invoke(request, DeletePOPGWResponse.class); + } + + /** + * DescribeCEGateway - 查询CE网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeCEGatewayResponse describeCEGateway(DescribeCEGatewayRequest request) + throws UCloudException { + request.setAction("DescribeCEGateway"); + return (DescribeCEGatewayResponse) this.invoke(request, DescribeCEGatewayResponse.class); + } + + /** + * DescribeCETunnel - 查询隧道 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeCETunnelResponse describeCETunnel(DescribeCETunnelRequest request) + throws UCloudException { + request.setAction("DescribeCETunnel"); + return (DescribeCETunnelResponse) this.invoke(request, DescribeCETunnelResponse.class); + } + /** * DescribeCPE - 查询 CPE 信息 * @@ -153,6 +277,80 @@ public DescribeExportLineRulesResponse describeExportLineRules( this.invoke(request, DescribeExportLineRulesResponse.class); } + /** + * DescribePOPGW - 查询UWAN虚拟路由器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribePOPGWResponse describePOPGW(DescribePOPGWRequest request) + throws UCloudException { + request.setAction("DescribePOPGW"); + return (DescribePOPGWResponse) this.invoke(request, DescribePOPGWResponse.class); + } + + /** + * ListAvailableRegion - 获取可用地域 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListAvailableRegionResponse listAvailableRegion(ListAvailableRegionRequest request) + throws UCloudException { + request.setAction("ListAvailableRegion"); + return (ListAvailableRegionResponse) + this.invoke(request, ListAvailableRegionResponse.class); + } + + /** + * UpdateBWPackage - 更新UWSC带宽包 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateBWPackageResponse updateBWPackage(UpdateBWPackageRequest request) + throws UCloudException { + request.setAction("UpdateBWPackage"); + return (UpdateBWPackageResponse) this.invoke(request, UpdateBWPackageResponse.class); + } + + /** + * UpdateCEGateway - 更新CE网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateCEGatewayResponse updateCEGateway(UpdateCEGatewayRequest request) + throws UCloudException { + request.setAction("UpdateCEGateway"); + return (UpdateCEGatewayResponse) this.invoke(request, UpdateCEGatewayResponse.class); + } + + /** + * UpdateCETunnel - 更新隧道配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateCETunnelResponse updateCETunnel(UpdateCETunnelRequest request) + throws UCloudException { + request.setAction("UpdateCETunnel"); + return (UpdateCETunnelResponse) this.invoke(request, UpdateCETunnelResponse.class); + } + + /** + * UpdateCETunnelAttribute - 更新隧道属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateCETunnelAttributeResponse updateCETunnelAttribute( + UpdateCETunnelAttributeRequest request) throws UCloudException { + request.setAction("UpdateCETunnelAttribute"); + return (UpdateCETunnelAttributeResponse) + this.invoke(request, UpdateCETunnelAttributeResponse.class); + } + /** * UpdateExportLine - 修改加速线路 * @@ -165,6 +363,19 @@ public UpdateExportLineResponse updateExportLine(UpdateExportLineRequest request return (UpdateExportLineResponse) this.invoke(request, UpdateExportLineResponse.class); } + /** + * UpdatePOPGWAttribute - 更新UWAN虚拟路由器属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdatePOPGWAttributeResponse updatePOPGWAttribute(UpdatePOPGWAttributeRequest request) + throws UCloudException { + request.setAction("UpdatePOPGWAttribute"); + return (UpdatePOPGWAttributeResponse) + this.invoke(request, UpdatePOPGWAttributeResponse.class); + } + /** * UpgradeExportLine - 升级加速线路 * diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/client/UWSCClientInterface.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/client/UWSCClientInterface.java index 2aa9dde6..c94697f2 100644 --- a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/client/UWSCClientInterface.java +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/client/UWSCClientInterface.java @@ -19,22 +19,52 @@ import cn.ucloud.uwsc.models.AddExportLineRulesResponse; import cn.ucloud.uwsc.models.BindCPERequest; import cn.ucloud.uwsc.models.BindCPEResponse; +import cn.ucloud.uwsc.models.CreateCEGatewayRequest; +import cn.ucloud.uwsc.models.CreateCEGatewayResponse; +import cn.ucloud.uwsc.models.CreateCETunnelRequest; +import cn.ucloud.uwsc.models.CreateCETunnelResponse; import cn.ucloud.uwsc.models.CreateCPERequest; import cn.ucloud.uwsc.models.CreateCPEResponse; import cn.ucloud.uwsc.models.CreateExportLineRequest; import cn.ucloud.uwsc.models.CreateExportLineResponse; +import cn.ucloud.uwsc.models.CreatePOPGWRequest; +import cn.ucloud.uwsc.models.CreatePOPGWResponse; +import cn.ucloud.uwsc.models.DeleteCEGatewayRequest; +import cn.ucloud.uwsc.models.DeleteCEGatewayResponse; +import cn.ucloud.uwsc.models.DeleteCETunnelRequest; +import cn.ucloud.uwsc.models.DeleteCETunnelResponse; import cn.ucloud.uwsc.models.DeleteExportLineRequest; import cn.ucloud.uwsc.models.DeleteExportLineResponse; import cn.ucloud.uwsc.models.DeleteExportLineRulesRequest; import cn.ucloud.uwsc.models.DeleteExportLineRulesResponse; +import cn.ucloud.uwsc.models.DeletePOPGWRequest; +import cn.ucloud.uwsc.models.DeletePOPGWResponse; +import cn.ucloud.uwsc.models.DescribeCEGatewayRequest; +import cn.ucloud.uwsc.models.DescribeCEGatewayResponse; +import cn.ucloud.uwsc.models.DescribeCETunnelRequest; +import cn.ucloud.uwsc.models.DescribeCETunnelResponse; import cn.ucloud.uwsc.models.DescribeCPERequest; import cn.ucloud.uwsc.models.DescribeCPEResponse; import cn.ucloud.uwsc.models.DescribeExportLineRequest; import cn.ucloud.uwsc.models.DescribeExportLineResponse; import cn.ucloud.uwsc.models.DescribeExportLineRulesRequest; import cn.ucloud.uwsc.models.DescribeExportLineRulesResponse; +import cn.ucloud.uwsc.models.DescribePOPGWRequest; +import cn.ucloud.uwsc.models.DescribePOPGWResponse; +import cn.ucloud.uwsc.models.ListAvailableRegionRequest; +import cn.ucloud.uwsc.models.ListAvailableRegionResponse; +import cn.ucloud.uwsc.models.UpdateBWPackageRequest; +import cn.ucloud.uwsc.models.UpdateBWPackageResponse; +import cn.ucloud.uwsc.models.UpdateCEGatewayRequest; +import cn.ucloud.uwsc.models.UpdateCEGatewayResponse; +import cn.ucloud.uwsc.models.UpdateCETunnelAttributeRequest; +import cn.ucloud.uwsc.models.UpdateCETunnelAttributeResponse; +import cn.ucloud.uwsc.models.UpdateCETunnelRequest; +import cn.ucloud.uwsc.models.UpdateCETunnelResponse; import cn.ucloud.uwsc.models.UpdateExportLineRequest; import cn.ucloud.uwsc.models.UpdateExportLineResponse; +import cn.ucloud.uwsc.models.UpdatePOPGWAttributeRequest; +import cn.ucloud.uwsc.models.UpdatePOPGWAttributeResponse; import cn.ucloud.uwsc.models.UpgradeExportLineRequest; import cn.ucloud.uwsc.models.UpgradeExportLineResponse; @@ -58,6 +88,24 @@ public AddExportLineRulesResponse addExportLineRules(AddExportLineRulesRequest r */ public BindCPEResponse bindCPE(BindCPERequest request) throws UCloudException; + /** + * CreateCEGateway - 创建CE客户网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCEGatewayResponse createCEGateway(CreateCEGatewayRequest request) + throws UCloudException; + + /** + * CreateCETunnel - 创建隧道 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCETunnelResponse createCETunnel(CreateCETunnelRequest request) + throws UCloudException; + /** * CreateCPE - 创建 CPE * @@ -75,6 +123,32 @@ public AddExportLineRulesResponse addExportLineRules(AddExportLineRulesRequest r public CreateExportLineResponse createExportLine(CreateExportLineRequest request) throws UCloudException; + /** + * CreatePOPGW - 创建UWAN虚拟路由器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreatePOPGWResponse createPOPGW(CreatePOPGWRequest request) throws UCloudException; + + /** + * DeleteCEGateway - 删除CE网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCEGatewayResponse deleteCEGateway(DeleteCEGatewayRequest request) + throws UCloudException; + + /** + * DeleteCETunnel - 删除隧道 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCETunnelResponse deleteCETunnel(DeleteCETunnelRequest request) + throws UCloudException; + /** * DeleteExportLine - 删除加速线路 * @@ -93,6 +167,32 @@ public DeleteExportLineResponse deleteExportLine(DeleteExportLineRequest request public DeleteExportLineRulesResponse deleteExportLineRules(DeleteExportLineRulesRequest request) throws UCloudException; + /** + * DeletePOPGW - 删除UWAN虚拟路由器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeletePOPGWResponse deletePOPGW(DeletePOPGWRequest request) throws UCloudException; + + /** + * DescribeCEGateway - 查询CE网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeCEGatewayResponse describeCEGateway(DescribeCEGatewayRequest request) + throws UCloudException; + + /** + * DescribeCETunnel - 查询隧道 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeCETunnelResponse describeCETunnel(DescribeCETunnelRequest request) + throws UCloudException; + /** * DescribeCPE - 查询 CPE 信息 * @@ -119,6 +219,59 @@ public DescribeExportLineResponse describeExportLine(DescribeExportLineRequest r public DescribeExportLineRulesResponse describeExportLineRules( DescribeExportLineRulesRequest request) throws UCloudException; + /** + * DescribePOPGW - 查询UWAN虚拟路由器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribePOPGWResponse describePOPGW(DescribePOPGWRequest request) throws UCloudException; + + /** + * ListAvailableRegion - 获取可用地域 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListAvailableRegionResponse listAvailableRegion(ListAvailableRegionRequest request) + throws UCloudException; + + /** + * UpdateBWPackage - 更新UWSC带宽包 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateBWPackageResponse updateBWPackage(UpdateBWPackageRequest request) + throws UCloudException; + + /** + * UpdateCEGateway - 更新CE网关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateCEGatewayResponse updateCEGateway(UpdateCEGatewayRequest request) + throws UCloudException; + + /** + * UpdateCETunnel - 更新隧道配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateCETunnelResponse updateCETunnel(UpdateCETunnelRequest request) + throws UCloudException; + + /** + * UpdateCETunnelAttribute - 更新隧道属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateCETunnelAttributeResponse updateCETunnelAttribute( + UpdateCETunnelAttributeRequest request) throws UCloudException; + /** * UpdateExportLine - 修改加速线路 * @@ -128,6 +281,15 @@ public DescribeExportLineRulesResponse describeExportLineRules( public UpdateExportLineResponse updateExportLine(UpdateExportLineRequest request) throws UCloudException; + /** + * UpdatePOPGWAttribute - 更新UWAN虚拟路由器属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdatePOPGWAttributeResponse updatePOPGWAttribute(UpdatePOPGWAttributeRequest request) + throws UCloudException; + /** * UpgradeExportLine - 升级加速线路 * diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCEGatewayRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCEGatewayRequest.java new file mode 100644 index 00000000..b99891b4 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCEGatewayRequest.java @@ -0,0 +1,124 @@ +/** + * 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.uwsc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateCEGatewayRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @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; + + /** 所属UWAN虚拟路由器资源ID */ + @NotEmpty + @UCloudParam("PopGwId") + private String popGwId; + + /** 客户自有公网IP */ + @NotEmpty + @UCloudParam("PublicIp") + private String publicIp; + + /** IP类型 枚举值:静态IP(Static) | 动态IP(Dynamic) */ + @NotEmpty + @UCloudParam("IpType") + private String ipType; + + /** 资源名称 */ + @UCloudParam("Name") + private String name; + + /** 备注 */ + @UCloudParam("Remark") + private String remark; + + 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 getPopGwId() { + return popGwId; + } + + public void setPopGwId(String popGwId) { + this.popGwId = popGwId; + } + + public String getPublicIp() { + return publicIp; + } + + public void setPublicIp(String publicIp) { + this.publicIp = publicIp; + } + + public String getIpType() { + return ipType; + } + + public void setIpType(String ipType) { + this.ipType = ipType; + } + + 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-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCEGatewayResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCEGatewayResponse.java new file mode 100644 index 00000000..71b12504 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCEGatewayResponse.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.uwsc.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateCEGatewayResponse extends Response { + + /** 客户网关资源 ID */ + @SerializedName("VPNId") + private String vpnId; + + /** 请求 ID */ + @SerializedName("RequestId") + private String requestId; + + public String getVPNId() { + return vpnId; + } + + public void setVPNId(String vpnId) { + this.vpnId = vpnId; + } + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCETunnelRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCETunnelRequest.java new file mode 100644 index 00000000..22b3940e --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCETunnelRequest.java @@ -0,0 +1,501 @@ +/** + * 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.uwsc.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 CreateCETunnelRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @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; + + /** 所属CE网关资源ID */ + @NotEmpty + @UCloudParam("VPNId") + private String vpnId; + + /** */ + @UCloudParam("IKEConf") + private IKEConf ikeConf; + + /** */ + @UCloudParam("IPSecConf") + private IPSecConf ipSecConf; + + /** IPSec 关闭后动作,枚举值:restart、trap、none */ + @NotEmpty + @UCloudParam("CloseAction") + private String closeAction; + + /** */ + @UCloudParam("DPDConf") + private DPDConf dpdConf; + + /** 路由模式,枚举值: 感兴趣流(FLow) | BGP(BGP) */ + @NotEmpty + @UCloudParam("Mode") + private String mode; + + /** */ + @UCloudParam("BGPConf") + private BGPConf bgpConf; + + /** 资源名称 */ + @UCloudParam("Name") + private String name; + + /** 备注 */ + @UCloudParam("Remark") + private String remark; + + 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 getVPNId() { + return vpnId; + } + + public void setVPNId(String vpnId) { + this.vpnId = vpnId; + } + + public IKEConf getIKEConf() { + return ikeConf; + } + + public void setIKEConf(IKEConf ikeConf) { + this.ikeConf = ikeConf; + } + + public IPSecConf getIPSecConf() { + return ipSecConf; + } + + public void setIPSecConf(IPSecConf ipSecConf) { + this.ipSecConf = ipSecConf; + } + + public String getCloseAction() { + return closeAction; + } + + public void setCloseAction(String closeAction) { + this.closeAction = closeAction; + } + + public DPDConf getDPDConf() { + return dpdConf; + } + + public void setDPDConf(DPDConf dpdConf) { + this.dpdConf = dpdConf; + } + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public BGPConf getBGPConf() { + return bgpConf; + } + + public void setBGPConf(BGPConf bgpConf) { + this.bgpConf = bgpConf; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public static class BGPConf extends Request { + + /** BGP隧道网段。该网段需是一个在 169.254.0.0/16 内的掩码长度为 30 的网段。 */ + @UCloudParam("TunnelCidr") + private String tunnelCidr; + + /** Ucloud侧的自治系统号。 */ + @UCloudParam("LocalAsn") + private String localAsn; + + /** 对端BGP ASN号。 */ + @UCloudParam("PeerAsn") + private String peerAsn; + + /** 云端BGP地址。必须从BGP隧道网段内分配。 */ + @UCloudParam("LocalIp") + private String localIp; + + /** 用户端BGP地址。必须从BGP隧道网段内分配。 */ + @UCloudParam("PeerIp") + private String peerIp; + + public String getTunnelCidr() { + return tunnelCidr; + } + + public void setTunnelCidr(String tunnelCidr) { + this.tunnelCidr = tunnelCidr; + } + + public String getLocalAsn() { + return localAsn; + } + + public void setLocalAsn(String localAsn) { + this.localAsn = localAsn; + } + + public String getPeerAsn() { + return peerAsn; + } + + public void setPeerAsn(String peerAsn) { + this.peerAsn = peerAsn; + } + + public String getLocalIp() { + return localIp; + } + + public void setLocalIp(String localIp) { + this.localIp = localIp; + } + + public String getPeerIp() { + return peerIp; + } + + public void setPeerIp(String peerIp) { + this.peerIp = peerIp; + } + } + + public static class DPDConf extends Request { + + /** 是否开启 DPD(对等体存活检测)功能。取值:0(关闭)、1(开启) */ + @NotEmpty + @UCloudParam("Enabled") + private Integer enabled; + + /** DPD超时后的动作,Enable为1(开启)时有效。可取值为clear(断开)、restart(重试)和 trap(流量触发) */ + @UCloudParam("Action") + private String action; + + /** DPD探测间隔时间。dpdEnable为1(开启)时有效。单位为秒,默认为 10 */ + @UCloudParam("Delay") + private Integer delay; + + /** DPD超时时间。即探测确认对端不存在需要的时间。dpdEnable为1(开启)时有效。单位为秒。取值范围为 30-60(IKEv2 默认为 0) */ + @UCloudParam("Timeout") + private Integer timeout; + + public Integer getEnabled() { + return enabled; + } + + public void setEnabled(Integer enabled) { + this.enabled = enabled; + } + + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public Integer getDelay() { + return delay; + } + + public void setDelay(Integer delay) { + this.delay = delay; + } + + public Integer getTimeout() { + return timeout; + } + + public void setTimeout(Integer timeout) { + this.timeout = timeout; + } + } + + public static class IKEConf extends Request { + + /** IKE 共享密钥 */ + @NotEmpty + @UCloudParam("PreSharedKey") + private String preSharedKey; + + /** IKE 版本,取值: "ike v1","ike v2" */ + @NotEmpty + @UCloudParam("Version") + private String version; + + /** IKE 协商模式,主模式(main)/野蛮模式(aggressive),IKE V2时不使用该参数 */ + @NotEmpty + @UCloudParam("ExchangeMode") + private String exchangeMode; + + /** IKE 加密算法,取值:"aes128", "aes192", "aes256", "aes512", "3des" */ + @NotEmpty + @UCloudParam("EncryptionAlgorithm") + private String encryptionAlgorithm; + + /** IKE 认证算法,取值:"md5", "sha1", "sha2-256" */ + @NotEmpty + @UCloudParam("AuthenticationAlgorithm") + private String authenticationAlgorithm; + + /** DH group,指定IKE交换密钥时使用的DH组。取值:"1", "2", "5", "14", "15", "16" */ + @NotEmpty + @UCloudParam("DhGroup") + private String dhGroup; + + /** 本端标识,取值:“auto”,“” */ + @NotEmpty + @UCloudParam("LocalId") + private String localId; + + /** 对端标识,取值:“auto”,“” */ + @NotEmpty + @UCloudParam("RemoteId") + private String remoteId; + + /** IKE SA的生存周期,取值范围:600-604800 */ + @NotEmpty + @UCloudParam("SALifeTime") + private String saLifeTime; + + public String getPreSharedKey() { + return preSharedKey; + } + + public void setPreSharedKey(String preSharedKey) { + this.preSharedKey = preSharedKey; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getExchangeMode() { + return exchangeMode; + } + + public void setExchangeMode(String exchangeMode) { + this.exchangeMode = exchangeMode; + } + + public String getEncryptionAlgorithm() { + return encryptionAlgorithm; + } + + public void setEncryptionAlgorithm(String encryptionAlgorithm) { + this.encryptionAlgorithm = encryptionAlgorithm; + } + + public String getAuthenticationAlgorithm() { + return authenticationAlgorithm; + } + + public void setAuthenticationAlgorithm(String authenticationAlgorithm) { + this.authenticationAlgorithm = authenticationAlgorithm; + } + + public String getDhGroup() { + return dhGroup; + } + + public void setDhGroup(String dhGroup) { + this.dhGroup = dhGroup; + } + + public String getLocalId() { + return localId; + } + + public void setLocalId(String localId) { + this.localId = localId; + } + + public String getRemoteId() { + return remoteId; + } + + public void setRemoteId(String remoteId) { + this.remoteId = remoteId; + } + + public String getSALifeTime() { + return saLifeTime; + } + + public void setSALifeTime(String saLifeTime) { + this.saLifeTime = saLifeTime; + } + } + + public static class IPSecConf extends Request { + + /** 需要和 VPC 互通的本地数据中心侧的网段,用于第二阶段协商。 */ + @NotEmpty + @UCloudParam("CENetwork") + private List ceNetwork; + + /** IPSec 安全协议,取值:“esp”,“ah” */ + @NotEmpty + @UCloudParam("Protocol") + private String protocol; + + /** IPSec 加密算法,取值:"aes128", "aes192", "aes256", "aes512", "3des" */ + @NotEmpty + @UCloudParam("EncryptionAlgorithm") + private String encryptionAlgorithm; + + /** 第二阶段协商的认证算法。取值:md5、sha1、sha2-256。 */ + @NotEmpty + @UCloudParam("AuthenticationAlgorithm") + private String authenticationAlgorithm; + + /** 第二阶段协商使用的 Diffie-Hellman 密钥交换算法。取值:disabled、1、2、5、14、15、16。 */ + @NotEmpty + @UCloudParam("PFSDhGroup") + private String pfsDhGroup; + + /** 第二阶段协商出的 SA 的生存周期。单位:秒。取值范围:1200~604800 */ + @NotEmpty + @UCloudParam("SALifeTime") + private String saLifeTime; + + /** 第二阶段协商出的 SA 的生存周期。单位:字节 KB。取值范围:8000 – 20000000,默认使用SA超时时间 */ + @UCloudParam("SALifetimeBytes") + private String saLifetimeBytes; + + public List getCENetwork() { + return ceNetwork; + } + + public void setCENetwork(List ceNetwork) { + this.ceNetwork = ceNetwork; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getEncryptionAlgorithm() { + return encryptionAlgorithm; + } + + public void setEncryptionAlgorithm(String encryptionAlgorithm) { + this.encryptionAlgorithm = encryptionAlgorithm; + } + + public String getAuthenticationAlgorithm() { + return authenticationAlgorithm; + } + + public void setAuthenticationAlgorithm(String authenticationAlgorithm) { + this.authenticationAlgorithm = authenticationAlgorithm; + } + + public String getPFSDhGroup() { + return pfsDhGroup; + } + + public void setPFSDhGroup(String pfsDhGroup) { + this.pfsDhGroup = pfsDhGroup; + } + + public String getSALifeTime() { + return saLifeTime; + } + + public void setSALifeTime(String saLifeTime) { + this.saLifeTime = saLifeTime; + } + + public String getSALifetimeBytes() { + return saLifetimeBytes; + } + + public void setSALifetimeBytes(String saLifetimeBytes) { + this.saLifetimeBytes = saLifetimeBytes; + } + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCETunnelResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCETunnelResponse.java new file mode 100644 index 00000000..40ebb376 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreateCETunnelResponse.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.uwsc.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateCETunnelResponse extends Response { + + /** VPN 隧道 ID */ + @SerializedName("VPNTunnelId") + private String vpnTunnelId; + + public String getVPNTunnelId() { + return vpnTunnelId; + } + + public void setVPNTunnelId(String vpnTunnelId) { + this.vpnTunnelId = vpnTunnelId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreatePOPGWRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreatePOPGWRequest.java new file mode 100644 index 00000000..ca7ac0f7 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreatePOPGWRequest.java @@ -0,0 +1,263 @@ +/** + * 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.uwsc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreatePOPGWRequest 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; + + /** */ + @UCloudParam("BWConf") + private BWConf bwConf; + + /** 资源名称 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** UWAN 网关的购买时长,默认为 0,代表有效期至月底。(保持和BWConf.Quantity 相同) */ + @NotEmpty + @UCloudParam("Quantity") + private Integer quantity; + + /** 资源备注信息 */ + @UCloudParam("Remark") + private String remark; + + /** 付费方式, 枚举值为: - Year:按年付费; - Month: 按月付费; (月付非必填,默认为 0;年付必填。) */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 入网类型,仅支持“IPSec” */ + @UCloudParam("Type") + private String type; + + /** 代金券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 BWConf getBWConf() { + return bwConf; + } + + public void setBWConf(BWConf bwConf) { + this.bwConf = bwConf; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } + + public static class BWConf extends Request { + + /** 带宽的名称 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** 带宽的计费方式,取值: - fixed-bw:固定带宽计费; - traffic:流量计费。 */ + @NotEmpty + @UCloudParam("PayMode") + private String payMode; + + /** UWAN 网关的带宽规格。取值:1-100。单位:Mbps。 */ + @NotEmpty + @UCloudParam("BwMax") + private Double bwMax; + + /** 付费方式,枚举值: - Month:月付; - Year:年付; - Postpadi:后付费(仅支持流量计费方式) */ + @NotEmpty + @UCloudParam("ChargeType") + private String chargeType; + + /** 带宽购买时长,默认为 0,代表有效期至月底 */ + @UCloudParam("Quantity") + private Double quantity; + + /** 产品 ID */ + @UCloudParam("ProductId") + private Integer productId; + + /** 优惠券 ID */ + @UCloudParam("CouponId") + private String couponId; + + /** 带宽包备注信息 */ + @UCloudParam("Remark") + private String remark; + + /** 带宽类型,默认为空字符串 */ + @UCloudParam("BwType") + private String bwType; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPayMode() { + return payMode; + } + + public void setPayMode(String payMode) { + this.payMode = payMode; + } + + public Double getBwMax() { + return bwMax; + } + + public void setBwMax(Double bwMax) { + this.bwMax = bwMax; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getQuantity() { + return quantity; + } + + public void setQuantity(Double quantity) { + this.quantity = quantity; + } + + public Integer getProductId() { + return productId; + } + + public void setProductId(Integer productId) { + this.productId = productId; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getBwType() { + return bwType; + } + + public void setBwType(String bwType) { + this.bwType = bwType; + } + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreatePOPGWResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreatePOPGWResponse.java new file mode 100644 index 00000000..9c650845 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/CreatePOPGWResponse.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.uwsc.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreatePOPGWResponse extends Response { + + /** UWAN 网关实例 ID */ + @SerializedName("PopGwId") + private String popGwId; + + /** 请求 ID */ + @SerializedName("RequestId") + private String requestId; + + public String getPopGwId() { + return popGwId; + } + + public void setPopGwId(String popGwId) { + this.popGwId = popGwId; + } + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCEGatewayRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCEGatewayRequest.java new file mode 100644 index 00000000..d14e60d2 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCEGatewayRequest.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.uwsc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteCEGatewayRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @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; + + /** CE 实例 ID */ + @NotEmpty + @UCloudParam("VPNId") + private String vpnId; + + 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 getVPNId() { + return vpnId; + } + + public void setVPNId(String vpnId) { + this.vpnId = vpnId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCEGatewayResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCEGatewayResponse.java new file mode 100644 index 00000000..219f3f16 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCEGatewayResponse.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.uwsc.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DeleteCEGatewayResponse extends Response { + + /** 请求 ID */ + @SerializedName("RequestId") + private String requestId; + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCETunnelRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCETunnelRequest.java new file mode 100644 index 00000000..6d78b785 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCETunnelRequest.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.uwsc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteCETunnelRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @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; + + /** 资源ID */ + @NotEmpty + @UCloudParam("VPNTunnelId") + private String vpnTunnelId; + + 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 getVPNTunnelId() { + return vpnTunnelId; + } + + public void setVPNTunnelId(String vpnTunnelId) { + this.vpnTunnelId = vpnTunnelId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCETunnelResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCETunnelResponse.java new file mode 100644 index 00000000..5d90ac20 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeleteCETunnelResponse.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.uwsc.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DeleteCETunnelResponse extends Response { + + /** 请求 ID */ + @SerializedName("RequestId") + private String requestId; + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeletePOPGWRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeletePOPGWRequest.java new file mode 100644 index 00000000..405faebd --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeletePOPGWRequest.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.uwsc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeletePOPGWRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @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; + + /** UWAN虚拟路由器资源ID */ + @NotEmpty + @UCloudParam("PopGwId") + private String popGwId; + + 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 getPopGwId() { + return popGwId; + } + + public void setPopGwId(String popGwId) { + this.popGwId = popGwId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeletePOPGWResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeletePOPGWResponse.java new file mode 100644 index 00000000..b40d8857 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DeletePOPGWResponse.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.uwsc.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DeletePOPGWResponse extends Response { + + /** 请求 ID */ + @SerializedName("RequestId") + private String requestId; + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCEGatewayRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCEGatewayRequest.java new file mode 100644 index 00000000..a706924d --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCEGatewayRequest.java @@ -0,0 +1,108 @@ +/** + * 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.uwsc.models; + + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeCEGatewayRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @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; + + /** UWAN 实例 ID */ + @UCloudParam("PopGwId") + private String popGwId; + + /** CE 实例 ID */ + @UCloudParam("VPNId") + private String vpnId; + + /** 偏移量 */ + @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 getPopGwId() { + return popGwId; + } + + public void setPopGwId(String popGwId) { + this.popGwId = popGwId; + } + + public String getVPNId() { + return vpnId; + } + + public void setVPNId(String vpnId) { + this.vpnId = vpnId; + } + + 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-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCEGatewayResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCEGatewayResponse.java new file mode 100644 index 00000000..82f75f1b --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCEGatewayResponse.java @@ -0,0 +1,194 @@ +/** + * 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.uwsc.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeCEGatewayResponse extends Response { + + /** 总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** CE信息 */ + @SerializedName("VPNInfos") + private List vpnInfos; + + /** 请求 ID */ + @SerializedName("RequestId") + private String requestId; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getVPNInfos() { + return vpnInfos; + } + + public void setVPNInfos(List vpnInfos) { + this.vpnInfos = vpnInfos; + } + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public static class VPNInfo extends Response { + + /** 地域 */ + @SerializedName("Region") + private String region; + + /** UWAN 实例 ID */ + @SerializedName("PopGwId") + private String popGwId; + + /** UWAN 资源名称 */ + @SerializedName("PopGwName") + private String popGwName; + + /** CE 网关 ID */ + @SerializedName("VPNId") + private String vpnId; + + /** 子隧道 ID */ + @SerializedName("VPNTunnelIds") + private List vpnTunnelIds; + + /** CE 名称 */ + @SerializedName("Name") + private String name; + + /** 客户自有外网 IP */ + @SerializedName("PublicIp") + private String publicIp; + + /** CE网关的接入方式:静态IP(Static),动态IP(Dynamic) */ + @SerializedName("IpType") + private String ipType; + + /** 状态(默认为空) */ + @SerializedName("Status") + private String status; + + /** 创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** CE备注 */ + @SerializedName("Remark") + private String remark; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getPopGwId() { + return popGwId; + } + + public void setPopGwId(String popGwId) { + this.popGwId = popGwId; + } + + public String getPopGwName() { + return popGwName; + } + + public void setPopGwName(String popGwName) { + this.popGwName = popGwName; + } + + public String getVPNId() { + return vpnId; + } + + public void setVPNId(String vpnId) { + this.vpnId = vpnId; + } + + public List getVPNTunnelIds() { + return vpnTunnelIds; + } + + public void setVPNTunnelIds(List vpnTunnelIds) { + this.vpnTunnelIds = vpnTunnelIds; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPublicIp() { + return publicIp; + } + + public void setPublicIp(String publicIp) { + this.publicIp = publicIp; + } + + public String getIpType() { + return ipType; + } + + public void setIpType(String ipType) { + this.ipType = ipType; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCETunnelRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCETunnelRequest.java new file mode 100644 index 00000000..1d482800 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCETunnelRequest.java @@ -0,0 +1,108 @@ +/** + * 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.uwsc.models; + + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeCETunnelRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @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; + + /** CE 网关 ID */ + @UCloudParam("VPNId") + private String vpnId; + + /** 隧道 ID */ + @UCloudParam("VPNTunnelId") + private String vpnTunnelId; + + /** 列表起始位置偏移量,默认为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 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 getVPNId() { + return vpnId; + } + + public void setVPNId(String vpnId) { + this.vpnId = vpnId; + } + + public String getVPNTunnelId() { + return vpnTunnelId; + } + + public void setVPNTunnelId(String vpnTunnelId) { + this.vpnTunnelId = vpnTunnelId; + } + + 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-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCETunnelResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCETunnelResponse.java new file mode 100644 index 00000000..08c186a0 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribeCETunnelResponse.java @@ -0,0 +1,530 @@ +/** + * 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.uwsc.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeCETunnelResponse extends Response { + + /** 总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 隧道信息 */ + @SerializedName("VPNTunnelInfos") + private List vpnTunnelInfos; + + /** 请求 ID */ + @SerializedName("RequestId") + private String requestId; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getVPNTunnelInfos() { + return vpnTunnelInfos; + } + + public void setVPNTunnelInfos(List vpnTunnelInfos) { + this.vpnTunnelInfos = vpnTunnelInfos; + } + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public static class BGPConf extends Response { + + /** BGP隧道网段 */ + @SerializedName("TunnelCidr") + private String tunnelCidr; + + /** 本端自治系统号 */ + @SerializedName("LocalAsn") + private Integer localAsn; + + /** 对端自治系统号 */ + @SerializedName("PeerAsn") + private Integer peerAsn; + + /** 云端BGP地址 */ + @SerializedName("LocalIp") + private String localIp; + + /** 用户端BGP地址 */ + @SerializedName("PeerIp") + private String peerIp; + + public String getTunnelCidr() { + return tunnelCidr; + } + + public void setTunnelCidr(String tunnelCidr) { + this.tunnelCidr = tunnelCidr; + } + + public Integer getLocalAsn() { + return localAsn; + } + + public void setLocalAsn(Integer localAsn) { + this.localAsn = localAsn; + } + + public Integer getPeerAsn() { + return peerAsn; + } + + public void setPeerAsn(Integer peerAsn) { + this.peerAsn = peerAsn; + } + + public String getLocalIp() { + return localIp; + } + + public void setLocalIp(String localIp) { + this.localIp = localIp; + } + + public String getPeerIp() { + return peerIp; + } + + public void setPeerIp(String peerIp) { + this.peerIp = peerIp; + } + } + + public static class DPDConf extends Response { + + /** 是否开启 DPD */ + @SerializedName("Enabled") + private Integer enabled; + + /** DPD 行为 */ + @SerializedName("Action") + private String action; + + /** DPD 探测间隔时间 */ + @SerializedName("Delay") + private Integer delay; + + /** DPD 探测超时时间 */ + @SerializedName("Timeout") + private Integer timeout; + + public Integer getEnabled() { + return enabled; + } + + public void setEnabled(Integer enabled) { + this.enabled = enabled; + } + + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public Integer getDelay() { + return delay; + } + + public void setDelay(Integer delay) { + this.delay = delay; + } + + public Integer getTimeout() { + return timeout; + } + + public void setTimeout(Integer timeout) { + this.timeout = timeout; + } + } + + public static class IKEConf extends Response { + + /** 预共享密钥 */ + @SerializedName("PreSharedKey") + private String preSharedKey; + + /** 版本 */ + @SerializedName("Version") + private String version; + + /** 协商模式 */ + @SerializedName("ExchangeMode") + private String exchangeMode; + + /** 加密算法 */ + @SerializedName("EncryptionAlgorithm") + private String encryptionAlgorithm; + + /** 认证算法 */ + @SerializedName("AuthenticationAlgorithm") + private String authenticationAlgorithm; + + /** 分组信息 */ + @SerializedName("DhGroup") + private String dhGroup; + + /** 本端标识 */ + @SerializedName("LocalId") + private String localId; + + /** 对端标识 */ + @SerializedName("RemoteId") + private String remoteId; + + /** IKE SA的生存周期 */ + @SerializedName("SALifeTime") + private String saLifeTime; + + public String getPreSharedKey() { + return preSharedKey; + } + + public void setPreSharedKey(String preSharedKey) { + this.preSharedKey = preSharedKey; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getExchangeMode() { + return exchangeMode; + } + + public void setExchangeMode(String exchangeMode) { + this.exchangeMode = exchangeMode; + } + + public String getEncryptionAlgorithm() { + return encryptionAlgorithm; + } + + public void setEncryptionAlgorithm(String encryptionAlgorithm) { + this.encryptionAlgorithm = encryptionAlgorithm; + } + + public String getAuthenticationAlgorithm() { + return authenticationAlgorithm; + } + + public void setAuthenticationAlgorithm(String authenticationAlgorithm) { + this.authenticationAlgorithm = authenticationAlgorithm; + } + + public String getDhGroup() { + return dhGroup; + } + + public void setDhGroup(String dhGroup) { + this.dhGroup = dhGroup; + } + + public String getLocalId() { + return localId; + } + + public void setLocalId(String localId) { + this.localId = localId; + } + + public String getRemoteId() { + return remoteId; + } + + public void setRemoteId(String remoteId) { + this.remoteId = remoteId; + } + + public String getSALifeTime() { + return saLifeTime; + } + + public void setSALifeTime(String saLifeTime) { + this.saLifeTime = saLifeTime; + } + } + + public static class IPSecConf extends Response { + + /** 客户网段 */ + @SerializedName("CENetwork") + private List ceNetwork; + + /** 安全协议 */ + @SerializedName("Protocol") + private String protocol; + + /** 加密算法 */ + @SerializedName("EncryptionAlgorithm") + private String encryptionAlgorithm; + + /** 认证算法 */ + @SerializedName("AuthenticationAlgorithm") + private String authenticationAlgorithm; + + /** 第二阶段协商使用的 Diffie-Hellman 密钥交换算法 */ + @SerializedName("PFSDhGroup") + private String pfsDhGroup; + + /** 第二阶段的 SA 的生存周期 */ + @SerializedName("SALifeTime") + private String saLifeTime; + + /** 第二阶段的 SA 的生存周期 */ + @SerializedName("SALifetimeBytes") + private String saLifetimeBytes; + + public List getCENetwork() { + return ceNetwork; + } + + public void setCENetwork(List ceNetwork) { + this.ceNetwork = ceNetwork; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getEncryptionAlgorithm() { + return encryptionAlgorithm; + } + + public void setEncryptionAlgorithm(String encryptionAlgorithm) { + this.encryptionAlgorithm = encryptionAlgorithm; + } + + public String getAuthenticationAlgorithm() { + return authenticationAlgorithm; + } + + public void setAuthenticationAlgorithm(String authenticationAlgorithm) { + this.authenticationAlgorithm = authenticationAlgorithm; + } + + public String getPFSDhGroup() { + return pfsDhGroup; + } + + public void setPFSDhGroup(String pfsDhGroup) { + this.pfsDhGroup = pfsDhGroup; + } + + public String getSALifeTime() { + return saLifeTime; + } + + public void setSALifeTime(String saLifeTime) { + this.saLifeTime = saLifeTime; + } + + public String getSALifetimeBytes() { + return saLifetimeBytes; + } + + public void setSALifetimeBytes(String saLifetimeBytes) { + this.saLifetimeBytes = saLifetimeBytes; + } + } + + public static class VPNTunnelInfo extends Response { + + /** 地域 */ + @SerializedName("Region") + private String region; + + /** CE 网关 ID */ + @SerializedName("VPNId") + private String vpnId; + + /** 隧道 ID */ + @SerializedName("VPNTunnelId") + private String vpnTunnelId; + + /** 隧道名称 */ + @SerializedName("Name") + private String name; + + /** 备注 */ + @SerializedName("Remark") + private String remark; + + /** 创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** IKE 配置信息 */ + @SerializedName("IKEConf") + private IKEConf ikeConf; + + /** IPSec 配置信息 */ + @SerializedName("IPSecConf") + private IPSecConf ipSecConf; + + /** 隧道关闭后动作 */ + @SerializedName("CloseAction") + private String closeAction; + + /** BGP 配置信息 */ + @SerializedName("BGPConf") + private BGPConf bgpConf; + + /** 路由模式 */ + @SerializedName("Mode") + private String mode; + + /** DPD 配置信息 */ + @SerializedName("DPDConf") + private DPDConf dpdConf; + + /** 隧道协商动作 */ + @SerializedName("StartAction") + private String startAction; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getVPNId() { + return vpnId; + } + + public void setVPNId(String vpnId) { + this.vpnId = vpnId; + } + + public String getVPNTunnelId() { + return vpnTunnelId; + } + + public void setVPNTunnelId(String vpnTunnelId) { + this.vpnTunnelId = vpnTunnelId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public IKEConf getIKEConf() { + return ikeConf; + } + + public void setIKEConf(IKEConf ikeConf) { + this.ikeConf = ikeConf; + } + + public IPSecConf getIPSecConf() { + return ipSecConf; + } + + public void setIPSecConf(IPSecConf ipSecConf) { + this.ipSecConf = ipSecConf; + } + + public String getCloseAction() { + return closeAction; + } + + public void setCloseAction(String closeAction) { + this.closeAction = closeAction; + } + + public BGPConf getBGPConf() { + return bgpConf; + } + + public void setBGPConf(BGPConf bgpConf) { + this.bgpConf = bgpConf; + } + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public DPDConf getDPDConf() { + return dpdConf; + } + + public void setDPDConf(DPDConf dpdConf) { + this.dpdConf = dpdConf; + } + + public String getStartAction() { + return startAction; + } + + public void setStartAction(String startAction) { + this.startAction = startAction; + } + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribePOPGWRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribePOPGWRequest.java new file mode 100644 index 00000000..6d10b2cd --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribePOPGWRequest.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.uwsc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribePOPGWRequest 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; + + /** UWAN 实例 ID */ + @NotEmpty + @UCloudParam("PopGwId") + private String popGwId; + + /** 偏移量 */ + @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 getPopGwId() { + return popGwId; + } + + public void setPopGwId(String popGwId) { + this.popGwId = popGwId; + } + + 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-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribePOPGWResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribePOPGWResponse.java new file mode 100644 index 00000000..95a0f18e --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/DescribePOPGWResponse.java @@ -0,0 +1,395 @@ +/** + * 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.uwsc.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribePOPGWResponse extends Response { + + /** 总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** UWAN 实例信息 */ + @SerializedName("POPGWInfos") + private List popgwInfos; + + /** 请求 ID */ + @SerializedName("RequestId") + private String requestId; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getPOPGWInfos() { + return popgwInfos; + } + + public void setPOPGWInfos(List popgwInfos) { + this.popgwInfos = popgwInfos; + } + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public static class BWPackageInfo extends Response { + + /** UWAN 网关带宽 ID */ + @SerializedName("BwId") + private String bwId; + + /** 带宽包名称 */ + @SerializedName("Name") + private String name; + + /** 备注 */ + @SerializedName("Remark") + private String remark; + + /** 计费方式eg:(固定带宽) */ + @SerializedName("PayMode") + private String payMode; + + /** 付费方式eg:(Month) */ + @SerializedName("ChargeType") + private String chargeType; + + /** 网关外网 IP */ + @SerializedName("PublicIp") + private String publicIp; + + /** 最大带宽值 */ + @SerializedName("BandWidth") + private Double bandWidth; + + /** 过期时间 */ + @SerializedName("DueTime") + private Integer dueTime; + + public String getBwId() { + return bwId; + } + + public void setBwId(String bwId) { + this.bwId = bwId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getPayMode() { + return payMode; + } + + public void setPayMode(String payMode) { + this.payMode = payMode; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getPublicIp() { + return publicIp; + } + + public void setPublicIp(String publicIp) { + this.publicIp = publicIp; + } + + public Double getBandWidth() { + return bandWidth; + } + + public void setBandWidth(Double bandWidth) { + this.bandWidth = bandWidth; + } + + public Integer getDueTime() { + return dueTime; + } + + public void setDueTime(Integer dueTime) { + this.dueTime = dueTime; + } + } + + public static class POPGWInfo extends Response { + + /** 地域信息 */ + @SerializedName("Region") + private String region; + + /** 网关实例 ID */ + @SerializedName("PopGwId") + private String popGwId; + + /** 网关名称 */ + @SerializedName("Name") + private String name; + + /** 备注 */ + @SerializedName("Remark") + private String remark; + + /** 创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 带宽包信息 */ + @SerializedName("BWPackageInfo") + private BWPackageInfo bwPackageInfo; + + /** 云联网信息 */ + @SerializedName("UGNInfo") + private UGNInfo ugnInfo; + + /** CPE数量 */ + @SerializedName("CPENum") + private Integer cpeNum; + + /** 客户网关数量 */ + @SerializedName("CENum") + private Integer ceNum; + + /** VCPE 数量 */ + @SerializedName("VCPENum") + private Integer vcpeNum; + + /** 唯一标识 */ + @SerializedName("VNI") + private Integer vni; + + /** 过期时间 */ + @SerializedName("DueTime") + private Integer dueTime; + + /** 付费类型 */ + @SerializedName("ChargeType") + private String chargeType; + + /** 规格:IPSec、SSL */ + @SerializedName("Type") + private String type; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getPopGwId() { + return popGwId; + } + + public void setPopGwId(String popGwId) { + this.popGwId = popGwId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public BWPackageInfo getBWPackageInfo() { + return bwPackageInfo; + } + + public void setBWPackageInfo(BWPackageInfo bwPackageInfo) { + this.bwPackageInfo = bwPackageInfo; + } + + public UGNInfo getUGNInfo() { + return ugnInfo; + } + + public void setUGNInfo(UGNInfo ugnInfo) { + this.ugnInfo = ugnInfo; + } + + public Integer getCPENum() { + return cpeNum; + } + + public void setCPENum(Integer cpeNum) { + this.cpeNum = cpeNum; + } + + public Integer getCENum() { + return ceNum; + } + + public void setCENum(Integer ceNum) { + this.ceNum = ceNum; + } + + public Integer getVCPENum() { + return vcpeNum; + } + + public void setVCPENum(Integer vcpeNum) { + this.vcpeNum = vcpeNum; + } + + public Integer getVNI() { + return vni; + } + + public void setVNI(Integer vni) { + this.vni = vni; + } + + public Integer getDueTime() { + return dueTime; + } + + public void setDueTime(Integer dueTime) { + this.dueTime = dueTime; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + } + + public static class UGNBWInfo extends Response { + + /** UGN带宽包ID */ + @SerializedName("UGNBWId") + private String ugnbwId; + + /** UGN带宽包名称 */ + @SerializedName("UGNBWName") + private String ugnbwName; + + public String getUGNBWId() { + return ugnbwId; + } + + public void setUGNBWId(String ugnbwId) { + this.ugnbwId = ugnbwId; + } + + public String getUGNBWName() { + return ugnbwName; + } + + public void setUGNBWName(String ugnbwName) { + this.ugnbwName = ugnbwName; + } + } + + public static class UGNInfo extends Response { + + /** 云联网 ID */ + @SerializedName("UGNId") + private String ugnId; + + /** 云联网名称 */ + @SerializedName("UGNName") + private String ugnName; + + /** UGN 带宽包信息 */ + @SerializedName("UGNBWInfos") + private List ugnbwInfos; + + public String getUGNId() { + return ugnId; + } + + public void setUGNId(String ugnId) { + this.ugnId = ugnId; + } + + public String getUGNName() { + return ugnName; + } + + public void setUGNName(String ugnName) { + this.ugnName = ugnName; + } + + public List getUGNBWInfos() { + return ugnbwInfos; + } + + public void setUGNBWInfos(List ugnbwInfos) { + this.ugnbwInfos = ugnbwInfos; + } + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/ListAvailableRegionRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/ListAvailableRegionRequest.java new file mode 100644 index 00000000..bae4d944 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/ListAvailableRegionRequest.java @@ -0,0 +1,38 @@ +/** + * 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.uwsc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListAvailableRegionRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/ListAvailableRegionResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/ListAvailableRegionResponse.java new file mode 100644 index 00000000..d78a7659 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/ListAvailableRegionResponse.java @@ -0,0 +1,35 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uwsc.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListAvailableRegionResponse extends Response { + + /** 可用地域 */ + @SerializedName("Region") + private List region; + + public List getRegion() { + return region; + } + + public void setRegion(List region) { + this.region = region; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateBWPackageRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateBWPackageRequest.java new file mode 100644 index 00000000..7e74a943 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateBWPackageRequest.java @@ -0,0 +1,88 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uwsc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateBWPackageRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 带宽包资源ID */ + @NotEmpty + @UCloudParam("BwId") + private String bwId; + + /** 带宽峰值 */ + @NotEmpty + @UCloudParam("BwMax") + private Double bwMax; + + 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 getBwId() { + return bwId; + } + + public void setBwId(String bwId) { + this.bwId = bwId; + } + + public Double getBwMax() { + return bwMax; + } + + public void setBwMax(Double bwMax) { + this.bwMax = bwMax; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateBWPackageResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateBWPackageResponse.java new file mode 100644 index 00000000..f24c603d --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateBWPackageResponse.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.uwsc.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class UpdateBWPackageResponse extends Response { + + /** 请求 ID */ + @SerializedName("RequestId") + private String requestId; + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCEGatewayRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCEGatewayRequest.java new file mode 100644 index 00000000..fe1e4546 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCEGatewayRequest.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.uwsc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateCEGatewayRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @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; + + /** CE网关资源ID */ + @NotEmpty + @UCloudParam("VPNId") + private String vpnId; + + /** 公网IP */ + @UCloudParam("PublicIp") + private String publicIp; + + /** 资源名称 */ + @UCloudParam("Name") + private String name; + + /** 备注 */ + @UCloudParam("Remark") + private String remark; + + 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 getVPNId() { + return vpnId; + } + + public void setVPNId(String vpnId) { + this.vpnId = vpnId; + } + + public String getPublicIp() { + return publicIp; + } + + public void setPublicIp(String publicIp) { + this.publicIp = publicIp; + } + + 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-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCEGatewayResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCEGatewayResponse.java new file mode 100644 index 00000000..9e58d00e --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCEGatewayResponse.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.uwsc.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class UpdateCEGatewayResponse extends Response { + + /** 请求 ID */ + @SerializedName("RequestId") + private String requestId; + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelAttributeRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelAttributeRequest.java new file mode 100644 index 00000000..cf0755b0 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelAttributeRequest.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.uwsc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateCETunnelAttributeRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @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; + + /** 资源ID */ + @NotEmpty + @UCloudParam("VPNTunnelId") + private String vpnTunnelId; + + /** 资源名称 */ + @UCloudParam("Name") + private String name; + + /** 备注 */ + @UCloudParam("Remark") + private String remark; + + 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 getVPNTunnelId() { + return vpnTunnelId; + } + + public void setVPNTunnelId(String vpnTunnelId) { + this.vpnTunnelId = vpnTunnelId; + } + + 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-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelAttributeResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelAttributeResponse.java new file mode 100644 index 00000000..d7dcf6ed --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelAttributeResponse.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.uwsc.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class UpdateCETunnelAttributeResponse extends Response { + + /** 请求 ID */ + @SerializedName("RequestId") + private String requestId; + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelRequest.java new file mode 100644 index 00000000..ea36296a --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelRequest.java @@ -0,0 +1,462 @@ +/** + * 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.uwsc.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 UpdateCETunnelRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @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; + + /** 资源ID */ + @NotEmpty + @UCloudParam("VPNTunnelId") + private String vpnTunnelId; + + /** */ + @UCloudParam("IKEConf") + private IKEConf ikeConf; + + /** */ + @UCloudParam("IPSecConf") + private IPSecConf ipSecConf; + + /** IPSec 关闭后动作,枚举值:restart、trap、none */ + @UCloudParam("CloseAction") + private String closeAction; + + /** */ + @UCloudParam("DPDConf") + private DPDConf dpdConf; + + /** */ + @UCloudParam("BGPConf") + private BGPConf bgpConf; + + 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 getVPNTunnelId() { + return vpnTunnelId; + } + + public void setVPNTunnelId(String vpnTunnelId) { + this.vpnTunnelId = vpnTunnelId; + } + + public IKEConf getIKEConf() { + return ikeConf; + } + + public void setIKEConf(IKEConf ikeConf) { + this.ikeConf = ikeConf; + } + + public IPSecConf getIPSecConf() { + return ipSecConf; + } + + public void setIPSecConf(IPSecConf ipSecConf) { + this.ipSecConf = ipSecConf; + } + + public String getCloseAction() { + return closeAction; + } + + public void setCloseAction(String closeAction) { + this.closeAction = closeAction; + } + + public DPDConf getDPDConf() { + return dpdConf; + } + + public void setDPDConf(DPDConf dpdConf) { + this.dpdConf = dpdConf; + } + + public BGPConf getBGPConf() { + return bgpConf; + } + + public void setBGPConf(BGPConf bgpConf) { + this.bgpConf = bgpConf; + } + + public static class BGPConf extends Request { + + /** BGP隧道网段。该网段需是一个在 169.254.0.0/16 内的掩码长度为 30 的网段。 */ + @UCloudParam("TunnelCidr") + private String tunnelCidr; + + /** Ucloud侧的自治系统号。 */ + @UCloudParam("LocalAsn") + private String localAsn; + + /** 对端BGP ASN号。 */ + @UCloudParam("PeerAsn") + private String peerAsn; + + /** 云端BGP地址。必须从BGP隧道网段内分配。 */ + @UCloudParam("LocalIp") + private String localIp; + + /** 用户端BGP地址。必须从BGP隧道网段内分配。 */ + @UCloudParam("PeerIp") + private String peerIp; + + public String getTunnelCidr() { + return tunnelCidr; + } + + public void setTunnelCidr(String tunnelCidr) { + this.tunnelCidr = tunnelCidr; + } + + public String getLocalAsn() { + return localAsn; + } + + public void setLocalAsn(String localAsn) { + this.localAsn = localAsn; + } + + public String getPeerAsn() { + return peerAsn; + } + + public void setPeerAsn(String peerAsn) { + this.peerAsn = peerAsn; + } + + public String getLocalIp() { + return localIp; + } + + public void setLocalIp(String localIp) { + this.localIp = localIp; + } + + public String getPeerIp() { + return peerIp; + } + + public void setPeerIp(String peerIp) { + this.peerIp = peerIp; + } + } + + public static class DPDConf extends Request { + + /** 是否开启 DPD(对等体存活检测)功能。取值:0(关闭)、1(开启) */ + @UCloudParam("Enabled") + private String enabled; + + /** DPD超时后的动作,Enable为1(开启)时有效。可取值为clear(断开)、restart(重试)和 trap(流量触发) */ + @UCloudParam("Action") + private String action; + + /** DPD探测间隔时间。dpdEnable为1(开启)时有效。单位为秒,默认为 10 */ + @UCloudParam("Delay") + private String delay; + + /** DPD超时时间。即探测确认对端不存在需要的时间。dpdEnable为1(开启)时有效。单位为秒。取值范围为 30-60(IKEv2 默认为 0) */ + @UCloudParam("Timeout") + private String timeout; + + public String getEnabled() { + return enabled; + } + + public void setEnabled(String enabled) { + this.enabled = enabled; + } + + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public String getDelay() { + return delay; + } + + public void setDelay(String delay) { + this.delay = delay; + } + + public String getTimeout() { + return timeout; + } + + public void setTimeout(String timeout) { + this.timeout = timeout; + } + } + + public static class IKEConf extends Request { + + /** IKE 共享密钥 */ + @NotEmpty + @UCloudParam("PreSharedKey") + private String preSharedKey; + + /** IKE 版本,取值: "ike v1","ike v2" */ + @NotEmpty + @UCloudParam("Version") + private String version; + + /** IKE 协商模式,主模式(main)/野蛮模式(aggressive),IKE V2时不使用该参数 */ + @NotEmpty + @UCloudParam("ExchangeMode") + private String exchangeMode; + + /** IKE 加密算法,取值:"aes128", "aes192", "aes256", "aes512", "3des" */ + @NotEmpty + @UCloudParam("EncryptionAlgorithm") + private String encryptionAlgorithm; + + /** IKE 认证算法,取值:"md5", "sha1", "sha2-256" */ + @NotEmpty + @UCloudParam("AuthenticationAlgorithm") + private String authenticationAlgorithm; + + /** DH group,指定IKE交换密钥时使用的DH组。取值:"1", "2", "5", "14", "15", "16" */ + @NotEmpty + @UCloudParam("DhGroup") + private String dhGroup; + + /** 本端标识,取值:“auto”,“” */ + @NotEmpty + @UCloudParam("LocalId") + private String localId; + + /** 对端标识,取值:“auto”,“” */ + @NotEmpty + @UCloudParam("RemoteId") + private String remoteId; + + /** IKE SA的生存周期,取值范围:600-604800 */ + @NotEmpty + @UCloudParam("SALifeTime") + private String saLifeTime; + + public String getPreSharedKey() { + return preSharedKey; + } + + public void setPreSharedKey(String preSharedKey) { + this.preSharedKey = preSharedKey; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getExchangeMode() { + return exchangeMode; + } + + public void setExchangeMode(String exchangeMode) { + this.exchangeMode = exchangeMode; + } + + public String getEncryptionAlgorithm() { + return encryptionAlgorithm; + } + + public void setEncryptionAlgorithm(String encryptionAlgorithm) { + this.encryptionAlgorithm = encryptionAlgorithm; + } + + public String getAuthenticationAlgorithm() { + return authenticationAlgorithm; + } + + public void setAuthenticationAlgorithm(String authenticationAlgorithm) { + this.authenticationAlgorithm = authenticationAlgorithm; + } + + public String getDhGroup() { + return dhGroup; + } + + public void setDhGroup(String dhGroup) { + this.dhGroup = dhGroup; + } + + public String getLocalId() { + return localId; + } + + public void setLocalId(String localId) { + this.localId = localId; + } + + public String getRemoteId() { + return remoteId; + } + + public void setRemoteId(String remoteId) { + this.remoteId = remoteId; + } + + public String getSALifeTime() { + return saLifeTime; + } + + public void setSALifeTime(String saLifeTime) { + this.saLifeTime = saLifeTime; + } + } + + public static class IPSecConf extends Request { + + /** 需要和 VPC 互通的本地数据中心侧的网段,用于第二阶段协商。 */ + @NotEmpty + @UCloudParam("CENetwork") + private List ceNetwork; + + /** IPSec 安全协议,取值:“esp”,“ah” */ + @NotEmpty + @UCloudParam("Protocol") + private String protocol; + + /** IPSec 加密算法,取值:"aes128", "aes192", "aes256", "aes512", "3des" */ + @NotEmpty + @UCloudParam("EncryptionAlgorithm") + private String encryptionAlgorithm; + + /** 第二阶段协商的认证算法。取值:md5、sha1、sha2-256。 */ + @NotEmpty + @UCloudParam("AuthenticationAlgorithm") + private String authenticationAlgorithm; + + /** 第二阶段协商使用的 Diffie-Hellman 密钥交换算法。取值:disabled、1、2、5、14、15、16。 */ + @NotEmpty + @UCloudParam("PFSDhGroup") + private String pfsDhGroup; + + /** 第二阶段协商出的 SA 的生存周期。单位:秒。取值范围:1200~604800 */ + @NotEmpty + @UCloudParam("SALifeTime") + private String saLifeTime; + + /** 第二阶段协商出的 SA 的生存周期。单位:字节 KB。取值范围:8000 – 20000000,默认使用SA超时时间 */ + @UCloudParam("SALifetimeBytes") + private String saLifetimeBytes; + + public List getCENetwork() { + return ceNetwork; + } + + public void setCENetwork(List ceNetwork) { + this.ceNetwork = ceNetwork; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getEncryptionAlgorithm() { + return encryptionAlgorithm; + } + + public void setEncryptionAlgorithm(String encryptionAlgorithm) { + this.encryptionAlgorithm = encryptionAlgorithm; + } + + public String getAuthenticationAlgorithm() { + return authenticationAlgorithm; + } + + public void setAuthenticationAlgorithm(String authenticationAlgorithm) { + this.authenticationAlgorithm = authenticationAlgorithm; + } + + public String getPFSDhGroup() { + return pfsDhGroup; + } + + public void setPFSDhGroup(String pfsDhGroup) { + this.pfsDhGroup = pfsDhGroup; + } + + public String getSALifeTime() { + return saLifeTime; + } + + public void setSALifeTime(String saLifeTime) { + this.saLifeTime = saLifeTime; + } + + public String getSALifetimeBytes() { + return saLifetimeBytes; + } + + public void setSALifetimeBytes(String saLifetimeBytes) { + this.saLifetimeBytes = saLifetimeBytes; + } + } +} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelResponse.java new file mode 100644 index 00000000..bbdd06a0 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdateCETunnelResponse.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.uwsc.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateCETunnelResponse extends Response {} diff --git a/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdatePOPGWAttributeRequest.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdatePOPGWAttributeRequest.java new file mode 100644 index 00000000..597e2b2e --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdatePOPGWAttributeRequest.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.uwsc.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdatePOPGWAttributeRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @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; + + /** UWAN虚拟路由器资源ID */ + @NotEmpty + @UCloudParam("PopGwId") + private String popGwId; + + /** 资源名称 */ + @UCloudParam("Name") + private String name; + + /** 备注 */ + @UCloudParam("Remark") + private String remark; + + 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 getPopGwId() { + return popGwId; + } + + public void setPopGwId(String popGwId) { + this.popGwId = popGwId; + } + + 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-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdatePOPGWAttributeResponse.java b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdatePOPGWAttributeResponse.java new file mode 100644 index 00000000..3ce69706 --- /dev/null +++ b/ucloud-sdk-java-uwsc/src/main/java/cn/ucloud/uwsc/models/UpdatePOPGWAttributeResponse.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.uwsc.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class UpdatePOPGWAttributeResponse extends Response { + + /** 请求 ID */ + @SerializedName("RequestId") + private String requestId; + + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } +} diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index 8464bfd5..1b1f41bd 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.83-release + 1.2.84-release 4.0.0 ucloud-sdk-java-vpc ucloud-sdk-java - 1.2.83-release + 1.2.84-release cn.ucloud ucloud-sdk-java-common - 1.2.83-release + 1.2.84-release