tencentcloud-sdk-python 3.0.1186__py2.py3-none-any.whl → 3.0.1187__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tencentcloud/__init__.py +1 -1
- tencentcloud/aiart/v20221229/aiart_client.py +25 -0
- tencentcloud/aiart/v20221229/models.py +138 -0
- tencentcloud/asr/v20190614/models.py +12 -12
- tencentcloud/clb/v20180317/clb_client.py +13 -16
- tencentcloud/dnspod/v20210323/models.py +12 -0
- tencentcloud/lighthouse/v20200324/models.py +1 -1
- tencentcloud/lke/v20231130/lke_client.py +23 -0
- tencentcloud/lke/v20231130/models.py +240 -1
- tencentcloud/mna/v20210119/mna_client.py +207 -0
- tencentcloud/mna/v20210119/models.py +1184 -115
- tencentcloud/mps/v20190612/models.py +26 -0
- tencentcloud/tsf/v20180326/errorcodes.py +9 -0
- tencentcloud/tsf/v20180326/models.py +222 -0
- tencentcloud/tsf/v20180326/tsf_client.py +46 -0
- tencentcloud/vpc/v20170312/models.py +1 -1
- {tencentcloud_sdk_python-3.0.1186.dist-info → tencentcloud_sdk_python-3.0.1187.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1186.dist-info → tencentcloud_sdk_python-3.0.1187.dist-info}/RECORD +21 -21
- {tencentcloud_sdk_python-3.0.1186.dist-info → tencentcloud_sdk_python-3.0.1187.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1186.dist-info → tencentcloud_sdk_python-3.0.1187.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1186.dist-info → tencentcloud_sdk_python-3.0.1187.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -26,6 +26,31 @@ class AiartClient(AbstractClient):
|
|
26
26
|
_service = 'aiart'
|
27
27
|
|
28
28
|
|
29
|
+
def ChangeClothes(self, request):
|
30
|
+
"""上传正面全身模特照和服装平铺图,生成模特换装后的图片。
|
31
|
+
生成的换装图片分辨率和模特照分辨率一致。
|
32
|
+
模特换装默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
33
|
+
|
34
|
+
:param request: Request instance for ChangeClothes.
|
35
|
+
:type request: :class:`tencentcloud.aiart.v20221229.models.ChangeClothesRequest`
|
36
|
+
:rtype: :class:`tencentcloud.aiart.v20221229.models.ChangeClothesResponse`
|
37
|
+
|
38
|
+
"""
|
39
|
+
try:
|
40
|
+
params = request._serialize()
|
41
|
+
headers = request.headers
|
42
|
+
body = self.call("ChangeClothes", params, headers=headers)
|
43
|
+
response = json.loads(body)
|
44
|
+
model = models.ChangeClothesResponse()
|
45
|
+
model._deserialize(response["Response"])
|
46
|
+
return model
|
47
|
+
except Exception as e:
|
48
|
+
if isinstance(e, TencentCloudSDKException):
|
49
|
+
raise
|
50
|
+
else:
|
51
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
52
|
+
|
53
|
+
|
29
54
|
def GenerateAvatar(self, request):
|
30
55
|
"""百变头像接口将根据输入的人像照片,生成风格百变的头像。
|
31
56
|
百变头像默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
@@ -18,6 +18,144 @@ import warnings
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
19
19
|
|
20
20
|
|
21
|
+
class ChangeClothesRequest(AbstractModel):
|
22
|
+
"""ChangeClothes请求参数结构体
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _ModelUrl: 模特图片 Url。
|
29
|
+
图片限制:单边分辨率小于3000,且大于512,转成 Base64 字符串后小于 8MB。
|
30
|
+
输入要求:
|
31
|
+
1、建议上传正面模特图片,至少完整露出应穿着输入指定服装的身体部位(全身、上半身或下半身),无大角度身体偏转或异常姿势。
|
32
|
+
2、建议上传3:4比例的图片,生成效果更佳。
|
33
|
+
3、建议模特图片中的原始服装和更换后的服装类别一致,或原始服装在身体上的覆盖范围小于等于更换后的服装(例如需要给模特换上短裤,则原始模特图片中也建议穿短裤,不建议穿长裤),否则会影响人像生成效果。
|
34
|
+
|
35
|
+
:type ModelUrl: str
|
36
|
+
:param _ClothesUrl: 服装图片 Url。
|
37
|
+
图片限制:单边分辨率小于3000,大于512,转成 Base64 字符串后小于 8MB。
|
38
|
+
输入要求:
|
39
|
+
建议上传服装完整的正面平铺图片,仅包含1个服装主体,服装类型支持上衣、下装、连衣裙,三选一。算法将根据输入的图片,结合服装图片给模特换装。
|
40
|
+
:type ClothesUrl: str
|
41
|
+
:param _ClothesType: 服装类型,需要和服装图片保持一致。
|
42
|
+
取值:
|
43
|
+
Upper-body:上衣
|
44
|
+
Lower-body:下装
|
45
|
+
Dress:连衣裙
|
46
|
+
:type ClothesType: str
|
47
|
+
:param _LogoAdd: 为生成结果图添加标识的开关,默认为1。
|
48
|
+
1:添加标识。
|
49
|
+
0:不添加标识。
|
50
|
+
其他数值:默认按1处理。
|
51
|
+
建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
|
52
|
+
:type LogoAdd: int
|
53
|
+
:param _RspImgType: 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
|
54
|
+
生成图分辨率较大时建议选择 url,使用 base64 可能因图片过大导致返回失败。
|
55
|
+
:type RspImgType: str
|
56
|
+
"""
|
57
|
+
self._ModelUrl = None
|
58
|
+
self._ClothesUrl = None
|
59
|
+
self._ClothesType = None
|
60
|
+
self._LogoAdd = None
|
61
|
+
self._RspImgType = None
|
62
|
+
|
63
|
+
@property
|
64
|
+
def ModelUrl(self):
|
65
|
+
return self._ModelUrl
|
66
|
+
|
67
|
+
@ModelUrl.setter
|
68
|
+
def ModelUrl(self, ModelUrl):
|
69
|
+
self._ModelUrl = ModelUrl
|
70
|
+
|
71
|
+
@property
|
72
|
+
def ClothesUrl(self):
|
73
|
+
return self._ClothesUrl
|
74
|
+
|
75
|
+
@ClothesUrl.setter
|
76
|
+
def ClothesUrl(self, ClothesUrl):
|
77
|
+
self._ClothesUrl = ClothesUrl
|
78
|
+
|
79
|
+
@property
|
80
|
+
def ClothesType(self):
|
81
|
+
return self._ClothesType
|
82
|
+
|
83
|
+
@ClothesType.setter
|
84
|
+
def ClothesType(self, ClothesType):
|
85
|
+
self._ClothesType = ClothesType
|
86
|
+
|
87
|
+
@property
|
88
|
+
def LogoAdd(self):
|
89
|
+
return self._LogoAdd
|
90
|
+
|
91
|
+
@LogoAdd.setter
|
92
|
+
def LogoAdd(self, LogoAdd):
|
93
|
+
self._LogoAdd = LogoAdd
|
94
|
+
|
95
|
+
@property
|
96
|
+
def RspImgType(self):
|
97
|
+
return self._RspImgType
|
98
|
+
|
99
|
+
@RspImgType.setter
|
100
|
+
def RspImgType(self, RspImgType):
|
101
|
+
self._RspImgType = RspImgType
|
102
|
+
|
103
|
+
|
104
|
+
def _deserialize(self, params):
|
105
|
+
self._ModelUrl = params.get("ModelUrl")
|
106
|
+
self._ClothesUrl = params.get("ClothesUrl")
|
107
|
+
self._ClothesType = params.get("ClothesType")
|
108
|
+
self._LogoAdd = params.get("LogoAdd")
|
109
|
+
self._RspImgType = params.get("RspImgType")
|
110
|
+
memeber_set = set(params.keys())
|
111
|
+
for name, value in vars(self).items():
|
112
|
+
property_name = name[1:]
|
113
|
+
if property_name in memeber_set:
|
114
|
+
memeber_set.remove(property_name)
|
115
|
+
if len(memeber_set) > 0:
|
116
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
class ChangeClothesResponse(AbstractModel):
|
121
|
+
"""ChangeClothes返回参数结构体
|
122
|
+
|
123
|
+
"""
|
124
|
+
|
125
|
+
def __init__(self):
|
126
|
+
r"""
|
127
|
+
:param _ResultImage: 根据入参 RspImgType 填入不同,返回不同的内容。
|
128
|
+
如果传入 base64 则返回生成图 Base64 编码。
|
129
|
+
如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
|
130
|
+
:type ResultImage: str
|
131
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
132
|
+
:type RequestId: str
|
133
|
+
"""
|
134
|
+
self._ResultImage = None
|
135
|
+
self._RequestId = None
|
136
|
+
|
137
|
+
@property
|
138
|
+
def ResultImage(self):
|
139
|
+
return self._ResultImage
|
140
|
+
|
141
|
+
@ResultImage.setter
|
142
|
+
def ResultImage(self, ResultImage):
|
143
|
+
self._ResultImage = ResultImage
|
144
|
+
|
145
|
+
@property
|
146
|
+
def RequestId(self):
|
147
|
+
return self._RequestId
|
148
|
+
|
149
|
+
@RequestId.setter
|
150
|
+
def RequestId(self, RequestId):
|
151
|
+
self._RequestId = RequestId
|
152
|
+
|
153
|
+
|
154
|
+
def _deserialize(self, params):
|
155
|
+
self._ResultImage = params.get("ResultImage")
|
156
|
+
self._RequestId = params.get("RequestId")
|
157
|
+
|
158
|
+
|
21
159
|
class Filter(AbstractModel):
|
22
160
|
"""训练图像质量过滤开关配置。
|
23
161
|
支持开启或关闭对训练图像分辨率下限、脸部区域大小、脸部遮挡、脸部角度的过滤,默认开启以上过滤。
|
@@ -4361,15 +4361,15 @@ class VoicePrintVerifyRequest(AbstractModel):
|
|
4361
4361
|
:type VoiceFormat: int
|
4362
4362
|
:param _SampleRate: 音频采样率,目前支持16000,单位:Hz,必填
|
4363
4363
|
:type SampleRate: int
|
4364
|
-
:param _VoicePrintId: 说话人id, 说话人唯一标识
|
4365
|
-
:type VoicePrintId: str
|
4366
4364
|
:param _Data: 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M
|
4367
4365
|
:type Data: str
|
4366
|
+
:param _VoicePrintId: 说话人id, 说话人唯一标识
|
4367
|
+
:type VoicePrintId: str
|
4368
4368
|
"""
|
4369
4369
|
self._VoiceFormat = None
|
4370
4370
|
self._SampleRate = None
|
4371
|
-
self._VoicePrintId = None
|
4372
4371
|
self._Data = None
|
4372
|
+
self._VoicePrintId = None
|
4373
4373
|
|
4374
4374
|
@property
|
4375
4375
|
def VoiceFormat(self):
|
@@ -4387,14 +4387,6 @@ class VoicePrintVerifyRequest(AbstractModel):
|
|
4387
4387
|
def SampleRate(self, SampleRate):
|
4388
4388
|
self._SampleRate = SampleRate
|
4389
4389
|
|
4390
|
-
@property
|
4391
|
-
def VoicePrintId(self):
|
4392
|
-
return self._VoicePrintId
|
4393
|
-
|
4394
|
-
@VoicePrintId.setter
|
4395
|
-
def VoicePrintId(self, VoicePrintId):
|
4396
|
-
self._VoicePrintId = VoicePrintId
|
4397
|
-
|
4398
4390
|
@property
|
4399
4391
|
def Data(self):
|
4400
4392
|
return self._Data
|
@@ -4403,12 +4395,20 @@ class VoicePrintVerifyRequest(AbstractModel):
|
|
4403
4395
|
def Data(self, Data):
|
4404
4396
|
self._Data = Data
|
4405
4397
|
|
4398
|
+
@property
|
4399
|
+
def VoicePrintId(self):
|
4400
|
+
return self._VoicePrintId
|
4401
|
+
|
4402
|
+
@VoicePrintId.setter
|
4403
|
+
def VoicePrintId(self, VoicePrintId):
|
4404
|
+
self._VoicePrintId = VoicePrintId
|
4405
|
+
|
4406
4406
|
|
4407
4407
|
def _deserialize(self, params):
|
4408
4408
|
self._VoiceFormat = params.get("VoiceFormat")
|
4409
4409
|
self._SampleRate = params.get("SampleRate")
|
4410
|
-
self._VoicePrintId = params.get("VoicePrintId")
|
4411
4410
|
self._Data = params.get("Data")
|
4411
|
+
self._VoicePrintId = params.get("VoicePrintId")
|
4412
4412
|
memeber_set = set(params.keys())
|
4413
4413
|
for name, value in vars(self).items():
|
4414
4414
|
property_name = name[1:]
|
@@ -171,22 +171,19 @@ class ClbClient(AbstractClient):
|
|
171
171
|
|
172
172
|
注:查询实例创建状态可以根据返回值中的requestId访问[DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683)接口
|
173
173
|
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
当实例的监听器个数超过50个时,不支持克隆。
|
188
|
-
后端服务维度限制
|
189
|
-
不支持克隆绑定的后端服务类型为目标组和 SCF 云函数的实例。
|
174
|
+
限制说明
|
175
|
+
实例属性维度限制:
|
176
|
+
- 支持克隆网络计费模式为按量计费与包年包月的实例,包年包月实例克隆后的新实例网络计费模式会转换为按小时带宽计费,其带宽、规格与原实例设置保持一致。
|
177
|
+
- 不支持克隆未关联实例计费项的 CLB。
|
178
|
+
- 不支持克隆传统型负载均衡实例和高防 CLB。
|
179
|
+
- 不支持克隆基础网络类型的实例。
|
180
|
+
- 不支持克隆 Anycast 类型的实例。
|
181
|
+
- 不支持克隆 IPv6 NAT64 版本的实例。
|
182
|
+
- 不支持克隆被封禁或冻结的实例。
|
183
|
+
- 执行克隆操作前,请确保实例上没有使用已过期证书,否则会导致克隆失败。
|
184
|
+
配额维度限制:
|
185
|
+
- 当实例的监听器个数超过 50 个时,不支持克隆。
|
186
|
+
- 当共享型实例的公网带宽上限超过 2G 时,不支持克隆。
|
190
187
|
|
191
188
|
通过接口调用:
|
192
189
|
BGP带宽包必须传带宽包id
|
@@ -2087,6 +2087,8 @@ class CreateRecordRequest(AbstractModel):
|
|
2087
2087
|
:type Remark: str
|
2088
2088
|
:param _DnssecConflictMode: 开启DNSSEC时,强制添加CNAME/URL记录
|
2089
2089
|
:type DnssecConflictMode: str
|
2090
|
+
:param _GroupId: 记录分组 Id。可以通过接口 DescribeRecordGroupList 接口 GroupId 字段获取。
|
2091
|
+
:type GroupId: int
|
2090
2092
|
"""
|
2091
2093
|
self._Domain = None
|
2092
2094
|
self._RecordType = None
|
@@ -2101,6 +2103,7 @@ class CreateRecordRequest(AbstractModel):
|
|
2101
2103
|
self._Status = None
|
2102
2104
|
self._Remark = None
|
2103
2105
|
self._DnssecConflictMode = None
|
2106
|
+
self._GroupId = None
|
2104
2107
|
|
2105
2108
|
@property
|
2106
2109
|
def Domain(self):
|
@@ -2206,6 +2209,14 @@ class CreateRecordRequest(AbstractModel):
|
|
2206
2209
|
def DnssecConflictMode(self, DnssecConflictMode):
|
2207
2210
|
self._DnssecConflictMode = DnssecConflictMode
|
2208
2211
|
|
2212
|
+
@property
|
2213
|
+
def GroupId(self):
|
2214
|
+
return self._GroupId
|
2215
|
+
|
2216
|
+
@GroupId.setter
|
2217
|
+
def GroupId(self, GroupId):
|
2218
|
+
self._GroupId = GroupId
|
2219
|
+
|
2209
2220
|
|
2210
2221
|
def _deserialize(self, params):
|
2211
2222
|
self._Domain = params.get("Domain")
|
@@ -2221,6 +2232,7 @@ class CreateRecordRequest(AbstractModel):
|
|
2221
2232
|
self._Status = params.get("Status")
|
2222
2233
|
self._Remark = params.get("Remark")
|
2223
2234
|
self._DnssecConflictMode = params.get("DnssecConflictMode")
|
2235
|
+
self._GroupId = params.get("GroupId")
|
2224
2236
|
memeber_set = set(params.keys())
|
2225
2237
|
for name, value in vars(self).items():
|
2226
2238
|
property_name = name[1:]
|
@@ -3231,7 +3231,7 @@ class DescribeBlueprintInstancesRequest(AbstractModel):
|
|
3231
3231
|
|
3232
3232
|
def __init__(self):
|
3233
3233
|
r"""
|
3234
|
-
:param _InstanceIds: 实例 ID
|
3234
|
+
:param _InstanceIds: 实例 ID 列表。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。 当前最多支持1个。
|
3235
3235
|
:type InstanceIds: list of str
|
3236
3236
|
"""
|
3237
3237
|
self._InstanceIds = None
|
@@ -627,6 +627,29 @@ class LkeClient(AbstractClient):
|
|
627
627
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
628
628
|
|
629
629
|
|
630
|
+
def DescribeSegments(self, request):
|
631
|
+
"""获取片段详情
|
632
|
+
|
633
|
+
:param request: Request instance for DescribeSegments.
|
634
|
+
:type request: :class:`tencentcloud.lke.v20231130.models.DescribeSegmentsRequest`
|
635
|
+
:rtype: :class:`tencentcloud.lke.v20231130.models.DescribeSegmentsResponse`
|
636
|
+
|
637
|
+
"""
|
638
|
+
try:
|
639
|
+
params = request._serialize()
|
640
|
+
headers = request.headers
|
641
|
+
body = self.call("DescribeSegments", params, headers=headers)
|
642
|
+
response = json.loads(body)
|
643
|
+
model = models.DescribeSegmentsResponse()
|
644
|
+
model._deserialize(response["Response"])
|
645
|
+
return model
|
646
|
+
except Exception as e:
|
647
|
+
if isinstance(e, TencentCloudSDKException):
|
648
|
+
raise
|
649
|
+
else:
|
650
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
651
|
+
|
652
|
+
|
630
653
|
def DescribeStorageCredential(self, request):
|
631
654
|
"""获取文件上传临时密钥
|
632
655
|
|
@@ -4496,6 +4496,94 @@ class DescribeRobotBizIDByAppKeyResponse(AbstractModel):
|
|
4496
4496
|
self._RequestId = params.get("RequestId")
|
4497
4497
|
|
4498
4498
|
|
4499
|
+
class DescribeSegmentsRequest(AbstractModel):
|
4500
|
+
"""DescribeSegments请求参数结构体
|
4501
|
+
|
4502
|
+
"""
|
4503
|
+
|
4504
|
+
def __init__(self):
|
4505
|
+
r"""
|
4506
|
+
:param _BotBizId: 应用ID
|
4507
|
+
:type BotBizId: str
|
4508
|
+
:param _SegBizId: 文档ID
|
4509
|
+
:type SegBizId: list of str
|
4510
|
+
"""
|
4511
|
+
self._BotBizId = None
|
4512
|
+
self._SegBizId = None
|
4513
|
+
|
4514
|
+
@property
|
4515
|
+
def BotBizId(self):
|
4516
|
+
return self._BotBizId
|
4517
|
+
|
4518
|
+
@BotBizId.setter
|
4519
|
+
def BotBizId(self, BotBizId):
|
4520
|
+
self._BotBizId = BotBizId
|
4521
|
+
|
4522
|
+
@property
|
4523
|
+
def SegBizId(self):
|
4524
|
+
return self._SegBizId
|
4525
|
+
|
4526
|
+
@SegBizId.setter
|
4527
|
+
def SegBizId(self, SegBizId):
|
4528
|
+
self._SegBizId = SegBizId
|
4529
|
+
|
4530
|
+
|
4531
|
+
def _deserialize(self, params):
|
4532
|
+
self._BotBizId = params.get("BotBizId")
|
4533
|
+
self._SegBizId = params.get("SegBizId")
|
4534
|
+
memeber_set = set(params.keys())
|
4535
|
+
for name, value in vars(self).items():
|
4536
|
+
property_name = name[1:]
|
4537
|
+
if property_name in memeber_set:
|
4538
|
+
memeber_set.remove(property_name)
|
4539
|
+
if len(memeber_set) > 0:
|
4540
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4541
|
+
|
4542
|
+
|
4543
|
+
|
4544
|
+
class DescribeSegmentsResponse(AbstractModel):
|
4545
|
+
"""DescribeSegments返回参数结构体
|
4546
|
+
|
4547
|
+
"""
|
4548
|
+
|
4549
|
+
def __init__(self):
|
4550
|
+
r"""
|
4551
|
+
:param _List: 片段列表
|
4552
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4553
|
+
:type List: list of DocSegment
|
4554
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4555
|
+
:type RequestId: str
|
4556
|
+
"""
|
4557
|
+
self._List = None
|
4558
|
+
self._RequestId = None
|
4559
|
+
|
4560
|
+
@property
|
4561
|
+
def List(self):
|
4562
|
+
return self._List
|
4563
|
+
|
4564
|
+
@List.setter
|
4565
|
+
def List(self, List):
|
4566
|
+
self._List = List
|
4567
|
+
|
4568
|
+
@property
|
4569
|
+
def RequestId(self):
|
4570
|
+
return self._RequestId
|
4571
|
+
|
4572
|
+
@RequestId.setter
|
4573
|
+
def RequestId(self, RequestId):
|
4574
|
+
self._RequestId = RequestId
|
4575
|
+
|
4576
|
+
|
4577
|
+
def _deserialize(self, params):
|
4578
|
+
if params.get("List") is not None:
|
4579
|
+
self._List = []
|
4580
|
+
for item in params.get("List"):
|
4581
|
+
obj = DocSegment()
|
4582
|
+
obj._deserialize(item)
|
4583
|
+
self._List.append(obj)
|
4584
|
+
self._RequestId = params.get("RequestId")
|
4585
|
+
|
4586
|
+
|
4499
4587
|
class DescribeStorageCredentialRequest(AbstractModel):
|
4500
4588
|
"""DescribeStorageCredential请求参数结构体
|
4501
4589
|
|
@@ -4824,6 +4912,157 @@ class DescribeUnsatisfiedReplyContextResponse(AbstractModel):
|
|
4824
4912
|
self._RequestId = params.get("RequestId")
|
4825
4913
|
|
4826
4914
|
|
4915
|
+
class DocSegment(AbstractModel):
|
4916
|
+
"""文档片段
|
4917
|
+
|
4918
|
+
"""
|
4919
|
+
|
4920
|
+
def __init__(self):
|
4921
|
+
r"""
|
4922
|
+
:param _Id: 片段ID
|
4923
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4924
|
+
:type Id: str
|
4925
|
+
:param _BusinessId: 业务ID
|
4926
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4927
|
+
:type BusinessId: str
|
4928
|
+
:param _FileType: 文件类型(markdown,word,txt)
|
4929
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4930
|
+
:type FileType: str
|
4931
|
+
:param _SegmentType: 文档切片类型(segment-文档切片 table-表格)
|
4932
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4933
|
+
:type SegmentType: str
|
4934
|
+
:param _Title: 标题
|
4935
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4936
|
+
:type Title: str
|
4937
|
+
:param _PageContent: 段落内容
|
4938
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4939
|
+
:type PageContent: str
|
4940
|
+
:param _OrgData: 段落原文
|
4941
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4942
|
+
:type OrgData: str
|
4943
|
+
:param _DocId: 文章ID
|
4944
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4945
|
+
:type DocId: str
|
4946
|
+
:param _DocBizId: 文档业务ID
|
4947
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4948
|
+
:type DocBizId: str
|
4949
|
+
:param _DocUrl: 文档链接
|
4950
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4951
|
+
:type DocUrl: str
|
4952
|
+
"""
|
4953
|
+
self._Id = None
|
4954
|
+
self._BusinessId = None
|
4955
|
+
self._FileType = None
|
4956
|
+
self._SegmentType = None
|
4957
|
+
self._Title = None
|
4958
|
+
self._PageContent = None
|
4959
|
+
self._OrgData = None
|
4960
|
+
self._DocId = None
|
4961
|
+
self._DocBizId = None
|
4962
|
+
self._DocUrl = None
|
4963
|
+
|
4964
|
+
@property
|
4965
|
+
def Id(self):
|
4966
|
+
return self._Id
|
4967
|
+
|
4968
|
+
@Id.setter
|
4969
|
+
def Id(self, Id):
|
4970
|
+
self._Id = Id
|
4971
|
+
|
4972
|
+
@property
|
4973
|
+
def BusinessId(self):
|
4974
|
+
return self._BusinessId
|
4975
|
+
|
4976
|
+
@BusinessId.setter
|
4977
|
+
def BusinessId(self, BusinessId):
|
4978
|
+
self._BusinessId = BusinessId
|
4979
|
+
|
4980
|
+
@property
|
4981
|
+
def FileType(self):
|
4982
|
+
return self._FileType
|
4983
|
+
|
4984
|
+
@FileType.setter
|
4985
|
+
def FileType(self, FileType):
|
4986
|
+
self._FileType = FileType
|
4987
|
+
|
4988
|
+
@property
|
4989
|
+
def SegmentType(self):
|
4990
|
+
return self._SegmentType
|
4991
|
+
|
4992
|
+
@SegmentType.setter
|
4993
|
+
def SegmentType(self, SegmentType):
|
4994
|
+
self._SegmentType = SegmentType
|
4995
|
+
|
4996
|
+
@property
|
4997
|
+
def Title(self):
|
4998
|
+
return self._Title
|
4999
|
+
|
5000
|
+
@Title.setter
|
5001
|
+
def Title(self, Title):
|
5002
|
+
self._Title = Title
|
5003
|
+
|
5004
|
+
@property
|
5005
|
+
def PageContent(self):
|
5006
|
+
return self._PageContent
|
5007
|
+
|
5008
|
+
@PageContent.setter
|
5009
|
+
def PageContent(self, PageContent):
|
5010
|
+
self._PageContent = PageContent
|
5011
|
+
|
5012
|
+
@property
|
5013
|
+
def OrgData(self):
|
5014
|
+
return self._OrgData
|
5015
|
+
|
5016
|
+
@OrgData.setter
|
5017
|
+
def OrgData(self, OrgData):
|
5018
|
+
self._OrgData = OrgData
|
5019
|
+
|
5020
|
+
@property
|
5021
|
+
def DocId(self):
|
5022
|
+
return self._DocId
|
5023
|
+
|
5024
|
+
@DocId.setter
|
5025
|
+
def DocId(self, DocId):
|
5026
|
+
self._DocId = DocId
|
5027
|
+
|
5028
|
+
@property
|
5029
|
+
def DocBizId(self):
|
5030
|
+
return self._DocBizId
|
5031
|
+
|
5032
|
+
@DocBizId.setter
|
5033
|
+
def DocBizId(self, DocBizId):
|
5034
|
+
self._DocBizId = DocBizId
|
5035
|
+
|
5036
|
+
@property
|
5037
|
+
def DocUrl(self):
|
5038
|
+
return self._DocUrl
|
5039
|
+
|
5040
|
+
@DocUrl.setter
|
5041
|
+
def DocUrl(self, DocUrl):
|
5042
|
+
self._DocUrl = DocUrl
|
5043
|
+
|
5044
|
+
|
5045
|
+
def _deserialize(self, params):
|
5046
|
+
self._Id = params.get("Id")
|
5047
|
+
self._BusinessId = params.get("BusinessId")
|
5048
|
+
self._FileType = params.get("FileType")
|
5049
|
+
self._SegmentType = params.get("SegmentType")
|
5050
|
+
self._Title = params.get("Title")
|
5051
|
+
self._PageContent = params.get("PageContent")
|
5052
|
+
self._OrgData = params.get("OrgData")
|
5053
|
+
self._DocId = params.get("DocId")
|
5054
|
+
self._DocBizId = params.get("DocBizId")
|
5055
|
+
self._DocUrl = params.get("DocUrl")
|
5056
|
+
memeber_set = set(params.keys())
|
5057
|
+
for name, value in vars(self).items():
|
5058
|
+
property_name = name[1:]
|
5059
|
+
if property_name in memeber_set:
|
5060
|
+
memeber_set.remove(property_name)
|
5061
|
+
if len(memeber_set) > 0:
|
5062
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
5063
|
+
|
5064
|
+
|
5065
|
+
|
4827
5066
|
class DocumentElement(AbstractModel):
|
4828
5067
|
"""文档元素字段
|
4829
5068
|
|
@@ -14625,7 +14864,7 @@ class SaveDocRequest(AbstractModel):
|
|
14625
14864
|
:type ExpireEnd: str
|
14626
14865
|
:param _IsRefer: 是否引用链接
|
14627
14866
|
:type IsRefer: bool
|
14628
|
-
:param _Opt: 文档操作类型:1
|
14867
|
+
:param _Opt: 文档操作类型:1:批量导入(批量导入问答对);2:文档导入(正常导入单个文档)
|
14629
14868
|
:type Opt: int
|
14630
14869
|
"""
|
14631
14870
|
self._BotBizId = None
|