Skip to content

Commit

Permalink
example支持cls产品: review意见修改
Browse files Browse the repository at this point in the history
  • Loading branch information
samlyang committed Jul 19, 2021
1 parent bd8a660 commit 2f2fa52
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions examples/cls/v20201016/cls_kv.proto
Expand Up @@ -16,7 +16,7 @@ message Log
message LogTag
{
required string key = 1;
required string value = 2;
required string value = 2;
}

message LogGroup
Expand All @@ -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
Expand Down
Expand Up @@ -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

Expand All @@ -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)
Expand Down
Expand Up @@ -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

Expand All @@ -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)
Expand Down
5 changes: 1 addition & 4 deletions 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):
Expand Down
1 change: 0 additions & 1 deletion examples/cls/v20201016/uploadlog.py
Expand Up @@ -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)
Expand Down

0 comments on commit 2f2fa52

Please sign in to comment.