diff --git a/examples/cls/v20201016/cls_kv.proto b/examples/cls/v20201016/cls_kv.proto index 04ae7bf0a..25ba9e3d3 100644 --- a/examples/cls/v20201016/cls_kv.proto +++ b/examples/cls/v20201016/cls_kv.proto @@ -16,7 +16,7 @@ message Log message LogTag { required string key = 1; - required string value = 2; + required string value = 2; } message LogGroup @@ -25,7 +25,7 @@ message LogGroup optional string contextFlow= 2; optional string filename = 3; optional string source = 4; - repeated LogTag logTags = 5; + repeated LogTag logTags = 5; } message LogGroupList diff --git a/examples/cls/v20201016/createtopic.py b/examples/cls/v20201016/create_logset.py similarity index 94% rename from examples/cls/v20201016/createtopic.py rename to examples/cls/v20201016/create_logset.py index 6ec8860f5..e8426cda4 100644 --- a/examples/cls/v20201016/createtopic.py +++ b/examples/cls/v20201016/create_logset.py @@ -4,8 +4,8 @@ from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException # 导入对应产品模块的client models。 - -from tencentcloud.cls.v20201016 import cls_client, models +from tencentcloud.cls.v20201016 import cls_client +from tencentcloud.cls.v20201016 import models from tencentcloud.common.profile.client_profile import ClientProfile from tencentcloud.common.profile.http_profile import HttpProfile @@ -25,7 +25,6 @@ # 实例化一个client选项,可选的,没有特殊需求可以跳过。 clientProfile = ClientProfile() clientProfile.signMethod = "TC3-HMAC-SHA256" # 指定签名算法(默认为HmacSHA256) - clientProfile.unsignedPayload = True clientProfile.httpProfile = httpProfile client = cls_client.ClsClient(cred, "ap-guangzhou", clientProfile) diff --git a/examples/cls/v20201016/createlogset.py b/examples/cls/v20201016/create_topic.py similarity index 94% rename from examples/cls/v20201016/createlogset.py rename to examples/cls/v20201016/create_topic.py index 6ec8860f5..f628250ba 100644 --- a/examples/cls/v20201016/createlogset.py +++ b/examples/cls/v20201016/create_topic.py @@ -5,7 +5,8 @@ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException # 导入对应产品模块的client models。 -from tencentcloud.cls.v20201016 import cls_client, models +from tencentcloud.cls.v20201016 import cls_client +from tencentcloud.cls.v20201016 import models from tencentcloud.common.profile.client_profile import ClientProfile from tencentcloud.common.profile.http_profile import HttpProfile @@ -25,7 +26,6 @@ # 实例化一个client选项,可选的,没有特殊需求可以跳过。 clientProfile = ClientProfile() clientProfile.signMethod = "TC3-HMAC-SHA256" # 指定签名算法(默认为HmacSHA256) - clientProfile.unsignedPayload = True clientProfile.httpProfile = httpProfile client = cls_client.ClsClient(cred, "ap-guangzhou", clientProfile) diff --git a/examples/cls/v20201016/pb.py b/examples/cls/v20201016/pb.py index a976de441..d5782975e 100644 --- a/examples/cls/v20201016/pb.py +++ b/examples/cls/v20201016/pb.py @@ -1,13 +1,10 @@ # -*- coding:utf-8 -*- import sys - -import cls_kv_pb2 import time import json -import sys import random import string - +import cls_kv_pb2 ##pb协议客户自定义 def pb_gen(start_index, size): diff --git a/examples/cls/v20201016/uploadlog.py b/examples/cls/v20201016/uploadlog.py index bfdc6b11a..8fbddd669 100644 --- a/examples/cls/v20201016/uploadlog.py +++ b/examples/cls/v20201016/uploadlog.py @@ -27,7 +27,6 @@ # 实例化一个client选项,可选的,没有特殊需求可以跳过。 clientProfile = ClientProfile() clientProfile.signMethod = "TC3-HMAC-SHA256" # 指定签名算法(默认为HmacSHA256) - clientProfile.unsignedPayload = True clientProfile.httpProfile = httpProfile client = common_client.CommonClient("cls", '2020-10-16', cred, "ap-beijing", clientProfile)