From cf6575117165c7dc11f73ee45ab41e48e0aae686 Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Mon, 26 Oct 2026 10:03:51 +0000 Subject: [PATCH] sdk: rolling update for 0.3.67 --- VERSION | 2 +- .../Apis/DescribeULogServiceLogSetRequest.php | 112 ++++++++++++++++++ .../DescribeULogServiceLogSetResponse.php | 65 ++++++++++ .../Apis/DescribeULogServiceTopicRequest.php | 91 ++++++++++++++ .../Apis/DescribeULogServiceTopicResponse.php | 45 +++++++ src/ULogService/Models/TopicInfo.php | 14 +-- src/ULogService/ULogServiceClient.php | 78 +++++++++++- 7 files changed, 398 insertions(+), 9 deletions(-) create mode 100644 src/ULogService/Apis/DescribeULogServiceLogSetRequest.php create mode 100644 src/ULogService/Apis/DescribeULogServiceLogSetResponse.php create mode 100644 src/ULogService/Apis/DescribeULogServiceTopicRequest.php create mode 100644 src/ULogService/Apis/DescribeULogServiceTopicResponse.php diff --git a/VERSION b/VERSION index 8bb19af9..bad003c0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.66 +0.3.67 diff --git a/src/ULogService/Apis/DescribeULogServiceLogSetRequest.php b/src/ULogService/Apis/DescribeULogServiceLogSetRequest.php new file mode 100644 index 00000000..541a1c26 --- /dev/null +++ b/src/ULogService/Apis/DescribeULogServiceLogSetRequest.php @@ -0,0 +1,112 @@ + "DescribeULogServiceLogSet"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("LogSetId"); + } + + + + /** + * 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); + } + + /** + * LogSetId: 日志集ID + * + * @return string|null + */ + public function getLogSetId() + { + return $this->get("LogSetId"); + } + + /** + * LogSetId: 日志集ID + * + * @param string $logSetId + */ + public function setLogSetId($logSetId) + { + $this->set("LogSetId", $logSetId); + } +} diff --git a/src/ULogService/Apis/DescribeULogServiceLogSetResponse.php b/src/ULogService/Apis/DescribeULogServiceLogSetResponse.php new file mode 100644 index 00000000..a56ec54e --- /dev/null +++ b/src/ULogService/Apis/DescribeULogServiceLogSetResponse.php @@ -0,0 +1,65 @@ +get("TotalCount"); + } + + /** + * TotalCount: 日志集总数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } + + /** + * LogSetInfo: 日志集信息 + * + * @return LogSetInfo|null + */ + public function getLogSetInfo() + { + return new LogSetInfo($this->get("LogSetInfo")); + } + + /** + * LogSetInfo: 日志集信息 + * + * @param LogSetInfo $logSetInfo + */ + public function setLogSetInfo(array $logSetInfo) + { + $this->set("LogSetInfo", $logSetInfo->getAll()); + } +} diff --git a/src/ULogService/Apis/DescribeULogServiceTopicRequest.php b/src/ULogService/Apis/DescribeULogServiceTopicRequest.php new file mode 100644 index 00000000..6ca791b2 --- /dev/null +++ b/src/ULogService/Apis/DescribeULogServiceTopicRequest.php @@ -0,0 +1,91 @@ + "DescribeULogServiceTopic"]); + $this->markRequired("Region"); + $this->markRequired("TopicId"); + } + + + + /** + * 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); + } + + /** + * 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); + } + + /** + * TopicId: 主题Id + * + * @return string|null + */ + public function getTopicId() + { + return $this->get("TopicId"); + } + + /** + * TopicId: 主题Id + * + * @param string $topicId + */ + public function setTopicId($topicId) + { + $this->set("TopicId", $topicId); + } +} diff --git a/src/ULogService/Apis/DescribeULogServiceTopicResponse.php b/src/ULogService/Apis/DescribeULogServiceTopicResponse.php new file mode 100644 index 00000000..a4e7f690 --- /dev/null +++ b/src/ULogService/Apis/DescribeULogServiceTopicResponse.php @@ -0,0 +1,45 @@ +get("Data")); + } + + /** + * Data: 主题详情 + * + * @param TopicInfo $data + */ + public function setData(array $data) + { + $this->set("Data", $data->getAll()); + } +} diff --git a/src/ULogService/Models/TopicInfo.php b/src/ULogService/Models/TopicInfo.php index 4ee27a81..500b9b1e 100644 --- a/src/ULogService/Models/TopicInfo.php +++ b/src/ULogService/Models/TopicInfo.php @@ -123,22 +123,22 @@ public function setIsReserved($isReserved) } /** - * TopicDesc: 主题描述 + * State: 日志主题状态 * * @return string|null */ - public function getTopicDesc() + public function getState() { - return $this->get("TopicDesc"); + return $this->get("State"); } /** - * TopicDesc: 主题描述 + * State: 日志主题状态 * - * @param string $topicDesc + * @param string $state */ - public function setTopicDesc($topicDesc) + public function setState($state) { - $this->set("TopicDesc", $topicDesc); + $this->set("State", $state); } } diff --git a/src/ULogService/ULogServiceClient.php b/src/ULogService/ULogServiceClient.php index d8594f5c..fc0bab6b 100644 --- a/src/ULogService/ULogServiceClient.php +++ b/src/ULogService/ULogServiceClient.php @@ -36,8 +36,12 @@ use UCloud\ULogService\Apis\DeleteULogServiceMachineGroupResponse; use UCloud\ULogService\Apis\DeleteULogServiceTopicRequest; use UCloud\ULogService\Apis\DeleteULogServiceTopicResponse; +use UCloud\ULogService\Apis\DescribeULogServiceLogSetRequest; +use UCloud\ULogService\Apis\DescribeULogServiceLogSetResponse; use UCloud\ULogService\Apis\DescribeULogServiceMachineGroupRequest; use UCloud\ULogService\Apis\DescribeULogServiceMachineGroupResponse; +use UCloud\ULogService\Apis\DescribeULogServiceTopicRequest; +use UCloud\ULogService\Apis\DescribeULogServiceTopicResponse; use UCloud\ULogService\Apis\GetULogServiceTopicFieldRequest; use UCloud\ULogService\Apis\GetULogServiceTopicFieldResponse; use UCloud\ULogService\Apis\ListULogServiceCollectConfRequest; @@ -341,6 +345,43 @@ public function deleteULogServiceTopic(DeleteULogServiceTopicRequest $request = return new DeleteULogServiceTopicResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeULogServiceLogSet - 获取日志集信息 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/describe_u_log_service_log_set + * + * 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) + * "LogSetId" => (string) 日志集ID + * ] + * + * Outputs: + * + * $outputs = [ + * "TotalCount" => (integer) 日志集总数 + * "LogSetInfo" => (object) 日志集信息[ + * "TopicCount" => (integer) 日志集下主题数量 + * "LogSetId" => (string) 日志集ID + * "LogSetRemark" => (string) 日志集备注 + * "LogSetName" => (string) 日志集名称 + * "CreateTime" => (integer) 创建时间 + * "UpdateTime" => (integer) 更新时间 + * ] + * ] + * + * @return DescribeULogServiceLogSetResponse + * @throws UCloudException + */ + public function describeULogServiceLogSet(DescribeULogServiceLogSetRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeULogServiceLogSetResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeULogServiceMachineGroup - 查询日志采集机器组 * @@ -384,6 +425,41 @@ public function describeULogServiceMachineGroup(DescribeULogServiceMachineGroupR return new DescribeULogServiceMachineGroupResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeULogServiceTopic - 获取ULogService主题详情 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/describe_u_log_service_topic + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "TopicId" => (string) 主题Id + * ] + * + * Outputs: + * + * $outputs = [ + * "Data" => (object) 主题详情[ + * "TopicName" => (string) 主题名称 + * "TopicId" => (string) 主题ID + * "TopicShardNum" => (integer) 分区数量,固定是2 + * "ReserveAge" => (integer) 保存时间 1~730 天 + * "IsReserved" => (integer) 是否保留:0 - NORMAL, 1 - RESERVED + * "State" => (string) 日志主题状态 + * ] + * ] + * + * @return DescribeULogServiceTopicResponse + * @throws UCloudException + */ + public function describeULogServiceTopic(DescribeULogServiceTopicRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeULogServiceTopicResponse($resp->toArray(), $resp->getRequestId()); + } + /** * GetULogServiceTopicField - 获取ULogService主题索引字段 * @@ -578,7 +654,7 @@ public function listULogServiceMachineGroup(ListULogServiceMachineGroupRequest $ * "TopicShardNum" => (integer) 分区数量,固定是2 * "ReserveAge" => (integer) 保存时间 1~730 天 * "IsReserved" => (integer) 是否保留:0 - NORMAL, 1 - RESERVED - * "TopicDesc" => (string) 主题描述 + * "State" => (string) 日志主题状态 * ] * ] * "TotalCount" => (integer) 主题总数