diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/Makefile b/Makefile index 8b7be83c..fe25a258 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,11 @@ build: .PHONY: fmt fmt: - java -jar ./cache/google-java-format-1.7-all-deps.jar --aosp -r ${JAVA_FILES} + google-java-format --aosp -r ${JAVA_FILES} + +.PHONY: lint +lint: + echo "skipped" .PHONY: test-cov test-cov: diff --git a/README.md b/README.md old mode 100755 new mode 100644 diff --git a/pom.xml b/pom.xml old mode 100755 new mode 100644 index 31faed00..499b04a6 --- a/pom.xml +++ b/pom.xml @@ -11,58 +11,68 @@ ucloud-sdk-java-common - - ucloud-sdk-java-uddb - - + ucloud-sdk-java-ucdn + + ucloud-sdk-java-vpc - ucloud-sdk-java-uec - - - ucloud-sdk-java-uk8s + + ucloud-sdk-java-udb + + ucloud-sdk-java-udpn + ucloud-sdk-java-udisk - + ucloud-sdk-java-ufs + + ucloud-sdk-java-uaccount - ucloud-sdk-java-uphost - - - ucloud-sdk-java-ulb + + ucloud-sdk-java-umem + + ucloud-sdk-java-usms - ucloud-sdk-java-ipsecvpn + + ucloud-sdk-java-uk8s + + ucloud-sdk-java-pathx - ucloud-sdk-java-unet - + + ucloud-sdk-java-uddb - ucloud-sdk-java-udb + + ucloud-sdk-java-ufile + + ucloud-sdk-java-ipsecvpn - ucloud-sdk-java-uaccount + + ucloud-sdk-java-uphost + + ucloud-sdk-java-uec - ucloud-sdk-java-usms + + ucloud-sdk-java-ulb + + ucloud-sdk-java-unet + ucloud-sdk-java-ubill + + ucloud-sdk-java-cube + ucloud-sdk-java-uhost - - - ucloud-sdk-java-umem - - - ucloud-sdk-java-ufile - - ucloud-sdk-java diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml old mode 100755 new mode 100644 diff --git a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/annotation/UCloudParam.java b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/annotation/UCloudParam.java old mode 100755 new mode 100644 diff --git a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/client/DefaultClient.java b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/client/DefaultClient.java old mode 100755 new mode 100644 diff --git a/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/exception/ValidatorException.java b/ucloud-sdk-java-common/src/main/java/cn/ucloud/common/exception/ValidatorException.java old mode 100755 new mode 100644 diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml new file mode 100644 index 00000000..4816ebc4 --- /dev/null +++ b/ucloud-sdk-java-cube/pom.xml @@ -0,0 +1,48 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.0.0-SNAPSHOT + + + 4.0.0 + ucloud-sdk-java-cube + 1.0.0-SNAPSHOT + + + + cn.ucloud + ucloud-sdk-java-common + 1.0.0-SNAPSHOT + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + \ No newline at end of file diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClient.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClient.java new file mode 100644 index 00000000..d7fc42c9 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClient.java @@ -0,0 +1,277 @@ +/** + * 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.cube.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.cube.models.CreateCubeDeploymentRequest; +import cn.ucloud.cube.models.CreateCubeDeploymentResponse; +import cn.ucloud.cube.models.CreateCubePodRequest; +import cn.ucloud.cube.models.CreateCubePodResponse; +import cn.ucloud.cube.models.DeleteCubeDeploymentRequest; +import cn.ucloud.cube.models.DeleteCubeDeploymentResponse; +import cn.ucloud.cube.models.DeleteCubePodRequest; +import cn.ucloud.cube.models.DeleteCubePodResponse; +import cn.ucloud.cube.models.GetCubeDeploymentRequest; +import cn.ucloud.cube.models.GetCubeDeploymentResponse; +import cn.ucloud.cube.models.GetCubeExecTokenRequest; +import cn.ucloud.cube.models.GetCubeExecTokenResponse; +import cn.ucloud.cube.models.GetCubeExtendInfoRequest; +import cn.ucloud.cube.models.GetCubeExtendInfoResponse; +import cn.ucloud.cube.models.GetCubeMetricsRequest; +import cn.ucloud.cube.models.GetCubeMetricsResponse; +import cn.ucloud.cube.models.GetCubePodRequest; +import cn.ucloud.cube.models.GetCubePodResponse; +import cn.ucloud.cube.models.GetCubePriceRequest; +import cn.ucloud.cube.models.GetCubePriceResponse; +import cn.ucloud.cube.models.GetCubeTokenRequest; +import cn.ucloud.cube.models.GetCubeTokenResponse; +import cn.ucloud.cube.models.ListCubeDeploymentRequest; +import cn.ucloud.cube.models.ListCubeDeploymentResponse; +import cn.ucloud.cube.models.ListCubePodRequest; +import cn.ucloud.cube.models.ListCubePodResponse; +import cn.ucloud.cube.models.ModifyCubeExtendInfoRequest; +import cn.ucloud.cube.models.ModifyCubeExtendInfoResponse; +import cn.ucloud.cube.models.ModifyCubeTagRequest; +import cn.ucloud.cube.models.ModifyCubeTagResponse; +import cn.ucloud.cube.models.RebootCubePodRequest; +import cn.ucloud.cube.models.RebootCubePodResponse; +import cn.ucloud.cube.models.RenewCubePodRequest; +import cn.ucloud.cube.models.RenewCubePodResponse; +import cn.ucloud.cube.models.UpdateCubeDeploymentRequest; +import cn.ucloud.cube.models.UpdateCubeDeploymentResponse; + +/** This client is used to call actions of **Cube** service */ +public class CubeClient extends DefaultClient implements CubeClientInterface { + public CubeClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * CreateCubeDeployment - 创建Cube的Deployment + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCubeDeploymentResponse createCubeDeployment(CreateCubeDeploymentRequest request) + throws UCloudException { + request.setAction("CreateCubeDeployment"); + return (CreateCubeDeploymentResponse) + this.invoke(request, CreateCubeDeploymentResponse.class); + } + + /** + * CreateCubePod - 创建Pod + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCubePodResponse createCubePod(CreateCubePodRequest request) + throws UCloudException { + request.setAction("CreateCubePod"); + return (CreateCubePodResponse) this.invoke(request, CreateCubePodResponse.class); + } + + /** + * DeleteCubeDeployment - 删除Cube的Deployment + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCubeDeploymentResponse deleteCubeDeployment(DeleteCubeDeploymentRequest request) + throws UCloudException { + request.setAction("DeleteCubeDeployment"); + return (DeleteCubeDeploymentResponse) + this.invoke(request, DeleteCubeDeploymentResponse.class); + } + + /** + * DeleteCubePod - 删除Pod + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCubePodResponse deleteCubePod(DeleteCubePodRequest request) + throws UCloudException { + request.setAction("DeleteCubePod"); + return (DeleteCubePodResponse) this.invoke(request, DeleteCubePodResponse.class); + } + + /** + * GetCubeDeployment - 获取Deployment的详细信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeDeploymentResponse getCubeDeployment(GetCubeDeploymentRequest request) + throws UCloudException { + request.setAction("GetCubeDeployment"); + return (GetCubeDeploymentResponse) this.invoke(request, GetCubeDeploymentResponse.class); + } + + /** + * GetCubeExecToken - 获取登录容器的token + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeExecTokenResponse getCubeExecToken(GetCubeExecTokenRequest request) + throws UCloudException { + request.setAction("GetCubeExecToken"); + return (GetCubeExecTokenResponse) this.invoke(request, GetCubeExecTokenResponse.class); + } + + /** + * GetCubeExtendInfo - 获取Cube的额外信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeExtendInfoResponse getCubeExtendInfo(GetCubeExtendInfoRequest request) + throws UCloudException { + request.setAction("GetCubeExtendInfo"); + return (GetCubeExtendInfoResponse) this.invoke(request, GetCubeExtendInfoResponse.class); + } + + /** + * GetCubeMetrics - 获取Cube实例监控数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeMetricsResponse getCubeMetrics(GetCubeMetricsRequest request) + throws UCloudException { + request.setAction("GetCubeMetrics"); + return (GetCubeMetricsResponse) this.invoke(request, GetCubeMetricsResponse.class); + } + + /** + * GetCubePod - 获取Pod的详细信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubePodResponse getCubePod(GetCubePodRequest request) throws UCloudException { + request.setAction("GetCubePod"); + return (GetCubePodResponse) this.invoke(request, GetCubePodResponse.class); + } + + /** + * GetCubePrice - 获取cube的价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubePriceResponse getCubePrice(GetCubePriceRequest request) throws UCloudException { + request.setAction("GetCubePrice"); + return (GetCubePriceResponse) this.invoke(request, GetCubePriceResponse.class); + } + + /** + * GetCubeToken - 获取Cube的token + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeTokenResponse getCubeToken(GetCubeTokenRequest request) throws UCloudException { + request.setAction("GetCubeToken"); + return (GetCubeTokenResponse) this.invoke(request, GetCubeTokenResponse.class); + } + + /** + * ListCubeDeployment - 获取Cube的Deployment列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListCubeDeploymentResponse listCubeDeployment(ListCubeDeploymentRequest request) + throws UCloudException { + request.setAction("ListCubeDeployment"); + return (ListCubeDeploymentResponse) this.invoke(request, ListCubeDeploymentResponse.class); + } + + /** + * ListCubePod - 获取Pods列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListCubePodResponse listCubePod(ListCubePodRequest request) throws UCloudException { + request.setAction("ListCubePod"); + return (ListCubePodResponse) this.invoke(request, ListCubePodResponse.class); + } + + /** + * ModifyCubeExtendInfo - 修改Cube额外信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyCubeExtendInfoResponse modifyCubeExtendInfo(ModifyCubeExtendInfoRequest request) + throws UCloudException { + request.setAction("ModifyCubeExtendInfo"); + return (ModifyCubeExtendInfoResponse) + this.invoke(request, ModifyCubeExtendInfoResponse.class); + } + + /** + * ModifyCubeTag - 修改业务组 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyCubeTagResponse modifyCubeTag(ModifyCubeTagRequest request) + throws UCloudException { + request.setAction("ModifyCubeTag"); + return (ModifyCubeTagResponse) this.invoke(request, ModifyCubeTagResponse.class); + } + + /** + * RebootCubePod - 重启Cube Pod + * + * @param request Request object + * @throws UCloudException Exception + */ + public RebootCubePodResponse rebootCubePod(RebootCubePodRequest request) + throws UCloudException { + request.setAction("RebootCubePod"); + return (RebootCubePodResponse) this.invoke(request, RebootCubePodResponse.class); + } + + /** + * RenewCubePod - 更新Pod + * + * @param request Request object + * @throws UCloudException Exception + */ + public RenewCubePodResponse renewCubePod(RenewCubePodRequest request) throws UCloudException { + request.setAction("RenewCubePod"); + return (RenewCubePodResponse) this.invoke(request, RenewCubePodResponse.class); + } + + /** + * UpdateCubeDeployment - 更新Deployment + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateCubeDeploymentResponse updateCubeDeployment(UpdateCubeDeploymentRequest request) + throws UCloudException { + request.setAction("UpdateCubeDeployment"); + return (UpdateCubeDeploymentResponse) + this.invoke(request, UpdateCubeDeploymentResponse.class); + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClientInterface.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClientInterface.java new file mode 100644 index 00000000..45fa2647 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/client/CubeClientInterface.java @@ -0,0 +1,210 @@ +/** + * 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.cube.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.cube.models.CreateCubeDeploymentRequest; +import cn.ucloud.cube.models.CreateCubeDeploymentResponse; +import cn.ucloud.cube.models.CreateCubePodRequest; +import cn.ucloud.cube.models.CreateCubePodResponse; +import cn.ucloud.cube.models.DeleteCubeDeploymentRequest; +import cn.ucloud.cube.models.DeleteCubeDeploymentResponse; +import cn.ucloud.cube.models.DeleteCubePodRequest; +import cn.ucloud.cube.models.DeleteCubePodResponse; +import cn.ucloud.cube.models.GetCubeDeploymentRequest; +import cn.ucloud.cube.models.GetCubeDeploymentResponse; +import cn.ucloud.cube.models.GetCubeExecTokenRequest; +import cn.ucloud.cube.models.GetCubeExecTokenResponse; +import cn.ucloud.cube.models.GetCubeExtendInfoRequest; +import cn.ucloud.cube.models.GetCubeExtendInfoResponse; +import cn.ucloud.cube.models.GetCubeMetricsRequest; +import cn.ucloud.cube.models.GetCubeMetricsResponse; +import cn.ucloud.cube.models.GetCubePodRequest; +import cn.ucloud.cube.models.GetCubePodResponse; +import cn.ucloud.cube.models.GetCubePriceRequest; +import cn.ucloud.cube.models.GetCubePriceResponse; +import cn.ucloud.cube.models.GetCubeTokenRequest; +import cn.ucloud.cube.models.GetCubeTokenResponse; +import cn.ucloud.cube.models.ListCubeDeploymentRequest; +import cn.ucloud.cube.models.ListCubeDeploymentResponse; +import cn.ucloud.cube.models.ListCubePodRequest; +import cn.ucloud.cube.models.ListCubePodResponse; +import cn.ucloud.cube.models.ModifyCubeExtendInfoRequest; +import cn.ucloud.cube.models.ModifyCubeExtendInfoResponse; +import cn.ucloud.cube.models.ModifyCubeTagRequest; +import cn.ucloud.cube.models.ModifyCubeTagResponse; +import cn.ucloud.cube.models.RebootCubePodRequest; +import cn.ucloud.cube.models.RebootCubePodResponse; +import cn.ucloud.cube.models.RenewCubePodRequest; +import cn.ucloud.cube.models.RenewCubePodResponse; +import cn.ucloud.cube.models.UpdateCubeDeploymentRequest; +import cn.ucloud.cube.models.UpdateCubeDeploymentResponse; + +/** This client is used to call actions of **Cube** service */ +public interface CubeClientInterface extends Client { + + /** + * CreateCubeDeployment - 创建Cube的Deployment + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCubeDeploymentResponse createCubeDeployment(CreateCubeDeploymentRequest request) + throws UCloudException; + + /** + * CreateCubePod - 创建Pod + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCubePodResponse createCubePod(CreateCubePodRequest request) throws UCloudException; + + /** + * DeleteCubeDeployment - 删除Cube的Deployment + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCubeDeploymentResponse deleteCubeDeployment(DeleteCubeDeploymentRequest request) + throws UCloudException; + + /** + * DeleteCubePod - 删除Pod + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteCubePodResponse deleteCubePod(DeleteCubePodRequest request) throws UCloudException; + + /** + * GetCubeDeployment - 获取Deployment的详细信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeDeploymentResponse getCubeDeployment(GetCubeDeploymentRequest request) + throws UCloudException; + + /** + * GetCubeExecToken - 获取登录容器的token + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeExecTokenResponse getCubeExecToken(GetCubeExecTokenRequest request) + throws UCloudException; + + /** + * GetCubeExtendInfo - 获取Cube的额外信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeExtendInfoResponse getCubeExtendInfo(GetCubeExtendInfoRequest request) + throws UCloudException; + + /** + * GetCubeMetrics - 获取Cube实例监控数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeMetricsResponse getCubeMetrics(GetCubeMetricsRequest request) + throws UCloudException; + + /** + * GetCubePod - 获取Pod的详细信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubePodResponse getCubePod(GetCubePodRequest request) throws UCloudException; + + /** + * GetCubePrice - 获取cube的价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubePriceResponse getCubePrice(GetCubePriceRequest request) throws UCloudException; + + /** + * GetCubeToken - 获取Cube的token + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetCubeTokenResponse getCubeToken(GetCubeTokenRequest request) throws UCloudException; + + /** + * ListCubeDeployment - 获取Cube的Deployment列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListCubeDeploymentResponse listCubeDeployment(ListCubeDeploymentRequest request) + throws UCloudException; + + /** + * ListCubePod - 获取Pods列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListCubePodResponse listCubePod(ListCubePodRequest request) throws UCloudException; + + /** + * ModifyCubeExtendInfo - 修改Cube额外信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyCubeExtendInfoResponse modifyCubeExtendInfo(ModifyCubeExtendInfoRequest request) + throws UCloudException; + + /** + * ModifyCubeTag - 修改业务组 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyCubeTagResponse modifyCubeTag(ModifyCubeTagRequest request) throws UCloudException; + + /** + * RebootCubePod - 重启Cube Pod + * + * @param request Request object + * @throws UCloudException Exception + */ + public RebootCubePodResponse rebootCubePod(RebootCubePodRequest request) throws UCloudException; + + /** + * RenewCubePod - 更新Pod + * + * @param request Request object + * @throws UCloudException Exception + */ + public RenewCubePodResponse renewCubePod(RenewCubePodRequest request) throws UCloudException; + + /** + * UpdateCubeDeployment - 更新Deployment + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateCubeDeploymentResponse updateCubeDeployment(UpdateCubeDeploymentRequest request) + throws UCloudException; +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentRequest.java new file mode 100644 index 00000000..6936a2ab --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentRequest.java @@ -0,0 +1,173 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateCubeDeploymentRequest 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; + + /** VPCId */ + @NotEmpty + @UCloudParam("VPCId") + private String vpcId; + + /** 子网Id */ + @NotEmpty + @UCloudParam("SubnetId") + private String subnetId; + + /** base64编码的Deployment的yaml。大小不超过16KB */ + @NotEmpty + @UCloudParam("Deployment") + private String deployment; + + /** Deployment名称 */ + @UCloudParam("Name") + private String name; + + /** 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Postpay, \\ 后付费;默认为后付费 */ + @UCloudParam("ChargeType") + private String chargeType; + + /** Cpu平台(V6:Intel、A2:AMD),默认V6。支持的地域(北京2B、北京2E、上海2A、广东、香港 、东京)目前北京2E仅有A2,其余地域仅有V6 */ + @UCloudParam("CpuPlatform") + private String cpuPlatform; + + /** base64编码的kubeconfig。大小不超过16KB */ + @UCloudParam("KubeConfig") + private String kubeConfig; + + /** 购买时长。默认:值 1。 月付时,此参数传0,代表购买至月末。 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** 业务组。默认:Default(Default即为未分组) */ + @UCloudParam("Tag") + private String tag; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getDeployment() { + return deployment; + } + + public void setDeployment(String deployment) { + this.deployment = deployment; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getCpuPlatform() { + return cpuPlatform; + } + + public void setCpuPlatform(String cpuPlatform) { + this.cpuPlatform = cpuPlatform; + } + + public String getKubeConfig() { + return kubeConfig; + } + + public void setKubeConfig(String kubeConfig) { + this.kubeConfig = kubeConfig; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentResponse.java new file mode 100644 index 00000000..57b7c701 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubeDeploymentResponse.java @@ -0,0 +1,44 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class CreateCubeDeploymentResponse extends Response { + + /** 控制器ID */ + @SerializedName("DeploymentId") + private String deploymentId; + + /** 经过base64编码的Deployment的yaml */ + @SerializedName("Deployment") + private String deployment; + + public String getDeploymentId() { + return deploymentId; + } + + public void setDeploymentId(String deploymentId) { + this.deploymentId = deploymentId; + } + + public String getDeployment() { + return deployment; + } + + public void setDeployment(String deployment) { + this.deployment = deployment; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodRequest.java new file mode 100644 index 00000000..d3df421c --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodRequest.java @@ -0,0 +1,197 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateCubePodRequest 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; + + /** VPCId */ + @NotEmpty + @UCloudParam("VPCId") + private String vpcId; + + /** 子网Id */ + @NotEmpty + @UCloudParam("SubnetId") + private String subnetId; + + /** base64编码的Pod的yaml。大小不超过16KB */ + @NotEmpty + @UCloudParam("Pod") + private String pod; + + /** pod所在组 */ + @UCloudParam("Group") + private String group; + + /** pod的名字 */ + @UCloudParam("Name") + private String name; + + /** 业务组。默认:Default(Default即为未分组) */ + @UCloudParam("Tag") + private String tag; + + /** Cpu平台(V6:Intel、A2:AMD、Auto),默认Auto。支持的地域(北京2B、北京2E、上海2A、广东、香港 、东京)目前北京2E仅有A2,其余地域仅有V6 */ + @UCloudParam("CpuPlatform") + private String cpuPlatform; + + /** 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Postpay, \\ 后付费;默认为后付费 */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买时长。默认:值 1。 月付时,此参数传0,代表购买至月末。 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** base64编码的kubeconfig。大小不超过16KB */ + @UCloudParam("KubeConfig") + private String kubeConfig; + + /** 代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看 */ + @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 String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getPod() { + return pod; + } + + public void setPod(String pod) { + this.pod = pod; + } + + public String getGroup() { + return group; + } + + public void setGroup(String group) { + this.group = group; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public String getCpuPlatform() { + return cpuPlatform; + } + + public void setCpuPlatform(String cpuPlatform) { + this.cpuPlatform = cpuPlatform; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getKubeConfig() { + return kubeConfig; + } + + public void setKubeConfig(String kubeConfig) { + this.kubeConfig = kubeConfig; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodResponse.java new file mode 100644 index 00000000..03482def --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/CreateCubePodResponse.java @@ -0,0 +1,44 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class CreateCubePodResponse extends Response { + + /** base64编码的yaml */ + @SerializedName("Pod") + private String pod; + + /** cube的资源Id */ + @SerializedName("CubeId") + private String cubeId; + + public String getPod() { + return pod; + } + + public void setPod(String pod) { + this.pod = pod; + } + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentRequest.java new file mode 100644 index 00000000..df339c19 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentRequest.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.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteCubeDeploymentRequest 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; + + /** 控制器Id */ + @NotEmpty + @UCloudParam("DeploymentId") + private String deploymentId; + + 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 getDeploymentId() { + return deploymentId; + } + + public void setDeploymentId(String deploymentId) { + this.deploymentId = deploymentId; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentResponse.java new file mode 100644 index 00000000..e3751a0f --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubeDeploymentResponse.java @@ -0,0 +1,18 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.response.Response; + +public class DeleteCubeDeploymentResponse extends Response {} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodRequest.java new file mode 100644 index 00000000..e9973ada --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodRequest.java @@ -0,0 +1,95 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteCubePodRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + @UCloudParam("Zone") + private String zone; + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** cubeid和uid任意一个(必须) */ + @UCloudParam("Uid") + private String uid; + + /** cubeid和uid任意一个(必须) */ + @UCloudParam("CubeId") + private String cubeId; + + /** 删除cube时是否释放绑定的EIP。默认为false。 */ + @UCloudParam("ReleaseEIP") + private Boolean releaseEIP; + + 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 getUid() { + return uid; + } + + public void setUid(String uid) { + this.uid = uid; + } + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + + public Boolean getReleaseEIP() { + return releaseEIP; + } + + public void setReleaseEIP(Boolean releaseEIP) { + this.releaseEIP = releaseEIP; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodResponse.java new file mode 100644 index 00000000..e71ac7d4 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/DeleteCubePodResponse.java @@ -0,0 +1,18 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.response.Response; + +public class DeleteCubePodResponse extends Response {} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentRequest.java new file mode 100644 index 00000000..87021335 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentRequest.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.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetCubeDeploymentRequest 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; + + /** Deployment的Id */ + @NotEmpty + @UCloudParam("DeploymentId") + private String deploymentId; + + 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 getDeploymentId() { + return deploymentId; + } + + public void setDeploymentId(String deploymentId) { + this.deploymentId = deploymentId; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentResponse.java new file mode 100644 index 00000000..22e54672 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeDeploymentResponse.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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class GetCubeDeploymentResponse extends Response { + + /** 经过base64编码的Deployment的yaml */ + @SerializedName("Deployment") + private String deployment; + + public String getDeployment() { + return deployment; + } + + public void setDeployment(String deployment) { + this.deployment = deployment; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenRequest.java new file mode 100644 index 00000000..40fb9de6 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenRequest.java @@ -0,0 +1,102 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetCubeExecTokenRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 容器名称 */ + @NotEmpty + @UCloudParam("ContainerName") + private String containerName; + + /** + * CubeId 和 Uid 中必须填写任意一个。 CubeId 是所有 Cube 资源的唯一 ID,如非在 UK8S 通过 Virtual Kubelet 插件创建的 Cube, 则必填 + * CubeId + */ + @UCloudParam("CubeId") + private String cubeId; + + /** CubeId 和 Uid 中必须填写任意一个。 Uid 是在 UK8S 中通过 Virtual Kubelet 插件创建出的 Cube 的唯一标识 */ + @UCloudParam("Uid") + private String uid; + + 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 getContainerName() { + return containerName; + } + + public void setContainerName(String containerName) { + this.containerName = containerName; + } + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + + public String getUid() { + return uid; + } + + public void setUid(String uid) { + this.uid = uid; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenResponse.java new file mode 100644 index 00000000..6a6cd3d4 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExecTokenResponse.java @@ -0,0 +1,44 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class GetCubeExecTokenResponse extends Response { + + /** 有效时间5min */ + @SerializedName("Token") + private String token; + + /** terminal的登录连接地址,限单点登录,有效时间5min */ + @SerializedName("TerminalUrl") + private String terminalUrl; + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + + public String getTerminalUrl() { + return terminalUrl; + } + + public void setTerminalUrl(String terminalUrl) { + this.terminalUrl = terminalUrl; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoRequest.java new file mode 100644 index 00000000..c711052f --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoRequest.java @@ -0,0 +1,72 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetCubeExtendInfoRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + @UCloudParam("Zone") + private String zone; + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** id列表以逗号(,)分割 */ + @NotEmpty + @UCloudParam("CubeIds") + private String cubeIds; + + 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 getCubeIds() { + return cubeIds; + } + + public void setCubeIds(String cubeIds) { + this.cubeIds = cubeIds; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoResponse.java new file mode 100644 index 00000000..31319b9e --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeExtendInfoResponse.java @@ -0,0 +1,234 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class GetCubeExtendInfoResponse extends Response { + + /** CubeExtendInfo */ + @SerializedName("ExtendInfo") + private List extendInfo; + + public List getExtendInfo() { + return extendInfo; + } + + public void setExtendInfo(List extendInfo) { + this.extendInfo = extendInfo; + } + + public static class EIPAddr extends Response { + + /** IP地址 */ + @SerializedName("IP") + private String ip; + + /** 线路名称BGP或者internalation */ + @SerializedName("OperatorName") + private String operatorName; + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public String getOperatorName() { + return operatorName; + } + + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + } + + public static class CubeExtendInfo extends Response { + + /** Cube的Id */ + @SerializedName("CubeId") + private String cubeId; + + /** Cube的名称 */ + @SerializedName("Name") + private String name; + + /** EIPSet */ + @SerializedName("Eip") + private List eip; + + /** 资源有效期 */ + @SerializedName("Expiration") + private Integer expiration; + + /** 业务组名称 */ + @SerializedName("Tag") + private String tag; + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public List getEip() { + return eip; + } + + public void setEip(List eip) { + this.eip = eip; + } + + public Integer getExpiration() { + return expiration; + } + + public void setExpiration(Integer expiration) { + this.expiration = expiration; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + } + + public static class EIPSet extends Response { + + /** EIP带宽值 */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + /** 带宽类型0标准普通带宽,1表示共享带宽 */ + @SerializedName("BandwidthType") + private Integer bandwidthType; + + /** EIP创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** EIP地址 */ + @SerializedName("EIPAddr") + private List eipAddr; + + /** EIPId */ + @SerializedName("EIPId") + private String eipId; + + /** 付费模式,带宽付费或者流量付费 */ + @SerializedName("PayMode") + private String payMode; + + /** EIP绑定对象的资源Id */ + @SerializedName("Resource") + private String resource; + + /** EIP状态,表示使用中或者空闲 */ + @SerializedName("Status") + private String status; + + /** EIP权重 */ + @SerializedName("Weight") + private Integer weight; + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public Integer getBandwidthType() { + return bandwidthType; + } + + public void setBandwidthType(Integer bandwidthType) { + this.bandwidthType = bandwidthType; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public List getEIPAddr() { + return eipAddr; + } + + public void setEIPAddr(List eipAddr) { + this.eipAddr = eipAddr; + } + + public String getEIPId() { + return eipId; + } + + public void setEIPId(String eipId) { + this.eipId = eipId; + } + + public String getPayMode() { + return payMode; + } + + public void setPayMode(String payMode) { + this.payMode = payMode; + } + + public String getResource() { + return resource; + } + + public void setResource(String resource) { + this.resource = resource; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsRequest.java new file mode 100644 index 00000000..3fd5547d --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsRequest.java @@ -0,0 +1,128 @@ +/** + * 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.cube.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 GetCubeMetricsRequest 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; + + /** Cube实例资源ID */ + @NotEmpty + @UCloudParam("ResourceId") + private String resourceId; + + /** 监控指标名称 */ + @NotEmpty + @UCloudParam("MetricName") + private List metricName; + + /** 开始时间 */ + @NotEmpty + @UCloudParam("BeginTime") + private Integer beginTime; + + /** 结束时间,必须大于开始时间 */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + /** Pod内容器名称 */ + @NotEmpty + @UCloudParam("ContainerName") + private String containerName; + + 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 getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public List getMetricName() { + return metricName; + } + + public void setMetricName(List metricName) { + this.metricName = metricName; + } + + public Integer getBeginTime() { + return beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public String getContainerName() { + return containerName; + } + + public void setContainerName(String containerName) { + this.containerName = containerName; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsResponse.java new file mode 100644 index 00000000..fdcefe6d --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeMetricsResponse.java @@ -0,0 +1,87 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class GetCubeMetricsResponse extends Response { + + /** 时间序列集合 */ + @SerializedName("DataSets") + private List dataSets; + + public List getDataSets() { + return dataSets; + } + + public void setDataSets(List dataSets) { + this.dataSets = dataSets; + } + + public static class MetricDataSet extends Response { + + /** */ + @SerializedName("MetricName") + private String metricName; + + /** */ + @SerializedName("Values") + private List values; + + public String getMetricName() { + return metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public List getValues() { + return values; + } + + public void setValues(List values) { + this.values = values; + } + } + + public static class ValueSet extends Response { + + /** */ + @SerializedName("Value") + private Double value; + + /** */ + @SerializedName("Timestamp") + private Integer timestamp; + + public Double getValue() { + return value; + } + + public void setValue(Double value) { + this.value = value; + } + + public Integer getTimestamp() { + return timestamp; + } + + public void setTimestamp(Integer timestamp) { + this.timestamp = timestamp; + } + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubePodRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubePodRequest.java new file mode 100644 index 00000000..84017e99 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubePodRequest.java @@ -0,0 +1,83 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetCubePodRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + @UCloudParam("Zone") + private String zone; + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** CubeId和Uid任意一个 */ + @UCloudParam("CubeId") + private String cubeId; + + /** CubeId和Uid任意一个 */ + @UCloudParam("Uid") + private String uid; + + 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 getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + + public String getUid() { + return uid; + } + + public void setUid(String uid) { + this.uid = uid; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubePodResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubePodResponse.java new file mode 100644 index 00000000..59f36fa3 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubePodResponse.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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class GetCubePodResponse extends Response { + + /** base64编码的pod的yaml */ + @SerializedName("Pod") + private String pod; + + public String getPod() { + return pod; + } + + public void setPod(String pod) { + this.pod = pod; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubePriceRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubePriceRequest.java new file mode 100644 index 00000000..b65bc820 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubePriceRequest.java @@ -0,0 +1,127 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetCubePriceRequest 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; + + /** 购买数量 */ + @NotEmpty + @UCloudParam("Count") + private String count; + + /** CPU 配置,单位为毫核,例如如 1 核则须输入 1000 */ + @NotEmpty + @UCloudParam("Cpu") + private String cpu; + + /** 内存配置,单位为 Mi,例如 1Gi 须输入 1024 */ + @NotEmpty + @UCloudParam("Mem") + private String mem; + + /** 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按秒后付费,默认为月付 */ + @NotEmpty + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买时长。默认:值 1。按小时购买(Dynamic/Postpay)时无需此参数。 月付时,此参数传0,代表购买至月末。 */ + @NotEmpty + @UCloudParam("Quantity") + private Integer quantity; + + 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 getCount() { + return count; + } + + public void setCount(String count) { + this.count = count; + } + + public String getCpu() { + return cpu; + } + + public void setCpu(String cpu) { + this.cpu = cpu; + } + + public String getMem() { + return mem; + } + + public void setMem(String mem) { + this.mem = mem; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubePriceResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubePriceResponse.java new file mode 100644 index 00000000..60d9e666 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubePriceResponse.java @@ -0,0 +1,44 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class GetCubePriceResponse extends Response { + + /** 折扣后价格,单位为分 */ + @SerializedName("Price") + private Integer price; + + /** 列表价格,单位为分 */ + @SerializedName("OriginalPrice") + private Integer originalPrice; + + public Integer getPrice() { + return price; + } + + public void setPrice(Integer price) { + this.price = price; + } + + public Integer getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(Integer originalPrice) { + this.originalPrice = originalPrice; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenRequest.java new file mode 100644 index 00000000..5742a376 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenRequest.java @@ -0,0 +1,102 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetCubeTokenRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 容器名称 */ + @NotEmpty + @UCloudParam("ContainerName") + private String containerName; + + /** + * CubeId 和 Uid 中必须填写任意一个。 CubeId 是所有 Cube 资源的唯一 ID,如非在 UK8S 通过 Virtual Kubelet 插件创建的 Cube, 则必填 + * CubeId + */ + @UCloudParam("CubeId") + private String cubeId; + + /** CubeId 和 Uid 中必须填写任意一个。 Uid 是在 UK8S 中通过 Virtual Kubelet 插件创建出的 Cube 的唯一标识 */ + @UCloudParam("Uid") + private String uid; + + 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 getContainerName() { + return containerName; + } + + public void setContainerName(String containerName) { + this.containerName = containerName; + } + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + + public String getUid() { + return uid; + } + + public void setUid(String uid) { + this.uid = uid; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenResponse.java new file mode 100644 index 00000000..d389621c --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/GetCubeTokenResponse.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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class GetCubeTokenResponse extends Response { + + /** 有效时间5min */ + @SerializedName("Token") + private String token; + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubeDeploymentRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubeDeploymentRequest.java new file mode 100644 index 00000000..5806092b --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubeDeploymentRequest.java @@ -0,0 +1,87 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListCubeDeploymentRequest 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; + + /** 默认0 */ + @NotEmpty + @UCloudParam("Offset") + private Integer offset; + + /** 默认20 */ + @NotEmpty + @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 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-cube/src/main/java/cn/ucloud/cube/models/ListCubeDeploymentResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubeDeploymentResponse.java new file mode 100644 index 00000000..0602bd09 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubeDeploymentResponse.java @@ -0,0 +1,45 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class ListCubeDeploymentResponse extends Response { + + /** */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** DeploymentInfo */ + @SerializedName("Deployments") + private List deployments; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getDeployments() { + return deployments; + } + + public void setDeployments(List deployments) { + this.deployments = deployments; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodRequest.java new file mode 100644 index 00000000..7b3db071 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodRequest.java @@ -0,0 +1,133 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListCubePodRequest 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; + + /** VPC的Id */ + @UCloudParam("VPCId") + private String vpcId; + + /** 子网Id */ + @UCloudParam("SubnetId") + private String subnetId; + + /** 组名称 */ + @UCloudParam("Group") + private String group; + + /** 默认0 */ + @UCloudParam("Offset") + private Integer offset; + + /** 默认20 */ + @UCloudParam("Limit") + private Integer limit; + + /** Deployment的Id */ + @UCloudParam("DeploymentId") + private String deploymentId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getGroup() { + return group; + } + + public void setGroup(String group) { + this.group = group; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public String getDeploymentId() { + return deploymentId; + } + + public void setDeploymentId(String deploymentId) { + this.deploymentId = deploymentId; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodResponse.java new file mode 100644 index 00000000..32513c14 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ListCubePodResponse.java @@ -0,0 +1,45 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class ListCubePodResponse extends Response { + + /** Pod列表,每条数据都做了base64编码 */ + @SerializedName("Pods") + private List pods; + + /** Cube的总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + public List getPods() { + return pods; + } + + public void setPods(List pods) { + this.pods = pods; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ModifyCubeExtendInfoRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ModifyCubeExtendInfoRequest.java new file mode 100644 index 00000000..5e80ca60 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ModifyCubeExtendInfoRequest.java @@ -0,0 +1,84 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyCubeExtendInfoRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + @UCloudParam("Zone") + private String zone; + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** cube的id */ + @NotEmpty + @UCloudParam("CubeId") + private String cubeId; + + /** 修改的名字,规则(^[a-zA-Z0-9-_.\u4e00-\u9fa5]{1,32}) */ + @UCloudParam("Name") + private String name; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ModifyCubeExtendInfoResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ModifyCubeExtendInfoResponse.java new file mode 100644 index 00000000..ede6ba19 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ModifyCubeExtendInfoResponse.java @@ -0,0 +1,18 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.response.Response; + +public class ModifyCubeExtendInfoResponse extends Response {} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ModifyCubeTagRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ModifyCubeTagRequest.java new file mode 100644 index 00000000..a712ecfa --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ModifyCubeTagRequest.java @@ -0,0 +1,87 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyCubeTagRequest 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; + + /** CubeId */ + @NotEmpty + @UCloudParam("CubeId") + private String cubeId; + + /** 业务组名称 */ + @NotEmpty + @UCloudParam("Tag") + private String tag; + + 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 getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ModifyCubeTagResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ModifyCubeTagResponse.java new file mode 100644 index 00000000..78b62dc8 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/ModifyCubeTagResponse.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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class ModifyCubeTagResponse extends Response { + + /** CubeId */ + @SerializedName("CubeId") + private String cubeId; + + public String getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RebootCubePodRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RebootCubePodRequest.java new file mode 100644 index 00000000..5a4ea201 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RebootCubePodRequest.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.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class RebootCubePodRequest 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; + + /** cube资源id(cube-xxxxxx) */ + @NotEmpty + @UCloudParam("CubeId") + private String cubeId; + + 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 getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RebootCubePodResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RebootCubePodResponse.java new file mode 100644 index 00000000..9f6b1a87 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RebootCubePodResponse.java @@ -0,0 +1,18 @@ +/** + * 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.cube.models; + +import cn.ucloud.common.response.Response; + +public class RebootCubePodResponse extends Response {} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodRequest.java new file mode 100644 index 00000000..74d58e63 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodRequest.java @@ -0,0 +1,85 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class RenewCubePodRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + @UCloudParam("Zone") + private String zone; + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 容器Id */ + @NotEmpty + @UCloudParam("CubeId") + private String cubeId; + + /** base64编码的Pod的yaml */ + @NotEmpty + @UCloudParam("Pod") + private String pod; + + 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 getCubeId() { + return cubeId; + } + + public void setCubeId(String cubeId) { + this.cubeId = cubeId; + } + + public String getPod() { + return pod; + } + + public void setPod(String pod) { + this.pod = pod; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodResponse.java new file mode 100644 index 00000000..eaf20483 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/RenewCubePodResponse.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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class RenewCubePodResponse extends Response { + + /** base64编码过的yaml,需要解码获取信息 */ + @SerializedName("Pod") + private String pod; + + public String getPod() { + return pod; + } + + public void setPod(String pod) { + this.pod = pod; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/UpdateCubeDeploymentRequest.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/UpdateCubeDeploymentRequest.java new file mode 100644 index 00000000..22ca10e1 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/UpdateCubeDeploymentRequest.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.cube.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateCubeDeploymentRequest 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; + + /** Deployment的Id */ + @NotEmpty + @UCloudParam("DeploymentId") + private String deploymentId; + + /** base64编码的Deployment的yaml。大小不超过16KB */ + @NotEmpty + @UCloudParam("Deployment") + private String deployment; + + /** Deployment的name */ + @UCloudParam("Name") + private String name; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getDeploymentId() { + return deploymentId; + } + + public void setDeploymentId(String deploymentId) { + this.deploymentId = deploymentId; + } + + public String getDeployment() { + return deployment; + } + + public void setDeployment(String deployment) { + this.deployment = deployment; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/UpdateCubeDeploymentResponse.java b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/UpdateCubeDeploymentResponse.java new file mode 100644 index 00000000..cb3ce522 --- /dev/null +++ b/ucloud-sdk-java-cube/src/main/java/cn/ucloud/cube/models/UpdateCubeDeploymentResponse.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.cube.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class UpdateCubeDeploymentResponse extends Response { + + /** 经过base64编码的Deployment的yaml */ + @SerializedName("Deployment") + private String deployment; + + public String getDeployment() { + return deployment; + } + + public void setDeployment(String deployment) { + this.deployment = deployment; + } +} diff --git a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNTunnelResponse.java b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNTunnelResponse.java index 7356e141..9ba24cd8 100644 --- a/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNTunnelResponse.java +++ b/ucloud-sdk-java-ipsecvpn/src/main/java/cn/ucloud/ipsecvpn/models/DescribeVPNTunnelResponse.java @@ -43,105 +43,6 @@ public void setDataSet(List dataSet) { this.dataSet = dataSet; } - public static class IPSecData extends Response { - - /** IPSec通道中使用的认证算法 */ - @SerializedName("IPSecAuthenticationAlgorithm") - private String ipSecAuthenticationAlgorithm; - - /** IPSec通道中使用的加密算法 */ - @SerializedName("IPSecEncryptionAlgorithm") - private String ipSecEncryptionAlgorithm; - - /** 指定VPN连接的本地子网,用逗号分隔 */ - @SerializedName("IPSecLocalSubnetIds") - private List ipSecLocalSubnetIds; - - /** 使用的安全协议,ESP或AH */ - @SerializedName("IPSecProtocol") - private String ipSecProtocol; - - /** 指定VPN连接的客户网段,用逗号分隔 */ - @SerializedName("IPSecRemoteSubnets") - private List ipSecRemoteSubnets; - - /** IPSec中SA的生存时间 */ - @SerializedName("IPSecSALifetime") - private String ipSecSALifetime; - - /** IPSec中SA的生存时间(以字节计) */ - @SerializedName("IPSecSALifetimeBytes") - private String ipSecSALifetimeBytes; - - /** 是否开启PFS功能,Disable表示关闭,数字表示DH组 */ - @SerializedName("IPSecPFSDhGroup") - private String ipSecPFSDhGroup; - - public String getIPSecAuthenticationAlgorithm() { - return ipSecAuthenticationAlgorithm; - } - - public void setIPSecAuthenticationAlgorithm(String ipSecAuthenticationAlgorithm) { - this.ipSecAuthenticationAlgorithm = ipSecAuthenticationAlgorithm; - } - - public String getIPSecEncryptionAlgorithm() { - return ipSecEncryptionAlgorithm; - } - - public void setIPSecEncryptionAlgorithm(String ipSecEncryptionAlgorithm) { - this.ipSecEncryptionAlgorithm = ipSecEncryptionAlgorithm; - } - - public List getIPSecLocalSubnetIds() { - return ipSecLocalSubnetIds; - } - - public void setIPSecLocalSubnetIds(List ipSecLocalSubnetIds) { - this.ipSecLocalSubnetIds = ipSecLocalSubnetIds; - } - - public String getIPSecProtocol() { - return ipSecProtocol; - } - - public void setIPSecProtocol(String ipSecProtocol) { - this.ipSecProtocol = ipSecProtocol; - } - - public List getIPSecRemoteSubnets() { - return ipSecRemoteSubnets; - } - - public void setIPSecRemoteSubnets(List ipSecRemoteSubnets) { - this.ipSecRemoteSubnets = ipSecRemoteSubnets; - } - - public String getIPSecSALifetime() { - return ipSecSALifetime; - } - - public void setIPSecSALifetime(String ipSecSALifetime) { - this.ipSecSALifetime = ipSecSALifetime; - } - - public String getIPSecSALifetimeBytes() { - return ipSecSALifetimeBytes; - } - - public void setIPSecSALifetimeBytes(String ipSecSALifetimeBytes) { - this.ipSecSALifetimeBytes = ipSecSALifetimeBytes; - } - - public String getIPSecPFSDhGroup() { - return ipSecPFSDhGroup; - } - - public void setIPSecPFSDhGroup(String ipSecPFSDhGroup) { - this.ipSecPFSDhGroup = ipSecPFSDhGroup; - } - } - public static class VPNTunnelDataSet extends Response { /** 隧道id */ @@ -301,6 +202,105 @@ public void setIPSecData(IPSecData ipSecData) { } } + public static class IPSecData extends Response { + + /** IPSec通道中使用的认证算法 */ + @SerializedName("IPSecAuthenticationAlgorithm") + private String ipSecAuthenticationAlgorithm; + + /** IPSec通道中使用的加密算法 */ + @SerializedName("IPSecEncryptionAlgorithm") + private String ipSecEncryptionAlgorithm; + + /** 指定VPN连接的本地子网,用逗号分隔 */ + @SerializedName("IPSecLocalSubnetIds") + private List ipSecLocalSubnetIds; + + /** 使用的安全协议,ESP或AH */ + @SerializedName("IPSecProtocol") + private String ipSecProtocol; + + /** 指定VPN连接的客户网段,用逗号分隔 */ + @SerializedName("IPSecRemoteSubnets") + private List ipSecRemoteSubnets; + + /** IPSec中SA的生存时间 */ + @SerializedName("IPSecSALifetime") + private String ipSecSALifetime; + + /** IPSec中SA的生存时间(以字节计) */ + @SerializedName("IPSecSALifetimeBytes") + private String ipSecSALifetimeBytes; + + /** 是否开启PFS功能,Disable表示关闭,数字表示DH组 */ + @SerializedName("IPSecPFSDhGroup") + private String ipSecPFSDhGroup; + + public String getIPSecAuthenticationAlgorithm() { + return ipSecAuthenticationAlgorithm; + } + + public void setIPSecAuthenticationAlgorithm(String ipSecAuthenticationAlgorithm) { + this.ipSecAuthenticationAlgorithm = ipSecAuthenticationAlgorithm; + } + + public String getIPSecEncryptionAlgorithm() { + return ipSecEncryptionAlgorithm; + } + + public void setIPSecEncryptionAlgorithm(String ipSecEncryptionAlgorithm) { + this.ipSecEncryptionAlgorithm = ipSecEncryptionAlgorithm; + } + + public List getIPSecLocalSubnetIds() { + return ipSecLocalSubnetIds; + } + + public void setIPSecLocalSubnetIds(List ipSecLocalSubnetIds) { + this.ipSecLocalSubnetIds = ipSecLocalSubnetIds; + } + + public String getIPSecProtocol() { + return ipSecProtocol; + } + + public void setIPSecProtocol(String ipSecProtocol) { + this.ipSecProtocol = ipSecProtocol; + } + + public List getIPSecRemoteSubnets() { + return ipSecRemoteSubnets; + } + + public void setIPSecRemoteSubnets(List ipSecRemoteSubnets) { + this.ipSecRemoteSubnets = ipSecRemoteSubnets; + } + + public String getIPSecSALifetime() { + return ipSecSALifetime; + } + + public void setIPSecSALifetime(String ipSecSALifetime) { + this.ipSecSALifetime = ipSecSALifetime; + } + + public String getIPSecSALifetimeBytes() { + return ipSecSALifetimeBytes; + } + + public void setIPSecSALifetimeBytes(String ipSecSALifetimeBytes) { + this.ipSecSALifetimeBytes = ipSecSALifetimeBytes; + } + + public String getIPSecPFSDhGroup() { + return ipSecPFSDhGroup; + } + + public void setIPSecPFSDhGroup(String ipSecPFSDhGroup) { + this.ipSecPFSDhGroup = ipSecPFSDhGroup; + } + } + public static class IKEData extends Response { /** IKE认证算法 */ diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml new file mode 100644 index 00000000..3916459e --- /dev/null +++ b/ucloud-sdk-java-pathx/pom.xml @@ -0,0 +1,48 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.0.0-SNAPSHOT + + + 4.0.0 + ucloud-sdk-java-pathx + 1.0.0-SNAPSHOT + + + + cn.ucloud + ucloud-sdk-java-common + 1.0.0-SNAPSHOT + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + \ No newline at end of file diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClient.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClient.java new file mode 100644 index 00000000..20fc9816 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClient.java @@ -0,0 +1,640 @@ +/** + * 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.pathx.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.pathx.models.BindPathXSSLRequest; +import cn.ucloud.pathx.models.BindPathXSSLResponse; +import cn.ucloud.pathx.models.CreateGlobalSSHInstanceRequest; +import cn.ucloud.pathx.models.CreateGlobalSSHInstanceResponse; +import cn.ucloud.pathx.models.CreatePathXSSLRequest; +import cn.ucloud.pathx.models.CreatePathXSSLResponse; +import cn.ucloud.pathx.models.CreateUGA3InstanceRequest; +import cn.ucloud.pathx.models.CreateUGA3InstanceResponse; +import cn.ucloud.pathx.models.CreateUGA3PortRequest; +import cn.ucloud.pathx.models.CreateUGA3PortResponse; +import cn.ucloud.pathx.models.CreateUGAForwarderRequest; +import cn.ucloud.pathx.models.CreateUGAForwarderResponse; +import cn.ucloud.pathx.models.CreateUGAInstanceRequest; +import cn.ucloud.pathx.models.CreateUGAInstanceResponse; +import cn.ucloud.pathx.models.CreateUPathRequest; +import cn.ucloud.pathx.models.CreateUPathResponse; +import cn.ucloud.pathx.models.DeleteGlobalSSHInstanceRequest; +import cn.ucloud.pathx.models.DeleteGlobalSSHInstanceResponse; +import cn.ucloud.pathx.models.DeletePathXSSLRequest; +import cn.ucloud.pathx.models.DeletePathXSSLResponse; +import cn.ucloud.pathx.models.DeleteUGA3InstanceRequest; +import cn.ucloud.pathx.models.DeleteUGA3InstanceResponse; +import cn.ucloud.pathx.models.DeleteUGA3PortRequest; +import cn.ucloud.pathx.models.DeleteUGA3PortResponse; +import cn.ucloud.pathx.models.DeleteUGAForwarderRequest; +import cn.ucloud.pathx.models.DeleteUGAForwarderResponse; +import cn.ucloud.pathx.models.DeleteUGAInstanceRequest; +import cn.ucloud.pathx.models.DeleteUGAInstanceResponse; +import cn.ucloud.pathx.models.DeleteUPathRequest; +import cn.ucloud.pathx.models.DeleteUPathResponse; +import cn.ucloud.pathx.models.DescribeGlobalSSHInstanceRequest; +import cn.ucloud.pathx.models.DescribeGlobalSSHInstanceResponse; +import cn.ucloud.pathx.models.DescribePathXLineConfigRequest; +import cn.ucloud.pathx.models.DescribePathXLineConfigResponse; +import cn.ucloud.pathx.models.DescribePathXSSLRequest; +import cn.ucloud.pathx.models.DescribePathXSSLResponse; +import cn.ucloud.pathx.models.DescribeUGA3AreaRequest; +import cn.ucloud.pathx.models.DescribeUGA3AreaResponse; +import cn.ucloud.pathx.models.DescribeUGA3InstanceRequest; +import cn.ucloud.pathx.models.DescribeUGA3InstanceResponse; +import cn.ucloud.pathx.models.DescribeUGA3OptimizationRequest; +import cn.ucloud.pathx.models.DescribeUGA3OptimizationResponse; +import cn.ucloud.pathx.models.DescribeUGAInstanceRequest; +import cn.ucloud.pathx.models.DescribeUGAInstanceResponse; +import cn.ucloud.pathx.models.DescribeUPathRequest; +import cn.ucloud.pathx.models.DescribeUPathResponse; +import cn.ucloud.pathx.models.DescribeUPathTemplateRequest; +import cn.ucloud.pathx.models.DescribeUPathTemplateResponse; +import cn.ucloud.pathx.models.GetGlobalSSHPriceRequest; +import cn.ucloud.pathx.models.GetGlobalSSHPriceResponse; +import cn.ucloud.pathx.models.GetGlobalSSHUpdatePriceRequest; +import cn.ucloud.pathx.models.GetGlobalSSHUpdatePriceResponse; +import cn.ucloud.pathx.models.GetPathXMetricRequest; +import cn.ucloud.pathx.models.GetPathXMetricResponse; +import cn.ucloud.pathx.models.GetUGA3MetricRequest; +import cn.ucloud.pathx.models.GetUGA3MetricResponse; +import cn.ucloud.pathx.models.GetUGA3PriceRequest; +import cn.ucloud.pathx.models.GetUGA3PriceResponse; +import cn.ucloud.pathx.models.GetUGA3UpdatePriceRequest; +import cn.ucloud.pathx.models.GetUGA3UpdatePriceResponse; +import cn.ucloud.pathx.models.ModifyGlobalSSHPortRequest; +import cn.ucloud.pathx.models.ModifyGlobalSSHPortResponse; +import cn.ucloud.pathx.models.ModifyGlobalSSHRemarkRequest; +import cn.ucloud.pathx.models.ModifyGlobalSSHRemarkResponse; +import cn.ucloud.pathx.models.ModifyGlobalSSHTypeRequest; +import cn.ucloud.pathx.models.ModifyGlobalSSHTypeResponse; +import cn.ucloud.pathx.models.ModifyUGA3BandwidthRequest; +import cn.ucloud.pathx.models.ModifyUGA3BandwidthResponse; +import cn.ucloud.pathx.models.ModifyUGA3InstanceRequest; +import cn.ucloud.pathx.models.ModifyUGA3InstanceResponse; +import cn.ucloud.pathx.models.ModifyUGA3OriginInfoRequest; +import cn.ucloud.pathx.models.ModifyUGA3OriginInfoResponse; +import cn.ucloud.pathx.models.ModifyUGA3PortRequest; +import cn.ucloud.pathx.models.ModifyUGA3PortResponse; +import cn.ucloud.pathx.models.ModifyUPathBandwidthRequest; +import cn.ucloud.pathx.models.ModifyUPathBandwidthResponse; +import cn.ucloud.pathx.models.ModifyUPathTemplateRequest; +import cn.ucloud.pathx.models.ModifyUPathTemplateResponse; +import cn.ucloud.pathx.models.UGABindUPathRequest; +import cn.ucloud.pathx.models.UGABindUPathResponse; +import cn.ucloud.pathx.models.UGAUnBindUPathRequest; +import cn.ucloud.pathx.models.UGAUnBindUPathResponse; +import cn.ucloud.pathx.models.UnBindPathXSSLRequest; +import cn.ucloud.pathx.models.UnBindPathXSSLResponse; +import cn.ucloud.pathx.models.UpdatePathXWhitelistRequest; +import cn.ucloud.pathx.models.UpdatePathXWhitelistResponse; + +/** This client is used to call actions of **PathX** service */ +public class PathXClient extends DefaultClient implements PathXClientInterface { + public PathXClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * BindPathXSSL - 绑定PathX SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BindPathXSSLResponse bindPathXSSL(BindPathXSSLRequest request) throws UCloudException { + request.setAction("BindPathXSSL"); + return (BindPathXSSLResponse) this.invoke(request, BindPathXSSLResponse.class); + } + + /** + * CreateGlobalSSHInstance - 创建GlobalSSH实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateGlobalSSHInstanceResponse createGlobalSSHInstance( + CreateGlobalSSHInstanceRequest request) throws UCloudException { + request.setAction("CreateGlobalSSHInstance"); + return (CreateGlobalSSHInstanceResponse) + this.invoke(request, CreateGlobalSSHInstanceResponse.class); + } + + /** + * CreatePathXSSL - 创建证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreatePathXSSLResponse createPathXSSL(CreatePathXSSLRequest request) + throws UCloudException { + request.setAction("CreatePathXSSL"); + return (CreatePathXSSLResponse) this.invoke(request, CreatePathXSSLResponse.class); + } + + /** + * CreateUGA3Instance - 创建全球统一接入加速配置项 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUGA3InstanceResponse createUGA3Instance(CreateUGA3InstanceRequest request) + throws UCloudException { + request.setAction("CreateUGA3Instance"); + return (CreateUGA3InstanceResponse) this.invoke(request, CreateUGA3InstanceResponse.class); + } + + /** + * CreateUGA3Port - 创建统一接入加速实例端口 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUGA3PortResponse createUGA3Port(CreateUGA3PortRequest request) + throws UCloudException { + request.setAction("CreateUGA3Port"); + return (CreateUGA3PortResponse) this.invoke(request, CreateUGA3PortResponse.class); + } + + /** + * CreateUGAForwarder - 创建加速实例转发器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUGAForwarderResponse createUGAForwarder(CreateUGAForwarderRequest request) + throws UCloudException { + request.setAction("CreateUGAForwarder"); + return (CreateUGAForwarderResponse) this.invoke(request, CreateUGAForwarderResponse.class); + } + + /** + * CreateUGAInstance - 创建全球加速配置项 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUGAInstanceResponse createUGAInstance(CreateUGAInstanceRequest request) + throws UCloudException { + request.setAction("CreateUGAInstance"); + return (CreateUGAInstanceResponse) this.invoke(request, CreateUGAInstanceResponse.class); + } + + /** + * CreateUPath - 创建UPath + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPathResponse createUPath(CreateUPathRequest request) throws UCloudException { + request.setAction("CreateUPath"); + return (CreateUPathResponse) this.invoke(request, CreateUPathResponse.class); + } + + /** + * DeleteGlobalSSHInstance - 删除GlobalSSH实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteGlobalSSHInstanceResponse deleteGlobalSSHInstance( + DeleteGlobalSSHInstanceRequest request) throws UCloudException { + request.setAction("DeleteGlobalSSHInstance"); + return (DeleteGlobalSSHInstanceResponse) + this.invoke(request, DeleteGlobalSSHInstanceResponse.class); + } + + /** + * DeletePathXSSL - 删除PathX SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeletePathXSSLResponse deletePathXSSL(DeletePathXSSLRequest request) + throws UCloudException { + request.setAction("DeletePathXSSL"); + return (DeletePathXSSLResponse) this.invoke(request, DeletePathXSSLResponse.class); + } + + /** + * DeleteUGA3Instance - 删除全球统一接入转发实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUGA3InstanceResponse deleteUGA3Instance(DeleteUGA3InstanceRequest request) + throws UCloudException { + request.setAction("DeleteUGA3Instance"); + return (DeleteUGA3InstanceResponse) this.invoke(request, DeleteUGA3InstanceResponse.class); + } + + /** + * DeleteUGA3Port - 删除统一接入加速实例转发器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUGA3PortResponse deleteUGA3Port(DeleteUGA3PortRequest request) + throws UCloudException { + request.setAction("DeleteUGA3Port"); + return (DeleteUGA3PortResponse) this.invoke(request, DeleteUGA3PortResponse.class); + } + + /** + * DeleteUGAForwarder - 删除加速实例转发器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUGAForwarderResponse deleteUGAForwarder(DeleteUGAForwarderRequest request) + throws UCloudException { + request.setAction("DeleteUGAForwarder"); + return (DeleteUGAForwarderResponse) this.invoke(request, DeleteUGAForwarderResponse.class); + } + + /** + * DeleteUGAInstance - 删除全球加速服务加速配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUGAInstanceResponse deleteUGAInstance(DeleteUGAInstanceRequest request) + throws UCloudException { + request.setAction("DeleteUGAInstance"); + return (DeleteUGAInstanceResponse) this.invoke(request, DeleteUGAInstanceResponse.class); + } + + /** + * DeleteUPath - 删除UPath + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPathResponse deleteUPath(DeleteUPathRequest request) throws UCloudException { + request.setAction("DeleteUPath"); + return (DeleteUPathResponse) this.invoke(request, DeleteUPathResponse.class); + } + + /** + * DescribeGlobalSSHInstance - 获取GlobalSSH实例列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeGlobalSSHInstanceResponse describeGlobalSSHInstance( + DescribeGlobalSSHInstanceRequest request) throws UCloudException { + request.setAction("DescribeGlobalSSHInstance"); + return (DescribeGlobalSSHInstanceResponse) + this.invoke(request, DescribeGlobalSSHInstanceResponse.class); + } + + /** + * DescribePathXLineConfig - 获取全球加速线路信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribePathXLineConfigResponse describePathXLineConfig( + DescribePathXLineConfigRequest request) throws UCloudException { + request.setAction("DescribePathXLineConfig"); + return (DescribePathXLineConfigResponse) + this.invoke(request, DescribePathXLineConfigResponse.class); + } + + /** + * DescribePathXSSL - 获取SSL证书信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribePathXSSLResponse describePathXSSL(DescribePathXSSLRequest request) + throws UCloudException { + request.setAction("DescribePathXSSL"); + return (DescribePathXSSLResponse) this.invoke(request, DescribePathXSSLResponse.class); + } + + /** + * DescribeUGA3Area - 获取全球接入源站可选列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUGA3AreaResponse describeUGA3Area(DescribeUGA3AreaRequest request) + throws UCloudException { + request.setAction("DescribeUGA3Area"); + return (DescribeUGA3AreaResponse) this.invoke(request, DescribeUGA3AreaResponse.class); + } + + /** + * DescribeUGA3Instance - 获取全球统一接入加速服务加速配置信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUGA3InstanceResponse describeUGA3Instance(DescribeUGA3InstanceRequest request) + throws UCloudException { + request.setAction("DescribeUGA3Instance"); + return (DescribeUGA3InstanceResponse) + this.invoke(request, DescribeUGA3InstanceResponse.class); + } + + /** + * DescribeUGA3Optimization - 获取全球接入UGA3线路加速优化情况 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUGA3OptimizationResponse describeUGA3Optimization( + DescribeUGA3OptimizationRequest request) throws UCloudException { + request.setAction("DescribeUGA3Optimization"); + return (DescribeUGA3OptimizationResponse) + this.invoke(request, DescribeUGA3OptimizationResponse.class); + } + + /** + * DescribeUGAInstance - 获取全球加速服务加速配置信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUGAInstanceResponse describeUGAInstance(DescribeUGAInstanceRequest request) + throws UCloudException { + request.setAction("DescribeUGAInstance"); + return (DescribeUGAInstanceResponse) + this.invoke(request, DescribeUGAInstanceResponse.class); + } + + /** + * DescribeUPath - 获取加速线路信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPathResponse describeUPath(DescribeUPathRequest request) + throws UCloudException { + request.setAction("DescribeUPath"); + return (DescribeUPathResponse) this.invoke(request, DescribeUPathResponse.class); + } + + /** + * DescribeUPathTemplate - 查询UPath的监控模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPathTemplateResponse describeUPathTemplate(DescribeUPathTemplateRequest request) + throws UCloudException { + request.setAction("DescribeUPathTemplate"); + return (DescribeUPathTemplateResponse) + this.invoke(request, DescribeUPathTemplateResponse.class); + } + + /** + * GetGlobalSSHPrice - 获取GlobalSSH价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetGlobalSSHPriceResponse getGlobalSSHPrice(GetGlobalSSHPriceRequest request) + throws UCloudException { + request.setAction("GetGlobalSSHPrice"); + return (GetGlobalSSHPriceResponse) this.invoke(request, GetGlobalSSHPriceResponse.class); + } + + /** + * GetGlobalSSHUpdatePrice - 获取GlobalSSH升级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetGlobalSSHUpdatePriceResponse getGlobalSSHUpdatePrice( + GetGlobalSSHUpdatePriceRequest request) throws UCloudException { + request.setAction("GetGlobalSSHUpdatePrice"); + return (GetGlobalSSHUpdatePriceResponse) + this.invoke(request, GetGlobalSSHUpdatePriceResponse.class); + } + + /** + * GetPathXMetric - 获取全球加速监控信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetPathXMetricResponse getPathXMetric(GetPathXMetricRequest request) + throws UCloudException { + request.setAction("GetPathXMetric"); + return (GetPathXMetricResponse) this.invoke(request, GetPathXMetricResponse.class); + } + + /** + * GetUGA3Metric - 获取全地域加速监控信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUGA3MetricResponse getUGA3Metric(GetUGA3MetricRequest request) + throws UCloudException { + request.setAction("GetUGA3Metric"); + return (GetUGA3MetricResponse) this.invoke(request, GetUGA3MetricResponse.class); + } + + /** + * GetUGA3Price - 获取全球统一接入转发实例价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUGA3PriceResponse getUGA3Price(GetUGA3PriceRequest request) throws UCloudException { + request.setAction("GetUGA3Price"); + return (GetUGA3PriceResponse) this.invoke(request, GetUGA3PriceResponse.class); + } + + /** + * GetUGA3UpdatePrice - 全球统一接入获取实例更新价格(增加、删退) + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUGA3UpdatePriceResponse getUGA3UpdatePrice(GetUGA3UpdatePriceRequest request) + throws UCloudException { + request.setAction("GetUGA3UpdatePrice"); + return (GetUGA3UpdatePriceResponse) this.invoke(request, GetUGA3UpdatePriceResponse.class); + } + + /** + * ModifyGlobalSSHPort - 修改GlobalSSH端口 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyGlobalSSHPortResponse modifyGlobalSSHPort(ModifyGlobalSSHPortRequest request) + throws UCloudException { + request.setAction("ModifyGlobalSSHPort"); + return (ModifyGlobalSSHPortResponse) + this.invoke(request, ModifyGlobalSSHPortResponse.class); + } + + /** + * ModifyGlobalSSHRemark - 修改GlobalSSH备注 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyGlobalSSHRemarkResponse modifyGlobalSSHRemark(ModifyGlobalSSHRemarkRequest request) + throws UCloudException { + request.setAction("ModifyGlobalSSHRemark"); + return (ModifyGlobalSSHRemarkResponse) + this.invoke(request, ModifyGlobalSSHRemarkResponse.class); + } + + /** + * ModifyGlobalSSHType - 修改GlobalSSH实例类型 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyGlobalSSHTypeResponse modifyGlobalSSHType(ModifyGlobalSSHTypeRequest request) + throws UCloudException { + request.setAction("ModifyGlobalSSHType"); + return (ModifyGlobalSSHTypeResponse) + this.invoke(request, ModifyGlobalSSHTypeResponse.class); + } + + /** + * ModifyUGA3Bandwidth - 修改统一接入加速配置带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUGA3BandwidthResponse modifyUGA3Bandwidth(ModifyUGA3BandwidthRequest request) + throws UCloudException { + request.setAction("ModifyUGA3Bandwidth"); + return (ModifyUGA3BandwidthResponse) + this.invoke(request, ModifyUGA3BandwidthResponse.class); + } + + /** + * ModifyUGA3Instance - 修改统一接入加速配置属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUGA3InstanceResponse modifyUGA3Instance(ModifyUGA3InstanceRequest request) + throws UCloudException { + request.setAction("ModifyUGA3Instance"); + return (ModifyUGA3InstanceResponse) this.invoke(request, ModifyUGA3InstanceResponse.class); + } + + /** + * ModifyUGA3OriginInfo - 修改统一接入加速配置源站信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUGA3OriginInfoResponse modifyUGA3OriginInfo(ModifyUGA3OriginInfoRequest request) + throws UCloudException { + request.setAction("ModifyUGA3OriginInfo"); + return (ModifyUGA3OriginInfoResponse) + this.invoke(request, ModifyUGA3OriginInfoResponse.class); + } + + /** + * ModifyUGA3Port - 修改统一接入加速实例端口 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUGA3PortResponse modifyUGA3Port(ModifyUGA3PortRequest request) + throws UCloudException { + request.setAction("ModifyUGA3Port"); + return (ModifyUGA3PortResponse) this.invoke(request, ModifyUGA3PortResponse.class); + } + + /** + * ModifyUPathBandwidth - 修改加速线路带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPathBandwidthResponse modifyUPathBandwidth(ModifyUPathBandwidthRequest request) + throws UCloudException { + request.setAction("ModifyUPathBandwidth"); + return (ModifyUPathBandwidthResponse) + this.invoke(request, ModifyUPathBandwidthResponse.class); + } + + /** + * ModifyUPathTemplate - 修改UPath监控告警项 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPathTemplateResponse modifyUPathTemplate(ModifyUPathTemplateRequest request) + throws UCloudException { + request.setAction("ModifyUPathTemplate"); + return (ModifyUPathTemplateResponse) + this.invoke(request, ModifyUPathTemplateResponse.class); + } + + /** + * UGABindUPath - UGA绑定UPath + * + * @param request Request object + * @throws UCloudException Exception + */ + public UGABindUPathResponse ugaBindUPath(UGABindUPathRequest request) throws UCloudException { + request.setAction("UGABindUPath"); + return (UGABindUPathResponse) this.invoke(request, UGABindUPathResponse.class); + } + + /** + * UGAUnBindUPath - UGA与UPath解绑 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UGAUnBindUPathResponse ugaUnBindUPath(UGAUnBindUPathRequest request) + throws UCloudException { + request.setAction("UGAUnBindUPath"); + return (UGAUnBindUPathResponse) this.invoke(request, UGAUnBindUPathResponse.class); + } + + /** + * UnBindPathXSSL - 解绑PathX SSL 证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UnBindPathXSSLResponse unBindPathXSSL(UnBindPathXSSLRequest request) + throws UCloudException { + request.setAction("UnBindPathXSSL"); + return (UnBindPathXSSLResponse) this.invoke(request, UnBindPathXSSLResponse.class); + } + + /** + * UpdatePathXWhitelist - 更新入口白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdatePathXWhitelistResponse updatePathXWhitelist(UpdatePathXWhitelistRequest request) + throws UCloudException { + request.setAction("UpdatePathXWhitelist"); + return (UpdatePathXWhitelistResponse) + this.invoke(request, UpdatePathXWhitelistResponse.class); + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClientInterface.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClientInterface.java new file mode 100644 index 00000000..b9653b5f --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/client/PathXClientInterface.java @@ -0,0 +1,487 @@ +/** + * 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.pathx.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.pathx.models.BindPathXSSLRequest; +import cn.ucloud.pathx.models.BindPathXSSLResponse; +import cn.ucloud.pathx.models.CreateGlobalSSHInstanceRequest; +import cn.ucloud.pathx.models.CreateGlobalSSHInstanceResponse; +import cn.ucloud.pathx.models.CreatePathXSSLRequest; +import cn.ucloud.pathx.models.CreatePathXSSLResponse; +import cn.ucloud.pathx.models.CreateUGA3InstanceRequest; +import cn.ucloud.pathx.models.CreateUGA3InstanceResponse; +import cn.ucloud.pathx.models.CreateUGA3PortRequest; +import cn.ucloud.pathx.models.CreateUGA3PortResponse; +import cn.ucloud.pathx.models.CreateUGAForwarderRequest; +import cn.ucloud.pathx.models.CreateUGAForwarderResponse; +import cn.ucloud.pathx.models.CreateUGAInstanceRequest; +import cn.ucloud.pathx.models.CreateUGAInstanceResponse; +import cn.ucloud.pathx.models.CreateUPathRequest; +import cn.ucloud.pathx.models.CreateUPathResponse; +import cn.ucloud.pathx.models.DeleteGlobalSSHInstanceRequest; +import cn.ucloud.pathx.models.DeleteGlobalSSHInstanceResponse; +import cn.ucloud.pathx.models.DeletePathXSSLRequest; +import cn.ucloud.pathx.models.DeletePathXSSLResponse; +import cn.ucloud.pathx.models.DeleteUGA3InstanceRequest; +import cn.ucloud.pathx.models.DeleteUGA3InstanceResponse; +import cn.ucloud.pathx.models.DeleteUGA3PortRequest; +import cn.ucloud.pathx.models.DeleteUGA3PortResponse; +import cn.ucloud.pathx.models.DeleteUGAForwarderRequest; +import cn.ucloud.pathx.models.DeleteUGAForwarderResponse; +import cn.ucloud.pathx.models.DeleteUGAInstanceRequest; +import cn.ucloud.pathx.models.DeleteUGAInstanceResponse; +import cn.ucloud.pathx.models.DeleteUPathRequest; +import cn.ucloud.pathx.models.DeleteUPathResponse; +import cn.ucloud.pathx.models.DescribeGlobalSSHInstanceRequest; +import cn.ucloud.pathx.models.DescribeGlobalSSHInstanceResponse; +import cn.ucloud.pathx.models.DescribePathXLineConfigRequest; +import cn.ucloud.pathx.models.DescribePathXLineConfigResponse; +import cn.ucloud.pathx.models.DescribePathXSSLRequest; +import cn.ucloud.pathx.models.DescribePathXSSLResponse; +import cn.ucloud.pathx.models.DescribeUGA3AreaRequest; +import cn.ucloud.pathx.models.DescribeUGA3AreaResponse; +import cn.ucloud.pathx.models.DescribeUGA3InstanceRequest; +import cn.ucloud.pathx.models.DescribeUGA3InstanceResponse; +import cn.ucloud.pathx.models.DescribeUGA3OptimizationRequest; +import cn.ucloud.pathx.models.DescribeUGA3OptimizationResponse; +import cn.ucloud.pathx.models.DescribeUGAInstanceRequest; +import cn.ucloud.pathx.models.DescribeUGAInstanceResponse; +import cn.ucloud.pathx.models.DescribeUPathRequest; +import cn.ucloud.pathx.models.DescribeUPathResponse; +import cn.ucloud.pathx.models.DescribeUPathTemplateRequest; +import cn.ucloud.pathx.models.DescribeUPathTemplateResponse; +import cn.ucloud.pathx.models.GetGlobalSSHPriceRequest; +import cn.ucloud.pathx.models.GetGlobalSSHPriceResponse; +import cn.ucloud.pathx.models.GetGlobalSSHUpdatePriceRequest; +import cn.ucloud.pathx.models.GetGlobalSSHUpdatePriceResponse; +import cn.ucloud.pathx.models.GetPathXMetricRequest; +import cn.ucloud.pathx.models.GetPathXMetricResponse; +import cn.ucloud.pathx.models.GetUGA3MetricRequest; +import cn.ucloud.pathx.models.GetUGA3MetricResponse; +import cn.ucloud.pathx.models.GetUGA3PriceRequest; +import cn.ucloud.pathx.models.GetUGA3PriceResponse; +import cn.ucloud.pathx.models.GetUGA3UpdatePriceRequest; +import cn.ucloud.pathx.models.GetUGA3UpdatePriceResponse; +import cn.ucloud.pathx.models.ModifyGlobalSSHPortRequest; +import cn.ucloud.pathx.models.ModifyGlobalSSHPortResponse; +import cn.ucloud.pathx.models.ModifyGlobalSSHRemarkRequest; +import cn.ucloud.pathx.models.ModifyGlobalSSHRemarkResponse; +import cn.ucloud.pathx.models.ModifyGlobalSSHTypeRequest; +import cn.ucloud.pathx.models.ModifyGlobalSSHTypeResponse; +import cn.ucloud.pathx.models.ModifyUGA3BandwidthRequest; +import cn.ucloud.pathx.models.ModifyUGA3BandwidthResponse; +import cn.ucloud.pathx.models.ModifyUGA3InstanceRequest; +import cn.ucloud.pathx.models.ModifyUGA3InstanceResponse; +import cn.ucloud.pathx.models.ModifyUGA3OriginInfoRequest; +import cn.ucloud.pathx.models.ModifyUGA3OriginInfoResponse; +import cn.ucloud.pathx.models.ModifyUGA3PortRequest; +import cn.ucloud.pathx.models.ModifyUGA3PortResponse; +import cn.ucloud.pathx.models.ModifyUPathBandwidthRequest; +import cn.ucloud.pathx.models.ModifyUPathBandwidthResponse; +import cn.ucloud.pathx.models.ModifyUPathTemplateRequest; +import cn.ucloud.pathx.models.ModifyUPathTemplateResponse; +import cn.ucloud.pathx.models.UGABindUPathRequest; +import cn.ucloud.pathx.models.UGABindUPathResponse; +import cn.ucloud.pathx.models.UGAUnBindUPathRequest; +import cn.ucloud.pathx.models.UGAUnBindUPathResponse; +import cn.ucloud.pathx.models.UnBindPathXSSLRequest; +import cn.ucloud.pathx.models.UnBindPathXSSLResponse; +import cn.ucloud.pathx.models.UpdatePathXWhitelistRequest; +import cn.ucloud.pathx.models.UpdatePathXWhitelistResponse; + +/** This client is used to call actions of **PathX** service */ +public interface PathXClientInterface extends Client { + + /** + * BindPathXSSL - 绑定PathX SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BindPathXSSLResponse bindPathXSSL(BindPathXSSLRequest request) throws UCloudException; + + /** + * CreateGlobalSSHInstance - 创建GlobalSSH实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateGlobalSSHInstanceResponse createGlobalSSHInstance( + CreateGlobalSSHInstanceRequest request) throws UCloudException; + + /** + * CreatePathXSSL - 创建证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreatePathXSSLResponse createPathXSSL(CreatePathXSSLRequest request) + throws UCloudException; + + /** + * CreateUGA3Instance - 创建全球统一接入加速配置项 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUGA3InstanceResponse createUGA3Instance(CreateUGA3InstanceRequest request) + throws UCloudException; + + /** + * CreateUGA3Port - 创建统一接入加速实例端口 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUGA3PortResponse createUGA3Port(CreateUGA3PortRequest request) + throws UCloudException; + + /** + * CreateUGAForwarder - 创建加速实例转发器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUGAForwarderResponse createUGAForwarder(CreateUGAForwarderRequest request) + throws UCloudException; + + /** + * CreateUGAInstance - 创建全球加速配置项 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUGAInstanceResponse createUGAInstance(CreateUGAInstanceRequest request) + throws UCloudException; + + /** + * CreateUPath - 创建UPath + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPathResponse createUPath(CreateUPathRequest request) throws UCloudException; + + /** + * DeleteGlobalSSHInstance - 删除GlobalSSH实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteGlobalSSHInstanceResponse deleteGlobalSSHInstance( + DeleteGlobalSSHInstanceRequest request) throws UCloudException; + + /** + * DeletePathXSSL - 删除PathX SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeletePathXSSLResponse deletePathXSSL(DeletePathXSSLRequest request) + throws UCloudException; + + /** + * DeleteUGA3Instance - 删除全球统一接入转发实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUGA3InstanceResponse deleteUGA3Instance(DeleteUGA3InstanceRequest request) + throws UCloudException; + + /** + * DeleteUGA3Port - 删除统一接入加速实例转发器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUGA3PortResponse deleteUGA3Port(DeleteUGA3PortRequest request) + throws UCloudException; + + /** + * DeleteUGAForwarder - 删除加速实例转发器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUGAForwarderResponse deleteUGAForwarder(DeleteUGAForwarderRequest request) + throws UCloudException; + + /** + * DeleteUGAInstance - 删除全球加速服务加速配置 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUGAInstanceResponse deleteUGAInstance(DeleteUGAInstanceRequest request) + throws UCloudException; + + /** + * DeleteUPath - 删除UPath + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPathResponse deleteUPath(DeleteUPathRequest request) throws UCloudException; + + /** + * DescribeGlobalSSHInstance - 获取GlobalSSH实例列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeGlobalSSHInstanceResponse describeGlobalSSHInstance( + DescribeGlobalSSHInstanceRequest request) throws UCloudException; + + /** + * DescribePathXLineConfig - 获取全球加速线路信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribePathXLineConfigResponse describePathXLineConfig( + DescribePathXLineConfigRequest request) throws UCloudException; + + /** + * DescribePathXSSL - 获取SSL证书信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribePathXSSLResponse describePathXSSL(DescribePathXSSLRequest request) + throws UCloudException; + + /** + * DescribeUGA3Area - 获取全球接入源站可选列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUGA3AreaResponse describeUGA3Area(DescribeUGA3AreaRequest request) + throws UCloudException; + + /** + * DescribeUGA3Instance - 获取全球统一接入加速服务加速配置信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUGA3InstanceResponse describeUGA3Instance(DescribeUGA3InstanceRequest request) + throws UCloudException; + + /** + * DescribeUGA3Optimization - 获取全球接入UGA3线路加速优化情况 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUGA3OptimizationResponse describeUGA3Optimization( + DescribeUGA3OptimizationRequest request) throws UCloudException; + + /** + * DescribeUGAInstance - 获取全球加速服务加速配置信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUGAInstanceResponse describeUGAInstance(DescribeUGAInstanceRequest request) + throws UCloudException; + + /** + * DescribeUPath - 获取加速线路信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPathResponse describeUPath(DescribeUPathRequest request) throws UCloudException; + + /** + * DescribeUPathTemplate - 查询UPath的监控模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUPathTemplateResponse describeUPathTemplate(DescribeUPathTemplateRequest request) + throws UCloudException; + + /** + * GetGlobalSSHPrice - 获取GlobalSSH价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetGlobalSSHPriceResponse getGlobalSSHPrice(GetGlobalSSHPriceRequest request) + throws UCloudException; + + /** + * GetGlobalSSHUpdatePrice - 获取GlobalSSH升级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetGlobalSSHUpdatePriceResponse getGlobalSSHUpdatePrice( + GetGlobalSSHUpdatePriceRequest request) throws UCloudException; + + /** + * GetPathXMetric - 获取全球加速监控信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetPathXMetricResponse getPathXMetric(GetPathXMetricRequest request) + throws UCloudException; + + /** + * GetUGA3Metric - 获取全地域加速监控信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUGA3MetricResponse getUGA3Metric(GetUGA3MetricRequest request) throws UCloudException; + + /** + * GetUGA3Price - 获取全球统一接入转发实例价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUGA3PriceResponse getUGA3Price(GetUGA3PriceRequest request) throws UCloudException; + + /** + * GetUGA3UpdatePrice - 全球统一接入获取实例更新价格(增加、删退) + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUGA3UpdatePriceResponse getUGA3UpdatePrice(GetUGA3UpdatePriceRequest request) + throws UCloudException; + + /** + * ModifyGlobalSSHPort - 修改GlobalSSH端口 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyGlobalSSHPortResponse modifyGlobalSSHPort(ModifyGlobalSSHPortRequest request) + throws UCloudException; + + /** + * ModifyGlobalSSHRemark - 修改GlobalSSH备注 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyGlobalSSHRemarkResponse modifyGlobalSSHRemark(ModifyGlobalSSHRemarkRequest request) + throws UCloudException; + + /** + * ModifyGlobalSSHType - 修改GlobalSSH实例类型 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyGlobalSSHTypeResponse modifyGlobalSSHType(ModifyGlobalSSHTypeRequest request) + throws UCloudException; + + /** + * ModifyUGA3Bandwidth - 修改统一接入加速配置带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUGA3BandwidthResponse modifyUGA3Bandwidth(ModifyUGA3BandwidthRequest request) + throws UCloudException; + + /** + * ModifyUGA3Instance - 修改统一接入加速配置属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUGA3InstanceResponse modifyUGA3Instance(ModifyUGA3InstanceRequest request) + throws UCloudException; + + /** + * ModifyUGA3OriginInfo - 修改统一接入加速配置源站信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUGA3OriginInfoResponse modifyUGA3OriginInfo(ModifyUGA3OriginInfoRequest request) + throws UCloudException; + + /** + * ModifyUGA3Port - 修改统一接入加速实例端口 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUGA3PortResponse modifyUGA3Port(ModifyUGA3PortRequest request) + throws UCloudException; + + /** + * ModifyUPathBandwidth - 修改加速线路带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPathBandwidthResponse modifyUPathBandwidth(ModifyUPathBandwidthRequest request) + throws UCloudException; + + /** + * ModifyUPathTemplate - 修改UPath监控告警项 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUPathTemplateResponse modifyUPathTemplate(ModifyUPathTemplateRequest request) + throws UCloudException; + + /** + * UGABindUPath - UGA绑定UPath + * + * @param request Request object + * @throws UCloudException Exception + */ + public UGABindUPathResponse ugaBindUPath(UGABindUPathRequest request) throws UCloudException; + + /** + * UGAUnBindUPath - UGA与UPath解绑 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UGAUnBindUPathResponse ugaUnBindUPath(UGAUnBindUPathRequest request) + throws UCloudException; + + /** + * UnBindPathXSSL - 解绑PathX SSL 证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UnBindPathXSSLResponse unBindPathXSSL(UnBindPathXSSLRequest request) + throws UCloudException; + + /** + * UpdatePathXWhitelist - 更新入口白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdatePathXWhitelistResponse updatePathXWhitelist(UpdatePathXWhitelistRequest request) + throws UCloudException; +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLRequest.java new file mode 100644 index 00000000..7154517d --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLRequest.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.pathx.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 BindPathXSSLRequest extends Request { + + /** 项目ID。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 证书ID,如果没有指定证书ID也没有申请免费证书,HTTPS接入无法正常工作 */ + @NotEmpty + @UCloudParam("SSLId") + private String sslId; + + /** UGA实例ID */ + @NotEmpty + @UCloudParam("UGAId") + private String ugaId; + + /** 绑定SSL证书的HTTPS端口。Port.0 Port.1对应多个Port。如果Port不存在则不会绑定 */ + @NotEmpty + @UCloudParam("Port") + private List port; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSSLId() { + return sslId; + } + + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public String getUGAId() { + return ugaId; + } + + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } + + public List getPort() { + return port; + } + + public void setPort(List port) { + this.port = port; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLResponse.java new file mode 100644 index 00000000..e2001ae2 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/BindPathXSSLResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class BindPathXSSLResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceRequest.java new file mode 100644 index 00000000..bc239887 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceRequest.java @@ -0,0 +1,173 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateGlobalSSHInstanceRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 填写支持SSH访问IP的地区名称,如“洛杉矶”,“新加坡”,“香港”,“东京”,“华盛顿”,“法兰克福”,“首尔”。Area和AreaCode两者必填一个 */ + @NotEmpty + @UCloudParam("Area") + private String area; + + /** 被SSH访问的源站IP,仅支持IPv4地址。 */ + @NotEmpty + @UCloudParam("TargetIP") + private String targetIP; + + /** + * 源站服务器监听的SSH端口,可取范围[1-65535],不能使用80,443, + * 65123端口。如果InstanceType=Free,取值范围缩小为[22,3389],linux系统选择22,windows系统自动选3389。 + */ + @NotEmpty + @UCloudParam("Port") + private Integer port; + + /** AreaCode, 区域航空港国际通用代码。Area和AreaCode两者必填一个 */ + @NotEmpty + @UCloudParam("AreaCode") + private String areaCode; + + /** 备注信息 */ + @UCloudParam("Remark") + private String remark; + + /** 支付方式,如按月:Month、 按年:Year、按时:Dynamic */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买数量 按月购买至月底请传0 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** 枚举值:["Ultimate","Enterprise","Basic","Primary"], 分别代表旗舰版,企业版,基础版,入门版 */ + @UCloudParam("InstanceType") + private String instanceType; + + /** Ultimate版本带宽包大小,枚举值:[0,20,40]。单位MB */ + @UCloudParam("BandwidthPackage") + private Integer bandwidthPackage; + + /** InstanceType等于Basic时可以在["cn-bj2","cn-sh2","cn-gd"]中选择1个作为转发机房,其他付费版默认配置三个转发机房 */ + @UCloudParam("ForwardRegion") + private String forwardRegion; + + /** 使用代金券可冲抵部分费用 */ + @UCloudParam("CouponId") + private String couponId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getTargetIP() { + return targetIP; + } + + public void setTargetIP(String targetIP) { + this.targetIP = targetIP; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getAreaCode() { + return areaCode; + } + + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } + + 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 Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Integer getBandwidthPackage() { + return bandwidthPackage; + } + + public void setBandwidthPackage(Integer bandwidthPackage) { + this.bandwidthPackage = bandwidthPackage; + } + + public String getForwardRegion() { + return forwardRegion; + } + + public void setForwardRegion(String forwardRegion) { + this.forwardRegion = forwardRegion; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceResponse.java new file mode 100644 index 00000000..83a3c1cb --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateGlobalSSHInstanceResponse.java @@ -0,0 +1,44 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class CreateGlobalSSHInstanceResponse extends Response { + + /** 实例ID,资源唯一标识 */ + @SerializedName("InstanceId") + private String instanceId; + + /** 加速域名,访问该域名可就近接入 */ + @SerializedName("AcceleratingDomain") + private String acceleratingDomain; + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getAcceleratingDomain() { + return acceleratingDomain; + } + + public void setAcceleratingDomain(String acceleratingDomain) { + this.acceleratingDomain = acceleratingDomain; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLRequest.java new file mode 100644 index 00000000..7bd12978 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLRequest.java @@ -0,0 +1,107 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreatePathXSSLRequest extends Request { + + /** 项目ID org-xxx格式。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** SSL证书的名字 */ + @NotEmpty + @UCloudParam("SSLName") + private String sslName; + + /** 所添加的SSL证书类型,目前只支持Pem格式 */ + @UCloudParam("SSLType") + private String sslType; + + /** SSL证书的完整内容,私钥不可使用密码,包括加密证书的私钥、用户证书或CA证书等 */ + @UCloudParam("SSLContent") + private String sslContent; + + /** 用户自签证书内容 */ + @UCloudParam("UserCert") + private String userCert; + + /** 加密证书的私钥,不可使用密码保护,开启密码保护后,重启服务需要输入密码 */ + @UCloudParam("PrivateKey") + private String privateKey; + + /** CA颁发证书内容 */ + @UCloudParam("CACert") + private String caCert; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSSLName() { + return sslName; + } + + public void setSSLName(String sslName) { + this.sslName = sslName; + } + + public String getSSLType() { + return sslType; + } + + public void setSSLType(String sslType) { + this.sslType = sslType; + } + + public String getSSLContent() { + return sslContent; + } + + public void setSSLContent(String sslContent) { + this.sslContent = sslContent; + } + + public String getUserCert() { + return userCert; + } + + public void setUserCert(String userCert) { + this.userCert = userCert; + } + + public String getPrivateKey() { + return privateKey; + } + + public void setPrivateKey(String privateKey) { + this.privateKey = privateKey; + } + + public String getCACert() { + return caCert; + } + + public void setCACert(String caCert) { + this.caCert = caCert; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLResponse.java new file mode 100644 index 00000000..2269b6b7 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreatePathXSSLResponse.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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class CreatePathXSSLResponse extends Response { + + /** SSL证书的Id */ + @SerializedName("SSLId") + private String sslId; + + public String getSSLId() { + return sslId; + } + + public void setSSLId(String sslId) { + this.sslId = sslId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGA3InstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGA3InstanceRequest.java new file mode 100644 index 00000000..694f98cc --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGA3InstanceRequest.java @@ -0,0 +1,162 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateUGA3InstanceRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 实例的共享带宽大小,单位Mbps */ + @NotEmpty + @UCloudParam("Bandwidth") + private Integer bandwidth; + + /** 加速配置实例名称,默认PathX */ + @UCloudParam("Name") + private String name; + + /** + * 非必填,如果不填,会根据Domain 和IPList 去选一个最近的源站区域 BKK表示AreaCode;曼谷表示Area + * ["BKK":"曼谷","DXB":"迪拜","FRA":"法兰克福","SGN":"胡志明市","HKG":"香港",CGK":"雅加达","LOS":"拉各斯","LHR":"伦敦","LAX":"洛杉矶","MNL":"马尼拉","DME":"莫斯科","BOM":"孟买","MSP":"圣保罗","ICN":"首尔","PVG":"上海","SIN":"新加坡","NRT":"东京","IAD":"华盛顿","TPE": + * "台北"] + */ + @UCloudParam("AreaCode") + private String areaCode; + + /** 备注项 */ + @UCloudParam("Remark") + private String remark; + + /** 支付方式,如按月、按年、按时 [Year,Month,Dynamic] */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买周期 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** + * 加速大区,默认Global,[ "Global":"全球", "AP":"亚太", "EU":"欧洲", "ME":"中东", "OA":"大洋洲", "AF":"非洲", + * "NA":"北美洲", "SA":"南美洲" ] + */ + @UCloudParam("AccelerationArea") + private String accelerationArea; + + /** 加速源IP,多个IP用英文半角逗号(,)隔开;IPList和Domain二选一必填 */ + @UCloudParam("OriginIPList") + private String originIPList; + + /** 加速源域名,IPList和Domain二选一必填 */ + @UCloudParam("OriginDomain") + private String originDomain; + + /** 使用代金券可冲抵部分费用,仅全地域可用的代金券 */ + @UCloudParam("CouponId") + private String couponId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getAreaCode() { + return areaCode; + } + + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } + + 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 Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getAccelerationArea() { + return accelerationArea; + } + + public void setAccelerationArea(String accelerationArea) { + this.accelerationArea = accelerationArea; + } + + public String getOriginIPList() { + return originIPList; + } + + public void setOriginIPList(String originIPList) { + this.originIPList = originIPList; + } + + public String getOriginDomain() { + return originDomain; + } + + public void setOriginDomain(String originDomain) { + this.originDomain = originDomain; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGA3InstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGA3InstanceResponse.java new file mode 100644 index 00000000..06046ce7 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGA3InstanceResponse.java @@ -0,0 +1,44 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class CreateUGA3InstanceResponse extends Response { + + /** 加速配置ID */ + @SerializedName("InstanceId") + private String instanceId; + + /** 加速域名 用户可把业务域名CName到此域名上 */ + @SerializedName("CName") + private String cName; + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getCName() { + return cName; + } + + public void setCName(String cName) { + this.cName = cName; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGA3PortRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGA3PortRequest.java new file mode 100644 index 00000000..0d81eed1 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGA3PortRequest.java @@ -0,0 +1,72 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.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 CreateUGA3PortRequest extends Request { + + /** 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + /** TCP接入端口,禁用65123端口 */ + @UCloudParam("TCP") + private List tcp; + + /** TCP回源端口 */ + @UCloudParam("TCPRS") + private List tcprs; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public List getTCP() { + return tcp; + } + + public void setTCP(List tcp) { + this.tcp = tcp; + } + + public List getTCPRS() { + return tcprs; + } + + public void setTCPRS(List tcprs) { + this.tcprs = tcprs; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGA3PortResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGA3PortResponse.java new file mode 100644 index 00000000..6352cfb9 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGA3PortResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class CreateUGA3PortResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderRequest.java new file mode 100644 index 00000000..90e3e577 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderRequest.java @@ -0,0 +1,240 @@ +/** + * 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.pathx.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 CreateUGAForwarderRequest extends Request { + + /** 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID */ + @NotEmpty + @UCloudParam("UGAId") + private String ugaId; + + /** HTTP接入HTTP回源转发,接入端口。禁用65123端口 */ + @UCloudParam("HTTPHTTP") + private List httphttp; + + /** HTTP接入HTTP回源转发,源站监听端口 */ + @UCloudParam("HTTPHTTPRS") + private List httphttprs; + + /** HTTPS接入HTTP回源转发,接入端口。禁用65123端口 */ + @UCloudParam("HTTPSHTTP") + private List httpshttp; + + /** HTTPS接入HTTP回源转发,回源端口 */ + @UCloudParam("HTTPSHTTPRS") + private List httpshttprs; + + /** HTTPS接入HTTPS回源转发,接入端口。禁用65123端口 */ + @UCloudParam("HTTPSHTTPS") + private List httpshttps; + + /** HTTPS接入HTTPS回源转发,源站监听端口 */ + @UCloudParam("HTTPSHTTPSRS") + private List httpshttpsrs; + + /** TCP接入端口,禁用65123端口 */ + @UCloudParam("TCP") + private List tcp; + + /** TCP回源端口 */ + @UCloudParam("TCPRS") + private List tcprs; + + /** UDP接入端口,禁用65123端口 */ + @UCloudParam("UDP") + private List udp; + + /** UDP回源端口 */ + @UCloudParam("UDPRS") + private List udprs; + + /** WebSocket接入WebSocket回源转发,接入端口。禁用65123。 */ + @UCloudParam("WSWS") + private List wsws; + + /** WebSocket接入WebSocket回源转发,源站监听端口 */ + @UCloudParam("WSWSRS") + private List wswsrs; + + /** WebSocketS接入WebSocketS回源转发,接入端口。禁用65123。 */ + @UCloudParam("WSSWSS") + private List wsswss; + + /** WebSocketS接入WebSocketS回源转发,源站监听端口。 */ + @UCloudParam("WSSWSSRS") + private List wsswssrs; + + /** WebSocketS接入WebSocket回源转发,接入端口。禁用65123。 */ + @UCloudParam("WSSWS") + private List wssws; + + /** WebSocketS接入WebSocket回源转发,源站监听端口。 */ + @UCloudParam("WSSWSRS") + private List wsswsrs; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUGAId() { + return ugaId; + } + + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } + + public List getHTTPHTTP() { + return httphttp; + } + + public void setHTTPHTTP(List httphttp) { + this.httphttp = httphttp; + } + + public List getHTTPHTTPRS() { + return httphttprs; + } + + public void setHTTPHTTPRS(List httphttprs) { + this.httphttprs = httphttprs; + } + + public List getHTTPSHTTP() { + return httpshttp; + } + + public void setHTTPSHTTP(List httpshttp) { + this.httpshttp = httpshttp; + } + + public List getHTTPSHTTPRS() { + return httpshttprs; + } + + public void setHTTPSHTTPRS(List httpshttprs) { + this.httpshttprs = httpshttprs; + } + + public List getHTTPSHTTPS() { + return httpshttps; + } + + public void setHTTPSHTTPS(List httpshttps) { + this.httpshttps = httpshttps; + } + + public List getHTTPSHTTPSRS() { + return httpshttpsrs; + } + + public void setHTTPSHTTPSRS(List httpshttpsrs) { + this.httpshttpsrs = httpshttpsrs; + } + + public List getTCP() { + return tcp; + } + + public void setTCP(List tcp) { + this.tcp = tcp; + } + + public List getTCPRS() { + return tcprs; + } + + public void setTCPRS(List tcprs) { + this.tcprs = tcprs; + } + + public List getUDP() { + return udp; + } + + public void setUDP(List udp) { + this.udp = udp; + } + + public List getUDPRS() { + return udprs; + } + + public void setUDPRS(List udprs) { + this.udprs = udprs; + } + + public List getWSWS() { + return wsws; + } + + public void setWSWS(List wsws) { + this.wsws = wsws; + } + + public List getWSWSRS() { + return wswsrs; + } + + public void setWSWSRS(List wswsrs) { + this.wswsrs = wswsrs; + } + + public List getWSSWSS() { + return wsswss; + } + + public void setWSSWSS(List wsswss) { + this.wsswss = wsswss; + } + + public List getWSSWSSRS() { + return wsswssrs; + } + + public void setWSSWSSRS(List wsswssrs) { + this.wsswssrs = wsswssrs; + } + + public List getWSSWS() { + return wssws; + } + + public void setWSSWS(List wssws) { + this.wssws = wssws; + } + + public List getWSSWSRS() { + return wsswsrs; + } + + public void setWSSWSRS(List wsswsrs) { + this.wsswsrs = wsswsrs; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderResponse.java new file mode 100644 index 00000000..d0194d38 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAForwarderResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class CreateUGAForwarderResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceRequest.java new file mode 100644 index 00000000..cb7bc22a --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceRequest.java @@ -0,0 +1,96 @@ +/** + * 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.pathx.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 CreateUGAInstanceRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例名称 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** 加速源IP,多个IP用英文半角逗号(,)隔开;IPList和Domain二选一必填 */ + @UCloudParam("IPList") + private String ipList; + + /** 加速源域名,IPList和Domain二选一必填 */ + @UCloudParam("Domain") + private String domain; + + /** TCP端口号,已废弃。请使用 CreateUGAForwarder API 创建端口 */ + @UCloudParam("TCP") + private List tcp; + + /** UDP端口号,已废弃。请使用 CreateUGAForwarder API 创建端口 */ + @UCloudParam("UDP") + private List udp; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getIPList() { + return ipList; + } + + public void setIPList(String ipList) { + this.ipList = ipList; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public List getTCP() { + return tcp; + } + + public void setTCP(List tcp) { + this.tcp = tcp; + } + + public List getUDP() { + return udp; + } + + public void setUDP(List udp) { + this.udp = udp; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceResponse.java new file mode 100644 index 00000000..8a7ab296 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUGAInstanceResponse.java @@ -0,0 +1,44 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class CreateUGAInstanceResponse extends Response { + + /** 加速配置ID */ + @SerializedName("UGAId") + private String ugaId; + + /** 加速域名 用户可把业务域名CName到此域名上。注意:未绑定线路情况时 加速域名解析不出IP。 */ + @SerializedName("CName") + private String cName; + + public String getUGAId() { + return ugaId; + } + + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } + + public String getCName() { + return cName; + } + + public void setCName(String cName) { + this.cName = cName; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathRequest.java new file mode 100644 index 00000000..703a6ed6 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathRequest.java @@ -0,0 +1,136 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateUPathRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 名字,便于记忆区分 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** 选择的线路,由DescribePathXLineConfig接口提供 */ + @NotEmpty + @UCloudParam("LineId") + private String lineId; + + /** + * 当PostPaid为false时,该值为预付费固定带宽;当PostPaid为true时,该值为后付费保底带宽,保底带宽越大可用的上限带宽越大。最小1Mbps,最大带宽由 + * DescribePathXLineConfig 接口获得。可联系产品团队咨询最大带宽。 + */ + @NotEmpty + @UCloudParam("Bandwidth") + private Integer bandwidth; + + /** 计费模式,默认为Month 按月收费,可选范围['Month','Year','Dynamic'] */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买周期,ChargeType为Month时,Quantity默认为0代表购买到月底,按时和按年付费该参数必须大于0 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** 是否开启后付费, 默认为false ,不开启后付费。当ChargeType为Dynamic时不能开启后付费。 */ + @UCloudParam("PostPaid") + private Boolean postPaid; + + /** private:专线线路;public:海外SD-WAN。默认为private。 */ + @UCloudParam("PathType") + private String pathType; + + /** 代金券Id */ + @UCloudParam("CouponId") + private String couponId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getLineId() { + return lineId; + } + + public void setLineId(String lineId) { + this.lineId = lineId; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public Boolean getPostPaid() { + return postPaid; + } + + public void setPostPaid(Boolean postPaid) { + this.postPaid = postPaid; + } + + public String getPathType() { + return pathType; + } + + public void setPathType(String pathType) { + this.pathType = pathType; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathResponse.java new file mode 100644 index 00000000..e35cb7cf --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/CreateUPathResponse.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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class CreateUPathResponse extends Response { + + /** 加速线路实例Id */ + @SerializedName("PathId") + private String pathId; + + public String getPathId() { + return pathId; + } + + public void setPathId(String pathId) { + this.pathId = pathId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceRequest.java new file mode 100644 index 00000000..bbe301fc --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceRequest.java @@ -0,0 +1,47 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteGlobalSSHInstanceRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 实例Id,资源的唯一标识 */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceResponse.java new file mode 100644 index 00000000..a2d7bfe2 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteGlobalSSHInstanceResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class DeleteGlobalSSHInstanceResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLRequest.java new file mode 100644 index 00000000..81311415 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLRequest.java @@ -0,0 +1,47 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeletePathXSSLRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** SSL证书的ID */ + @NotEmpty + @UCloudParam("SSLId") + private String sslId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSSLId() { + return sslId; + } + + public void setSSLId(String sslId) { + this.sslId = sslId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLResponse.java new file mode 100644 index 00000000..20ba3c2a --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeletePathXSSLResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class DeletePathXSSLResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGA3InstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGA3InstanceRequest.java new file mode 100644 index 00000000..cb1d8df3 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGA3InstanceRequest.java @@ -0,0 +1,47 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteUGA3InstanceRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 实例Id,资源的唯一标识 */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGA3InstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGA3InstanceResponse.java new file mode 100644 index 00000000..08a4bda7 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGA3InstanceResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class DeleteUGA3InstanceResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGA3PortRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGA3PortRequest.java new file mode 100644 index 00000000..144be7f6 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGA3PortRequest.java @@ -0,0 +1,60 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.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 DeleteUGA3PortRequest extends Request { + + /** 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + /** TCP接入端口 */ + @UCloudParam("TCP") + private List tcp; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public List getTCP() { + return tcp; + } + + public void setTCP(List tcp) { + this.tcp = tcp; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGA3PortResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGA3PortResponse.java new file mode 100644 index 00000000..2a029633 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGA3PortResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class DeleteUGA3PortResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderRequest.java new file mode 100644 index 00000000..fea89555 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderRequest.java @@ -0,0 +1,144 @@ +/** + * 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.pathx.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 DeleteUGAForwarderRequest extends Request { + + /** 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID */ + @NotEmpty + @UCloudParam("UGAId") + private String ugaId; + + /** HTTP接入HTTP回源,接入端口。禁用65123端口 */ + @UCloudParam("HTTPHTTP") + private List httphttp; + + /** HTTPS接入HTTP回源, 接入端口。禁用65123端口 */ + @UCloudParam("HTTPSHTTP") + private List httpshttp; + + /** HTTPS接入HTTPS回源, 接入端口。禁用65123端口 */ + @UCloudParam("HTTPSHTTPS") + private List httpshttps; + + /** WebSocketS接入WebSocketS回源, 接入端口。禁用65123端口 */ + @UCloudParam("WSSWSS") + private List wsswss; + + /** WebSocket接入WebSocket回源, 接入端口。禁用65123端口 */ + @UCloudParam("WSWS") + private List wsws; + + /** WebSocketS接入WebSocket回源, 接入端口。禁用65123端口。 */ + @UCloudParam("WSSWS") + private List wssws; + + /** TCP接入端口 */ + @UCloudParam("TCP") + private List tcp; + + /** UDP接入端口 */ + @UCloudParam("UDP") + private List udp; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUGAId() { + return ugaId; + } + + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } + + public List getHTTPHTTP() { + return httphttp; + } + + public void setHTTPHTTP(List httphttp) { + this.httphttp = httphttp; + } + + public List getHTTPSHTTP() { + return httpshttp; + } + + public void setHTTPSHTTP(List httpshttp) { + this.httpshttp = httpshttp; + } + + public List getHTTPSHTTPS() { + return httpshttps; + } + + public void setHTTPSHTTPS(List httpshttps) { + this.httpshttps = httpshttps; + } + + public List getWSSWSS() { + return wsswss; + } + + public void setWSSWSS(List wsswss) { + this.wsswss = wsswss; + } + + public List getWSWS() { + return wsws; + } + + public void setWSWS(List wsws) { + this.wsws = wsws; + } + + public List getWSSWS() { + return wssws; + } + + public void setWSSWS(List wssws) { + this.wssws = wssws; + } + + public List getTCP() { + return tcp; + } + + public void setTCP(List tcp) { + this.tcp = tcp; + } + + public List getUDP() { + return udp; + } + + public void setUDP(List udp) { + this.udp = udp; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderResponse.java new file mode 100644 index 00000000..453f77b3 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAForwarderResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class DeleteUGAForwarderResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceRequest.java new file mode 100644 index 00000000..5c9f9ed8 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceRequest.java @@ -0,0 +1,47 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteUGAInstanceRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID */ + @NotEmpty + @UCloudParam("UGAId") + private String ugaId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUGAId() { + return ugaId; + } + + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceResponse.java new file mode 100644 index 00000000..2cf9faac --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUGAInstanceResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class DeleteUGAInstanceResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathRequest.java new file mode 100644 index 00000000..9e7d23c6 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathRequest.java @@ -0,0 +1,47 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteUPathRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速线路实例ID */ + @NotEmpty + @UCloudParam("UPathId") + private String uPathId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUPathId() { + return uPathId; + } + + public void setUPathId(String uPathId) { + this.uPathId = uPathId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathResponse.java new file mode 100644 index 00000000..96b857b2 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DeleteUPathResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class DeleteUPathResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceRequest.java new file mode 100644 index 00000000..ab0004bf --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceRequest.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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeGlobalSSHInstanceRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 实例ID,资源唯一标识 */ + @UCloudParam("InstanceId") + private String instanceId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceResponse.java new file mode 100644 index 00000000..a5928bd5 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeGlobalSSHInstanceResponse.java @@ -0,0 +1,204 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class DescribeGlobalSSHInstanceResponse extends Response { + + /** GlobalSSH实例列表,实例的属性参考GlobalSSHInfo模型 */ + @SerializedName("InstanceSet") + private List instanceSet; + + public List getInstanceSet() { + return instanceSet; + } + + public void setInstanceSet(List instanceSet) { + this.instanceSet = instanceSet; + } + + public static class GlobalSSHInfo extends Response { + + /** 实例ID,资源唯一标识 */ + @SerializedName("InstanceId") + private String instanceId; + + /** 枚举值:["Enterprise","Basic","Free","Welfare"], 分别代表企业版,基础版本,免费版本,较早的公测免费版 */ + @SerializedName("InstanceType") + private String instanceType; + + /** GlobalSSH分配的加速域名。 */ + @SerializedName("AcceleratingDomain") + private String acceleratingDomain; + + /** 被SSH访问的IP所在地区 */ + @SerializedName("Area") + private String area; + + /** 被SSH访问的源站 IPv4地址。 */ + @SerializedName("TargetIP") + private String targetIP; + + /** 备注信息 */ + @SerializedName("Remark") + private String remark; + + /** 源站服务器监听的SSH端口,windows系统为RDP端口 */ + @SerializedName("Port") + private Integer port; + + /** InstanceType等于Free时,由系统自动分配,不等于源站Port值。InstanceType不等于Free时,与源站Port值相同。 */ + @SerializedName("GlobalSSHPort") + private Integer globalSSHPort; + + /** 支付周期,如Month,Year,Dynamic等 */ + @SerializedName("ChargeType") + private String chargeType; + + /** 资源创建时间戳 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 资源过期时间戳 */ + @SerializedName("ExpireTime") + private Integer expireTime; + + /** 是否过期 */ + @SerializedName("Expire") + private Boolean expire; + + /** globalssh Ultimate带宽包大小 */ + @SerializedName("BandwidthPackage") + private Integer bandwidthPackage; + + /** InstanceType为Basic版本时,需要展示具体分配的转发机房 */ + @SerializedName("ForwardRegion") + private String forwardRegion; + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getAcceleratingDomain() { + return acceleratingDomain; + } + + public void setAcceleratingDomain(String acceleratingDomain) { + this.acceleratingDomain = acceleratingDomain; + } + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getTargetIP() { + return targetIP; + } + + public void setTargetIP(String targetIP) { + this.targetIP = targetIP; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public Integer getGlobalSSHPort() { + return globalSSHPort; + } + + public void setGlobalSSHPort(Integer globalSSHPort) { + this.globalSSHPort = globalSSHPort; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Boolean getExpire() { + return expire; + } + + public void setExpire(Boolean expire) { + this.expire = expire; + } + + public Integer getBandwidthPackage() { + return bandwidthPackage; + } + + public void setBandwidthPackage(Integer bandwidthPackage) { + this.bandwidthPackage = bandwidthPackage; + } + + public String getForwardRegion() { + return forwardRegion; + } + + public void setForwardRegion(String forwardRegion) { + this.forwardRegion = forwardRegion; + } + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigRequest.java new file mode 100644 index 00000000..4e7d1e55 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigRequest.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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribePathXLineConfigRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @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-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigResponse.java new file mode 100644 index 00000000..f15bad4a --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXLineConfigResponse.java @@ -0,0 +1,183 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class DescribePathXLineConfigResponse extends Response { + + /** UGAA线路列表,参考UGAALine字段定义 */ + @SerializedName("LineSet") + private List lineSet; + + public List getLineSet() { + return lineSet; + } + + public void setLineSet(List lineSet) { + this.lineSet = lineSet; + } + + public static class LineDetail extends Response { + + /** 线路源 */ + @SerializedName("LineFrom") + private String lineFrom; + + /** 线路目的 */ + @SerializedName("LineTo") + private String lineTo; + + /** 线路计费Id */ + @SerializedName("LineId") + private String lineId; + + /** 线路源中文名称 */ + @SerializedName("LineFromName") + private String lineFromName; + + /** 线路目的中文名称 */ + @SerializedName("LineToName") + private String lineToName; + + public String getLineFrom() { + return lineFrom; + } + + public void setLineFrom(String lineFrom) { + this.lineFrom = lineFrom; + } + + public String getLineTo() { + return lineTo; + } + + public void setLineTo(String lineTo) { + this.lineTo = lineTo; + } + + public String getLineId() { + return lineId; + } + + public void setLineId(String lineId) { + this.lineId = lineId; + } + + public String getLineFromName() { + return lineFromName; + } + + public void setLineFromName(String lineFromName) { + this.lineFromName = lineFromName; + } + + public String getLineToName() { + return lineToName; + } + + public void setLineToName(String lineToName) { + this.lineToName = lineToName; + } + } + + public static class UGAALine extends Response { + + /** 线路源 */ + @SerializedName("LineFrom") + private String lineFrom; + + /** 线路目的 */ + @SerializedName("LineTo") + private String lineTo; + + /** 线路源中文名称 */ + @SerializedName("LineFromName") + private String lineFromName; + + /** 线路目的中文名称 */ + @SerializedName("LineToName") + private String lineToName; + + /** 线路可售最大带宽 */ + @SerializedName("MaxBandwidth") + private Integer maxBandwidth; + + /** 线路计费Id */ + @SerializedName("LineId") + private String lineId; + + /** 子线路信息 */ + @SerializedName("LineDetail") + private List lineDetail; + + public String getLineFrom() { + return lineFrom; + } + + public void setLineFrom(String lineFrom) { + this.lineFrom = lineFrom; + } + + public String getLineTo() { + return lineTo; + } + + public void setLineTo(String lineTo) { + this.lineTo = lineTo; + } + + public String getLineFromName() { + return lineFromName; + } + + public void setLineFromName(String lineFromName) { + this.lineFromName = lineFromName; + } + + public String getLineToName() { + return lineToName; + } + + public void setLineToName(String lineToName) { + this.lineToName = lineToName; + } + + public Integer getMaxBandwidth() { + return maxBandwidth; + } + + public void setMaxBandwidth(Integer maxBandwidth) { + this.maxBandwidth = maxBandwidth; + } + + public String getLineId() { + return lineId; + } + + public void setLineId(String lineId) { + this.lineId = lineId; + } + + public List getLineDetail() { + return lineDetail; + } + + public void setLineDetail(List lineDetail) { + this.lineDetail = lineDetail; + } + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLRequest.java new file mode 100644 index 00000000..c41e2fcd --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLRequest.java @@ -0,0 +1,82 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribePathXSSLRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** SSL证书的Id,不传分页获取证书列表 */ + @UCloudParam("SSLId") + private String sslId; + + /** 不为空则按证书名称、证书域名模糊搜索 分页返回结果 */ + @UCloudParam("SearchValue") + private String searchValue; + + /** 最大返回条数,默认100,最大400 */ + @UCloudParam("Limit") + private Integer limit; + + /** 偏移值 默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSSLId() { + return sslId; + } + + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public String getSearchValue() { + return searchValue; + } + + public void setSearchValue(String searchValue) { + this.searchValue = searchValue; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLResponse.java new file mode 100644 index 00000000..59ecb6d7 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribePathXSSLResponse.java @@ -0,0 +1,183 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class DescribePathXSSLResponse extends Response { + + /** SSL证书详细信息,具体结构见 PathXSSLSet */ + @SerializedName("DataSet") + private List dataSet; + + /** 符合条件的证书总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public static class PathXSSLSet extends Response { + + /** SSL证书的Id */ + @SerializedName("SSLId") + private String sslId; + + /** SSL证书的名字 */ + @SerializedName("SSLName") + private String sslName; + + /** 证书域名 */ + @SerializedName("SubjectName") + private String subjectName; + + /** 证书过期时间 时间戳 */ + @SerializedName("ExpireTime") + private Integer expireTime; + + /** 证书来源,0:用户上传 1: 免费颁发 */ + @SerializedName("SourceType") + private Integer sourceType; + + /** SSL证书(用户证书、私钥、ca证书合并)内容md5值 */ + @SerializedName("SSLMD5") + private String sslmd5; + + /** SSL证书的创建时间 时间戳 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** SSL证书绑定的对象 */ + @SerializedName("SSLBindedTargetSet") + private List sslBindedTargetSet; + + /** SSL证书内容 */ + @SerializedName("SSLContent") + private String sslContent; + + public String getSSLId() { + return sslId; + } + + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public String getSSLName() { + return sslName; + } + + public void setSSLName(String sslName) { + this.sslName = sslName; + } + + public String getSubjectName() { + return subjectName; + } + + public void setSubjectName(String subjectName) { + this.subjectName = subjectName; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public String getSSLMD5() { + return sslmd5; + } + + public void setSSLMD5(String sslmd5) { + this.sslmd5 = sslmd5; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public List getSSLBindedTargetSet() { + return sslBindedTargetSet; + } + + public void setSSLBindedTargetSet(List sslBindedTargetSet) { + this.sslBindedTargetSet = sslBindedTargetSet; + } + + public String getSSLContent() { + return sslContent; + } + + public void setSSLContent(String sslContent) { + this.sslContent = sslContent; + } + } + + public static class SSLBindedTargetSet extends Response { + + /** SSL证书绑定到的实例ID */ + @SerializedName("ResourceId") + private String resourceId; + + /** SSL证书绑定到的实例名称 */ + @SerializedName("ResourceName") + private String resourceName; + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3AreaRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3AreaRequest.java new file mode 100644 index 00000000..c7ec5da4 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3AreaRequest.java @@ -0,0 +1,56 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeUGA3AreaRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @UCloudParam("ProjectId") + private String projectId; + + /** IP集合,非必填。如果填IP或者域名,会推荐一个地域在返回列表的第一个,源站IP集合,以逗号分隔[127.0.0.1,127.0.0.2] */ + @UCloudParam("IPList") + private String ipList; + + /** 域名,非必填。如果填IP或者域名,会推荐一个地域在返回列表的第一个 */ + @UCloudParam("Domain") + private String domain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getIPList() { + return ipList; + } + + public void setIPList(String ipList) { + this.ipList = ipList; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3AreaResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3AreaResponse.java new file mode 100644 index 00000000..3f0999e6 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3AreaResponse.java @@ -0,0 +1,113 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class DescribeUGA3AreaResponse extends Response { + + /** + * 支持源站的地区,比如: AreaSet[{ "Area": "首尔", "AreaCode": "ICN", "CountryCode": "CN", "ContinentCode": + * "CN" }] + * + *

ContinentCode:["CN","NA","OT"];"CN":表示国内,"NA":表示美洲,“OT":表示欧洲等其他地区 + */ + @SerializedName("AreaSet") + private List areaSet; + + public List getAreaSet() { + return areaSet; + } + + public void setAreaSet(List areaSet) { + this.areaSet = areaSet; + } + + public static class ForwardArea extends Response { + + /** 源站区域代码 */ + @SerializedName("AreaCode") + private String areaCode; + + /** 源站区域中文 */ + @SerializedName("Area") + private String area; + + /** 国家代码 */ + @SerializedName("CountryCode") + private String countryCode; + + /** 国旗unicode */ + @SerializedName("FlagUnicode") + private String flagUnicode; + + /** 国旗 emoji */ + @SerializedName("FlagEmoji") + private String flagEmoji; + + /** 大陆代码 */ + @SerializedName("ContinentCode") + private String continentCode; + + public String getAreaCode() { + return areaCode; + } + + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getCountryCode() { + return countryCode; + } + + public void setCountryCode(String countryCode) { + this.countryCode = countryCode; + } + + public String getFlagUnicode() { + return flagUnicode; + } + + public void setFlagUnicode(String flagUnicode) { + this.flagUnicode = flagUnicode; + } + + public String getFlagEmoji() { + return flagEmoji; + } + + public void setFlagEmoji(String flagEmoji) { + this.flagEmoji = flagEmoji; + } + + public String getContinentCode() { + return continentCode; + } + + public void setContinentCode(String continentCode) { + this.continentCode = continentCode; + } + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3InstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3InstanceRequest.java new file mode 100644 index 00000000..8578d203 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3InstanceRequest.java @@ -0,0 +1,70 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeUGA3InstanceRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID,如果传了实例ID 则返回匹配实例ID的记录;如果没传则返回 ProjectId 下全部实例且符合分页要求 */ + @UCloudParam("InstanceId") + private String instanceId; + + /** 返回的最大条数,默认为100,最大值400 */ + @UCloudParam("Limit") + private Integer limit; + + /** 偏移量,默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3InstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3InstanceResponse.java new file mode 100644 index 00000000..82404e95 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3InstanceResponse.java @@ -0,0 +1,398 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class DescribeUGA3InstanceResponse extends Response { + + /** 全球加速实例信息列表 */ + @SerializedName("ForwardInstanceInfos") + private List forwardInstanceInfos; + + /** 符合条件的总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + public List getForwardInstanceInfos() { + return forwardInstanceInfos; + } + + public void setForwardInstanceInfos(List forwardInstanceInfos) { + this.forwardInstanceInfos = forwardInstanceInfos; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public static class OutPublicIpInfo extends Response { + + /** 线路回源节点EIP */ + @SerializedName("IP") + private String ip; + + /** 线路回源节点机房代号 */ + @SerializedName("Area") + private String area; + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + } + + public static class SrcAreaInfo extends Response { + + /** AreaCode ,城市机场代码 */ + @SerializedName("AreaCode") + private String areaCode; + + /** AreaCode对应城市名 */ + @SerializedName("Area") + private String area; + + /** 国旗Emoji */ + @SerializedName("FlagEmoji") + private String flagEmoji; + + /** 国旗Unicode */ + @SerializedName("FlagUnicode") + private String flagUnicode; + + public String getAreaCode() { + return areaCode; + } + + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getFlagEmoji() { + return flagEmoji; + } + + public void setFlagEmoji(String flagEmoji) { + this.flagEmoji = flagEmoji; + } + + public String getFlagUnicode() { + return flagUnicode; + } + + public void setFlagUnicode(String flagUnicode) { + this.flagUnicode = flagUnicode; + } + } + + public static class ForwardInfo extends Response { + + /** 加速配置ID */ + @SerializedName("InstanceId") + private String instanceId; + + /** 加速域名 */ + @SerializedName("CName") + private String cName; + + /** 加速实例名称 */ + @SerializedName("Name") + private String name; + + /** 加速大区代码 */ + @SerializedName("AccelerationArea") + private String accelerationArea; + + /** 加速大区名称 */ + @SerializedName("AccelerationAreaName") + private String accelerationAreaName; + + /** 加速节点列表 */ + @SerializedName("AccelerationAreaInfos") + private List accelerationAreaInfos; + + /** 回源出口IP地址 */ + @SerializedName("EgressIpList") + private List egressIpList; + + /** 购买的带宽值 */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + /** 源站中文名 */ + @SerializedName("OriginArea") + private String originArea; + + /** 源站AreaCode */ + @SerializedName("OriginAreaCode") + private String originAreaCode; + + /** 资源创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 资源过期时间 */ + @SerializedName("ExpireTime") + private Integer expireTime; + + /** 计费方式 */ + @SerializedName("ChargeType") + private String chargeType; + + /** 备注 */ + @SerializedName("Remark") + private String remark; + + /** 端口列表 */ + @SerializedName("PortSets") + private List portSets; + + /** 源站IP列表,多个值由半角英文逗号相隔 */ + @SerializedName("IPList") + private List ipList; + + /** 源站域名 */ + @SerializedName("Domain") + private String domain; + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getCName() { + return cName; + } + + public void setCName(String cName) { + this.cName = cName; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getAccelerationArea() { + return accelerationArea; + } + + public void setAccelerationArea(String accelerationArea) { + this.accelerationArea = accelerationArea; + } + + public String getAccelerationAreaName() { + return accelerationAreaName; + } + + public void setAccelerationAreaName(String accelerationAreaName) { + this.accelerationAreaName = accelerationAreaName; + } + + public List getAccelerationAreaInfos() { + return accelerationAreaInfos; + } + + public void setAccelerationAreaInfos(List accelerationAreaInfos) { + this.accelerationAreaInfos = accelerationAreaInfos; + } + + public List getEgressIpList() { + return egressIpList; + } + + public void setEgressIpList(List egressIpList) { + this.egressIpList = egressIpList; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getOriginArea() { + return originArea; + } + + public void setOriginArea(String originArea) { + this.originArea = originArea; + } + + public String getOriginAreaCode() { + return originAreaCode; + } + + public void setOriginAreaCode(String originAreaCode) { + this.originAreaCode = originAreaCode; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public List getPortSets() { + return portSets; + } + + public void setPortSets(List portSets) { + this.portSets = portSets; + } + + public List getIPList() { + return ipList; + } + + public void setIPList(List ipList) { + this.ipList = ipList; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + } + + public static class ForwardTask extends Response { + + /** + * 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS","WSWS","WSSWS","WSSWSS"]。TCP和UDP代表四层转发,其余为七层转发。 + */ + @SerializedName("Protocol") + private String protocol; + + /** 源站服务器监听的端口号 */ + @SerializedName("RSPort") + private Integer rsPort; + + /** 加速端口 */ + @SerializedName("Port") + private Integer port; + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public Integer getRSPort() { + return rsPort; + } + + public void setRSPort(Integer rsPort) { + this.rsPort = rsPort; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + } + + public static class AccelerationAreaInfos extends Response { + + /** 加速区code */ + @SerializedName("AccelerationArea") + private String accelerationArea; + + /** 加速节点信息 */ + @SerializedName("AccelerationNodes") + private List accelerationNodes; + + public String getAccelerationArea() { + return accelerationArea; + } + + public void setAccelerationArea(String accelerationArea) { + this.accelerationArea = accelerationArea; + } + + public List getAccelerationNodes() { + return accelerationNodes; + } + + public void setAccelerationNodes(List accelerationNodes) { + this.accelerationNodes = accelerationNodes; + } + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3OptimizationRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3OptimizationRequest.java new file mode 100644 index 00000000..f81bfc6f --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3OptimizationRequest.java @@ -0,0 +1,73 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeUGA3OptimizationRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 源站AreaCode */ + @NotEmpty + @UCloudParam("AreaCode") + private String areaCode; + + /** 默认一天 ,枚举类型["Hour","Day","Week"] */ + @UCloudParam("TimeRange") + private String timeRange; + + /** + * 加速大区,默认Global,[ "Global":"全球", "AP":"亚太", "EU":"欧洲", "ME":"中东", "OA":"大洋洲", "AF":"非洲", + * "NA":"北美洲", "SA":"南美洲" ] + */ + @UCloudParam("AccelerationArea") + private String accelerationArea; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getAreaCode() { + return areaCode; + } + + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } + + public String getTimeRange() { + return timeRange; + } + + public void setTimeRange(String timeRange) { + this.timeRange = timeRange; + } + + public String getAccelerationArea() { + return accelerationArea; + } + + public void setAccelerationArea(String accelerationArea) { + this.accelerationArea = accelerationArea; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3OptimizationResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3OptimizationResponse.java new file mode 100644 index 00000000..b22d2790 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGA3OptimizationResponse.java @@ -0,0 +1,207 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class DescribeUGA3OptimizationResponse extends Response { + + /** 加速详情 */ + @SerializedName("AccelerationInfos") + private List accelerationInfos; + + public List getAccelerationInfos() { + return accelerationInfos; + } + + public void setAccelerationInfos(List accelerationInfos) { + this.accelerationInfos = accelerationInfos; + } + + public static class AccelerationInfo extends Response { + + /** 加速大区代码 */ + @SerializedName("AccelerationArea") + private String accelerationArea; + + /** 加速大区名称 */ + @SerializedName("AccelerationName") + private String accelerationName; + + /** 加速提升情况 */ + @SerializedName("NodeInfo") + private List nodeInfo; + + public String getAccelerationArea() { + return accelerationArea; + } + + public void setAccelerationArea(String accelerationArea) { + this.accelerationArea = accelerationArea; + } + + public String getAccelerationName() { + return accelerationName; + } + + public void setAccelerationName(String accelerationName) { + this.accelerationName = accelerationName; + } + + public List getNodeInfo() { + return nodeInfo; + } + + public void setNodeInfo(List nodeInfo) { + this.nodeInfo = nodeInfo; + } + } + + public static class NodeDelays extends Response { + + /** 加速区域 */ + @SerializedName("Area") + private String area; + + /** 加速区域Code */ + @SerializedName("AreaCode") + private String areaCode; + + /** 国家代码 */ + @SerializedName("CountryCode") + private String countryCode; + + /** 国旗Code */ + @SerializedName("FlagUnicode") + private String flagUnicode; + + /** 国旗Emoji */ + @SerializedName("FlagEmoji") + private String flagEmoji; + + /** 加速延迟 */ + @SerializedName("Latency") + private Double latency; + + /** 公网延迟 */ + @SerializedName("LatencyInternet") + private Double latencyInternet; + + /** 加速提升比例 */ + @SerializedName("LatencyOptimization") + private Double latencyOptimization; + + /** 加速后丢包率 */ + @SerializedName("Loss") + private Double loss; + + /** 原始丢包率 */ + @SerializedName("LossInternet") + private Double lossInternet; + + /** 丢包下降比例 */ + @SerializedName("LossOptimization") + private Double lossOptimization; + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public String getAreaCode() { + return areaCode; + } + + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } + + public String getCountryCode() { + return countryCode; + } + + public void setCountryCode(String countryCode) { + this.countryCode = countryCode; + } + + public String getFlagUnicode() { + return flagUnicode; + } + + public void setFlagUnicode(String flagUnicode) { + this.flagUnicode = flagUnicode; + } + + public String getFlagEmoji() { + return flagEmoji; + } + + public void setFlagEmoji(String flagEmoji) { + this.flagEmoji = flagEmoji; + } + + public Double getLatency() { + return latency; + } + + public void setLatency(Double latency) { + this.latency = latency; + } + + public Double getLatencyInternet() { + return latencyInternet; + } + + public void setLatencyInternet(Double latencyInternet) { + this.latencyInternet = latencyInternet; + } + + public Double getLatencyOptimization() { + return latencyOptimization; + } + + public void setLatencyOptimization(Double latencyOptimization) { + this.latencyOptimization = latencyOptimization; + } + + public Double getLoss() { + return loss; + } + + public void setLoss(Double loss) { + this.loss = loss; + } + + public Double getLossInternet() { + return lossInternet; + } + + public void setLossInternet(Double lossInternet) { + this.lossInternet = lossInternet; + } + + public Double getLossOptimization() { + return lossOptimization; + } + + public void setLossOptimization(Double lossOptimization) { + this.lossOptimization = lossOptimization; + } + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceRequest.java new file mode 100644 index 00000000..d27e5ee3 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceRequest.java @@ -0,0 +1,70 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeUGAInstanceRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID,如果传了实例ID 则返回匹配实例ID的记录;如果没传则返回 ProjectId 下全部实例且符合分页要求 */ + @UCloudParam("UGAId") + private String ugaId; + + /** 返回的最大条数,默认为100,最大值400 */ + @UCloudParam("Limit") + private Integer limit; + + /** 偏移量,默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUGAId() { + return ugaId; + } + + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceResponse.java new file mode 100644 index 00000000..87a7815c --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUGAInstanceResponse.java @@ -0,0 +1,435 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class DescribeUGAInstanceResponse extends Response { + + /** 全球加速实例信息列表 */ + @SerializedName("UGAList") + private List ugaList; + + /** 符合条件的总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + public List getUGAList() { + return ugaList; + } + + public void setUGAList(List ugaList) { + this.ugaList = ugaList; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public static class UGAL4Forwarder extends Response { + + /** 接入端口 */ + @SerializedName("Port") + private Integer port; + + /** 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 */ + @SerializedName("Protocol") + private String protocol; + + /** RSPort,源站监听端口 */ + @SerializedName("RSPort") + private Integer rsPort; + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public Integer getRSPort() { + return rsPort; + } + + public void setRSPort(Integer rsPort) { + this.rsPort = rsPort; + } + } + + public static class UGAATask extends Response { + + /** 接入端口 */ + @SerializedName("Port") + private Integer port; + + /** 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 */ + @SerializedName("Protocol") + private String protocol; + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + } + + public static class UPathSet extends Response { + + /** UPath名字 */ + @SerializedName("UPathName") + private String uPathName; + + /** UPath 实例ID */ + @SerializedName("UPathId") + private String uPathId; + + /** 带宽 Mbps, 1~800Mbps */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + /** 线路ID */ + @SerializedName("LineId") + private String lineId; + + /** 线路起点中文名字,加速区域 */ + @SerializedName("LineFromName") + private String lineFromName; + + /** 线路对端中文名字,源站区域 */ + @SerializedName("LineToName") + private String lineToName; + + /** 线路起点英文代号,加速区域 */ + @SerializedName("LineFrom") + private String lineFrom; + + /** 线路对端英文代号,源站区域 */ + @SerializedName("LineTo") + private String lineTo; + + public String getUPathName() { + return uPathName; + } + + public void setUPathName(String uPathName) { + this.uPathName = uPathName; + } + + public String getUPathId() { + return uPathId; + } + + public void setUPathId(String uPathId) { + this.uPathId = uPathId; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getLineId() { + return lineId; + } + + public void setLineId(String lineId) { + this.lineId = lineId; + } + + public String getLineFromName() { + return lineFromName; + } + + public void setLineFromName(String lineFromName) { + this.lineFromName = lineFromName; + } + + public String getLineToName() { + return lineToName; + } + + public void setLineToName(String lineToName) { + this.lineToName = lineToName; + } + + public String getLineFrom() { + return lineFrom; + } + + public void setLineFrom(String lineFrom) { + this.lineFrom = lineFrom; + } + + public String getLineTo() { + return lineTo; + } + + public void setLineTo(String lineTo) { + this.lineTo = lineTo; + } + } + + public static class OutPublicIpInfo extends Response { + + /** 线路回源节点EIP */ + @SerializedName("IP") + private String ip; + + /** 线路回源节点机房代号 */ + @SerializedName("Area") + private String area; + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + } + + public static class UGAAInfo extends Response { + + /** 加速配置实例ID */ + @SerializedName("UGAId") + private String ugaId; + + /** 加速域名,请在加速区域配置您的业务域名的CName记录值为加速域名 */ + @SerializedName("CName") + private String cName; + + /** 加速配置名称 */ + @SerializedName("UGAName") + private String ugaName; + + /** 源站IP列表,多个值由半角英文逗号相隔 */ + @SerializedName("IPList") + private List ipList; + + /** 源站域名 */ + @SerializedName("Domain") + private String domain; + + /** 源站所在区域,加速实例在绑定线路后会自动设置该值。console页面上通过该值过滤加速实例可以绑定的upath实例。注意:缺少该值会导致在console上无法修改线路 */ + @SerializedName("Location") + private String location; + + /** 绑定的加速线路 */ + @SerializedName("UPathSet") + private List uPathSet; + + /** 端口配置信息(不再维护,建议使用ForwarderSet) */ + @SerializedName("TaskSet") + private List taskSet; + + /** UGA 4层转发器配置,记录接入或回源端口,接入或回源协议信息 */ + @SerializedName("L4ForwarderSet") + private List l4ForwarderSet; + + /** UGA 7层转发器配置,记录接入或回源端口,接入或回源协议信息 如绑定证书会返回证书ID */ + @SerializedName("L7ForwarderSet") + private List l7ForwarderSet; + + /** 线路出口IP地址 */ + @SerializedName("OutPublicIpList") + private List outPublicIpList; + + public String getUGAId() { + return ugaId; + } + + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } + + public String getCName() { + return cName; + } + + public void setCName(String cName) { + this.cName = cName; + } + + public String getUGAName() { + return ugaName; + } + + public void setUGAName(String ugaName) { + this.ugaName = ugaName; + } + + public List getIPList() { + return ipList; + } + + public void setIPList(List ipList) { + this.ipList = ipList; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public String getLocation() { + return location; + } + + public void setLocation(String location) { + this.location = location; + } + + public List getUPathSet() { + return uPathSet; + } + + public void setUPathSet(List uPathSet) { + this.uPathSet = uPathSet; + } + + public List getTaskSet() { + return taskSet; + } + + public void setTaskSet(List taskSet) { + this.taskSet = taskSet; + } + + public List getL4ForwarderSet() { + return l4ForwarderSet; + } + + public void setL4ForwarderSet(List l4ForwarderSet) { + this.l4ForwarderSet = l4ForwarderSet; + } + + public List getL7ForwarderSet() { + return l7ForwarderSet; + } + + public void setL7ForwarderSet(List l7ForwarderSet) { + this.l7ForwarderSet = l7ForwarderSet; + } + + public List getOutPublicIpList() { + return outPublicIpList; + } + + public void setOutPublicIpList(List outPublicIpList) { + this.outPublicIpList = outPublicIpList; + } + } + + public static class UGAL7Forwarder extends Response { + + /** 接入端口 */ + @SerializedName("Port") + private Integer port; + + /** 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发 */ + @SerializedName("Protocol") + private String protocol; + + /** RSPort,源站监听端口 */ + @SerializedName("RSPort") + private Integer rsPort; + + /** 证书ID */ + @SerializedName("SSLId") + private String sslId; + + /** 证书名称 */ + @SerializedName("SSLName") + private String sslName; + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public Integer getRSPort() { + return rsPort; + } + + public void setRSPort(Integer rsPort) { + this.rsPort = rsPort; + } + + public String getSSLId() { + return sslId; + } + + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public String getSSLName() { + return sslName; + } + + public void setSSLName(String sslName) { + this.sslName = sslName; + } + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathRequest.java new file mode 100644 index 00000000..cbad791c --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathRequest.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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeUPathRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 如果不填参数 返回 ProjectId 下所有的线路资源,填此参数则返回upath实例ID匹配的线路 */ + @UCloudParam("UPathId") + private String uPathId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUPathId() { + return uPathId; + } + + public void setUPathId(String uPathId) { + this.uPathId = uPathId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathResponse.java new file mode 100644 index 00000000..5d8ae6ef --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathResponse.java @@ -0,0 +1,246 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class DescribeUPathResponse extends Response { + + /** 线路信息数组 */ + @SerializedName("UPathSet") + private List uPathSet; + + public List getUPathSet() { + return uPathSet; + } + + public void setUPathSet(List uPathSet) { + this.uPathSet = uPathSet; + } + + public static class UPathInfo extends Response { + + /** 是否为后付费实例 */ + @SerializedName("PostPaid") + private Boolean postPaid; + + /** 计费模式,默认为Month 按月收费,可选范围['Month','Year','Dynamic'] */ + @SerializedName("ChargeType") + private String chargeType; + + /** UPath实例名字 */ + @SerializedName("Name") + private String name; + + /** UPath加速线路实例ID */ + @SerializedName("UPathId") + private String uPathId; + + /** 带宽,单位Mbps */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + /** 选择的线路 */ + @SerializedName("LineId") + private String lineId; + + /** 与该UPath绑定的UGA列表 */ + @SerializedName("UGAList") + private List ugaList; + + /** UPath创建的时间,10位时间戳 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** UPath的过期时间,10位时间戳 */ + @SerializedName("ExpireTime") + private Integer expireTime; + + /** 线路入口名称 */ + @SerializedName("LineFromName") + private String lineFromName; + + /** 线路出口名称 */ + @SerializedName("LineToName") + private String lineToName; + + /** 线路出口IP数组 */ + @SerializedName("OutPublicIpList") + private List outPublicIpList; + + public Boolean getPostPaid() { + return postPaid; + } + + public void setPostPaid(Boolean postPaid) { + this.postPaid = postPaid; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getUPathId() { + return uPathId; + } + + public void setUPathId(String uPathId) { + this.uPathId = uPathId; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getLineId() { + return lineId; + } + + public void setLineId(String lineId) { + this.lineId = lineId; + } + + public List getUGAList() { + return ugaList; + } + + public void setUGAList(List ugaList) { + this.ugaList = ugaList; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public String getLineFromName() { + return lineFromName; + } + + public void setLineFromName(String lineFromName) { + this.lineFromName = lineFromName; + } + + public String getLineToName() { + return lineToName; + } + + public void setLineToName(String lineToName) { + this.lineToName = lineToName; + } + + public List getOutPublicIpList() { + return outPublicIpList; + } + + public void setOutPublicIpList(List outPublicIpList) { + this.outPublicIpList = outPublicIpList; + } + } + + public static class OutPublicIpInfo extends Response { + + /** 线路回源节点EIP */ + @SerializedName("IP") + private String ip; + + /** 线路回源节点机房代号 */ + @SerializedName("Area") + private String area; + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + } + + public static class PathXUGAInfo extends Response { + + /** 加速配置ID */ + @SerializedName("UGAId") + private String ugaId; + + /** 源站IP列表,多个值由半角英文逗号相隔 */ + @SerializedName("IPList") + private List ipList; + + /** 源站域名 */ + @SerializedName("Domain") + private String domain; + + public String getUGAId() { + return ugaId; + } + + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } + + public List getIPList() { + return ipList; + } + + public void setIPList(List ipList) { + this.ipList = ipList; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateRequest.java new file mode 100644 index 00000000..3e3ea863 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateRequest.java @@ -0,0 +1,47 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeUPathTemplateRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速线路实例ID,格式 upath-xxxx */ + @NotEmpty + @UCloudParam("UPathId") + private String uPathId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUPathId() { + return uPathId; + } + + public void setUPathId(String uPathId) { + this.uPathId = uPathId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateResponse.java new file mode 100644 index 00000000..204fcfe3 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/DescribeUPathTemplateResponse.java @@ -0,0 +1,147 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class DescribeUPathTemplateResponse extends Response { + + /** 监控模板详情 */ + @SerializedName("DataSet") + private List dataSet; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class AlarmRuler extends Response { + + /** 收敛策略,可选范围 ['Exponential','Continuous','Once'],分别对应指数递增、连续告警、单次告警 */ + @SerializedName("AlarmStrategy") + private String alarmStrategy; + + /** 告警探测周期,单位秒 */ + @SerializedName("AlarmFrequency") + private Integer alarmFrequency; + + /** 比较策略,可选 ['GE','LE'] 分别代表不小于和不大于 */ + @SerializedName("Compare") + private String compare; + + /** 联系组ID */ + @SerializedName("ContactGroupId") + private Integer contactGroupId; + + /** + * 告警指标名称, + * 所有n的个数必须一致。目前仅允许以下四项:UpathNetworkOut:出向带宽,UpathNetworkIn:入向带宽,UpathNetworkOutUsage:出向带宽使用率,UpathNetworkInUsage:入向带宽使用率 + */ + @SerializedName("MetricName") + private String metricName; + + /** 告警阈值,带宽使用率的阈值范围是[50,100]的正整数,带宽告警阈值为1000000的倍数, 如大于2Mbps则告警 阈值应该传 2000000 */ + @SerializedName("Threshold") + private Integer threshold; + + /** 告警触发周期(次数) */ + @SerializedName("TriggerCount") + private Integer triggerCount; + + /** 告警模板策略ID */ + @SerializedName("AlarmTemplateRuleId") + private Integer alarmTemplateRuleId; + + /** 资源类型 */ + @SerializedName("ResourceType") + private String resourceType; + + public String getAlarmStrategy() { + return alarmStrategy; + } + + public void setAlarmStrategy(String alarmStrategy) { + this.alarmStrategy = alarmStrategy; + } + + public Integer getAlarmFrequency() { + return alarmFrequency; + } + + public void setAlarmFrequency(Integer alarmFrequency) { + this.alarmFrequency = alarmFrequency; + } + + public String getCompare() { + return compare; + } + + public void setCompare(String compare) { + this.compare = compare; + } + + public Integer getContactGroupId() { + return contactGroupId; + } + + public void setContactGroupId(Integer contactGroupId) { + this.contactGroupId = contactGroupId; + } + + public String getMetricName() { + return metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public Integer getThreshold() { + return threshold; + } + + public void setThreshold(Integer threshold) { + this.threshold = threshold; + } + + public Integer getTriggerCount() { + return triggerCount; + } + + public void setTriggerCount(Integer triggerCount) { + this.triggerCount = triggerCount; + } + + public Integer getAlarmTemplateRuleId() { + return alarmTemplateRuleId; + } + + public void setAlarmTemplateRuleId(Integer alarmTemplateRuleId) { + this.alarmTemplateRuleId = alarmTemplateRuleId; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceRequest.java new file mode 100644 index 00000000..82638522 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceRequest.java @@ -0,0 +1,70 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetGlobalSSHPriceRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 购买周期,如果ChargeType为Month,Quantity默认为0;其他情况必须为大于0的整数 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** 计费类型:Dynamic,Month,Year */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 版本类型。枚举值,Enterprise:企业版;Basic:基础版。可不填,默认为Basic。 */ + @UCloudParam("InstanceType") + private String instanceType; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceResponse.java new file mode 100644 index 00000000..bb3cc38f --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHPriceResponse.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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class GetGlobalSSHPriceResponse extends Response { + + /** 价格,返回单位为元 */ + @SerializedName("Price") + private Double price; + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceRequest.java new file mode 100644 index 00000000..3cd025da --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceRequest.java @@ -0,0 +1,83 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetGlobalSSHUpdatePriceRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 升级后的实例类型。枚举值,Enterprise:企业版;Basic:基础版。 */ + @NotEmpty + @UCloudParam("InstanceType") + private String instanceType; + + /** 实例ID,唯一资源标识。从免费版升级到付费版可不填,其他情况必填。 */ + @UCloudParam("InstanceId") + private String instanceId; + + /** 购买周期,如果ChargeType为Month,Quantity可以不填默认为0;其他情况必须为正整数。 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** 计费类型:Dynamic,Month,Year。从免费版升级到付费版必须传,其他情况不需要传 */ + @UCloudParam("ChargeType") + private String chargeType; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceResponse.java new file mode 100644 index 00000000..b4d4e1e9 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetGlobalSSHUpdatePriceResponse.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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class GetGlobalSSHUpdatePriceResponse extends Response { + + /** 价格,返回单位为元。正数表示付费升级,负数表示降级退费。 */ + @SerializedName("Price") + private Double price; + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricRequest.java new file mode 100644 index 00000000..dd6b57f3 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricRequest.java @@ -0,0 +1,115 @@ +/** + * 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.pathx.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 GetPathXMetricRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** ResourceId,如upath ID 和 uga ID */ + @NotEmpty + @UCloudParam("ResourceId") + private String resourceId; + + /** 查询起始时间,10位长度时间戳 */ + @NotEmpty + @UCloudParam("BeginTime") + private Integer beginTime; + + /** 查询结束时间,10位长度时间戳 */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + /** + * 查询监控的指标项。目前仅允许以下四项:NetworkOut:出向带宽,NetworkIn:入向带宽,NetworkOutUsage:出向带宽使用率,NetworkInUsage:入向带宽使用率 + */ + @NotEmpty + @UCloudParam("MetricName") + private List metricName; + + /** upath:加速线路,uga:加速实例 */ + @NotEmpty + @UCloudParam("ResourceType") + private String resourceType; + + /** 具体线路id,调用DescribePathXLineConfig接口获取线路列表 */ + @NotEmpty + @UCloudParam("LineId") + private String lineId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public Integer getBeginTime() { + return beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public List getMetricName() { + return metricName; + } + + public void setMetricName(List metricName) { + this.metricName = metricName; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getLineId() { + return lineId; + } + + public void setLineId(String lineId) { + this.lineId = lineId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricResponse.java new file mode 100644 index 00000000..3752db53 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetPathXMetricResponse.java @@ -0,0 +1,111 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class GetPathXMetricResponse extends Response { + + /** 监控数据结果集 */ + @SerializedName("DataSet") + private MetricPeriod dataSet; + + public MetricPeriod getDataSet() { + return dataSet; + } + + public void setDataSet(MetricPeriod dataSet) { + this.dataSet = dataSet; + } + + public static class MetricPeriod extends Response { + + /** 出向带宽 */ + @SerializedName("NetworkOut") + private List networkOut; + + /** 入向带宽 */ + @SerializedName("NetworkIn") + private List networkIn; + + /** 出向带宽使用率 */ + @SerializedName("NetworkOutUsage") + private List networkOutUsage; + + /** 入向带宽使用率 */ + @SerializedName("NetworkInUsage") + private List networkInUsage; + + public List getNetworkOut() { + return networkOut; + } + + public void setNetworkOut(List networkOut) { + this.networkOut = networkOut; + } + + public List getNetworkIn() { + return networkIn; + } + + public void setNetworkIn(List networkIn) { + this.networkIn = networkIn; + } + + public List getNetworkOutUsage() { + return networkOutUsage; + } + + public void setNetworkOutUsage(List networkOutUsage) { + this.networkOutUsage = networkOutUsage; + } + + public List getNetworkInUsage() { + return networkInUsage; + } + + public void setNetworkInUsage(List networkInUsage) { + this.networkInUsage = networkInUsage; + } + } + + public static class MatricPoint extends Response { + + /** 时间戳 */ + @SerializedName("Timestamp") + private Integer timestamp; + + /** 监控点数值 */ + @SerializedName("Value") + private Integer value; + + public Integer getTimestamp() { + return timestamp; + } + + public void setTimestamp(Integer timestamp) { + this.timestamp = timestamp; + } + + public Integer getValue() { + return value; + } + + public void setValue(Integer value) { + this.value = value; + } + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3MetricRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3MetricRequest.java new file mode 100644 index 00000000..79cb961a --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3MetricRequest.java @@ -0,0 +1,114 @@ +/** + * 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.pathx.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 GetUGA3MetricRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 资源ID */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + /** 查询起始时间,10位长度时间戳 */ + @NotEmpty + @UCloudParam("BeginTime") + private Integer beginTime; + + /** 查询结束时间,10位长度时间戳 */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + /** + * 查询监控的指标项。可不传 NetworkOut:出口总带宽 NetworkIn:入口总带宽 NetworkOutUsage:出口带宽使用率 NetworkInUsage:入口总带宽使用率 + * NetworkOutSubline :子线路出口带宽 NetworkInSubline:子线路入口带宽 Delay:线路平均延迟 DelaySubline:子线路延迟 + * ConnectCount:当前连接数 ConnectCountSubline:子线路当前连接数 DelayPromote:延迟提升 DelayPromoteSubline:子线路延迟提升 + */ + @UCloudParam("MetricName") + private List metricName; + + /** 是否为子线路。为了简化查询,true 会返回所有子线路监控项可以,false:返回所有汇总的监控数据 */ + @UCloudParam("IsSubline") + private Boolean isSubline; + + /** 子线路AreaCode ,子线路的时候传,不是子线路可以不传 */ + @UCloudParam("AreaCode") + private String areaCode; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public Integer getBeginTime() { + return beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public List getMetricName() { + return metricName; + } + + public void setMetricName(List metricName) { + this.metricName = metricName; + } + + public Boolean getIsSubline() { + return isSubline; + } + + public void setIsSubline(Boolean isSubline) { + this.isSubline = isSubline; + } + + public String getAreaCode() { + return areaCode; + } + + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3MetricResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3MetricResponse.java new file mode 100644 index 00000000..23d988b7 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3MetricResponse.java @@ -0,0 +1,207 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class GetUGA3MetricResponse extends Response { + + /** 监控数据结果集 */ + @SerializedName("DataSet") + private UGA3Metric dataSet; + + public UGA3Metric getDataSet() { + return dataSet; + } + + public void setDataSet(UGA3Metric dataSet) { + this.dataSet = dataSet; + } + + public static class MatricPoint extends Response { + + /** 时间戳 */ + @SerializedName("Timestamp") + private Integer timestamp; + + /** 监控点数值 */ + @SerializedName("Value") + private Integer value; + + public Integer getTimestamp() { + return timestamp; + } + + public void setTimestamp(Integer timestamp) { + this.timestamp = timestamp; + } + + public Integer getValue() { + return value; + } + + public void setValue(Integer value) { + this.value = value; + } + } + + public static class UGA3Metric extends Response { + + /** 出向带宽 */ + @SerializedName("NetworkOut") + private List networkOut; + + /** 入向带宽 */ + @SerializedName("NetworkIn") + private List networkIn; + + /** 出向带宽使用率 */ + @SerializedName("NetworkOutUsage") + private List networkOutUsage; + + /** 入向带宽使用率 */ + @SerializedName("NetworkInUsage") + private List networkInUsage; + + /** 子线路出口带宽 */ + @SerializedName("NetworkOutSubline") + private List networkOutSubline; + + /** 子线路入口带宽 */ + @SerializedName("NetworkInSubline") + private List networkInSubline; + + /** 线路平均延迟 */ + @SerializedName("Delay") + private List delay; + + /** 子线路延迟 */ + @SerializedName("DelaySubline") + private List delaySubline; + + /** 延迟提升 */ + @SerializedName("DelayPromote") + private List delayPromote; + + /** 子线路延迟提升 */ + @SerializedName("DelayPromoteSubline") + private List delayPromoteSubline; + + /** 当前连接数 */ + @SerializedName("ConnectCount") + private List connectCount; + + /** 子线路当前连接数 */ + @SerializedName("ConnectCountSubline") + private List connectCountSubline; + + public List getNetworkOut() { + return networkOut; + } + + public void setNetworkOut(List networkOut) { + this.networkOut = networkOut; + } + + public List getNetworkIn() { + return networkIn; + } + + public void setNetworkIn(List networkIn) { + this.networkIn = networkIn; + } + + public List getNetworkOutUsage() { + return networkOutUsage; + } + + public void setNetworkOutUsage(List networkOutUsage) { + this.networkOutUsage = networkOutUsage; + } + + public List getNetworkInUsage() { + return networkInUsage; + } + + public void setNetworkInUsage(List networkInUsage) { + this.networkInUsage = networkInUsage; + } + + public List getNetworkOutSubline() { + return networkOutSubline; + } + + public void setNetworkOutSubline(List networkOutSubline) { + this.networkOutSubline = networkOutSubline; + } + + public List getNetworkInSubline() { + return networkInSubline; + } + + public void setNetworkInSubline(List networkInSubline) { + this.networkInSubline = networkInSubline; + } + + public List getDelay() { + return delay; + } + + public void setDelay(List delay) { + this.delay = delay; + } + + public List getDelaySubline() { + return delaySubline; + } + + public void setDelaySubline(List delaySubline) { + this.delaySubline = delaySubline; + } + + public List getDelayPromote() { + return delayPromote; + } + + public void setDelayPromote(List delayPromote) { + this.delayPromote = delayPromote; + } + + public List getDelayPromoteSubline() { + return delayPromoteSubline; + } + + public void setDelayPromoteSubline(List delayPromoteSubline) { + this.delayPromoteSubline = delayPromoteSubline; + } + + public List getConnectCount() { + return connectCount; + } + + public void setConnectCount(List connectCount) { + this.connectCount = connectCount; + } + + public List getConnectCountSubline() { + return connectCountSubline; + } + + public void setConnectCountSubline(List connectCountSubline) { + this.connectCountSubline = connectCountSubline; + } + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3PriceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3PriceRequest.java new file mode 100644 index 00000000..67ff35fa --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3PriceRequest.java @@ -0,0 +1,96 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUGA3PriceRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 共享带宽大小 */ + @NotEmpty + @UCloudParam("Bandwidth") + private Integer bandwidth; + + /** 源站区域 */ + @NotEmpty + @UCloudParam("AreaCode") + private String areaCode; + + /** 购买时间数量,当ChargeType为Month时 Quantity默认为0,代表购买至月底。按年按小时必须为大于0 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** 计费方式,默认按月支付。Month: 按月; Year: 按年; Dynamic: 按小时收 */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 加速大区,默认返回所有加速大区价格 */ + @UCloudParam("AccelerationArea") + private String accelerationArea; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getAreaCode() { + return areaCode; + } + + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getAccelerationArea() { + return accelerationArea; + } + + public void setAccelerationArea(String accelerationArea) { + this.accelerationArea = accelerationArea; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3PriceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3PriceResponse.java new file mode 100644 index 00000000..bf1a866f --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3PriceResponse.java @@ -0,0 +1,84 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class GetUGA3PriceResponse extends Response { + + /** 加速大区对应价格 */ + @SerializedName("UGA3Price") + private List uga3Price; + + public List getUGA3Price() { + return uga3Price; + } + + public void setUGA3Price(List uga3Price) { + this.uga3Price = uga3Price; + } + + public static class UGA3Price extends Response { + + /** 加速大区代码 */ + @SerializedName("AccelerationArea") + private String accelerationArea; + + /** 加速大区名称 */ + @SerializedName("AccelerationAreaName") + private String accelerationAreaName; + + /** 转发配置价格 */ + @SerializedName("AccelerationForwarderPrice") + private Double accelerationForwarderPrice; + + /** 加速配置带宽价格 */ + @SerializedName("AccelerationBandwidthPrice") + private Double accelerationBandwidthPrice; + + public String getAccelerationArea() { + return accelerationArea; + } + + public void setAccelerationArea(String accelerationArea) { + this.accelerationArea = accelerationArea; + } + + public String getAccelerationAreaName() { + return accelerationAreaName; + } + + public void setAccelerationAreaName(String accelerationAreaName) { + this.accelerationAreaName = accelerationAreaName; + } + + public Double getAccelerationForwarderPrice() { + return accelerationForwarderPrice; + } + + public void setAccelerationForwarderPrice(Double accelerationForwarderPrice) { + this.accelerationForwarderPrice = accelerationForwarderPrice; + } + + public Double getAccelerationBandwidthPrice() { + return accelerationBandwidthPrice; + } + + public void setAccelerationBandwidthPrice(Double accelerationBandwidthPrice) { + this.accelerationBandwidthPrice = accelerationBandwidthPrice; + } + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3UpdatePriceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3UpdatePriceRequest.java new file mode 100644 index 00000000..70d86b9f --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3UpdatePriceRequest.java @@ -0,0 +1,83 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUGA3UpdatePriceRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 资源ID */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + /** 只有升级带宽的时候有价格变化 */ + @UCloudParam("Bandwidth") + private Integer bandwidth; + + /** 暂未支持,加速大区,在更换加速大区的时候使用 */ + @UCloudParam("AccelerationArea") + private String accelerationArea; + + /** 暂未支持,源站区域 */ + @UCloudParam("AreaCode") + private String areaCode; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getAccelerationArea() { + return accelerationArea; + } + + public void setAccelerationArea(String accelerationArea) { + this.accelerationArea = accelerationArea; + } + + public String getAreaCode() { + return areaCode; + } + + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3UpdatePriceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3UpdatePriceResponse.java new file mode 100644 index 00000000..b9b6e9ab --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/GetUGA3UpdatePriceResponse.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.pathx.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class GetUGA3UpdatePriceResponse extends Response { + + /** 价格 元。大于0需付费,小于0则退费。 */ + @SerializedName("Price") + private Double price; + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortRequest.java new file mode 100644 index 00000000..5b5e921f --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortRequest.java @@ -0,0 +1,60 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyGlobalSSHPortRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 实例ID,资源唯一标识。当前仅收费版GlobalSSH实例可以修改端口。 */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + /** 源站服务器监听的SSH端口号。收费版本端口范围[1,65535]且不能为80,443,65123端口。免费版不支持修改端口。 */ + @NotEmpty + @UCloudParam("Port") + private Integer port; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortResponse.java new file mode 100644 index 00000000..14ca86d4 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHPortResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class ModifyGlobalSSHPortResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkRequest.java new file mode 100644 index 00000000..7b33ba94 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkRequest.java @@ -0,0 +1,59 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyGlobalSSHRemarkRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 实例ID,资源唯一标识 */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + /** 备注信息,不填默认为空字符串 */ + @UCloudParam("Remark") + private String remark; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkResponse.java new file mode 100644 index 00000000..08e3f8ea --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHRemarkResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class ModifyGlobalSSHRemarkResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeRequest.java new file mode 100644 index 00000000..bbc4e414 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeRequest.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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyGlobalSSHTypeRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 实例ID,资源唯一标识 */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + /** + * 取值范围["Enterprise","Basic"],分别对应企业版和基础版,表示升级后的实例类型。比如从Free版本升级为Basic版或Enterprise版,不可从收费版降级为免费版,或从企业版降级为基础版 + */ + @NotEmpty + @UCloudParam("InstanceType") + private String instanceType; + + /** 支付方式,如按月、按年、按时 */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买时间,当ChargeType为Month,Quantity为0代表购买到月底 */ + @UCloudParam("Quantity") + private String quantity; + + /** 可抵扣费用的券,通常不使用 */ + @UCloudParam("CouponId") + private String couponId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getQuantity() { + return quantity; + } + + public void setQuantity(String quantity) { + this.quantity = quantity; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeResponse.java new file mode 100644 index 00000000..f6bd4a9b --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyGlobalSSHTypeResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class ModifyGlobalSSHTypeResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3BandwidthRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3BandwidthRequest.java new file mode 100644 index 00000000..826c43cb --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3BandwidthRequest.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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyUGA3BandwidthRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID,格式uga3-xxxx */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + /** 带宽大小,范围[1,100],不传则不更新 */ + @UCloudParam("Bandwidth") + private Integer bandwidth; + + /** 需要全地域可用的代金券 */ + @UCloudParam("CouponId") + private String couponId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3BandwidthResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3BandwidthResponse.java new file mode 100644 index 00000000..c1c31be0 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3BandwidthResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class ModifyUGA3BandwidthResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3InstanceRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3InstanceRequest.java new file mode 100644 index 00000000..ebeba3fc --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3InstanceRequest.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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyUGA3InstanceRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID,格式uga-xxxx。不支持GlobalSSH实例。 */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + /** 加速配置实例名称,不填或空字符串则不更新 */ + @UCloudParam("Name") + private String name; + + /** 备注信息,暂时前端为使用 */ + @UCloudParam("Remark") + private String remark; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + 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-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3InstanceResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3InstanceResponse.java new file mode 100644 index 00000000..61b54b5b --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3InstanceResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class ModifyUGA3InstanceResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3OriginInfoRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3OriginInfoRequest.java new file mode 100644 index 00000000..0ec201ab --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3OriginInfoRequest.java @@ -0,0 +1,82 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyUGA3OriginInfoRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID,格式uga3-xxxx。 */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + /** + * 加速源域名,仅支持1个域名。修改源站时 OriginIPList和OriginDomain至少填一个。OriginIPList和OriginDomain都填时 + * 以Domain为准,如果两个都不填,不修改 + */ + @NotEmpty + @UCloudParam("OriginDomain") + private String originDomain; + + /** + * ,加速源IP,多个IP用英文半角逗号(,)隔开。修改源站时 ,OriginIPList和OriginDomain至少填一个。OriginIPList和OriginDomain都填时 + * 以OriginDomain为准。如果两个都不填,不修改 + */ + @NotEmpty + @UCloudParam("OriginIPList") + private String originIPList; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getOriginDomain() { + return originDomain; + } + + public void setOriginDomain(String originDomain) { + this.originDomain = originDomain; + } + + public String getOriginIPList() { + return originIPList; + } + + public void setOriginIPList(String originIPList) { + this.originIPList = originIPList; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3OriginInfoResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3OriginInfoResponse.java new file mode 100644 index 00000000..f243b844 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3OriginInfoResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class ModifyUGA3OriginInfoResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3PortRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3PortRequest.java new file mode 100644 index 00000000..2dbcb383 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3PortRequest.java @@ -0,0 +1,72 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.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 ModifyUGA3PortRequest extends Request { + + /** 项目ID。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + /** TCP接入端口,禁用65123端口 */ + @UCloudParam("TCP") + private List tcp; + + /** TCP回源端口 */ + @UCloudParam("TCPRS") + private List tcprs; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public List getTCP() { + return tcp; + } + + public void setTCP(List tcp) { + this.tcp = tcp; + } + + public List getTCPRS() { + return tcprs; + } + + public void setTCPRS(List tcprs) { + this.tcprs = tcprs; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3PortResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3PortResponse.java new file mode 100644 index 00000000..9745fd82 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUGA3PortResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class ModifyUGA3PortResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthRequest.java new file mode 100644 index 00000000..ab6eb5b4 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthRequest.java @@ -0,0 +1,60 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyUPathBandwidthRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** UPath 加速线路实例Id */ + @NotEmpty + @UCloudParam("UPathId") + private String uPathId; + + /** 线路带宽,单位Mbps。最小1Mbps,最大带宽由 DescribePathXLineConfig 接口获得。如需更大带宽,请联系产品团队。 */ + @NotEmpty + @UCloudParam("Bandwidth") + private Integer bandwidth; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUPathId() { + return uPathId; + } + + public void setUPathId(String uPathId) { + this.uPathId = uPathId; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthResponse.java new file mode 100644 index 00000000..71128609 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathBandwidthResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class ModifyUPathBandwidthResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateRequest.java new file mode 100644 index 00000000..a4a827eb --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateRequest.java @@ -0,0 +1,135 @@ +/** + * 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.pathx.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 ModifyUPathTemplateRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速线路实例ID */ + @NotEmpty + @UCloudParam("UPathId") + private String uPathId; + + /** + * 告警指标名称, + * 所有n的个数必须一致。目前仅允许以下四项:UpathNetworkOut:出向带宽,UpathNetworkIn:入向带宽,UpathNetworkOutUsage:出向带宽使用率,UpathNetworkInUsage:入向带宽使用率 + */ + @UCloudParam("MetricName") + private List metricName; + + /** 告警阈值,带宽使用率的阈值范围是[50,100]的正整数,带宽告警阈值为1000000的倍数, 如大于2Mbps则告警 阈值应该传 2000000 */ + @UCloudParam("Threshold") + private List threshold; + + /** 告警探测周期,单位:秒 */ + @UCloudParam("AlarmFrequency") + private List alarmFrequency; + + /** 告警组id */ + @UCloudParam("ContactGroupId") + private List contactGroupId; + + /** 比较策略,可选 ['GE','LE'] 分别代表不小于和不大于 */ + @UCloudParam("Compare") + private List compare; + + /** 收敛策略,可选范围 ['Exponential','Continuous','Once'],分别对应指数递增、连续告警、单次告警 */ + @UCloudParam("AlarmStrategy") + private List alarmStrategy; + + /** 告警触发周期(次数) */ + @UCloudParam("TriggerCount") + private List triggerCount; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUPathId() { + return uPathId; + } + + public void setUPathId(String uPathId) { + this.uPathId = uPathId; + } + + public List getMetricName() { + return metricName; + } + + public void setMetricName(List metricName) { + this.metricName = metricName; + } + + public List getThreshold() { + return threshold; + } + + public void setThreshold(List threshold) { + this.threshold = threshold; + } + + public List getAlarmFrequency() { + return alarmFrequency; + } + + public void setAlarmFrequency(List alarmFrequency) { + this.alarmFrequency = alarmFrequency; + } + + public List getContactGroupId() { + return contactGroupId; + } + + public void setContactGroupId(List contactGroupId) { + this.contactGroupId = contactGroupId; + } + + public List getCompare() { + return compare; + } + + public void setCompare(List compare) { + this.compare = compare; + } + + public List getAlarmStrategy() { + return alarmStrategy; + } + + public void setAlarmStrategy(List alarmStrategy) { + this.alarmStrategy = alarmStrategy; + } + + public List getTriggerCount() { + return triggerCount; + } + + public void setTriggerCount(List triggerCount) { + this.triggerCount = triggerCount; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateResponse.java new file mode 100644 index 00000000..151a1ae4 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/ModifyUPathTemplateResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class ModifyUPathTemplateResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathRequest.java new file mode 100644 index 00000000..03103c38 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathRequest.java @@ -0,0 +1,72 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UGABindUPathRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID,格式uga-xxxx */ + @NotEmpty + @UCloudParam("UGAId") + private String ugaId; + + /** 加速线路实例ID,格式upath-xxx */ + @NotEmpty + @UCloudParam("UPathId") + private String uPathId; + + /** 代金券 */ + @UCloudParam("CouponId") + private String couponId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUGAId() { + return ugaId; + } + + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } + + public String getUPathId() { + return uPathId; + } + + public void setUPathId(String uPathId) { + this.uPathId = uPathId; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathResponse.java new file mode 100644 index 00000000..eb579ec0 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGABindUPathResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class UGABindUPathResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathRequest.java new file mode 100644 index 00000000..a64b9508 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathRequest.java @@ -0,0 +1,60 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.pathx.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UGAUnBindUPathRequest extends Request { + + /** 项目ID。请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 加速配置实例ID 格式uga-xxx */ + @NotEmpty + @UCloudParam("UGAId") + private String ugaId; + + /** 加速线路实例ID 格式upath-xxx */ + @NotEmpty + @UCloudParam("UPathId") + private String uPathId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUGAId() { + return ugaId; + } + + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } + + public String getUPathId() { + return uPathId; + } + + public void setUPathId(String uPathId) { + this.uPathId = uPathId; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathResponse.java new file mode 100644 index 00000000..94798dd4 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UGAUnBindUPathResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class UGAUnBindUPathResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLRequest.java new file mode 100644 index 00000000..aae1a250 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLRequest.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.pathx.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 UnBindPathXSSLRequest extends Request { + + /** 项目ID。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** UGA实例ID。 */ + @NotEmpty + @UCloudParam("UGAId") + private String ugaId; + + /** SSL证书ID。 */ + @NotEmpty + @UCloudParam("SSLId") + private String sslId; + + /** 解绑SSL证书的HTTPS端口。Port.0 Port.1格式 端口错误则解绑失败。 */ + @NotEmpty + @UCloudParam("Port") + private List port; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUGAId() { + return ugaId; + } + + public void setUGAId(String ugaId) { + this.ugaId = ugaId; + } + + public String getSSLId() { + return sslId; + } + + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public List getPort() { + return port; + } + + public void setPort(List port) { + this.port = port; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLResponse.java new file mode 100644 index 00000000..51d54b8d --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UnBindPathXSSLResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class UnBindPathXSSLResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistRequest.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistRequest.java new file mode 100644 index 00000000..b9c80261 --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistRequest.java @@ -0,0 +1,65 @@ +/** + * 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.pathx.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 UpdatePathXWhitelistRequest extends Request { + + /** 项目ID,如org-xxxx。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** GlobalSSH实例ID,资源唯一标识 */ + @NotEmpty + @UCloudParam("InstanceId") + private String instanceId; + + /** + * 白名单规则,例如 "Whitelist.0": "192.168.1.1/24|tcp|22","Whitelist.1": + * "192.168.1.2|tcp|8080:8090",第一个参数为ip或ip段,第二个参数代表协议(tcp/udp),第三个参数代表端口号或端口范围(使用 ':' + * 隔开);可以添加多条规则(递增Whitelist.n字段内的n值);此接口需要列出全部规则,例如不填则为清空白名单规则,如若需要增量添加,使用InsertPathXWhitelist接口,globalssh + * 没有端口范围:端口设置成加速端口,协议设置成tcp:ip|tcp|加速端口 + */ + @UCloudParam("Whitelist") + private List whitelist; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public List getWhitelist() { + return whitelist; + } + + public void setWhitelist(List whitelist) { + this.whitelist = whitelist; + } +} diff --git a/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistResponse.java b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistResponse.java new file mode 100644 index 00000000..2cca3b9f --- /dev/null +++ b/ucloud-sdk-java-pathx/src/main/java/cn/ucloud/pathx/models/UpdatePathXWhitelistResponse.java @@ -0,0 +1,18 @@ +/** + * 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.pathx.models; + +import cn.ucloud.common.response.Response; + +public class UpdatePathXWhitelistResponse extends Response {} diff --git a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailResponse.java b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailResponse.java index fda55392..494e0526 100644 --- a/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailResponse.java +++ b/ucloud-sdk-java-ubill/src/main/java/cn/ucloud/ubill/models/ListUBillDetailResponse.java @@ -43,6 +43,60 @@ public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + public static class ResourceExtendInfo extends Response { + + /** 资源标识健 */ + @SerializedName("KeyId") + private String keyId; + + /** 资源标识值 */ + @SerializedName("Value") + private String value; + + public String getKeyId() { + return keyId; + } + + public void setKeyId(String keyId) { + this.keyId = keyId; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + + public static class ItemDetail extends Response { + + /** 产品小类名称 */ + @SerializedName("ProductName") + private String productName; + + /** 产品小类规格 */ + @SerializedName("Value") + private String value; + + public String getProductName() { + return productName; + } + + public void setProductName(String productName) { + this.productName = productName; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + public static class BillDetailItem extends Response { /** 订单总金额 */ @@ -308,58 +362,4 @@ public void setAdmin(Integer admin) { this.admin = admin; } } - - public static class ResourceExtendInfo extends Response { - - /** 资源标识健 */ - @SerializedName("KeyId") - private String keyId; - - /** 资源标识值 */ - @SerializedName("Value") - private String value; - - public String getKeyId() { - return keyId; - } - - public void setKeyId(String keyId) { - this.keyId = keyId; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - } - - public static class ItemDetail extends Response { - - /** 产品小类名称 */ - @SerializedName("ProductName") - private String productName; - - /** 产品小类规格 */ - @SerializedName("Value") - private String value; - - public String getProductName() { - return productName; - } - - public void setProductName(String productName) { - this.productName = productName; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - } } diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnRefreshCacheTaskResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnRefreshCacheTaskResponse.java index 619db6ac..544e03b1 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnRefreshCacheTaskResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/DescribeNewUcdnRefreshCacheTaskResponse.java @@ -43,38 +43,34 @@ public void setTaskList(List taskList) { this.taskList = taskList; } - public static class TaskInfo extends Response { - - /** 提交任务时返回的任务ID */ - @SerializedName("TaskId") - private String taskId; + public static class UrlProgressInfo extends Response { - /** 任务url的信息列表,参考UrlProgressInfo */ - @SerializedName("UrlLists") - private List urlLists; + /** 刷新的单条url */ + @SerializedName("Url") + private String url; /** 刷新任务创建的时间。格式为Unix Timestamp */ @SerializedName("CreateTime") private Integer createTime; + /** 任务完成时间。格式为Unix Timestamp */ + @SerializedName("FinishTime") + private Integer finishTime; + /** 刷新任务的当前状态,枚举值:success:成功;wait:排队中;process:处理中;failure:失败; unknow:未知 */ @SerializedName("Status") private String status; - public String getTaskId() { - return taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } + /** 刷新进度,单位% */ + @SerializedName("Progress") + private Integer progress; - public List getUrlLists() { - return urlLists; + public String getUrl() { + return url; } - public void setUrlLists(List urlLists) { - this.urlLists = urlLists; + public void setUrl(String url) { + this.url = url; } public Integer getCreateTime() { @@ -85,6 +81,14 @@ public void setCreateTime(Integer createTime) { this.createTime = createTime; } + public Integer getFinishTime() { + return finishTime; + } + + public void setFinishTime(Integer finishTime) { + this.finishTime = finishTime; + } + public String getStatus() { return status; } @@ -92,36 +96,48 @@ public String getStatus() { public void setStatus(String status) { this.status = status; } + + public Integer getProgress() { + return progress; + } + + public void setProgress(Integer progress) { + this.progress = progress; + } } - public static class UrlProgressInfo extends Response { + public static class TaskInfo extends Response { - /** 刷新的单条url */ - @SerializedName("Url") - private String url; + /** 提交任务时返回的任务ID */ + @SerializedName("TaskId") + private String taskId; + + /** 任务url的信息列表,参考UrlProgressInfo */ + @SerializedName("UrlLists") + private List urlLists; /** 刷新任务创建的时间。格式为Unix Timestamp */ @SerializedName("CreateTime") private Integer createTime; - /** 任务完成时间。格式为Unix Timestamp */ - @SerializedName("FinishTime") - private Integer finishTime; - /** 刷新任务的当前状态,枚举值:success:成功;wait:排队中;process:处理中;failure:失败; unknow:未知 */ @SerializedName("Status") private String status; - /** 刷新进度,单位% */ - @SerializedName("Progress") - private Integer progress; + public String getTaskId() { + return taskId; + } - public String getUrl() { - return url; + public void setTaskId(String taskId) { + this.taskId = taskId; } - public void setUrl(String url) { - this.url = url; + public List getUrlLists() { + return urlLists; + } + + public void setUrlLists(List urlLists) { + this.urlLists = urlLists; } public Integer getCreateTime() { @@ -132,14 +148,6 @@ public void setCreateTime(Integer createTime) { this.createTime = createTime; } - public Integer getFinishTime() { - return finishTime; - } - - public void setFinishTime(Integer finishTime) { - this.finishTime = finishTime; - } - public String getStatus() { return status; } @@ -147,13 +155,5 @@ public String getStatus() { public void setStatus(String status) { this.status = status; } - - public Integer getProgress() { - return progress; - } - - public void setProgress(Integer progress) { - this.progress = progress; - } } } diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogRefererStatisticsResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogRefererStatisticsResponse.java index 6eee9029..c8e9119f 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogRefererStatisticsResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogRefererStatisticsResponse.java @@ -31,6 +31,33 @@ public void setRefererStatistics(List refererStatistics) { this.refererStatistics = refererStatistics; } + public static class RefererStatistics extends Response { + + /** 日期 */ + @SerializedName("Date") + private String date; + + /** Referer实例表 */ + @SerializedName("RefererList") + private List refererList; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public List getRefererList() { + return refererList; + } + + public void setRefererList(List refererList) { + this.refererList = refererList; + } + } + public static class RefererList extends Response { /** 客户端请求的referer */ @@ -69,31 +96,4 @@ public void setPercent(Double percent) { this.percent = percent; } } - - public static class RefererStatistics extends Response { - - /** 日期 */ - @SerializedName("Date") - private String date; - - /** Referer实例表 */ - @SerializedName("RefererList") - private List refererList; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public List getRefererList() { - return refererList; - } - - public void setRefererList(List refererList) { - this.refererList = refererList; - } - } } diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogUrlStatisticsResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogUrlStatisticsResponse.java index 7138f1b3..c5e38c99 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogUrlStatisticsResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetNewUcdnLogUrlStatisticsResponse.java @@ -31,6 +31,33 @@ public void setUrlStatisticsList(List urlStatisticsList) { this.urlStatisticsList = urlStatisticsList; } + public static class UrlStatistics extends Response { + + /** */ + @SerializedName("UrlList") + private List urlList; + + /** 日期 */ + @SerializedName("Date") + private String date; + + public List getUrlList() { + return urlList; + } + + public void setUrlList(List urlList) { + this.urlList = urlList; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + } + public static class DownloadStatisticInfo extends Response { /** 下载链接的url */ @@ -81,31 +108,4 @@ public void setPercent(Double percent) { this.percent = percent; } } - - public static class UrlStatistics extends Response { - - /** */ - @SerializedName("UrlList") - private List urlList; - - /** 日期 */ - @SerializedName("Date") - private String date; - - public List getUrlList() { - return urlList; - } - - public void setUrlList(List urlList) { - this.urlList = urlList; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - } } diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainConfigResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainConfigResponse.java index d4af6fa3..eaf0e00d 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainConfigResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainConfigResponse.java @@ -31,84 +31,6 @@ public void setDomainList(List domainList) { this.domainList = domainList; } - public static class AccessControlConf extends Response { - - /** ip黑名单,多个ip,可表示为: IpBlackList.0=1.1.1.1,IpBlackList.1=2.2.2.2 */ - @SerializedName("IpBlackList") - private List ipBlackList; - - /** refer配置 */ - @SerializedName("ReferConf") - private ReferConf referConf; - - public List getIpBlackList() { - return ipBlackList; - } - - public void setIpBlackList(List ipBlackList) { - this.ipBlackList = ipBlackList; - } - - public ReferConf getReferConf() { - return referConf; - } - - public void setReferConf(ReferConf referConf) { - this.referConf = referConf; - } - } - - public static class CacheAllConfig extends Response { - - /** 缓存Host,不同的域名可以配置为同一个CacheHost来实现缓存共享,默认为加速域名 */ - @SerializedName("CacheHost") - private String cacheHost; - - /** 缓存配置列表,参见CacheConf */ - @SerializedName("CacheList") - private List cacheList; - - /** 状态码缓存配置列表,参见CacheConf */ - @SerializedName("HttpCodeCacheList") - private List httpCodeCacheList; - - /** 忽略参数缓存配置列表,参见CacheKeyInfo */ - @SerializedName("CacheKeyList") - private List cacheKeyList; - - public String getCacheHost() { - return cacheHost; - } - - public void setCacheHost(String cacheHost) { - this.cacheHost = cacheHost; - } - - public List getCacheList() { - return cacheList; - } - - public void setCacheList(List cacheList) { - this.cacheList = cacheList; - } - - public List getHttpCodeCacheList() { - return httpCodeCacheList; - } - - public void setHttpCodeCacheList(List httpCodeCacheList) { - this.httpCodeCacheList = httpCodeCacheList; - } - - public List getCacheKeyList() { - return cacheKeyList; - } - - public void setCacheKeyList(List cacheKeyList) { - this.cacheKeyList = cacheKeyList; - } - } - public static class CacheConf extends Response { /** 路径模式,支持正则 */ @@ -196,42 +118,156 @@ public void setFollowOriginRule(Boolean followOriginRule) { } } - public static class AdvancedConf extends Response { + public static class AccessControlConf extends Response { - /** 客户端响应http头列表 */ - @SerializedName("HttpClientHeader") - private List httpClientHeader; + /** ip黑名单,多个ip,可表示为: IpBlackList.0=1.1.1.1,IpBlackList.1=2.2.2.2 */ + @SerializedName("IpBlackList") + private List ipBlackList; - /** 源站http头列表 */ - @SerializedName("HttpOriginHeader") - private List httpOriginHeader; + /** refer配置 */ + @SerializedName("ReferConf") + private ReferConf referConf; - /** http转https回源 true是,false否 */ - @SerializedName("Http2Https") - private Boolean http2Https; + public List getIpBlackList() { + return ipBlackList; + } - public List getHttpClientHeader() { - return httpClientHeader; + public void setIpBlackList(List ipBlackList) { + this.ipBlackList = ipBlackList; } - public void setHttpClientHeader(List httpClientHeader) { - this.httpClientHeader = httpClientHeader; + public ReferConf getReferConf() { + return referConf; } - public List getHttpOriginHeader() { - return httpOriginHeader; + public void setReferConf(ReferConf referConf) { + this.referConf = referConf; } + } - public void setHttpOriginHeader(List httpOriginHeader) { - this.httpOriginHeader = httpOriginHeader; + public static class OriginConf extends Response { + + /** 源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"] */ + @SerializedName("OriginIpList") + private List originIpList; + + /** 回源Http请求头部Host,默认是加速域名 */ + @SerializedName("OriginHost") + private String originHost; + + /** 回源端口 */ + @SerializedName("OriginPort") + private Integer originPort; + + /** + * 1如果为false表示BackupOriginIp为空,表示没有备份源站,忽略BackupOriginIp,BackupOriginHost字段 + * 2如果为true表示BackupOriginIp.n必须至少有一个备份源站地址 + */ + @SerializedName("BackupOriginEnable") + private Boolean backupOriginEnable; + + /** 备份源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"] */ + @SerializedName("BackupOriginIpList") + private List backupOriginIpList; + + /** 备份回源Http请求头部Host,默认是加速域名 */ + @SerializedName("BackupOriginHost") + private String backupOriginHost; + + /** 主源响应的回源错误码(如:404|500),默认空字符串 */ + @SerializedName("OriginErrorCode") + private String originErrorCode; + + /** 回主源的回源失败数,默认1 */ + @SerializedName("OriginErrorNum") + private Integer originErrorNum; + + /** 源站协议http,http|https 默认http */ + @SerializedName("OriginProtocol") + private String originProtocol; + + /** 跟随301跳转 0=不跟随 1=跟随 */ + @SerializedName("OriginFollow301") + private Integer originFollow301; + + public List getOriginIpList() { + return originIpList; } - public Boolean getHttp2Https() { - return http2Https; + public void setOriginIpList(List originIpList) { + this.originIpList = originIpList; } - public void setHttp2Https(Boolean http2Https) { - this.http2Https = http2Https; + public String getOriginHost() { + return originHost; + } + + public void setOriginHost(String originHost) { + this.originHost = originHost; + } + + public Integer getOriginPort() { + return originPort; + } + + public void setOriginPort(Integer originPort) { + this.originPort = originPort; + } + + public Boolean getBackupOriginEnable() { + return backupOriginEnable; + } + + public void setBackupOriginEnable(Boolean backupOriginEnable) { + this.backupOriginEnable = backupOriginEnable; + } + + public List getBackupOriginIpList() { + return backupOriginIpList; + } + + public void setBackupOriginIpList(List backupOriginIpList) { + this.backupOriginIpList = backupOriginIpList; + } + + public String getBackupOriginHost() { + return backupOriginHost; + } + + public void setBackupOriginHost(String backupOriginHost) { + this.backupOriginHost = backupOriginHost; + } + + public String getOriginErrorCode() { + return originErrorCode; + } + + public void setOriginErrorCode(String originErrorCode) { + this.originErrorCode = originErrorCode; + } + + public Integer getOriginErrorNum() { + return originErrorNum; + } + + public void setOriginErrorNum(Integer originErrorNum) { + this.originErrorNum = originErrorNum; + } + + public String getOriginProtocol() { + return originProtocol; + } + + public void setOriginProtocol(String originProtocol) { + this.originProtocol = originProtocol; + } + + public Integer getOriginFollow301() { + return originFollow301; + } + + public void setOriginFollow301(Integer originFollow301) { + this.originFollow301 = originFollow301; } } @@ -484,129 +520,93 @@ public void setReferList(List referList) { } } - public static class OriginConf extends Response { - - /** 源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"] */ - @SerializedName("OriginIpList") - private List originIpList; - - /** 回源Http请求头部Host,默认是加速域名 */ - @SerializedName("OriginHost") - private String originHost; - - /** 回源端口 */ - @SerializedName("OriginPort") - private Integer originPort; - - /** - * 1如果为false表示BackupOriginIp为空,表示没有备份源站,忽略BackupOriginIp,BackupOriginHost字段 - * 2如果为true表示BackupOriginIp.n必须至少有一个备份源站地址 - */ - @SerializedName("BackupOriginEnable") - private Boolean backupOriginEnable; - - /** 备份源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"] */ - @SerializedName("BackupOriginIpList") - private List backupOriginIpList; - - /** 备份回源Http请求头部Host,默认是加速域名 */ - @SerializedName("BackupOriginHost") - private String backupOriginHost; - - /** 主源响应的回源错误码(如:404|500),默认空字符串 */ - @SerializedName("OriginErrorCode") - private String originErrorCode; - - /** 回主源的回源失败数,默认1 */ - @SerializedName("OriginErrorNum") - private Integer originErrorNum; + public static class AdvancedConf extends Response { - /** 源站协议http,http|https 默认http */ - @SerializedName("OriginProtocol") - private String originProtocol; + /** 客户端响应http头列表 */ + @SerializedName("HttpClientHeader") + private List httpClientHeader; - /** 跟随301跳转 0=不跟随 1=跟随 */ - @SerializedName("OriginFollow301") - private Integer originFollow301; + /** 源站http头列表 */ + @SerializedName("HttpOriginHeader") + private List httpOriginHeader; - public List getOriginIpList() { - return originIpList; - } + /** http转https回源 true是,false否 */ + @SerializedName("Http2Https") + private Boolean http2Https; - public void setOriginIpList(List originIpList) { - this.originIpList = originIpList; + public List getHttpClientHeader() { + return httpClientHeader; } - public String getOriginHost() { - return originHost; + public void setHttpClientHeader(List httpClientHeader) { + this.httpClientHeader = httpClientHeader; } - public void setOriginHost(String originHost) { - this.originHost = originHost; + public List getHttpOriginHeader() { + return httpOriginHeader; } - public Integer getOriginPort() { - return originPort; + public void setHttpOriginHeader(List httpOriginHeader) { + this.httpOriginHeader = httpOriginHeader; } - public void setOriginPort(Integer originPort) { - this.originPort = originPort; + public Boolean getHttp2Https() { + return http2Https; } - public Boolean getBackupOriginEnable() { - return backupOriginEnable; + public void setHttp2Https(Boolean http2Https) { + this.http2Https = http2Https; } + } - public void setBackupOriginEnable(Boolean backupOriginEnable) { - this.backupOriginEnable = backupOriginEnable; - } + public static class CacheAllConfig extends Response { - public List getBackupOriginIpList() { - return backupOriginIpList; - } + /** 缓存Host,不同的域名可以配置为同一个CacheHost来实现缓存共享,默认为加速域名 */ + @SerializedName("CacheHost") + private String cacheHost; - public void setBackupOriginIpList(List backupOriginIpList) { - this.backupOriginIpList = backupOriginIpList; - } + /** 缓存配置列表,参见CacheConf */ + @SerializedName("CacheList") + private List cacheList; - public String getBackupOriginHost() { - return backupOriginHost; - } + /** 状态码缓存配置列表,参见CacheConf */ + @SerializedName("HttpCodeCacheList") + private List httpCodeCacheList; - public void setBackupOriginHost(String backupOriginHost) { - this.backupOriginHost = backupOriginHost; - } + /** 忽略参数缓存配置列表,参见CacheKeyInfo */ + @SerializedName("CacheKeyList") + private List cacheKeyList; - public String getOriginErrorCode() { - return originErrorCode; + public String getCacheHost() { + return cacheHost; } - public void setOriginErrorCode(String originErrorCode) { - this.originErrorCode = originErrorCode; + public void setCacheHost(String cacheHost) { + this.cacheHost = cacheHost; } - public Integer getOriginErrorNum() { - return originErrorNum; + public List getCacheList() { + return cacheList; } - public void setOriginErrorNum(Integer originErrorNum) { - this.originErrorNum = originErrorNum; + public void setCacheList(List cacheList) { + this.cacheList = cacheList; } - public String getOriginProtocol() { - return originProtocol; + public List getHttpCodeCacheList() { + return httpCodeCacheList; } - public void setOriginProtocol(String originProtocol) { - this.originProtocol = originProtocol; + public void setHttpCodeCacheList(List httpCodeCacheList) { + this.httpCodeCacheList = httpCodeCacheList; } - public Integer getOriginFollow301() { - return originFollow301; + public List getCacheKeyList() { + return cacheKeyList; } - public void setOriginFollow301(Integer originFollow301) { - this.originFollow301 = originFollow301; + public void setCacheKeyList(List cacheKeyList) { + this.cacheKeyList = cacheKeyList; } } diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainLogResponse.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainLogResponse.java index 05533553..63c3b088 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainLogResponse.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainLogResponse.java @@ -31,33 +31,6 @@ public void setLogSet(List logSet) { this.logSet = logSet; } - public static class LogSetList extends Response { - - /** 域名 */ - @SerializedName("Domain") - private String domain; - - /** 域名信息列表,参考LogSetInfo */ - @SerializedName("Logs") - private List logs; - - public String getDomain() { - return domain; - } - - public void setDomain(String domain) { - this.domain = domain; - } - - public List getLogs() { - return logs; - } - - public void setLogs(List logs) { - this.logs = logs; - } - } - public static class LogSetInfo extends Response { /** 日志时间UnixTime */ @@ -96,4 +69,31 @@ public void setAbroadLog(List abroadLog) { this.abroadLog = abroadLog; } } + + public static class LogSetList extends Response { + + /** 域名 */ + @SerializedName("Domain") + private String domain; + + /** 域名信息列表,参考LogSetInfo */ + @SerializedName("Logs") + private List logs; + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public List getLogs() { + return logs; + } + + public void setLogs(List logs) { + this.logs = logs; + } + } } diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java index 65f95d0c..7337f4b7 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java @@ -43,18 +43,12 @@ public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - public static class UDBInstanceSet extends Response { + public static class UDBSlaveInstanceSet extends Response { - /** DB实例所在可用区 */ + /** 可用区 */ @SerializedName("Zone") private String zone; - /** - * 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式 - */ - @SerializedName("ClusterRole") - private String clusterRole; - /** DB实例id */ @SerializedName("DBId") private String dbId; @@ -87,26 +81,6 @@ public static class UDBInstanceSet extends Response { @SerializedName("VirtualIPMac") private String virtualIPMac; - /** VPC的ID */ - @SerializedName("VPCId") - private String vpcId; - - /** 子网ID */ - @SerializedName("SubnetId") - private String subnetId; - - /** UDB数据库机型 */ - @SerializedName("InstanceType") - private String instanceType; - - /** UDB数据库机型ID */ - @SerializedName("InstanceTypeId") - private Integer instanceTypeId; - - /** 获取资源其他信息 */ - @SerializedName("Tag") - private String tag; - /** 端口号,mysql默认3306,mongodb默认27017 */ @SerializedName("Port") private Integer port; @@ -167,7 +141,7 @@ public static class UDBInstanceSet extends Response { @SerializedName("UseSSD") private Boolean useSSD; - /** SSD类型,SATA/PCI-E/NVMe */ + /** SSD类型,SATA/PCI-E */ @SerializedName("SSDType") private String ssdType; @@ -198,29 +172,40 @@ public static class UDBInstanceSet extends Response { @SerializedName("BackupDate") private String backupDate; - /** UDB实例模式类型, 可选值如下: “Normal”: 普通版UDB实例 “HA”: 高可用版UDB实例 */ + /** UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例;"HA": 高可用版UDB实例 */ @SerializedName("InstanceMode") private String instanceMode; /** - * 如果在需要返回从库的场景下,返回该DB实例的所有从库DB实例信息列表。列表中每一个元素的内容同UDBSlaveInstanceSet - * 。如果这个DB实例没有从库的情况下,此时返回一个空的列表 + * 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式 */ - @SerializedName("DataSet") - private List dataSet; + @SerializedName("ClusterRole") + private String clusterRole; - /** 跨可用区高可用备库所在可用区 */ - @SerializedName("BackupZone") - private String backupZone; + /** 子网ID */ + @SerializedName("SubnetId") + private String subnetId; - /** 该实例的ipv6地址 */ + /** VPC的ID */ + @SerializedName("VPCId") + private String vpcId; + + /** UDB数据库机型 */ + @SerializedName("InstanceType") + private String instanceType; + + /** UDB数据库机型ID */ + @SerializedName("InstanceTypeId") + private Integer instanceTypeId; + + /** 获取资源其他信息 */ + @SerializedName("Tag") + private String tag; + + /** 获取该实例的IPv6地址 */ @SerializedName("IPv6Address") private String iPv6Address; - /** 用户转存备份到自己的UFILE配置, 结构参考UFileDataSet */ - @SerializedName("UserUFileData") - private UFileDataSet userUFileData; - public String getZone() { return zone; } @@ -229,14 +214,6 @@ public void setZone(String zone) { this.zone = zone; } - public String getClusterRole() { - return clusterRole; - } - - public void setClusterRole(String clusterRole) { - this.clusterRole = clusterRole; - } - public String getDBId() { return dbId; } @@ -293,46 +270,6 @@ public void setVirtualIPMac(String virtualIPMac) { this.virtualIPMac = virtualIPMac; } - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public String getInstanceType() { - return instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public Integer getInstanceTypeId() { - return instanceTypeId; - } - - public void setInstanceTypeId(Integer instanceTypeId) { - this.instanceTypeId = instanceTypeId; - } - - public String getTag() { - return tag; - } - - public void setTag(String tag) { - this.tag = tag; - } - public Integer getPort() { return port; } @@ -509,36 +446,60 @@ public void setInstanceMode(String instanceMode) { this.instanceMode = instanceMode; } - public List getDataSet() { - return dataSet; + public String getClusterRole() { + return clusterRole; } - public void setDataSet(List dataSet) { - this.dataSet = dataSet; + public void setClusterRole(String clusterRole) { + this.clusterRole = clusterRole; } - public String getBackupZone() { - return backupZone; + public String getSubnetId() { + return subnetId; } - public void setBackupZone(String backupZone) { - this.backupZone = backupZone; + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; } - public String getIPv6Address() { - return iPv6Address; + public String getVPCId() { + return vpcId; } - public void setIPv6Address(String iPv6Address) { - this.iPv6Address = iPv6Address; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; } - public UFileDataSet getUserUFileData() { - return userUFileData; + public String getInstanceType() { + return instanceType; } - public void setUserUFileData(UFileDataSet userUFileData) { - this.userUFileData = userUFileData; + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Integer getInstanceTypeId() { + return instanceTypeId; + } + + public void setInstanceTypeId(Integer instanceTypeId) { + this.instanceTypeId = instanceTypeId; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public String getIPv6Address() { + return iPv6Address; + } + + public void setIPv6Address(String iPv6Address) { + this.iPv6Address = iPv6Address; } } @@ -569,12 +530,18 @@ public void setBucket(String bucket) { } } - public static class UDBSlaveInstanceSet extends Response { + public static class UDBInstanceSet extends Response { - /** 可用区 */ + /** DB实例所在可用区 */ @SerializedName("Zone") private String zone; + /** + * 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式 + */ + @SerializedName("ClusterRole") + private String clusterRole; + /** DB实例id */ @SerializedName("DBId") private String dbId; @@ -607,6 +574,26 @@ public static class UDBSlaveInstanceSet extends Response { @SerializedName("VirtualIPMac") private String virtualIPMac; + /** VPC的ID */ + @SerializedName("VPCId") + private String vpcId; + + /** 子网ID */ + @SerializedName("SubnetId") + private String subnetId; + + /** UDB数据库机型 */ + @SerializedName("InstanceType") + private String instanceType; + + /** UDB数据库机型ID */ + @SerializedName("InstanceTypeId") + private Integer instanceTypeId; + + /** 获取资源其他信息 */ + @SerializedName("Tag") + private String tag; + /** 端口号,mysql默认3306,mongodb默认27017 */ @SerializedName("Port") private Integer port; @@ -667,7 +654,7 @@ public static class UDBSlaveInstanceSet extends Response { @SerializedName("UseSSD") private Boolean useSSD; - /** SSD类型,SATA/PCI-E */ + /** SSD类型,SATA/PCI-E/NVMe */ @SerializedName("SSDType") private String ssdType; @@ -698,40 +685,29 @@ public static class UDBSlaveInstanceSet extends Response { @SerializedName("BackupDate") private String backupDate; - /** UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例;"HA": 高可用版UDB实例 */ + /** UDB实例模式类型, 可选值如下: “Normal”: 普通版UDB实例 “HA”: 高可用版UDB实例 */ @SerializedName("InstanceMode") private String instanceMode; /** - * 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式 + * 如果在需要返回从库的场景下,返回该DB实例的所有从库DB实例信息列表。列表中每一个元素的内容同UDBSlaveInstanceSet + * 。如果这个DB实例没有从库的情况下,此时返回一个空的列表 */ - @SerializedName("ClusterRole") - private String clusterRole; - - /** 子网ID */ - @SerializedName("SubnetId") - private String subnetId; - - /** VPC的ID */ - @SerializedName("VPCId") - private String vpcId; - - /** UDB数据库机型 */ - @SerializedName("InstanceType") - private String instanceType; - - /** UDB数据库机型ID */ - @SerializedName("InstanceTypeId") - private Integer instanceTypeId; + @SerializedName("DataSet") + private List dataSet; - /** 获取资源其他信息 */ - @SerializedName("Tag") - private String tag; + /** 跨可用区高可用备库所在可用区 */ + @SerializedName("BackupZone") + private String backupZone; - /** 获取该实例的IPv6地址 */ + /** 该实例的ipv6地址 */ @SerializedName("IPv6Address") private String iPv6Address; + /** 用户转存备份到自己的UFILE配置, 结构参考UFileDataSet */ + @SerializedName("UserUFileData") + private UFileDataSet userUFileData; + public String getZone() { return zone; } @@ -740,6 +716,14 @@ public void setZone(String zone) { this.zone = zone; } + public String getClusterRole() { + return clusterRole; + } + + public void setClusterRole(String clusterRole) { + this.clusterRole = clusterRole; + } + public String getDBId() { return dbId; } @@ -796,6 +780,46 @@ public void setVirtualIPMac(String virtualIPMac) { this.virtualIPMac = virtualIPMac; } + public String getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Integer getInstanceTypeId() { + return instanceTypeId; + } + + public void setInstanceTypeId(Integer instanceTypeId) { + this.instanceTypeId = instanceTypeId; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + public Integer getPort() { return port; } @@ -972,52 +996,20 @@ public void setInstanceMode(String instanceMode) { this.instanceMode = instanceMode; } - public String getClusterRole() { - return clusterRole; - } - - public void setClusterRole(String clusterRole) { - this.clusterRole = clusterRole; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public String getVPCId() { - return vpcId; - } - - public void setVPCId(String vpcId) { - this.vpcId = vpcId; - } - - public String getInstanceType() { - return instanceType; - } - - public void setInstanceType(String instanceType) { - this.instanceType = instanceType; - } - - public Integer getInstanceTypeId() { - return instanceTypeId; + public List getDataSet() { + return dataSet; } - public void setInstanceTypeId(Integer instanceTypeId) { - this.instanceTypeId = instanceTypeId; + public void setDataSet(List dataSet) { + this.dataSet = dataSet; } - public String getTag() { - return tag; + public String getBackupZone() { + return backupZone; } - public void setTag(String tag) { - this.tag = tag; + public void setBackupZone(String backupZone) { + this.backupZone = backupZone; } public String getIPv6Address() { @@ -1027,5 +1019,13 @@ public String getIPv6Address() { public void setIPv6Address(String iPv6Address) { this.iPv6Address = iPv6Address; } + + public UFileDataSet getUserUFileData() { + return userUFileData; + } + + public void setUserUFileData(UFileDataSet userUFileData) { + this.userUFileData = userUFileData; + } } } diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupResponse.java index c0153630..a4fd180e 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBParamGroupResponse.java @@ -43,6 +43,85 @@ public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + public static class UDBParamGroupSet extends Response { + + /** 参数组id */ + @SerializedName("GroupId") + private Integer groupId; + + /** 参数组名称 */ + @SerializedName("GroupName") + private String groupName; + + /** + * DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下 + * 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6 + * 7:percona-5.6 + */ + @SerializedName("DBTypeId") + private String dbTypeId; + + /** 参数组描述 */ + @SerializedName("Description") + private String description; + + /** 参数组是否可修改 */ + @SerializedName("Modifiable") + private Boolean modifiable; + + /** 参数的键值对表 UDBParamMemberSet */ + @SerializedName("ParamMember") + private List paramMember; + + public Integer getGroupId() { + return groupId; + } + + public void setGroupId(Integer groupId) { + this.groupId = groupId; + } + + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public String getDBTypeId() { + return dbTypeId; + } + + public void setDBTypeId(String dbTypeId) { + this.dbTypeId = dbTypeId; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Boolean getModifiable() { + return modifiable; + } + + public void setModifiable(Boolean modifiable) { + this.modifiable = modifiable; + } + + public List getParamMember() { + return paramMember; + } + + public void setParamMember(List paramMember) { + this.paramMember = paramMember; + } + } + public static class UDBParamMemberSet extends Response { /** 参数名称 */ @@ -129,83 +208,4 @@ public void setFormatType(Integer formatType) { this.formatType = formatType; } } - - public static class UDBParamGroupSet extends Response { - - /** 参数组id */ - @SerializedName("GroupId") - private Integer groupId; - - /** 参数组名称 */ - @SerializedName("GroupName") - private String groupName; - - /** - * DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下 - * 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6 - * 7:percona-5.6 - */ - @SerializedName("DBTypeId") - private String dbTypeId; - - /** 参数组描述 */ - @SerializedName("Description") - private String description; - - /** 参数组是否可修改 */ - @SerializedName("Modifiable") - private Boolean modifiable; - - /** 参数的键值对表 UDBParamMemberSet */ - @SerializedName("ParamMember") - private List paramMember; - - public Integer getGroupId() { - return groupId; - } - - public void setGroupId(Integer groupId) { - this.groupId = groupId; - } - - public String getGroupName() { - return groupName; - } - - public void setGroupName(String groupName) { - this.groupName = groupName; - } - - public String getDBTypeId() { - return dbTypeId; - } - - public void setDBTypeId(String dbTypeId) { - this.dbTypeId = dbTypeId; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Boolean getModifiable() { - return modifiable; - } - - public void setModifiable(Boolean modifiable) { - this.modifiable = modifiable; - } - - public List getParamMember() { - return paramMember; - } - - public void setParamMember(List paramMember) { - this.paramMember = paramMember; - } - } } diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml new file mode 100644 index 00000000..f735caf5 --- /dev/null +++ b/ucloud-sdk-java-udpn/pom.xml @@ -0,0 +1,48 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.0.0-SNAPSHOT + + + 4.0.0 + ucloud-sdk-java-udpn + 1.0.0-SNAPSHOT + + + + cn.ucloud + ucloud-sdk-java-common + 1.0.0-SNAPSHOT + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + \ No newline at end of file diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClient.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClient.java new file mode 100644 index 00000000..35618ec2 --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClient.java @@ -0,0 +1,122 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udpn.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.udpn.models.AllocateUDPNRequest; +import cn.ucloud.udpn.models.AllocateUDPNResponse; +import cn.ucloud.udpn.models.DescribeUDPNRequest; +import cn.ucloud.udpn.models.DescribeUDPNResponse; +import cn.ucloud.udpn.models.GetUDPNLineListRequest; +import cn.ucloud.udpn.models.GetUDPNLineListResponse; +import cn.ucloud.udpn.models.GetUDPNPriceRequest; +import cn.ucloud.udpn.models.GetUDPNPriceResponse; +import cn.ucloud.udpn.models.GetUDPNUpgradePriceRequest; +import cn.ucloud.udpn.models.GetUDPNUpgradePriceResponse; +import cn.ucloud.udpn.models.ModifyUDPNBandwidthRequest; +import cn.ucloud.udpn.models.ModifyUDPNBandwidthResponse; +import cn.ucloud.udpn.models.ReleaseUDPNRequest; +import cn.ucloud.udpn.models.ReleaseUDPNResponse; + +/** This client is used to call actions of **UDPN** service */ +public class UDPNClient extends DefaultClient implements UDPNClientInterface { + public UDPNClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * AllocateUDPN - 分配 UDPN 专线 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AllocateUDPNResponse allocateUDPN(AllocateUDPNRequest request) throws UCloudException { + request.setAction("AllocateUDPN"); + return (AllocateUDPNResponse) this.invoke(request, AllocateUDPNResponse.class); + } + + /** + * DescribeUDPN - 描述 UDPN + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDPNResponse describeUDPN(DescribeUDPNRequest request) throws UCloudException { + request.setAction("DescribeUDPN"); + return (DescribeUDPNResponse) this.invoke(request, DescribeUDPNResponse.class); + } + + /** + * GetUDPNLineList - 获取专线线路列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUDPNLineListResponse getUDPNLineList(GetUDPNLineListRequest request) + throws UCloudException { + request.setAction("GetUDPNLineList"); + return (GetUDPNLineListResponse) this.invoke(request, GetUDPNLineListResponse.class); + } + + /** + * GetUDPNPrice - 获取 UDPN 价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUDPNPriceResponse getUDPNPrice(GetUDPNPriceRequest request) throws UCloudException { + request.setAction("GetUDPNPrice"); + return (GetUDPNPriceResponse) this.invoke(request, GetUDPNPriceResponse.class); + } + + /** + * GetUDPNUpgradePrice - 获取升级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUDPNUpgradePriceResponse getUDPNUpgradePrice(GetUDPNUpgradePriceRequest request) + throws UCloudException { + request.setAction("GetUDPNUpgradePrice"); + return (GetUDPNUpgradePriceResponse) + this.invoke(request, GetUDPNUpgradePriceResponse.class); + } + + /** + * ModifyUDPNBandwidth - 修改带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDPNBandwidthResponse modifyUDPNBandwidth(ModifyUDPNBandwidthRequest request) + throws UCloudException { + request.setAction("ModifyUDPNBandwidth"); + return (ModifyUDPNBandwidthResponse) + this.invoke(request, ModifyUDPNBandwidthResponse.class); + } + + /** + * ReleaseUDPN - 释放 UDPN + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReleaseUDPNResponse releaseUDPN(ReleaseUDPNRequest request) throws UCloudException { + request.setAction("ReleaseUDPN"); + return (ReleaseUDPNResponse) this.invoke(request, ReleaseUDPNResponse.class); + } +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClientInterface.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClientInterface.java new file mode 100644 index 00000000..9b132ff8 --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/client/UDPNClientInterface.java @@ -0,0 +1,94 @@ +/** + * 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.udpn.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.udpn.models.AllocateUDPNRequest; +import cn.ucloud.udpn.models.AllocateUDPNResponse; +import cn.ucloud.udpn.models.DescribeUDPNRequest; +import cn.ucloud.udpn.models.DescribeUDPNResponse; +import cn.ucloud.udpn.models.GetUDPNLineListRequest; +import cn.ucloud.udpn.models.GetUDPNLineListResponse; +import cn.ucloud.udpn.models.GetUDPNPriceRequest; +import cn.ucloud.udpn.models.GetUDPNPriceResponse; +import cn.ucloud.udpn.models.GetUDPNUpgradePriceRequest; +import cn.ucloud.udpn.models.GetUDPNUpgradePriceResponse; +import cn.ucloud.udpn.models.ModifyUDPNBandwidthRequest; +import cn.ucloud.udpn.models.ModifyUDPNBandwidthResponse; +import cn.ucloud.udpn.models.ReleaseUDPNRequest; +import cn.ucloud.udpn.models.ReleaseUDPNResponse; + +/** This client is used to call actions of **UDPN** service */ +public interface UDPNClientInterface extends Client { + + /** + * AllocateUDPN - 分配 UDPN 专线 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AllocateUDPNResponse allocateUDPN(AllocateUDPNRequest request) throws UCloudException; + + /** + * DescribeUDPN - 描述 UDPN + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUDPNResponse describeUDPN(DescribeUDPNRequest request) throws UCloudException; + + /** + * GetUDPNLineList - 获取专线线路列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUDPNLineListResponse getUDPNLineList(GetUDPNLineListRequest request) + throws UCloudException; + + /** + * GetUDPNPrice - 获取 UDPN 价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUDPNPriceResponse getUDPNPrice(GetUDPNPriceRequest request) throws UCloudException; + + /** + * GetUDPNUpgradePrice - 获取升级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUDPNUpgradePriceResponse getUDPNUpgradePrice(GetUDPNUpgradePriceRequest request) + throws UCloudException; + + /** + * ModifyUDPNBandwidth - 修改带宽 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDPNBandwidthResponse modifyUDPNBandwidth(ModifyUDPNBandwidthRequest request) + throws UCloudException; + + /** + * ReleaseUDPN - 释放 UDPN + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReleaseUDPNResponse releaseUDPN(ReleaseUDPNRequest request) throws UCloudException; +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNRequest.java new file mode 100644 index 00000000..3af5c99b --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNRequest.java @@ -0,0 +1,141 @@ +/** + * 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.udpn.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AllocateUDPNRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** + * 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, + * 洛杉矶:us-ca, 华盛顿:us-ws, 东京:jpn-tky + */ + @NotEmpty + @UCloudParam("Peer1") + private String peer1; + + /** + * 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, + * 洛杉矶:us-ca, 华盛顿:us-ws, 东京:jpn-tky + */ + @NotEmpty + @UCloudParam("Peer2") + private String peer2; + + /** 带宽 */ + @NotEmpty + @UCloudParam("Bandwidth") + private Integer bandwidth; + + /** 计费类型,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费 */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 计费时长,默认 1 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** 计费模式. 枚举值:"Traffic", 流量计费模式; 否则 带宽计费模式; */ + @UCloudParam("PayMode") + private String payMode; + + /** 代金劵 */ + @UCloudParam("CouponId") + private String couponId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getPeer1() { + return peer1; + } + + public void setPeer1(String peer1) { + this.peer1 = peer1; + } + + public String getPeer2() { + return peer2; + } + + public void setPeer2(String peer2) { + this.peer2 = peer2; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getPayMode() { + return payMode; + } + + public void setPayMode(String payMode) { + this.payMode = payMode; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNResponse.java new file mode 100644 index 00000000..2c14cd5d --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/AllocateUDPNResponse.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.udpn.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class AllocateUDPNResponse extends Response { + + /** 资源名称 */ + @SerializedName("UDPNId") + private String udpnId; + + public String getUDPNId() { + return udpnId; + } + + public void setUDPNId(String udpnId) { + this.udpnId = udpnId; + } +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNRequest.java new file mode 100644 index 00000000..efe6fcf2 --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNRequest.java @@ -0,0 +1,83 @@ +/** + * 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.udpn.models; + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeUDPNRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 申请到的 UDPN 资源 ID。若为空,则查询该用户在机房所有的专线信息。非默认项目资源,需填写ProjectId */ + @UCloudParam("UDPNId") + private String udpnId; + + /** 列表起始位置偏移量,默认为 0 */ + @UCloudParam("Offset") + private Integer offset; + + /** 返回数据长度,默认为 20 */ + @UCloudParam("Limit") + private Integer limit; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUDPNId() { + return udpnId; + } + + public void setUDPNId(String udpnId) { + this.udpnId = udpnId; + } + + 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-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNResponse.java new file mode 100644 index 00000000..abf97424 --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/DescribeUDPNResponse.java @@ -0,0 +1,132 @@ +/** + * 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.udpn.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class DescribeUDPNResponse extends Response { + + /** 查询到的总数量 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** UDPN详情 */ + @SerializedName("DataSet") + private List dataSet; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class UDPNData extends Response { + + /** UDPN 资源短 ID */ + @SerializedName("UDPNId") + private String udpnId; + + /** 可用区域 1 */ + @SerializedName("Peer1") + private String peer1; + + /** 可用区域 2 */ + @SerializedName("Peer2") + private String peer2; + + /** 计费类型 */ + @SerializedName("ChargeType") + private String chargeType; + + /** 带宽 */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + /** unix 时间戳 创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** unix 时间戳 到期时间 */ + @SerializedName("ExpireTime") + private Integer expireTime; + + public String getUDPNId() { + return udpnId; + } + + public void setUDPNId(String udpnId) { + this.udpnId = udpnId; + } + + public String getPeer1() { + return peer1; + } + + public void setPeer1(String peer1) { + this.peer1 = peer1; + } + + public String getPeer2() { + return peer2; + } + + public void setPeer2(String peer2) { + this.peer2 = peer2; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + } +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListRequest.java new file mode 100644 index 00000000..6e0cd948 --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListRequest.java @@ -0,0 +1,44 @@ +/** + * 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.udpn.models; + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUDPNLineListRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + @UCloudParam("Region") + private String region; + + /** */ + @UCloudParam("ProjectId") + private String projectId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListResponse.java new file mode 100644 index 00000000..1b96f2b5 --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNLineListResponse.java @@ -0,0 +1,90 @@ +/** + * 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.udpn.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; +import java.util.List; + +public class GetUDPNLineListResponse extends Response { + + /** DataSet中的元素个数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 当前支持的专线线路详细信息,详见UDPNLineSet */ + @SerializedName("DataSet") + private List dataSet; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class UDPNLineSet extends Response { + + /** + * 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, + * 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky + */ + @SerializedName("LocalRegion") + private String localRegion; + + /** + * 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, + * 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky + */ + @SerializedName("RemoteRegion") + private String remoteRegion; + + /** 线路带宽上限,单位 M */ + @SerializedName("BandwidthUpperLimit") + private Integer bandwidthUpperLimit; + + public String getLocalRegion() { + return localRegion; + } + + public void setLocalRegion(String localRegion) { + this.localRegion = localRegion; + } + + public String getRemoteRegion() { + return remoteRegion; + } + + public void setRemoteRegion(String remoteRegion) { + this.remoteRegion = remoteRegion; + } + + public Integer getBandwidthUpperLimit() { + return bandwidthUpperLimit; + } + + public void setBandwidthUpperLimit(Integer bandwidthUpperLimit) { + this.bandwidthUpperLimit = bandwidthUpperLimit; + } + } +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceRequest.java new file mode 100644 index 00000000..00f4ed0b --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceRequest.java @@ -0,0 +1,114 @@ +/** + * 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.udpn.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUDPNPriceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + @UCloudParam("Region") + private String region; + + /** + * 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, + * 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky + */ + @NotEmpty + @UCloudParam("Peer1") + private String peer1; + + /** + * 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, + * 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky + */ + @NotEmpty + @UCloudParam("Peer2") + private String peer2; + + /** 带宽信息 */ + @NotEmpty + @UCloudParam("Bandwidth") + private Integer bandwidth; + + /** 计费类型 */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买时长 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** PayMode,枚举值,Bandwidth:带宽;Traffic:流量 默认不填写:带宽 */ + @UCloudParam("PayMode") + private String payMode; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getPeer1() { + return peer1; + } + + public void setPeer1(String peer1) { + this.peer1 = peer1; + } + + public String getPeer2() { + return peer2; + } + + public void setPeer2(String peer2) { + this.peer2 = peer2; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getPayMode() { + return payMode; + } + + public void setPayMode(String payMode) { + this.payMode = payMode; + } +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceResponse.java new file mode 100644 index 00000000..a6cbb8bb --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNPriceResponse.java @@ -0,0 +1,44 @@ +/** + * 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.udpn.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class GetUDPNPriceResponse extends Response { + + /** 资源有效期 unix 时间戳 */ + @SerializedName("PurchaseValue") + private Integer purchaseValue; + + /** 专线价格 */ + @SerializedName("Price") + private Double price; + + public Integer getPurchaseValue() { + return purchaseValue; + } + + public void setPurchaseValue(Integer purchaseValue) { + this.purchaseValue = purchaseValue; + } + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceRequest.java new file mode 100644 index 00000000..81d71a6e --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceRequest.java @@ -0,0 +1,71 @@ +/** + * 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.udpn.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUDPNUpgradePriceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + @UCloudParam("Region") + private String region; + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** 专线带宽资源 Id */ + @NotEmpty + @UCloudParam("UDPNId") + private String udpnId; + + /** 带宽 */ + @NotEmpty + @UCloudParam("Bandwidth") + private Integer bandwidth; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUDPNId() { + return udpnId; + } + + public void setUDPNId(String udpnId) { + this.udpnId = udpnId; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceResponse.java new file mode 100644 index 00000000..a5c93f3e --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/GetUDPNUpgradePriceResponse.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.udpn.models; + +import cn.ucloud.common.response.Response; +import com.google.gson.annotations.SerializedName; + +public class GetUDPNUpgradePriceResponse extends Response { + + /** 升级后的价格 */ + @SerializedName("Price") + private Double price; + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthRequest.java new file mode 100644 index 00000000..d039e02a --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthRequest.java @@ -0,0 +1,71 @@ +/** + * 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.udpn.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyUDPNBandwidthRequest extends Request { + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** UDPN Id */ + @NotEmpty + @UCloudParam("UDPNId") + private String udpnId; + + /** 调整后专线带宽, 单位为Mbps,取值范围为大于等于2且小于等于1000([2-1000])的整数 */ + @NotEmpty + @UCloudParam("Bandwidth") + private Integer bandwidth; + + /** 代金劵 ID */ + @UCloudParam("CouponId") + private String couponId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUDPNId() { + return udpnId; + } + + public void setUDPNId(String udpnId) { + this.udpnId = udpnId; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthResponse.java new file mode 100644 index 00000000..962aeca6 --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ModifyUDPNBandwidthResponse.java @@ -0,0 +1,18 @@ +/** + * 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.udpn.models; + +import cn.ucloud.common.response.Response; + +public class ModifyUDPNBandwidthResponse extends Response {} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNRequest.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNRequest.java new file mode 100644 index 00000000..2b213c7f --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNRequest.java @@ -0,0 +1,58 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udpn.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ReleaseUDPNRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + @UCloudParam("Region") + private String region; + + /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + @UCloudParam("ProjectId") + private String projectId; + + /** UDPN 资源 Id */ + @NotEmpty + @UCloudParam("UDPNId") + private String udpnId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getUDPNId() { + return udpnId; + } + + public void setUDPNId(String udpnId) { + this.udpnId = udpnId; + } +} diff --git a/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNResponse.java b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNResponse.java new file mode 100644 index 00000000..6528a58f --- /dev/null +++ b/ucloud-sdk-java-udpn/src/main/java/cn/ucloud/udpn/models/ReleaseUDPNResponse.java @@ -0,0 +1,18 @@ +/** + * 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.udpn.models; + +import cn.ucloud.common.response.Response; + +public class ReleaseUDPNResponse extends Response {} diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcHolderRequest.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcHolderRequest.java index 64346e94..804f72ea 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcHolderRequest.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/CreateUEcHolderRequest.java @@ -219,6 +219,60 @@ public void setStorage(List storage) { this.storage = storage; } + public static class Storage extends Request { + + /** 存储卷挂载路径 */ + @UCloudParam("Path") + private String path; + + /** 存储卷资源id */ + @UCloudParam("ResourceId") + private String resourceId; + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + } + + public static class Image extends Request { + + /** 镜像用户名和密码(如镜像名:密码) */ + @UCloudParam("Message") + private String message; + + /** 镜像仓库地址 */ + @UCloudParam("StoreAddress") + private String storeAddress; + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getStoreAddress() { + return storeAddress; + } + + public void setStoreAddress(String storeAddress) { + this.storeAddress = storeAddress; + } + } + public static class Pack extends Request { /** 容器名称 */ @@ -329,58 +383,4 @@ public void setConfigDict(String configDict) { this.configDict = configDict; } } - - public static class Storage extends Request { - - /** 存储卷挂载路径 */ - @UCloudParam("Path") - private String path; - - /** 存储卷资源id */ - @UCloudParam("ResourceId") - private String resourceId; - - public String getPath() { - return path; - } - - public void setPath(String path) { - this.path = path; - } - - public String getResourceId() { - return resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - } - - public static class Image extends Request { - - /** 镜像用户名和密码(如镜像名:密码) */ - @UCloudParam("Message") - private String message; - - /** 镜像仓库地址 */ - @UCloudParam("StoreAddress") - private String storeAddress; - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public String getStoreAddress() { - return storeAddress; - } - - public void setStoreAddress(String storeAddress) { - this.storeAddress = storeAddress; - } - } } diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderResponse.java index f3387a5e..dc938d64 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcHolderResponse.java @@ -43,30 +43,81 @@ public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - public static class IpList extends Response { + public static class ImageList extends Response { - /** 外网ip */ - @SerializedName("Ip") - private String ip; + /** 仓库地址 */ + @SerializedName("StoreAddr") + private String storeAddr; - /** 运营商 */ - @SerializedName("Isp") - private String isp; + /** 用户名称 */ + @SerializedName("UserName") + private String userName; - public String getIp() { - return ip; + /** 镜像密钥 */ + @SerializedName("ImageKey") + private String imageKey; + + public String getStoreAddr() { + return storeAddr; } - public void setIp(String ip) { - this.ip = ip; + public void setStoreAddr(String storeAddr) { + this.storeAddr = storeAddr; } - public String getIsp() { - return isp; + public String getUserName() { + return userName; } - public void setIsp(String isp) { - this.isp = isp; + public void setUserName(String userName) { + this.userName = userName; + } + + public String getImageKey() { + return imageKey; + } + + public void setImageKey(String imageKey) { + this.imageKey = imageKey; + } + } + + public static class CfgDictList extends Response { + + /** 名称 */ + @SerializedName("Name") + private String name; + + /** 挂载路径 */ + @SerializedName("MountPath") + private String mountPath; + + /** 资源id */ + @SerializedName("ResourceId") + private String resourceId; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getMountPath() { + return mountPath; + } + + public void setMountPath(String mountPath) { + this.mountPath = mountPath; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; } } @@ -193,6 +244,60 @@ public void setCfgDictList(List cfgDictList) { } } + public static class EnvList extends Response { + + /** 环境变量key值 */ + @SerializedName("Key") + private String key; + + /** 环境变量Value值 */ + @SerializedName("Value") + private String value; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + + public static class IpList extends Response { + + /** 外网ip */ + @SerializedName("Ip") + private String ip; + + /** 运营商 */ + @SerializedName("Isp") + private String isp; + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public String getIsp() { + return isp; + } + + public void setIsp(String isp) { + this.isp = isp; + } + } + public static class HolderList extends Response { /** 容器组资源id */ @@ -460,45 +565,6 @@ public void setImageList(List imageList) { } } - public static class ImageList extends Response { - - /** 仓库地址 */ - @SerializedName("StoreAddr") - private String storeAddr; - - /** 用户名称 */ - @SerializedName("UserName") - private String userName; - - /** 镜像密钥 */ - @SerializedName("ImageKey") - private String imageKey; - - public String getStoreAddr() { - return storeAddr; - } - - public void setStoreAddr(String storeAddr) { - this.storeAddr = storeAddr; - } - - public String getUserName() { - return userName; - } - - public void setUserName(String userName) { - this.userName = userName; - } - - public String getImageKey() { - return imageKey; - } - - public void setImageKey(String imageKey) { - this.imageKey = imageKey; - } - } - public static class StorVolumeInfo extends Response { /** 名称 */ @@ -549,70 +615,4 @@ public void setDiskSize(Integer diskSize) { this.diskSize = diskSize; } } - - public static class CfgDictList extends Response { - - /** 名称 */ - @SerializedName("Name") - private String name; - - /** 挂载路径 */ - @SerializedName("MountPath") - private String mountPath; - - /** 资源id */ - @SerializedName("ResourceId") - private String resourceId; - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getMountPath() { - return mountPath; - } - - public void setMountPath(String mountPath) { - this.mountPath = mountPath; - } - - public String getResourceId() { - return resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - } - - public static class EnvList extends Response { - - /** 环境变量key值 */ - @SerializedName("Key") - private String key; - - /** 环境变量Value值 */ - @SerializedName("Value") - private String value; - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - } } diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostResponse.java index f6609af8..89440ae4 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/DescribeUEcVHostResponse.java @@ -43,45 +43,6 @@ public void setNodeList(List nodeList) { this.nodeList = nodeList; } - public static class NodeIpList extends Response { - - /** 外网ip */ - @SerializedName("Ip") - private String ip; - - /** 运营商 */ - @SerializedName("Isp") - private String isp; - - /** 运营商名称 */ - @SerializedName("IspName") - private String ispName; - - public String getIp() { - return ip; - } - - public void setIp(String ip) { - this.ip = ip; - } - - public String getIsp() { - return isp; - } - - public void setIsp(String isp) { - this.isp = isp; - } - - public String getIspName() { - return ispName; - } - - public void setIspName(String ispName) { - this.ispName = ispName; - } - } - public static class NodeInfo extends Response { /** 节点名称 */ @@ -336,4 +297,43 @@ public void setInnerIps(List innerIps) { this.innerIps = innerIps; } } + + public static class NodeIpList extends Response { + + /** 外网ip */ + @SerializedName("Ip") + private String ip; + + /** 运营商 */ + @SerializedName("Isp") + private String isp; + + /** 运营商名称 */ + @SerializedName("IspName") + private String ispName; + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public String getIsp() { + return isp; + } + + public void setIsp(String isp) { + this.isp = isp; + } + + public String getIspName() { + return ispName; + } + + public void setIspName(String ispName) { + this.ispName = ispName; + } + } } diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderMetricsResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderMetricsResponse.java index caa051c9..390287f4 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderMetricsResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcHolderMetricsResponse.java @@ -31,33 +31,6 @@ public void setDataSets(MetricisDataSet dataSets) { this.dataSets = dataSets; } - public static class MonitorInfo extends Response { - - /** 时间戳 */ - @SerializedName("TimeStamp") - private Integer timeStamp; - - /** 值 */ - @SerializedName("Value") - private Integer value; - - public Integer getTimeStamp() { - return timeStamp; - } - - public void setTimeStamp(Integer timeStamp) { - this.timeStamp = timeStamp; - } - - public Integer getValue() { - return value; - } - - public void setValue(Integer value) { - this.value = value; - } - } - public static class MetricisDataSet extends Response { /** cpu利用率(详情参考MonitorInfo) */ @@ -132,4 +105,31 @@ public void setNICIn(List nicIn) { this.nicIn = nicIn; } } + + public static class MonitorInfo extends Response { + + /** 时间戳 */ + @SerializedName("TimeStamp") + private Integer timeStamp; + + /** 值 */ + @SerializedName("Value") + private Integer value; + + public Integer getTimeStamp() { + return timeStamp; + } + + public void setTimeStamp(Integer timeStamp) { + this.timeStamp = timeStamp; + } + + public Integer getValue() { + return value; + } + + public void setValue(Integer value) { + this.value = value; + } + } } diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCVHostDataResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCVHostDataResponse.java index 405c6249..654c636f 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCVHostDataResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcIDCVHostDataResponse.java @@ -31,33 +31,6 @@ public void setDataSets(DataSet dataSets) { this.dataSets = dataSets; } - public static class MonitorInfo extends Response { - - /** 时间戳 */ - @SerializedName("TimeStamp") - private Integer timeStamp; - - /** 值 */ - @SerializedName("Value") - private Integer value; - - public Integer getTimeStamp() { - return timeStamp; - } - - public void setTimeStamp(Integer timeStamp) { - this.timeStamp = timeStamp; - } - - public Integer getValue() { - return value; - } - - public void setValue(Integer value) { - this.value = value; - } - } - public static class DataSet extends Response { /** cpu使用率 */ @@ -180,4 +153,31 @@ public void setDiskWriteOps(List diskWriteOps) { this.diskWriteOps = diskWriteOps; } } + + public static class MonitorInfo extends Response { + + /** 时间戳 */ + @SerializedName("TimeStamp") + private Integer timeStamp; + + /** 值 */ + @SerializedName("Value") + private Integer value; + + public Integer getTimeStamp() { + return timeStamp; + } + + public void setTimeStamp(Integer timeStamp) { + this.timeStamp = timeStamp; + } + + public Integer getValue() { + return value; + } + + public void setValue(Integer value) { + this.value = value; + } + } } diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcImageResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcImageResponse.java index 5a922b74..d0e83e9f 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcImageResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcImageResponse.java @@ -43,33 +43,6 @@ public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - public static class DeployImageInfo extends Response { - - /** 机房ID */ - @SerializedName("IdcId") - private String idcId; - - /** 镜像状态 1-可用, 2-不可用, 3-获取中, 4-转换中, 5-部署中 */ - @SerializedName("State") - private Integer state; - - public String getIdcId() { - return idcId; - } - - public void setIdcId(String idcId) { - this.idcId = idcId; - } - - public Integer getState() { - return state; - } - - public void setState(Integer state) { - this.state = state; - } - } - public static class ImageInfo extends Response { /** 镜像ID */ @@ -192,4 +165,31 @@ public void setGpu(Integer gpu) { this.gpu = gpu; } } + + public static class DeployImageInfo extends Response { + + /** 机房ID */ + @SerializedName("IdcId") + private String idcId; + + /** 镜像状态 1-可用, 2-不可用, 3-获取中, 4-转换中, 5-部署中 */ + @SerializedName("State") + private Integer state; + + public String getIdcId() { + return idcId; + } + + public void setIdcId(String idcId) { + this.idcId = idcId; + } + + public Integer getState() { + return state; + } + + public void setState(Integer state) { + this.state = state; + } + } } diff --git a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostDataResponse.java b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostDataResponse.java index a9f4c9e5..46416f9c 100644 --- a/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostDataResponse.java +++ b/ucloud-sdk-java-uec/src/main/java/cn/ucloud/uec/models/GetUEcVHostDataResponse.java @@ -31,33 +31,6 @@ public void setDataSets(DataSet dataSets) { this.dataSets = dataSets; } - public static class MonitorInfo extends Response { - - /** 时间戳 */ - @SerializedName("TimeStamp") - private Integer timeStamp; - - /** 值 */ - @SerializedName("Value") - private Integer value; - - public Integer getTimeStamp() { - return timeStamp; - } - - public void setTimeStamp(Integer timeStamp) { - this.timeStamp = timeStamp; - } - - public Integer getValue() { - return value; - } - - public void setValue(Integer value) { - this.value = value; - } - } - public static class DataSet extends Response { /** cpu使用率 */ @@ -180,4 +153,31 @@ public void setDiskWriteOps(List diskWriteOps) { this.diskWriteOps = diskWriteOps; } } + + public static class MonitorInfo extends Response { + + /** 时间戳 */ + @SerializedName("TimeStamp") + private Integer timeStamp; + + /** 值 */ + @SerializedName("Value") + private Integer value; + + public Integer getTimeStamp() { + return timeStamp; + } + + public void setTimeStamp(Integer timeStamp) { + this.timeStamp = timeStamp; + } + + public Integer getValue() { + return value; + } + + public void setValue(Integer value) { + this.value = value; + } + } } diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileDailyReportResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileDailyReportResponse.java index d51aca53..414672f6 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileDailyReportResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileDailyReportResponse.java @@ -31,33 +31,6 @@ public void setDataSet(List dataSet) { this.dataSet = dataSet; } - public static class UFileReportItem extends Response { - - /** 总消费情况 */ - @SerializedName("Total") - private List total; - - /** 日消费情况 */ - @SerializedName("Daily") - private List daily; - - public List getTotal() { - return total; - } - - public void setTotal(List total) { - this.total = total; - } - - public List getDaily() { - return daily; - } - - public void setDaily(List daily) { - this.daily = daily; - } - } - public static class UFileDailyReportItem extends Response { /** 标准存储量;单位byte */ @@ -193,6 +166,33 @@ public void setApiTimes(Double apiTimes) { } } + public static class UFileReportItem extends Response { + + /** 总消费情况 */ + @SerializedName("Total") + private List total; + + /** 日消费情况 */ + @SerializedName("Daily") + private List daily; + + public List getTotal() { + return total; + } + + public void setTotal(List total) { + this.total = total; + } + + public List getDaily() { + return daily; + } + + public void setDaily(List daily) { + this.daily = daily; + } + } + public static class UFileTotalReportItem extends Response { /** 下载流量:单位byte;国内无此字段 */ diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaInfoResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaInfoResponse.java index d887b883..8fe14fdc 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaInfoResponse.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/GetUFileQuotaInfoResponse.java @@ -31,6 +31,21 @@ public void setDataSet(List dataSet) { this.dataSet = dataSet; } + public static class UFileQuotaLeft extends Response { + + /** 配额剩余量 */ + @SerializedName("Left") + private Double left; + + public Double getLeft() { + return left; + } + + public void setLeft(Double left) { + this.left = left; + } + } + public static class UFileQuotaDataSetItem extends Response { /** 可用地域 */ @@ -93,19 +108,4 @@ public void setRequestCnt(UFileQuotaLeft requestCnt) { this.requestCnt = requestCnt; } } - - public static class UFileQuotaLeft extends Response { - - /** 配额剩余量 */ - @SerializedName("Left") - private Double left; - - public Double getLeft() { - return left; - } - - public void setLeft(Double left) { - this.left = left; - } - } } diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceRequest.java index df8e0d02..7dd6592c 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceRequest.java @@ -456,69 +456,88 @@ public void setCouponId(String couponId) { this.couponId = couponId; } - public static class NetworkInterfaceEIP extends Request { + public static class Disks extends Request { - /** - * 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: - * 流量计费[1-300],带宽计费[1-800] - */ - @UCloudParam("Bandwidth") - private Integer bandwidth; + /** 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 */ + @NotEmpty + @UCloudParam("IsBoot") + private String isBoot; - /** - * 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. - * "Free":免费带宽模式,默认为 "Bandwidth" - */ - @UCloudParam("PayMode") - private String payMode; + /** 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ + @NotEmpty + @UCloudParam("Type") + private String type; - /** 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效 */ - @UCloudParam("ShareBandwidthId") - private String shareBandwidthId; + /** 磁盘大小,单位GB,必须是10GB的整数倍。请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ + @NotEmpty + @UCloudParam("Size") + private Integer size; /** - * 【若绑定EIP,此参数必填】弹性IP的线路。枚举值: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: - * Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: - * International kr-seoul:International us-ws:International ge-fra:International - * sg:International tw-kh:International.其他海外线路均为 International + * 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 + * [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE */ - @UCloudParam("OperatorName") - private String operatorName; + @UCloudParam("BackupType") + private String backupType; - /** 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。 */ + /** 【功能仅部分可用区开放,详询技术支持】磁盘是否加密。加密:true, 不加密: false 加密必须传入对应的的KmsKeyId,默认值false */ + @UCloudParam("Encrypted") + private Boolean encrypted; + + /** 【功能仅部分可用区开放,详询技术支持】kms key id。选择加密盘时必填。 */ + @UCloudParam("KmsKeyId") + private String kmsKeyId; + + /** 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看 */ @UCloudParam("CouponId") private String couponId; - public Integer getBandwidth() { - return bandwidth; + public String getIsBoot() { + return isBoot; } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; + public void setIsBoot(String isBoot) { + this.isBoot = isBoot; } - public String getPayMode() { - return payMode; + public String getType() { + return type; } - public void setPayMode(String payMode) { - this.payMode = payMode; + public void setType(String type) { + this.type = type; } - public String getShareBandwidthId() { - return shareBandwidthId; + public Integer getSize() { + return size; } - public void setShareBandwidthId(String shareBandwidthId) { - this.shareBandwidthId = shareBandwidthId; + public void setSize(Integer size) { + this.size = size; } - public String getOperatorName() { - return operatorName; + public String getBackupType() { + return backupType; } - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; + public void setBackupType(String backupType) { + this.backupType = backupType; + } + + public Boolean getEncrypted() { + return encrypted; + } + + public void setEncrypted(Boolean encrypted) { + this.encrypted = encrypted; + } + + public String getKmsKeyId() { + return kmsKeyId; + } + + public void setKmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; } public String getCouponId() { @@ -569,90 +588,69 @@ public void setCreateCernetIp(Boolean createCernetIp) { } } - public static class NetworkInterfaceIPv6 extends Request {} - - public static class Disks extends Request { - - /** 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 */ - @NotEmpty - @UCloudParam("IsBoot") - private String isBoot; - - /** 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ - @NotEmpty - @UCloudParam("Type") - private String type; + public static class NetworkInterfaceEIP extends Request { - /** 磁盘大小,单位GB,必须是10GB的整数倍。请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ - @NotEmpty - @UCloudParam("Size") - private Integer size; + /** + * 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: + * 流量计费[1-300],带宽计费[1-800] + */ + @UCloudParam("Bandwidth") + private Integer bandwidth; /** - * 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 - * [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE + * 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. + * "Free":免费带宽模式,默认为 "Bandwidth" */ - @UCloudParam("BackupType") - private String backupType; + @UCloudParam("PayMode") + private String payMode; - /** 【功能仅部分可用区开放,详询技术支持】磁盘是否加密。加密:true, 不加密: false 加密必须传入对应的的KmsKeyId,默认值false */ - @UCloudParam("Encrypted") - private Boolean encrypted; + /** 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效 */ + @UCloudParam("ShareBandwidthId") + private String shareBandwidthId; - /** 【功能仅部分可用区开放,详询技术支持】kms key id。选择加密盘时必填。 */ - @UCloudParam("KmsKeyId") - private String kmsKeyId; + /** + * 【若绑定EIP,此参数必填】弹性IP的线路。枚举值: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: + * Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: + * International kr-seoul:International us-ws:International ge-fra:International + * sg:International tw-kh:International.其他海外线路均为 International + */ + @UCloudParam("OperatorName") + private String operatorName; - /** 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看 */ + /** 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。 */ @UCloudParam("CouponId") private String couponId; - public String getIsBoot() { - return isBoot; - } - - public void setIsBoot(String isBoot) { - this.isBoot = isBoot; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public Integer getSize() { - return size; + public Integer getBandwidth() { + return bandwidth; } - public void setSize(Integer size) { - this.size = size; + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; } - public String getBackupType() { - return backupType; + public String getPayMode() { + return payMode; } - public void setBackupType(String backupType) { - this.backupType = backupType; + public void setPayMode(String payMode) { + this.payMode = payMode; } - public Boolean getEncrypted() { - return encrypted; + public String getShareBandwidthId() { + return shareBandwidthId; } - public void setEncrypted(Boolean encrypted) { - this.encrypted = encrypted; + public void setShareBandwidthId(String shareBandwidthId) { + this.shareBandwidthId = shareBandwidthId; } - public String getKmsKeyId() { - return kmsKeyId; + public String getOperatorName() { + return operatorName; } - public void setKmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; } public String getCouponId() { @@ -664,6 +662,10 @@ public void setCouponId(String couponId) { } } + public static class Volumes extends Request {} + + public static class NetworkInterfaceIPv6 extends Request {} + public static class Features extends Request { /** 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启,仅与 NetCapability Normal 兼容。 */ @@ -678,6 +680,4 @@ public void setUNI(Boolean uni) { this.uni = uni; } } - - public static class Volumes extends Request {} } diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstancePriceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstancePriceRequest.java index 57945c5e..48590aef 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstancePriceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostInstancePriceRequest.java @@ -249,8 +249,6 @@ public void setVirtualGpu(VirtualGpu virtualGpu) { this.virtualGpu = virtualGpu; } - public static class VirtualGpu extends Request {} - public static class Volumes extends Request {} public static class Disks extends Request { @@ -309,4 +307,6 @@ public void setBackupType(String backupType) { this.backupType = backupType; } } + + public static class VirtualGpu extends Request {} } diff --git a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SClusterResponse.java b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SClusterResponse.java index 93a82b37..61445285 100644 --- a/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SClusterResponse.java +++ b/ucloud-sdk-java-uk8s/src/main/java/cn/ucloud/uk8s/models/DescribeUK8SClusterResponse.java @@ -43,14 +43,14 @@ public class DescribeUK8SClusterResponse extends Response { @SerializedName("ServiceCIDR") private String serviceCIDR; - /** Master节点配置信息,具体参考UhostInfo。托管版不返回该信息 */ - @SerializedName("MasterList") - private List masterList; - /** Master 节点数量 */ @SerializedName("MasterCount") private Integer masterCount; + /** Master节点配置信息,具体参考UhostInfo。托管版不返回该信息 */ + @SerializedName("MasterList") + private List masterList; + /** Node节点配置信息,具体参考UhostInfo */ @SerializedName("NodeList") private List nodeList; @@ -77,7 +77,7 @@ public class DescribeUK8SClusterResponse extends Response { /** kube-proxy配置 */ @SerializedName("KubeProxy") - private Object kubeProxy; + private KubeProxy kubeProxy; /** K8S版本 */ @SerializedName("Version") @@ -99,6 +99,10 @@ public class DescribeUK8SClusterResponse extends Response { @SerializedName("CACert") private String caCert; + /** Master配置预警:Normal正常; Warning 需要升级; Error 需要紧急升级; */ + @SerializedName("MasterResourceStatus") + private String masterResourceStatus; + public String getClusterName() { return clusterName; } @@ -147,14 +151,6 @@ public void setServiceCIDR(String serviceCIDR) { this.serviceCIDR = serviceCIDR; } - public List getMasterList() { - return masterList; - } - - public void setMasterList(List masterList) { - this.masterList = masterList; - } - public Integer getMasterCount() { return masterCount; } @@ -163,6 +159,14 @@ public void setMasterCount(Integer masterCount) { this.masterCount = masterCount; } + public List getMasterList() { + return masterList; + } + + public void setMasterList(List masterList) { + this.masterList = masterList; + } + public List getNodeList() { return nodeList; } @@ -211,11 +215,11 @@ public void setExternalApiServer(String externalApiServer) { this.externalApiServer = externalApiServer; } - public Object getKubeProxy() { + public KubeProxy getKubeProxy() { return kubeProxy; } - public void setKubeProxy(Object kubeProxy) { + public void setKubeProxy(KubeProxy kubeProxy) { this.kubeProxy = kubeProxy; } @@ -259,6 +263,29 @@ public void setCACert(String caCert) { this.caCert = caCert; } + public String getMasterResourceStatus() { + return masterResourceStatus; + } + + public void setMasterResourceStatus(String masterResourceStatus) { + this.masterResourceStatus = masterResourceStatus; + } + + public static class KubeProxy extends Response { + + /** KubeProxy模式,枚举值为[ipvs,iptables] */ + @SerializedName("Mode") + private String mode; + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + } + public static class UhostInfo extends Response { /** 所在机房 */ diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java index bf0b72dd..301cb1bd 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java @@ -53,6 +53,8 @@ import cn.ucloud.ulb.models.UpdateBackendAttributeResponse; import cn.ucloud.ulb.models.UpdatePolicyRequest; import cn.ucloud.ulb.models.UpdatePolicyResponse; +import cn.ucloud.ulb.models.UpdateSSLAttributeRequest; +import cn.ucloud.ulb.models.UpdateSSLAttributeResponse; import cn.ucloud.ulb.models.UpdateULBAttributeRequest; import cn.ucloud.ulb.models.UpdateULBAttributeResponse; import cn.ucloud.ulb.models.UpdateVServerAttributeRequest; @@ -270,6 +272,18 @@ public UpdatePolicyResponse updatePolicy(UpdatePolicyRequest request) throws UCl return (UpdatePolicyResponse) this.invoke(request, UpdatePolicyResponse.class); } + /** + * UpdateSSLAttribute - 更新SSL属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateSSLAttributeResponse updateSSLAttribute(UpdateSSLAttributeRequest request) + throws UCloudException { + request.setAction("UpdateSSLAttribute"); + return (UpdateSSLAttributeResponse) this.invoke(request, UpdateSSLAttributeResponse.class); + } + /** * UpdateULBAttribute - 更新负载均衡属性 * diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java index c0ecf572..7ca87ba1 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java @@ -51,6 +51,8 @@ import cn.ucloud.ulb.models.UpdateBackendAttributeResponse; import cn.ucloud.ulb.models.UpdatePolicyRequest; import cn.ucloud.ulb.models.UpdatePolicyResponse; +import cn.ucloud.ulb.models.UpdateSSLAttributeRequest; +import cn.ucloud.ulb.models.UpdateSSLAttributeResponse; import cn.ucloud.ulb.models.UpdateULBAttributeRequest; import cn.ucloud.ulb.models.UpdateULBAttributeResponse; import cn.ucloud.ulb.models.UpdateVServerAttributeRequest; @@ -208,6 +210,15 @@ public UpdateBackendAttributeResponse updateBackendAttribute( */ public UpdatePolicyResponse updatePolicy(UpdatePolicyRequest request) throws UCloudException; + /** + * UpdateSSLAttribute - 更新SSL属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateSSLAttributeResponse updateSSLAttribute(UpdateSSLAttributeRequest request) + throws UCloudException; + /** * UpdateULBAttribute - 更新负载均衡属性 * diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBResponse.java index 9539d440..193a3503 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBResponse.java @@ -43,202 +43,62 @@ public void setDataSet(List dataSet) { this.dataSet = dataSet; } - public static class ULBIPSet extends Response { - - /** 弹性IP的运营商信息,枚举值为: Bgp:BGP IP International:国际IP */ - @SerializedName("OperatorName") - private String operatorName; - - /** 弹性IP地址 */ - @SerializedName("EIP") - private String eip; - - /** 弹性IP的ID */ - @SerializedName("EIPId") - private String eipId; - - /** 弹性IP的带宽类型,枚举值:1 表示是共享带宽,0 普通带宽类型(暂未对外开放) */ - @SerializedName("BandwidthType") - private Integer bandwidthType; - - /** 弹性IP的带宽值(暂未对外开放) */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - public String getOperatorName() { - return operatorName; - } + public static class LoggerSet extends Response { - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; - } + /** ulb日志上传的bucket */ + @SerializedName("BucketName") + private String bucketName; - public String getEIP() { - return eip; - } + /** 上传到bucket使用的token的tokenid */ + @SerializedName("TokenID") + private String tokenID; - public void setEIP(String eip) { - this.eip = eip; - } + /** bucket的token名称 */ + @SerializedName("TokenName") + private String tokenName; - public String getEIPId() { - return eipId; + public String getBucketName() { + return bucketName; } - public void setEIPId(String eipId) { - this.eipId = eipId; + public void setBucketName(String bucketName) { + this.bucketName = bucketName; } - public Integer getBandwidthType() { - return bandwidthType; + public String getTokenID() { + return tokenID; } - public void setBandwidthType(Integer bandwidthType) { - this.bandwidthType = bandwidthType; + public void setTokenID(String tokenID) { + this.tokenID = tokenID; } - public Integer getBandwidth() { - return bandwidth; + public String getTokenName() { + return tokenName; } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; + public void setTokenName(String tokenName) { + this.tokenName = tokenName; } } - public static class ULBVServerSet extends Response { - - /** - * 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测, Customize -> UDP检查 - * - *

请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; - * 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize - */ - @SerializedName("MonitorType") - private String monitorType; - - /** 负载均衡实例的Id */ - @SerializedName("ULBId") - private String ulbId; - - /** 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名 */ - @SerializedName("Domain") - private String domain; - - /** 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径 */ - @SerializedName("Path") - private String path; - - /** 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文 */ - @SerializedName("RequestMsg") - private String requestMsg; - - /** 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文 */ - @SerializedName("ResponseMsg") - private String responseMsg; + public static class SSLBindedTargetSet extends Response { - /** VServer实例的Id */ + /** SSL证书绑定到的VServer的资源ID */ @SerializedName("VServerId") private String vServerId; - /** VServer实例的名字 */ + /** 对应的VServer的名字 */ @SerializedName("VServerName") private String vServerName; - /** VServer实例的协议。 枚举值为:HTTP,TCP,UDP,HTTPS。 */ - @SerializedName("Protocol") - private String protocol; - - /** VServer服务端口 */ - @SerializedName("FrontendPort") - private Integer frontendPort; - - /** - * VServer负载均衡的模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> - * 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口)。 - */ - @SerializedName("Method") - private String method; - - /** VServer会话保持方式。枚举值为: None -> 关闭会话保持; ServerInsert -> 自动生成; UserDefined -> 用户自定义。 */ - @SerializedName("PersistenceType") - private String persistenceType; - - /** 根据PersistenceType确定: None或ServerInsert,此字段为空; UserDefined,此字段展示用户自定义会话string。 */ - @SerializedName("PersistenceInfo") - private String persistenceInfo; - - /** 空闲连接的回收时间,单位:秒。 */ - @SerializedName("ClientTimeout") - private Integer clientTimeout; - - /** VServer的运行状态。枚举值: 0 -> rs全部运行正常;1 -> rs全部运行异常;2 -> rs部分运行异常。 */ - @SerializedName("Status") - private Integer status; - - /** VServer绑定的SSL证书信息,具体结构见下方 ULBSSLSet。 */ - @SerializedName("SSLSet") - private List sslSet; - - /** 后端资源信息列表,具体结构见下方 ULBBackendSet */ - @SerializedName("BackendSet") - private List backendSet; - - /** 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发 */ - @SerializedName("ListenType") - private String listenType; - - /** 内容转发信息列表,具体结构见下方 ULBPolicySet */ - @SerializedName("PolicySet") - private List policySet; - - public String getMonitorType() { - return monitorType; - } - - public void setMonitorType(String monitorType) { - this.monitorType = monitorType; - } - - public String getULBId() { - return ulbId; - } - - public void setULBId(String ulbId) { - this.ulbId = ulbId; - } - - public String getDomain() { - return domain; - } - - public void setDomain(String domain) { - this.domain = domain; - } - - public String getPath() { - return path; - } - - public void setPath(String path) { - this.path = path; - } - - public String getRequestMsg() { - return requestMsg; - } - - public void setRequestMsg(String requestMsg) { - this.requestMsg = requestMsg; - } - - public String getResponseMsg() { - return responseMsg; - } + /** VServer 所属的ULB实例的资源ID */ + @SerializedName("ULBId") + private String ulbId; - public void setResponseMsg(String responseMsg) { - this.responseMsg = responseMsg; - } + /** ULB实例的名称 */ + @SerializedName("ULBName") + private String ulbName; public String getVServerId() { return vServerId; @@ -256,92 +116,20 @@ public void setVServerName(String vServerName) { this.vServerName = vServerName; } - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol; - } - - public Integer getFrontendPort() { - return frontendPort; - } - - public void setFrontendPort(Integer frontendPort) { - this.frontendPort = frontendPort; - } - - public String getMethod() { - return method; - } - - public void setMethod(String method) { - this.method = method; - } - - public String getPersistenceType() { - return persistenceType; - } - - public void setPersistenceType(String persistenceType) { - this.persistenceType = persistenceType; - } - - public String getPersistenceInfo() { - return persistenceInfo; - } - - public void setPersistenceInfo(String persistenceInfo) { - this.persistenceInfo = persistenceInfo; - } - - public Integer getClientTimeout() { - return clientTimeout; - } - - public void setClientTimeout(Integer clientTimeout) { - this.clientTimeout = clientTimeout; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - public List getSSLSet() { - return sslSet; - } - - public void setSSLSet(List sslSet) { - this.sslSet = sslSet; - } - - public List getBackendSet() { - return backendSet; - } - - public void setBackendSet(List backendSet) { - this.backendSet = backendSet; - } - - public String getListenType() { - return listenType; + public String getULBId() { + return ulbId; } - public void setListenType(String listenType) { - this.listenType = listenType; + public void setULBId(String ulbId) { + this.ulbId = ulbId; } - public List getPolicySet() { - return policySet; + public String getULBName() { + return ulbName; } - public void setPolicySet(List policySet) { - this.policySet = policySet; + public void setULBName(String ulbName) { + this.ulbName = ulbName; } } @@ -459,134 +247,262 @@ public void setPrivateIP(String privateIP) { } } - public static class SSLBindedTargetSet extends Response { + public static class ULBBackendSet extends Response { - /** SSL证书绑定到的VServer的资源ID */ - @SerializedName("VServerId") - private String vServerId; + /** 后端资源实例的Id */ + @SerializedName("BackendId") + private String backendId; - /** 对应的VServer的名字 */ - @SerializedName("VServerName") - private String vServerName; + /** 资源实例的类型 */ + @SerializedName("ResourceType") + private String resourceType; - /** VServer 所属的ULB实例的资源ID */ - @SerializedName("ULBId") - private String ulbId; + /** 资源实例的资源Id */ + @SerializedName("ResourceId") + private String resourceId; - /** ULB实例的名称 */ - @SerializedName("ULBName") - private String ulbName; + /** 资源实例的资源名称 */ + @SerializedName("ResourceName") + private String resourceName; - public String getVServerId() { - return vServerId; + /** 资源绑定的虚拟网卡实例的类型 */ + @SerializedName("SubResourceType") + private String subResourceType; + + /** 资源绑定的虚拟网卡实例的资源Id */ + @SerializedName("SubResourceId") + private String subResourceId; + + /** 资源绑定的虚拟网卡实例的资源名称 */ + @SerializedName("SubResourceName") + private String subResourceName; + + /** 后端提供服务的内网IP */ + @SerializedName("PrivateIP") + private String privateIP; + + /** 后端提供服务的端口 */ + @SerializedName("Port") + private Integer port; + + /** 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用 */ + @SerializedName("Enabled") + private Integer enabled; + + /** 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常 */ + @SerializedName("Status") + private Integer status; + + /** 后端提供服务的资源所在的子网的ID */ + @SerializedName("SubnetId") + private String subnetId; + + /** + * 是否为backup,只有当vserver的Backup属性为1时才会有此字段,说明: + * + *

0:主rs 1:备rs + */ + @SerializedName("IsBackup") + private Integer isBackup; + + public String getBackendId() { + return backendId; } - public void setVServerId(String vServerId) { - this.vServerId = vServerId; + public void setBackendId(String backendId) { + this.backendId = backendId; } - public String getVServerName() { - return vServerName; + public String getResourceType() { + return resourceType; } - public void setVServerName(String vServerName) { - this.vServerName = vServerName; + public void setResourceType(String resourceType) { + this.resourceType = resourceType; } - public String getULBId() { - return ulbId; + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getSubResourceType() { + return subResourceType; + } + + public void setSubResourceType(String subResourceType) { + this.subResourceType = subResourceType; + } + + public String getSubResourceId() { + return subResourceId; + } + + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public String getSubResourceName() { + return subResourceName; + } + + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getPrivateIP() { + return privateIP; + } + + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public Integer getEnabled() { + return enabled; + } + + public void setEnabled(Integer enabled) { + this.enabled = enabled; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getSubnetId() { + return subnetId; } - public void setULBId(String ulbId) { - this.ulbId = ulbId; + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; } - public String getULBName() { - return ulbName; + public Integer getIsBackup() { + return isBackup; } - public void setULBName(String ulbName) { - this.ulbName = ulbName; + public void setIsBackup(Integer isBackup) { + this.isBackup = isBackup; } } - public static class ULBSet extends Response { + public static class ULBVServerSet extends Response { - /** 负载均衡的资源ID */ + /** + * 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测, Customize -> UDP检查 + * + *

请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; + * 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize + */ + @SerializedName("MonitorType") + private String monitorType; + + /** 负载均衡实例的Id */ @SerializedName("ULBId") private String ulbId; - /** 负载均衡的资源名称 */ - @SerializedName("Name") - private String name; + /** 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名 */ + @SerializedName("Domain") + private String domain; - /** 负载均衡的业务组名称 */ - @SerializedName("Tag") - private String tag; + /** 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径 */ + @SerializedName("Path") + private String path; - /** 负载均衡的备注 */ - @SerializedName("Remark") - private String remark; + /** 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文 */ + @SerializedName("RequestMsg") + private String requestMsg; - /** 带宽类型,枚举值为: 0,非共享带宽; 1,共享带宽 */ - @SerializedName("BandwidthType") - private Integer bandwidthType; + /** 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文 */ + @SerializedName("ResponseMsg") + private String responseMsg; - /** 带宽 */ - @SerializedName("Bandwidth") - private Integer bandwidth; + /** VServer实例的Id */ + @SerializedName("VServerId") + private String vServerId; - /** ULB的创建时间,格式为Unix Timestamp */ - @SerializedName("CreateTime") - private Integer createTime; + /** VServer实例的名字 */ + @SerializedName("VServerName") + private String vServerName; - /** ULB的详细信息列表,具体结构见下方 ULBIPSet */ - @SerializedName("IPSet") - private List ipSet; + /** VServer实例的协议。 枚举值为:HTTP,TCP,UDP,HTTPS。 */ + @SerializedName("Protocol") + private String protocol; - /** 负载均衡实例中存在的VServer实例列表,具体结构见下方 ULBVServerSet */ - @SerializedName("VServerSet") - private List vServerSet; + /** VServer服务端口 */ + @SerializedName("FrontendPort") + private Integer frontendPort; - /** ULB 的类型 */ - @SerializedName("ULBType") - private String ulbType; + /** + * VServer负载均衡的模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> + * 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口)。 + */ + @SerializedName("Method") + private String method; - /** ULB ip类型,枚举值:IPv6 / IPv4 (内部测试,暂未对外开放) */ - @SerializedName("IPVersion") - private String ipVersion; + /** VServer会话保持方式。枚举值为: None -> 关闭会话保持; ServerInsert -> 自动生成; UserDefined -> 用户自定义。 */ + @SerializedName("PersistenceType") + private String persistenceType; - /** ULB 监听器类型,枚举值:RequestProxy,请求代理; PacketsTransmit ,报文转发;Comprehensive,兼容型;Pending,未定型 */ - @SerializedName("ListenType") - private String listenType; + /** 根据PersistenceType确定: None或ServerInsert,此字段为空; UserDefined,此字段展示用户自定义会话string。 */ + @SerializedName("PersistenceInfo") + private String persistenceInfo; - /** ULB所在的VPC的ID */ - @SerializedName("VPCId") - private String vpcId; + /** 空闲连接的回收时间,单位:秒。 */ + @SerializedName("ClientTimeout") + private Integer clientTimeout; - /** ULB 为 InnerMode 时,ULB 所属的子网ID,默认为空 */ - @SerializedName("SubnetId") - private String subnetId; + /** VServer的运行状态。枚举值: 0 -> rs全部运行正常;1 -> rs全部运行异常;2 -> rs部分运行异常。 */ + @SerializedName("Status") + private Integer status; - /** ULB 所属的业务组ID */ - @SerializedName("BusinessId") - private String businessId; + /** VServer绑定的SSL证书信息,具体结构见下方 ULBSSLSet。 */ + @SerializedName("SSLSet") + private List sslSet; - /** ULB的内网IP,当ULBType为OuterMode时,该值为空 */ - @SerializedName("PrivateIP") - private String privateIP; + /** 后端资源信息列表,具体结构见下方 ULBBackendSet */ + @SerializedName("BackendSet") + private List backendSet; - /** 防火墙信息,具体结构见下方 FirewallSet */ - @SerializedName("FirewallSet") - private List firewallSet; + /** 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发 */ + @SerializedName("ListenType") + private String listenType; - /** ULB是否开启日志功能。0,关闭;1,开启 */ - @SerializedName("EnableLog") - private Integer enableLog; + /** 内容转发信息列表,具体结构见下方 ULBPolicySet */ + @SerializedName("PolicySet") + private List policySet; - /** 日志功能相关信息,仅当EnableLog为true时会返回,具体结构见下方 LoggerSet */ - @SerializedName("LogSet") - private LoggerSet logSet; + public String getMonitorType() { + return monitorType; + } + + public void setMonitorType(String monitorType) { + this.monitorType = monitorType; + } public String getULBId() { return ulbId; @@ -596,84 +512,124 @@ public void setULBId(String ulbId) { this.ulbId = ulbId; } - public String getName() { - return name; + public String getDomain() { + return domain; } - public void setName(String name) { - this.name = name; + public void setDomain(String domain) { + this.domain = domain; } - public String getTag() { - return tag; + public String getPath() { + return path; } - public void setTag(String tag) { - this.tag = tag; + public void setPath(String path) { + this.path = path; } - public String getRemark() { - return remark; + public String getRequestMsg() { + return requestMsg; } - public void setRemark(String remark) { - this.remark = remark; + public void setRequestMsg(String requestMsg) { + this.requestMsg = requestMsg; } - public Integer getBandwidthType() { - return bandwidthType; + public String getResponseMsg() { + return responseMsg; } - public void setBandwidthType(Integer bandwidthType) { - this.bandwidthType = bandwidthType; + public void setResponseMsg(String responseMsg) { + this.responseMsg = responseMsg; } - public Integer getBandwidth() { - return bandwidth; + public String getVServerId() { + return vServerId; } - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; + public void setVServerId(String vServerId) { + this.vServerId = vServerId; } - public Integer getCreateTime() { - return createTime; + public String getVServerName() { + return vServerName; } - public void setCreateTime(Integer createTime) { - this.createTime = createTime; + public void setVServerName(String vServerName) { + this.vServerName = vServerName; } - public List getIPSet() { - return ipSet; + public String getProtocol() { + return protocol; } - public void setIPSet(List ipSet) { - this.ipSet = ipSet; + public void setProtocol(String protocol) { + this.protocol = protocol; } - public List getVServerSet() { - return vServerSet; + public Integer getFrontendPort() { + return frontendPort; } - public void setVServerSet(List vServerSet) { - this.vServerSet = vServerSet; + public void setFrontendPort(Integer frontendPort) { + this.frontendPort = frontendPort; } - public String getULBType() { - return ulbType; + public String getMethod() { + return method; } - public void setULBType(String ulbType) { - this.ulbType = ulbType; + public void setMethod(String method) { + this.method = method; } - public String getIPVersion() { - return ipVersion; + public String getPersistenceType() { + return persistenceType; + } + + public void setPersistenceType(String persistenceType) { + this.persistenceType = persistenceType; + } + + public String getPersistenceInfo() { + return persistenceInfo; + } + + public void setPersistenceInfo(String persistenceInfo) { + this.persistenceInfo = persistenceInfo; + } + + public Integer getClientTimeout() { + return clientTimeout; + } + + public void setClientTimeout(Integer clientTimeout) { + this.clientTimeout = clientTimeout; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public List getSSLSet() { + return sslSet; + } + + public void setSSLSet(List sslSet) { + this.sslSet = sslSet; + } + + public List getBackendSet() { + return backendSet; } - public void setIPVersion(String ipVersion) { - this.ipVersion = ipVersion; + public void setBackendSet(List backendSet) { + this.backendSet = backendSet; } public String getListenType() { @@ -684,60 +640,75 @@ public void setListenType(String listenType) { this.listenType = listenType; } - public String getVPCId() { - return vpcId; + public List getPolicySet() { + return policySet; } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; + public void setPolicySet(List policySet) { + this.policySet = policySet; } + } - public String getSubnetId() { - return subnetId; - } + public static class ULBIPSet extends Response { - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } + /** 弹性IP的运营商信息,枚举值为: Bgp:BGP IP International:国际IP */ + @SerializedName("OperatorName") + private String operatorName; - public String getBusinessId() { - return businessId; + /** 弹性IP地址 */ + @SerializedName("EIP") + private String eip; + + /** 弹性IP的ID */ + @SerializedName("EIPId") + private String eipId; + + /** 弹性IP的带宽类型,枚举值:1 表示是共享带宽,0 普通带宽类型(暂未对外开放) */ + @SerializedName("BandwidthType") + private Integer bandwidthType; + + /** 弹性IP的带宽值(暂未对外开放) */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + public String getOperatorName() { + return operatorName; } - public void setBusinessId(String businessId) { - this.businessId = businessId; + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; } - public String getPrivateIP() { - return privateIP; + public String getEIP() { + return eip; } - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; + public void setEIP(String eip) { + this.eip = eip; } - public List getFirewallSet() { - return firewallSet; + public String getEIPId() { + return eipId; } - public void setFirewallSet(List firewallSet) { - this.firewallSet = firewallSet; + public void setEIPId(String eipId) { + this.eipId = eipId; } - public Integer getEnableLog() { - return enableLog; + public Integer getBandwidthType() { + return bandwidthType; } - public void setEnableLog(Integer enableLog) { - this.enableLog = enableLog; + public void setBandwidthType(Integer bandwidthType) { + this.bandwidthType = bandwidthType; } - public LoggerSet getLogSet() { - return logSet; + public Integer getBandwidth() { + return bandwidth; } - public void setLogSet(LoggerSet logSet) { - this.logSet = logSet; + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; } } @@ -852,150 +823,273 @@ public void setBackendSet(List backendSet) { } } - public static class ULBBackendSet extends Response { + public static class ULBSSLSet extends Response { - /** 后端资源实例的Id */ - @SerializedName("BackendId") - private String backendId; + /** SSL证书的Id */ + @SerializedName("SSLId") + private String sslId; - /** 资源实例的类型 */ - @SerializedName("ResourceType") - private String resourceType; + /** SSL证书的名字 */ + @SerializedName("SSLName") + private String sslName; - /** 资源实例的资源Id */ - @SerializedName("ResourceId") - private String resourceId; + /** SSL证书类型,暂时只有 Pem 一种类型 */ + @SerializedName("SSLType") + private String sslType; - /** 资源实例的资源名称 */ - @SerializedName("ResourceName") - private String resourceName; + /** SSL证书的内容 */ + @SerializedName("SSLContent") + private String sslContent; - /** 资源绑定的虚拟网卡实例的类型 */ - @SerializedName("SubResourceType") - private String subResourceType; + /** SSL证书的创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; - /** 资源绑定的虚拟网卡实例的资源Id */ - @SerializedName("SubResourceId") - private String subResourceId; + /** SSL证书的HASH值 */ + @SerializedName("HashValue") + private String hashValue; - /** 资源绑定的虚拟网卡实例的资源名称 */ - @SerializedName("SubResourceName") - private String subResourceName; + /** SSL证书绑定到的对象 */ + @SerializedName("BindedTargetSet") + private List bindedTargetSet; - /** 后端提供服务的内网IP */ + public String getSSLId() { + return sslId; + } + + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public String getSSLName() { + return sslName; + } + + public void setSSLName(String sslName) { + this.sslName = sslName; + } + + public String getSSLType() { + return sslType; + } + + public void setSSLType(String sslType) { + this.sslType = sslType; + } + + public String getSSLContent() { + return sslContent; + } + + public void setSSLContent(String sslContent) { + this.sslContent = sslContent; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getHashValue() { + return hashValue; + } + + public void setHashValue(String hashValue) { + this.hashValue = hashValue; + } + + public List getBindedTargetSet() { + return bindedTargetSet; + } + + public void setBindedTargetSet(List bindedTargetSet) { + this.bindedTargetSet = bindedTargetSet; + } + } + + public static class ULBSet extends Response { + + /** 负载均衡的资源ID */ + @SerializedName("ULBId") + private String ulbId; + + /** 负载均衡的资源名称 */ + @SerializedName("Name") + private String name; + + /** 负载均衡的业务组名称 */ + @SerializedName("Tag") + private String tag; + + /** 负载均衡的备注 */ + @SerializedName("Remark") + private String remark; + + /** 带宽类型,枚举值为: 0,非共享带宽; 1,共享带宽 */ + @SerializedName("BandwidthType") + private Integer bandwidthType; + + /** 带宽 */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + /** ULB的创建时间,格式为Unix Timestamp */ + @SerializedName("CreateTime") + private Integer createTime; + + /** ULB的详细信息列表,具体结构见下方 ULBIPSet */ + @SerializedName("IPSet") + private List ipSet; + + /** 负载均衡实例中存在的VServer实例列表,具体结构见下方 ULBVServerSet */ + @SerializedName("VServerSet") + private List vServerSet; + + /** ULB 的类型 */ + @SerializedName("ULBType") + private String ulbType; + + /** ULB ip类型,枚举值:IPv6 / IPv4 (内部测试,暂未对外开放) */ + @SerializedName("IPVersion") + private String ipVersion; + + /** ULB 监听器类型,枚举值:RequestProxy,请求代理; PacketsTransmit ,报文转发;Comprehensive,兼容型;Pending,未定型 */ + @SerializedName("ListenType") + private String listenType; + + /** ULB所在的VPC的ID */ + @SerializedName("VPCId") + private String vpcId; + + /** ULB 为 InnerMode 时,ULB 所属的子网ID,默认为空 */ + @SerializedName("SubnetId") + private String subnetId; + + /** ULB 所属的业务组ID */ + @SerializedName("BusinessId") + private String businessId; + + /** ULB的内网IP,当ULBType为OuterMode时,该值为空 */ @SerializedName("PrivateIP") private String privateIP; - /** 后端提供服务的端口 */ - @SerializedName("Port") - private Integer port; + /** 防火墙信息,具体结构见下方 FirewallSet */ + @SerializedName("FirewallSet") + private List firewallSet; + + /** ULB是否开启日志功能。0,关闭;1,开启 */ + @SerializedName("EnableLog") + private Integer enableLog; + + /** 日志功能相关信息,仅当EnableLog为true时会返回,具体结构见下方 LoggerSet */ + @SerializedName("LogSet") + private LoggerSet logSet; - /** 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用 */ - @SerializedName("Enabled") - private Integer enabled; + public String getULBId() { + return ulbId; + } - /** 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常 */ - @SerializedName("Status") - private Integer status; + public void setULBId(String ulbId) { + this.ulbId = ulbId; + } - /** 后端提供服务的资源所在的子网的ID */ - @SerializedName("SubnetId") - private String subnetId; + public String getName() { + return name; + } - /** - * 是否为backup,只有当vserver的Backup属性为1时才会有此字段,说明: - * - *

0:主rs 1:备rs - */ - @SerializedName("IsBackup") - private Integer isBackup; + public void setName(String name) { + this.name = name; + } - public String getBackendId() { - return backendId; + public String getTag() { + return tag; } - public void setBackendId(String backendId) { - this.backendId = backendId; + public void setTag(String tag) { + this.tag = tag; } - public String getResourceType() { - return resourceType; + public String getRemark() { + return remark; } - public void setResourceType(String resourceType) { - this.resourceType = resourceType; + public void setRemark(String remark) { + this.remark = remark; } - public String getResourceId() { - return resourceId; + public Integer getBandwidthType() { + return bandwidthType; } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; + public void setBandwidthType(Integer bandwidthType) { + this.bandwidthType = bandwidthType; } - public String getResourceName() { - return resourceName; + public Integer getBandwidth() { + return bandwidth; } - public void setResourceName(String resourceName) { - this.resourceName = resourceName; + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; } - public String getSubResourceType() { - return subResourceType; + public Integer getCreateTime() { + return createTime; } - public void setSubResourceType(String subResourceType) { - this.subResourceType = subResourceType; + public void setCreateTime(Integer createTime) { + this.createTime = createTime; } - public String getSubResourceId() { - return subResourceId; + public List getIPSet() { + return ipSet; } - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; + public void setIPSet(List ipSet) { + this.ipSet = ipSet; } - public String getSubResourceName() { - return subResourceName; + public List getVServerSet() { + return vServerSet; } - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; + public void setVServerSet(List vServerSet) { + this.vServerSet = vServerSet; } - public String getPrivateIP() { - return privateIP; + public String getULBType() { + return ulbType; } - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; + public void setULBType(String ulbType) { + this.ulbType = ulbType; } - public Integer getPort() { - return port; + public String getIPVersion() { + return ipVersion; } - public void setPort(Integer port) { - this.port = port; + public void setIPVersion(String ipVersion) { + this.ipVersion = ipVersion; } - public Integer getEnabled() { - return enabled; + public String getListenType() { + return listenType; } - public void setEnabled(Integer enabled) { - this.enabled = enabled; + public void setListenType(String listenType) { + this.listenType = listenType; } - public Integer getStatus() { - return status; + public String getVPCId() { + return vpcId; } - public void setStatus(Integer status) { - this.status = status; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; } public String getSubnetId() { @@ -1006,51 +1100,44 @@ public void setSubnetId(String subnetId) { this.subnetId = subnetId; } - public Integer getIsBackup() { - return isBackup; + public String getBusinessId() { + return businessId; } - public void setIsBackup(Integer isBackup) { - this.isBackup = isBackup; + public void setBusinessId(String businessId) { + this.businessId = businessId; } - } - - public static class LoggerSet extends Response { - - /** ulb日志上传的bucket */ - @SerializedName("BucketName") - private String bucketName; - /** 上传到bucket使用的token的tokenid */ - @SerializedName("TokenID") - private String tokenID; + public String getPrivateIP() { + return privateIP; + } - /** bucket的token名称 */ - @SerializedName("TokenName") - private String tokenName; + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } - public String getBucketName() { - return bucketName; + public List getFirewallSet() { + return firewallSet; } - public void setBucketName(String bucketName) { - this.bucketName = bucketName; + public void setFirewallSet(List firewallSet) { + this.firewallSet = firewallSet; } - public String getTokenID() { - return tokenID; + public Integer getEnableLog() { + return enableLog; } - public void setTokenID(String tokenID) { - this.tokenID = tokenID; + public void setEnableLog(Integer enableLog) { + this.enableLog = enableLog; } - public String getTokenName() { - return tokenName; + public LoggerSet getLogSet() { + return logSet; } - public void setTokenName(String tokenName) { - this.tokenName = tokenName; + public void setLogSet(LoggerSet logSet) { + this.logSet = logSet; } } @@ -1080,91 +1167,4 @@ public void setFirewallId(String firewallId) { this.firewallId = firewallId; } } - - public static class ULBSSLSet extends Response { - - /** SSL证书的Id */ - @SerializedName("SSLId") - private String sslId; - - /** SSL证书的名字 */ - @SerializedName("SSLName") - private String sslName; - - /** SSL证书类型,暂时只有 Pem 一种类型 */ - @SerializedName("SSLType") - private String sslType; - - /** SSL证书的内容 */ - @SerializedName("SSLContent") - private String sslContent; - - /** SSL证书的创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** SSL证书的HASH值 */ - @SerializedName("HashValue") - private String hashValue; - - /** SSL证书绑定到的对象 */ - @SerializedName("BindedTargetSet") - private List bindedTargetSet; - - public String getSSLId() { - return sslId; - } - - public void setSSLId(String sslId) { - this.sslId = sslId; - } - - public String getSSLName() { - return sslName; - } - - public void setSSLName(String sslName) { - this.sslName = sslName; - } - - public String getSSLType() { - return sslType; - } - - public void setSSLType(String sslType) { - this.sslType = sslType; - } - - public String getSSLContent() { - return sslContent; - } - - public void setSSLContent(String sslContent) { - this.sslContent = sslContent; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public String getHashValue() { - return hashValue; - } - - public void setHashValue(String hashValue) { - this.hashValue = hashValue; - } - - public List getBindedTargetSet() { - return bindedTargetSet; - } - - public void setBindedTargetSet(List bindedTargetSet) { - this.bindedTargetSet = bindedTargetSet; - } - } } diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleResponse.java index 66f0eaec..159ae514 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleResponse.java @@ -43,6 +43,45 @@ public void setDataSet(List dataSet) { this.dataSet = dataSet; } + public static class LoggerSet extends Response { + + /** ulb日志上传的bucket */ + @SerializedName("BucketName") + private String bucketName; + + /** 上传到bucket使用的token的tokenid */ + @SerializedName("TokenID") + private String tokenID; + + /** bucket的token名称 */ + @SerializedName("TokenName") + private String tokenName; + + public String getBucketName() { + return bucketName; + } + + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + public String getTokenID() { + return tokenID; + } + + public void setTokenID(String tokenID) { + this.tokenID = tokenID; + } + + public String getTokenName() { + return tokenName; + } + + public void setTokenName(String tokenName) { + this.tokenName = tokenName; + } + } + public static class FirewallSet extends Response { /** 防火墙名称 */ @@ -133,45 +172,6 @@ public void setBandwidth(Integer bandwidth) { } } - public static class LoggerSet extends Response { - - /** ulb日志上传的bucket */ - @SerializedName("BucketName") - private String bucketName; - - /** 上传到bucket使用的token的tokenid */ - @SerializedName("TokenID") - private String tokenID; - - /** bucket的token名称 */ - @SerializedName("TokenName") - private String tokenName; - - public String getBucketName() { - return bucketName; - } - - public void setBucketName(String bucketName) { - this.bucketName = bucketName; - } - - public String getTokenID() { - return tokenID; - } - - public void setTokenID(String tokenID) { - this.tokenID = tokenID; - } - - public String getTokenName() { - return tokenName; - } - - public void setTokenName(String tokenName) { - this.tokenName = tokenName; - } - } - public static class ULBSimpleSet extends Response { /** ULB 监听器类型,枚举值:RequestProxy,请求代理; PacketsTransmit ,报文转发;Comprehensive,兼容型;Pending,未定型 */ diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerResponse.java index b2084cc6..e973ff95 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerResponse.java @@ -130,6 +130,57 @@ public void setBindedTargetSet(List bindedTargetSet) { } } + public static class SSLBindedTargetSet extends Response { + + /** SSL证书绑定到的VServer的资源ID */ + @SerializedName("VServerId") + private String vServerId; + + /** 对应的VServer的名字 */ + @SerializedName("VServerName") + private String vServerName; + + /** VServer 所属的ULB实例的资源ID */ + @SerializedName("ULBId") + private String ulbId; + + /** ULB实例的名称 */ + @SerializedName("ULBName") + private String ulbName; + + public String getVServerId() { + return vServerId; + } + + public void setVServerId(String vServerId) { + this.vServerId = vServerId; + } + + public String getVServerName() { + return vServerName; + } + + public void setVServerName(String vServerName) { + this.vServerName = vServerName; + } + + public String getULBId() { + return ulbId; + } + + public void setULBId(String ulbId) { + this.ulbId = ulbId; + } + + public String getULBName() { + return ulbName; + } + + public void setULBName(String ulbName) { + this.ulbName = ulbName; + } + } + public static class ULBPolicySet extends Response { /** 内容转发规则中域名的匹配方式。枚举值:Regular,正则;Wildcard,泛域名 */ @@ -355,169 +406,6 @@ public void setPrivateIP(String privateIP) { } } - public static class ULBBackendSet extends Response { - - /** 后端资源实例的Id */ - @SerializedName("BackendId") - private String backendId; - - /** 资源实例的类型 */ - @SerializedName("ResourceType") - private String resourceType; - - /** 资源实例的资源Id */ - @SerializedName("ResourceId") - private String resourceId; - - /** 资源实例的资源名称 */ - @SerializedName("ResourceName") - private String resourceName; - - /** 资源绑定的虚拟网卡实例的类型 */ - @SerializedName("SubResourceType") - private String subResourceType; - - /** 资源绑定的虚拟网卡实例的资源Id */ - @SerializedName("SubResourceId") - private String subResourceId; - - /** 资源绑定的虚拟网卡实例的资源名称 */ - @SerializedName("SubResourceName") - private String subResourceName; - - /** 后端提供服务的内网IP */ - @SerializedName("PrivateIP") - private String privateIP; - - /** 后端提供服务的端口 */ - @SerializedName("Port") - private Integer port; - - /** 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用 */ - @SerializedName("Enabled") - private Integer enabled; - - /** 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常 */ - @SerializedName("Status") - private Integer status; - - /** 后端提供服务的资源所在的子网的ID */ - @SerializedName("SubnetId") - private String subnetId; - - /** - * 是否为backup,只有当vserver的Backup属性为1时才会有此字段,说明: - * - *

0:主rs 1:备rs - */ - @SerializedName("IsBackup") - private Integer isBackup; - - public String getBackendId() { - return backendId; - } - - public void setBackendId(String backendId) { - this.backendId = backendId; - } - - public String getResourceType() { - return resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public String getResourceId() { - return resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - public String getResourceName() { - return resourceName; - } - - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } - - public String getSubResourceType() { - return subResourceType; - } - - public void setSubResourceType(String subResourceType) { - this.subResourceType = subResourceType; - } - - public String getSubResourceId() { - return subResourceId; - } - - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } - - public String getSubResourceName() { - return subResourceName; - } - - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } - - public String getPrivateIP() { - return privateIP; - } - - public void setPrivateIP(String privateIP) { - this.privateIP = privateIP; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public Integer getEnabled() { - return enabled; - } - - public void setEnabled(Integer enabled) { - this.enabled = enabled; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - public String getSubnetId() { - return subnetId; - } - - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; - } - - public Integer getIsBackup() { - return isBackup; - } - - public void setIsBackup(Integer isBackup) { - this.isBackup = isBackup; - } - } - public static class ULBVServerSet extends Response { /** @@ -757,54 +645,166 @@ public void setPolicySet(List policySet) { } } - public static class SSLBindedTargetSet extends Response { + public static class ULBBackendSet extends Response { - /** SSL证书绑定到的VServer的资源ID */ - @SerializedName("VServerId") - private String vServerId; + /** 后端资源实例的Id */ + @SerializedName("BackendId") + private String backendId; - /** 对应的VServer的名字 */ - @SerializedName("VServerName") - private String vServerName; + /** 资源实例的类型 */ + @SerializedName("ResourceType") + private String resourceType; - /** VServer 所属的ULB实例的资源ID */ - @SerializedName("ULBId") - private String ulbId; + /** 资源实例的资源Id */ + @SerializedName("ResourceId") + private String resourceId; - /** ULB实例的名称 */ - @SerializedName("ULBName") - private String ulbName; + /** 资源实例的资源名称 */ + @SerializedName("ResourceName") + private String resourceName; - public String getVServerId() { - return vServerId; + /** 资源绑定的虚拟网卡实例的类型 */ + @SerializedName("SubResourceType") + private String subResourceType; + + /** 资源绑定的虚拟网卡实例的资源Id */ + @SerializedName("SubResourceId") + private String subResourceId; + + /** 资源绑定的虚拟网卡实例的资源名称 */ + @SerializedName("SubResourceName") + private String subResourceName; + + /** 后端提供服务的内网IP */ + @SerializedName("PrivateIP") + private String privateIP; + + /** 后端提供服务的端口 */ + @SerializedName("Port") + private Integer port; + + /** 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用 */ + @SerializedName("Enabled") + private Integer enabled; + + /** 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常 */ + @SerializedName("Status") + private Integer status; + + /** 后端提供服务的资源所在的子网的ID */ + @SerializedName("SubnetId") + private String subnetId; + + /** + * 是否为backup,只有当vserver的Backup属性为1时才会有此字段,说明: + * + *

0:主rs 1:备rs + */ + @SerializedName("IsBackup") + private Integer isBackup; + + public String getBackendId() { + return backendId; } - public void setVServerId(String vServerId) { - this.vServerId = vServerId; + public void setBackendId(String backendId) { + this.backendId = backendId; } - public String getVServerName() { - return vServerName; + public String getResourceType() { + return resourceType; } - public void setVServerName(String vServerName) { - this.vServerName = vServerName; + public void setResourceType(String resourceType) { + this.resourceType = resourceType; } - public String getULBId() { - return ulbId; + public String getResourceId() { + return resourceId; } - public void setULBId(String ulbId) { - this.ulbId = ulbId; + public void setResourceId(String resourceId) { + this.resourceId = resourceId; } - public String getULBName() { - return ulbName; + public String getResourceName() { + return resourceName; } - public void setULBName(String ulbName) { - this.ulbName = ulbName; + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getSubResourceType() { + return subResourceType; + } + + public void setSubResourceType(String subResourceType) { + this.subResourceType = subResourceType; + } + + public String getSubResourceId() { + return subResourceId; + } + + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public String getSubResourceName() { + return subResourceName; + } + + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getPrivateIP() { + return privateIP; + } + + public void setPrivateIP(String privateIP) { + this.privateIP = privateIP; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public Integer getEnabled() { + return enabled; + } + + public void setEnabled(Integer enabled) { + this.enabled = enabled; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public Integer getIsBackup() { + return isBackup; + } + + public void setIsBackup(Integer isBackup) { + this.isBackup = isBackup; } } } diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeRequest.java new file mode 100644 index 00000000..496a43a8 --- /dev/null +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeRequest.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.ulb.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateSSLAttributeRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** SSL的资源id */ + @NotEmpty + @UCloudParam("SSLId") + private String sslId; + + /** SSL实例名称,不允许传空 */ + @NotEmpty + @UCloudParam("SSLName") + private String sslName; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSSLId() { + return sslId; + } + + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public String getSSLName() { + return sslName; + } + + public void setSSLName(String sslName) { + this.sslName = sslName; + } +} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeResponse.java new file mode 100644 index 00000000..460be39a --- /dev/null +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLAttributeResponse.java @@ -0,0 +1,18 @@ +/** + * 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.ulb.models; + +import cn.ucloud.common.response.Response; + +public class UpdateSSLAttributeResponse extends Response {} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemResponse.java index 8b5fd1ba..19121b79 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemResponse.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemResponse.java @@ -43,39 +43,55 @@ public void setDataSet(List dataSet) { this.dataSet = dataSet; } - public static class UMemDataSet extends Response { + public static class UMemSlaveDataSet extends Response { /** 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html) */ @SerializedName("Zone") private String zone; - /** 是否拥有只读Slave “Yes” 包含 “No” 不包含 */ - @SerializedName("OwnSlave") - private String ownSlave; + /** 子网 */ + @SerializedName("SubnetId") + private String subnetId; - /** UMEM实例列表 UMemSlaveDataSet 如果没有slave,则没有该字段 */ - @SerializedName("DataSet") - private List dataSet; + /** vpc */ + @SerializedName("VPCId") + private String vpcId; - /** 表示实例是主库还是从库,master,slave 仅主备redis返回该项参数 */ - @SerializedName("Role") - private String role; + /** */ + @SerializedName("VirtualIP") + private String virtualIP; - /** 主备redis和分布式redis运维时间 0 //0点 1 //1点 以此类推 单机版memcache不返回该项 */ + /** 主备Redis返回运维时间 0//0点 1 //1点 以此类推 */ @SerializedName("RewriteTime") private Integer rewriteTime; - /** vpc */ - @SerializedName("VPCId") - private String vpcId; + /** 主实例id */ + @SerializedName("MasterGroupId") + private String masterGroupId; - /** 子网 */ - @SerializedName("SubnetId") - private String subnetId; + /** 资源id */ + @SerializedName("GroupId") + private String groupId; - /** 资源ID */ - @SerializedName("ResourceId") - private String resourceId; + /** 端口 */ + @SerializedName("Port") + private Integer port; + + /** 实力大小 */ + @SerializedName("MemorySize") + private Integer memorySize; + + /** 资源名称 */ + @SerializedName("GroupName") + private String groupName; + + /** 表示实例是主库还是从库,master,slave */ + @SerializedName("Role") + private String role; + + /** 修改时间 */ + @SerializedName("ModifyTime") + private Integer modifyTime; /** 资源名称 */ @SerializedName("Name") @@ -89,14 +105,6 @@ public static class UMemDataSet extends Response { @SerializedName("ExpireTime") private Integer expireTime; - /** 空间类型:single(无热备),double(热备) */ - @SerializedName("Type") - private String type; - - /** 协议类型: memcache, redis */ - @SerializedName("Protocol") - private String protocol; - /** 容量单位GB */ @SerializedName("Size") private Integer size; @@ -117,10 +125,6 @@ public static class UMemDataSet extends Response { @SerializedName("ChargeType") private String chargeType; - /** IP端口信息请,参见UMemSpaceAddressSet */ - @SerializedName("Address") - private List address; - /** 业务组名称 */ @SerializedName("Tag") private String tag; @@ -133,26 +137,10 @@ public static class UMemDataSet extends Response { @SerializedName("ConfigId") private String configId; - /** 是否需要自动备份,enable,disable */ - @SerializedName("AutoBackup") - private String autoBackup; - - /** 自动备份开始时间,单位小时计,范围[0-23] */ - @SerializedName("BackupTime") - private Integer backupTime; - - /** 是否开启高可用,enable,disable */ - @SerializedName("HighAvailability") - private String highAvailability; - /** Redis版本信息 */ @SerializedName("Version") private String version; - /** 跨机房URedis,slave redis所在可用区,参见 [可用区列表](../summary/regionlist.html) */ - @SerializedName("SlaveZone") - private String slaveZone; - public String getZone() { return zone; } @@ -161,28 +149,28 @@ public void setZone(String zone) { this.zone = zone; } - public String getOwnSlave() { - return ownSlave; + public String getSubnetId() { + return subnetId; } - public void setOwnSlave(String ownSlave) { - this.ownSlave = ownSlave; + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; } - public List getDataSet() { - return dataSet; + public String getVPCId() { + return vpcId; } - public void setDataSet(List dataSet) { - this.dataSet = dataSet; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; } - public String getRole() { - return role; + public String getVirtualIP() { + return virtualIP; } - public void setRole(String role) { - this.role = role; + public void setVirtualIP(String virtualIP) { + this.virtualIP = virtualIP; } public Integer getRewriteTime() { @@ -193,28 +181,60 @@ public void setRewriteTime(Integer rewriteTime) { this.rewriteTime = rewriteTime; } - public String getVPCId() { - return vpcId; + public String getMasterGroupId() { + return masterGroupId; } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; + public void setMasterGroupId(String masterGroupId) { + this.masterGroupId = masterGroupId; } - public String getSubnetId() { - return subnetId; + public String getGroupId() { + return groupId; } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; + public void setGroupId(String groupId) { + this.groupId = groupId; } - public String getResourceId() { - return resourceId; + public Integer getPort() { + return port; } - public void setResourceId(String resourceId) { - this.resourceId = resourceId; + public void setPort(Integer port) { + this.port = port; + } + + public Integer getMemorySize() { + return memorySize; + } + + public void setMemorySize(Integer memorySize) { + this.memorySize = memorySize; + } + + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public Integer getModifyTime() { + return modifyTime; + } + + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; } public String getName() { @@ -241,22 +261,6 @@ public void setExpireTime(Integer expireTime) { this.expireTime = expireTime; } - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol; - } - public Integer getSize() { return size; } @@ -289,14 +293,6 @@ public void setChargeType(String chargeType) { this.chargeType = chargeType; } - public List getAddress() { - return address; - } - - public void setAddress(List address) { - this.address = address; - } - public String getTag() { return tag; } @@ -321,30 +317,6 @@ public void setConfigId(String configId) { this.configId = configId; } - public String getAutoBackup() { - return autoBackup; - } - - public void setAutoBackup(String autoBackup) { - this.autoBackup = autoBackup; - } - - public Integer getBackupTime() { - return backupTime; - } - - public void setBackupTime(Integer backupTime) { - this.backupTime = backupTime; - } - - public String getHighAvailability() { - return highAvailability; - } - - public void setHighAvailability(String highAvailability) { - this.highAvailability = highAvailability; - } - public String getVersion() { return version; } @@ -352,92 +324,41 @@ public String getVersion() { public void setVersion(String version) { this.version = version; } - - public String getSlaveZone() { - return slaveZone; - } - - public void setSlaveZone(String slaveZone) { - this.slaveZone = slaveZone; - } - } - - public static class UMemSpaceAddressSet extends Response { - - /** UMem实例访问IP */ - @SerializedName("IP") - private String ip; - - /** UMem实例访问Port */ - @SerializedName("Port") - private Integer port; - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } } - public static class UMemSlaveDataSet extends Response { + public static class UMemDataSet extends Response { /** 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html) */ @SerializedName("Zone") private String zone; - /** 子网 */ - @SerializedName("SubnetId") - private String subnetId; + /** 是否拥有只读Slave “Yes” 包含 “No” 不包含 */ + @SerializedName("OwnSlave") + private String ownSlave; - /** vpc */ - @SerializedName("VPCId") - private String vpcId; + /** UMEM实例列表 UMemSlaveDataSet 如果没有slave,则没有该字段 */ + @SerializedName("DataSet") + private List dataSet; - /** */ - @SerializedName("VirtualIP") - private String virtualIP; + /** 表示实例是主库还是从库,master,slave 仅主备redis返回该项参数 */ + @SerializedName("Role") + private String role; - /** 主备Redis返回运维时间 0//0点 1 //1点 以此类推 */ + /** 主备redis和分布式redis运维时间 0 //0点 1 //1点 以此类推 单机版memcache不返回该项 */ @SerializedName("RewriteTime") private Integer rewriteTime; - /** 主实例id */ - @SerializedName("MasterGroupId") - private String masterGroupId; - - /** 资源id */ - @SerializedName("GroupId") - private String groupId; - - /** 端口 */ - @SerializedName("Port") - private Integer port; - - /** 实力大小 */ - @SerializedName("MemorySize") - private Integer memorySize; - - /** 资源名称 */ - @SerializedName("GroupName") - private String groupName; + /** vpc */ + @SerializedName("VPCId") + private String vpcId; - /** 表示实例是主库还是从库,master,slave */ - @SerializedName("Role") - private String role; + /** 子网 */ + @SerializedName("SubnetId") + private String subnetId; - /** 修改时间 */ - @SerializedName("ModifyTime") - private Integer modifyTime; + /** 资源ID */ + @SerializedName("ResourceId") + private String resourceId; /** 资源名称 */ @SerializedName("Name") @@ -451,6 +372,14 @@ public static class UMemSlaveDataSet extends Response { @SerializedName("ExpireTime") private Integer expireTime; + /** 空间类型:single(无热备),double(热备) */ + @SerializedName("Type") + private String type; + + /** 协议类型: memcache, redis */ + @SerializedName("Protocol") + private String protocol; + /** 容量单位GB */ @SerializedName("Size") private Integer size; @@ -471,6 +400,10 @@ public static class UMemSlaveDataSet extends Response { @SerializedName("ChargeType") private String chargeType; + /** IP端口信息请,参见UMemSpaceAddressSet */ + @SerializedName("Address") + private List address; + /** 业务组名称 */ @SerializedName("Tag") private String tag; @@ -483,10 +416,26 @@ public static class UMemSlaveDataSet extends Response { @SerializedName("ConfigId") private String configId; + /** 是否需要自动备份,enable,disable */ + @SerializedName("AutoBackup") + private String autoBackup; + + /** 自动备份开始时间,单位小时计,范围[0-23] */ + @SerializedName("BackupTime") + private Integer backupTime; + + /** 是否开启高可用,enable,disable */ + @SerializedName("HighAvailability") + private String highAvailability; + /** Redis版本信息 */ @SerializedName("Version") private String version; + /** 跨机房URedis,slave redis所在可用区,参见 [可用区列表](../summary/regionlist.html) */ + @SerializedName("SlaveZone") + private String slaveZone; + public String getZone() { return zone; } @@ -495,28 +444,28 @@ public void setZone(String zone) { this.zone = zone; } - public String getSubnetId() { - return subnetId; + public String getOwnSlave() { + return ownSlave; } - public void setSubnetId(String subnetId) { - this.subnetId = subnetId; + public void setOwnSlave(String ownSlave) { + this.ownSlave = ownSlave; } - public String getVPCId() { - return vpcId; + public List getDataSet() { + return dataSet; } - public void setVPCId(String vpcId) { - this.vpcId = vpcId; + public void setDataSet(List dataSet) { + this.dataSet = dataSet; } - public String getVirtualIP() { - return virtualIP; + public String getRole() { + return role; } - public void setVirtualIP(String virtualIP) { - this.virtualIP = virtualIP; + public void setRole(String role) { + this.role = role; } public Integer getRewriteTime() { @@ -527,60 +476,28 @@ public void setRewriteTime(Integer rewriteTime) { this.rewriteTime = rewriteTime; } - public String getMasterGroupId() { - return masterGroupId; - } - - public void setMasterGroupId(String masterGroupId) { - this.masterGroupId = masterGroupId; - } - - public String getGroupId() { - return groupId; - } - - public void setGroupId(String groupId) { - this.groupId = groupId; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public Integer getMemorySize() { - return memorySize; - } - - public void setMemorySize(Integer memorySize) { - this.memorySize = memorySize; - } - - public String getGroupName() { - return groupName; + public String getVPCId() { + return vpcId; } - public void setGroupName(String groupName) { - this.groupName = groupName; + public void setVPCId(String vpcId) { + this.vpcId = vpcId; } - public String getRole() { - return role; + public String getSubnetId() { + return subnetId; } - public void setRole(String role) { - this.role = role; + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; } - public Integer getModifyTime() { - return modifyTime; + public String getResourceId() { + return resourceId; } - public void setModifyTime(Integer modifyTime) { - this.modifyTime = modifyTime; + public void setResourceId(String resourceId) { + this.resourceId = resourceId; } public String getName() { @@ -607,6 +524,22 @@ public void setExpireTime(Integer expireTime) { this.expireTime = expireTime; } + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + public Integer getSize() { return size; } @@ -639,6 +572,14 @@ public void setChargeType(String chargeType) { this.chargeType = chargeType; } + public List getAddress() { + return address; + } + + public void setAddress(List address) { + this.address = address; + } + public String getTag() { return tag; } @@ -663,6 +604,30 @@ public void setConfigId(String configId) { this.configId = configId; } + public String getAutoBackup() { + return autoBackup; + } + + public void setAutoBackup(String autoBackup) { + this.autoBackup = autoBackup; + } + + public Integer getBackupTime() { + return backupTime; + } + + public void setBackupTime(Integer backupTime) { + this.backupTime = backupTime; + } + + public String getHighAvailability() { + return highAvailability; + } + + public void setHighAvailability(String highAvailability) { + this.highAvailability = highAvailability; + } + public String getVersion() { return version; } @@ -670,5 +635,40 @@ public String getVersion() { public void setVersion(String version) { this.version = version; } + + public String getSlaveZone() { + return slaveZone; + } + + public void setSlaveZone(String slaveZone) { + this.slaveZone = slaveZone; + } + } + + public static class UMemSpaceAddressSet extends Response { + + /** UMem实例访问IP */ + @SerializedName("IP") + private String ip; + + /** UMem实例访问Port */ + @SerializedName("Port") + private Integer port; + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } } } diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeEIPResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeEIPResponse.java index fa922d67..c3fe35fd 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeEIPResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeEIPResponse.java @@ -67,6 +67,97 @@ public void setEIPSet(List eipSet) { this.eipSet = eipSet; } + public static class UnetEIPResourceSet extends Response { + + /** + * 已绑定的资源类型, 枚举值为: uhost, 云主机;natgw:NAT网关;ulb:负载均衡器;upm: 物理机; hadoophost: + * 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;vpngw:IPSec + * VPN;ucdr:云灾备;dbaudit:数据库审计,uni:虚拟网卡。 + */ + @SerializedName("ResourceType") + private String resourceType; + + /** 已绑定的资源名称 */ + @SerializedName("ResourceName") + private String resourceName; + + /** 已绑定资源的资源ID */ + @SerializedName("ResourceID") + private String resourceID; + + /** 资源绑定的虚拟网卡的类型。uni,虚拟网卡。 */ + @SerializedName("SubResourceType") + private String subResourceType; + + /** 资源绑定的虚拟网卡的名称 */ + @SerializedName("SubResourceName") + private String subResourceName; + + /** 资源绑定的虚拟网卡的ID */ + @SerializedName("SubResourceId") + private String subResourceId; + + /** 弹性IP的资源ID */ + @SerializedName("EIPId") + private String eipId; + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getResourceID() { + return resourceID; + } + + public void setResourceID(String resourceID) { + this.resourceID = resourceID; + } + + public String getSubResourceType() { + return subResourceType; + } + + public void setSubResourceType(String subResourceType) { + this.subResourceType = subResourceType; + } + + public String getSubResourceName() { + return subResourceName; + } + + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getSubResourceId() { + return subResourceId; + } + + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public String getEIPId() { + return eipId; + } + + public void setEIPId(String eipId) { + this.eipId = eipId; + } + } + public static class UnetEIPSet extends Response { /** 弹性IP的资源ID */ @@ -267,124 +358,6 @@ public void setExpire(Boolean expire) { } } - public static class UnetEIPAddrSet extends Response { - - /** 运营商信息如: 国际: International, BGP: BGP */ - @SerializedName("OperatorName") - private String operatorName; - - /** IP地址 */ - @SerializedName("IP") - private String ip; - - public String getOperatorName() { - return operatorName; - } - - public void setOperatorName(String operatorName) { - this.operatorName = operatorName; - } - - public String getIP() { - return ip; - } - - public void setIP(String ip) { - this.ip = ip; - } - } - - public static class UnetEIPResourceSet extends Response { - - /** - * 已绑定的资源类型, 枚举值为: uhost, 云主机;natgw:NAT网关;ulb:负载均衡器;upm: 物理机; hadoophost: - * 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;vpngw:IPSec - * VPN;ucdr:云灾备;dbaudit:数据库审计,uni:虚拟网卡。 - */ - @SerializedName("ResourceType") - private String resourceType; - - /** 已绑定的资源名称 */ - @SerializedName("ResourceName") - private String resourceName; - - /** 已绑定资源的资源ID */ - @SerializedName("ResourceID") - private String resourceID; - - /** 资源绑定的虚拟网卡的类型。uni,虚拟网卡。 */ - @SerializedName("SubResourceType") - private String subResourceType; - - /** 资源绑定的虚拟网卡的名称 */ - @SerializedName("SubResourceName") - private String subResourceName; - - /** 资源绑定的虚拟网卡的ID */ - @SerializedName("SubResourceId") - private String subResourceId; - - /** 弹性IP的资源ID */ - @SerializedName("EIPId") - private String eipId; - - public String getResourceType() { - return resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public String getResourceName() { - return resourceName; - } - - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } - - public String getResourceID() { - return resourceID; - } - - public void setResourceID(String resourceID) { - this.resourceID = resourceID; - } - - public String getSubResourceType() { - return subResourceType; - } - - public void setSubResourceType(String subResourceType) { - this.subResourceType = subResourceType; - } - - public String getSubResourceName() { - return subResourceName; - } - - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } - - public String getSubResourceId() { - return subResourceId; - } - - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } - - public String getEIPId() { - return eipId; - } - - public void setEIPId(String eipId) { - this.eipId = eipId; - } - } - public static class ShareBandwidthSet extends Response { /** 共享带宽带宽值 */ @@ -423,4 +396,31 @@ public void setShareBandwidthId(String shareBandwidthId) { this.shareBandwidthId = shareBandwidthId; } } + + public static class UnetEIPAddrSet extends Response { + + /** 运营商信息如: 国际: International, BGP: BGP */ + @SerializedName("OperatorName") + private String operatorName; + + /** IP地址 */ + @SerializedName("IP") + private String ip; + + public String getOperatorName() { + return operatorName; + } + + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + } } diff --git a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthResponse.java b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthResponse.java index dc06e607..aefe9860 100644 --- a/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthResponse.java +++ b/ucloud-sdk-java-unet/src/main/java/cn/ucloud/unet/models/DescribeShareBandwidthResponse.java @@ -43,6 +43,45 @@ public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } + public static class EIPSetData extends Response { + + /** EIP带宽值 */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + /** EIP的IP信息,详情见EIPAddrSet */ + @SerializedName("EIPAddr") + private List eipAddr; + + /** EIP资源Id */ + @SerializedName("EIPId") + private String eipId; + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + + public List getEIPAddr() { + return eipAddr; + } + + public void setEIPAddr(List eipAddr) { + this.eipAddr = eipAddr; + } + + public String getEIPId() { + return eipId; + } + + public void setEIPId(String eipId) { + this.eipId = eipId; + } + } + public static class EIPAddrSet extends Response { /** 运营商信息, 枚举值为: BGP: BGP; International: 国际. */ @@ -168,43 +207,4 @@ public void setName(String name) { this.name = name; } } - - public static class EIPSetData extends Response { - - /** EIP带宽值 */ - @SerializedName("Bandwidth") - private Integer bandwidth; - - /** EIP的IP信息,详情见EIPAddrSet */ - @SerializedName("EIPAddr") - private List eipAddr; - - /** EIP资源Id */ - @SerializedName("EIPId") - private String eipId; - - public Integer getBandwidth() { - return bandwidth; - } - - public void setBandwidth(Integer bandwidth) { - this.bandwidth = bandwidth; - } - - public List getEIPAddr() { - return eipAddr; - } - - public void setEIPAddr(List eipAddr) { - this.eipAddr = eipAddr; - } - - public String getEIPId() { - return eipId; - } - - public void setEIPId(String eipId) { - this.eipId = eipId; - } - } } diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribeBaremetalMachineTypeResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribeBaremetalMachineTypeResponse.java index 5bd7c522..e0d67ff0 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribeBaremetalMachineTypeResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribeBaremetalMachineTypeResponse.java @@ -31,6 +31,57 @@ public void setMachineTypes(List machineTypes) { this.machineTypes = machineTypes; } + public static class PHostCPUSet extends Response { + + /** CPU型号 */ + @SerializedName("Model") + private String model; + + /** CPU主频 */ + @SerializedName("Frequence") + private Double frequence; + + /** CPU个数 */ + @SerializedName("Count") + private Integer count; + + /** CPU核数 */ + @SerializedName("CoreCount") + private Integer coreCount; + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public Double getFrequence() { + return frequence; + } + + public void setFrequence(Double frequence) { + this.frequence = frequence; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public Integer getCoreCount() { + return coreCount; + } + + public void setCoreCount(Integer coreCount) { + this.coreCount = coreCount; + } + } + public static class PHostCloudMachineTypeSet extends Response { /** 物理云主机机型别名,全网唯一。 */ @@ -147,55 +198,4 @@ public void setCount(Integer count) { this.count = count; } } - - public static class PHostCPUSet extends Response { - - /** CPU型号 */ - @SerializedName("Model") - private String model; - - /** CPU主频 */ - @SerializedName("Frequence") - private Double frequence; - - /** CPU个数 */ - @SerializedName("Count") - private Integer count; - - /** CPU核数 */ - @SerializedName("CoreCount") - private Integer coreCount; - - public String getModel() { - return model; - } - - public void setModel(String model) { - this.model = model; - } - - public Double getFrequence() { - return frequence; - } - - public void setFrequence(Double frequence) { - this.frequence = frequence; - } - - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } - - public Integer getCoreCount() { - return coreCount; - } - - public void setCoreCount(Integer coreCount) { - this.coreCount = coreCount; - } - } } diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostMachineTypeResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostMachineTypeResponse.java index d089e223..f301857a 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostMachineTypeResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostMachineTypeResponse.java @@ -58,93 +58,6 @@ public void setStockStatus(String stockStatus) { } } - public static class PHostMachineTypeSet extends Response { - - /** 物理云主机机型别名,全网唯一。 */ - @SerializedName("Type") - private String type; - - /** CPU信息 */ - @SerializedName("CPU") - private PHostCPUSet cpu; - - /** 内存大小,单位MB */ - @SerializedName("Memory") - private Integer memory; - - /** 磁盘信息 */ - @SerializedName("Disks") - private List disks; - - /** 其他组件信息 */ - @SerializedName("Components") - private PHostComponentSet components; - - /** 集群库存信息 */ - @SerializedName("Clusters") - private List clusters; - - /** 是否支持Raid。枚举值:支持:YES;不支持:NO */ - @SerializedName("RaidSupported") - private String raidSupported; - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public PHostCPUSet getCPU() { - return cpu; - } - - public void setCPU(PHostCPUSet cpu) { - this.cpu = cpu; - } - - public Integer getMemory() { - return memory; - } - - public void setMemory(Integer memory) { - this.memory = memory; - } - - public List getDisks() { - return disks; - } - - public void setDisks(List disks) { - this.disks = disks; - } - - public PHostComponentSet getComponents() { - return components; - } - - public void setComponents(PHostComponentSet components) { - this.components = components; - } - - public List getClusters() { - return clusters; - } - - public void setClusters(List clusters) { - this.clusters = clusters; - } - - public String getRaidSupported() { - return raidSupported; - } - - public void setRaidSupported(String raidSupported) { - this.raidSupported = raidSupported; - } - } - public static class PHostComponentSet extends Response { /** 组件名称 */ @@ -235,6 +148,93 @@ public void setIOCap(Integer ioCap) { } } + public static class PHostMachineTypeSet extends Response { + + /** 物理云主机机型别名,全网唯一。 */ + @SerializedName("Type") + private String type; + + /** CPU信息 */ + @SerializedName("CPU") + private PHostCPUSet cpu; + + /** 内存大小,单位MB */ + @SerializedName("Memory") + private Integer memory; + + /** 磁盘信息 */ + @SerializedName("Disks") + private List disks; + + /** 其他组件信息 */ + @SerializedName("Components") + private PHostComponentSet components; + + /** 集群库存信息 */ + @SerializedName("Clusters") + private List clusters; + + /** 是否支持Raid。枚举值:支持:YES;不支持:NO */ + @SerializedName("RaidSupported") + private String raidSupported; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public PHostCPUSet getCPU() { + return cpu; + } + + public void setCPU(PHostCPUSet cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } + + public void setMemory(Integer memory) { + this.memory = memory; + } + + public List getDisks() { + return disks; + } + + public void setDisks(List disks) { + this.disks = disks; + } + + public PHostComponentSet getComponents() { + return components; + } + + public void setComponents(PHostComponentSet components) { + this.components = components; + } + + public List getClusters() { + return clusters; + } + + public void setClusters(List clusters) { + this.clusters = clusters; + } + + public String getRaidSupported() { + return raidSupported; + } + + public void setRaidSupported(String raidSupported) { + this.raidSupported = raidSupported; + } + } + public static class PHostCPUSet extends Response { /** CPU型号 */ diff --git a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostResponse.java b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostResponse.java index 07e1305c..dd9f7440 100644 --- a/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostResponse.java +++ b/ucloud-sdk-java-uphost/src/main/java/cn/ucloud/uphost/models/DescribePHostResponse.java @@ -43,105 +43,6 @@ public void setPHostSet(List pHostSet) { this.pHostSet = pHostSet; } - public static class PHostDescDiskSet extends Response { - - /** 单盘大小,单位GB */ - @SerializedName("Space") - private Integer space; - - /** 磁盘数量 */ - @SerializedName("Count") - private Integer count; - - /** 磁盘属性 */ - @SerializedName("Type") - private String type; - - /** 磁盘名称,sys/data */ - @SerializedName("Name") - private String name; - - /** 磁盘IO性能,单位MB/s(待废弃) */ - @SerializedName("IOCap") - private Integer ioCap; - - /** 裸金属机型参数:磁盘盘符 */ - @SerializedName("Drive") - private String drive; - - /** 裸金属机型参数:磁盘ID */ - @SerializedName("DiskId") - private String diskId; - - /** 裸金属机型参数:是否是启动盘。True/False */ - @SerializedName("IsBoot") - private String isBoot; - - public Integer getSpace() { - return space; - } - - public void setSpace(Integer space) { - this.space = space; - } - - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getIOCap() { - return ioCap; - } - - public void setIOCap(Integer ioCap) { - this.ioCap = ioCap; - } - - public String getDrive() { - return drive; - } - - public void setDrive(String drive) { - this.drive = drive; - } - - public String getDiskId() { - return diskId; - } - - public void setDiskId(String diskId) { - this.diskId = diskId; - } - - public String getIsBoot() { - return isBoot; - } - - public void setIsBoot(String isBoot) { - this.isBoot = isBoot; - } - } - public static class PHostCPUSet extends Response { /** CPU型号 */ @@ -585,4 +486,103 @@ public void setVPCId(String vpcId) { this.vpcId = vpcId; } } + + public static class PHostDescDiskSet extends Response { + + /** 单盘大小,单位GB */ + @SerializedName("Space") + private Integer space; + + /** 磁盘数量 */ + @SerializedName("Count") + private Integer count; + + /** 磁盘属性 */ + @SerializedName("Type") + private String type; + + /** 磁盘名称,sys/data */ + @SerializedName("Name") + private String name; + + /** 磁盘IO性能,单位MB/s(待废弃) */ + @SerializedName("IOCap") + private Integer ioCap; + + /** 裸金属机型参数:磁盘盘符 */ + @SerializedName("Drive") + private String drive; + + /** 裸金属机型参数:磁盘ID */ + @SerializedName("DiskId") + private String diskId; + + /** 裸金属机型参数:是否是启动盘。True/False */ + @SerializedName("IsBoot") + private String isBoot; + + public Integer getSpace() { + return space; + } + + public void setSpace(Integer space) { + this.space = space; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getIOCap() { + return ioCap; + } + + public void setIOCap(Integer ioCap) { + this.ioCap = ioCap; + } + + public String getDrive() { + return drive; + } + + public void setDrive(String drive) { + this.drive = drive; + } + + public String getDiskId() { + return diskId; + } + + public void setDiskId(String diskId) { + this.diskId = diskId; + } + + public String getIsBoot() { + return isBoot; + } + + public void setIsBoot(String isBoot) { + this.isBoot = isBoot; + } + } } diff --git a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendReceiptResponse.java b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendReceiptResponse.java index 3559773c..4ccf9d9a 100644 --- a/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendReceiptResponse.java +++ b/ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/models/GetUSMSSendReceiptResponse.java @@ -31,33 +31,6 @@ public void setData(List data) { this.data = data; } - public static class ReceiptPerSession extends Response { - - /** 发送短信时返回的SessionNo */ - @SerializedName("SessionNo") - private String sessionNo; - - /** 每个手机号的短信回执信息集合 */ - @SerializedName("ReceiptSet") - private List receiptSet; - - public String getSessionNo() { - return sessionNo; - } - - public void setSessionNo(String sessionNo) { - this.sessionNo = sessionNo; - } - - public List getReceiptSet() { - return receiptSet; - } - - public void setReceiptSet(List receiptSet) { - this.receiptSet = receiptSet; - } - } - public static class ReceiptPerPhone extends Response { /** 手机号码 */ @@ -147,4 +120,31 @@ public void setUserId(String userId) { this.userId = userId; } } + + public static class ReceiptPerSession extends Response { + + /** 发送短信时返回的SessionNo */ + @SerializedName("SessionNo") + private String sessionNo; + + /** 每个手机号的短信回执信息集合 */ + @SerializedName("ReceiptSet") + private List receiptSet; + + public String getSessionNo() { + return sessionNo; + } + + public void setSessionNo(String sessionNo) { + this.sessionNo = sessionNo; + } + + public List getReceiptSet() { + return receiptSet; + } + + public void setReceiptSet(List receiptSet) { + this.receiptSet = receiptSet; + } + } } diff --git a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclEntryResponse.java b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclEntryResponse.java index ae8a229e..1d6cb412 100644 --- a/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclEntryResponse.java +++ b/ucloud-sdk-java-vpc/src/main/java/cn/ucloud/vpc/models/DescribeNetworkAclEntryResponse.java @@ -31,105 +31,6 @@ public void setEntryList(List entryList) { this.entryList = entryList; } - public static class TargetResourceInfo extends Response { - - /** 子网ID */ - @SerializedName("SubnetworkId") - private String subnetworkId; - - /** 资源名称 */ - @SerializedName("ResourceName") - private String resourceName; - - /** 资源ID */ - @SerializedName("ResourceId") - private String resourceId; - - /** 资源类型 */ - @SerializedName("ResourceType") - private Integer resourceType; - - /** 资源绑定的虚拟网卡的名称 */ - @SerializedName("SubResourceName") - private String subResourceName; - - /** 资源绑定的虚拟网卡的ID */ - @SerializedName("SubResourceId") - private String subResourceId; - - /** 资源绑定虚拟网卡的类型 */ - @SerializedName("SubResourceType") - private Integer subResourceType; - - /** 资源内网IP */ - @SerializedName("PrivateIp") - private String privateIp; - - public String getSubnetworkId() { - return subnetworkId; - } - - public void setSubnetworkId(String subnetworkId) { - this.subnetworkId = subnetworkId; - } - - public String getResourceName() { - return resourceName; - } - - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } - - public String getResourceId() { - return resourceId; - } - - public void setResourceId(String resourceId) { - this.resourceId = resourceId; - } - - public Integer getResourceType() { - return resourceType; - } - - public void setResourceType(Integer resourceType) { - this.resourceType = resourceType; - } - - public String getSubResourceName() { - return subResourceName; - } - - public void setSubResourceName(String subResourceName) { - this.subResourceName = subResourceName; - } - - public String getSubResourceId() { - return subResourceId; - } - - public void setSubResourceId(String subResourceId) { - this.subResourceId = subResourceId; - } - - public Integer getSubResourceType() { - return subResourceType; - } - - public void setSubResourceType(Integer subResourceType) { - this.subResourceType = subResourceType; - } - - public String getPrivateIp() { - return privateIp; - } - - public void setPrivateIp(String privateIp) { - this.privateIp = privateIp; - } - } - public static class AclEntryInfo extends Response { /** Entry的ID */ @@ -276,4 +177,103 @@ public void setTargetResourceCount(Integer targetResourceCount) { this.targetResourceCount = targetResourceCount; } } + + public static class TargetResourceInfo extends Response { + + /** 子网ID */ + @SerializedName("SubnetworkId") + private String subnetworkId; + + /** 资源名称 */ + @SerializedName("ResourceName") + private String resourceName; + + /** 资源ID */ + @SerializedName("ResourceId") + private String resourceId; + + /** 资源类型 */ + @SerializedName("ResourceType") + private Integer resourceType; + + /** 资源绑定的虚拟网卡的名称 */ + @SerializedName("SubResourceName") + private String subResourceName; + + /** 资源绑定的虚拟网卡的ID */ + @SerializedName("SubResourceId") + private String subResourceId; + + /** 资源绑定虚拟网卡的类型 */ + @SerializedName("SubResourceType") + private Integer subResourceType; + + /** 资源内网IP */ + @SerializedName("PrivateIp") + private String privateIp; + + public String getSubnetworkId() { + return subnetworkId; + } + + public void setSubnetworkId(String subnetworkId) { + this.subnetworkId = subnetworkId; + } + + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public Integer getResourceType() { + return resourceType; + } + + public void setResourceType(Integer resourceType) { + this.resourceType = resourceType; + } + + public String getSubResourceName() { + return subResourceName; + } + + public void setSubResourceName(String subResourceName) { + this.subResourceName = subResourceName; + } + + public String getSubResourceId() { + return subResourceId; + } + + public void setSubResourceId(String subResourceId) { + this.subResourceId = subResourceId; + } + + public Integer getSubResourceType() { + return subResourceType; + } + + public void setSubResourceType(Integer subResourceType) { + this.subResourceType = subResourceType; + } + + public String getPrivateIp() { + return privateIp; + } + + public void setPrivateIp(String privateIp) { + this.privateIp = privateIp; + } + } }