diff --git a/VERSION b/VERSION index f9a4b5f..dfdc368 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.20 +0.3.21 diff --git a/src/UAIModelverse/Apis/CreateUMInferAPIKeyRequest.php b/src/UAIModelverse/Apis/CreateUMInferAPIKeyRequest.php new file mode 100644 index 0000000..e9dfdea --- /dev/null +++ b/src/UAIModelverse/Apis/CreateUMInferAPIKeyRequest.php @@ -0,0 +1,211 @@ + "CreateUMInferAPIKey"]); + $this->markRequired("ProjectId"); + $this->markRequired("Name"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * Name: apikey名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: apikey名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * ModelverseDisabled: 是否modelverse可用 0: 启用 1: 禁用 + * + * @return integer|null + */ + public function getModelverseDisabled() + { + return $this->get("ModelverseDisabled"); + } + + /** + * ModelverseDisabled: 是否modelverse可用 0: 启用 1: 禁用 + * + * @param int $modelverseDisabled + */ + public function setModelverseDisabled($modelverseDisabled) + { + $this->set("ModelverseDisabled", $modelverseDisabled); + } + + /** + * SandBoxDisabled: 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) + * + * @return integer|null + */ + public function getSandBoxDisabled() + { + return $this->get("SandBoxDisabled"); + } + + /** + * SandBoxDisabled: 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) + * + * @param int $sandBoxDisabled + */ + public function setSandBoxDisabled($sandBoxDisabled) + { + $this->set("SandBoxDisabled", $sandBoxDisabled); + } + + /** + * DailyLimitAmount: 日限额,单位随用户所在渠道。126渠道单位为美元 + * + * @return string|null + */ + public function getDailyLimitAmount() + { + return $this->get("DailyLimitAmount"); + } + + /** + * DailyLimitAmount: 日限额,单位随用户所在渠道。126渠道单位为美元 + * + * @param string $dailyLimitAmount + */ + public function setDailyLimitAmount($dailyLimitAmount) + { + $this->set("DailyLimitAmount", $dailyLimitAmount); + } + + /** + * MonthlyLimitAmount: 月限额,单位随用户所在渠道。126渠道单位为美元 + * + * @return string|null + */ + public function getMonthlyLimitAmount() + { + return $this->get("MonthlyLimitAmount"); + } + + /** + * MonthlyLimitAmount: 月限额,单位随用户所在渠道。126渠道单位为美元 + * + * @param string $monthlyLimitAmount + */ + public function setMonthlyLimitAmount($monthlyLimitAmount) + { + $this->set("MonthlyLimitAmount", $monthlyLimitAmount); + } + + /** + * GrantAllModels: 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 + * + * @return boolean|null + */ + public function getGrantAllModels() + { + return $this->get("GrantAllModels"); + } + + /** + * GrantAllModels: 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 + * + * @param boolean $grantAllModels + */ + public function setGrantAllModels($grantAllModels) + { + $this->set("GrantAllModels", $grantAllModels); + } + + /** + * GrantedModels: 授权模型,内容为数组格式。当 GrantAllModels 为false时 当前key只可访问数组中模型。例:["deepseek-ai/DeepSeek-V3.2-Think"] + * + * @return string|null + */ + public function getGrantedModels() + { + return $this->get("GrantedModels"); + } + + /** + * GrantedModels: 授权模型,内容为数组格式。当 GrantAllModels 为false时 当前key只可访问数组中模型。例:["deepseek-ai/DeepSeek-V3.2-Think"] + * + * @param string $grantedModels + */ + public function setGrantedModels($grantedModels) + { + $this->set("GrantedModels", $grantedModels); + } + + /** + * IPWhitelist: ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:192.168.1.1192.168.1.10-192.168.1.100192.168.1.10/24 + * + * @return string|null + */ + public function getIPWhitelist() + { + return $this->get("IPWhitelist"); + } + + /** + * IPWhitelist: ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:192.168.1.1192.168.1.10-192.168.1.100192.168.1.10/24 + * + * @param string $ipWhitelist + */ + public function setIPWhitelist($ipWhitelist) + { + $this->set("IPWhitelist", $ipWhitelist); + } +} diff --git a/src/UAIModelverse/Apis/CreateUMInferAPIKeyResponse.php b/src/UAIModelverse/Apis/CreateUMInferAPIKeyResponse.php new file mode 100644 index 0000000..8fef111 --- /dev/null +++ b/src/UAIModelverse/Apis/CreateUMInferAPIKeyResponse.php @@ -0,0 +1,65 @@ +get("Data")); + } + + /** + * Data: apikey + * + * @param APIKey $data + */ + public function setData(array $data) + { + $this->set("Data", $data->getAll()); + } + + /** + * TotalCount: 总条数 + * + * @return integer|null + */ + public function getTotalCount() + { + return $this->get("TotalCount"); + } + + /** + * TotalCount: 总条数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } +} diff --git a/src/UAIModelverse/Apis/DeleteUMInferAPIKeyRequest.php b/src/UAIModelverse/Apis/DeleteUMInferAPIKeyRequest.php new file mode 100644 index 0000000..0a35ec7 --- /dev/null +++ b/src/UAIModelverse/Apis/DeleteUMInferAPIKeyRequest.php @@ -0,0 +1,71 @@ + "DeleteUMInferAPIKey"]); + $this->markRequired("ProjectId"); + $this->markRequired("KeyId"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * KeyId: 要删除的apikey id + * + * @return string|null + */ + public function getKeyId() + { + return $this->get("KeyId"); + } + + /** + * KeyId: 要删除的apikey id + * + * @param string $keyId + */ + public function setKeyId($keyId) + { + $this->set("KeyId", $keyId); + } +} diff --git a/src/UAIModelverse/Apis/DeleteUMInferAPIKeyResponse.php b/src/UAIModelverse/Apis/DeleteUMInferAPIKeyResponse.php new file mode 100644 index 0000000..9155346 --- /dev/null +++ b/src/UAIModelverse/Apis/DeleteUMInferAPIKeyResponse.php @@ -0,0 +1,44 @@ +get("UminferID"); + } + + /** + * UminferID: apikey 的资源ID + * + * @param string $uminferID + */ + public function setUminferID($uminferID) + { + $this->set("UminferID", $uminferID); + } +} diff --git a/src/UAIModelverse/Apis/DownloadListPaidOrdersRequest.php b/src/UAIModelverse/Apis/DownloadListPaidOrdersRequest.php new file mode 100644 index 0000000..52abab6 --- /dev/null +++ b/src/UAIModelverse/Apis/DownloadListPaidOrdersRequest.php @@ -0,0 +1,231 @@ + "DownloadListPaidOrders"]); + $this->markRequired("StartTime"); + $this->markRequired("EndTime"); + } + + + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级),必填 + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级),必填 + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * ResourceIds: 资源ID列表(可选) + * + * @return string[]|null + */ + public function getResourceIds() + { + return $this->get("ResourceIds"); + } + + /** + * ResourceIds: 资源ID列表(可选) + * + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds) + { + $this->set("ResourceIds", $resourceIds); + } + + /** + * ModelIds: 模型ID列表(可选) + * + * @return string[]|null + */ + public function getModelIds() + { + return $this->get("ModelIds"); + } + + /** + * ModelIds: 模型ID列表(可选) + * + * @param string[] $modelIds + */ + public function setModelIds(array $modelIds) + { + $this->set("ModelIds", $modelIds); + } + + /** + * PricingUnits: 计费单位列表(多选,可选) + * + * @return int[]|null + */ + public function getPricingUnits() + { + return $this->get("PricingUnits"); + } + + /** + * PricingUnits: 计费单位列表(多选,可选) + * + * @param int[] $pricingUnits + */ + public function setPricingUnits(array $pricingUnits) + { + $this->set("PricingUnits", $pricingUnits); + } + + /** + * PricingSkus: 计费单元(SKU)列表(可选) + * + * @return string[]|null + */ + public function getPricingSkus() + { + return $this->get("PricingSkus"); + } + + /** + * PricingSkus: 计费单元(SKU)列表(可选) + * + * @param string[] $pricingSkus + */ + public function setPricingSkus(array $pricingSkus) + { + $this->set("PricingSkus", $pricingSkus); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @return int[]|null + */ + public function getOrderTypes() + { + return $this->get("OrderTypes"); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @param int[] $orderTypes + */ + public function setOrderTypes(array $orderTypes) + { + $this->set("OrderTypes", $orderTypes); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @return int[]|null + */ + public function getOrganizationIds() + { + return $this->get("OrganizationIds"); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @param int[] $organizationIds + */ + public function setOrganizationIds(array $organizationIds) + { + $this->set("OrganizationIds", $organizationIds); + } + + /** + * Regions: 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string[]|null + */ + public function getRegions() + { + return $this->get("Regions"); + } + + /** + * Regions: 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string[] $regions + */ + public function setRegions(array $regions) + { + $this->set("Regions", $regions); + } + + /** + * ProductCodes: 产品类型列表(可选),枚举值:`modelverse`、`sandbox` + * + * @return string[]|null + */ + public function getProductCodes() + { + return $this->get("ProductCodes"); + } + + /** + * ProductCodes: 产品类型列表(可选),枚举值:`modelverse`、`sandbox` + * + * @param string[] $productCodes + */ + public function setProductCodes(array $productCodes) + { + $this->set("ProductCodes", $productCodes); + } +} diff --git a/src/UAIModelverse/Apis/DownloadListPaidOrdersResponse.php b/src/UAIModelverse/Apis/DownloadListPaidOrdersResponse.php new file mode 100644 index 0000000..ddbba75 --- /dev/null +++ b/src/UAIModelverse/Apis/DownloadListPaidOrdersResponse.php @@ -0,0 +1,45 @@ +get("Data")); + } + + /** + * Data: 下载文件信息 + * + * @param DownloadFileData $data + */ + public function setData(array $data) + { + $this->set("Data", $data->getAll()); + } +} diff --git a/src/UAIModelverse/Apis/DownloadListUnpaidOrdersRequest.php b/src/UAIModelverse/Apis/DownloadListUnpaidOrdersRequest.php new file mode 100644 index 0000000..1a36e1c --- /dev/null +++ b/src/UAIModelverse/Apis/DownloadListUnpaidOrdersRequest.php @@ -0,0 +1,231 @@ + "DownloadListUnpaidOrders"]); + $this->markRequired("StartTime"); + $this->markRequired("EndTime"); + } + + + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级),必填 + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级),必填 + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * ResourceIds: 资源ID列表(可选) + * + * @return string[]|null + */ + public function getResourceIds() + { + return $this->get("ResourceIds"); + } + + /** + * ResourceIds: 资源ID列表(可选) + * + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds) + { + $this->set("ResourceIds", $resourceIds); + } + + /** + * ModelIds: 模型ID列表(可选) + * + * @return string[]|null + */ + public function getModelIds() + { + return $this->get("ModelIds"); + } + + /** + * ModelIds: 模型ID列表(可选) + * + * @param string[] $modelIds + */ + public function setModelIds(array $modelIds) + { + $this->set("ModelIds", $modelIds); + } + + /** + * PricingUnits: 计费单位列表(多选,可选) + * + * @return int[]|null + */ + public function getPricingUnits() + { + return $this->get("PricingUnits"); + } + + /** + * PricingUnits: 计费单位列表(多选,可选) + * + * @param int[] $pricingUnits + */ + public function setPricingUnits(array $pricingUnits) + { + $this->set("PricingUnits", $pricingUnits); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @return int[]|null + */ + public function getOrderTypes() + { + return $this->get("OrderTypes"); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @param int[] $orderTypes + */ + public function setOrderTypes(array $orderTypes) + { + $this->set("OrderTypes", $orderTypes); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @return int[]|null + */ + public function getOrganizationIds() + { + return $this->get("OrganizationIds"); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @param int[] $organizationIds + */ + public function setOrganizationIds(array $organizationIds) + { + $this->set("OrganizationIds", $organizationIds); + } + + /** + * PricingSkus: 计费单元(SKU)列表(可选) + * + * @return string[]|null + */ + public function getPricingSkus() + { + return $this->get("PricingSkus"); + } + + /** + * PricingSkus: 计费单元(SKU)列表(可选) + * + * @param string[] $pricingSkus + */ + public function setPricingSkus(array $pricingSkus) + { + $this->set("PricingSkus", $pricingSkus); + } + + /** + * ProductCodes: 产品类型列表(可选),枚举值:`modelverse`、`sandbox` + * + * @return string[]|null + */ + public function getProductCodes() + { + return $this->get("ProductCodes"); + } + + /** + * ProductCodes: 产品类型列表(可选),枚举值:`modelverse`、`sandbox` + * + * @param string[] $productCodes + */ + public function setProductCodes(array $productCodes) + { + $this->set("ProductCodes", $productCodes); + } + + /** + * Regions: 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string[]|null + */ + public function getRegions() + { + return $this->get("Regions"); + } + + /** + * Regions: 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string[] $regions + */ + public function setRegions(array $regions) + { + $this->set("Regions", $regions); + } +} diff --git a/src/UAIModelverse/Apis/DownloadListUnpaidOrdersResponse.php b/src/UAIModelverse/Apis/DownloadListUnpaidOrdersResponse.php new file mode 100644 index 0000000..db5ec93 --- /dev/null +++ b/src/UAIModelverse/Apis/DownloadListUnpaidOrdersResponse.php @@ -0,0 +1,45 @@ +get("Data")); + } + + /** + * Data: 下载文件信息 + * + * @param DownloadFileData $data + */ + public function setData(array $data) + { + $this->set("Data", $data->getAll()); + } +} diff --git a/src/UAIModelverse/Apis/DownloadOrderSummaryRequest.php b/src/UAIModelverse/Apis/DownloadOrderSummaryRequest.php new file mode 100644 index 0000000..0606210 --- /dev/null +++ b/src/UAIModelverse/Apis/DownloadOrderSummaryRequest.php @@ -0,0 +1,251 @@ + "DownloadOrderSummary"]); + $this->markRequired("StartTime"); + $this->markRequired("EndTime"); + } + + + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级),必填 + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级),必填 + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * ResourceIds: 资源ID列表(可选) + * + * @return string[]|null + */ + public function getResourceIds() + { + return $this->get("ResourceIds"); + } + + /** + * ResourceIds: 资源ID列表(可选) + * + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds) + { + $this->set("ResourceIds", $resourceIds); + } + + /** + * ModelIds: 模型ID列表(可选) + * + * @return string[]|null + */ + public function getModelIds() + { + return $this->get("ModelIds"); + } + + /** + * ModelIds: 模型ID列表(可选) + * + * @param string[] $modelIds + */ + public function setModelIds(array $modelIds) + { + $this->set("ModelIds", $modelIds); + } + + /** + * PricingUnits: 计费单位列表(多选,可选) + * + * @return int[]|null + */ + public function getPricingUnits() + { + return $this->get("PricingUnits"); + } + + /** + * PricingUnits: 计费单位列表(多选,可选) + * + * @param int[] $pricingUnits + */ + public function setPricingUnits(array $pricingUnits) + { + $this->set("PricingUnits", $pricingUnits); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @return int[]|null + */ + public function getOrderTypes() + { + return $this->get("OrderTypes"); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @param int[] $orderTypes + */ + public function setOrderTypes(array $orderTypes) + { + $this->set("OrderTypes", $orderTypes); + } + + /** + * ChargeTypes: 计费类型数组(多选,可选) + * + * @return int[]|null + */ + public function getChargeTypes() + { + return $this->get("ChargeTypes"); + } + + /** + * ChargeTypes: 计费类型数组(多选,可选) + * + * @param int[] $chargeTypes + */ + public function setChargeTypes(array $chargeTypes) + { + $this->set("ChargeTypes", $chargeTypes); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @return int[]|null + */ + public function getOrganizationIds() + { + return $this->get("OrganizationIds"); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @param int[] $organizationIds + */ + public function setOrganizationIds(array $organizationIds) + { + $this->set("OrganizationIds", $organizationIds); + } + + /** + * Regions: 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string[]|null + */ + public function getRegions() + { + return $this->get("Regions"); + } + + /** + * Regions: 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string[] $regions + */ + public function setRegions(array $regions) + { + $this->set("Regions", $regions); + } + + /** + * PricingSkus: 计费单元(SKU)列表(可选) + * + * @return string[]|null + */ + public function getPricingSkus() + { + return $this->get("PricingSkus"); + } + + /** + * PricingSkus: 计费单元(SKU)列表(可选) + * + * @param string[] $pricingSkus + */ + public function setPricingSkus(array $pricingSkus) + { + $this->set("PricingSkus", $pricingSkus); + } + + /** + * ProductCodes: 产品类型列表(可选),枚举值:`modelverse`、`sandbox` + * + * @return string[]|null + */ + public function getProductCodes() + { + return $this->get("ProductCodes"); + } + + /** + * ProductCodes: 产品类型列表(可选),枚举值:`modelverse`、`sandbox` + * + * @param string[] $productCodes + */ + public function setProductCodes(array $productCodes) + { + $this->set("ProductCodes", $productCodes); + } +} diff --git a/src/UAIModelverse/Apis/DownloadOrderSummaryResponse.php b/src/UAIModelverse/Apis/DownloadOrderSummaryResponse.php new file mode 100644 index 0000000..c59eeb7 --- /dev/null +++ b/src/UAIModelverse/Apis/DownloadOrderSummaryResponse.php @@ -0,0 +1,45 @@ +get("Data")); + } + + /** + * Data: 下载文件信息 + * + * @param DownloadFileData $data + */ + public function setData(array $data) + { + $this->set("Data", $data->getAll()); + } +} diff --git a/src/UAIModelverse/Apis/GetFilterOptionsRequest.php b/src/UAIModelverse/Apis/GetFilterOptionsRequest.php new file mode 100644 index 0000000..e8fea24 --- /dev/null +++ b/src/UAIModelverse/Apis/GetFilterOptionsRequest.php @@ -0,0 +1,49 @@ + "GetFilterOptions"]); + } + + + + /** + * ProductCode: 产品类型(单选,可选),枚举值:`modelverse`、`sandbox`;为空时返回所有产品下的选项 + * + * @return string|null + */ + public function getProductCode() + { + return $this->get("ProductCode"); + } + + /** + * ProductCode: 产品类型(单选,可选),枚举值:`modelverse`、`sandbox`;为空时返回所有产品下的选项 + * + * @param string $productCode + */ + public function setProductCode($productCode) + { + $this->set("ProductCode", $productCode); + } +} diff --git a/src/UAIModelverse/Apis/GetFilterOptionsResponse.php b/src/UAIModelverse/Apis/GetFilterOptionsResponse.php new file mode 100644 index 0000000..ebdee63 --- /dev/null +++ b/src/UAIModelverse/Apis/GetFilterOptionsResponse.php @@ -0,0 +1,321 @@ +get("ResourceIds"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new FilterOptionString($item)); + } + return $result; + } + + /** + * ResourceIds: 资源选项列表 + * + * @param FilterOptionString[] $resourceIds + */ + public function setResourceIds(array $resourceIds) + { + $result = []; + foreach ($resourceIds as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * Models: 模型选项列表 + * + * @return FilterOptionString[]|null + */ + public function getModels() + { + $items = $this->get("Models"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new FilterOptionString($item)); + } + return $result; + } + + /** + * Models: 模型选项列表 + * + * @param FilterOptionString[] $models + */ + public function setModels(array $models) + { + $result = []; + foreach ($models as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * Dimensions: 账单维度选项列表 + * + * @return FilterOptionString[]|null + */ + public function getDimensions() + { + $items = $this->get("Dimensions"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new FilterOptionString($item)); + } + return $result; + } + + /** + * Dimensions: 账单维度选项列表 + * + * @param FilterOptionString[] $dimensions + */ + public function setDimensions(array $dimensions) + { + $result = []; + foreach ($dimensions as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * PricingUnits: 计费单位选项列表 + * + * @return FilterOptionInteger[]|null + */ + public function getPricingUnits() + { + $items = $this->get("PricingUnits"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new FilterOptionInteger($item)); + } + return $result; + } + + /** + * PricingUnits: 计费单位选项列表 + * + * @param FilterOptionInteger[] $pricingUnits + */ + public function setPricingUnits(array $pricingUnits) + { + $result = []; + foreach ($pricingUnits as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * Regions: 地域选项列表 + * + * @return FilterOptionString[]|null + */ + public function getRegions() + { + $items = $this->get("Regions"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new FilterOptionString($item)); + } + return $result; + } + + /** + * Regions: 地域选项列表 + * + * @param FilterOptionString[] $regions + */ + public function setRegions(array $regions) + { + $result = []; + foreach ($regions as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * ProductCodes: 产品类型选项列表 + * + * @return FilterOptionString[]|null + */ + public function getProductCodes() + { + $items = $this->get("ProductCodes"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new FilterOptionString($item)); + } + return $result; + } + + /** + * ProductCodes: 产品类型选项列表 + * + * @param FilterOptionString[] $productCodes + */ + public function setProductCodes(array $productCodes) + { + $result = []; + foreach ($productCodes as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * Projects: 项目选项列表 + * + * @return FilterOptionInteger[]|null + */ + public function getProjects() + { + $items = $this->get("Projects"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new FilterOptionInteger($item)); + } + return $result; + } + + /** + * Projects: 项目选项列表 + * + * @param FilterOptionInteger[] $projects + */ + public function setProjects(array $projects) + { + $result = []; + foreach ($projects as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * PricingSKUs: 计费 SKU 选项列表 + * + * @return FilterOptionString[]|null + */ + public function getPricingSKUs() + { + $items = $this->get("PricingSKUs"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new FilterOptionString($item)); + } + return $result; + } + + /** + * PricingSKUs: 计费 SKU 选项列表 + * + * @param FilterOptionString[] $pricingSKUs + */ + public function setPricingSKUs(array $pricingSKUs) + { + $result = []; + foreach ($pricingSKUs as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * OrderTypes: 订单类型选项列表 + * + * @return FilterOptionInteger[]|null + */ + public function getOrderTypes() + { + $items = $this->get("OrderTypes"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new FilterOptionInteger($item)); + } + return $result; + } + + /** + * OrderTypes: 订单类型选项列表 + * + * @param FilterOptionInteger[] $orderTypes + */ + public function setOrderTypes(array $orderTypes) + { + $result = []; + foreach ($orderTypes as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UAIModelverse/Apis/GetOrderAmountRequest.php b/src/UAIModelverse/Apis/GetOrderAmountRequest.php new file mode 100644 index 0000000..7dc6b08 --- /dev/null +++ b/src/UAIModelverse/Apis/GetOrderAmountRequest.php @@ -0,0 +1,231 @@ + "GetOrderAmount"]); + $this->markRequired("StartTime"); + $this->markRequired("EndTime"); + } + + + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级)。需与 `EndTime` 同时提供,最大查询跨度 366 天 + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级)。需与 `EndTime` 同时提供,最大查询跨度 366 天 + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级)。需与 `StartTime` 同时提供 + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级)。需与 `StartTime` 同时提供 + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * ResourceIds: 资源ID列表(可选) + * + * @return string[]|null + */ + public function getResourceIds() + { + return $this->get("ResourceIds"); + } + + /** + * ResourceIds: 资源ID列表(可选) + * + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds) + { + $this->set("ResourceIds", $resourceIds); + } + + /** + * ModelIds: 模型ID列表(可选) + * + * @return string[]|null + */ + public function getModelIds() + { + return $this->get("ModelIds"); + } + + /** + * ModelIds: 模型ID列表(可选) + * + * @param string[] $modelIds + */ + public function setModelIds(array $modelIds) + { + $this->set("ModelIds", $modelIds); + } + + /** + * PricingUnits: 计费单位列表(可选) + * + * @return int[]|null + */ + public function getPricingUnits() + { + return $this->get("PricingUnits"); + } + + /** + * PricingUnits: 计费单位列表(可选) + * + * @param int[] $pricingUnits + */ + public function setPricingUnits(array $pricingUnits) + { + $this->set("PricingUnits", $pricingUnits); + } + + /** + * PricingSkus: 计费单元(SKU)列表(可选) + * + * @return string[]|null + */ + public function getPricingSkus() + { + return $this->get("PricingSkus"); + } + + /** + * PricingSkus: 计费单元(SKU)列表(可选) + * + * @param string[] $pricingSkus + */ + public function setPricingSkus(array $pricingSkus) + { + $this->set("PricingSkus", $pricingSkus); + } + + /** + * ProductCodes: 产品类型列表(可选),枚举值:`modelverse`、`sandbox` + * + * @return string[]|null + */ + public function getProductCodes() + { + return $this->get("ProductCodes"); + } + + /** + * ProductCodes: 产品类型列表(可选),枚举值:`modelverse`、`sandbox` + * + * @param string[] $productCodes + */ + public function setProductCodes(array $productCodes) + { + $this->set("ProductCodes", $productCodes); + } + + /** + * OrderTypes: 订单类型列表(可选) + * + * @return int[]|null + */ + public function getOrderTypes() + { + return $this->get("OrderTypes"); + } + + /** + * OrderTypes: 订单类型列表(可选) + * + * @param int[] $orderTypes + */ + public function setOrderTypes(array $orderTypes) + { + $this->set("OrderTypes", $orderTypes); + } + + /** + * Regions: 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string[]|null + */ + public function getRegions() + { + return $this->get("Regions"); + } + + /** + * Regions: 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string[] $regions + */ + public function setRegions(array $regions) + { + $this->set("Regions", $regions); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @return string[]|null + */ + public function getOrganizationIds() + { + return $this->get("OrganizationIds"); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @param string[] $organizationIds + */ + public function setOrganizationIds(array $organizationIds) + { + $this->set("OrganizationIds", $organizationIds); + } +} diff --git a/src/UAIModelverse/Apis/GetOrderAmountResponse.php b/src/UAIModelverse/Apis/GetOrderAmountResponse.php new file mode 100644 index 0000000..ba4d5fa --- /dev/null +++ b/src/UAIModelverse/Apis/GetOrderAmountResponse.php @@ -0,0 +1,224 @@ +get("TotalOrderAmount"); + } + + /** + * TotalOrderAmount: 订单总额(所有订单的总金额) + * + * @param string $totalOrderAmount + */ + public function setTotalOrderAmount($totalOrderAmount) + { + $this->set("TotalOrderAmount", $totalOrderAmount); + } + + /** + * PaidAmount: 已支付金额 + * + * @return string|null + */ + public function getPaidAmount() + { + return $this->get("PaidAmount"); + } + + /** + * PaidAmount: 已支付金额 + * + * @param string $paidAmount + */ + public function setPaidAmount($paidAmount) + { + $this->set("PaidAmount", $paidAmount); + } + + /** + * UnpaidAmount: 待支付金额 + * + * @return string|null + */ + public function getUnpaidAmount() + { + return $this->get("UnpaidAmount"); + } + + /** + * UnpaidAmount: 待支付金额 + * + * @param string $unpaidAmount + */ + public function setUnpaidAmount($unpaidAmount) + { + $this->set("UnpaidAmount", $unpaidAmount); + } + + /** + * CashAmount: 现金账户总金额 + * + * @return string|null + */ + public function getCashAmount() + { + return $this->get("CashAmount"); + } + + /** + * CashAmount: 现金账户总金额 + * + * @param string $cashAmount + */ + public function setCashAmount($cashAmount) + { + $this->set("CashAmount", $cashAmount); + } + + /** + * BonusAmount: 赠金账户总金额 + * + * @return string|null + */ + public function getBonusAmount() + { + return $this->get("BonusAmount"); + } + + /** + * BonusAmount: 赠金账户总金额 + * + * @param string $bonusAmount + */ + public function setBonusAmount($bonusAmount) + { + $this->set("BonusAmount", $bonusAmount); + } + + /** + * CouponAmount: 代金券抵扣总额 + * + * @return string|null + */ + public function getCouponAmount() + { + return $this->get("CouponAmount"); + } + + /** + * CouponAmount: 代金券抵扣总额 + * + * @param string $couponAmount + */ + public function setCouponAmount($couponAmount) + { + $this->set("CouponAmount", $couponAmount); + } + + /** + * StarCardAmount: 星力卡抵扣总金额 + * + * @return string|null + */ + public function getStarCardAmount() + { + return $this->get("StarCardAmount"); + } + + /** + * StarCardAmount: 星力卡抵扣总金额 + * + * @param string $starCardAmount + */ + public function setStarCardAmount($starCardAmount) + { + $this->set("StarCardAmount", $starCardAmount); + } + + /** + * OrderCount: 订单总数 + * + * @return integer|null + */ + public function getOrderCount() + { + return $this->get("OrderCount"); + } + + /** + * OrderCount: 订单总数 + * + * @param int $orderCount + */ + public function setOrderCount($orderCount) + { + $this->set("OrderCount", $orderCount); + } + + /** + * PaidCount: 已支付订单数 + * + * @return integer|null + */ + public function getPaidCount() + { + return $this->get("PaidCount"); + } + + /** + * PaidCount: 已支付订单数 + * + * @param int $paidCount + */ + public function setPaidCount($paidCount) + { + $this->set("PaidCount", $paidCount); + } + + /** + * UnpaidCount: 待支付订单数量 + * + * @return integer|null + */ + public function getUnpaidCount() + { + return $this->get("UnpaidCount"); + } + + /** + * UnpaidCount: 待支付订单数量 + * + * @param int $unpaidCount + */ + public function setUnpaidCount($unpaidCount) + { + $this->set("UnpaidCount", $unpaidCount); + } +} diff --git a/src/UAIModelverse/Apis/GetUMInferAPIModelRequest.php b/src/UAIModelverse/Apis/GetUMInferAPIModelRequest.php new file mode 100644 index 0000000..3a0e32a --- /dev/null +++ b/src/UAIModelverse/Apis/GetUMInferAPIModelRequest.php @@ -0,0 +1,110 @@ + "GetUMInferAPIModel"]); + $this->markRequired("ProjectId"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * KeyId: apikey 的id + * + * @return string|null + */ + public function getKeyId() + { + return $this->get("KeyId"); + } + + /** + * KeyId: apikey 的id + * + * @param string $keyId + */ + public function setKeyId($keyId) + { + $this->set("KeyId", $keyId); + } + + /** + * ModelType: 模型类型,1: 文本生成,2: 图片生成。 + * + * @return integer|null + */ + public function getModelType() + { + return $this->get("ModelType"); + } + + /** + * ModelType: 模型类型,1: 文本生成,2: 图片生成。 + * + * @param int $modelType + */ + public function setModelType($modelType) + { + $this->set("ModelType", $modelType); + } + + /** + * SquareId: 模型广场的id,用来跳转体验中心 + * + * @return string|null + */ + public function getSquareId() + { + return $this->get("SquareId"); + } + + /** + * SquareId: 模型广场的id,用来跳转体验中心 + * + * @param string $squareId + */ + public function setSquareId($squareId) + { + $this->set("SquareId", $squareId); + } +} diff --git a/src/UAIModelverse/Apis/GetUMInferAPIModelResponse.php b/src/UAIModelverse/Apis/GetUMInferAPIModelResponse.php new file mode 100644 index 0000000..858cd73 --- /dev/null +++ b/src/UAIModelverse/Apis/GetUMInferAPIModelResponse.php @@ -0,0 +1,58 @@ +get("Data"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UMinferAPIModel($item)); + } + return $result; + } + + /** + * Data: 模型名称的字符串列表 + * + * @param UMinferAPIModel[] $data + */ + public function setData(array $data) + { + $result = []; + foreach ($data as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UAIModelverse/Apis/GetUMInferTokenUsageRequest.php b/src/UAIModelverse/Apis/GetUMInferTokenUsageRequest.php new file mode 100644 index 0000000..6c8854f --- /dev/null +++ b/src/UAIModelverse/Apis/GetUMInferTokenUsageRequest.php @@ -0,0 +1,134 @@ + "GetUMInferTokenUsage"]); + $this->markRequired("ProjectId"); + $this->markRequired("KeyId"); + $this->markRequired("Model"); + $this->markRequired("StartTime"); + $this->markRequired("EndTime"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * KeyId: apikey的id + * + * @return string|null + */ + public function getKeyId() + { + return $this->get("KeyId"); + } + + /** + * KeyId: apikey的id + * + * @param string $keyId + */ + public function setKeyId($keyId) + { + $this->set("KeyId", $keyId); + } + + /** + * Model: 模型名称 + * + * @return string|null + */ + public function getModel() + { + return $this->get("Model"); + } + + /** + * Model: 模型名称 + * + * @param string $model + */ + public function setModel($model) + { + $this->set("Model", $model); + } + + /** + * StartTime: 开始时间戳 + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 开始时间戳 + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * EndTime: 结束时间戳 + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 结束时间戳 + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } +} diff --git a/src/UAIModelverse/Apis/GetUMInferTokenUsageResponse.php b/src/UAIModelverse/Apis/GetUMInferTokenUsageResponse.php new file mode 100644 index 0000000..504558d --- /dev/null +++ b/src/UAIModelverse/Apis/GetUMInferTokenUsageResponse.php @@ -0,0 +1,46 @@ +get("Data")); + } + + /** + * Data: token使用详情 + * + * @param TokenUsage $data + */ + public function setData(array $data) + { + $this->set("Data", $data->getAll()); + } +} diff --git a/src/UAIModelverse/Apis/ListPaidOrderSummaryRequest.php b/src/UAIModelverse/Apis/ListPaidOrderSummaryRequest.php new file mode 100644 index 0000000..667abc5 --- /dev/null +++ b/src/UAIModelverse/Apis/ListPaidOrderSummaryRequest.php @@ -0,0 +1,251 @@ + "ListPaidOrderSummary"]); + $this->markRequired("StartTime"); + $this->markRequired("EndTime"); + } + + + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级),必填 + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级),必填 + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * ResourceIds: 资源ID数组(多选,可选) + * + * @return string[]|null + */ + public function getResourceIds() + { + return $this->get("ResourceIds"); + } + + /** + * ResourceIds: 资源ID数组(多选,可选) + * + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds) + { + $this->set("ResourceIds", $resourceIds); + } + + /** + * ModelIds: 模型ID数组(多选,可选) + * + * @return string[]|null + */ + public function getModelIds() + { + return $this->get("ModelIds"); + } + + /** + * ModelIds: 模型ID数组(多选,可选) + * + * @param string[] $modelIds + */ + public function setModelIds(array $modelIds) + { + $this->set("ModelIds", $modelIds); + } + + /** + * PricingUnits: 计费单位数组(多选,可选) + * + * @return int[]|null + */ + public function getPricingUnits() + { + return $this->get("PricingUnits"); + } + + /** + * PricingUnits: 计费单位数组(多选,可选) + * + * @param int[] $pricingUnits + */ + public function setPricingUnits(array $pricingUnits) + { + $this->set("PricingUnits", $pricingUnits); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @return int[]|null + */ + public function getOrderTypes() + { + return $this->get("OrderTypes"); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @param int[] $orderTypes + */ + public function setOrderTypes(array $orderTypes) + { + $this->set("OrderTypes", $orderTypes); + } + + /** + * ChargeTypes: 计费类型数组(多选,可选) + * + * @return int[]|null + */ + public function getChargeTypes() + { + return $this->get("ChargeTypes"); + } + + /** + * ChargeTypes: 计费类型数组(多选,可选) + * + * @param int[] $chargeTypes + */ + public function setChargeTypes(array $chargeTypes) + { + $this->set("ChargeTypes", $chargeTypes); + } + + /** + * PricingSkus: 计费单元(SKU)列表(可选) + * + * @return string[]|null + */ + public function getPricingSkus() + { + return $this->get("PricingSkus"); + } + + /** + * PricingSkus: 计费单元(SKU)列表(可选) + * + * @param string[] $pricingSkus + */ + public function setPricingSkus(array $pricingSkus) + { + $this->set("PricingSkus", $pricingSkus); + } + + /** + * ProductCodes: 产品类型列表(多选,可选),枚举值:`modelverse`、`sandbox` + * + * @return string[]|null + */ + public function getProductCodes() + { + return $this->get("ProductCodes"); + } + + /** + * ProductCodes: 产品类型列表(多选,可选),枚举值:`modelverse`、`sandbox` + * + * @param string[] $productCodes + */ + public function setProductCodes(array $productCodes) + { + $this->set("ProductCodes", $productCodes); + } + + /** + * Regions: 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string[]|null + */ + public function getRegions() + { + return $this->get("Regions"); + } + + /** + * Regions: 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string[] $regions + */ + public function setRegions(array $regions) + { + $this->set("Regions", $regions); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @return int[]|null + */ + public function getOrganizationIds() + { + return $this->get("OrganizationIds"); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @param int[] $organizationIds + */ + public function setOrganizationIds(array $organizationIds) + { + $this->set("OrganizationIds", $organizationIds); + } +} diff --git a/src/UAIModelverse/Apis/ListPaidOrderSummaryResponse.php b/src/UAIModelverse/Apis/ListPaidOrderSummaryResponse.php new file mode 100644 index 0000000..02d7ef0 --- /dev/null +++ b/src/UAIModelverse/Apis/ListPaidOrderSummaryResponse.php @@ -0,0 +1,57 @@ +get("Summaries"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new OrderSummaryItem($item)); + } + return $result; + } + + /** + * Summaries: 已完成订单汇总列表 + * + * @param OrderSummaryItem[] $summaries + */ + public function setSummaries(array $summaries) + { + $result = []; + foreach ($summaries as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UAIModelverse/Apis/ListPaidOrdersRequest.php b/src/UAIModelverse/Apis/ListPaidOrdersRequest.php new file mode 100644 index 0000000..5370340 --- /dev/null +++ b/src/UAIModelverse/Apis/ListPaidOrdersRequest.php @@ -0,0 +1,273 @@ + "ListPaidOrders"]); + $this->markRequired("StartTime"); + $this->markRequired("EndTime"); + $this->markRequired("Page"); + $this->markRequired("PageSize"); + } + + + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级)。与 `EndTime` 同时提供时启用自定义周期查询;EndTime 必须大于 StartTime + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级)。与 `EndTime` 同时提供时启用自定义周期查询;EndTime 必须大于 StartTime + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级)。需与 `StartTime` 同时提供 + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级)。需与 `StartTime` 同时提供 + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * Page: 页码,从1开始 + * + * @return integer|null + */ + public function getPage() + { + return $this->get("Page"); + } + + /** + * Page: 页码,从1开始 + * + * @param int $page + */ + public function setPage($page) + { + $this->set("Page", $page); + } + + /** + * PageSize: 每页数量(最小10,最大100) + * + * @return integer|null + */ + public function getPageSize() + { + return $this->get("PageSize"); + } + + /** + * PageSize: 每页数量(最小10,最大100) + * + * @param int $pageSize + */ + public function setPageSize($pageSize) + { + $this->set("PageSize", $pageSize); + } + + /** + * ResourceIds: 资源ID数组(多选,可选) + * + * @return string[]|null + */ + public function getResourceIds() + { + return $this->get("ResourceIds"); + } + + /** + * ResourceIds: 资源ID数组(多选,可选) + * + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds) + { + $this->set("ResourceIds", $resourceIds); + } + + /** + * ModelIds: 模型ID数组(多选,可选) + * + * @return string[]|null + */ + public function getModelIds() + { + return $this->get("ModelIds"); + } + + /** + * ModelIds: 模型ID数组(多选,可选) + * + * @param string[] $modelIds + */ + public function setModelIds(array $modelIds) + { + $this->set("ModelIds", $modelIds); + } + + /** + * PricingUnits: 计费单位数组(多选,可选) + * + * @return int[]|null + */ + public function getPricingUnits() + { + return $this->get("PricingUnits"); + } + + /** + * PricingUnits: 计费单位数组(多选,可选) + * + * @param int[] $pricingUnits + */ + public function setPricingUnits(array $pricingUnits) + { + $this->set("PricingUnits", $pricingUnits); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @return int[]|null + */ + public function getOrderTypes() + { + return $this->get("OrderTypes"); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @param int[] $orderTypes + */ + public function setOrderTypes(array $orderTypes) + { + $this->set("OrderTypes", $orderTypes); + } + + /** + * PricingSkus: 计费 SKU 列表(可选) + * + * @return string[]|null + */ + public function getPricingSkus() + { + return $this->get("PricingSkus"); + } + + /** + * PricingSkus: 计费 SKU 列表(可选) + * + * @param string[] $pricingSkus + */ + public function setPricingSkus(array $pricingSkus) + { + $this->set("PricingSkus", $pricingSkus); + } + + /** + * ProductCodes: 产品类型列表(多选,可选),枚举值:`modelverse`、`sandbox` + * + * @return string[]|null + */ + public function getProductCodes() + { + return $this->get("ProductCodes"); + } + + /** + * ProductCodes: 产品类型列表(多选,可选),枚举值:`modelverse`、`sandbox` + * + * @param string[] $productCodes + */ + public function setProductCodes(array $productCodes) + { + $this->set("ProductCodes", $productCodes); + } + + /** + * Regions: 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string[]|null + */ + public function getRegions() + { + return $this->get("Regions"); + } + + /** + * Regions: 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string[] $regions + */ + public function setRegions(array $regions) + { + $this->set("Regions", $regions); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @return int[]|null + */ + public function getOrganizationIds() + { + return $this->get("OrganizationIds"); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @param int[] $organizationIds + */ + public function setOrganizationIds(array $organizationIds) + { + $this->set("OrganizationIds", $organizationIds); + } +} diff --git a/src/UAIModelverse/Apis/ListPaidOrdersResponse.php b/src/UAIModelverse/Apis/ListPaidOrdersResponse.php new file mode 100644 index 0000000..c84b2cb --- /dev/null +++ b/src/UAIModelverse/Apis/ListPaidOrdersResponse.php @@ -0,0 +1,117 @@ +get("Page"); + } + + /** + * Page: 当前页码 + * + * @param int $page + */ + public function setPage($page) + { + $this->set("Page", $page); + } + + /** + * PageSize: 每页数量 + * + * @return integer|null + */ + public function getPageSize() + { + return $this->get("PageSize"); + } + + /** + * PageSize: 每页数量 + * + * @param int $pageSize + */ + public function setPageSize($pageSize) + { + $this->set("PageSize", $pageSize); + } + + /** + * Total: 总记录数 + * + * @return integer|null + */ + public function getTotal() + { + return $this->get("Total"); + } + + /** + * Total: 总记录数 + * + * @param int $total + */ + public function setTotal($total) + { + $this->set("Total", $total); + } + + /** + * Orders: 订单列表 + * + * @return OrderItemDetail[]|null + */ + public function getOrders() + { + $items = $this->get("Orders"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new OrderItemDetail($item)); + } + return $result; + } + + /** + * Orders: 订单列表 + * + * @param OrderItemDetail[] $orders + */ + public function setOrders(array $orders) + { + $result = []; + foreach ($orders as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UAIModelverse/Apis/ListUFSquareModelRequest.php b/src/UAIModelverse/Apis/ListUFSquareModelRequest.php new file mode 100644 index 0000000..e9cf880 --- /dev/null +++ b/src/UAIModelverse/Apis/ListUFSquareModelRequest.php @@ -0,0 +1,249 @@ + "ListUFSquareModel"]); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * ModelType: 模型类型 + * + * @return string|null + */ + public function getModelType() + { + return $this->get("ModelType"); + } + + /** + * ModelType: 模型类型 + * + * @param string $modelType + */ + public function setModelType($modelType) + { + $this->set("ModelType", $modelType); + } + + /** + * Keyword: 关键字 + * + * @return string|null + */ + public function getKeyword() + { + return $this->get("Keyword"); + } + + /** + * Keyword: 关键字 + * + * @param string $keyword + */ + public function setKeyword($keyword) + { + $this->set("Keyword", $keyword); + } + + /** + * Offset: 偏移量 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 偏移量 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * Limit: 每页数量 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 每页数量 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } + + /** + * OrderBy: 排序字段 + * + * @return string|null + */ + public function getOrderBy() + { + return $this->get("OrderBy"); + } + + /** + * OrderBy: 排序字段 + * + * @param string $orderBy + */ + public function setOrderBy($orderBy) + { + $this->set("OrderBy", $orderBy); + } + + /** + * Order: 排序顺序,默认倒序 + * + * @return string|null + */ + public function getOrder() + { + return $this->get("Order"); + } + + /** + * Order: 排序顺序,默认倒序 + * + * @param string $order + */ + public function setOrder($order) + { + $this->set("Order", $order); + } + + /** + * MaxModelLen: 上下文长度,数组类型,可选值 [0,4096,16384,32768,131072,256000,262144,1048576] + * + * @return int[]|null + */ + public function getMaxModelLen() + { + return $this->get("MaxModelLen"); + } + + /** + * MaxModelLen: 上下文长度,数组类型,可选值 [0,4096,16384,32768,131072,256000,262144,1048576] + * + * @param int[] $maxModelLen + */ + public function setMaxModelLen(array $maxModelLen) + { + $this->set("MaxModelLen", $maxModelLen); + } + + /** + * Language: 语言,数组类型,可选值 ["chinese", "english"] + * + * @return string[]|null + */ + public function getLanguage() + { + return $this->get("Language"); + } + + /** + * Language: 语言,数组类型,可选值 ["chinese", "english"] + * + * @param string[] $language + */ + public function setLanguage(array $language) + { + $this->set("Language", $language); + } +} diff --git a/src/UAIModelverse/Apis/ListUFSquareModelResponse.php b/src/UAIModelverse/Apis/ListUFSquareModelResponse.php new file mode 100644 index 0000000..0b59a3a --- /dev/null +++ b/src/UAIModelverse/Apis/ListUFSquareModelResponse.php @@ -0,0 +1,78 @@ +get("TotalCount"); + } + + /** + * TotalCount: 总数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } + + /** + * SquareModels: 广场模型 + * + * @return SquareModel[]|null + */ + public function getSquareModels() + { + $items = $this->get("SquareModels"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new SquareModel($item)); + } + return $result; + } + + /** + * SquareModels: 广场模型 + * + * @param SquareModel[] $squareModels + */ + public function setSquareModels(array $squareModels) + { + $result = []; + foreach ($squareModels as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UAIModelverse/Apis/ListUMInferAPIKeyRequest.php b/src/UAIModelverse/Apis/ListUMInferAPIKeyRequest.php new file mode 100644 index 0000000..b8035ee --- /dev/null +++ b/src/UAIModelverse/Apis/ListUMInferAPIKeyRequest.php @@ -0,0 +1,130 @@ + "ListUMInferAPIKey"]); + $this->markRequired("ProjectId"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * Offset: 列表起始位置偏移量,默认为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 列表起始位置偏移量,默认为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * Limit: 返回数据长度,默认为20,最大100 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 返回数据长度,默认为20,最大100 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } + + /** + * ModelverseDisabled: 是否modelverse可用 0: 启用 1: 禁用 + * + * @return integer|null + */ + public function getModelverseDisabled() + { + return $this->get("ModelverseDisabled"); + } + + /** + * ModelverseDisabled: 是否modelverse可用 0: 启用 1: 禁用 + * + * @param int $modelverseDisabled + */ + public function setModelverseDisabled($modelverseDisabled) + { + $this->set("ModelverseDisabled", $modelverseDisabled); + } + + /** + * SandBoxDisabled: 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) + * + * @return integer|null + */ + public function getSandBoxDisabled() + { + return $this->get("SandBoxDisabled"); + } + + /** + * SandBoxDisabled: 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) + * + * @param int $sandBoxDisabled + */ + public function setSandBoxDisabled($sandBoxDisabled) + { + $this->set("SandBoxDisabled", $sandBoxDisabled); + } +} diff --git a/src/UAIModelverse/Apis/ListUMInferAPIKeyResponse.php b/src/UAIModelverse/Apis/ListUMInferAPIKeyResponse.php new file mode 100644 index 0000000..8a3d733 --- /dev/null +++ b/src/UAIModelverse/Apis/ListUMInferAPIKeyResponse.php @@ -0,0 +1,57 @@ +get("Data"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new APIKey($item)); + } + return $result; + } + + /** + * Data: apikey + * + * @param APIKey[] $data + */ + public function setData(array $data) + { + $result = []; + foreach ($data as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UAIModelverse/Apis/ListUnpaidOrderSummaryRequest.php b/src/UAIModelverse/Apis/ListUnpaidOrderSummaryRequest.php new file mode 100644 index 0000000..5b870c1 --- /dev/null +++ b/src/UAIModelverse/Apis/ListUnpaidOrderSummaryRequest.php @@ -0,0 +1,231 @@ + "ListUnpaidOrderSummary"]); + $this->markRequired("StartTime"); + $this->markRequired("EndTime"); + } + + + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级),必填 + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级),必填 + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * ResourceIds: Key数组(多选,可选) + * + * @return string[]|null + */ + public function getResourceIds() + { + return $this->get("ResourceIds"); + } + + /** + * ResourceIds: Key数组(多选,可选) + * + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds) + { + $this->set("ResourceIds", $resourceIds); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @return integer|null + */ + public function getOrderTypes() + { + return $this->get("OrderTypes"); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @param int $orderTypes + */ + public function setOrderTypes($orderTypes) + { + $this->set("OrderTypes", $orderTypes); + } + + /** + * ModelIds: 模型ID数组(多选,可选) + * + * @return string[]|null + */ + public function getModelIds() + { + return $this->get("ModelIds"); + } + + /** + * ModelIds: 模型ID数组(多选,可选) + * + * @param string[] $modelIds + */ + public function setModelIds(array $modelIds) + { + $this->set("ModelIds", $modelIds); + } + + /** + * PricingUnits: 计费单元数组(多选,可选) + * + * @return int[]|null + */ + public function getPricingUnits() + { + return $this->get("PricingUnits"); + } + + /** + * PricingUnits: 计费单元数组(多选,可选) + * + * @param int[] $pricingUnits + */ + public function setPricingUnits(array $pricingUnits) + { + $this->set("PricingUnits", $pricingUnits); + } + + /** + * ChargeTypes: 计费类型数组(多选,可选) + * + * @return int[]|null + */ + public function getChargeTypes() + { + return $this->get("ChargeTypes"); + } + + /** + * ChargeTypes: 计费类型数组(多选,可选) + * + * @param int[] $chargeTypes + */ + public function setChargeTypes(array $chargeTypes) + { + $this->set("ChargeTypes", $chargeTypes); + } + + /** + * PricingSkus: 计费单元(SKU)列表(可选) + * + * @return string[]|null + */ + public function getPricingSkus() + { + return $this->get("PricingSkus"); + } + + /** + * PricingSkus: 计费单元(SKU)列表(可选) + * + * @param string[] $pricingSkus + */ + public function setPricingSkus(array $pricingSkus) + { + $this->set("PricingSkus", $pricingSkus); + } + + /** + * Regions: 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string[]|null + */ + public function getRegions() + { + return $this->get("Regions"); + } + + /** + * Regions: 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string[] $regions + */ + public function setRegions(array $regions) + { + $this->set("Regions", $regions); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @return int[]|null + */ + public function getOrganizationIds() + { + return $this->get("OrganizationIds"); + } + + /** + * OrganizationIds: 组织ID列表(可选) + * + * @param int[] $organizationIds + */ + public function setOrganizationIds(array $organizationIds) + { + $this->set("OrganizationIds", $organizationIds); + } +} diff --git a/src/UAIModelverse/Apis/ListUnpaidOrderSummaryResponse.php b/src/UAIModelverse/Apis/ListUnpaidOrderSummaryResponse.php new file mode 100644 index 0000000..e79f5f8 --- /dev/null +++ b/src/UAIModelverse/Apis/ListUnpaidOrderSummaryResponse.php @@ -0,0 +1,57 @@ +get("Summaries"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new OrderSummaryItem($item)); + } + return $result; + } + + /** + * Summaries: 欠费订单汇总列表 + * + * @param OrderSummaryItem[] $summaries + */ + public function setSummaries(array $summaries) + { + $result = []; + foreach ($summaries as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UAIModelverse/Apis/ListUnpaidOrdersRequest.php b/src/UAIModelverse/Apis/ListUnpaidOrdersRequest.php new file mode 100644 index 0000000..ab4b90a --- /dev/null +++ b/src/UAIModelverse/Apis/ListUnpaidOrdersRequest.php @@ -0,0 +1,253 @@ + "ListUnpaidOrders"]); + $this->markRequired("EndTime"); + $this->markRequired("StartTime"); + $this->markRequired("PageSize"); + $this->markRequired("Page"); + } + + + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级)。需与 `StartTime` 同时提供 + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询结束时间(Unix 时间戳,秒级)。需与 `StartTime` 同时提供 + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级)。与 `EndTime` 同时提供时启用自定义周期查询;EndTime 必须大于 StartTime + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 查询开始时间(Unix 时间戳,秒级)。与 `EndTime` 同时提供时启用自定义周期查询;EndTime 必须大于 StartTime + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * PageSize: 每页数量(最小10,最大100) + * + * @return integer|null + */ + public function getPageSize() + { + return $this->get("PageSize"); + } + + /** + * PageSize: 每页数量(最小10,最大100) + * + * @param int $pageSize + */ + public function setPageSize($pageSize) + { + $this->set("PageSize", $pageSize); + } + + /** + * Page: 页码,从1开始 + * + * @return integer|null + */ + public function getPage() + { + return $this->get("Page"); + } + + /** + * Page: 页码,从1开始 + * + * @param int $page + */ + public function setPage($page) + { + $this->set("Page", $page); + } + + /** + * ResourceIds: key数组(多选,可选) + * + * @return string[]|null + */ + public function getResourceIds() + { + return $this->get("ResourceIds"); + } + + /** + * ResourceIds: key数组(多选,可选) + * + * @param string[] $resourceIds + */ + public function setResourceIds(array $resourceIds) + { + $this->set("ResourceIds", $resourceIds); + } + + /** + * ModelIds: 模型ID数组(多选,可选) + * + * @return string[]|null + */ + public function getModelIds() + { + return $this->get("ModelIds"); + } + + /** + * ModelIds: 模型ID数组(多选,可选) + * + * @param string[] $modelIds + */ + public function setModelIds(array $modelIds) + { + $this->set("ModelIds", $modelIds); + } + + /** + * PricingUnits: 计费单元数组(多选,可选) + * + * @return int[]|null + */ + public function getPricingUnits() + { + return $this->get("PricingUnits"); + } + + /** + * PricingUnits: 计费单元数组(多选,可选) + * + * @param int[] $pricingUnits + */ + public function setPricingUnits(array $pricingUnits) + { + $this->set("PricingUnits", $pricingUnits); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @return int[]|null + */ + public function getOrderTypes() + { + return $this->get("OrderTypes"); + } + + /** + * OrderTypes: 订单类型数组(多选,可选) + * + * @param int[] $orderTypes + */ + public function setOrderTypes(array $orderTypes) + { + $this->set("OrderTypes", $orderTypes); + } + + /** + * Regions: 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string[]|null + */ + public function getRegions() + { + return $this->get("Regions"); + } + + /** + * Regions: 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string[] $regions + */ + public function setRegions(array $regions) + { + $this->set("Regions", $regions); + } + + /** + * PricingSkus: 计费 SKU 列表(可选) + * + * @return string[]|null + */ + public function getPricingSkus() + { + return $this->get("PricingSkus"); + } + + /** + * PricingSkus: 计费 SKU 列表(可选) + * + * @param string[] $pricingSkus + */ + public function setPricingSkus(array $pricingSkus) + { + $this->set("PricingSkus", $pricingSkus); + } + + /** + * ProductCodes: 产品类型列表(多选,可选),枚举值:`modelverse`、`sandbox` + * + * @return string[]|null + */ + public function getProductCodes() + { + return $this->get("ProductCodes"); + } + + /** + * ProductCodes: 产品类型列表(多选,可选),枚举值:`modelverse`、`sandbox` + * + * @param string[] $productCodes + */ + public function setProductCodes(array $productCodes) + { + $this->set("ProductCodes", $productCodes); + } +} diff --git a/src/UAIModelverse/Apis/ListUnpaidOrdersResponse.php b/src/UAIModelverse/Apis/ListUnpaidOrdersResponse.php new file mode 100644 index 0000000..3038285 --- /dev/null +++ b/src/UAIModelverse/Apis/ListUnpaidOrdersResponse.php @@ -0,0 +1,57 @@ +get("Orders"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UnpaidOrderItem($item)); + } + return $result; + } + + /** + * Orders: 欠费订单明细列表 + * + * @param UnpaidOrderItem[] $orders + */ + public function setOrders(array $orders) + { + $result = []; + foreach ($orders as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UAIModelverse/Apis/UpdateUMInferAPIKeyRequest.php b/src/UAIModelverse/Apis/UpdateUMInferAPIKeyRequest.php new file mode 100644 index 0000000..a778c6c --- /dev/null +++ b/src/UAIModelverse/Apis/UpdateUMInferAPIKeyRequest.php @@ -0,0 +1,231 @@ + "UpdateUMInferAPIKey"]); + $this->markRequired("ProjectId"); + $this->markRequired("KeyId"); + } + + + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * KeyId: apikey的id + * + * @return string|null + */ + public function getKeyId() + { + return $this->get("KeyId"); + } + + /** + * KeyId: apikey的id + * + * @param string $keyId + */ + public function setKeyId($keyId) + { + $this->set("KeyId", $keyId); + } + + /** + * Name: 更新的名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 更新的名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * ModelverseDisabled: 是否modelverse可用 0: 启用 1: 禁用 + * + * @return integer|null + */ + public function getModelverseDisabled() + { + return $this->get("ModelverseDisabled"); + } + + /** + * ModelverseDisabled: 是否modelverse可用 0: 启用 1: 禁用 + * + * @param int $modelverseDisabled + */ + public function setModelverseDisabled($modelverseDisabled) + { + $this->set("ModelverseDisabled", $modelverseDisabled); + } + + /** + * SandBoxDisabled: 是否沙盒可用 0: 启用 1: 禁用 + * + * @return integer|null + */ + public function getSandBoxDisabled() + { + return $this->get("SandBoxDisabled"); + } + + /** + * SandBoxDisabled: 是否沙盒可用 0: 启用 1: 禁用 + * + * @param int $sandBoxDisabled + */ + public function setSandBoxDisabled($sandBoxDisabled) + { + $this->set("SandBoxDisabled", $sandBoxDisabled); + } + + /** + * DailyLimitAmount: 日限额,单位随用户所在渠道。126渠道单位为美元 + * + * @return string|null + */ + public function getDailyLimitAmount() + { + return $this->get("DailyLimitAmount"); + } + + /** + * DailyLimitAmount: 日限额,单位随用户所在渠道。126渠道单位为美元 + * + * @param string $dailyLimitAmount + */ + public function setDailyLimitAmount($dailyLimitAmount) + { + $this->set("DailyLimitAmount", $dailyLimitAmount); + } + + /** + * MonthlyLimitAmount: 月限额,单位随用户所在渠道。126渠道单位为美元 + * + * @return string|null + */ + public function getMonthlyLimitAmount() + { + return $this->get("MonthlyLimitAmount"); + } + + /** + * MonthlyLimitAmount: 月限额,单位随用户所在渠道。126渠道单位为美元 + * + * @param string $monthlyLimitAmount + */ + public function setMonthlyLimitAmount($monthlyLimitAmount) + { + $this->set("MonthlyLimitAmount", $monthlyLimitAmount); + } + + /** + * GrantAllModels: 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 + * + * @return boolean|null + */ + public function getGrantAllModels() + { + return $this->get("GrantAllModels"); + } + + /** + * GrantAllModels: 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 + * + * @param boolean $grantAllModels + */ + public function setGrantAllModels($grantAllModels) + { + $this->set("GrantAllModels", $grantAllModels); + } + + /** + * GrantedModels: 授权模型,内容为数组格式。当 GrantAllModels 为false时 当前key只可访问数组中模型。例:["deepseek-ai/DeepSeek-V3.2-Think"] + * + * @return string|null + */ + public function getGrantedModels() + { + return $this->get("GrantedModels"); + } + + /** + * GrantedModels: 授权模型,内容为数组格式。当 GrantAllModels 为false时 当前key只可访问数组中模型。例:["deepseek-ai/DeepSeek-V3.2-Think"] + * + * @param string $grantedModels + */ + public function setGrantedModels($grantedModels) + { + $this->set("GrantedModels", $grantedModels); + } + + /** + * IPWhitelist: ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 192.168.1.10/24 + * + * @return string|null + */ + public function getIPWhitelist() + { + return $this->get("IPWhitelist"); + } + + /** + * IPWhitelist: ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 192.168.1.10/24 + * + * @param string $ipWhitelist + */ + public function setIPWhitelist($ipWhitelist) + { + $this->set("IPWhitelist", $ipWhitelist); + } +} diff --git a/src/UAIModelverse/Apis/UpdateUMInferAPIKeyResponse.php b/src/UAIModelverse/Apis/UpdateUMInferAPIKeyResponse.php new file mode 100644 index 0000000..0179db1 --- /dev/null +++ b/src/UAIModelverse/Apis/UpdateUMInferAPIKeyResponse.php @@ -0,0 +1,44 @@ +get("UminferID"); + } + + /** + * UminferID: apikey 的id + * + * @param string $uminferID + */ + public function setUminferID($uminferID) + { + $this->set("UminferID", $uminferID); + } +} diff --git a/src/UAIModelverse/Models/APIKey.php b/src/UAIModelverse/Models/APIKey.php new file mode 100644 index 0000000..a12d584 --- /dev/null +++ b/src/UAIModelverse/Models/APIKey.php @@ -0,0 +1,384 @@ +get("IPWhitelist"); + } + + /** + * IPWhitelist: ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 192.168.1.10/24 + * + * @param string $ipWhitelist + */ + public function setIPWhitelist($ipWhitelist) + { + $this->set("IPWhitelist", $ipWhitelist); + } + + /** + * KeyId: 资源ID + * + * @return string|null + */ + public function getKeyId() + { + return $this->get("KeyId"); + } + + /** + * KeyId: 资源ID + * + * @param string $keyId + */ + public function setKeyId($keyId) + { + $this->set("KeyId", $keyId); + } + + /** + * Name: 名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * ChannelId: 渠道id + * + * @return integer|null + */ + public function getChannelId() + { + return $this->get("ChannelId"); + } + + /** + * ChannelId: 渠道id + * + * @param int $channelId + */ + public function setChannelId($channelId) + { + $this->set("ChannelId", $channelId); + } + + /** + * TopOrganizationId: 公司id + * + * @return integer|null + */ + public function getTopOrganizationId() + { + return $this->get("TopOrganizationId"); + } + + /** + * TopOrganizationId: 公司id + * + * @param int $topOrganizationId + */ + public function setTopOrganizationId($topOrganizationId) + { + $this->set("TopOrganizationId", $topOrganizationId); + } + + /** + * OrganizationId: 项目id + * + * @return integer|null + */ + public function getOrganizationId() + { + return $this->get("OrganizationId"); + } + + /** + * OrganizationId: 项目id + * + * @param int $organizationId + */ + public function setOrganizationId($organizationId) + { + $this->set("OrganizationId", $organizationId); + } + + /** + * Status: 状态,1 正常 + * + * @return integer|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: 状态,1 正常 + * + * @param int $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * CreateTime: 创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * Key: 密钥值 + * + * @return string|null + */ + public function getKey() + { + return $this->get("Key"); + } + + /** + * Key: 密钥值 + * + * @param string $key + */ + public function setKey($key) + { + $this->set("Key", $key); + } + + /** + * ExpireTime: 过期时间的unix时间戳,-1 用不过期 + * + * @return integer|null + */ + public function getExpireTime() + { + return $this->get("ExpireTime"); + } + + /** + * ExpireTime: 过期时间的unix时间戳,-1 用不过期 + * + * @param int $expireTime + */ + public function setExpireTime($expireTime) + { + $this->set("ExpireTime", $expireTime); + } + + /** + * ModelverseDisabled: 是否modelverse可用 0: 启用 1: 禁用 + * + * @return integer|null + */ + public function getModelverseDisabled() + { + return $this->get("ModelverseDisabled"); + } + + /** + * ModelverseDisabled: 是否modelverse可用 0: 启用 1: 禁用 + * + * @param int $modelverseDisabled + */ + public function setModelverseDisabled($modelverseDisabled) + { + $this->set("ModelverseDisabled", $modelverseDisabled); + } + + /** + * SandBoxDisabled: 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) + * + * @return integer|null + */ + public function getSandBoxDisabled() + { + return $this->get("SandBoxDisabled"); + } + + /** + * SandBoxDisabled: 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) + * + * @param int $sandBoxDisabled + */ + public function setSandBoxDisabled($sandBoxDisabled) + { + $this->set("SandBoxDisabled", $sandBoxDisabled); + } + + /** + * DailyLimitAmount: 日限额,单位随用户所在渠道。126渠道单位为美元 + * + * @return string|null + */ + public function getDailyLimitAmount() + { + return $this->get("DailyLimitAmount"); + } + + /** + * DailyLimitAmount: 日限额,单位随用户所在渠道。126渠道单位为美元 + * + * @param string $dailyLimitAmount + */ + public function setDailyLimitAmount($dailyLimitAmount) + { + $this->set("DailyLimitAmount", $dailyLimitAmount); + } + + /** + * DailyUsedAmount: 日已使用额,单位随用户所在渠道。126渠道单位为美元 + * + * @return string|null + */ + public function getDailyUsedAmount() + { + return $this->get("DailyUsedAmount"); + } + + /** + * DailyUsedAmount: 日已使用额,单位随用户所在渠道。126渠道单位为美元 + * + * @param string $dailyUsedAmount + */ + public function setDailyUsedAmount($dailyUsedAmount) + { + $this->set("DailyUsedAmount", $dailyUsedAmount); + } + + /** + * MonthlyLimitAmount: 月限额,单位随用户所在渠道。126渠道单位为美元 + * + * @return string|null + */ + public function getMonthlyLimitAmount() + { + return $this->get("MonthlyLimitAmount"); + } + + /** + * MonthlyLimitAmount: 月限额,单位随用户所在渠道。126渠道单位为美元 + * + * @param string $monthlyLimitAmount + */ + public function setMonthlyLimitAmount($monthlyLimitAmount) + { + $this->set("MonthlyLimitAmount", $monthlyLimitAmount); + } + + /** + * MonthlyUsedAmount: 月已使用额,单位随用户所在渠道。126渠道单位为美元 + * + * @return string|null + */ + public function getMonthlyUsedAmount() + { + return $this->get("MonthlyUsedAmount"); + } + + /** + * MonthlyUsedAmount: 月已使用额,单位随用户所在渠道。126渠道单位为美元 + * + * @param string $monthlyUsedAmount + */ + public function setMonthlyUsedAmount($monthlyUsedAmount) + { + $this->set("MonthlyUsedAmount", $monthlyUsedAmount); + } + + /** + * GrantAllModels: 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 + * + * @return boolean|null + */ + public function getGrantAllModels() + { + return $this->get("GrantAllModels"); + } + + /** + * GrantAllModels: 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 + * + * @param boolean $grantAllModels + */ + public function setGrantAllModels($grantAllModels) + { + $this->set("GrantAllModels", $grantAllModels); + } + + /** + * GrantedModels: 授权的模型,英文逗号分隔,all表示所有模型都有权限 + * + * @return string[]|null + */ + public function getGrantedModels() + { + return $this->get("GrantedModels"); + } + + /** + * GrantedModels: 授权的模型,英文逗号分隔,all表示所有模型都有权限 + * + * @param string[] $grantedModels + */ + public function setGrantedModels(array $grantedModels) + { + $this->set("GrantedModels", $grantedModels); + } +} diff --git a/src/UAIModelverse/Models/DownloadFileData.php b/src/UAIModelverse/Models/DownloadFileData.php new file mode 100644 index 0000000..0ad6663 --- /dev/null +++ b/src/UAIModelverse/Models/DownloadFileData.php @@ -0,0 +1,84 @@ +get("DownloadURL"); + } + + /** + * DownloadURL: 文件下载链接(US3 预签名 URL,请在有效期内立即下载) + * + * @param string $downloadURL + */ + public function setDownloadURL($downloadURL) + { + $this->set("DownloadURL", $downloadURL); + } + + /** + * FileName: 文件名 + * + * @return string|null + */ + public function getFileName() + { + return $this->get("FileName"); + } + + /** + * FileName: 文件名 + * + * @param string $fileName + */ + public function setFileName($fileName) + { + $this->set("FileName", $fileName); + } + + /** + * FileSize: 文件大小(字节) + * + * @return integer|null + */ + public function getFileSize() + { + return $this->get("FileSize"); + } + + /** + * FileSize: 文件大小(字节) + * + * @param int $fileSize + */ + public function setFileSize($fileSize) + { + $this->set("FileSize", $fileSize); + } +} diff --git a/src/UAIModelverse/Models/FilterOptionInteger.php b/src/UAIModelverse/Models/FilterOptionInteger.php new file mode 100644 index 0000000..453c057 --- /dev/null +++ b/src/UAIModelverse/Models/FilterOptionInteger.php @@ -0,0 +1,64 @@ +get("Name"); + } + + /** + * Name: 显示名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Value: 值 + * + * @return integer|null + */ + public function getValue() + { + return $this->get("Value"); + } + + /** + * Value: 值 + * + * @param int $value + */ + public function setValue($value) + { + $this->set("Value", $value); + } +} diff --git a/src/UAIModelverse/Models/FilterOptionString.php b/src/UAIModelverse/Models/FilterOptionString.php new file mode 100644 index 0000000..2f9772d --- /dev/null +++ b/src/UAIModelverse/Models/FilterOptionString.php @@ -0,0 +1,64 @@ +get("Name"); + } + + /** + * Name: 显示名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Value: 值 + * + * @return string|null + */ + public function getValue() + { + return $this->get("Value"); + } + + /** + * Value: 值 + * + * @param string $value + */ + public function setValue($value) + { + $this->set("Value", $value); + } +} diff --git a/src/UAIModelverse/Models/OrderItemDetail.php b/src/UAIModelverse/Models/OrderItemDetail.php new file mode 100644 index 0000000..f5501d0 --- /dev/null +++ b/src/UAIModelverse/Models/OrderItemDetail.php @@ -0,0 +1,784 @@ +get("Region"); + } + + /** + * Region: 地域 + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProductCode: 产品类型 + * + * @return string|null + */ + public function getProductCode() + { + return $this->get("ProductCode"); + } + + /** + * ProductCode: 产品类型 + * + * @param string $productCode + */ + public function setProductCode($productCode) + { + $this->set("ProductCode", $productCode); + } + + /** + * ProductCodeDisplay: 产品类型显示名 + * + * @return string|null + */ + public function getProductCodeDisplay() + { + return $this->get("ProductCodeDisplay"); + } + + /** + * ProductCodeDisplay: 产品类型显示名 + * + * @param string $productCodeDisplay + */ + public function setProductCodeDisplay($productCodeDisplay) + { + $this->set("ProductCodeDisplay", $productCodeDisplay); + } + + /** + * StarCardAccount: 星力卡抵扣金额 + * + * @return string|null + */ + public function getStarCardAccount() + { + return $this->get("StarCardAccount"); + } + + /** + * StarCardAccount: 星力卡抵扣金额 + * + * @param string $starCardAccount + */ + public function setStarCardAccount($starCardAccount) + { + $this->set("StarCardAccount", $starCardAccount); + } + + /** + * OrderNo: 订单号 + * + * @return string|null + */ + public function getOrderNo() + { + return $this->get("OrderNo"); + } + + /** + * OrderNo: 订单号 + * + * @param string $orderNo + */ + public function setOrderNo($orderNo) + { + $this->set("OrderNo", $orderNo); + } + + /** + * CompanyID: 公司id + * + * @return integer|null + */ + public function getCompanyID() + { + return $this->get("CompanyID"); + } + + /** + * CompanyID: 公司id + * + * @param int $companyID + */ + public function setCompanyID($companyID) + { + $this->set("CompanyID", $companyID); + } + + /** + * OrganizationID: 项目ID + * + * @return integer|null + */ + public function getOrganizationID() + { + return $this->get("OrganizationID"); + } + + /** + * OrganizationID: 项目ID + * + * @param int $organizationID + */ + public function setOrganizationID($organizationID) + { + $this->set("OrganizationID", $organizationID); + } + + /** + * OrganizationName: 项目名称 + * + * @return string|null + */ + public function getOrganizationName() + { + return $this->get("OrganizationName"); + } + + /** + * OrganizationName: 项目名称 + * + * @param string $organizationName + */ + public function setOrganizationName($organizationName) + { + $this->set("OrganizationName", $organizationName); + } + + /** + * UserEmail: 用户邮箱 + * + * @return string|null + */ + public function getUserEmail() + { + return $this->get("UserEmail"); + } + + /** + * UserEmail: 用户邮箱 + * + * @param string $userEmail + */ + public function setUserEmail($userEmail) + { + $this->set("UserEmail", $userEmail); + } + + /** + * ChargeType: 计费类型 + * + * @return integer|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费类型 + * + * @param int $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * ChargeTypeDisplay: 计费类型显示名 + * + * @return string|null + */ + public function getChargeTypeDisplay() + { + return $this->get("ChargeTypeDisplay"); + } + + /** + * ChargeTypeDisplay: 计费类型显示名 + * + * @param string $chargeTypeDisplay + */ + public function setChargeTypeDisplay($chargeTypeDisplay) + { + $this->set("ChargeTypeDisplay", $chargeTypeDisplay); + } + + /** + * Channel: 渠道 + * + * @return integer|null + */ + public function getChannel() + { + return $this->get("Channel"); + } + + /** + * Channel: 渠道 + * + * @param int $channel + */ + public function setChannel($channel) + { + $this->set("Channel", $channel); + } + + /** + * Currency: 币种(如:CNY、USD) + * + * @return string|null + */ + public function getCurrency() + { + return $this->get("Currency"); + } + + /** + * Currency: 币种(如:CNY、USD) + * + * @param string $currency + */ + public function setCurrency($currency) + { + $this->set("Currency", $currency); + } + + /** + * CurrencyDisplay: 币种显示名 + * + * @return string|null + */ + public function getCurrencyDisplay() + { + return $this->get("CurrencyDisplay"); + } + + /** + * CurrencyDisplay: 币种显示名 + * + * @param string $currencyDisplay + */ + public function setCurrencyDisplay($currencyDisplay) + { + $this->set("CurrencyDisplay", $currencyDisplay); + } + + /** + * ResourceID: 资源ID + * + * @return string|null + */ + public function getResourceID() + { + return $this->get("ResourceID"); + } + + /** + * ResourceID: 资源ID + * + * @param string $resourceID + */ + public function setResourceID($resourceID) + { + $this->set("ResourceID", $resourceID); + } + + /** + * ModelID: 模型ID + * + * @return string|null + */ + public function getModelID() + { + return $this->get("ModelID"); + } + + /** + * ModelID: 模型ID + * + * @param string $modelID + */ + public function setModelID($modelID) + { + $this->set("ModelID", $modelID); + } + + /** + * ModelName: 模型名称 + * + * @return string|null + */ + public function getModelName() + { + return $this->get("ModelName"); + } + + /** + * ModelName: 模型名称 + * + * @param string $modelName + */ + public function setModelName($modelName) + { + $this->set("ModelName", $modelName); + } + + /** + * OrderType: 订单类型 + * + * @return integer|null + */ + public function getOrderType() + { + return $this->get("OrderType"); + } + + /** + * OrderType: 订单类型 + * + * @param int $orderType + */ + public function setOrderType($orderType) + { + $this->set("OrderType", $orderType); + } + + /** + * OrderTypeDisplay: 订单类型显示名 + * + * @return string|null + */ + public function getOrderTypeDisplay() + { + return $this->get("OrderTypeDisplay"); + } + + /** + * OrderTypeDisplay: 订单类型显示名 + * + * @param string $orderTypeDisplay + */ + public function setOrderTypeDisplay($orderTypeDisplay) + { + $this->set("OrderTypeDisplay", $orderTypeDisplay); + } + + /** + * PricingSKU: 计费单元(SKU)名称 + * + * @return string|null + */ + public function getPricingSKU() + { + return $this->get("PricingSKU"); + } + + /** + * PricingSKU: 计费单元(SKU)名称 + * + * @param string $pricingSKU + */ + public function setPricingSKU($pricingSKU) + { + $this->set("PricingSKU", $pricingSKU); + } + + /** + * Quantity: 用量 + * + * @return integer|null + */ + public function getQuantity() + { + return $this->get("Quantity"); + } + + /** + * Quantity: 用量 + * + * @param int $quantity + */ + public function setQuantity($quantity) + { + $this->set("Quantity", $quantity); + } + + /** + * QuantityDisplay: 用量显示(含单位) + * + * @return string|null + */ + public function getQuantityDisplay() + { + return $this->get("QuantityDisplay"); + } + + /** + * QuantityDisplay: 用量显示(含单位) + * + * @param string $quantityDisplay + */ + public function setQuantityDisplay($quantityDisplay) + { + $this->set("QuantityDisplay", $quantityDisplay); + } + + /** + * PricingUnit: 计费单位(计量单元) + * + * @return integer|null + */ + public function getPricingUnit() + { + return $this->get("PricingUnit"); + } + + /** + * PricingUnit: 计费单位(计量单元) + * + * @param int $pricingUnit + */ + public function setPricingUnit($pricingUnit) + { + $this->set("PricingUnit", $pricingUnit); + } + + /** + * PricingUnitDisplay: 计费单位显示名(如:千Token、张、秒) + * + * @return string|null + */ + public function getPricingUnitDisplay() + { + return $this->get("PricingUnitDisplay"); + } + + /** + * PricingUnitDisplay: 计费单位显示名(如:千Token、张、秒) + * + * @param string $pricingUnitDisplay + */ + public function setPricingUnitDisplay($pricingUnitDisplay) + { + $this->set("PricingUnitDisplay", $pricingUnitDisplay); + } + + /** + * ListPrice: 列表价(原单价) + * + * @return string|null + */ + public function getListPrice() + { + return $this->get("ListPrice"); + } + + /** + * ListPrice: 列表价(原单价) + * + * @param string $listPrice + */ + public function setListPrice($listPrice) + { + $this->set("ListPrice", $listPrice); + } + + /** + * DiscountPrice: 折后价(折后单价) + * + * @return string|null + */ + public function getDiscountPrice() + { + return $this->get("DiscountPrice"); + } + + /** + * DiscountPrice: 折后价(折后单价) + * + * @param string $discountPrice + */ + public function setDiscountPrice($discountPrice) + { + $this->set("DiscountPrice", $discountPrice); + } + + /** + * OrderTotalPrice: 订单总额 + * + * @return string|null + */ + public function getOrderTotalPrice() + { + return $this->get("OrderTotalPrice"); + } + + /** + * OrderTotalPrice: 订单总额 + * + * @param string $orderTotalPrice + */ + public function setOrderTotalPrice($orderTotalPrice) + { + $this->set("OrderTotalPrice", $orderTotalPrice); + } + + /** + * OriginalPrice: 原价 + * + * @return string|null + */ + public function getOriginalPrice() + { + return $this->get("OriginalPrice"); + } + + /** + * OriginalPrice: 原价 + * + * @param string $originalPrice + */ + public function setOriginalPrice($originalPrice) + { + $this->set("OriginalPrice", $originalPrice); + } + + /** + * Status: 订单状态 + * + * @return integer|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: 订单状态 + * + * @param int $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * StatusDisplay: 订单状态显示名 + * + * @return string|null + */ + public function getStatusDisplay() + { + return $this->get("StatusDisplay"); + } + + /** + * StatusDisplay: 订单状态显示名 + * + * @param string $statusDisplay + */ + public function setStatusDisplay($statusDisplay) + { + $this->set("StatusDisplay", $statusDisplay); + } + + /** + * StartTime: 开始计费时间(Unix 时间戳,秒级) + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 开始计费时间(Unix 时间戳,秒级) + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * EndTime: 结束计费时间(Unix 时间戳,秒级) + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 结束计费时间(Unix 时间戳,秒级) + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * PaidTime: 支付完成时间(Unix 时间戳,秒级) + * + * @return integer|null + */ + public function getPaidTime() + { + return $this->get("PaidTime"); + } + + /** + * PaidTime: 支付完成时间(Unix 时间戳,秒级) + * + * @param int $paidTime + */ + public function setPaidTime($paidTime) + { + $this->set("PaidTime", $paidTime); + } + + /** + * CashAccount: 现金账户扣款金额 + * + * @return string|null + */ + public function getCashAccount() + { + return $this->get("CashAccount"); + } + + /** + * CashAccount: 现金账户扣款金额 + * + * @param string $cashAccount + */ + public function setCashAccount($cashAccount) + { + $this->set("CashAccount", $cashAccount); + } + + /** + * BonusAccount: 赠金账户扣款金额 + * + * @return string|null + */ + public function getBonusAccount() + { + return $this->get("BonusAccount"); + } + + /** + * BonusAccount: 赠金账户扣款金额 + * + * @param string $bonusAccount + */ + public function setBonusAccount($bonusAccount) + { + $this->set("BonusAccount", $bonusAccount); + } + + /** + * Coupon: 代金券抵扣金额 + * + * @return string|null + */ + public function getCoupon() + { + return $this->get("Coupon"); + } + + /** + * Coupon: 代金券抵扣金额 + * + * @param string $coupon + */ + public function setCoupon($coupon) + { + $this->set("Coupon", $coupon); + } + + /** + * UnpaidOrderNo: 欠费订单号 + * + * @return string|null + */ + public function getUnpaidOrderNo() + { + return $this->get("UnpaidOrderNo"); + } + + /** + * UnpaidOrderNo: 欠费订单号 + * + * @param string $unpaidOrderNo + */ + public function setUnpaidOrderNo($unpaidOrderNo) + { + $this->set("UnpaidOrderNo", $unpaidOrderNo); + } + + /** + * RegionDisplay: 地域显示名 + * + * @return string|null + */ + public function getRegionDisplay() + { + return $this->get("RegionDisplay"); + } + + /** + * RegionDisplay: 地域显示名 + * + * @param string $regionDisplay + */ + public function setRegionDisplay($regionDisplay) + { + $this->set("RegionDisplay", $regionDisplay); + } +} diff --git a/src/UAIModelverse/Models/OrderSummaryItem.php b/src/UAIModelverse/Models/OrderSummaryItem.php new file mode 100644 index 0000000..53bd38d --- /dev/null +++ b/src/UAIModelverse/Models/OrderSummaryItem.php @@ -0,0 +1,444 @@ +get("ResourceId"); + } + + /** + * ResourceId: 资源ID + * + * @param string $resourceId + */ + public function setResourceId($resourceId) + { + $this->set("ResourceId", $resourceId); + } + + /** + * PricingSKU: 计费单元(SKU)名称 + * + * @return string|null + */ + public function getPricingSKU() + { + return $this->get("PricingSKU"); + } + + /** + * PricingSKU: 计费单元(SKU)名称 + * + * @param string $pricingSKU + */ + public function setPricingSKU($pricingSKU) + { + $this->set("PricingSKU", $pricingSKU); + } + + /** + * ModelID: 模型ID + * + * @return string|null + */ + public function getModelID() + { + return $this->get("ModelID"); + } + + /** + * ModelID: 模型ID + * + * @param string $modelID + */ + public function setModelID($modelID) + { + $this->set("ModelID", $modelID); + } + + /** + * ModelName: 模型名称 + * + * @return string|null + */ + public function getModelName() + { + return $this->get("ModelName"); + } + + /** + * ModelName: 模型名称 + * + * @param string $modelName + */ + public function setModelName($modelName) + { + $this->set("ModelName", $modelName); + } + + /** + * PricingUnit: 计费单位(计量单元) + * + * @return integer|null + */ + public function getPricingUnit() + { + return $this->get("PricingUnit"); + } + + /** + * PricingUnit: 计费单位(计量单元) + * + * @param int $pricingUnit + */ + public function setPricingUnit($pricingUnit) + { + $this->set("PricingUnit", $pricingUnit); + } + + /** + * PricingUnitName: 计费单位名称 + * + * @return string|null + */ + public function getPricingUnitName() + { + return $this->get("PricingUnitName"); + } + + /** + * PricingUnitName: 计费单位名称 + * + * @param string $pricingUnitName + */ + public function setPricingUnitName($pricingUnitName) + { + $this->set("PricingUnitName", $pricingUnitName); + } + + /** + * OrderType: 订单类型 + * + * @return integer|null + */ + public function getOrderType() + { + return $this->get("OrderType"); + } + + /** + * OrderType: 订单类型 + * + * @param int $orderType + */ + public function setOrderType($orderType) + { + $this->set("OrderType", $orderType); + } + + /** + * OrderTypeDisplay: 订单类型显示名 + * + * @return string|null + */ + public function getOrderTypeDisplay() + { + return $this->get("OrderTypeDisplay"); + } + + /** + * OrderTypeDisplay: 订单类型显示名 + * + * @param string $orderTypeDisplay + */ + public function setOrderTypeDisplay($orderTypeDisplay) + { + $this->set("OrderTypeDisplay", $orderTypeDisplay); + } + + /** + * ChargeType: 计费类型 + * + * @return integer|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费类型 + * + * @param int $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * Status: 订单状态(2=已支付; 3=已撤销) + * + * @return integer|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: 订单状态(2=已支付; 3=已撤销) + * + * @param int $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * StatusDisplay: 订单状态显示名 + * + * @return string|null + */ + public function getStatusDisplay() + { + return $this->get("StatusDisplay"); + } + + /** + * StatusDisplay: 订单状态显示名 + * + * @param string $statusDisplay + */ + public function setStatusDisplay($statusDisplay) + { + $this->set("StatusDisplay", $statusDisplay); + } + + /** + * ListPrice: 列表价(原单价) + * + * @return string|null + */ + public function getListPrice() + { + return $this->get("ListPrice"); + } + + /** + * ListPrice: 列表价(原单价) + * + * @param string $listPrice + */ + public function setListPrice($listPrice) + { + $this->set("ListPrice", $listPrice); + } + + /** + * DiscountPrice: 折后单价 + * + * @return string|null + */ + public function getDiscountPrice() + { + return $this->get("DiscountPrice"); + } + + /** + * DiscountPrice: 折后单价 + * + * @param string $discountPrice + */ + public function setDiscountPrice($discountPrice) + { + $this->set("DiscountPrice", $discountPrice); + } + + /** + * SumQuantity: 总用量(原始值) + * + * @return integer|null + */ + public function getSumQuantity() + { + return $this->get("SumQuantity"); + } + + /** + * SumQuantity: 总用量(原始值) + * + * @param int $sumQuantity + */ + public function setSumQuantity($sumQuantity) + { + $this->set("SumQuantity", $sumQuantity); + } + + /** + * SumQuantityDisplay: 总用量显示(格式化后的字符串,千token和百万token会进行转换) + * + * @return string|null + */ + public function getSumQuantityDisplay() + { + return $this->get("SumQuantityDisplay"); + } + + /** + * SumQuantityDisplay: 总用量显示(格式化后的字符串,千token和百万token会进行转换) + * + * @param string $sumQuantityDisplay + */ + public function setSumQuantityDisplay($sumQuantityDisplay) + { + $this->set("SumQuantityDisplay", $sumQuantityDisplay); + } + + /** + * SumOrderPrice: 总订单金额(格式化后的字符串) + * + * @return string|null + */ + public function getSumOrderPrice() + { + return $this->get("SumOrderPrice"); + } + + /** + * SumOrderPrice: 总订单金额(格式化后的字符串) + * + * @param string $sumOrderPrice + */ + public function setSumOrderPrice($sumOrderPrice) + { + $this->set("SumOrderPrice", $sumOrderPrice); + } + + /** + * SumOriginalPrice: 总原价(格式化后的字符串) + * + * @return string|null + */ + public function getSumOriginalPrice() + { + return $this->get("SumOriginalPrice"); + } + + /** + * SumOriginalPrice: 总原价(格式化后的字符串) + * + * @param string $sumOriginalPrice + */ + public function setSumOriginalPrice($sumOriginalPrice) + { + $this->set("SumOriginalPrice", $sumOriginalPrice); + } + + /** + * SumCashAccount: 总现金账户扣款(仅已完成订单返回) + * + * @return string|null + */ + public function getSumCashAccount() + { + return $this->get("SumCashAccount"); + } + + /** + * SumCashAccount: 总现金账户扣款(仅已完成订单返回) + * + * @param string $sumCashAccount + */ + public function setSumCashAccount($sumCashAccount) + { + $this->set("SumCashAccount", $sumCashAccount); + } + + /** + * SumStarCardAccount: 总星力卡抵扣金额(仅已完成订单返回) + * + * @return string|null + */ + public function getSumStarCardAccount() + { + return $this->get("SumStarCardAccount"); + } + + /** + * SumStarCardAccount: 总星力卡抵扣金额(仅已完成订单返回) + * + * @param string $sumStarCardAccount + */ + public function setSumStarCardAccount($sumStarCardAccount) + { + $this->set("SumStarCardAccount", $sumStarCardAccount); + } + + /** + * SumBonusAccount: 总赠金账户扣款(仅已完成订单返回) + * + * @return string|null + */ + public function getSumBonusAccount() + { + return $this->get("SumBonusAccount"); + } + + /** + * SumBonusAccount: 总赠金账户扣款(仅已完成订单返回) + * + * @param string $sumBonusAccount + */ + public function setSumBonusAccount($sumBonusAccount) + { + $this->set("SumBonusAccount", $sumBonusAccount); + } + + /** + * SumCoupon: 总代金券抵扣(仅已完成订单返回) + * + * @return string|null + */ + public function getSumCoupon() + { + return $this->get("SumCoupon"); + } + + /** + * SumCoupon: 总代金券抵扣(仅已完成订单返回) + * + * @param string $sumCoupon + */ + public function setSumCoupon($sumCoupon) + { + $this->set("SumCoupon", $sumCoupon); + } +} diff --git a/src/UAIModelverse/Models/Pricing.php b/src/UAIModelverse/Models/Pricing.php new file mode 100644 index 0000000..f613283 --- /dev/null +++ b/src/UAIModelverse/Models/Pricing.php @@ -0,0 +1,104 @@ +get("Completion"); + } + + /** + * Completion: 输出定价 + * + * @param float $completion + */ + public function setCompletion($completion) + { + $this->set("Completion", $completion); + } + + /** + * Prompt: 提示词定价 + * + * @return float|null + */ + public function getPrompt() + { + return $this->get("Prompt"); + } + + /** + * Prompt: 提示词定价 + * + * @param float $prompt + */ + public function setPrompt($prompt) + { + $this->set("Prompt", $prompt); + } + + /** + * Image: 生图定价 + * + * @return float|null + */ + public function getImage() + { + return $this->get("Image"); + } + + /** + * Image: 生图定价 + * + * @param float $image + */ + public function setImage($image) + { + $this->set("Image", $image); + } + + /** + * Currency: 币种 + * + * @return string|null + */ + public function getCurrency() + { + return $this->get("Currency"); + } + + /** + * Currency: 币种 + * + * @param string $currency + */ + public function setCurrency($currency) + { + $this->set("Currency", $currency); + } +} diff --git a/src/UAIModelverse/Models/SquareModel.php b/src/UAIModelverse/Models/SquareModel.php new file mode 100644 index 0000000..b4ae624 --- /dev/null +++ b/src/UAIModelverse/Models/SquareModel.php @@ -0,0 +1,284 @@ +get("Id"); + } + + /** + * Id: 主键 + * + * @param string $id + */ + public function setId($id) + { + $this->set("Id", $id); + } + + /** + * Name: 名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * SimpleDescribe: 简要描述 + * + * @return string|null + */ + public function getSimpleDescribe() + { + return $this->get("SimpleDescribe"); + } + + /** + * SimpleDescribe: 简要描述 + * + * @param string $simpleDescribe + */ + public function setSimpleDescribe($simpleDescribe) + { + $this->set("SimpleDescribe", $simpleDescribe); + } + + /** + * Describe: 详细描述 + * + * @return string|null + */ + public function getDescribe() + { + return $this->get("Describe"); + } + + /** + * Describe: 详细描述 + * + * @param string $describe + */ + public function setDescribe($describe) + { + $this->set("Describe", $describe); + } + + /** + * Language: 语言 + * + * @return string[]|null + */ + public function getLanguage() + { + return $this->get("Language"); + } + + /** + * Language: 语言 + * + * @param string[] $language + */ + public function setLanguage(array $language) + { + $this->set("Language", $language); + } + + /** + * MaxModelLen: 模型长度 + * + * @return integer|null + */ + public function getMaxModelLen() + { + return $this->get("MaxModelLen"); + } + + /** + * MaxModelLen: 模型长度 + * + * @param int $maxModelLen + */ + public function setMaxModelLen($maxModelLen) + { + $this->set("MaxModelLen", $maxModelLen); + } + + /** + * ModelType: 模型类型 + * + * @return string|null + */ + public function getModelType() + { + return $this->get("ModelType"); + } + + /** + * ModelType: 模型类型 + * + * @param string $modelType + */ + public function setModelType($modelType) + { + $this->set("ModelType", $modelType); + } + + /** + * HfUpdateTime: HuggingFace 更新时间 + * + * @return integer|null + */ + public function getHfUpdateTime() + { + return $this->get("HfUpdateTime"); + } + + /** + * HfUpdateTime: HuggingFace 更新时间 + * + * @param int $hfUpdateTime + */ + public function setHfUpdateTime($hfUpdateTime) + { + $this->set("HfUpdateTime", $hfUpdateTime); + } + + /** + * CreateAt: 创建时间 + * + * @return integer|null + */ + public function getCreateAt() + { + return $this->get("CreateAt"); + } + + /** + * CreateAt: 创建时间 + * + * @param int $createAt + */ + public function setCreateAt($createAt) + { + $this->set("CreateAt", $createAt); + } + + /** + * UpdateAt: 更新时间 + * + * @return integer|null + */ + public function getUpdateAt() + { + return $this->get("UpdateAt"); + } + + /** + * UpdateAt: 更新时间 + * + * @param int $updateAt + */ + public function setUpdateAt($updateAt) + { + $this->set("UpdateAt", $updateAt); + } + + /** + * SupportedCapabilities: 模型能力 + * + * @return string[]|null + */ + public function getSupportedCapabilities() + { + return $this->get("SupportedCapabilities"); + } + + /** + * SupportedCapabilities: 模型能力 + * + * @param string[] $supportedCapabilities + */ + public function setSupportedCapabilities(array $supportedCapabilities) + { + $this->set("SupportedCapabilities", $supportedCapabilities); + } + + /** + * Icon: 图标 + * + * @return string|null + */ + public function getIcon() + { + return $this->get("Icon"); + } + + /** + * Icon: 图标 + * + * @param string $icon + */ + public function setIcon($icon) + { + $this->set("Icon", $icon); + } + + /** + * Pricing: 定价策略 + * + * @return Pricing|null + */ + public function getPricing() + { + return new Pricing($this->get("Pricing")); + } + + /** + * Pricing: 定价策略 + * + * @param Pricing $pricing + */ + public function setPricing(array $pricing) + { + $this->set("Pricing", $pricing->getAll()); + } +} diff --git a/src/UAIModelverse/Models/TokenUsage.php b/src/UAIModelverse/Models/TokenUsage.php new file mode 100644 index 0000000..279f36c --- /dev/null +++ b/src/UAIModelverse/Models/TokenUsage.php @@ -0,0 +1,156 @@ +get("Total"); + } + + /** + * Total: 总token量 + * + * @param int $total + */ + public function setTotal($total) + { + $this->set("Total", $total); + } + + /** + * InTotal: 输出总token + * + * @return integer|null + */ + public function getInTotal() + { + return $this->get("InTotal"); + } + + /** + * InTotal: 输出总token + * + * @param int $inTotal + */ + public function setInTotal($inTotal) + { + $this->set("InTotal", $inTotal); + } + + /** + * OutTotal: 输出总token + * + * @return integer|null + */ + public function getOutTotal() + { + return $this->get("OutTotal"); + } + + /** + * OutTotal: 输出总token + * + * @param int $outTotal + */ + public function setOutTotal($outTotal) + { + $this->set("OutTotal", $outTotal); + } + + /** + * ImageGenerationNum: 生图总张数 + * + * @return integer|null + */ + public function getImageGenerationNum() + { + return $this->get("ImageGenerationNum"); + } + + /** + * ImageGenerationNum: 生图总张数 + * + * @param int $imageGenerationNum + */ + public function setImageGenerationNum($imageGenerationNum) + { + $this->set("ImageGenerationNum", $imageGenerationNum); + } + + /** + * RequestTotal: 请求总次数 + * + * @return integer|null + */ + public function getRequestTotal() + { + return $this->get("RequestTotal"); + } + + /** + * RequestTotal: 请求总次数 + * + * @param int $requestTotal + */ + public function setRequestTotal($requestTotal) + { + $this->set("RequestTotal", $requestTotal); + } + + /** + * Usages: 每个时间戳的token使用量 + * + * @return TokenUsageTimestamp[]|null + */ + public function getUsages() + { + $items = $this->get("Usages"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new TokenUsageTimestamp($item)); + } + return $result; + } + + /** + * Usages: 每个时间戳的token使用量 + * + * @param TokenUsageTimestamp[] $usages + */ + public function setUsages(array $usages) + { + $result = []; + foreach ($usages as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UAIModelverse/Models/TokenUsageTimestamp.php b/src/UAIModelverse/Models/TokenUsageTimestamp.php new file mode 100644 index 0000000..8afdc1f --- /dev/null +++ b/src/UAIModelverse/Models/TokenUsageTimestamp.php @@ -0,0 +1,104 @@ +get("Type"); + } + + /** + * Type: 类型,in输入 out输出 total总 request_count 请求次数 image_generation 生图张数 + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * Count: 数量 + * + * @return integer|null + */ + public function getCount() + { + return $this->get("Count"); + } + + /** + * Count: 数量 + * + * @param int $count + */ + public function setCount($count) + { + $this->set("Count", $count); + } + + /** + * Timestamp: unix时间戳 + * + * @return integer|null + */ + public function getTimestamp() + { + return $this->get("Timestamp"); + } + + /** + * Timestamp: unix时间戳 + * + * @param int $timestamp + */ + public function setTimestamp($timestamp) + { + $this->set("Timestamp", $timestamp); + } + + /** + * Model: 模型名称 + * + * @return string|null + */ + public function getModel() + { + return $this->get("Model"); + } + + /** + * Model: 模型名称 + * + * @param string $model + */ + public function setModel($model) + { + $this->set("Model", $model); + } +} diff --git a/src/UAIModelverse/Models/UMinferAPIModel.php b/src/UAIModelverse/Models/UMinferAPIModel.php new file mode 100644 index 0000000..3e56a33 --- /dev/null +++ b/src/UAIModelverse/Models/UMinferAPIModel.php @@ -0,0 +1,204 @@ +get("ServedModelName"); + } + + /** + * ServedModelName: 使用OpenAI接口调用时,填入的 model值 + * + * @param string $servedModelName + */ + public function setServedModelName($servedModelName) + { + $this->set("ServedModelName", $servedModelName); + } + + /** + * Id: id + * + * @return string|null + */ + public function getId() + { + return $this->get("Id"); + } + + /** + * Id: id + * + * @param string $id + */ + public function setId($id) + { + $this->set("Id", $id); + } + + /** + * Name: 名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * SimpleDescribe: 描述 + * + * @return string|null + */ + public function getSimpleDescribe() + { + return $this->get("SimpleDescribe"); + } + + /** + * SimpleDescribe: 描述 + * + * @param string $simpleDescribe + */ + public function setSimpleDescribe($simpleDescribe) + { + $this->set("SimpleDescribe", $simpleDescribe); + } + + /** + * Language: 语言 + * + * @return string[]|null + */ + public function getLanguage() + { + return $this->get("Language"); + } + + /** + * Language: 语言 + * + * @param string[] $language + */ + public function setLanguage(array $language) + { + $this->set("Language", $language); + } + + /** + * Icon: 图标链接 + * + * @return string|null + */ + public function getIcon() + { + return $this->get("Icon"); + } + + /** + * Icon: 图标链接 + * + * @param string $icon + */ + public function setIcon($icon) + { + $this->set("Icon", $icon); + } + + /** + * Pricing: 模型价格 + * + * @return Pricing|null + */ + public function getPricing() + { + return new Pricing($this->get("Pricing")); + } + + /** + * Pricing: 模型价格 + * + * @param Pricing $pricing + */ + public function setPricing(array $pricing) + { + $this->set("Pricing", $pricing->getAll()); + } + + /** + * CreateAt: 创建时间 + * + * @return integer|null + */ + public function getCreateAt() + { + return $this->get("CreateAt"); + } + + /** + * CreateAt: 创建时间 + * + * @param int $createAt + */ + public function setCreateAt($createAt) + { + $this->set("CreateAt", $createAt); + } + + /** + * UpdateAt: 更新时间 + * + * @return integer|null + */ + public function getUpdateAt() + { + return $this->get("UpdateAt"); + } + + /** + * UpdateAt: 更新时间 + * + * @param int $updateAt + */ + public function setUpdateAt($updateAt) + { + $this->set("UpdateAt", $updateAt); + } +} diff --git a/src/UAIModelverse/Models/UnpaidOrderItem.php b/src/UAIModelverse/Models/UnpaidOrderItem.php new file mode 100644 index 0000000..40711a0 --- /dev/null +++ b/src/UAIModelverse/Models/UnpaidOrderItem.php @@ -0,0 +1,784 @@ +get("Region"); + } + + /** + * Region: 地域代码 + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * OrderNo: 订单号 + * + * @return string|null + */ + public function getOrderNo() + { + return $this->get("OrderNo"); + } + + /** + * OrderNo: 订单号 + * + * @param string $orderNo + */ + public function setOrderNo($orderNo) + { + $this->set("OrderNo", $orderNo); + } + + /** + * SourceOrderNo: 来源订单号 + * + * @return string|null + */ + public function getSourceOrderNo() + { + return $this->get("SourceOrderNo"); + } + + /** + * SourceOrderNo: 来源订单号 + * + * @param string $sourceOrderNo + */ + public function setSourceOrderNo($sourceOrderNo) + { + $this->set("SourceOrderNo", $sourceOrderNo); + } + + /** + * CompanyID: 公司id + * + * @return integer|null + */ + public function getCompanyID() + { + return $this->get("CompanyID"); + } + + /** + * CompanyID: 公司id + * + * @param int $companyID + */ + public function setCompanyID($companyID) + { + $this->set("CompanyID", $companyID); + } + + /** + * OrganizationID: 组织ID + * + * @return integer|null + */ + public function getOrganizationID() + { + return $this->get("OrganizationID"); + } + + /** + * OrganizationID: 组织ID + * + * @param int $organizationID + */ + public function setOrganizationID($organizationID) + { + $this->set("OrganizationID", $organizationID); + } + + /** + * OrganizationName: 组织名称 + * + * @return string|null + */ + public function getOrganizationName() + { + return $this->get("OrganizationName"); + } + + /** + * OrganizationName: 组织名称 + * + * @param string $organizationName + */ + public function setOrganizationName($organizationName) + { + $this->set("OrganizationName", $organizationName); + } + + /** + * UserEmail: 用户邮箱 + * + * @return string|null + */ + public function getUserEmail() + { + return $this->get("UserEmail"); + } + + /** + * UserEmail: 用户邮箱 + * + * @param string $userEmail + */ + public function setUserEmail($userEmail) + { + $this->set("UserEmail", $userEmail); + } + + /** + * ChargeType: 计费类型 + * + * @return integer|null + */ + public function getChargeType() + { + return $this->get("ChargeType"); + } + + /** + * ChargeType: 计费类型 + * + * @param int $chargeType + */ + public function setChargeType($chargeType) + { + $this->set("ChargeType", $chargeType); + } + + /** + * ChargeTypeDisplay: 计价方式显示名 + * + * @return string|null + */ + public function getChargeTypeDisplay() + { + return $this->get("ChargeTypeDisplay"); + } + + /** + * ChargeTypeDisplay: 计价方式显示名 + * + * @param string $chargeTypeDisplay + */ + public function setChargeTypeDisplay($chargeTypeDisplay) + { + $this->set("ChargeTypeDisplay", $chargeTypeDisplay); + } + + /** + * Channel: 渠道 + * + * @return integer|null + */ + public function getChannel() + { + return $this->get("Channel"); + } + + /** + * Channel: 渠道 + * + * @param int $channel + */ + public function setChannel($channel) + { + $this->set("Channel", $channel); + } + + /** + * Currency: 币种(如:CNY、USD) + * + * @return string|null + */ + public function getCurrency() + { + return $this->get("Currency"); + } + + /** + * Currency: 币种(如:CNY、USD) + * + * @param string $currency + */ + public function setCurrency($currency) + { + $this->set("Currency", $currency); + } + + /** + * CurrencyDisplay: 币种显示名 + * + * @return string|null + */ + public function getCurrencyDisplay() + { + return $this->get("CurrencyDisplay"); + } + + /** + * CurrencyDisplay: 币种显示名 + * + * @param string $currencyDisplay + */ + public function setCurrencyDisplay($currencyDisplay) + { + $this->set("CurrencyDisplay", $currencyDisplay); + } + + /** + * ResourceID: 模型key + * + * @return string|null + */ + public function getResourceID() + { + return $this->get("ResourceID"); + } + + /** + * ResourceID: 模型key + * + * @param string $resourceID + */ + public function setResourceID($resourceID) + { + $this->set("ResourceID", $resourceID); + } + + /** + * ResourceType: 资源类型 + * + * @return integer|null + */ + public function getResourceType() + { + return $this->get("ResourceType"); + } + + /** + * ResourceType: 资源类型 + * + * @param int $resourceType + */ + public function setResourceType($resourceType) + { + $this->set("ResourceType", $resourceType); + } + + /** + * ResourceTypeDisplay: 资源类型显示名 + * + * @return string|null + */ + public function getResourceTypeDisplay() + { + return $this->get("ResourceTypeDisplay"); + } + + /** + * ResourceTypeDisplay: 资源类型显示名 + * + * @param string $resourceTypeDisplay + */ + public function setResourceTypeDisplay($resourceTypeDisplay) + { + $this->set("ResourceTypeDisplay", $resourceTypeDisplay); + } + + /** + * ModelID: 模型ID + * + * @return string|null + */ + public function getModelID() + { + return $this->get("ModelID"); + } + + /** + * ModelID: 模型ID + * + * @param string $modelID + */ + public function setModelID($modelID) + { + $this->set("ModelID", $modelID); + } + + /** + * ModelName: 模型名称 + * + * @return string|null + */ + public function getModelName() + { + return $this->get("ModelName"); + } + + /** + * ModelName: 模型名称 + * + * @param string $modelName + */ + public function setModelName($modelName) + { + $this->set("ModelName", $modelName); + } + + /** + * OrderType: 订单类型 + * + * @return integer|null + */ + public function getOrderType() + { + return $this->get("OrderType"); + } + + /** + * OrderType: 订单类型 + * + * @param int $orderType + */ + public function setOrderType($orderType) + { + $this->set("OrderType", $orderType); + } + + /** + * OrderTypeDisplay: 订单类型显示名 + * + * @return string|null + */ + public function getOrderTypeDisplay() + { + return $this->get("OrderTypeDisplay"); + } + + /** + * OrderTypeDisplay: 订单类型显示名 + * + * @param string $orderTypeDisplay + */ + public function setOrderTypeDisplay($orderTypeDisplay) + { + $this->set("OrderTypeDisplay", $orderTypeDisplay); + } + + /** + * PricingSKU: 计费单元(SKU)名称 + * + * @return string|null + */ + public function getPricingSKU() + { + return $this->get("PricingSKU"); + } + + /** + * PricingSKU: 计费单元(SKU)名称 + * + * @param string $pricingSKU + */ + public function setPricingSKU($pricingSKU) + { + $this->set("PricingSKU", $pricingSKU); + } + + /** + * Quantity: 用量 + * + * @return integer|null + */ + public function getQuantity() + { + return $this->get("Quantity"); + } + + /** + * Quantity: 用量 + * + * @param int $quantity + */ + public function setQuantity($quantity) + { + $this->set("Quantity", $quantity); + } + + /** + * QuantityDisplay: 用量显示(含单位) + * + * @return string|null + */ + public function getQuantityDisplay() + { + return $this->get("QuantityDisplay"); + } + + /** + * QuantityDisplay: 用量显示(含单位) + * + * @param string $quantityDisplay + */ + public function setQuantityDisplay($quantityDisplay) + { + $this->set("QuantityDisplay", $quantityDisplay); + } + + /** + * PricingUnit: 计费单位(计量单元) + * + * @return integer|null + */ + public function getPricingUnit() + { + return $this->get("PricingUnit"); + } + + /** + * PricingUnit: 计费单位(计量单元) + * + * @param int $pricingUnit + */ + public function setPricingUnit($pricingUnit) + { + $this->set("PricingUnit", $pricingUnit); + } + + /** + * PricingUnitDisplay: 计费单位显示名(如:千Token、张、秒) + * + * @return string|null + */ + public function getPricingUnitDisplay() + { + return $this->get("PricingUnitDisplay"); + } + + /** + * PricingUnitDisplay: 计费单位显示名(如:千Token、张、秒) + * + * @param string $pricingUnitDisplay + */ + public function setPricingUnitDisplay($pricingUnitDisplay) + { + $this->set("PricingUnitDisplay", $pricingUnitDisplay); + } + + /** + * ListPrice: 列表价(原单价) + * + * @return string|null + */ + public function getListPrice() + { + return $this->get("ListPrice"); + } + + /** + * ListPrice: 列表价(原单价) + * + * @param string $listPrice + */ + public function setListPrice($listPrice) + { + $this->set("ListPrice", $listPrice); + } + + /** + * DiscountPrice: 折后价(折后单价) + * + * @return string|null + */ + public function getDiscountPrice() + { + return $this->get("DiscountPrice"); + } + + /** + * DiscountPrice: 折后价(折后单价) + * + * @param string $discountPrice + */ + public function setDiscountPrice($discountPrice) + { + $this->set("DiscountPrice", $discountPrice); + } + + /** + * OrderTotalPrice: 订单总额 + * + * @return string|null + */ + public function getOrderTotalPrice() + { + return $this->get("OrderTotalPrice"); + } + + /** + * OrderTotalPrice: 订单总额 + * + * @param string $orderTotalPrice + */ + public function setOrderTotalPrice($orderTotalPrice) + { + $this->set("OrderTotalPrice", $orderTotalPrice); + } + + /** + * OriginalPrice: 原价 + * + * @return string|null + */ + public function getOriginalPrice() + { + return $this->get("OriginalPrice"); + } + + /** + * OriginalPrice: 原价 + * + * @param string $originalPrice + */ + public function setOriginalPrice($originalPrice) + { + $this->set("OriginalPrice", $originalPrice); + } + + /** + * Status: 订单状态 + * + * @return integer|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: 订单状态 + * + * @param int $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * StatusDisplay: 订单状态显示名 + * + * @return string|null + */ + public function getStatusDisplay() + { + return $this->get("StatusDisplay"); + } + + /** + * StatusDisplay: 订单状态显示名 + * + * @param string $statusDisplay + */ + public function setStatusDisplay($statusDisplay) + { + $this->set("StatusDisplay", $statusDisplay); + } + + /** + * CreateTime: 创建订单时间(Unix 时间戳,秒级) + * + * @return string|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建订单时间(Unix 时间戳,秒级) + * + * @param string $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * StartTime: 开始计费时间(Unix 时间戳,秒级) + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 开始计费时间(Unix 时间戳,秒级) + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * EndTime: 结束计费时间(Unix 时间戳,秒级) + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 结束计费时间(Unix 时间戳,秒级) + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * PaidTime: 订单支付时间(Unix 时间戳,秒级) + * + * @return integer|null + */ + public function getPaidTime() + { + return $this->get("PaidTime"); + } + + /** + * PaidTime: 订单支付时间(Unix 时间戳,秒级) + * + * @param int $paidTime + */ + public function setPaidTime($paidTime) + { + $this->set("PaidTime", $paidTime); + } + + /** + * RevocationTime: 撤销时间(Unix 时间戳,秒级) + * + * @return string|null + */ + public function getRevocationTime() + { + return $this->get("RevocationTime"); + } + + /** + * RevocationTime: 撤销时间(Unix 时间戳,秒级) + * + * @param string $revocationTime + */ + public function setRevocationTime($revocationTime) + { + $this->set("RevocationTime", $revocationTime); + } + + /** + * RegionDisplay: 地域显示名 + * + * @return string|null + */ + public function getRegionDisplay() + { + return $this->get("RegionDisplay"); + } + + /** + * RegionDisplay: 地域显示名 + * + * @param string $regionDisplay + */ + public function setRegionDisplay($regionDisplay) + { + $this->set("RegionDisplay", $regionDisplay); + } + + /** + * ProductCode: 产品类型 + * + * @return string|null + */ + public function getProductCode() + { + return $this->get("ProductCode"); + } + + /** + * ProductCode: 产品类型 + * + * @param string $productCode + */ + public function setProductCode($productCode) + { + $this->set("ProductCode", $productCode); + } + + /** + * ProductCodeDisplay: 产品类型显示名 + * + * @return string|null + */ + public function getProductCodeDisplay() + { + return $this->get("ProductCodeDisplay"); + } + + /** + * ProductCodeDisplay: 产品类型显示名 + * + * @param string $productCodeDisplay + */ + public function setProductCodeDisplay($productCodeDisplay) + { + $this->set("ProductCodeDisplay", $productCodeDisplay); + } +} diff --git a/src/UAIModelverse/UAIModelverseClient.php b/src/UAIModelverse/UAIModelverseClient.php new file mode 100644 index 0000000..06c4806 --- /dev/null +++ b/src/UAIModelverse/UAIModelverseClient.php @@ -0,0 +1,892 @@ + (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Name" => (string) apikey名称 + * "ModelverseDisabled" => (integer) 是否modelverse可用 0: 启用 1: 禁用 + * "SandBoxDisabled" => (integer) 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) + * "DailyLimitAmount" => (string) 日限额,单位随用户所在渠道。126渠道单位为美元 + * "MonthlyLimitAmount" => (string) 月限额,单位随用户所在渠道。126渠道单位为美元 + * "GrantAllModels" => (boolean) 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 + * "GrantedModels" => (string) 授权模型,内容为数组格式。当 GrantAllModels 为false时 当前key只可访问数组中模型。例:["deepseek-ai/DeepSeek-V3.2-Think"] + * "IPWhitelist" => (string) ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:192.168.1.1192.168.1.10-192.168.1.100192.168.1.10/24 + * ] + * + * Outputs: + * + * $outputs = [ + * "Data" => (object) apikey[ + * "IPWhitelist" => (string) ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 192.168.1.10/24 + * "KeyId" => (string) 资源ID + * "Name" => (string) 名称 + * "ChannelId" => (integer) 渠道id + * "TopOrganizationId" => (integer) 公司id + * "OrganizationId" => (integer) 项目id + * "Status" => (integer) 状态,1 正常 + * "CreateTime" => (integer) 创建时间 + * "Key" => (string) 密钥值 + * "ExpireTime" => (integer) 过期时间的unix时间戳,-1 用不过期 + * "ModelverseDisabled" => (integer) 是否modelverse可用 0: 启用 1: 禁用 + * "SandBoxDisabled" => (integer) 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) + * "DailyLimitAmount" => (string) 日限额,单位随用户所在渠道。126渠道单位为美元 + * "DailyUsedAmount" => (string) 日已使用额,单位随用户所在渠道。126渠道单位为美元 + * "MonthlyLimitAmount" => (string) 月限额,单位随用户所在渠道。126渠道单位为美元 + * "MonthlyUsedAmount" => (string) 月已使用额,单位随用户所在渠道。126渠道单位为美元 + * "GrantAllModels" => (boolean) 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 + * "GrantedModels" => (array) 授权的模型,英文逗号分隔,all表示所有模型都有权限 + * ] + * "TotalCount" => (integer) 总条数 + * ] + * + * @return CreateUMInferAPIKeyResponse + * @throws UCloudException + */ + public function createUMInferAPIKey(CreateUMInferAPIKeyRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateUMInferAPIKeyResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DeleteUMInferAPIKey - 删除apikey + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/delete_um_infer_api_key + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "KeyId" => (string) 要删除的apikey id + * ] + * + * Outputs: + * + * $outputs = [ + * "UminferID" => (string) apikey 的资源ID + * ] + * + * @return DeleteUMInferAPIKeyResponse + * @throws UCloudException + */ + public function deleteUMInferAPIKey(DeleteUMInferAPIKeyRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteUMInferAPIKeyResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DownloadListPaidOrders - 生成已完成(已支付)订单明细 Excel 文件并返回 US3 预签名下载链接;查询条件与 ListPaidOrders 完全一致,StartTime/EndTime 必填;取数范围是 [StartTime, EndTime),即取开始计费时间大于等于StartTime且小于EndTime的数据 + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/download_list_paid_orders + * + * Arguments: + * + * $args = [ + * "StartTime" => (integer) 查询开始时间(Unix 时间戳,秒级),必填 + * "EndTime" => (integer) 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * "ResourceIds" => (array) 资源ID列表(可选) + * "ModelIds" => (array) 模型ID列表(可选) + * "PricingUnits" => (array) 计费单位列表(多选,可选) + * "PricingSkus" => (array) 计费单元(SKU)列表(可选) + * "OrderTypes" => (array) 订单类型数组(多选,可选) + * "OrganizationIds" => (array) 组织ID列表(可选) + * "Regions" => (array) 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProductCodes" => (array) 产品类型列表(可选),枚举值:`modelverse`、`sandbox` + * ] + * + * Outputs: + * + * $outputs = [ + * "Data" => (object) 下载文件信息[ + * "DownloadURL" => (string) 文件下载链接(US3 预签名 URL,请在有效期内立即下载) + * "FileName" => (string) 文件名 + * "FileSize" => (integer) 文件大小(字节) + * ] + * ] + * + * @return DownloadListPaidOrdersResponse + * @throws UCloudException + */ + public function downloadListPaidOrders(DownloadListPaidOrdersRequest $request = null) + { + $resp = $this->invoke($request); + return new DownloadListPaidOrdersResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DownloadListUnpaidOrders - 生成欠费(未支付)订单明细 Excel 文件并返回 US3 预签名下载链接;查询条件与 ListUnpaidOrders 完全一致,StartTime/EndTime 必填 + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/download_list_unpaid_orders + * + * Arguments: + * + * $args = [ + * "StartTime" => (integer) 查询开始时间(Unix 时间戳,秒级),必填 + * "EndTime" => (integer) 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * "ResourceIds" => (array) 资源ID列表(可选) + * "ModelIds" => (array) 模型ID列表(可选) + * "PricingUnits" => (array) 计费单位列表(多选,可选) + * "OrderTypes" => (array) 订单类型数组(多选,可选) + * "OrganizationIds" => (array) 组织ID列表(可选) + * "PricingSkus" => (array) 计费单元(SKU)列表(可选) + * "ProductCodes" => (array) 产品类型列表(可选),枚举值:`modelverse`、`sandbox` + * "Regions" => (array) 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * ] + * + * Outputs: + * + * $outputs = [ + * "Data" => (object) 下载文件信息[ + * "DownloadURL" => (string) 文件下载链接(US3 预签名 URL,请在有效期内立即下载) + * "FileName" => (string) 文件名 + * "FileSize" => (integer) 文件大小(字节) + * ] + * ] + * + * @return DownloadListUnpaidOrdersResponse + * @throws UCloudException + */ + public function downloadListUnpaidOrders(DownloadListUnpaidOrdersRequest $request = null) + { + $resp = $this->invoke($request); + return new DownloadListUnpaidOrdersResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DownloadOrderSummary - 生成订单汇总 Excel 文件(包含已完成订单和欠费订单两个 sheet),返回 US3 预签名下载链接;StartTime/EndTime 必填 + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/download_order_summary + * + * Arguments: + * + * $args = [ + * "StartTime" => (integer) 查询开始时间(Unix 时间戳,秒级),必填 + * "EndTime" => (integer) 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * "ResourceIds" => (array) 资源ID列表(可选) + * "ModelIds" => (array) 模型ID列表(可选) + * "PricingUnits" => (array) 计费单位列表(多选,可选) + * "OrderTypes" => (array) 订单类型数组(多选,可选) + * "ChargeTypes" => (array) 计费类型数组(多选,可选) + * "OrganizationIds" => (array) 组织ID列表(可选) + * "Regions" => (array) 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "PricingSkus" => (array) 计费单元(SKU)列表(可选) + * "ProductCodes" => (array) 产品类型列表(可选),枚举值:`modelverse`、`sandbox` + * ] + * + * Outputs: + * + * $outputs = [ + * "Data" => (object) 下载文件信息[ + * "DownloadURL" => (string) 文件下载链接(US3 预签名 URL,请在有效期内立即下载) + * "FileName" => (string) 文件名 + * "FileSize" => (integer) 文件大小(字节) + * ] + * ] + * + * @return DownloadOrderSummaryResponse + * @throws UCloudException + */ + public function downloadOrderSummary(DownloadOrderSummaryRequest $request = null) + { + $resp = $this->invoke($request); + return new DownloadOrderSummaryResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetFilterOptions - 查询可用于订单筛选的资源、模型、地域等选项列表 + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_filter_options + * + * Arguments: + * + * $args = [ + * "ProductCode" => (string) 产品类型(单选,可选),枚举值:`modelverse`、`sandbox`;为空时返回所有产品下的选项 + * ] + * + * Outputs: + * + * $outputs = [ + * "ResourceIds" => (array) 资源选项列表[ + * [ + * "Name" => (string) 显示名称 + * "Value" => (string) 值 + * ] + * ] + * "Models" => (array) 模型选项列表[ + * [ + * "Name" => (string) 显示名称 + * "Value" => (string) 值 + * ] + * ] + * "Dimensions" => (array) 账单维度选项列表[ + * [ + * "Name" => (string) 显示名称 + * "Value" => (string) 值 + * ] + * ] + * "PricingUnits" => (array) 计费单位选项列表[ + * [ + * "Name" => (string) 显示名称 + * "Value" => (integer) 值 + * ] + * ] + * "Regions" => (array) 地域选项列表[ + * [ + * "Name" => (string) 显示名称 + * "Value" => (string) 值 + * ] + * ] + * "ProductCodes" => (array) 产品类型选项列表[ + * [ + * "Name" => (string) 显示名称 + * "Value" => (string) 值 + * ] + * ] + * "Projects" => (array) 项目选项列表[ + * [ + * "Name" => (string) 显示名称 + * "Value" => (integer) 值 + * ] + * ] + * "PricingSKUs" => (array) 计费 SKU 选项列表[ + * [ + * "Name" => (string) 显示名称 + * "Value" => (string) 值 + * ] + * ] + * "OrderTypes" => (array) 订单类型选项列表[ + * [ + * "Name" => (string) 显示名称 + * "Value" => (integer) 值 + * ] + * ] + * ] + * + * @return GetFilterOptionsResponse + * @throws UCloudException + */ + public function getFilterOptions(GetFilterOptionsRequest $request = null) + { + $resp = $this->invoke($request); + return new GetFilterOptionsResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetOrderAmount - 查询指定条件下订单的金额汇总及数量统计 + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_order_amount + * + * Arguments: + * + * $args = [ + * "StartTime" => (integer) 查询开始时间(Unix 时间戳,秒级)。需与 `EndTime` 同时提供,最大查询跨度 366 天 + * "EndTime" => (integer) 查询结束时间(Unix 时间戳,秒级)。需与 `StartTime` 同时提供 + * "ResourceIds" => (array) 资源ID列表(可选) + * "ModelIds" => (array) 模型ID列表(可选) + * "PricingUnits" => (array) 计费单位列表(可选) + * "PricingSkus" => (array) 计费单元(SKU)列表(可选) + * "ProductCodes" => (array) 产品类型列表(可选),枚举值:`modelverse`、`sandbox` + * "OrderTypes" => (array) 订单类型列表(可选) + * "Regions" => (array) 地域列表(可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "OrganizationIds" => (array) 组织ID列表(可选) + * ] + * + * Outputs: + * + * $outputs = [ + * "TotalOrderAmount" => (string) 订单总额(所有订单的总金额) + * "PaidAmount" => (string) 已支付金额 + * "UnpaidAmount" => (string) 待支付金额 + * "CashAmount" => (string) 现金账户总金额 + * "BonusAmount" => (string) 赠金账户总金额 + * "CouponAmount" => (string) 代金券抵扣总额 + * "StarCardAmount" => (string) 星力卡抵扣总金额 + * "OrderCount" => (integer) 订单总数 + * "PaidCount" => (integer) 已支付订单数 + * "UnpaidCount" => (integer) 待支付订单数量 + * ] + * + * @return GetOrderAmountResponse + * @throws UCloudException + */ + public function getOrderAmount(GetOrderAmountRequest $request = null) + { + $resp = $this->invoke($request); + return new GetOrderAmountResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetUMInferAPIModel - 获取该apikey能调用api的模型列表 + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_um_infer_api_model + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "KeyId" => (string) apikey 的id + * "ModelType" => (integer) 模型类型,1: 文本生成,2: 图片生成。 + * "SquareId" => (string) 模型广场的id,用来跳转体验中心 + * ] + * + * Outputs: + * + * $outputs = [ + * "Data" => (array) 模型名称的字符串列表[ + * [ + * "ServedModelName" => (string) 使用OpenAI接口调用时,填入的 model值 + * "Id" => (string) id + * "Name" => (string) 名称 + * "SimpleDescribe" => (string) 描述 + * "Language" => (array) 语言 + * "Icon" => (string) 图标链接 + * "Pricing" => (object) 模型价格[ + * "Completion" => (number) 输出定价 + * "Prompt" => (number) 提示词定价 + * "Image" => (number) 生图定价 + * "Currency" => (string) 币种 + * ] + * "CreateAt" => (integer) 创建时间 + * "UpdateAt" => (integer) 更新时间 + * ] + * ] + * ] + * + * @return GetUMInferAPIModelResponse + * @throws UCloudException + */ + public function getUMInferAPIModel(GetUMInferAPIModelRequest $request = null) + { + $resp = $this->invoke($request); + return new GetUMInferAPIModelResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetUMInferTokenUsage - 获取某个key下的某个模型的token使用量 + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/get_um_infer_token_usage + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "KeyId" => (string) apikey的id + * "Model" => (string) 模型名称 + * "StartTime" => (integer) 开始时间戳 + * "EndTime" => (integer) 结束时间戳 + * ] + * + * Outputs: + * + * $outputs = [ + * "Data" => (object) token使用详情[ + * "Total" => (integer) 总token量 + * "InTotal" => (integer) 输出总token + * "OutTotal" => (integer) 输出总token + * "ImageGenerationNum" => (integer) 生图总张数 + * "RequestTotal" => (integer) 请求总次数 + * "Usages" => (array) 每个时间戳的token使用量[ + * [ + * "Type" => (string) 类型,in输入 out输出 total总 request_count 请求次数 image_generation 生图张数 + * "Count" => (integer) 数量 + * "Timestamp" => (integer) unix时间戳 + * "Model" => (string) 模型名称 + * ] + * ] + * ] + * ] + * + * @return GetUMInferTokenUsageResponse + * @throws UCloudException + */ + public function getUMInferTokenUsage(GetUMInferTokenUsageRequest $request = null) + { + $resp = $this->invoke($request); + return new GetUMInferTokenUsageResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListPaidOrderSummary - 按指定维度汇总查询已完成(已支付)订单的统计数据 + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_paid_order_summary + * + * Arguments: + * + * $args = [ + * "StartTime" => (integer) 查询开始时间(Unix 时间戳,秒级),必填 + * "EndTime" => (integer) 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * "ResourceIds" => (array) 资源ID数组(多选,可选) + * "ModelIds" => (array) 模型ID数组(多选,可选) + * "PricingUnits" => (array) 计费单位数组(多选,可选) + * "OrderTypes" => (array) 订单类型数组(多选,可选) + * "ChargeTypes" => (array) 计费类型数组(多选,可选) + * "PricingSkus" => (array) 计费单元(SKU)列表(可选) + * "ProductCodes" => (array) 产品类型列表(多选,可选),枚举值:`modelverse`、`sandbox` + * "Regions" => (array) 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "OrganizationIds" => (array) 组织ID列表(可选) + * ] + * + * Outputs: + * + * $outputs = [ + * "Summaries" => (array) 已完成订单汇总列表[ + * [ + * "ResourceId" => (string) 资源ID + * "PricingSKU" => (string) 计费单元(SKU)名称 + * "ModelID" => (string) 模型ID + * "ModelName" => (string) 模型名称 + * "PricingUnit" => (integer) 计费单位(计量单元) + * "PricingUnitName" => (string) 计费单位名称 + * "OrderType" => (integer) 订单类型 + * "OrderTypeDisplay" => (string) 订单类型显示名 + * "ChargeType" => (integer) 计费类型 + * "Status" => (integer) 订单状态(2=已支付; 3=已撤销) + * "StatusDisplay" => (string) 订单状态显示名 + * "ListPrice" => (string) 列表价(原单价) + * "DiscountPrice" => (string) 折后单价 + * "SumQuantity" => (integer) 总用量(原始值) + * "SumQuantityDisplay" => (string) 总用量显示(格式化后的字符串,千token和百万token会进行转换) + * "SumOrderPrice" => (string) 总订单金额(格式化后的字符串) + * "SumOriginalPrice" => (string) 总原价(格式化后的字符串) + * "SumCashAccount" => (string) 总现金账户扣款(仅已完成订单返回) + * "SumStarCardAccount" => (string) 总星力卡抵扣金额(仅已完成订单返回) + * "SumBonusAccount" => (string) 总赠金账户扣款(仅已完成订单返回) + * "SumCoupon" => (string) 总代金券抵扣(仅已完成订单返回) + * ] + * ] + * ] + * + * @return ListPaidOrderSummaryResponse + * @throws UCloudException + */ + public function listPaidOrderSummary(ListPaidOrderSummaryRequest $request = null) + { + $resp = $this->invoke($request); + return new ListPaidOrderSummaryResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListPaidOrders - 查询已完成(已支付)的订单明细列表,StartTime/EndTime 必填;取数范围是 [StartTime, EndTime),即取开始计费时间大于等于StartTime且小于EndTime的数据 + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_paid_orders + * + * Arguments: + * + * $args = [ + * "StartTime" => (integer) 查询开始时间(Unix 时间戳,秒级)。与 `EndTime` 同时提供时启用自定义周期查询;EndTime 必须大于 StartTime + * "EndTime" => (integer) 查询结束时间(Unix 时间戳,秒级)。需与 `StartTime` 同时提供 + * "Page" => (integer) 页码,从1开始 + * "PageSize" => (integer) 每页数量(最小10,最大100) + * "ResourceIds" => (array) 资源ID数组(多选,可选) + * "ModelIds" => (array) 模型ID数组(多选,可选) + * "PricingUnits" => (array) 计费单位数组(多选,可选) + * "OrderTypes" => (array) 订单类型数组(多选,可选) + * "PricingSkus" => (array) 计费 SKU 列表(可选) + * "ProductCodes" => (array) 产品类型列表(多选,可选),枚举值:`modelverse`、`sandbox` + * "Regions" => (array) 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "OrganizationIds" => (array) 组织ID列表(可选) + * ] + * + * Outputs: + * + * $outputs = [ + * "Page" => (integer) 当前页码 + * "PageSize" => (integer) 每页数量 + * "Total" => (integer) 总记录数 + * "Orders" => (array) 订单列表[ + * [ + * "Region" => (string) 地域 + * "ProductCode" => (string) 产品类型 + * "ProductCodeDisplay" => (string) 产品类型显示名 + * "StarCardAccount" => (string) 星力卡抵扣金额 + * "OrderNo" => (string) 订单号 + * "CompanyID" => (integer) 公司id + * "OrganizationID" => (integer) 项目ID + * "OrganizationName" => (string) 项目名称 + * "UserEmail" => (string) 用户邮箱 + * "ChargeType" => (integer) 计费类型 + * "ChargeTypeDisplay" => (string) 计费类型显示名 + * "Channel" => (integer) 渠道 + * "Currency" => (string) 币种(如:CNY、USD) + * "CurrencyDisplay" => (string) 币种显示名 + * "ResourceID" => (string) 资源ID + * "ModelID" => (string) 模型ID + * "ModelName" => (string) 模型名称 + * "OrderType" => (integer) 订单类型 + * "OrderTypeDisplay" => (string) 订单类型显示名 + * "PricingSKU" => (string) 计费单元(SKU)名称 + * "Quantity" => (integer) 用量 + * "QuantityDisplay" => (string) 用量显示(含单位) + * "PricingUnit" => (integer) 计费单位(计量单元) + * "PricingUnitDisplay" => (string) 计费单位显示名(如:千Token、张、秒) + * "ListPrice" => (string) 列表价(原单价) + * "DiscountPrice" => (string) 折后价(折后单价) + * "OrderTotalPrice" => (string) 订单总额 + * "OriginalPrice" => (string) 原价 + * "Status" => (integer) 订单状态 + * "StatusDisplay" => (string) 订单状态显示名 + * "StartTime" => (integer) 开始计费时间(Unix 时间戳,秒级) + * "EndTime" => (integer) 结束计费时间(Unix 时间戳,秒级) + * "PaidTime" => (integer) 支付完成时间(Unix 时间戳,秒级) + * "CashAccount" => (string) 现金账户扣款金额 + * "BonusAccount" => (string) 赠金账户扣款金额 + * "Coupon" => (string) 代金券抵扣金额 + * "UnpaidOrderNo" => (string) 欠费订单号 + * "RegionDisplay" => (string) 地域显示名 + * ] + * ] + * ] + * + * @return ListPaidOrdersResponse + * @throws UCloudException + */ + public function listPaidOrders(ListPaidOrdersRequest $request = null) + { + $resp = $this->invoke($request); + return new ListPaidOrdersResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUFSquareModel - 查询模型广场数据 + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_uf_square_model + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "ModelType" => (string) 模型类型 + * "Keyword" => (string) 关键字 + * "Offset" => (integer) 偏移量 + * "Limit" => (integer) 每页数量 + * "OrderBy" => (string) 排序字段 + * "Order" => (string) 排序顺序,默认倒序 + * "MaxModelLen" => (array) 上下文长度,数组类型,可选值 [0,4096,16384,32768,131072,256000,262144,1048576] + * "Language" => (array) 语言,数组类型,可选值 ["chinese", "english"] + * ] + * + * Outputs: + * + * $outputs = [ + * "TotalCount" => (integer) 总数 + * "SquareModels" => (array) 广场模型[ + * [ + * "Id" => (string) 主键 + * "Name" => (string) 名称 + * "SimpleDescribe" => (string) 简要描述 + * "Describe" => (string) 详细描述 + * "Language" => (array) 语言 + * "MaxModelLen" => (integer) 模型长度 + * "ModelType" => (string) 模型类型 + * "HfUpdateTime" => (integer) HuggingFace 更新时间 + * "CreateAt" => (integer) 创建时间 + * "UpdateAt" => (integer) 更新时间 + * "SupportedCapabilities" => (array) 模型能力 + * "Icon" => (string) 图标 + * "Pricing" => (object) 定价策略[ + * "Completion" => (number) 输出定价 + * "Prompt" => (number) 提示词定价 + * "Image" => (number) 生图定价 + * "Currency" => (string) 币种 + * ] + * ] + * ] + * ] + * + * @return ListUFSquareModelResponse + * @throws UCloudException + */ + public function listUFSquareModel(ListUFSquareModelRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUFSquareModelResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUMInferAPIKey - 列表查询apikey + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_um_infer_api_key + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Offset" => (integer) 列表起始位置偏移量,默认为0 + * "Limit" => (integer) 返回数据长度,默认为20,最大100 + * "ModelverseDisabled" => (integer) 是否modelverse可用 0: 启用 1: 禁用 + * "SandBoxDisabled" => (integer) 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) + * ] + * + * Outputs: + * + * $outputs = [ + * "Data" => (array) apikey[ + * [ + * "IPWhitelist" => (string) ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 192.168.1.10/24 + * "KeyId" => (string) 资源ID + * "Name" => (string) 名称 + * "ChannelId" => (integer) 渠道id + * "TopOrganizationId" => (integer) 公司id + * "OrganizationId" => (integer) 项目id + * "Status" => (integer) 状态,1 正常 + * "CreateTime" => (integer) 创建时间 + * "Key" => (string) 密钥值 + * "ExpireTime" => (integer) 过期时间的unix时间戳,-1 用不过期 + * "ModelverseDisabled" => (integer) 是否modelverse可用 0: 启用 1: 禁用 + * "SandBoxDisabled" => (integer) 是否沙盒可用 0: 启用 1: 禁用(astraflow 沙盒控制未上线,暂时无效) + * "DailyLimitAmount" => (string) 日限额,单位随用户所在渠道。126渠道单位为美元 + * "DailyUsedAmount" => (string) 日已使用额,单位随用户所在渠道。126渠道单位为美元 + * "MonthlyLimitAmount" => (string) 月限额,单位随用户所在渠道。126渠道单位为美元 + * "MonthlyUsedAmount" => (string) 月已使用额,单位随用户所在渠道。126渠道单位为美元 + * "GrantAllModels" => (boolean) 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 + * "GrantedModels" => (array) 授权的模型,英文逗号分隔,all表示所有模型都有权限 + * ] + * ] + * ] + * + * @return ListUMInferAPIKeyResponse + * @throws UCloudException + */ + public function listUMInferAPIKey(ListUMInferAPIKeyRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUMInferAPIKeyResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUnpaidOrderSummary - 按指定维度汇总查询欠费订单的统计数据 + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_unpaid_order_summary + * + * Arguments: + * + * $args = [ + * "StartTime" => (integer) 查询开始时间(Unix 时间戳,秒级),必填 + * "EndTime" => (integer) 查询结束时间(Unix 时间戳,秒级),必填;必须大于 StartTime + * "ResourceIds" => (array) Key数组(多选,可选) + * "OrderTypes" => (integer) 订单类型数组(多选,可选) + * "ModelIds" => (array) 模型ID数组(多选,可选) + * "PricingUnits" => (array) 计费单元数组(多选,可选) + * "ChargeTypes" => (array) 计费类型数组(多选,可选) + * "PricingSkus" => (array) 计费单元(SKU)列表(可选) + * "Regions" => (array) 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "OrganizationIds" => (array) 组织ID列表(可选) + * ] + * + * Outputs: + * + * $outputs = [ + * "Summaries" => (array) 欠费订单汇总列表[ + * [ + * "ResourceId" => (string) 资源ID + * "PricingSKU" => (string) 计费单元(SKU)名称 + * "ModelID" => (string) 模型ID + * "ModelName" => (string) 模型名称 + * "PricingUnit" => (integer) 计费单位(计量单元) + * "PricingUnitName" => (string) 计费单位名称 + * "OrderType" => (integer) 订单类型 + * "OrderTypeDisplay" => (string) 订单类型显示名 + * "ChargeType" => (integer) 计费类型 + * "Status" => (integer) 订单状态(2=已支付; 3=已撤销) + * "StatusDisplay" => (string) 订单状态显示名 + * "ListPrice" => (string) 列表价(原单价) + * "DiscountPrice" => (string) 折后单价 + * "SumQuantity" => (integer) 总用量(原始值) + * "SumQuantityDisplay" => (string) 总用量显示(格式化后的字符串,千token和百万token会进行转换) + * "SumOrderPrice" => (string) 总订单金额(格式化后的字符串) + * "SumOriginalPrice" => (string) 总原价(格式化后的字符串) + * "SumCashAccount" => (string) 总现金账户扣款(仅已完成订单返回) + * "SumStarCardAccount" => (string) 总星力卡抵扣金额(仅已完成订单返回) + * "SumBonusAccount" => (string) 总赠金账户扣款(仅已完成订单返回) + * "SumCoupon" => (string) 总代金券抵扣(仅已完成订单返回) + * ] + * ] + * ] + * + * @return ListUnpaidOrderSummaryResponse + * @throws UCloudException + */ + public function listUnpaidOrderSummary(ListUnpaidOrderSummaryRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUnpaidOrderSummaryResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListUnpaidOrders - 查询当前欠费(未支付)的订单明细列表 + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/list_unpaid_orders + * + * Arguments: + * + * $args = [ + * "EndTime" => (integer) 查询结束时间(Unix 时间戳,秒级)。需与 `StartTime` 同时提供 + * "StartTime" => (integer) 查询开始时间(Unix 时间戳,秒级)。与 `EndTime` 同时提供时启用自定义周期查询;EndTime 必须大于 StartTime + * "PageSize" => (integer) 每页数量(最小10,最大100) + * "Page" => (integer) 页码,从1开始 + * "ResourceIds" => (array) key数组(多选,可选) + * "ModelIds" => (array) 模型ID数组(多选,可选) + * "PricingUnits" => (array) 计费单元数组(多选,可选) + * "OrderTypes" => (array) 订单类型数组(多选,可选) + * "Regions" => (array) 地域列表(多选,可选),参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "PricingSkus" => (array) 计费 SKU 列表(可选) + * "ProductCodes" => (array) 产品类型列表(多选,可选),枚举值:`modelverse`、`sandbox` + * ] + * + * Outputs: + * + * $outputs = [ + * "Orders" => (array) 欠费订单明细列表[ + * [ + * "Region" => (string) 地域代码 + * "OrderNo" => (string) 订单号 + * "SourceOrderNo" => (string) 来源订单号 + * "CompanyID" => (integer) 公司id + * "OrganizationID" => (integer) 组织ID + * "OrganizationName" => (string) 组织名称 + * "UserEmail" => (string) 用户邮箱 + * "ChargeType" => (integer) 计费类型 + * "ChargeTypeDisplay" => (string) 计价方式显示名 + * "Channel" => (integer) 渠道 + * "Currency" => (string) 币种(如:CNY、USD) + * "CurrencyDisplay" => (string) 币种显示名 + * "ResourceID" => (string) 模型key + * "ResourceType" => (integer) 资源类型 + * "ResourceTypeDisplay" => (string) 资源类型显示名 + * "ModelID" => (string) 模型ID + * "ModelName" => (string) 模型名称 + * "OrderType" => (integer) 订单类型 + * "OrderTypeDisplay" => (string) 订单类型显示名 + * "PricingSKU" => (string) 计费单元(SKU)名称 + * "Quantity" => (integer) 用量 + * "QuantityDisplay" => (string) 用量显示(含单位) + * "PricingUnit" => (integer) 计费单位(计量单元) + * "PricingUnitDisplay" => (string) 计费单位显示名(如:千Token、张、秒) + * "ListPrice" => (string) 列表价(原单价) + * "DiscountPrice" => (string) 折后价(折后单价) + * "OrderTotalPrice" => (string) 订单总额 + * "OriginalPrice" => (string) 原价 + * "Status" => (integer) 订单状态 + * "StatusDisplay" => (string) 订单状态显示名 + * "CreateTime" => (string) 创建订单时间(Unix 时间戳,秒级) + * "StartTime" => (integer) 开始计费时间(Unix 时间戳,秒级) + * "EndTime" => (integer) 结束计费时间(Unix 时间戳,秒级) + * "PaidTime" => (integer) 订单支付时间(Unix 时间戳,秒级) + * "RevocationTime" => (string) 撤销时间(Unix 时间戳,秒级) + * "RegionDisplay" => (string) 地域显示名 + * "ProductCode" => (string) 产品类型 + * "ProductCodeDisplay" => (string) 产品类型显示名 + * ] + * ] + * ] + * + * @return ListUnpaidOrdersResponse + * @throws UCloudException + */ + public function listUnpaidOrders(ListUnpaidOrdersRequest $request = null) + { + $resp = $this->invoke($request); + return new ListUnpaidOrdersResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * UpdateUMInferAPIKey - 更新apikey + * + * See also: https://docs.ucloud.cn/api/uai-modelverse-api/update_um_infer_api_key + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "KeyId" => (string) apikey的id + * "Name" => (string) 更新的名称 + * "ModelverseDisabled" => (integer) 是否modelverse可用 0: 启用 1: 禁用 + * "SandBoxDisabled" => (integer) 是否沙盒可用 0: 启用 1: 禁用 + * "DailyLimitAmount" => (string) 日限额,单位随用户所在渠道。126渠道单位为美元 + * "MonthlyLimitAmount" => (string) 月限额,单位随用户所在渠道。126渠道单位为美元 + * "GrantAllModels" => (boolean) 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型 + * "GrantedModels" => (string) 授权模型,内容为数组格式。当 GrantAllModels 为false时 当前key只可访问数组中模型。例:["deepseek-ai/DeepSeek-V3.2-Think"] + * "IPWhitelist" => (string) ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 192.168.1.10/24 + * ] + * + * Outputs: + * + * $outputs = [ + * "UminferID" => (string) apikey 的id + * ] + * + * @return UpdateUMInferAPIKeyResponse + * @throws UCloudException + */ + public function updateUMInferAPIKey(UpdateUMInferAPIKeyRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateUMInferAPIKeyResponse($resp->toArray(), $resp->getRequestId()); + } +}