From b98f30851e6908e63c767833f16a57b814e01510 Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Wed, 2 Sep 2026 10:04:20 +0000 Subject: [PATCH] sdk: rolling update for 0.3.45 --- VERSION | 2 +- src/UKMS/Apis/CreateAliasRequest.php | 4 +- src/UKMS/Apis/DisableKeyRotationRequest.php | 4 +- src/UKMS/Apis/EncryptRequest.php | 4 +- ...GenerateDataKeyWithoutPlaintextRequest.php | 4 +- src/UKMS/Apis/GetKeyRotationStatusRequest.php | 4 +- src/UKMS/Apis/GetPublicKeyRequest.php | 4 +- src/UKMS/Apis/RotateKeyOnDemandRequest.php | 4 +- src/UKMS/Apis/SignRequest.php | 4 +- src/UKMS/Apis/UpdateAliasRequest.php | 4 +- src/UKMS/Apis/UpdateKeyDescriptionRequest.php | 4 +- src/UKMS/Apis/VerifyRequest.php | 4 +- src/UKMS/UKMSClient.php | 22 +-- .../Apis/GetULogServiceTopicFieldRequest.php | 112 ++++++++++++++ .../Apis/GetULogServiceTopicFieldResponse.php | 57 +++++++ .../UpdateULogServiceTopicFieldRequest.php | 145 ++++++++++++++++++ .../UpdateULogServiceTopicFieldResponse.php | 26 ++++ src/ULogService/Models/TopicField.php | 84 ++++++++++ ...teULogServiceTopicFieldParamFieldInfos.php | 64 ++++++++ src/ULogService/ULogServiceClient.php | 73 +++++++++ 20 files changed, 595 insertions(+), 34 deletions(-) create mode 100644 src/ULogService/Apis/GetULogServiceTopicFieldRequest.php create mode 100644 src/ULogService/Apis/GetULogServiceTopicFieldResponse.php create mode 100644 src/ULogService/Apis/UpdateULogServiceTopicFieldRequest.php create mode 100644 src/ULogService/Apis/UpdateULogServiceTopicFieldResponse.php create mode 100644 src/ULogService/Models/TopicField.php create mode 100644 src/ULogService/Params/UpdateULogServiceTopicFieldParamFieldInfos.php diff --git a/VERSION b/VERSION index 88f5ef2..5d8b11a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.44 +0.3.45 diff --git a/src/UKMS/Apis/CreateAliasRequest.php b/src/UKMS/Apis/CreateAliasRequest.php index e265bc1..ce879da 100644 --- a/src/UKMS/Apis/CreateAliasRequest.php +++ b/src/UKMS/Apis/CreateAliasRequest.php @@ -91,7 +91,7 @@ public function setAliasName($aliasName) } /** - * KeyId: 密钥 ID、ARN 或别名。 + * KeyId: 密钥 ID 或别名。 * * @return string|null */ @@ -101,7 +101,7 @@ public function getKeyId() } /** - * KeyId: 密钥 ID、ARN 或别名。 + * KeyId: 密钥 ID 或别名。 * * @param string $keyId */ diff --git a/src/UKMS/Apis/DisableKeyRotationRequest.php b/src/UKMS/Apis/DisableKeyRotationRequest.php index 2af00f5..4a8f255 100644 --- a/src/UKMS/Apis/DisableKeyRotationRequest.php +++ b/src/UKMS/Apis/DisableKeyRotationRequest.php @@ -71,7 +71,7 @@ public function setProjectId($projectId) } /** - * KeyId: 密钥 ID、ARN 或别名。 + * KeyId: 密钥 ID或别名。 * * @return string|null */ @@ -81,7 +81,7 @@ public function getKeyId() } /** - * KeyId: 密钥 ID、ARN 或别名。 + * KeyId: 密钥 ID或别名。 * * @param string $keyId */ diff --git a/src/UKMS/Apis/EncryptRequest.php b/src/UKMS/Apis/EncryptRequest.php index 133a118..22948a3 100644 --- a/src/UKMS/Apis/EncryptRequest.php +++ b/src/UKMS/Apis/EncryptRequest.php @@ -71,7 +71,7 @@ public function setRegion($region) } /** - * KeyId: 密钥资源长 ID、ARN 或别名。 + * KeyId: 密钥资源长 ID 或别名。 * * @return string|null */ @@ -81,7 +81,7 @@ public function getKeyId() } /** - * KeyId: 密钥资源长 ID、ARN 或别名。 + * KeyId: 密钥资源长 ID 或别名。 * * @param string $keyId */ diff --git a/src/UKMS/Apis/GenerateDataKeyWithoutPlaintextRequest.php b/src/UKMS/Apis/GenerateDataKeyWithoutPlaintextRequest.php index 1dcdec1..66a31e3 100644 --- a/src/UKMS/Apis/GenerateDataKeyWithoutPlaintextRequest.php +++ b/src/UKMS/Apis/GenerateDataKeyWithoutPlaintextRequest.php @@ -70,7 +70,7 @@ public function setProjectId($projectId) } /** - * KeyId: 密钥资源长 ID、ARN 或别名。 + * KeyId: 密钥资源长 ID或别名。 * * @return string|null */ @@ -80,7 +80,7 @@ public function getKeyId() } /** - * KeyId: 密钥资源长 ID、ARN 或别名。 + * KeyId: 密钥资源长 ID或别名。 * * @param string $keyId */ diff --git a/src/UKMS/Apis/GetKeyRotationStatusRequest.php b/src/UKMS/Apis/GetKeyRotationStatusRequest.php index e29fce4..a3f491e 100644 --- a/src/UKMS/Apis/GetKeyRotationStatusRequest.php +++ b/src/UKMS/Apis/GetKeyRotationStatusRequest.php @@ -71,7 +71,7 @@ public function setProjectId($projectId) } /** - * KeyId: 密钥资源长 ID、ARN 或别名。 + * KeyId: 密钥资源长 ID 或别名。 * * @return string|null */ @@ -81,7 +81,7 @@ public function getKeyId() } /** - * KeyId: 密钥资源长 ID、ARN 或别名。 + * KeyId: 密钥资源长 ID 或别名。 * * @param string $keyId */ diff --git a/src/UKMS/Apis/GetPublicKeyRequest.php b/src/UKMS/Apis/GetPublicKeyRequest.php index 27b9aec..8828e4a 100644 --- a/src/UKMS/Apis/GetPublicKeyRequest.php +++ b/src/UKMS/Apis/GetPublicKeyRequest.php @@ -70,7 +70,7 @@ public function setProjectId($projectId) } /** - * KeyId: 密钥 ID、ARN 或别名。 + * KeyId: 密钥 ID 或 别名。 * * @return string|null */ @@ -80,7 +80,7 @@ public function getKeyId() } /** - * KeyId: 密钥 ID、ARN 或别名。 + * KeyId: 密钥 ID 或 别名。 * * @param string $keyId */ diff --git a/src/UKMS/Apis/RotateKeyOnDemandRequest.php b/src/UKMS/Apis/RotateKeyOnDemandRequest.php index 82397eb..ce2c821 100644 --- a/src/UKMS/Apis/RotateKeyOnDemandRequest.php +++ b/src/UKMS/Apis/RotateKeyOnDemandRequest.php @@ -71,7 +71,7 @@ public function setProjectId($projectId) } /** - * KeyId: 密钥 ID、ARN 或别名。 + * KeyId: 密钥 ID 或别名。 * * @return string|null */ @@ -81,7 +81,7 @@ public function getKeyId() } /** - * KeyId: 密钥 ID、ARN 或别名。 + * KeyId: 密钥 ID 或别名。 * * @param string $keyId */ diff --git a/src/UKMS/Apis/SignRequest.php b/src/UKMS/Apis/SignRequest.php index 870a1e0..76b4c59 100644 --- a/src/UKMS/Apis/SignRequest.php +++ b/src/UKMS/Apis/SignRequest.php @@ -72,7 +72,7 @@ public function setProjectId($projectId) } /** - * KeyId: 密钥资源长 ID、ARN 或别名。 + * KeyId: 密钥资源长 ID 或别名。 * * @return string|null */ @@ -82,7 +82,7 @@ public function getKeyId() } /** - * KeyId: 密钥资源长 ID、ARN 或别名。 + * KeyId: 密钥资源长 ID 或别名。 * * @param string $keyId */ diff --git a/src/UKMS/Apis/UpdateAliasRequest.php b/src/UKMS/Apis/UpdateAliasRequest.php index 82a2677..e7e178b 100644 --- a/src/UKMS/Apis/UpdateAliasRequest.php +++ b/src/UKMS/Apis/UpdateAliasRequest.php @@ -91,7 +91,7 @@ public function setAliasName($aliasName) } /** - * KeyId: 密钥 ID、ARN 或别名。 + * KeyId: 密钥 ID 或别名。 * * @return string|null */ @@ -101,7 +101,7 @@ public function getKeyId() } /** - * KeyId: 密钥 ID、ARN 或别名。 + * KeyId: 密钥 ID 或别名。 * * @param string $keyId */ diff --git a/src/UKMS/Apis/UpdateKeyDescriptionRequest.php b/src/UKMS/Apis/UpdateKeyDescriptionRequest.php index ec4864a..fb6b595 100644 --- a/src/UKMS/Apis/UpdateKeyDescriptionRequest.php +++ b/src/UKMS/Apis/UpdateKeyDescriptionRequest.php @@ -71,7 +71,7 @@ public function setProjectId($projectId) } /** - * KeyId: 密钥资源长 ID、ARN 或别名。 + * KeyId: 密钥资源长 ID或别名。 * * @return string|null */ @@ -81,7 +81,7 @@ public function getKeyId() } /** - * KeyId: 密钥资源长 ID、ARN 或别名。 + * KeyId: 密钥资源长 ID或别名。 * * @param string $keyId */ diff --git a/src/UKMS/Apis/VerifyRequest.php b/src/UKMS/Apis/VerifyRequest.php index 423f439..c9bdf39 100644 --- a/src/UKMS/Apis/VerifyRequest.php +++ b/src/UKMS/Apis/VerifyRequest.php @@ -73,7 +73,7 @@ public function setProjectId($projectId) } /** - * KeyId: 密钥 ID、ARN 或别名。 + * KeyId: 密钥 ID或别名。 * * @return string|null */ @@ -83,7 +83,7 @@ public function getKeyId() } /** - * KeyId: 密钥 ID、ARN 或别名。 + * KeyId: 密钥 ID或别名。 * * @param string $keyId */ diff --git a/src/UKMS/UKMSClient.php b/src/UKMS/UKMSClient.php index de685e4..56332da 100644 --- a/src/UKMS/UKMSClient.php +++ b/src/UKMS/UKMSClient.php @@ -120,7 +120,7 @@ public function cancelKeyDeletion(CancelKeyDeletionRequest $request = null) * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 * "AliasName" => (string) 密钥别名,格式为 alias/name。 - * "KeyId" => (string) 密钥 ID、ARN 或别名。 + * "KeyId" => (string) 密钥 ID 或别名。 * "ResourceId" => (string) UKMS 实例资源 ID。 * ] * @@ -317,7 +317,7 @@ public function disableKey(DisableKeyRequest $request = null) * $args = [ * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 - * "KeyId" => (string) 密钥 ID、ARN 或别名。 + * "KeyId" => (string) 密钥 ID或别名。 * "ResourceId" => (string) UKMS 实例资源 ID。 * ] * @@ -402,7 +402,7 @@ public function enableKeyRotation(EnableKeyRotationRequest $request = null) * $args = [ * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 * "Region" => (string) 地域。参见地域和可用区列表。 - * "KeyId" => (string) 密钥资源长 ID、ARN 或别名。 + * "KeyId" => (string) 密钥资源长 ID 或别名。 * "Plaintext" => (string) 待加密明文,Base64 编码。 * "EncryptionContext" => (string) 加密上下文,JSON Object。该参数内容会记录在日志中,请勿传入密码、密钥、令牌等敏感信息。 * "ResourceId" => (string) UKMS 实例资源 ID。 @@ -533,7 +533,7 @@ public function generateDataKeyPairWithoutPlaintext(GenerateDataKeyPairWithoutPl * $args = [ * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 - * "KeyId" => (string) 密钥资源长 ID、ARN 或别名。 + * "KeyId" => (string) 密钥资源长 ID或别名。 * "ResourceId" => (string) UKMS 实例资源 ID。 * "KeySpec" => (string) 数据密钥规格。可选值:AES_256、AES_128;默认 AES_256。与 NumberOfBytes 二选一,同时填写时 NumberOfBytes 优先。 * "NumberOfBytes" => (integer) 生成数据密钥的字节长度,取值范围 1~1024。与 KeySpec 二选一,同时填写时本字段优先。 @@ -625,7 +625,7 @@ public function generateRandom(GenerateRandomRequest $request = null) * $args = [ * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 - * "KeyId" => (string) 密钥资源长 ID、ARN 或别名。 + * "KeyId" => (string) 密钥资源长 ID 或别名。 * "ResourceId" => (string) UKMS 实例资源 ID。 * ] * @@ -659,7 +659,7 @@ public function getKeyRotationStatus(GetKeyRotationStatusRequest $request = null * $args = [ * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 - * "KeyId" => (string) 密钥 ID、ARN 或别名。 + * "KeyId" => (string) 密钥 ID 或 别名。 * "ResourceId" => (string) UKMS 实例资源 ID。 * ] * @@ -788,7 +788,7 @@ public function listKeys(ListKeysRequest $request = null) * $args = [ * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 - * "KeyId" => (string) 密钥 ID、ARN 或别名。 + * "KeyId" => (string) 密钥 ID 或别名。 * "ResourceId" => (string) UKMS 实例资源 ID。 * ] * @@ -846,7 +846,7 @@ public function scheduleKeyDeletion(ScheduleKeyDeletionRequest $request = null) * $args = [ * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 - * "KeyId" => (string) 密钥资源长 ID、ARN 或别名。 + * "KeyId" => (string) 密钥资源长 ID 或别名。 * "SigningMessage" => (string) 待签名消息,Base64 编码,最大 4096 字节。 * "SigningAlgorithm" => (string) 签名算法。可选值:RSASSA_PSS_SHA_256、RSASSA_PSS_SHA_384、RSASSA_PSS_SHA_512、RSASSA_PKCS1_V1_5_SHA_256、RSASSA_PKCS1_V1_5_SHA_384、RSASSA_PKCS1_V1_5_SHA_512、ECDSA_SHA_256、ECDSA_SHA_384、ECDSA_SHA_512;须与密钥 KeySpec 匹配。 * "ResourceId" => (string) UKMS 实例资源 ID。 @@ -881,7 +881,7 @@ public function sign(SignRequest $request = null) * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 * "AliasName" => (string) 密钥别名,格式为 alias/name。 - * "KeyId" => (string) 密钥 ID、ARN 或别名。 + * "KeyId" => (string) 密钥 ID 或别名。 * "ResourceId" => (string) UKMS 实例资源 ID。 * ] * @@ -909,7 +909,7 @@ public function updateAlias(UpdateAliasRequest $request = null) * $args = [ * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 - * "KeyId" => (string) 密钥资源长 ID、ARN 或别名。 + * "KeyId" => (string) 密钥资源长 ID或别名。 * "Description" => (string) 新的密钥描述,最多 8192 字符;空字符串表示清空描述。 * "ResourceId" => (string) UKMS 实例资源 ID。 * ] @@ -940,7 +940,7 @@ public function updateKeyDescription(UpdateKeyDescriptionRequest $request = null * $args = [ * "Region" => (string) 地域。参见地域和可用区列表。 * "ProjectId" => (string) 项目ID。不填写为默认项目,子账号必须填写。 - * "KeyId" => (string) 密钥 ID、ARN 或别名。 + * "KeyId" => (string) 密钥 ID或别名。 * "SigningMessage" => (string) 待验签的消息或消息摘要,Base64 编码。 * "SignatureResult" => (string) 待验证的签名,Base64 编码。 * "SigningAlgorithm" => (string) 签名时使用的算法。可选值:RSASSA_PSS_SHA_256、RSASSA_PSS_SHA_384、RSASSA_PSS_SHA_512、RSASSA_PKCS1_V1_5_SHA_256、RSASSA_PKCS1_V1_5_SHA_384、RSASSA_PKCS1_V1_5_SHA_512、ECDSA_SHA_256、ECDSA_SHA_384、ECDSA_SHA_512;须与密钥 KeySpec 匹配。 diff --git a/src/ULogService/Apis/GetULogServiceTopicFieldRequest.php b/src/ULogService/Apis/GetULogServiceTopicFieldRequest.php new file mode 100644 index 0000000..2863e31 --- /dev/null +++ b/src/ULogService/Apis/GetULogServiceTopicFieldRequest.php @@ -0,0 +1,112 @@ + "GetULogServiceTopicField"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $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); + } + + /** + * 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); + } + + /** + * 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/GetULogServiceTopicFieldResponse.php b/src/ULogService/Apis/GetULogServiceTopicFieldResponse.php new file mode 100644 index 0000000..9c9dfd2 --- /dev/null +++ b/src/ULogService/Apis/GetULogServiceTopicFieldResponse.php @@ -0,0 +1,57 @@ +get("Data"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new TopicField($item)); + } + return $result; + } + + /** + * Data: 索引字段数据,是一个数组 + * + * @param TopicField[] $data + */ + public function setData(array $data) + { + $result = []; + foreach ($data as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/ULogService/Apis/UpdateULogServiceTopicFieldRequest.php b/src/ULogService/Apis/UpdateULogServiceTopicFieldRequest.php new file mode 100644 index 0000000..0c0c6d9 --- /dev/null +++ b/src/ULogService/Apis/UpdateULogServiceTopicFieldRequest.php @@ -0,0 +1,145 @@ + "UpdateULogServiceTopicField"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $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); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * FieldInfos: + * + * @return UpdateULogServiceTopicFieldParamFieldInfos[]|null + */ + public function getFieldInfos() + { + $items = $this->get("FieldInfos"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UpdateULogServiceTopicFieldParamFieldInfos($item)); + } + return $result; + } + + /** + * FieldInfos: + * + * @param UpdateULogServiceTopicFieldParamFieldInfos[] $fieldInfos + */ + public function setFieldInfos(array $fieldInfos) + { + $result = []; + foreach ($fieldInfos as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/ULogService/Apis/UpdateULogServiceTopicFieldResponse.php b/src/ULogService/Apis/UpdateULogServiceTopicFieldResponse.php new file mode 100644 index 0000000..635814f --- /dev/null +++ b/src/ULogService/Apis/UpdateULogServiceTopicFieldResponse.php @@ -0,0 +1,26 @@ +get("FieldName"); + } + + /** + * FieldName: 索引名称 + * + * @param string $fieldName + */ + public function setFieldName($fieldName) + { + $this->set("FieldName", $fieldName); + } + + /** + * FieldType: 索引类型,可取的值有: long, double, text + * + * @return string|null + */ + public function getFieldType() + { + return $this->get("FieldType"); + } + + /** + * FieldType: 索引类型,可取的值有: long, double, text + * + * @param string $fieldType + */ + public function setFieldType($fieldType) + { + $this->set("FieldType", $fieldType); + } + + /** + * IsReserved: 是否保留字段,true表示保留字段,false表示非保留字段 + * + * @return boolean|null + */ + public function getIsReserved() + { + return $this->get("IsReserved"); + } + + /** + * IsReserved: 是否保留字段,true表示保留字段,false表示非保留字段 + * + * @param boolean $isReserved + */ + public function setIsReserved($isReserved) + { + $this->set("IsReserved", $isReserved); + } +} diff --git a/src/ULogService/Params/UpdateULogServiceTopicFieldParamFieldInfos.php b/src/ULogService/Params/UpdateULogServiceTopicFieldParamFieldInfos.php new file mode 100644 index 0000000..6f5a526 --- /dev/null +++ b/src/ULogService/Params/UpdateULogServiceTopicFieldParamFieldInfos.php @@ -0,0 +1,64 @@ +get("FieldName"); + } + + /** + * FieldName: 字段名称支持字母、横线(-)、斜杠(/)、特殊符号(@)、数字、下划线(_)和点(.),且不能以下划线开头,长度不超过255个字符 + * + * @param string $fieldName + */ + public function setFieldName($fieldName) + { + $this->set("FieldName", $fieldName); + } + + /** + * FieldType: 主题字段类型(text、long、double) + * + * @return string|null + */ + public function getFieldType() + { + return $this->get("FieldType"); + } + + /** + * FieldType: 主题字段类型(text、long、double) + * + * @param string $fieldType + */ + public function setFieldType($fieldType) + { + $this->set("FieldType", $fieldType); + } +} diff --git a/src/ULogService/ULogServiceClient.php b/src/ULogService/ULogServiceClient.php index 022a355..dc48c40 100644 --- a/src/ULogService/ULogServiceClient.php +++ b/src/ULogService/ULogServiceClient.php @@ -38,6 +38,8 @@ use UCloud\ULogService\Apis\DeleteULogServiceTopicResponse; use UCloud\ULogService\Apis\DescribeULogServiceMachineGroupRequest; use UCloud\ULogService\Apis\DescribeULogServiceMachineGroupResponse; +use UCloud\ULogService\Apis\GetULogServiceTopicFieldRequest; +use UCloud\ULogService\Apis\GetULogServiceTopicFieldResponse; use UCloud\ULogService\Apis\ListULogServiceCollectConfRequest; use UCloud\ULogService\Apis\ListULogServiceCollectConfResponse; use UCloud\ULogService\Apis\ListULogServiceLogSetRequest; @@ -52,6 +54,8 @@ use UCloud\ULogService\Apis\UpdateULogServiceCollectConfResponse; use UCloud\ULogService\Apis\UpdateULogServiceMachineGroupRequest; use UCloud\ULogService\Apis\UpdateULogServiceMachineGroupResponse; +use UCloud\ULogService\Apis\UpdateULogServiceTopicFieldRequest; +use UCloud\ULogService\Apis\UpdateULogServiceTopicFieldResponse; /** * This client is used to call actions of **ULogService** service @@ -380,6 +384,41 @@ public function describeULogServiceMachineGroup(DescribeULogServiceMachineGroupR return new DescribeULogServiceMachineGroupResponse($resp->toArray(), $resp->getRequestId()); } + /** + * GetULogServiceTopicField - 获取ULogService主题索引字段 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/get_u_log_service_topic_field + * + * 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) + * "TopicId" => (string) 主题Id + * ] + * + * Outputs: + * + * $outputs = [ + * "Data" => (array) 索引字段数据,是一个数组[ + * [ + * "FieldName" => (string) 索引名称 + * "FieldType" => (string) 索引类型,可取的值有: long, double, text + * "IsReserved" => (boolean) 是否保留字段,true表示保留字段,false表示非保留字段 + * ] + * ] + * ] + * + * @return GetULogServiceTopicFieldResponse + * @throws UCloudException + */ + public function getULogServiceTopicField(GetULogServiceTopicFieldRequest $request = null) + { + $resp = $this->invoke($request); + return new GetULogServiceTopicFieldResponse($resp->toArray(), $resp->getRequestId()); + } + /** * ListULogServiceCollectConf - 查询日志主题采集配置列表 * @@ -684,4 +723,38 @@ public function updateULogServiceMachineGroup(UpdateULogServiceMachineGroupReque $resp = $this->invoke($request); return new UpdateULogServiceMachineGroupResponse($resp->toArray(), $resp->getRequestId()); } + + /** + * UpdateULogServiceTopicField - 更新ULogService主题索引字段 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_topic_field + * + * 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) + * "TopicId" => (string) 主题Id + * "FieldInfos" => (array) [ + * [ + * "FieldName" => (string) 字段名称支持字母、横线(-)、斜杠(/)、特殊符号(@)、数字、下划线(_)和点(.),且不能以下划线开头,长度不超过255个字符 + * "FieldType" => (string) 主题字段类型(text、long、double) + * ] + * ] + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateULogServiceTopicFieldResponse + * @throws UCloudException + */ + public function updateULogServiceTopicField(UpdateULogServiceTopicFieldRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateULogServiceTopicFieldResponse($resp->toArray(), $resp->getRequestId()); + } }