diff --git a/VERSION b/VERSION index ec1e40e92..8d0613342 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.68-release +1.2.69-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index 471e6762a..3c2ddbf26 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index e03d0ae94..18cfddde3 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.68-release + 1.2.69-release diff --git a/pom.xml b/pom.xml index daa58ac19..07b27b59f 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.68-release + 1.2.69-release ucloud-sdk-java-common ucloud-sdk-java-cloudwatch diff --git a/ucloud-sdk-java-cloudwatch/pom.xml b/ucloud-sdk-java-cloudwatch/pom.xml index 7f5c56fd9..428bb46ee 100644 --- a/ucloud-sdk-java-cloudwatch/pom.xml +++ b/ucloud-sdk-java-cloudwatch/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-cloudwatch ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 452c6ae7e..cc0e82cc5 100644 --- a/ucloud-sdk-java-common/pom.xml +++ b/ucloud-sdk-java-common/pom.xml @@ -7,13 +7,13 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-common ucloud-sdk-java - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index 96a581a18..cde1cbd98 100644 --- a/ucloud-sdk-java-cube/pom.xml +++ b/ucloud-sdk-java-cube/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-cube ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index a0de698f1..4fabbde3c 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-ipsecvpn ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-label/pom.xml b/ucloud-sdk-java-label/pom.xml index 54c12f13b..dafece8ff 100644 --- a/ucloud-sdk-java-label/pom.xml +++ b/ucloud-sdk-java-label/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-label ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-nlb/pom.xml b/ucloud-sdk-java-nlb/pom.xml index 6d8fb9212..f2ea4c2d6 100644 --- a/ucloud-sdk-java-nlb/pom.xml +++ b/ucloud-sdk-java-nlb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-nlb ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index 4f4ea47bf..3c9fd5684 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-pathx ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index 4bbd52681..9e4a8cb4a 100644 --- a/ucloud-sdk-java-sts/pom.xml +++ b/ucloud-sdk-java-sts/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-sts ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-tidb/pom.xml b/ucloud-sdk-java-tidb/pom.xml index fa12a8d29..a06d3bf6a 100644 --- a/ucloud-sdk-java-tidb/pom.xml +++ b/ucloud-sdk-java-tidb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-tidb ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index 9729b7464..7055dd943 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uaccount ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index 7730b0a1a..073c929ad 100644 --- a/ucloud-sdk-java-uai_modelverse/pom.xml +++ b/ucloud-sdk-java-uai_modelverse/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uai_modelverse ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAIModelverseClient.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAIModelverseClient.java index c9870a18a..f5c5d7923 100644 --- a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAIModelverseClient.java +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAIModelverseClient.java @@ -17,8 +17,38 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; -import cn.ucloud.uai_modelverse.models.GetUMInferServiceRequest; -import cn.ucloud.uai_modelverse.models.GetUMInferServiceResponse; +import cn.ucloud.uai_modelverse.models.CreateUMInferAPIKeyRequest; +import cn.ucloud.uai_modelverse.models.CreateUMInferAPIKeyResponse; +import cn.ucloud.uai_modelverse.models.DeleteUMInferAPIKeyRequest; +import cn.ucloud.uai_modelverse.models.DeleteUMInferAPIKeyResponse; +import cn.ucloud.uai_modelverse.models.DownloadListPaidOrdersRequest; +import cn.ucloud.uai_modelverse.models.DownloadListPaidOrdersResponse; +import cn.ucloud.uai_modelverse.models.DownloadListUnpaidOrdersRequest; +import cn.ucloud.uai_modelverse.models.DownloadListUnpaidOrdersResponse; +import cn.ucloud.uai_modelverse.models.DownloadOrderSummaryRequest; +import cn.ucloud.uai_modelverse.models.DownloadOrderSummaryResponse; +import cn.ucloud.uai_modelverse.models.GetFilterOptionsRequest; +import cn.ucloud.uai_modelverse.models.GetFilterOptionsResponse; +import cn.ucloud.uai_modelverse.models.GetOrderAmountRequest; +import cn.ucloud.uai_modelverse.models.GetOrderAmountResponse; +import cn.ucloud.uai_modelverse.models.GetUMInferAPIModelRequest; +import cn.ucloud.uai_modelverse.models.GetUMInferAPIModelResponse; +import cn.ucloud.uai_modelverse.models.GetUMInferTokenUsageRequest; +import cn.ucloud.uai_modelverse.models.GetUMInferTokenUsageResponse; +import cn.ucloud.uai_modelverse.models.ListPaidOrderSummaryRequest; +import cn.ucloud.uai_modelverse.models.ListPaidOrderSummaryResponse; +import cn.ucloud.uai_modelverse.models.ListPaidOrdersRequest; +import cn.ucloud.uai_modelverse.models.ListPaidOrdersResponse; +import cn.ucloud.uai_modelverse.models.ListUFSquareModelRequest; +import cn.ucloud.uai_modelverse.models.ListUFSquareModelResponse; +import cn.ucloud.uai_modelverse.models.ListUMInferAPIKeyRequest; +import cn.ucloud.uai_modelverse.models.ListUMInferAPIKeyResponse; +import cn.ucloud.uai_modelverse.models.ListUnpaidOrderSummaryRequest; +import cn.ucloud.uai_modelverse.models.ListUnpaidOrderSummaryResponse; +import cn.ucloud.uai_modelverse.models.ListUnpaidOrdersRequest; +import cn.ucloud.uai_modelverse.models.ListUnpaidOrdersResponse; +import cn.ucloud.uai_modelverse.models.UpdateUMInferAPIKeyRequest; +import cn.ucloud.uai_modelverse.models.UpdateUMInferAPIKeyResponse; /** This client is used to call actions of **UAIModelverse** service */ public class UAIModelverseClient extends DefaultClient implements UAIModelverseClientInterface { @@ -27,14 +57,203 @@ public UAIModelverseClient(Config config, Credential credential) { } /** - * GetUMInferService - 获取模型服务 + * CreateUMInferAPIKey - 创建apikey * * @param request Request object * @throws UCloudException Exception */ - public GetUMInferServiceResponse getUMInferService(GetUMInferServiceRequest request) + public CreateUMInferAPIKeyResponse createUMInferAPIKey(CreateUMInferAPIKeyRequest request) throws UCloudException { - request.setAction("GetUMInferService"); - return (GetUMInferServiceResponse) this.invoke(request, GetUMInferServiceResponse.class); + request.setAction("CreateUMInferAPIKey"); + return (CreateUMInferAPIKeyResponse) + this.invoke(request, CreateUMInferAPIKeyResponse.class); + } + + /** + * DeleteUMInferAPIKey - 删除apikey + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUMInferAPIKeyResponse deleteUMInferAPIKey(DeleteUMInferAPIKeyRequest request) + throws UCloudException { + request.setAction("DeleteUMInferAPIKey"); + return (DeleteUMInferAPIKeyResponse) + this.invoke(request, DeleteUMInferAPIKeyResponse.class); + } + + /** + * DownloadListPaidOrders - 下载已完成订单明细 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadListPaidOrdersResponse downloadListPaidOrders( + DownloadListPaidOrdersRequest request) throws UCloudException { + request.setAction("DownloadListPaidOrders"); + return (DownloadListPaidOrdersResponse) + this.invoke(request, DownloadListPaidOrdersResponse.class); + } + + /** + * DownloadListUnpaidOrders - 下载欠费订单明细 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadListUnpaidOrdersResponse downloadListUnpaidOrders( + DownloadListUnpaidOrdersRequest request) throws UCloudException { + request.setAction("DownloadListUnpaidOrders"); + return (DownloadListUnpaidOrdersResponse) + this.invoke(request, DownloadListUnpaidOrdersResponse.class); + } + + /** + * DownloadOrderSummary - 下载订单汇总 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadOrderSummaryResponse downloadOrderSummary(DownloadOrderSummaryRequest request) + throws UCloudException { + request.setAction("DownloadOrderSummary"); + return (DownloadOrderSummaryResponse) + this.invoke(request, DownloadOrderSummaryResponse.class); + } + + /** + * GetFilterOptions - 查询筛选选项 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetFilterOptionsResponse getFilterOptions(GetFilterOptionsRequest request) + throws UCloudException { + request.setAction("GetFilterOptions"); + return (GetFilterOptionsResponse) this.invoke(request, GetFilterOptionsResponse.class); + } + + /** + * GetOrderAmount - 查询订单汇总统计 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetOrderAmountResponse getOrderAmount(GetOrderAmountRequest request) + throws UCloudException { + request.setAction("GetOrderAmount"); + return (GetOrderAmountResponse) this.invoke(request, GetOrderAmountResponse.class); + } + + /** + * GetUMInferAPIModel - 获取api模型列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUMInferAPIModelResponse getUMInferAPIModel(GetUMInferAPIModelRequest request) + throws UCloudException { + request.setAction("GetUMInferAPIModel"); + return (GetUMInferAPIModelResponse) this.invoke(request, GetUMInferAPIModelResponse.class); + } + + /** + * GetUMInferTokenUsage - 获取token使用量 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUMInferTokenUsageResponse getUMInferTokenUsage(GetUMInferTokenUsageRequest request) + throws UCloudException { + request.setAction("GetUMInferTokenUsage"); + return (GetUMInferTokenUsageResponse) + this.invoke(request, GetUMInferTokenUsageResponse.class); + } + + /** + * ListPaidOrderSummary - 查询已完成订单汇总 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListPaidOrderSummaryResponse listPaidOrderSummary(ListPaidOrderSummaryRequest request) + throws UCloudException { + request.setAction("ListPaidOrderSummary"); + return (ListPaidOrderSummaryResponse) + this.invoke(request, ListPaidOrderSummaryResponse.class); + } + + /** + * ListPaidOrders - 查询已完成订单明细 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListPaidOrdersResponse listPaidOrders(ListPaidOrdersRequest request) + throws UCloudException { + request.setAction("ListPaidOrders"); + return (ListPaidOrdersResponse) this.invoke(request, ListPaidOrdersResponse.class); + } + + /** + * ListUFSquareModel - 查询模型广场数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUFSquareModelResponse listUFSquareModel(ListUFSquareModelRequest request) + throws UCloudException { + request.setAction("ListUFSquareModel"); + return (ListUFSquareModelResponse) this.invoke(request, ListUFSquareModelResponse.class); + } + + /** + * ListUMInferAPIKey - 列表查询APIKey + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUMInferAPIKeyResponse listUMInferAPIKey(ListUMInferAPIKeyRequest request) + throws UCloudException { + request.setAction("ListUMInferAPIKey"); + return (ListUMInferAPIKeyResponse) this.invoke(request, ListUMInferAPIKeyResponse.class); + } + + /** + * ListUnpaidOrderSummary - 查询欠费订单汇总 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUnpaidOrderSummaryResponse listUnpaidOrderSummary( + ListUnpaidOrderSummaryRequest request) throws UCloudException { + request.setAction("ListUnpaidOrderSummary"); + return (ListUnpaidOrderSummaryResponse) + this.invoke(request, ListUnpaidOrderSummaryResponse.class); + } + + /** + * ListUnpaidOrders - 查询欠费订单明细 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUnpaidOrdersResponse listUnpaidOrders(ListUnpaidOrdersRequest request) + throws UCloudException { + request.setAction("ListUnpaidOrders"); + return (ListUnpaidOrdersResponse) this.invoke(request, ListUnpaidOrdersResponse.class); + } + + /** + * UpdateUMInferAPIKey - 更新apikey + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUMInferAPIKeyResponse updateUMInferAPIKey(UpdateUMInferAPIKeyRequest request) + throws UCloudException { + request.setAction("UpdateUMInferAPIKey"); + return (UpdateUMInferAPIKeyResponse) + this.invoke(request, UpdateUMInferAPIKeyResponse.class); } } diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAIModelverseClientInterface.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAIModelverseClientInterface.java index 4c7793733..ec6f5873a 100644 --- a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAIModelverseClientInterface.java +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAIModelverseClientInterface.java @@ -15,18 +15,183 @@ import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; -import cn.ucloud.uai_modelverse.models.GetUMInferServiceRequest; -import cn.ucloud.uai_modelverse.models.GetUMInferServiceResponse; +import cn.ucloud.uai_modelverse.models.CreateUMInferAPIKeyRequest; +import cn.ucloud.uai_modelverse.models.CreateUMInferAPIKeyResponse; +import cn.ucloud.uai_modelverse.models.DeleteUMInferAPIKeyRequest; +import cn.ucloud.uai_modelverse.models.DeleteUMInferAPIKeyResponse; +import cn.ucloud.uai_modelverse.models.DownloadListPaidOrdersRequest; +import cn.ucloud.uai_modelverse.models.DownloadListPaidOrdersResponse; +import cn.ucloud.uai_modelverse.models.DownloadListUnpaidOrdersRequest; +import cn.ucloud.uai_modelverse.models.DownloadListUnpaidOrdersResponse; +import cn.ucloud.uai_modelverse.models.DownloadOrderSummaryRequest; +import cn.ucloud.uai_modelverse.models.DownloadOrderSummaryResponse; +import cn.ucloud.uai_modelverse.models.GetFilterOptionsRequest; +import cn.ucloud.uai_modelverse.models.GetFilterOptionsResponse; +import cn.ucloud.uai_modelverse.models.GetOrderAmountRequest; +import cn.ucloud.uai_modelverse.models.GetOrderAmountResponse; +import cn.ucloud.uai_modelverse.models.GetUMInferAPIModelRequest; +import cn.ucloud.uai_modelverse.models.GetUMInferAPIModelResponse; +import cn.ucloud.uai_modelverse.models.GetUMInferTokenUsageRequest; +import cn.ucloud.uai_modelverse.models.GetUMInferTokenUsageResponse; +import cn.ucloud.uai_modelverse.models.ListPaidOrderSummaryRequest; +import cn.ucloud.uai_modelverse.models.ListPaidOrderSummaryResponse; +import cn.ucloud.uai_modelverse.models.ListPaidOrdersRequest; +import cn.ucloud.uai_modelverse.models.ListPaidOrdersResponse; +import cn.ucloud.uai_modelverse.models.ListUFSquareModelRequest; +import cn.ucloud.uai_modelverse.models.ListUFSquareModelResponse; +import cn.ucloud.uai_modelverse.models.ListUMInferAPIKeyRequest; +import cn.ucloud.uai_modelverse.models.ListUMInferAPIKeyResponse; +import cn.ucloud.uai_modelverse.models.ListUnpaidOrderSummaryRequest; +import cn.ucloud.uai_modelverse.models.ListUnpaidOrderSummaryResponse; +import cn.ucloud.uai_modelverse.models.ListUnpaidOrdersRequest; +import cn.ucloud.uai_modelverse.models.ListUnpaidOrdersResponse; +import cn.ucloud.uai_modelverse.models.UpdateUMInferAPIKeyRequest; +import cn.ucloud.uai_modelverse.models.UpdateUMInferAPIKeyResponse; /** This client is used to call actions of **UAIModelverse** service */ public interface UAIModelverseClientInterface extends Client { /** - * GetUMInferService - 获取模型服务 + * CreateUMInferAPIKey - 创建apikey * * @param request Request object * @throws UCloudException Exception */ - public GetUMInferServiceResponse getUMInferService(GetUMInferServiceRequest request) + public CreateUMInferAPIKeyResponse createUMInferAPIKey(CreateUMInferAPIKeyRequest request) + throws UCloudException; + + /** + * DeleteUMInferAPIKey - 删除apikey + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUMInferAPIKeyResponse deleteUMInferAPIKey(DeleteUMInferAPIKeyRequest request) + throws UCloudException; + + /** + * DownloadListPaidOrders - 下载已完成订单明细 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadListPaidOrdersResponse downloadListPaidOrders( + DownloadListPaidOrdersRequest request) throws UCloudException; + + /** + * DownloadListUnpaidOrders - 下载欠费订单明细 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadListUnpaidOrdersResponse downloadListUnpaidOrders( + DownloadListUnpaidOrdersRequest request) throws UCloudException; + + /** + * DownloadOrderSummary - 下载订单汇总 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadOrderSummaryResponse downloadOrderSummary(DownloadOrderSummaryRequest request) + throws UCloudException; + + /** + * GetFilterOptions - 查询筛选选项 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetFilterOptionsResponse getFilterOptions(GetFilterOptionsRequest request) + throws UCloudException; + + /** + * GetOrderAmount - 查询订单汇总统计 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetOrderAmountResponse getOrderAmount(GetOrderAmountRequest request) + throws UCloudException; + + /** + * GetUMInferAPIModel - 获取api模型列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUMInferAPIModelResponse getUMInferAPIModel(GetUMInferAPIModelRequest request) + throws UCloudException; + + /** + * GetUMInferTokenUsage - 获取token使用量 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUMInferTokenUsageResponse getUMInferTokenUsage(GetUMInferTokenUsageRequest request) + throws UCloudException; + + /** + * ListPaidOrderSummary - 查询已完成订单汇总 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListPaidOrderSummaryResponse listPaidOrderSummary(ListPaidOrderSummaryRequest request) + throws UCloudException; + + /** + * ListPaidOrders - 查询已完成订单明细 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListPaidOrdersResponse listPaidOrders(ListPaidOrdersRequest request) + throws UCloudException; + + /** + * ListUFSquareModel - 查询模型广场数据 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUFSquareModelResponse listUFSquareModel(ListUFSquareModelRequest request) + throws UCloudException; + + /** + * ListUMInferAPIKey - 列表查询APIKey + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUMInferAPIKeyResponse listUMInferAPIKey(ListUMInferAPIKeyRequest request) + throws UCloudException; + + /** + * ListUnpaidOrderSummary - 查询欠费订单汇总 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUnpaidOrderSummaryResponse listUnpaidOrderSummary( + ListUnpaidOrderSummaryRequest request) throws UCloudException; + + /** + * ListUnpaidOrders - 查询欠费订单明细 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUnpaidOrdersResponse listUnpaidOrders(ListUnpaidOrdersRequest request) + throws UCloudException; + + /** + * UpdateUMInferAPIKey - 更新apikey + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUMInferAPIKeyResponse updateUMInferAPIKey(UpdateUMInferAPIKeyRequest request) throws UCloudException; } diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyRequest.java new file mode 100644 index 000000000..83a9f008f --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyRequest.java @@ -0,0 +1,140 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateUMInferAPIKeyRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** apikey名称 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** 是否modelverse可用 0: 启用 1: 禁用 */ + @UCloudParam("ModelverseDisabled") + private Integer modelverseDisabled; + + /** 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) */ + @UCloudParam("SandBoxDisabled") + private Integer sandBoxDisabled; + + /** 日限额,单位随用户所在渠道。126渠道单位为美元 */ + @UCloudParam("DailyLimitAmount") + private String dailyLimitAmount; + + /** 月限额,单位随用户所在渠道。126渠道单位为美元 */ + @UCloudParam("MonthlyLimitAmount") + private String monthlyLimitAmount; + + /** 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 */ + @UCloudParam("GrantAllModels") + private Boolean grantAllModels; + + /** + * 授权模型,内容为数组格式。当 GrantAllModels 为false时 当前key只可访问数组中模型。例:["deepseek-ai/DeepSeek-V3.2-Think"] + */ + @UCloudParam("GrantedModels") + private String grantedModels; + + /** + * ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 + * 192.168.1.10/24 + */ + @UCloudParam("IPWhitelist") + private String ipWhitelist; + + 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 Integer getModelverseDisabled() { + return modelverseDisabled; + } + + public void setModelverseDisabled(Integer modelverseDisabled) { + this.modelverseDisabled = modelverseDisabled; + } + + public Integer getSandBoxDisabled() { + return sandBoxDisabled; + } + + public void setSandBoxDisabled(Integer sandBoxDisabled) { + this.sandBoxDisabled = sandBoxDisabled; + } + + public String getDailyLimitAmount() { + return dailyLimitAmount; + } + + public void setDailyLimitAmount(String dailyLimitAmount) { + this.dailyLimitAmount = dailyLimitAmount; + } + + public String getMonthlyLimitAmount() { + return monthlyLimitAmount; + } + + public void setMonthlyLimitAmount(String monthlyLimitAmount) { + this.monthlyLimitAmount = monthlyLimitAmount; + } + + public Boolean getGrantAllModels() { + return grantAllModels; + } + + public void setGrantAllModels(Boolean grantAllModels) { + this.grantAllModels = grantAllModels; + } + + public String getGrantedModels() { + return grantedModels; + } + + public void setGrantedModels(String grantedModels) { + this.grantedModels = grantedModels; + } + + public String getIPWhitelist() { + return ipWhitelist; + } + + public void setIPWhitelist(String ipWhitelist) { + this.ipWhitelist = ipWhitelist; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyResponse.java new file mode 100644 index 000000000..2f41ff647 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateUMInferAPIKeyResponse.java @@ -0,0 +1,269 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class CreateUMInferAPIKeyResponse extends Response { + + /** apikey */ + @SerializedName("Data") + private APIKey data; + + /** 总条数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + public APIKey getData() { + return data; + } + + public void setData(APIKey data) { + this.data = data; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public static class APIKey extends Response { + + /** + * ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 + * 192.168.1.10/24 + */ + @SerializedName("IPWhitelist") + private String ipWhitelist; + + /** 资源ID */ + @SerializedName("KeyId") + private String keyId; + + /** 名称 */ + @SerializedName("Name") + private String name; + + /** 渠道id */ + @SerializedName("ChannelId") + private Integer channelId; + + /** 公司id */ + @SerializedName("TopOrganizationId") + private Integer topOrganizationId; + + /** 项目id */ + @SerializedName("OrganizationId") + private Integer organizationId; + + /** 状态,1 正常 */ + @SerializedName("Status") + private Integer status; + + /** 创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 密钥值 */ + @SerializedName("Key") + private String key; + + /** 过期时间的unix时间戳,-1 用不过期 */ + @SerializedName("ExpireTime") + private Integer expireTime; + + /** 是否modelverse可用 0: 启用 1: 禁用 */ + @SerializedName("ModelverseDisabled") + private Integer modelverseDisabled; + + /** 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) */ + @SerializedName("SandBoxDisabled") + private Integer sandBoxDisabled; + + /** 日限额,单位随用户所在渠道。126渠道单位为美元 */ + @SerializedName("DailyLimitAmount") + private String dailyLimitAmount; + + /** 日已使用额,单位随用户所在渠道。126渠道单位为美元 */ + @SerializedName("DailyUsedAmount") + private String dailyUsedAmount; + + /** 月限额,单位随用户所在渠道。126渠道单位为美元 */ + @SerializedName("MonthlyLimitAmount") + private String monthlyLimitAmount; + + /** 月已使用额,单位随用户所在渠道。126渠道单位为美元 */ + @SerializedName("MonthlyUsedAmount") + private String monthlyUsedAmount; + + /** 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 */ + @SerializedName("GrantAllModels") + private Boolean grantAllModels; + + /** 授权的模型,英文逗号分隔,all表示所有模型都有权限 */ + @SerializedName("GrantedModels") + private List grantedModels; + + public String getIPWhitelist() { + return ipWhitelist; + } + + public void setIPWhitelist(String ipWhitelist) { + this.ipWhitelist = ipWhitelist; + } + + public String getKeyId() { + return keyId; + } + + public void setKeyId(String keyId) { + this.keyId = keyId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getChannelId() { + return channelId; + } + + public void setChannelId(Integer channelId) { + this.channelId = channelId; + } + + public Integer getTopOrganizationId() { + return topOrganizationId; + } + + public void setTopOrganizationId(Integer topOrganizationId) { + this.topOrganizationId = topOrganizationId; + } + + public Integer getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(Integer organizationId) { + this.organizationId = organizationId; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getModelverseDisabled() { + return modelverseDisabled; + } + + public void setModelverseDisabled(Integer modelverseDisabled) { + this.modelverseDisabled = modelverseDisabled; + } + + public Integer getSandBoxDisabled() { + return sandBoxDisabled; + } + + public void setSandBoxDisabled(Integer sandBoxDisabled) { + this.sandBoxDisabled = sandBoxDisabled; + } + + public String getDailyLimitAmount() { + return dailyLimitAmount; + } + + public void setDailyLimitAmount(String dailyLimitAmount) { + this.dailyLimitAmount = dailyLimitAmount; + } + + public String getDailyUsedAmount() { + return dailyUsedAmount; + } + + public void setDailyUsedAmount(String dailyUsedAmount) { + this.dailyUsedAmount = dailyUsedAmount; + } + + public String getMonthlyLimitAmount() { + return monthlyLimitAmount; + } + + public void setMonthlyLimitAmount(String monthlyLimitAmount) { + this.monthlyLimitAmount = monthlyLimitAmount; + } + + public String getMonthlyUsedAmount() { + return monthlyUsedAmount; + } + + public void setMonthlyUsedAmount(String monthlyUsedAmount) { + this.monthlyUsedAmount = monthlyUsedAmount; + } + + public Boolean getGrantAllModels() { + return grantAllModels; + } + + public void setGrantAllModels(Boolean grantAllModels) { + this.grantAllModels = grantAllModels; + } + + public List getGrantedModels() { + return grantedModels; + } + + public void setGrantedModels(List grantedModels) { + this.grantedModels = grantedModels; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteUMInferAPIKeyRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteUMInferAPIKeyRequest.java new file mode 100644 index 000000000..36d8cb5be --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteUMInferAPIKeyRequest.java @@ -0,0 +1,51 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteUMInferAPIKeyRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 要删除的apikey id */ + @NotEmpty + @UCloudParam("KeyId") + private String keyId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getKeyId() { + return keyId; + } + + public void setKeyId(String keyId) { + this.keyId = keyId; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteUMInferAPIKeyResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteUMInferAPIKeyResponse.java new file mode 100644 index 000000000..b49450973 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteUMInferAPIKeyResponse.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.uai_modelverse.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DeleteUMInferAPIKeyResponse extends Response { + + /** apikey 的资源ID */ + @SerializedName("UminferID") + private String uminferID; + + public String getUminferID() { + return uminferID; + } + + public void setUminferID(String uminferID) { + this.uminferID = uminferID; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadListPaidOrdersRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadListPaidOrdersRequest.java new file mode 100644 index 000000000..fc2d8c643 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadListPaidOrdersRequest.java @@ -0,0 +1,145 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.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 DownloadListPaidOrdersRequest extends Request { + + /** 查询开始时间(Unix 时间戳,秒级),必填 */ + @NotEmpty + @UCloudParam("StartTime") + private Integer startTime; + + /** 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + /** 资源ID列表(可选) */ + @UCloudParam("ResourceIds") + private List resourceIds; + + /** 模型ID列表(可选) */ + @UCloudParam("ModelIds") + private List modelIds; + + /** 计费单位列表(多选,可选) */ + @UCloudParam("PricingUnits") + private List pricingUnits; + + /** 计费单元(SKU)列表(可选) */ + @UCloudParam("PricingSkus") + private List pricingSkus; + + /** 订单类型数组(多选,可选) */ + @UCloudParam("OrderTypes") + private List orderTypes; + + /** 组织ID列表(可选) */ + @UCloudParam("OrganizationIds") + private List organizationIds; + + /** 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Regions") + private List regions; + + /** 产品类型列表(可选),枚举值:`modelverse`、`sandbox` */ + @UCloudParam("ProductCodes") + private List productCodes; + + public Integer getStartTime() { + return startTime; + } + + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public List getModelIds() { + return modelIds; + } + + public void setModelIds(List modelIds) { + this.modelIds = modelIds; + } + + public List getPricingUnits() { + return pricingUnits; + } + + public void setPricingUnits(List pricingUnits) { + this.pricingUnits = pricingUnits; + } + + public List getPricingSkus() { + return pricingSkus; + } + + public void setPricingSkus(List pricingSkus) { + this.pricingSkus = pricingSkus; + } + + public List getOrderTypes() { + return orderTypes; + } + + public void setOrderTypes(List orderTypes) { + this.orderTypes = orderTypes; + } + + public List getOrganizationIds() { + return organizationIds; + } + + public void setOrganizationIds(List organizationIds) { + this.organizationIds = organizationIds; + } + + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public List getProductCodes() { + return productCodes; + } + + public void setProductCodes(List productCodes) { + this.productCodes = productCodes; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadListPaidOrdersResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadListPaidOrdersResponse.java new file mode 100644 index 000000000..4d30c4a70 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadListPaidOrdersResponse.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.uai_modelverse.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DownloadListPaidOrdersResponse extends Response { + + /** 下载文件信息 */ + @SerializedName("Data") + private DownloadFileData data; + + public DownloadFileData getData() { + return data; + } + + public void setData(DownloadFileData data) { + this.data = data; + } + + public static class DownloadFileData extends Response { + + /** 文件下载链接(US3 预签名 URL,请在有效期内立即下载) */ + @SerializedName("DownloadURL") + private String downloadURL; + + /** 文件名 */ + @SerializedName("FileName") + private String fileName; + + /** 文件大小(字节) */ + @SerializedName("FileSize") + private Integer fileSize; + + public String getDownloadURL() { + return downloadURL; + } + + public void setDownloadURL(String downloadURL) { + this.downloadURL = downloadURL; + } + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public Integer getFileSize() { + return fileSize; + } + + public void setFileSize(Integer fileSize) { + this.fileSize = fileSize; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadListUnpaidOrdersRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadListUnpaidOrdersRequest.java new file mode 100644 index 000000000..1f9f0b598 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadListUnpaidOrdersRequest.java @@ -0,0 +1,145 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.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 DownloadListUnpaidOrdersRequest extends Request { + + /** 查询开始时间(Unix 时间戳,秒级),必填 */ + @NotEmpty + @UCloudParam("StartTime") + private Integer startTime; + + /** 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + /** 资源ID列表(可选) */ + @UCloudParam("ResourceIds") + private List resourceIds; + + /** 模型ID列表(可选) */ + @UCloudParam("ModelIds") + private List modelIds; + + /** 计费单位列表(多选,可选) */ + @UCloudParam("PricingUnits") + private List pricingUnits; + + /** 订单类型数组(多选,可选) */ + @UCloudParam("OrderTypes") + private List orderTypes; + + /** 组织ID列表(可选) */ + @UCloudParam("OrganizationIds") + private List organizationIds; + + /** 计费单元(SKU)列表(可选) */ + @UCloudParam("PricingSkus") + private List pricingSkus; + + /** 产品类型列表(可选),枚举值:`modelverse`、`sandbox` */ + @UCloudParam("ProductCodes") + private List productCodes; + + /** 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Regions") + private List regions; + + public Integer getStartTime() { + return startTime; + } + + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public List getModelIds() { + return modelIds; + } + + public void setModelIds(List modelIds) { + this.modelIds = modelIds; + } + + public List getPricingUnits() { + return pricingUnits; + } + + public void setPricingUnits(List pricingUnits) { + this.pricingUnits = pricingUnits; + } + + public List getOrderTypes() { + return orderTypes; + } + + public void setOrderTypes(List orderTypes) { + this.orderTypes = orderTypes; + } + + public List getOrganizationIds() { + return organizationIds; + } + + public void setOrganizationIds(List organizationIds) { + this.organizationIds = organizationIds; + } + + public List getPricingSkus() { + return pricingSkus; + } + + public void setPricingSkus(List pricingSkus) { + this.pricingSkus = pricingSkus; + } + + public List getProductCodes() { + return productCodes; + } + + public void setProductCodes(List productCodes) { + this.productCodes = productCodes; + } + + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadListUnpaidOrdersResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadListUnpaidOrdersResponse.java new file mode 100644 index 000000000..49d5b792b --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadListUnpaidOrdersResponse.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.uai_modelverse.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DownloadListUnpaidOrdersResponse extends Response { + + /** 下载文件信息 */ + @SerializedName("Data") + private DownloadFileData data; + + public DownloadFileData getData() { + return data; + } + + public void setData(DownloadFileData data) { + this.data = data; + } + + public static class DownloadFileData extends Response { + + /** 文件下载链接(US3 预签名 URL,请在有效期内立即下载) */ + @SerializedName("DownloadURL") + private String downloadURL; + + /** 文件名 */ + @SerializedName("FileName") + private String fileName; + + /** 文件大小(字节) */ + @SerializedName("FileSize") + private Integer fileSize; + + public String getDownloadURL() { + return downloadURL; + } + + public void setDownloadURL(String downloadURL) { + this.downloadURL = downloadURL; + } + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public Integer getFileSize() { + return fileSize; + } + + public void setFileSize(Integer fileSize) { + this.fileSize = fileSize; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadOrderSummaryRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadOrderSummaryRequest.java new file mode 100644 index 000000000..d931beff8 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadOrderSummaryRequest.java @@ -0,0 +1,157 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.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 DownloadOrderSummaryRequest extends Request { + + /** 查询开始时间(Unix 时间戳,秒级),必填 */ + @NotEmpty + @UCloudParam("StartTime") + private Integer startTime; + + /** 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + /** 资源ID列表(可选) */ + @UCloudParam("ResourceIds") + private List resourceIds; + + /** 模型ID列表(可选) */ + @UCloudParam("ModelIds") + private List modelIds; + + /** 计费单位列表(多选,可选) */ + @UCloudParam("PricingUnits") + private List pricingUnits; + + /** 订单类型数组(多选,可选) */ + @UCloudParam("OrderTypes") + private List orderTypes; + + /** 计费类型数组(多选,可选) */ + @UCloudParam("ChargeTypes") + private List chargeTypes; + + /** 组织ID列表(可选) */ + @UCloudParam("OrganizationIds") + private List organizationIds; + + /** 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Regions") + private List regions; + + /** 计费单元(SKU)列表(可选) */ + @UCloudParam("PricingSkus") + private List pricingSkus; + + /** 产品类型列表(可选),枚举值:`modelverse`、`sandbox` */ + @UCloudParam("ProductCodes") + private List productCodes; + + public Integer getStartTime() { + return startTime; + } + + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public List getModelIds() { + return modelIds; + } + + public void setModelIds(List modelIds) { + this.modelIds = modelIds; + } + + public List getPricingUnits() { + return pricingUnits; + } + + public void setPricingUnits(List pricingUnits) { + this.pricingUnits = pricingUnits; + } + + public List getOrderTypes() { + return orderTypes; + } + + public void setOrderTypes(List orderTypes) { + this.orderTypes = orderTypes; + } + + public List getChargeTypes() { + return chargeTypes; + } + + public void setChargeTypes(List chargeTypes) { + this.chargeTypes = chargeTypes; + } + + public List getOrganizationIds() { + return organizationIds; + } + + public void setOrganizationIds(List organizationIds) { + this.organizationIds = organizationIds; + } + + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public List getPricingSkus() { + return pricingSkus; + } + + public void setPricingSkus(List pricingSkus) { + this.pricingSkus = pricingSkus; + } + + public List getProductCodes() { + return productCodes; + } + + public void setProductCodes(List productCodes) { + this.productCodes = productCodes; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadOrderSummaryResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadOrderSummaryResponse.java new file mode 100644 index 000000000..53a7957ff --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DownloadOrderSummaryResponse.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.uai_modelverse.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DownloadOrderSummaryResponse extends Response { + + /** 下载文件信息 */ + @SerializedName("Data") + private DownloadFileData data; + + public DownloadFileData getData() { + return data; + } + + public void setData(DownloadFileData data) { + this.data = data; + } + + public static class DownloadFileData extends Response { + + /** 文件下载链接(US3 预签名 URL,请在有效期内立即下载) */ + @SerializedName("DownloadURL") + private String downloadURL; + + /** 文件名 */ + @SerializedName("FileName") + private String fileName; + + /** 文件大小(字节) */ + @SerializedName("FileSize") + private Integer fileSize; + + public String getDownloadURL() { + return downloadURL; + } + + public void setDownloadURL(String downloadURL) { + this.downloadURL = downloadURL; + } + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public Integer getFileSize() { + return fileSize; + } + + public void setFileSize(Integer fileSize) { + this.fileSize = fileSize; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetFilterOptionsRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetFilterOptionsRequest.java new file mode 100644 index 000000000..ad00c12d5 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetFilterOptionsRequest.java @@ -0,0 +1,33 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetFilterOptionsRequest extends Request { + + /** 产品类型(单选,可选),枚举值:`modelverse`、`sandbox`;为空时返回所有产品下的选项 */ + @UCloudParam("ProductCode") + private String productCode; + + public String getProductCode() { + return productCode; + } + + public void setProductCode(String productCode) { + this.productCode = productCode; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetFilterOptionsResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetFilterOptionsResponse.java new file mode 100644 index 000000000..2568a2679 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetFilterOptionsResponse.java @@ -0,0 +1,158 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetFilterOptionsResponse extends Response { + + /** 资源选项列表 */ + @SerializedName("ResourceIds") + private List resourceIds; + + /** 模型选项列表 */ + @SerializedName("Models") + private List models; + + /** 账单维度选项列表 */ + @SerializedName("Dimensions") + private List dimensions; + + /** 计费单位选项列表 */ + @SerializedName("PricingUnits") + private List pricingUnits; + + /** 地域选项列表 */ + @SerializedName("Regions") + private List regions; + + /** 产品类型选项列表 */ + @SerializedName("ProductCodes") + private List productCodes; + + /** 项目选项列表 */ + @SerializedName("Projects") + private List projects; + + /** 计费 SKU 选项列表 */ + @SerializedName("PricingSKUs") + private List pricingSKUs; + + /** 订单类型选项列表 */ + @SerializedName("OrderTypes") + private List orderTypes; + + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public List getModels() { + return models; + } + + public void setModels(List models) { + this.models = models; + } + + public List getDimensions() { + return dimensions; + } + + public void setDimensions(List dimensions) { + this.dimensions = dimensions; + } + + public List getPricingUnits() { + return pricingUnits; + } + + public void setPricingUnits(List pricingUnits) { + this.pricingUnits = pricingUnits; + } + + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public List getProductCodes() { + return productCodes; + } + + public void setProductCodes(List productCodes) { + this.productCodes = productCodes; + } + + public List getProjects() { + return projects; + } + + public void setProjects(List projects) { + this.projects = projects; + } + + public List getPricingSKUs() { + return pricingSKUs; + } + + public void setPricingSKUs(List pricingSKUs) { + this.pricingSKUs = pricingSKUs; + } + + public List getOrderTypes() { + return orderTypes; + } + + public void setOrderTypes(List orderTypes) { + this.orderTypes = orderTypes; + } + + public static class FilterOptionAiBill extends Response { + + /** 显示名称 */ + @SerializedName("Name") + private String name; + + /** 值实际是interface */ + @SerializedName("Value") + private Object value; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Object getValue() { + return value; + } + + public void setValue(Object value) { + this.value = value; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetOrderAmountRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetOrderAmountRequest.java new file mode 100644 index 000000000..90fe3cdc9 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetOrderAmountRequest.java @@ -0,0 +1,145 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.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 GetOrderAmountRequest extends Request { + + /** 查询开始时间(Unix 时间戳,秒级)。需与 `EndTime` 同时提供,最大查询跨度 366 天 */ + @NotEmpty + @UCloudParam("StartTime") + private Integer startTime; + + /** 查询结束时间(Unix 时间戳,秒级)。需与 `StartTime` 同时提供 */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + /** 资源ID列表(可选) */ + @UCloudParam("ResourceIds") + private List resourceIds; + + /** 模型ID列表(可选) */ + @UCloudParam("ModelIds") + private List modelIds; + + /** 计费单位列表(可选) */ + @UCloudParam("PricingUnits") + private List pricingUnits; + + /** 计费单元(SKU)列表(可选) */ + @UCloudParam("PricingSkus") + private List pricingSkus; + + /** 产品类型列表(可选),枚举值:`modelverse`、`sandbox` */ + @UCloudParam("ProductCodes") + private List productCodes; + + /** 订单类型列表(可选) */ + @UCloudParam("OrderTypes") + private List orderTypes; + + /** 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Regions") + private List regions; + + /** 组织ID列表(可选) */ + @UCloudParam("OrganizationIds") + private List organizationIds; + + public Integer getStartTime() { + return startTime; + } + + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public List getModelIds() { + return modelIds; + } + + public void setModelIds(List modelIds) { + this.modelIds = modelIds; + } + + public List getPricingUnits() { + return pricingUnits; + } + + public void setPricingUnits(List pricingUnits) { + this.pricingUnits = pricingUnits; + } + + public List getPricingSkus() { + return pricingSkus; + } + + public void setPricingSkus(List pricingSkus) { + this.pricingSkus = pricingSkus; + } + + public List getProductCodes() { + return productCodes; + } + + public void setProductCodes(List productCodes) { + this.productCodes = productCodes; + } + + public List getOrderTypes() { + return orderTypes; + } + + public void setOrderTypes(List orderTypes) { + this.orderTypes = orderTypes; + } + + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public List getOrganizationIds() { + return organizationIds; + } + + public void setOrganizationIds(List organizationIds) { + this.organizationIds = organizationIds; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetOrderAmountResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetOrderAmountResponse.java new file mode 100644 index 000000000..2d7389067 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetOrderAmountResponse.java @@ -0,0 +1,142 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetOrderAmountResponse extends Response { + + /** 订单总额(所有订单的总金额) */ + @SerializedName("TotalOrderAmount") + private String totalOrderAmount; + + /** 已支付金额 */ + @SerializedName("PaidAmount") + private String paidAmount; + + /** 待支付金额 */ + @SerializedName("UnpaidAmount") + private String unpaidAmount; + + /** 现金账户总金额 */ + @SerializedName("CashAmount") + private String cashAmount; + + /** 赠金账户总金额 */ + @SerializedName("BonusAmount") + private String bonusAmount; + + /** 代金券抵扣总额 */ + @SerializedName("CouponAmount") + private String couponAmount; + + /** 星力卡抵扣总金额 */ + @SerializedName("StarCardAmount") + private String starCardAmount; + + /** 订单总数 */ + @SerializedName("OrderCount") + private Integer orderCount; + + /** 已支付订单数 */ + @SerializedName("PaidCount") + private Integer paidCount; + + /** 待支付订单数量 */ + @SerializedName("UnpaidCount") + private Integer unpaidCount; + + public String getTotalOrderAmount() { + return totalOrderAmount; + } + + public void setTotalOrderAmount(String totalOrderAmount) { + this.totalOrderAmount = totalOrderAmount; + } + + public String getPaidAmount() { + return paidAmount; + } + + public void setPaidAmount(String paidAmount) { + this.paidAmount = paidAmount; + } + + public String getUnpaidAmount() { + return unpaidAmount; + } + + public void setUnpaidAmount(String unpaidAmount) { + this.unpaidAmount = unpaidAmount; + } + + public String getCashAmount() { + return cashAmount; + } + + public void setCashAmount(String cashAmount) { + this.cashAmount = cashAmount; + } + + public String getBonusAmount() { + return bonusAmount; + } + + public void setBonusAmount(String bonusAmount) { + this.bonusAmount = bonusAmount; + } + + public String getCouponAmount() { + return couponAmount; + } + + public void setCouponAmount(String couponAmount) { + this.couponAmount = couponAmount; + } + + public String getStarCardAmount() { + return starCardAmount; + } + + public void setStarCardAmount(String starCardAmount) { + this.starCardAmount = starCardAmount; + } + + public Integer getOrderCount() { + return orderCount; + } + + public void setOrderCount(Integer orderCount) { + this.orderCount = orderCount; + } + + public Integer getPaidCount() { + return paidCount; + } + + public void setPaidCount(Integer paidCount) { + this.paidCount = paidCount; + } + + public Integer getUnpaidCount() { + return unpaidCount; + } + + public void setUnpaidCount(Integer unpaidCount) { + this.unpaidCount = unpaidCount; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferAPIModelRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferAPIModelRequest.java new file mode 100644 index 000000000..c260d87f2 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferAPIModelRequest.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.uai_modelverse.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUMInferAPIModelRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** apikey 的id */ + @UCloudParam("KeyId") + private String keyId; + + /** 模型类型,1: 文本生成,2: 图片生成。 */ + @UCloudParam("ModelType") + private Integer modelType; + + /** 模型广场的id,用来跳转体验中心 */ + @UCloudParam("SquareId") + private String squareId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getKeyId() { + return keyId; + } + + public void setKeyId(String keyId) { + this.keyId = keyId; + } + + public Integer getModelType() { + return modelType; + } + + public void setModelType(Integer modelType) { + this.modelType = modelType; + } + + public String getSquareId() { + return squareId; + } + + public void setSquareId(String squareId) { + this.squareId = squareId; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferAPIModelResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferAPIModelResponse.java new file mode 100644 index 000000000..1815f57f7 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferAPIModelResponse.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.uai_modelverse.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetUMInferAPIModelResponse extends Response { + + /** 模型名称的字符串列表 */ + @SerializedName("Data") + private List data; + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class Pricing extends Response { + + /** 输出定价 */ + @SerializedName("Completion") + private Double completion; + + /** 提示词定价 */ + @SerializedName("Prompt") + private Double prompt; + + /** 生图定价 */ + @SerializedName("Image") + private Double image; + + /** 币种 */ + @SerializedName("Currency") + private String currency; + + public Double getCompletion() { + return completion; + } + + public void setCompletion(Double completion) { + this.completion = completion; + } + + public Double getPrompt() { + return prompt; + } + + public void setPrompt(Double prompt) { + this.prompt = prompt; + } + + public Double getImage() { + return image; + } + + public void setImage(Double image) { + this.image = image; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + } + + public static class UMinferAPIModel extends Response { + + /** 使用OpenAI接口调用时,填入的 model值 */ + @SerializedName("ServedModelName") + private String servedModelName; + + /** id */ + @SerializedName("Id") + private String id; + + /** 名称 */ + @SerializedName("Name") + private String name; + + /** 描述 */ + @SerializedName("SimpleDescribe") + private String simpleDescribe; + + /** 语言 */ + @SerializedName("Language") + private List language; + + /** 图标链接 */ + @SerializedName("Icon") + private String icon; + + /** 模型价格 */ + @SerializedName("Pricing") + private Pricing pricing; + + /** 创建时间 */ + @SerializedName("CreateAt") + private Integer createAt; + + /** 更新时间 */ + @SerializedName("UpdateAt") + private Integer updateAt; + + public String getServedModelName() { + return servedModelName; + } + + public void setServedModelName(String servedModelName) { + this.servedModelName = servedModelName; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getSimpleDescribe() { + return simpleDescribe; + } + + public void setSimpleDescribe(String simpleDescribe) { + this.simpleDescribe = simpleDescribe; + } + + public List getLanguage() { + return language; + } + + public void setLanguage(List language) { + this.language = language; + } + + public String getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public Pricing getPricing() { + return pricing; + } + + public void setPricing(Pricing pricing) { + this.pricing = pricing; + } + + public Integer getCreateAt() { + return createAt; + } + + public void setCreateAt(Integer createAt) { + this.createAt = createAt; + } + + public Integer getUpdateAt() { + return updateAt; + } + + public void setUpdateAt(Integer updateAt) { + this.updateAt = updateAt; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferServiceRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferServiceRequest.java deleted file mode 100644 index 612af8361..000000000 --- a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferServiceRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - * Copyright 2021 UCloud Technology Co., Ltd. - * - *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and - * limitations under the License. - */ -package cn.ucloud.uai_modelverse.models; - - -import cn.ucloud.common.annotation.UCloudParam; -import cn.ucloud.common.request.Request; - -public class GetUMInferServiceRequest extends Request { - - /** 推理服务id */ - @UCloudParam("UminferID") - private String uminferID; - - /** offset */ - @UCloudParam("Offset") - private String offset; - - /** limit */ - @UCloudParam("Limit") - private String limit; - - /** 默认preDeploy,可获取DeepSeek Key */ - @UCloudParam("UminferType") - private String uminferType; - - public String getUminferID() { - return uminferID; - } - - public void setUminferID(String uminferID) { - this.uminferID = uminferID; - } - - public String getOffset() { - return offset; - } - - public void setOffset(String offset) { - this.offset = offset; - } - - public String getLimit() { - return limit; - } - - public void setLimit(String limit) { - this.limit = limit; - } - - public String getUminferType() { - return uminferType; - } - - public void setUminferType(String uminferType) { - this.uminferType = uminferType; - } -} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferServiceResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferServiceResponse.java deleted file mode 100644 index e2831b7cd..000000000 --- a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferServiceResponse.java +++ /dev/null @@ -1,206 +0,0 @@ -/** - * Copyright 2021 UCloud Technology Co., Ltd. - * - *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either - * express or implied. See the License for the specific language governing permissions and - * limitations under the License. - */ -package cn.ucloud.uai_modelverse.models; - -import cn.ucloud.common.response.Response; - -import com.google.gson.annotations.SerializedName; - -import java.util.List; - -public class GetUMInferServiceResponse extends Response { - - /** 推理服务数据 */ - @SerializedName("Data") - private List data; - - /** 模型数量 */ - @SerializedName("TotalCount") - private Integer totalCount; - - public List getData() { - return data; - } - - public void setData(List data) { - this.data = data; - } - - public Integer getTotalCount() { - return totalCount; - } - - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; - } - - public static class UMInferServiceData extends Response { - - /** 副本数 */ - @SerializedName("Replicas") - private Integer replicas; - - /** 实际启动的副本数 */ - @SerializedName("ReadyReplicas") - private Integer readyReplicas; - - /** 算力单元 */ - @SerializedName("ComputingUnit") - private Integer computingUnit; - - /** 推理服务资源id */ - @SerializedName("UminferID") - private String uminferID; - - /** 推理服务资源类型 */ - @SerializedName("UminferType") - private String uminferType; - - /** 服务状态 */ - @SerializedName("Status") - private String status; - - /** 服务的url */ - @SerializedName("URL") - private String url; - - /** 服务名字 */ - @SerializedName("Name") - private String name; - - /** 创建时间 */ - @SerializedName("CreateTime") - private Integer createTime; - - /** 模型id */ - @SerializedName("ModelID") - private String modelID; - - /** 模型名字 */ - @SerializedName("ModelName") - private String modelName; - - /** 描述 */ - @SerializedName("Describe") - private String describe; - - /** 模型认证key */ - @SerializedName("Key") - private String key; - - public Integer getReplicas() { - return replicas; - } - - public void setReplicas(Integer replicas) { - this.replicas = replicas; - } - - public Integer getReadyReplicas() { - return readyReplicas; - } - - public void setReadyReplicas(Integer readyReplicas) { - this.readyReplicas = readyReplicas; - } - - public Integer getComputingUnit() { - return computingUnit; - } - - public void setComputingUnit(Integer computingUnit) { - this.computingUnit = computingUnit; - } - - public String getUminferID() { - return uminferID; - } - - public void setUminferID(String uminferID) { - this.uminferID = uminferID; - } - - public String getUminferType() { - return uminferType; - } - - public void setUminferType(String uminferType) { - this.uminferType = uminferType; - } - - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getURL() { - return url; - } - - public void setURL(String url) { - this.url = url; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getCreateTime() { - return createTime; - } - - public void setCreateTime(Integer createTime) { - this.createTime = createTime; - } - - public String getModelID() { - return modelID; - } - - public void setModelID(String modelID) { - this.modelID = modelID; - } - - public String getModelName() { - return modelName; - } - - public void setModelName(String modelName) { - this.modelName = modelName; - } - - public String getDescribe() { - return describe; - } - - public void setDescribe(String describe) { - this.describe = describe; - } - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - } -} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferTokenUsageRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferTokenUsageRequest.java new file mode 100644 index 000000000..4ee1472c6 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferTokenUsageRequest.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.uai_modelverse.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUMInferTokenUsageRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** apikey的id */ + @NotEmpty + @UCloudParam("KeyId") + private String keyId; + + /** 模型名称 */ + @NotEmpty + @UCloudParam("Model") + private String model; + + /** 开始时间戳 */ + @NotEmpty + @UCloudParam("StartTime") + private Integer startTime; + + /** 结束时间戳 */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getKeyId() { + return keyId; + } + + public void setKeyId(String keyId) { + this.keyId = keyId; + } + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public Integer getStartTime() { + return startTime; + } + + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferTokenUsageResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferTokenUsageResponse.java new file mode 100644 index 000000000..92271c771 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/GetUMInferTokenUsageResponse.java @@ -0,0 +1,161 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetUMInferTokenUsageResponse extends Response { + + /** token使用详情 */ + @SerializedName("Data") + private TokenUsage data; + + public TokenUsage getData() { + return data; + } + + public void setData(TokenUsage data) { + this.data = data; + } + + public static class TokenUsage extends Response { + + /** 总token量 */ + @SerializedName("Total") + private Integer total; + + /** 输出总token */ + @SerializedName("InTotal") + private Integer inTotal; + + /** 输出总token */ + @SerializedName("OutTotal") + private Integer outTotal; + + /** 生图总张数 */ + @SerializedName("ImageGenerationNum") + private Integer imageGenerationNum; + + /** 请求总次数 */ + @SerializedName("RequestTotal") + private Integer requestTotal; + + /** 每个时间戳的token使用量 */ + @SerializedName("Usages") + private List usages; + + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public Integer getInTotal() { + return inTotal; + } + + public void setInTotal(Integer inTotal) { + this.inTotal = inTotal; + } + + public Integer getOutTotal() { + return outTotal; + } + + public void setOutTotal(Integer outTotal) { + this.outTotal = outTotal; + } + + public Integer getImageGenerationNum() { + return imageGenerationNum; + } + + public void setImageGenerationNum(Integer imageGenerationNum) { + this.imageGenerationNum = imageGenerationNum; + } + + public Integer getRequestTotal() { + return requestTotal; + } + + public void setRequestTotal(Integer requestTotal) { + this.requestTotal = requestTotal; + } + + public List getUsages() { + return usages; + } + + public void setUsages(List usages) { + this.usages = usages; + } + } + + public static class TokenUsageTimestamp extends Response { + + /** 类型,in输入 out输出 total总 request_count 请求次数 image_generation 生图张数 */ + @SerializedName("Type") + private String type; + + /** 数量 */ + @SerializedName("Count") + private Integer count; + + /** unix时间戳 */ + @SerializedName("Timestamp") + private Integer timestamp; + + /** 模型名称 */ + @SerializedName("Model") + private String model; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public Integer getTimestamp() { + return timestamp; + } + + public void setTimestamp(Integer timestamp) { + this.timestamp = timestamp; + } + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListPaidOrderSummaryRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListPaidOrderSummaryRequest.java new file mode 100644 index 000000000..01f45f6b9 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListPaidOrderSummaryRequest.java @@ -0,0 +1,157 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.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 ListPaidOrderSummaryRequest extends Request { + + /** 查询开始时间(Unix 时间戳,秒级),必填 */ + @NotEmpty + @UCloudParam("StartTime") + private Integer startTime; + + /** 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + /** 资源ID数组(多选,可选) */ + @UCloudParam("ResourceIds") + private List resourceIds; + + /** 模型ID数组(多选,可选) */ + @UCloudParam("ModelIds") + private List modelIds; + + /** 计费单位数组(多选,可选) */ + @UCloudParam("PricingUnits") + private List pricingUnits; + + /** 订单类型数组(多选,可选) */ + @UCloudParam("OrderTypes") + private List orderTypes; + + /** 计费类型数组(多选,可选) */ + @UCloudParam("ChargeTypes") + private List chargeTypes; + + /** 计费单元(SKU)列表(可选) */ + @UCloudParam("PricingSkus") + private List pricingSkus; + + /** 产品类型列表(多选,可选),枚举值:`modelverse`、`sandbox` */ + @UCloudParam("ProductCodes") + private List productCodes; + + /** 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Regions") + private List regions; + + /** 组织ID列表(可选) */ + @UCloudParam("OrganizationIds") + private List organizationIds; + + public Integer getStartTime() { + return startTime; + } + + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public List getModelIds() { + return modelIds; + } + + public void setModelIds(List modelIds) { + this.modelIds = modelIds; + } + + public List getPricingUnits() { + return pricingUnits; + } + + public void setPricingUnits(List pricingUnits) { + this.pricingUnits = pricingUnits; + } + + public List getOrderTypes() { + return orderTypes; + } + + public void setOrderTypes(List orderTypes) { + this.orderTypes = orderTypes; + } + + public List getChargeTypes() { + return chargeTypes; + } + + public void setChargeTypes(List chargeTypes) { + this.chargeTypes = chargeTypes; + } + + public List getPricingSkus() { + return pricingSkus; + } + + public void setPricingSkus(List pricingSkus) { + this.pricingSkus = pricingSkus; + } + + public List getProductCodes() { + return productCodes; + } + + public void setProductCodes(List productCodes) { + this.productCodes = productCodes; + } + + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public List getOrganizationIds() { + return organizationIds; + } + + public void setOrganizationIds(List organizationIds) { + this.organizationIds = organizationIds; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListPaidOrderSummaryResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListPaidOrderSummaryResponse.java new file mode 100644 index 000000000..2197fbbd0 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListPaidOrderSummaryResponse.java @@ -0,0 +1,290 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListPaidOrderSummaryResponse extends Response { + + /** 已完成订单汇总列表 */ + @SerializedName("Summaries") + private List summaries; + + public List getSummaries() { + return summaries; + } + + public void setSummaries(List summaries) { + this.summaries = summaries; + } + + public static class OrderSummaryItem extends Response { + + /** 资源ID */ + @SerializedName("ResourceId") + private String resourceId; + + /** 计费单元(SKU)名称 */ + @SerializedName("PricingSKU") + private String pricingSKU; + + /** 模型ID */ + @SerializedName("ModelID") + private String modelID; + + /** 模型名称 */ + @SerializedName("ModelName") + private String modelName; + + /** 计费单位(计量单元) */ + @SerializedName("PricingUnit") + private Integer pricingUnit; + + /** 计费单位名称 */ + @SerializedName("PricingUnitName") + private String pricingUnitName; + + /** 订单类型 */ + @SerializedName("OrderType") + private Integer orderType; + + /** 订单类型显示名 */ + @SerializedName("OrderTypeDisplay") + private String orderTypeDisplay; + + /** 计费类型 */ + @SerializedName("ChargeType") + private Integer chargeType; + + /** 订单状态(2=已支付; 3=已撤销) */ + @SerializedName("Status") + private Integer status; + + /** 订单状态显示名 */ + @SerializedName("StatusDisplay") + private String statusDisplay; + + /** 列表价(原单价) */ + @SerializedName("ListPrice") + private String listPrice; + + /** 折后单价 */ + @SerializedName("DiscountPrice") + private String discountPrice; + + /** 总用量(原始值) */ + @SerializedName("SumQuantity") + private Integer sumQuantity; + + /** 总用量显示(格式化后的字符串,千token和百万token会进行转换) */ + @SerializedName("SumQuantityDisplay") + private String sumQuantityDisplay; + + /** 总订单金额(格式化后的字符串) */ + @SerializedName("SumOrderPrice") + private String sumOrderPrice; + + /** 总原价(格式化后的字符串) */ + @SerializedName("SumOriginalPrice") + private String sumOriginalPrice; + + /** 总现金账户扣款(仅已完成订单返回) */ + @SerializedName("SumCashAccount") + private String sumCashAccount; + + /** 总星力卡抵扣金额(仅已完成订单返回) */ + @SerializedName("SumStarCardAccount") + private String sumStarCardAccount; + + /** 总赠金账户扣款(仅已完成订单返回) */ + @SerializedName("SumBonusAccount") + private String sumBonusAccount; + + /** 总代金券抵扣(仅已完成订单返回) */ + @SerializedName("SumCoupon") + private String sumCoupon; + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getPricingSKU() { + return pricingSKU; + } + + public void setPricingSKU(String pricingSKU) { + this.pricingSKU = pricingSKU; + } + + public String getModelID() { + return modelID; + } + + public void setModelID(String modelID) { + this.modelID = modelID; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public Integer getPricingUnit() { + return pricingUnit; + } + + public void setPricingUnit(Integer pricingUnit) { + this.pricingUnit = pricingUnit; + } + + public String getPricingUnitName() { + return pricingUnitName; + } + + public void setPricingUnitName(String pricingUnitName) { + this.pricingUnitName = pricingUnitName; + } + + public Integer getOrderType() { + return orderType; + } + + public void setOrderType(Integer orderType) { + this.orderType = orderType; + } + + public String getOrderTypeDisplay() { + return orderTypeDisplay; + } + + public void setOrderTypeDisplay(String orderTypeDisplay) { + this.orderTypeDisplay = orderTypeDisplay; + } + + public Integer getChargeType() { + return chargeType; + } + + public void setChargeType(Integer chargeType) { + this.chargeType = chargeType; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getStatusDisplay() { + return statusDisplay; + } + + public void setStatusDisplay(String statusDisplay) { + this.statusDisplay = statusDisplay; + } + + public String getListPrice() { + return listPrice; + } + + public void setListPrice(String listPrice) { + this.listPrice = listPrice; + } + + public String getDiscountPrice() { + return discountPrice; + } + + public void setDiscountPrice(String discountPrice) { + this.discountPrice = discountPrice; + } + + public Integer getSumQuantity() { + return sumQuantity; + } + + public void setSumQuantity(Integer sumQuantity) { + this.sumQuantity = sumQuantity; + } + + public String getSumQuantityDisplay() { + return sumQuantityDisplay; + } + + public void setSumQuantityDisplay(String sumQuantityDisplay) { + this.sumQuantityDisplay = sumQuantityDisplay; + } + + public String getSumOrderPrice() { + return sumOrderPrice; + } + + public void setSumOrderPrice(String sumOrderPrice) { + this.sumOrderPrice = sumOrderPrice; + } + + public String getSumOriginalPrice() { + return sumOriginalPrice; + } + + public void setSumOriginalPrice(String sumOriginalPrice) { + this.sumOriginalPrice = sumOriginalPrice; + } + + public String getSumCashAccount() { + return sumCashAccount; + } + + public void setSumCashAccount(String sumCashAccount) { + this.sumCashAccount = sumCashAccount; + } + + public String getSumStarCardAccount() { + return sumStarCardAccount; + } + + public void setSumStarCardAccount(String sumStarCardAccount) { + this.sumStarCardAccount = sumStarCardAccount; + } + + public String getSumBonusAccount() { + return sumBonusAccount; + } + + public void setSumBonusAccount(String sumBonusAccount) { + this.sumBonusAccount = sumBonusAccount; + } + + public String getSumCoupon() { + return sumCoupon; + } + + public void setSumCoupon(String sumCoupon) { + this.sumCoupon = sumCoupon; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListPaidOrdersRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListPaidOrdersRequest.java new file mode 100644 index 000000000..507204f77 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListPaidOrdersRequest.java @@ -0,0 +1,171 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.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 ListPaidOrdersRequest extends Request { + + /** 查询开始时间(Unix 时间戳,秒级)。与 `EndTime` 同时提供时启用自定义周期查询;EndTime 必须大于 StartTime */ + @NotEmpty + @UCloudParam("StartTime") + private Integer startTime; + + /** 查询结束时间(Unix 时间戳,秒级)。需与 `StartTime` 同时提供 */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + /** 页码,从1开始 */ + @NotEmpty + @UCloudParam("Page") + private Integer page; + + /** 每页数量(最小10,最大100) */ + @NotEmpty + @UCloudParam("PageSize") + private Integer pageSize; + + /** 资源ID数组(多选,可选) */ + @UCloudParam("ResourceIds") + private List resourceIds; + + /** 模型ID数组(多选,可选) */ + @UCloudParam("ModelIds") + private List modelIds; + + /** 计费单位数组(多选,可选) */ + @UCloudParam("PricingUnits") + private List pricingUnits; + + /** 订单类型数组(多选,可选) */ + @UCloudParam("OrderTypes") + private List orderTypes; + + /** 计费 SKU 列表(可选) */ + @UCloudParam("PricingSkus") + private List pricingSkus; + + /** 产品类型列表(多选,可选),枚举值:`modelverse`、`sandbox` */ + @UCloudParam("ProductCodes") + private List productCodes; + + /** 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Regions") + private List regions; + + /** 组织ID列表(可选) */ + @UCloudParam("OrganizationIds") + private List organizationIds; + + public Integer getStartTime() { + return startTime; + } + + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public Integer getPage() { + return page; + } + + public void setPage(Integer page) { + this.page = page; + } + + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public List getModelIds() { + return modelIds; + } + + public void setModelIds(List modelIds) { + this.modelIds = modelIds; + } + + public List getPricingUnits() { + return pricingUnits; + } + + public void setPricingUnits(List pricingUnits) { + this.pricingUnits = pricingUnits; + } + + public List getOrderTypes() { + return orderTypes; + } + + public void setOrderTypes(List orderTypes) { + this.orderTypes = orderTypes; + } + + public List getPricingSkus() { + return pricingSkus; + } + + public void setPricingSkus(List pricingSkus) { + this.pricingSkus = pricingSkus; + } + + public List getProductCodes() { + return productCodes; + } + + public void setProductCodes(List productCodes) { + this.productCodes = productCodes; + } + + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public List getOrganizationIds() { + return organizationIds; + } + + public void setOrganizationIds(List organizationIds) { + this.organizationIds = organizationIds; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListPaidOrdersResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListPaidOrdersResponse.java new file mode 100644 index 000000000..9d6ba4b6e --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListPaidOrdersResponse.java @@ -0,0 +1,530 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListPaidOrdersResponse extends Response { + + /** 当前页码 */ + @SerializedName("Page") + private Integer page; + + /** 每页数量 */ + @SerializedName("PageSize") + private Integer pageSize; + + /** 总记录数 */ + @SerializedName("Total") + private Integer total; + + /** 订单列表 */ + @SerializedName("Orders") + private List orders; + + public Integer getPage() { + return page; + } + + public void setPage(Integer page) { + this.page = page; + } + + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public List getOrders() { + return orders; + } + + public void setOrders(List orders) { + this.orders = orders; + } + + public static class OrderItemDetail extends Response { + + /** 地域 */ + @SerializedName("Region") + private String region; + + /** 产品类型 */ + @SerializedName("ProductCode") + private String productCode; + + /** 产品类型显示名 */ + @SerializedName("ProductCodeDisplay") + private String productCodeDisplay; + + /** 星力卡抵扣金额 */ + @SerializedName("StarCardAccount") + private String starCardAccount; + + /** 订单号 */ + @SerializedName("OrderNo") + private String orderNo; + + /** 公司id */ + @SerializedName("CompanyID") + private Integer companyID; + + /** 项目ID */ + @SerializedName("OrganizationID") + private Integer organizationID; + + /** 项目名称 */ + @SerializedName("OrganizationName") + private String organizationName; + + /** 用户邮箱 */ + @SerializedName("UserEmail") + private String userEmail; + + /** 计费类型 */ + @SerializedName("ChargeType") + private Integer chargeType; + + /** 计费类型显示名 */ + @SerializedName("ChargeTypeDisplay") + private String chargeTypeDisplay; + + /** 渠道 */ + @SerializedName("Channel") + private Integer channel; + + /** 币种(如:CNY、USD) */ + @SerializedName("Currency") + private String currency; + + /** 币种显示名 */ + @SerializedName("CurrencyDisplay") + private String currencyDisplay; + + /** 资源ID */ + @SerializedName("ResourceID") + private String resourceID; + + /** 模型ID */ + @SerializedName("ModelID") + private String modelID; + + /** 模型名称 */ + @SerializedName("ModelName") + private String modelName; + + /** 订单类型 */ + @SerializedName("OrderType") + private Integer orderType; + + /** 订单类型显示名 */ + @SerializedName("OrderTypeDisplay") + private String orderTypeDisplay; + + /** 计费单元(SKU)名称 */ + @SerializedName("PricingSKU") + private String pricingSKU; + + /** 用量 */ + @SerializedName("Quantity") + private Integer quantity; + + /** 用量显示(含单位) */ + @SerializedName("QuantityDisplay") + private String quantityDisplay; + + /** 计费单位(计量单元) */ + @SerializedName("PricingUnit") + private Integer pricingUnit; + + /** 计费单位显示名(如:千Token、张、秒) */ + @SerializedName("PricingUnitDisplay") + private String pricingUnitDisplay; + + /** 列表价(原单价) */ + @SerializedName("ListPrice") + private String listPrice; + + /** 折后价(折后单价) */ + @SerializedName("DiscountPrice") + private String discountPrice; + + /** 订单总额 */ + @SerializedName("OrderTotalPrice") + private String orderTotalPrice; + + /** 原价 */ + @SerializedName("OriginalPrice") + private String originalPrice; + + /** 订单状态 */ + @SerializedName("Status") + private Integer status; + + /** 订单状态显示名 */ + @SerializedName("StatusDisplay") + private String statusDisplay; + + /** 开始计费时间(Unix 时间戳,秒级) */ + @SerializedName("StartTime") + private Integer startTime; + + /** 结束计费时间(Unix 时间戳,秒级) */ + @SerializedName("EndTime") + private Integer endTime; + + /** 支付完成时间(Unix 时间戳,秒级) */ + @SerializedName("PaidTime") + private Integer paidTime; + + /** 现金账户扣款金额 */ + @SerializedName("CashAccount") + private String cashAccount; + + /** 赠金账户扣款金额 */ + @SerializedName("BonusAccount") + private String bonusAccount; + + /** 代金券抵扣金额 */ + @SerializedName("Coupon") + private String coupon; + + /** 欠费订单号 */ + @SerializedName("UnpaidOrderNo") + private String unpaidOrderNo; + + /** 地域显示名 */ + @SerializedName("RegionDisplay") + private String regionDisplay; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProductCode() { + return productCode; + } + + public void setProductCode(String productCode) { + this.productCode = productCode; + } + + public String getProductCodeDisplay() { + return productCodeDisplay; + } + + public void setProductCodeDisplay(String productCodeDisplay) { + this.productCodeDisplay = productCodeDisplay; + } + + public String getStarCardAccount() { + return starCardAccount; + } + + public void setStarCardAccount(String starCardAccount) { + this.starCardAccount = starCardAccount; + } + + public String getOrderNo() { + return orderNo; + } + + public void setOrderNo(String orderNo) { + this.orderNo = orderNo; + } + + public Integer getCompanyID() { + return companyID; + } + + public void setCompanyID(Integer companyID) { + this.companyID = companyID; + } + + public Integer getOrganizationID() { + return organizationID; + } + + public void setOrganizationID(Integer organizationID) { + this.organizationID = organizationID; + } + + public String getOrganizationName() { + return organizationName; + } + + public void setOrganizationName(String organizationName) { + this.organizationName = organizationName; + } + + public String getUserEmail() { + return userEmail; + } + + public void setUserEmail(String userEmail) { + this.userEmail = userEmail; + } + + public Integer getChargeType() { + return chargeType; + } + + public void setChargeType(Integer chargeType) { + this.chargeType = chargeType; + } + + public String getChargeTypeDisplay() { + return chargeTypeDisplay; + } + + public void setChargeTypeDisplay(String chargeTypeDisplay) { + this.chargeTypeDisplay = chargeTypeDisplay; + } + + public Integer getChannel() { + return channel; + } + + public void setChannel(Integer channel) { + this.channel = channel; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getCurrencyDisplay() { + return currencyDisplay; + } + + public void setCurrencyDisplay(String currencyDisplay) { + this.currencyDisplay = currencyDisplay; + } + + public String getResourceID() { + return resourceID; + } + + public void setResourceID(String resourceID) { + this.resourceID = resourceID; + } + + public String getModelID() { + return modelID; + } + + public void setModelID(String modelID) { + this.modelID = modelID; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public Integer getOrderType() { + return orderType; + } + + public void setOrderType(Integer orderType) { + this.orderType = orderType; + } + + public String getOrderTypeDisplay() { + return orderTypeDisplay; + } + + public void setOrderTypeDisplay(String orderTypeDisplay) { + this.orderTypeDisplay = orderTypeDisplay; + } + + public String getPricingSKU() { + return pricingSKU; + } + + public void setPricingSKU(String pricingSKU) { + this.pricingSKU = pricingSKU; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getQuantityDisplay() { + return quantityDisplay; + } + + public void setQuantityDisplay(String quantityDisplay) { + this.quantityDisplay = quantityDisplay; + } + + public Integer getPricingUnit() { + return pricingUnit; + } + + public void setPricingUnit(Integer pricingUnit) { + this.pricingUnit = pricingUnit; + } + + public String getPricingUnitDisplay() { + return pricingUnitDisplay; + } + + public void setPricingUnitDisplay(String pricingUnitDisplay) { + this.pricingUnitDisplay = pricingUnitDisplay; + } + + public String getListPrice() { + return listPrice; + } + + public void setListPrice(String listPrice) { + this.listPrice = listPrice; + } + + public String getDiscountPrice() { + return discountPrice; + } + + public void setDiscountPrice(String discountPrice) { + this.discountPrice = discountPrice; + } + + public String getOrderTotalPrice() { + return orderTotalPrice; + } + + public void setOrderTotalPrice(String orderTotalPrice) { + this.orderTotalPrice = orderTotalPrice; + } + + public String getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(String originalPrice) { + this.originalPrice = originalPrice; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getStatusDisplay() { + return statusDisplay; + } + + public void setStatusDisplay(String statusDisplay) { + this.statusDisplay = statusDisplay; + } + + public Integer getStartTime() { + return startTime; + } + + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public Integer getPaidTime() { + return paidTime; + } + + public void setPaidTime(Integer paidTime) { + this.paidTime = paidTime; + } + + public String getCashAccount() { + return cashAccount; + } + + public void setCashAccount(String cashAccount) { + this.cashAccount = cashAccount; + } + + public String getBonusAccount() { + return bonusAccount; + } + + public void setBonusAccount(String bonusAccount) { + this.bonusAccount = bonusAccount; + } + + public String getCoupon() { + return coupon; + } + + public void setCoupon(String coupon) { + this.coupon = coupon; + } + + public String getUnpaidOrderNo() { + return unpaidOrderNo; + } + + public void setUnpaidOrderNo(String unpaidOrderNo) { + this.unpaidOrderNo = unpaidOrderNo; + } + + public String getRegionDisplay() { + return regionDisplay; + } + + public void setRegionDisplay(String regionDisplay) { + this.regionDisplay = regionDisplay; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelRequest.java new file mode 100644 index 000000000..f2bcc2aa7 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelRequest.java @@ -0,0 +1,157 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +import java.util.List; + +public class ListUFSquareModelRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 模型类型 */ + @UCloudParam("ModelType") + private String modelType; + + /** 关键字 */ + @UCloudParam("Keyword") + private String keyword; + + /** 偏移量 */ + @UCloudParam("Offset") + private Integer offset; + + /** 每页数量 */ + @UCloudParam("Limit") + private Integer limit; + + /** 排序字段 */ + @UCloudParam("OrderBy") + private String orderBy; + + /** 排序顺序,默认倒序 */ + @UCloudParam("Order") + private String order; + + /** 上下文长度,数组类型,可选值 [0,4096,16384,32768,131072,256000,262144,1048576] */ + @UCloudParam("MaxModelLen") + private List maxModelLen; + + /** 语言,数组类型,可选值 ["chinese", "english"] */ + @UCloudParam("Language") + private List language; + + 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 getModelType() { + return modelType; + } + + public void setModelType(String modelType) { + this.modelType = modelType; + } + + public String getKeyword() { + return keyword; + } + + public void setKeyword(String keyword) { + this.keyword = keyword; + } + + 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 getOrderBy() { + return orderBy; + } + + public void setOrderBy(String orderBy) { + this.orderBy = orderBy; + } + + public String getOrder() { + return order; + } + + public void setOrder(String order) { + this.order = order; + } + + public List getMaxModelLen() { + return maxModelLen; + } + + public void setMaxModelLen(List maxModelLen) { + this.maxModelLen = maxModelLen; + } + + public List getLanguage() { + return language; + } + + public void setLanguage(List language) { + this.language = language; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelResponse.java new file mode 100644 index 000000000..4d49473ce --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUFSquareModelResponse.java @@ -0,0 +1,257 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUFSquareModelResponse extends Response { + + /** 总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 广场模型 */ + @SerializedName("SquareModels") + private List squareModels; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getSquareModels() { + return squareModels; + } + + public void setSquareModels(List squareModels) { + this.squareModels = squareModels; + } + + public static class Pricing extends Response { + + /** 输出定价 */ + @SerializedName("Completion") + private Double completion; + + /** 提示词定价 */ + @SerializedName("Prompt") + private Double prompt; + + /** 生图定价 */ + @SerializedName("Image") + private Double image; + + /** 币种 */ + @SerializedName("Currency") + private String currency; + + public Double getCompletion() { + return completion; + } + + public void setCompletion(Double completion) { + this.completion = completion; + } + + public Double getPrompt() { + return prompt; + } + + public void setPrompt(Double prompt) { + this.prompt = prompt; + } + + public Double getImage() { + return image; + } + + public void setImage(Double image) { + this.image = image; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + } + + public static class SquareModel extends Response { + + /** 主键 */ + @SerializedName("Id") + private String id; + + /** 名称 */ + @SerializedName("Name") + private String name; + + /** 简要描述 */ + @SerializedName("SimpleDescribe") + private String simpleDescribe; + + /** 详细描述 */ + @SerializedName("Describe") + private String describe; + + /** 语言 */ + @SerializedName("Language") + private List language; + + /** 模型长度 */ + @SerializedName("MaxModelLen") + private Integer maxModelLen; + + /** 模型类型 */ + @SerializedName("ModelType") + private String modelType; + + /** HuggingFace 更新时间 */ + @SerializedName("HfUpdateTime") + private Integer hfUpdateTime; + + /** 创建时间 */ + @SerializedName("CreateAt") + private Integer createAt; + + /** 更新时间 */ + @SerializedName("UpdateAt") + private Integer updateAt; + + /** 模型能力 */ + @SerializedName("SupportedCapabilities") + private List supportedCapabilities; + + /** 图标 */ + @SerializedName("Icon") + private String icon; + + /** 定价策略 */ + @SerializedName("Pricing") + private Pricing pricing; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getSimpleDescribe() { + return simpleDescribe; + } + + public void setSimpleDescribe(String simpleDescribe) { + this.simpleDescribe = simpleDescribe; + } + + public String getDescribe() { + return describe; + } + + public void setDescribe(String describe) { + this.describe = describe; + } + + public List getLanguage() { + return language; + } + + public void setLanguage(List language) { + this.language = language; + } + + public Integer getMaxModelLen() { + return maxModelLen; + } + + public void setMaxModelLen(Integer maxModelLen) { + this.maxModelLen = maxModelLen; + } + + public String getModelType() { + return modelType; + } + + public void setModelType(String modelType) { + this.modelType = modelType; + } + + public Integer getHfUpdateTime() { + return hfUpdateTime; + } + + public void setHfUpdateTime(Integer hfUpdateTime) { + this.hfUpdateTime = hfUpdateTime; + } + + public Integer getCreateAt() { + return createAt; + } + + public void setCreateAt(Integer createAt) { + this.createAt = createAt; + } + + public Integer getUpdateAt() { + return updateAt; + } + + public void setUpdateAt(Integer updateAt) { + this.updateAt = updateAt; + } + + public List getSupportedCapabilities() { + return supportedCapabilities; + } + + public void setSupportedCapabilities(List supportedCapabilities) { + this.supportedCapabilities = supportedCapabilities; + } + + public String getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public Pricing getPricing() { + return pricing; + } + + public void setPricing(Pricing pricing) { + this.pricing = pricing; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUMInferAPIKeyRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUMInferAPIKeyRequest.java new file mode 100644 index 000000000..9cc166a03 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUMInferAPIKeyRequest.java @@ -0,0 +1,86 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUMInferAPIKeyRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 列表起始位置偏移量,默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + /** 返回数据长度,默认为20,最大100 */ + @UCloudParam("Limit") + private Integer limit; + + /** 是否modelverse可用 0: 启用 1: 禁用 */ + @UCloudParam("ModelverseDisabled") + private Integer modelverseDisabled; + + /** 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) */ + @UCloudParam("SandBoxDisabled") + private Integer sandBoxDisabled; + + 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; + } + + public Integer getModelverseDisabled() { + return modelverseDisabled; + } + + public void setModelverseDisabled(Integer modelverseDisabled) { + this.modelverseDisabled = modelverseDisabled; + } + + public Integer getSandBoxDisabled() { + return sandBoxDisabled; + } + + public void setSandBoxDisabled(Integer sandBoxDisabled) { + this.sandBoxDisabled = sandBoxDisabled; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUMInferAPIKeyResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUMInferAPIKeyResponse.java new file mode 100644 index 000000000..17412a87b --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUMInferAPIKeyResponse.java @@ -0,0 +1,257 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUMInferAPIKeyResponse extends Response { + + /** apikey */ + @SerializedName("Data") + private List data; + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class APIKey extends Response { + + /** + * ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 + * 192.168.1.10/24 + */ + @SerializedName("IPWhitelist") + private String ipWhitelist; + + /** 资源ID */ + @SerializedName("KeyId") + private String keyId; + + /** 名称 */ + @SerializedName("Name") + private String name; + + /** 渠道id */ + @SerializedName("ChannelId") + private Integer channelId; + + /** 公司id */ + @SerializedName("TopOrganizationId") + private Integer topOrganizationId; + + /** 项目id */ + @SerializedName("OrganizationId") + private Integer organizationId; + + /** 状态,1 正常 */ + @SerializedName("Status") + private Integer status; + + /** 创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 密钥值 */ + @SerializedName("Key") + private String key; + + /** 过期时间的unix时间戳,-1 用不过期 */ + @SerializedName("ExpireTime") + private Integer expireTime; + + /** 是否modelverse可用 0: 启用 1: 禁用 */ + @SerializedName("ModelverseDisabled") + private Integer modelverseDisabled; + + /** 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) */ + @SerializedName("SandBoxDisabled") + private Integer sandBoxDisabled; + + /** 日限额,单位随用户所在渠道。126渠道单位为美元 */ + @SerializedName("DailyLimitAmount") + private String dailyLimitAmount; + + /** 日已使用额,单位随用户所在渠道。126渠道单位为美元 */ + @SerializedName("DailyUsedAmount") + private String dailyUsedAmount; + + /** 月限额,单位随用户所在渠道。126渠道单位为美元 */ + @SerializedName("MonthlyLimitAmount") + private String monthlyLimitAmount; + + /** 月已使用额,单位随用户所在渠道。126渠道单位为美元 */ + @SerializedName("MonthlyUsedAmount") + private String monthlyUsedAmount; + + /** 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 */ + @SerializedName("GrantAllModels") + private Boolean grantAllModels; + + /** 授权的模型,英文逗号分隔,all表示所有模型都有权限 */ + @SerializedName("GrantedModels") + private List grantedModels; + + public String getIPWhitelist() { + return ipWhitelist; + } + + public void setIPWhitelist(String ipWhitelist) { + this.ipWhitelist = ipWhitelist; + } + + public String getKeyId() { + return keyId; + } + + public void setKeyId(String keyId) { + this.keyId = keyId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getChannelId() { + return channelId; + } + + public void setChannelId(Integer channelId) { + this.channelId = channelId; + } + + public Integer getTopOrganizationId() { + return topOrganizationId; + } + + public void setTopOrganizationId(Integer topOrganizationId) { + this.topOrganizationId = topOrganizationId; + } + + public Integer getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(Integer organizationId) { + this.organizationId = organizationId; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } + + public Integer getModelverseDisabled() { + return modelverseDisabled; + } + + public void setModelverseDisabled(Integer modelverseDisabled) { + this.modelverseDisabled = modelverseDisabled; + } + + public Integer getSandBoxDisabled() { + return sandBoxDisabled; + } + + public void setSandBoxDisabled(Integer sandBoxDisabled) { + this.sandBoxDisabled = sandBoxDisabled; + } + + public String getDailyLimitAmount() { + return dailyLimitAmount; + } + + public void setDailyLimitAmount(String dailyLimitAmount) { + this.dailyLimitAmount = dailyLimitAmount; + } + + public String getDailyUsedAmount() { + return dailyUsedAmount; + } + + public void setDailyUsedAmount(String dailyUsedAmount) { + this.dailyUsedAmount = dailyUsedAmount; + } + + public String getMonthlyLimitAmount() { + return monthlyLimitAmount; + } + + public void setMonthlyLimitAmount(String monthlyLimitAmount) { + this.monthlyLimitAmount = monthlyLimitAmount; + } + + public String getMonthlyUsedAmount() { + return monthlyUsedAmount; + } + + public void setMonthlyUsedAmount(String monthlyUsedAmount) { + this.monthlyUsedAmount = monthlyUsedAmount; + } + + public Boolean getGrantAllModels() { + return grantAllModels; + } + + public void setGrantAllModels(Boolean grantAllModels) { + this.grantAllModels = grantAllModels; + } + + public List getGrantedModels() { + return grantedModels; + } + + public void setGrantedModels(List grantedModels) { + this.grantedModels = grantedModels; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUnpaidOrderSummaryRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUnpaidOrderSummaryRequest.java new file mode 100644 index 000000000..48379a893 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUnpaidOrderSummaryRequest.java @@ -0,0 +1,145 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.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 ListUnpaidOrderSummaryRequest extends Request { + + /** 查询开始时间(Unix 时间戳,秒级),必填 */ + @NotEmpty + @UCloudParam("StartTime") + private Integer startTime; + + /** 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + /** Key数组(多选,可选) */ + @UCloudParam("ResourceIds") + private List resourceIds; + + /** 订单类型数组(多选,可选) */ + @UCloudParam("OrderTypes") + private Integer orderTypes; + + /** 模型ID数组(多选,可选) */ + @UCloudParam("ModelIds") + private List modelIds; + + /** 计费单元数组(多选,可选) */ + @UCloudParam("PricingUnits") + private List pricingUnits; + + /** 计费类型数组(多选,可选) */ + @UCloudParam("ChargeTypes") + private List chargeTypes; + + /** 计费单元(SKU)列表(可选) */ + @UCloudParam("PricingSkus") + private List pricingSkus; + + /** 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Regions") + private List regions; + + /** 组织ID列表(可选) */ + @UCloudParam("OrganizationIds") + private List organizationIds; + + public Integer getStartTime() { + return startTime; + } + + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public Integer getOrderTypes() { + return orderTypes; + } + + public void setOrderTypes(Integer orderTypes) { + this.orderTypes = orderTypes; + } + + public List getModelIds() { + return modelIds; + } + + public void setModelIds(List modelIds) { + this.modelIds = modelIds; + } + + public List getPricingUnits() { + return pricingUnits; + } + + public void setPricingUnits(List pricingUnits) { + this.pricingUnits = pricingUnits; + } + + public List getChargeTypes() { + return chargeTypes; + } + + public void setChargeTypes(List chargeTypes) { + this.chargeTypes = chargeTypes; + } + + public List getPricingSkus() { + return pricingSkus; + } + + public void setPricingSkus(List pricingSkus) { + this.pricingSkus = pricingSkus; + } + + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public List getOrganizationIds() { + return organizationIds; + } + + public void setOrganizationIds(List organizationIds) { + this.organizationIds = organizationIds; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUnpaidOrderSummaryResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUnpaidOrderSummaryResponse.java new file mode 100644 index 000000000..03a09b84f --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUnpaidOrderSummaryResponse.java @@ -0,0 +1,290 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUnpaidOrderSummaryResponse extends Response { + + /** 欠费订单汇总列表 */ + @SerializedName("Summaries") + private List summaries; + + public List getSummaries() { + return summaries; + } + + public void setSummaries(List summaries) { + this.summaries = summaries; + } + + public static class OrderSummaryItem extends Response { + + /** 资源ID */ + @SerializedName("ResourceId") + private String resourceId; + + /** 计费单元(SKU)名称 */ + @SerializedName("PricingSKU") + private String pricingSKU; + + /** 模型ID */ + @SerializedName("ModelID") + private String modelID; + + /** 模型名称 */ + @SerializedName("ModelName") + private String modelName; + + /** 计费单位(计量单元) */ + @SerializedName("PricingUnit") + private Integer pricingUnit; + + /** 计费单位名称 */ + @SerializedName("PricingUnitName") + private String pricingUnitName; + + /** 订单类型 */ + @SerializedName("OrderType") + private Integer orderType; + + /** 订单类型显示名 */ + @SerializedName("OrderTypeDisplay") + private String orderTypeDisplay; + + /** 计费类型 */ + @SerializedName("ChargeType") + private Integer chargeType; + + /** 订单状态(2=已支付; 3=已撤销) */ + @SerializedName("Status") + private Integer status; + + /** 订单状态显示名 */ + @SerializedName("StatusDisplay") + private String statusDisplay; + + /** 列表价(原单价) */ + @SerializedName("ListPrice") + private String listPrice; + + /** 折后单价 */ + @SerializedName("DiscountPrice") + private String discountPrice; + + /** 总用量(原始值) */ + @SerializedName("SumQuantity") + private Integer sumQuantity; + + /** 总用量显示(格式化后的字符串,千token和百万token会进行转换) */ + @SerializedName("SumQuantityDisplay") + private String sumQuantityDisplay; + + /** 总订单金额(格式化后的字符串) */ + @SerializedName("SumOrderPrice") + private String sumOrderPrice; + + /** 总原价(格式化后的字符串) */ + @SerializedName("SumOriginalPrice") + private String sumOriginalPrice; + + /** 总现金账户扣款(仅已完成订单返回) */ + @SerializedName("SumCashAccount") + private String sumCashAccount; + + /** 总星力卡抵扣金额(仅已完成订单返回) */ + @SerializedName("SumStarCardAccount") + private String sumStarCardAccount; + + /** 总赠金账户扣款(仅已完成订单返回) */ + @SerializedName("SumBonusAccount") + private String sumBonusAccount; + + /** 总代金券抵扣(仅已完成订单返回) */ + @SerializedName("SumCoupon") + private String sumCoupon; + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getPricingSKU() { + return pricingSKU; + } + + public void setPricingSKU(String pricingSKU) { + this.pricingSKU = pricingSKU; + } + + public String getModelID() { + return modelID; + } + + public void setModelID(String modelID) { + this.modelID = modelID; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public Integer getPricingUnit() { + return pricingUnit; + } + + public void setPricingUnit(Integer pricingUnit) { + this.pricingUnit = pricingUnit; + } + + public String getPricingUnitName() { + return pricingUnitName; + } + + public void setPricingUnitName(String pricingUnitName) { + this.pricingUnitName = pricingUnitName; + } + + public Integer getOrderType() { + return orderType; + } + + public void setOrderType(Integer orderType) { + this.orderType = orderType; + } + + public String getOrderTypeDisplay() { + return orderTypeDisplay; + } + + public void setOrderTypeDisplay(String orderTypeDisplay) { + this.orderTypeDisplay = orderTypeDisplay; + } + + public Integer getChargeType() { + return chargeType; + } + + public void setChargeType(Integer chargeType) { + this.chargeType = chargeType; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getStatusDisplay() { + return statusDisplay; + } + + public void setStatusDisplay(String statusDisplay) { + this.statusDisplay = statusDisplay; + } + + public String getListPrice() { + return listPrice; + } + + public void setListPrice(String listPrice) { + this.listPrice = listPrice; + } + + public String getDiscountPrice() { + return discountPrice; + } + + public void setDiscountPrice(String discountPrice) { + this.discountPrice = discountPrice; + } + + public Integer getSumQuantity() { + return sumQuantity; + } + + public void setSumQuantity(Integer sumQuantity) { + this.sumQuantity = sumQuantity; + } + + public String getSumQuantityDisplay() { + return sumQuantityDisplay; + } + + public void setSumQuantityDisplay(String sumQuantityDisplay) { + this.sumQuantityDisplay = sumQuantityDisplay; + } + + public String getSumOrderPrice() { + return sumOrderPrice; + } + + public void setSumOrderPrice(String sumOrderPrice) { + this.sumOrderPrice = sumOrderPrice; + } + + public String getSumOriginalPrice() { + return sumOriginalPrice; + } + + public void setSumOriginalPrice(String sumOriginalPrice) { + this.sumOriginalPrice = sumOriginalPrice; + } + + public String getSumCashAccount() { + return sumCashAccount; + } + + public void setSumCashAccount(String sumCashAccount) { + this.sumCashAccount = sumCashAccount; + } + + public String getSumStarCardAccount() { + return sumStarCardAccount; + } + + public void setSumStarCardAccount(String sumStarCardAccount) { + this.sumStarCardAccount = sumStarCardAccount; + } + + public String getSumBonusAccount() { + return sumBonusAccount; + } + + public void setSumBonusAccount(String sumBonusAccount) { + this.sumBonusAccount = sumBonusAccount; + } + + public String getSumCoupon() { + return sumCoupon; + } + + public void setSumCoupon(String sumCoupon) { + this.sumCoupon = sumCoupon; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUnpaidOrdersRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUnpaidOrdersRequest.java new file mode 100644 index 000000000..d7e585ff1 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUnpaidOrdersRequest.java @@ -0,0 +1,159 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.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 ListUnpaidOrdersRequest extends Request { + + /** 查询结束时间(Unix 时间戳,秒级)。需与 `StartTime` 同时提供 */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + /** 查询开始时间(Unix 时间戳,秒级)。与 `EndTime` 同时提供时启用自定义周期查询;EndTime 必须大于 StartTime */ + @NotEmpty + @UCloudParam("StartTime") + private Integer startTime; + + /** 每页数量(最小10,最大100) */ + @NotEmpty + @UCloudParam("PageSize") + private Integer pageSize; + + /** 页码,从1开始 */ + @NotEmpty + @UCloudParam("Page") + private Integer page; + + /** key数组(多选,可选) */ + @UCloudParam("ResourceIds") + private List resourceIds; + + /** 模型ID数组(多选,可选) */ + @UCloudParam("ModelIds") + private List modelIds; + + /** 计费单元数组(多选,可选) */ + @UCloudParam("PricingUnits") + private List pricingUnits; + + /** 订单类型数组(多选,可选) */ + @UCloudParam("OrderTypes") + private List orderTypes; + + /** 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Regions") + private List regions; + + /** 计费 SKU 列表(可选) */ + @UCloudParam("PricingSkus") + private List pricingSkus; + + /** 产品类型列表(多选,可选),枚举值:`modelverse`、`sandbox` */ + @UCloudParam("ProductCodes") + private List productCodes; + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public Integer getStartTime() { + return startTime; + } + + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getPage() { + return page; + } + + public void setPage(Integer page) { + this.page = page; + } + + public List getResourceIds() { + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public List getModelIds() { + return modelIds; + } + + public void setModelIds(List modelIds) { + this.modelIds = modelIds; + } + + public List getPricingUnits() { + return pricingUnits; + } + + public void setPricingUnits(List pricingUnits) { + this.pricingUnits = pricingUnits; + } + + public List getOrderTypes() { + return orderTypes; + } + + public void setOrderTypes(List orderTypes) { + this.orderTypes = orderTypes; + } + + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public List getPricingSkus() { + return pricingSkus; + } + + public void setPricingSkus(List pricingSkus) { + this.pricingSkus = pricingSkus; + } + + public List getProductCodes() { + return productCodes; + } + + public void setProductCodes(List productCodes) { + this.productCodes = productCodes; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUnpaidOrdersResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUnpaidOrdersResponse.java new file mode 100644 index 000000000..1baac94a2 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/ListUnpaidOrdersResponse.java @@ -0,0 +1,494 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUnpaidOrdersResponse extends Response { + + /** 欠费订单明细列表 */ + @SerializedName("Orders") + private List orders; + + public List getOrders() { + return orders; + } + + public void setOrders(List orders) { + this.orders = orders; + } + + public static class UnpaidOrderItem extends Response { + + /** 地域代码 */ + @SerializedName("Region") + private String region; + + /** 订单号 */ + @SerializedName("OrderNo") + private String orderNo; + + /** 来源订单号 */ + @SerializedName("SourceOrderNo") + private String sourceOrderNo; + + /** 公司id */ + @SerializedName("CompanyID") + private Integer companyID; + + /** 组织ID */ + @SerializedName("OrganizationID") + private Integer organizationID; + + /** 组织名称 */ + @SerializedName("OrganizationName") + private String organizationName; + + /** 用户邮箱 */ + @SerializedName("UserEmail") + private String userEmail; + + /** 计费类型 */ + @SerializedName("ChargeType") + private Integer chargeType; + + /** 计价方式显示名 */ + @SerializedName("ChargeTypeDisplay") + private String chargeTypeDisplay; + + /** 渠道 */ + @SerializedName("Channel") + private Integer channel; + + /** 币种(如:CNY、USD) */ + @SerializedName("Currency") + private String currency; + + /** 币种显示名 */ + @SerializedName("CurrencyDisplay") + private String currencyDisplay; + + /** 模型key */ + @SerializedName("ResourceID") + private String resourceID; + + /** 资源类型 */ + @SerializedName("ResourceType") + private Integer resourceType; + + /** 资源类型显示名 */ + @SerializedName("ResourceTypeDisplay") + private String resourceTypeDisplay; + + /** 模型ID */ + @SerializedName("ModelID") + private String modelID; + + /** 模型名称 */ + @SerializedName("ModelName") + private String modelName; + + /** 订单类型 */ + @SerializedName("OrderType") + private Integer orderType; + + /** 订单类型显示名 */ + @SerializedName("OrderTypeDisplay") + private String orderTypeDisplay; + + /** 计费单元(SKU)名称 */ + @SerializedName("PricingSKU") + private String pricingSKU; + + /** 用量 */ + @SerializedName("Quantity") + private Integer quantity; + + /** 用量显示(含单位) */ + @SerializedName("QuantityDisplay") + private String quantityDisplay; + + /** 计费单位(计量单元) */ + @SerializedName("PricingUnit") + private Integer pricingUnit; + + /** 计费单位显示名(如:千Token、张、秒) */ + @SerializedName("PricingUnitDisplay") + private String pricingUnitDisplay; + + /** 列表价(原单价) */ + @SerializedName("ListPrice") + private String listPrice; + + /** 折后价(折后单价) */ + @SerializedName("DiscountPrice") + private String discountPrice; + + /** 订单总额 */ + @SerializedName("OrderTotalPrice") + private String orderTotalPrice; + + /** 原价 */ + @SerializedName("OriginalPrice") + private String originalPrice; + + /** 订单状态 */ + @SerializedName("Status") + private Integer status; + + /** 订单状态显示名 */ + @SerializedName("StatusDisplay") + private String statusDisplay; + + /** 创建订单时间(Unix 时间戳,秒级) */ + @SerializedName("CreateTime") + private String createTime; + + /** 开始计费时间(Unix 时间戳,秒级) */ + @SerializedName("StartTime") + private Integer startTime; + + /** 结束计费时间(Unix 时间戳,秒级) */ + @SerializedName("EndTime") + private Integer endTime; + + /** 订单支付时间(Unix 时间戳,秒级) */ + @SerializedName("PaidTime") + private Integer paidTime; + + /** 撤销时间(Unix 时间戳,秒级) */ + @SerializedName("RevocationTime") + private String revocationTime; + + /** 地域显示名 */ + @SerializedName("RegionDisplay") + private String regionDisplay; + + /** 产品类型 */ + @SerializedName("ProductCode") + private String productCode; + + /** 产品类型显示名 */ + @SerializedName("ProductCodeDisplay") + private String productCodeDisplay; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getOrderNo() { + return orderNo; + } + + public void setOrderNo(String orderNo) { + this.orderNo = orderNo; + } + + public String getSourceOrderNo() { + return sourceOrderNo; + } + + public void setSourceOrderNo(String sourceOrderNo) { + this.sourceOrderNo = sourceOrderNo; + } + + public Integer getCompanyID() { + return companyID; + } + + public void setCompanyID(Integer companyID) { + this.companyID = companyID; + } + + public Integer getOrganizationID() { + return organizationID; + } + + public void setOrganizationID(Integer organizationID) { + this.organizationID = organizationID; + } + + public String getOrganizationName() { + return organizationName; + } + + public void setOrganizationName(String organizationName) { + this.organizationName = organizationName; + } + + public String getUserEmail() { + return userEmail; + } + + public void setUserEmail(String userEmail) { + this.userEmail = userEmail; + } + + public Integer getChargeType() { + return chargeType; + } + + public void setChargeType(Integer chargeType) { + this.chargeType = chargeType; + } + + public String getChargeTypeDisplay() { + return chargeTypeDisplay; + } + + public void setChargeTypeDisplay(String chargeTypeDisplay) { + this.chargeTypeDisplay = chargeTypeDisplay; + } + + public Integer getChannel() { + return channel; + } + + public void setChannel(Integer channel) { + this.channel = channel; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public String getCurrencyDisplay() { + return currencyDisplay; + } + + public void setCurrencyDisplay(String currencyDisplay) { + this.currencyDisplay = currencyDisplay; + } + + 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 getResourceTypeDisplay() { + return resourceTypeDisplay; + } + + public void setResourceTypeDisplay(String resourceTypeDisplay) { + this.resourceTypeDisplay = resourceTypeDisplay; + } + + public String getModelID() { + return modelID; + } + + public void setModelID(String modelID) { + this.modelID = modelID; + } + + public String getModelName() { + return modelName; + } + + public void setModelName(String modelName) { + this.modelName = modelName; + } + + public Integer getOrderType() { + return orderType; + } + + public void setOrderType(Integer orderType) { + this.orderType = orderType; + } + + public String getOrderTypeDisplay() { + return orderTypeDisplay; + } + + public void setOrderTypeDisplay(String orderTypeDisplay) { + this.orderTypeDisplay = orderTypeDisplay; + } + + public String getPricingSKU() { + return pricingSKU; + } + + public void setPricingSKU(String pricingSKU) { + this.pricingSKU = pricingSKU; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getQuantityDisplay() { + return quantityDisplay; + } + + public void setQuantityDisplay(String quantityDisplay) { + this.quantityDisplay = quantityDisplay; + } + + public Integer getPricingUnit() { + return pricingUnit; + } + + public void setPricingUnit(Integer pricingUnit) { + this.pricingUnit = pricingUnit; + } + + public String getPricingUnitDisplay() { + return pricingUnitDisplay; + } + + public void setPricingUnitDisplay(String pricingUnitDisplay) { + this.pricingUnitDisplay = pricingUnitDisplay; + } + + public String getListPrice() { + return listPrice; + } + + public void setListPrice(String listPrice) { + this.listPrice = listPrice; + } + + public String getDiscountPrice() { + return discountPrice; + } + + public void setDiscountPrice(String discountPrice) { + this.discountPrice = discountPrice; + } + + public String getOrderTotalPrice() { + return orderTotalPrice; + } + + public void setOrderTotalPrice(String orderTotalPrice) { + this.orderTotalPrice = orderTotalPrice; + } + + public String getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(String originalPrice) { + this.originalPrice = originalPrice; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getStatusDisplay() { + return statusDisplay; + } + + public void setStatusDisplay(String statusDisplay) { + this.statusDisplay = statusDisplay; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public Integer getStartTime() { + return startTime; + } + + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public Integer getPaidTime() { + return paidTime; + } + + public void setPaidTime(Integer paidTime) { + this.paidTime = paidTime; + } + + public String getRevocationTime() { + return revocationTime; + } + + public void setRevocationTime(String revocationTime) { + this.revocationTime = revocationTime; + } + + public String getRegionDisplay() { + return regionDisplay; + } + + public void setRegionDisplay(String regionDisplay) { + this.regionDisplay = regionDisplay; + } + + public String getProductCode() { + return productCode; + } + + public void setProductCode(String productCode) { + this.productCode = productCode; + } + + public String getProductCodeDisplay() { + return productCodeDisplay; + } + + public void setProductCodeDisplay(String productCodeDisplay) { + this.productCodeDisplay = productCodeDisplay; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateUMInferAPIKeyRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateUMInferAPIKeyRequest.java new file mode 100644 index 000000000..b6e7f5b89 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateUMInferAPIKeyRequest.java @@ -0,0 +1,152 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uai_modelverse.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateUMInferAPIKeyRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** apikey的id */ + @NotEmpty + @UCloudParam("KeyId") + private String keyId; + + /** 更新的名称 */ + @UCloudParam("Name") + private String name; + + /** 是否modelverse可用 0: 启用 1: 禁用 */ + @UCloudParam("ModelverseDisabled") + private Integer modelverseDisabled; + + /** 是否沙盒可用 0: 启用 1: 禁用 */ + @UCloudParam("SandBoxDisabled") + private Integer sandBoxDisabled; + + /** 日限额,单位随用户所在渠道。126渠道单位为美元 */ + @UCloudParam("DailyLimitAmount") + private String dailyLimitAmount; + + /** 月限额,单位随用户所在渠道。126渠道单位为美元 */ + @UCloudParam("MonthlyLimitAmount") + private String monthlyLimitAmount; + + /** 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 */ + @UCloudParam("GrantAllModels") + private Boolean grantAllModels; + + /** + * 授权模型,内容为数组格式。当 GrantAllModels 为false时 当前key只可访问数组中模型。例:["deepseek-ai/DeepSeek-V3.2-Think"] + */ + @UCloudParam("GrantedModels") + private String grantedModels; + + /** + * ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 + * 192.168.1.10/24 + */ + @UCloudParam("IPWhitelist") + private String ipWhitelist; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getKeyId() { + return keyId; + } + + public void setKeyId(String keyId) { + this.keyId = keyId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getModelverseDisabled() { + return modelverseDisabled; + } + + public void setModelverseDisabled(Integer modelverseDisabled) { + this.modelverseDisabled = modelverseDisabled; + } + + public Integer getSandBoxDisabled() { + return sandBoxDisabled; + } + + public void setSandBoxDisabled(Integer sandBoxDisabled) { + this.sandBoxDisabled = sandBoxDisabled; + } + + public String getDailyLimitAmount() { + return dailyLimitAmount; + } + + public void setDailyLimitAmount(String dailyLimitAmount) { + this.dailyLimitAmount = dailyLimitAmount; + } + + public String getMonthlyLimitAmount() { + return monthlyLimitAmount; + } + + public void setMonthlyLimitAmount(String monthlyLimitAmount) { + this.monthlyLimitAmount = monthlyLimitAmount; + } + + public Boolean getGrantAllModels() { + return grantAllModels; + } + + public void setGrantAllModels(Boolean grantAllModels) { + this.grantAllModels = grantAllModels; + } + + public String getGrantedModels() { + return grantedModels; + } + + public void setGrantedModels(String grantedModels) { + this.grantedModels = grantedModels; + } + + public String getIPWhitelist() { + return ipWhitelist; + } + + public void setIPWhitelist(String ipWhitelist) { + this.ipWhitelist = ipWhitelist; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateUMInferAPIKeyResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateUMInferAPIKeyResponse.java new file mode 100644 index 000000000..2da7b1f0d --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateUMInferAPIKeyResponse.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.uai_modelverse.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class UpdateUMInferAPIKeyResponse extends Response { + + /** apikey 的id */ + @SerializedName("UminferID") + private String uminferID; + + public String getUminferID() { + return uminferID; + } + + public void setUminferID(String uminferID) { + this.uminferID = uminferID; + } +} diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 682d9b9c2..83a82bb3e 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-ubill ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index 89367827b..12b67f4e8 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-ucdn ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uclickhouse/pom.xml b/ucloud-sdk-java-uclickhouse/pom.xml index d9f6de1b6..e03b24050 100644 --- a/ucloud-sdk-java-uclickhouse/pom.xml +++ b/ucloud-sdk-java-uclickhouse/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uclickhouse ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index 19e0c1873..fec8c8c16 100644 --- a/ucloud-sdk-java-ucompshare/pom.xml +++ b/ucloud-sdk-java-ucompshare/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-ucompshare ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index 43dd85b03..3212672cc 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-udb ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index 0082fc9d1..d631290c7 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-udbproxy ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index ef5fdf8f4..6cec82ab1 100644 --- a/ucloud-sdk-java-udi/pom.xml +++ b/ucloud-sdk-java-udi/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-udi ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index dbb9d16e6..c9ce50c29 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-udisk ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml index 39c86e829..51c05d6d1 100644 --- a/ucloud-sdk-java-udns/pom.xml +++ b/ucloud-sdk-java-udns/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-udns ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index fc4342c1b..d7edcc383 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-udpn ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index 65c0464d3..58d1dbb41 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uec ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-ues/pom.xml b/ucloud-sdk-java-ues/pom.xml index 4ca0c4e23..1d73bfda1 100644 --- a/ucloud-sdk-java-ues/pom.xml +++ b/ucloud-sdk-java-ues/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-ues ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index a7b06ab92..a38238aa2 100644 --- a/ucloud-sdk-java-uewaf/pom.xml +++ b/ucloud-sdk-java-uewaf/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uewaf ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index c27ae2e5f..703f3419f 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-ufile ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index ae675c0e0..475418683 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-ufs ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uhadoop/pom.xml b/ucloud-sdk-java-uhadoop/pom.xml index a260b97db..4229bd884 100644 --- a/ucloud-sdk-java-uhadoop/pom.xml +++ b/ucloud-sdk-java-uhadoop/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uhadoop ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uhids/pom.xml b/ucloud-sdk-java-uhids/pom.xml index d3418fa85..0e2ed53c9 100644 --- a/ucloud-sdk-java-uhids/pom.xml +++ b/ucloud-sdk-java-uhids/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uhids ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index 318434191..b0a037613 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uhost ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClient.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClient.java index bbb1926e7..b352df125 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClient.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClient.java @@ -17,6 +17,8 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.uhost.models.CheckUHostResourceCapacityRequest; +import cn.ucloud.uhost.models.CheckUHostResourceCapacityResponse; import cn.ucloud.uhost.models.CopyCustomImageRequest; import cn.ucloud.uhost.models.CopyCustomImageResponse; import cn.ucloud.uhost.models.CreateCustomImageRequest; @@ -33,6 +35,8 @@ import cn.ucloud.uhost.models.DeleteUHostKeyPairsResponse; import cn.ucloud.uhost.models.DescribeAvailableInstanceTypesRequest; import cn.ucloud.uhost.models.DescribeAvailableInstanceTypesResponse; +import cn.ucloud.uhost.models.DescribeHostMachineTypeFamiliesRequest; +import cn.ucloud.uhost.models.DescribeHostMachineTypeFamiliesResponse; import cn.ucloud.uhost.models.DescribeImageRequest; import cn.ucloud.uhost.models.DescribeImageResponse; import cn.ucloud.uhost.models.DescribeIsolationGroupRequest; @@ -96,6 +100,19 @@ public UHostClient(Config config, Credential credential) { super(config, credential); } + /** + * CheckUHostResourceCapacity - 主机创建资源余量检查 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckUHostResourceCapacityResponse checkUHostResourceCapacity( + CheckUHostResourceCapacityRequest request) throws UCloudException { + request.setAction("CheckUHostResourceCapacity"); + return (CheckUHostResourceCapacityResponse) + this.invoke(request, CheckUHostResourceCapacityResponse.class); + } + /** * CopyCustomImage - 复制自制镜像 * @@ -197,6 +214,19 @@ public DescribeAvailableInstanceTypesResponse describeAvailableInstanceTypes( this.invoke(request, DescribeAvailableInstanceTypesResponse.class); } + /** + * DescribeHostMachineTypeFamilies - 获取实例规格族列表(所有机型的信息) + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeHostMachineTypeFamiliesResponse describeHostMachineTypeFamilies( + DescribeHostMachineTypeFamiliesRequest request) throws UCloudException { + request.setAction("DescribeHostMachineTypeFamilies"); + return (DescribeHostMachineTypeFamiliesResponse) + this.invoke(request, DescribeHostMachineTypeFamiliesResponse.class); + } + /** * DescribeImage - 获取镜像列表 * diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClientInterface.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClientInterface.java index 32e0a04ea..89cc11f89 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClientInterface.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/client/UHostClientInterface.java @@ -15,6 +15,8 @@ import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.uhost.models.CheckUHostResourceCapacityRequest; +import cn.ucloud.uhost.models.CheckUHostResourceCapacityResponse; import cn.ucloud.uhost.models.CopyCustomImageRequest; import cn.ucloud.uhost.models.CopyCustomImageResponse; import cn.ucloud.uhost.models.CreateCustomImageRequest; @@ -31,6 +33,8 @@ import cn.ucloud.uhost.models.DeleteUHostKeyPairsResponse; import cn.ucloud.uhost.models.DescribeAvailableInstanceTypesRequest; import cn.ucloud.uhost.models.DescribeAvailableInstanceTypesResponse; +import cn.ucloud.uhost.models.DescribeHostMachineTypeFamiliesRequest; +import cn.ucloud.uhost.models.DescribeHostMachineTypeFamiliesResponse; import cn.ucloud.uhost.models.DescribeImageRequest; import cn.ucloud.uhost.models.DescribeImageResponse; import cn.ucloud.uhost.models.DescribeIsolationGroupRequest; @@ -91,6 +95,15 @@ /** This client is used to call actions of **UHost** service */ public interface UHostClientInterface extends Client { + /** + * CheckUHostResourceCapacity - 主机创建资源余量检查 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckUHostResourceCapacityResponse checkUHostResourceCapacity( + CheckUHostResourceCapacityRequest request) throws UCloudException; + /** * CopyCustomImage - 复制自制镜像 * @@ -163,6 +176,15 @@ public DeleteUHostKeyPairsResponse deleteUHostKeyPairs(DeleteUHostKeyPairsReques public DescribeAvailableInstanceTypesResponse describeAvailableInstanceTypes( DescribeAvailableInstanceTypesRequest request) throws UCloudException; + /** + * DescribeHostMachineTypeFamilies - 获取实例规格族列表(所有机型的信息) + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeHostMachineTypeFamiliesResponse describeHostMachineTypeFamilies( + DescribeHostMachineTypeFamiliesRequest request) throws UCloudException; + /** * DescribeImage - 获取镜像列表 * diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CheckUHostResourceCapacityRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CheckUHostResourceCapacityRequest.java new file mode 100644 index 000000000..86182a91c --- /dev/null +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CheckUHostResourceCapacityRequest.java @@ -0,0 +1,449 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhost.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 CheckUHostResourceCapacityRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 镜像ID。 请通过 [DescribeImage](describe_image.html)获取 */ + @NotEmpty + @UCloudParam("ImageId") + private String imageId; + + /** */ + @UCloudParam("Disks") + private List disks; + + /** + * 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > + * Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\ > Spot计费为抢占式实例(内测阶段) \\ 默认为月付 + */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。 */ + @UCloudParam("CPU") + private Integer cpu; + + /** 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192 */ + @UCloudParam("Memory") + private Integer memory; + + /** + * GPU类型,枚举值["K80", "P40", "V100", "T4","T4A", "T4S","2080Ti","2080Ti-4C","1080Ti", "T4/4", + * "MI100", "V100S",2080","2080TiS","2080TiPro","3090","A100", "4090", "4090Pro", "4090_48G", + * "5090"],MachineType为G时必填 + */ + @UCloudParam("GpuType") + private String gpuType; + + /** GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) */ + @UCloudParam("GPU") + private Integer gpu; + + /** 网络增强特性。枚举值:Normal,不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0(详情参考官网文档) */ + @UCloudParam("NetCapability") + private String netCapability; + + /** 热升级特性。True为开启,False为未开启,默认False。 */ + @UCloudParam("HotplugFeature") + private Boolean hotplugFeature; + + /** 硬件隔离组id。可通过DescribeIsolationGroup获取。 */ + @UCloudParam("IsolationGroup") + private String isolationGroup; + + /** + * 云主机机型(V2.0),在本字段和字段UHostType中,仅需要其中1个字段即可。枚举值["N", "C", "G", "O", "OS", "OM", "OPRO", "OMAX", + * "O.BM", "O.EPC"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + */ + @UCloudParam("MachineType") + private String machineType; + + /** + * 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", + * "Intel/Skylake", "Intel/Cascadelake", "Intel/CascadelakeR", "Intel/IceLake", "Amd/Epyc2", + * "Amd/Auto","Ampere/Auto","Ampere/Altra"],默认值是"Intel/Auto"。 + */ + @UCloudParam("MinimalCpuPlatform") + private String minimalCpuPlatform; + + /** 本次最大创建主机数量,取值范围是[1,100],默认值为1。 */ + @UCloudParam("MaxCount") + private Integer maxCount; + + /** */ + @UCloudParam("Features") + private Features features; + + /** 主机安全模式。Firewall:防火墙;SecGroup:安全组;默认值:Firewall。 */ + @UCloudParam("SecurityMode") + private String securityMode; + + /** + * 规格族。 由机型代号和 CPU 平台组成,用于指定云主机的硬件类型与处理器平台。 当 MachineType 为 "O"(快杰型)时,支持以下取值: o1i:快杰型 O1 代,Intel + * 平台 o1a:快杰型 O1 代,AMD 平台 o1r:快杰型 O1 代,ARM 平台 o2i:快杰型 O2 代,Intel 平台 默认值:o1i 或 o1a(系统将根据资源情况自动选择) + * 当 MachineType 为 "OM"(快杰共享型)时,支持以下取值: om1i:快杰内存增强型 OM1 代,Intel 平台 om2i:快杰内存增强型 OM2 代,Intel 平台 + * ⚠️ 注意:规格族必须与 MachineType 匹配,否则请求将被拒绝。 + */ + @UCloudParam("UHostFamily") + private String uHostFamily; + + /** 本次最小创建主机数量,取值范围是[1,100],默认值为1。 */ + @UCloudParam("MinCount") + private Integer minCount; + + 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 getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public List getDisks() { + return disks; + } + + public void setDisks(List disks) { + this.disks = disks; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getCPU() { + return cpu; + } + + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } + + public void setMemory(Integer memory) { + this.memory = memory; + } + + public String getGpuType() { + return gpuType; + } + + public void setGpuType(String gpuType) { + this.gpuType = gpuType; + } + + public Integer getGPU() { + return gpu; + } + + public void setGPU(Integer gpu) { + this.gpu = gpu; + } + + public String getNetCapability() { + return netCapability; + } + + public void setNetCapability(String netCapability) { + this.netCapability = netCapability; + } + + public Boolean getHotplugFeature() { + return hotplugFeature; + } + + public void setHotplugFeature(Boolean hotplugFeature) { + this.hotplugFeature = hotplugFeature; + } + + public String getIsolationGroup() { + return isolationGroup; + } + + public void setIsolationGroup(String isolationGroup) { + this.isolationGroup = isolationGroup; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getMinimalCpuPlatform() { + return minimalCpuPlatform; + } + + public void setMinimalCpuPlatform(String minimalCpuPlatform) { + this.minimalCpuPlatform = minimalCpuPlatform; + } + + public Integer getMaxCount() { + return maxCount; + } + + public void setMaxCount(Integer maxCount) { + this.maxCount = maxCount; + } + + public Features getFeatures() { + return features; + } + + public void setFeatures(Features features) { + this.features = features; + } + + public String getSecurityMode() { + return securityMode; + } + + public void setSecurityMode(String securityMode) { + this.securityMode = securityMode; + } + + public String getUHostFamily() { + return uHostFamily; + } + + public void setUHostFamily(String uHostFamily) { + this.uHostFamily = uHostFamily; + } + + public Integer getMinCount() { + return minCount; + } + + public void setMinCount(Integer minCount) { + this.minCount = minCount; + } + + 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; + + /** 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ + @NotEmpty + @UCloudParam("Size") + private Integer size; + + /** + * 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 + * [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE + */ + @UCloudParam("BackupType") + private String backupType; + + /** 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看 */ + @UCloudParam("CouponId") + private String couponId; + + /** + * 指定快照备份策略。当Disks.N.BackupType为"SNAPSHOT"时此参数生效。枚举值:"Lite":轻量版,"Base":基础版,"Ultimate":旗舰版,"Custom":自定义备份链;默认值:"Base" + */ + @UCloudParam("BackupMode") + private String backupMode; + + /** */ + @UCloudParam("CustomBackup") + private DisksCustomBackup customBackup; + + /** 从快照创建盘时所用快照id,目前仅支持数据盘 */ + @UCloudParam("SnapshotId") + private String snapshotId; + + 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 void setSize(Integer size) { + this.size = size; + } + + public String getBackupType() { + return backupType; + } + + public void setBackupType(String backupType) { + this.backupType = backupType; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } + + public String getBackupMode() { + return backupMode; + } + + public void setBackupMode(String backupMode) { + this.backupMode = backupMode; + } + + public DisksCustomBackup getCustomBackup() { + return customBackup; + } + + public void setCustomBackup(DisksCustomBackup customBackup) { + this.customBackup = customBackup; + } + + public String getSnapshotId() { + return snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + } + + public static class DisksCustomBackup extends Request { + + /** Disks.N.BackupMode为"Custom"时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48。 */ + @UCloudParam("Journal") + private String journal; + + /** Disks.N.BackupMode为"Custom"时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96。 */ + @UCloudParam("Hour") + private String hour; + + /** Disks.N.BackupMode为"Custom"时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30。 */ + @UCloudParam("Day") + private String day; + + public String getJournal() { + return journal; + } + + public void setJournal(String journal) { + this.journal = journal; + } + + public String getHour() { + return hour; + } + + public void setHour(String hour) { + this.hour = hour; + } + + public String getDay() { + return day; + } + + public void setDay(String day) { + this.day = day; + } + } + + public static class Features extends Request { + + /** 弹性网卡特性。开启了弹性网卡权限位,此特性才生效,默认 false 未开启,true 开启,仅与 NetCapability Normal 兼容。 */ + @UCloudParam("UNI") + private Boolean uni; + + public Boolean getUNI() { + return uni; + } + + public void setUNI(Boolean uni) { + this.uni = uni; + } + } +} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CheckUHostResourceCapacityResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CheckUHostResourceCapacityResponse.java new file mode 100644 index 000000000..a2f4bc905 --- /dev/null +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CheckUHostResourceCapacityResponse.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.uhost.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class CheckUHostResourceCapacityResponse extends Response { + + /** 资源是否充足 */ + @SerializedName("ResourceEnough") + private Boolean resourceEnough; + + /** 随机的资源对应的RdmaClusterId数组,若资源不足则为空,只有快杰系列机型,以及A800才可能有此字段 */ + @SerializedName("RdmaClusterIds") + private List rdmaClusterIds; + + public Boolean getResourceEnough() { + return resourceEnough; + } + + public void setResourceEnough(Boolean resourceEnough) { + this.resourceEnough = resourceEnough; + } + + public List getRdmaClusterIds() { + return rdmaClusterIds; + } + + public void setRdmaClusterIds(List rdmaClusterIds) { + this.rdmaClusterIds = rdmaClusterIds; + } +} 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 141d8eb4a..211d95fe0 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 @@ -210,11 +210,15 @@ public class CreateUHostInstanceRequest extends Request { @UCloudParam("Labels") private List labels; + /** 删除保护,设置删除保护参数,true表示不允许控制台删除 */ + @UCloudParam("DeletionProtection") + private Boolean deletionProtection; + /** * 规格族。 由机型代号和 CPU 平台组成,用于指定云主机的硬件类型与处理器平台。 当 MachineType 为 "O"(快杰型)时,支持以下取值: - o1i:快杰型 O1 - * 代,Intel 平台 - o1a:快杰型 O1 代,AMD 平台 - o1r:快杰型 O1 代,ARM 平台 - o2i:快杰型 O2 代,Intel 平台 - * 默认值:o1i 或 o1a(系统将根据资源情况自动选择) 当 MachineType 为 "OM"(快杰共享型)时,支持以下取值: - om1i:快杰内存增强型 OM1 代,Intel - * 平台 - om2i:快杰内存增强型 OM2 代,Intel 平台 注意:规格族必须与 MachineType 匹配,否则请求将被拒绝。 + * 代,Intel 平台 - o1a:快杰型 O1 代,AMD 平台 - o1r:快杰型 O1 代,ARM 平台 - o2i:快杰型 O2 代,Intel 平台 默认值:o1i 或 o1a + * 当 MachineType 为 "OM"(快杰共享型)时,支持以下取值: - om1i:快杰内存增强型 OM1 代,Intel 平台 - om2i:快杰内存增强型 OM2 代,Intel + * 平台 注意:规格族必须与 MachineType 匹配,否则请求将被拒绝。 */ @UCloudParam("UHostFamily") private String uHostFamily; @@ -543,6 +547,14 @@ public void setLabels(List labels) { this.labels = labels; } + public Boolean getDeletionProtection() { + return deletionProtection; + } + + public void setDeletionProtection(Boolean deletionProtection) { + this.deletionProtection = deletionProtection; + } + public String getUHostFamily() { return uHostFamily; } diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeHostMachineTypeFamiliesRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeHostMachineTypeFamiliesRequest.java new file mode 100644 index 000000000..7d9ef2a4a --- /dev/null +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeHostMachineTypeFamiliesRequest.java @@ -0,0 +1,37 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeHostMachineTypeFamiliesRequest extends Request { + + /** + * 项目ID。如果不填写,则使用默认项目,子账户必须填写。请参阅[GetProjectList界面](https://docs.ucloud.cn/api/summary/get_project_list). + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeHostMachineTypeFamiliesResponse.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeHostMachineTypeFamiliesResponse.java new file mode 100644 index 000000000..ddd6720b2 --- /dev/null +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/DescribeHostMachineTypeFamiliesResponse.java @@ -0,0 +1,789 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhost.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeHostMachineTypeFamiliesResponse extends Response { + + /** 机型配置列表 */ + @SerializedName("MachineTypes") + private List machineTypes; + + public List getMachineTypes() { + return machineTypes; + } + + public void setMachineTypes(List machineTypes) { + this.machineTypes = machineTypes; + } + + public static class Collection extends Response { + + /** CPU规格 */ + @SerializedName("Cpu") + private Integer cpu; + + /** 内存规格 */ + @SerializedName("Memory") + private List memory; + + /** CPU和内存规格只能在列出来的CPU平台支持 */ + @SerializedName("MinimalCpuPlatform") + private List minimalCpuPlatform; + + public Integer getCpu() { + return cpu; + } + + public void setCpu(Integer cpu) { + this.cpu = cpu; + } + + public List getMemory() { + return memory; + } + + public void setMemory(List memory) { + this.memory = memory; + } + + public List getMinimalCpuPlatform() { + return minimalCpuPlatform; + } + + public void setMinimalCpuPlatform(List minimalCpuPlatform) { + this.minimalCpuPlatform = minimalCpuPlatform; + } + } + + public static class CpuPlatformStatus extends Response { + + /** CPU平台 */ + @SerializedName("Name") + private String name; + + /** 运营Commpont Code */ + @SerializedName("OperationStatus") + private String operationStatus; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getOperationStatus() { + return operationStatus; + } + + public void setOperationStatus(String operationStatus) { + this.operationStatus = operationStatus; + } + } + + public static class CpuPlatformWithModels extends Response { + + /** CPU平台 */ + @SerializedName("Name") + private String name; + + /** CPU Model列表 */ + @SerializedName("CpuModels") + private List cpuModels; + + /** CPU频率 */ + @SerializedName("CpuFrequency") + private String cpuFrequency; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public List getCpuModels() { + return cpuModels; + } + + public void setCpuModels(List cpuModels) { + this.cpuModels = cpuModels; + } + + public String getCpuFrequency() { + return cpuFrequency; + } + + public void setCpuFrequency(String cpuFrequency) { + this.cpuFrequency = cpuFrequency; + } + } + + public static class DiskFeature extends Response { + + /** 特性名称 */ + @SerializedName("Name") + private String name; + + /** 特性详情 */ + @SerializedName("Modes") + private List modes; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public List getModes() { + return modes; + } + + public void setModes(List modes) { + this.modes = modes; + } + } + + public static class FamiliesBootDiskInfo extends Response { + + /** + * 系统盘类别,包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。 + */ + @SerializedName("Name") + private String name; + + /** 系统盘是否允许扩容,如果是本地盘,则不允许扩容,InstantResize为false。 */ + @SerializedName("InstantResize") + private Boolean instantResize; + + /** MaximalSize为磁盘最大值 */ + @SerializedName("MaximalSize") + private Integer maximalSize; + + /** 磁盘可支持的服务 */ + @SerializedName("Features") + private List features; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Boolean getInstantResize() { + return instantResize; + } + + public void setInstantResize(Boolean instantResize) { + this.instantResize = instantResize; + } + + public Integer getMaximalSize() { + return maximalSize; + } + + public void setMaximalSize(Integer maximalSize) { + this.maximalSize = maximalSize; + } + + public List getFeatures() { + return features; + } + + public void setFeatures(List features) { + this.features = features; + } + } + + public static class FamiliesDataDiskInfo extends Response { + + /** 磁盘最小值,如果没有该字段,最小值取基础镜像Size值即可(linux为20G,windows为40G)。 */ + @SerializedName("MinimalSize") + private Integer minimalSize; + + /** + * 数据盘类别,包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。 + */ + @SerializedName("Name") + private String name; + + /** MaximalSize为磁盘最大值 */ + @SerializedName("MaximalSize") + private Integer maximalSize; + + /** 数据盘可支持的服务 */ + @SerializedName("Features") + private List features; + + public Integer getMinimalSize() { + return minimalSize; + } + + public void setMinimalSize(Integer minimalSize) { + this.minimalSize = minimalSize; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getMaximalSize() { + return maximalSize; + } + + public void setMaximalSize(Integer maximalSize) { + this.maximalSize = maximalSize; + } + + public List getFeatures() { + return features; + } + + public void setFeatures(List features) { + this.features = features; + } + } + + public static class FamiliesDisks extends Response { + + /** 磁盘介质类别信息,磁盘主要分类如下:云盘|cloudDisk、普通本地盘|normalLocalDisk和SSD本地盘|ssdLocalDisk。 */ + @SerializedName("Name") + private String name; + + /** 系统盘信息 */ + @SerializedName("BootDisk") + private List bootDisk; + + /** 数据盘信息 */ + @SerializedName("DataDisk") + private List dataDisk; + + /** 权限位 */ + @SerializedName("OperationStatus") + private String operationStatus; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public List getBootDisk() { + return bootDisk; + } + + public void setBootDisk(List bootDisk) { + this.bootDisk = bootDisk; + } + + public List getDataDisk() { + return dataDisk; + } + + public void setDataDisk(List dataDisk) { + this.dataDisk = dataDisk; + } + + public String getOperationStatus() { + return operationStatus; + } + + public void setOperationStatus(String operationStatus) { + this.operationStatus = operationStatus; + } + } + + public static class FamiliesGpuType extends Response { + + /** 机型名称 */ + @SerializedName("Name") + private String name; + + /** 显存信息 */ + @SerializedName("GraphicsMemory") + private GraphicsMemory graphicsMemory; + + /** 性能信息 */ + @SerializedName("Performance") + private Performance performance; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GraphicsMemory getGraphicsMemory() { + return graphicsMemory; + } + + public void setGraphicsMemory(GraphicsMemory graphicsMemory) { + this.graphicsMemory = graphicsMemory; + } + + public Performance getPerformance() { + return performance; + } + + public void setPerformance(Performance performance) { + this.performance = performance; + } + } + + public static class FeatureModes extends Response { + + /** 模式|特性名称 */ + @SerializedName("Name") + private String name; + + /** 为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。 */ + @SerializedName("RelatedToImageFeature") + private List relatedToImageFeature; + + /** 这个特性必须是列出来的CPU平台及以上的CPU才支持 */ + @SerializedName("MinimalCpuPlatform") + private List minimalCpuPlatform; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public List getRelatedToImageFeature() { + return relatedToImageFeature; + } + + public void setRelatedToImageFeature(List relatedToImageFeature) { + this.relatedToImageFeature = relatedToImageFeature; + } + + public List getMinimalCpuPlatform() { + return minimalCpuPlatform; + } + + public void setMinimalCpuPlatform(List minimalCpuPlatform) { + this.minimalCpuPlatform = minimalCpuPlatform; + } + } + + public static class Features extends Response { + + /** 可支持的特性名称。目前支持的特性网络增强|NetCapability、热升级|Hotplug */ + @SerializedName("Name") + private String name; + + /** 可以提供的模式类别 */ + @SerializedName("Modes") + private List modes; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public List getModes() { + return modes; + } + + public void setModes(List modes) { + this.modes = modes; + } + } + + public static class Frequency extends Response { + + /** 值 */ + @SerializedName("Value") + private Double value; + + public Double getValue() { + return value; + } + + public void setValue(Double value) { + this.value = value; + } + } + + public static class GraphicsMemory extends Response { + + /** 值,单位是GB */ + @SerializedName("Value") + private Integer value; + + /** 交互展示参数,可忽略 */ + @SerializedName("Rate") + private Integer rate; + + public Integer getValue() { + return value; + } + + public void setValue(Integer value) { + this.value = value; + } + + public Integer getRate() { + return rate; + } + + public void setRate(Integer rate) { + this.rate = rate; + } + } + + public static class MachineSizes extends Response { + + /** Gpu为GPU可支持的规格即GPU颗数,非GPU机型,Gpu为0 */ + @SerializedName("Gpu") + private Integer gpu; + + /** CPU和内存可支持的规格 */ + @SerializedName("Collection") + private List collection; + + public Integer getGpu() { + return gpu; + } + + public void setGpu(Integer gpu) { + this.gpu = gpu; + } + + public List getCollection() { + return collection; + } + + public void setCollection(List collection) { + this.collection = collection; + } + } + + public static class MachineTypes extends Response { + + /** 机型名称 */ + @SerializedName("Name") + private String name; + + /** 机型中文名称 */ + @SerializedName("Description") + private String description; + + /** 机型ComponentCode */ + @SerializedName("OperationStatus") + private String operationStatus; + + /** CPU平台列表 */ + @SerializedName("CpuPlatforms") + private List cpuPlatforms; + + /** 磁盘信息 */ + @SerializedName("Disks") + private List disks; + + /** 规格信息 */ + @SerializedName("MachineSizes") + private List machineSizes; + + /** 特性信息 */ + @SerializedName("Features") + private List features; + + /** 父类型。如GPU机型的父类型为"G" */ + @SerializedName("ParentType") + private String parentType; + + /** GPU信息 */ + @SerializedName("GpuType") + private FamiliesGpuType gpuType; + + /** 场景分类 */ + @SerializedName("SceneCategories") + private List sceneCategories; + + /** GPU系列 */ + @SerializedName("GpuSeries") + private String gpuSeries; + + /** 规格族信息 */ + @SerializedName("UHostFamilies") + private List uHostFamilies; + + /** 是否为非真实机型 */ + @SerializedName("Virtual") + private Boolean virtual; + + /** 仅OPROG\OPRO机型返回 */ + @SerializedName("ProType") + private NameFrequency proType; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getOperationStatus() { + return operationStatus; + } + + public void setOperationStatus(String operationStatus) { + this.operationStatus = operationStatus; + } + + public List getCpuPlatforms() { + return cpuPlatforms; + } + + public void setCpuPlatforms(List cpuPlatforms) { + this.cpuPlatforms = cpuPlatforms; + } + + public List getDisks() { + return disks; + } + + public void setDisks(List disks) { + this.disks = disks; + } + + public List getMachineSizes() { + return machineSizes; + } + + public void setMachineSizes(List machineSizes) { + this.machineSizes = machineSizes; + } + + public List getFeatures() { + return features; + } + + public void setFeatures(List features) { + this.features = features; + } + + public String getParentType() { + return parentType; + } + + public void setParentType(String parentType) { + this.parentType = parentType; + } + + public FamiliesGpuType getGpuType() { + return gpuType; + } + + public void setGpuType(FamiliesGpuType gpuType) { + this.gpuType = gpuType; + } + + public List getSceneCategories() { + return sceneCategories; + } + + public void setSceneCategories(List sceneCategories) { + this.sceneCategories = sceneCategories; + } + + public String getGpuSeries() { + return gpuSeries; + } + + public void setGpuSeries(String gpuSeries) { + this.gpuSeries = gpuSeries; + } + + public List getUHostFamilies() { + return uHostFamilies; + } + + public void setUHostFamilies(List uHostFamilies) { + this.uHostFamilies = uHostFamilies; + } + + public Boolean getVirtual() { + return virtual; + } + + public void setVirtual(Boolean virtual) { + this.virtual = virtual; + } + + public NameFrequency getProType() { + return proType; + } + + public void setProType(NameFrequency proType) { + this.proType = proType; + } + } + + public static class NameFrequency extends Response { + + /** 机型名称 */ + @SerializedName("Name") + private String name; + + /** 频率 */ + @SerializedName("Frequency") + private Frequency frequency; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Frequency getFrequency() { + return frequency; + } + + public void setFrequency(Frequency frequency) { + this.frequency = frequency; + } + } + + public static class NameOperationStatus extends Response { + + /** 名称 */ + @SerializedName("Name") + private String name; + + /** 标记 */ + @SerializedName("OperationStatus") + private String operationStatus; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getOperationStatus() { + return operationStatus; + } + + public void setOperationStatus(String operationStatus) { + this.operationStatus = operationStatus; + } + } + + public static class Performance extends Response { + + /** 值,单位是TFlops */ + @SerializedName("Value") + private Double value; + + /** 交互展示参数,可忽略 */ + @SerializedName("Rate") + private Integer rate; + + public Double getValue() { + return value; + } + + public void setValue(Double value) { + this.value = value; + } + + public Integer getRate() { + return rate; + } + + public void setRate(Integer rate) { + this.rate = rate; + } + } + + public static class UHostFamily extends Response { + + /** 规格族 */ + @SerializedName("Name") + private String name; + + /** CPU频率信息 */ + @SerializedName("CpuFrequency") + private String cpuFrequency; + + /** CPU平台信息 */ + @SerializedName("CpuPlatforms") + private List cpuPlatforms; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getCpuFrequency() { + return cpuFrequency; + } + + public void setCpuFrequency(String cpuFrequency) { + this.cpuFrequency = cpuFrequency; + } + + public List getCpuPlatforms() { + return cpuPlatforms; + } + + public void setCpuPlatforms(List cpuPlatforms) { + this.cpuPlatforms = cpuPlatforms; + } + } +} 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 f6d92047a..fe1bdd841 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 @@ -116,8 +116,8 @@ public class GetUHostInstancePriceRequest extends Request { /** * 规格族。 由机型代号和 CPU 平台组成,用于指定云主机的硬件类型与处理器平台。 当 MachineType 为 "O"(快杰型)时,支持以下取值: - o1i:快杰型 O1 * 代,Intel 平台 - o1a:快杰型 O1 代,AMD 平台 - o1r:快杰型 O1 代,ARM 平台 - o2i:快杰型 O2 代,Intel 平台 - * 默认值:o1i 或 o1a或o1r(系统将根据资源情况自动选择) 当 MachineType 为 "OM"(快杰共享型)时,支持以下取值: - om1i:快杰内存增强型 OM1 - * 代,Intel 平台 - om2i:快杰内存增强型 OM2 代,Intel 平台 注意:规格族必须与 MachineType 匹配,否则请求将被拒绝。 + * 默认值:o1i 或 o1a或o1r 当 MachineType 为 "OM"(快杰共享型)时,支持以下取值: - om1i:快杰内存增强型 OM1 代,Intel 平台 - + * om2i:快杰内存增强型 OM2 代,Intel 平台 注意:规格族必须与 MachineType 匹配,否则请求将被拒绝。 */ @UCloudParam("UHostFamily") private String uHostFamily; diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index b8a958b56..63077f41e 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uk8s ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-ukafka/pom.xml b/ucloud-sdk-java-ukafka/pom.xml index 19a6c3ce9..1f15f6110 100644 --- a/ucloud-sdk-java-ukafka/pom.xml +++ b/ucloud-sdk-java-ukafka/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-ukafka ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index d8626f088..8c586743f 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-ulb ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-ulighthost/pom.xml b/ucloud-sdk-java-ulighthost/pom.xml index abd5912d4..ae24ec0e2 100644 --- a/ucloud-sdk-java-ulighthost/pom.xml +++ b/ucloud-sdk-java-ulighthost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-ulighthost ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index 1016b39d8..915fcd30d 100644 --- a/ucloud-sdk-java-ulog/pom.xml +++ b/ucloud-sdk-java-ulog/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-ulog ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index 6ea54eb30..6d2063be3 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-umem ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-umon/pom.xml b/ucloud-sdk-java-umon/pom.xml index 5236f066b..71daaa8f1 100644 --- a/ucloud-sdk-java-umon/pom.xml +++ b/ucloud-sdk-java-umon/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-umon ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index 9c9f84fa4..0e7d390e7 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-umongodb ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index 9d368254c..5319b1668 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-unet ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-upfs/pom.xml b/ucloud-sdk-java-upfs/pom.xml index 98322c880..01391df5c 100644 --- a/ucloud-sdk-java-upfs/pom.xml +++ b/ucloud-sdk-java-upfs/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-upfs ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index 076fa2646..5cdce7691 100644 --- a/ucloud-sdk-java-upgsql/pom.xml +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-upgsql ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index bc37cced9..b0f5544e3 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uphone ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 108cc501b..1136ba3ca 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uphost ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index 8a6290514..3c0a03884 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uslk ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 920542abb..45ee023f9 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-usms ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index e2d6d1c37..7adc6b2eb 100644 --- a/ucloud-sdk-java-usnap/pom.xml +++ b/ucloud-sdk-java-usnap/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-usnap ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index f7c8ea754..822c3c05d 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uvms ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-uwsc/pom.xml b/ucloud-sdk-java-uwsc/pom.xml index b9226620a..be6f7c43d 100644 --- a/ucloud-sdk-java-uwsc/pom.xml +++ b/ucloud-sdk-java-uwsc/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-uwsc ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index ed36937b1..28ee2aacc 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.68-release + 1.2.69-release 4.0.0 ucloud-sdk-java-vpc ucloud-sdk-java - 1.2.68-release + 1.2.69-release cn.ucloud ucloud-sdk-java-common - 1.2.68-release + 1.2.69-release