tencentcloud-sdk-python 3.0.1190__py2.py3-none-any.whl → 3.0.1192__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/cdc/v20201214/models.py +103 -0
- tencentcloud/ckafka/v20190819/errorcodes.py +6 -0
- tencentcloud/cloudapp/__init__.py +0 -0
- tencentcloud/cloudapp/v20220530/__init__.py +0 -0
- tencentcloud/cloudapp/v20220530/cloudapp_client.py +49 -0
- tencentcloud/cloudapp/v20220530/errorcodes.py +15 -0
- tencentcloud/cloudapp/v20220530/models.py +417 -0
- tencentcloud/cvm/v20170312/errorcodes.py +18 -0
- tencentcloud/cvm/v20170312/models.py +10 -10
- tencentcloud/dlc/v20210125/models.py +25 -1
- tencentcloud/dsgc/v20190723/models.py +84 -0
- tencentcloud/es/v20180416/models.py +25 -1
- tencentcloud/ess/v20201111/models.py +1 -1
- tencentcloud/essbasic/v20210526/essbasic_client.py +3 -1
- tencentcloud/essbasic/v20210526/models.py +35 -5
- tencentcloud/gaap/v20180529/models.py +25 -0
- tencentcloud/hunyuan/v20230901/models.py +12 -0
- tencentcloud/lcic/v20220817/models.py +25 -1
- tencentcloud/lighthouse/v20200324/models.py +4 -4
- tencentcloud/lke/v20231130/lke_client.py +1 -1
- tencentcloud/mongodb/v20190725/models.py +2 -2
- tencentcloud/monitor/v20180724/models.py +14 -40
- tencentcloud/monitor/v20180724/monitor_client.py +1 -1
- tencentcloud/tcr/v20190924/models.py +1 -1
- tencentcloud/tdmq/v20200217/models.py +422 -0
- tencentcloud/tdmq/v20200217/tdmq_client.py +69 -0
- tencentcloud/tsi/v20210325/tsi_client.py +14 -1
- tencentcloud/vpc/v20170312/models.py +168 -19
- {tencentcloud_sdk_python-3.0.1190.dist-info → tencentcloud_sdk_python-3.0.1192.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1190.dist-info → tencentcloud_sdk_python-3.0.1192.dist-info}/RECORD +34 -29
- {tencentcloud_sdk_python-3.0.1190.dist-info → tencentcloud_sdk_python-3.0.1192.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1190.dist-info → tencentcloud_sdk_python-3.0.1192.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1190.dist-info → tencentcloud_sdk_python-3.0.1192.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -1116,6 +1116,27 @@ class DedicatedClusterOrder(AbstractModel):
|
|
1116
1116
|
:param _OrderType: 订单类型
|
1117
1117
|
注意:此字段可能返回 null,表示取不到有效值。
|
1118
1118
|
:type OrderType: str
|
1119
|
+
:param _CheckStatus: 验收状态
|
1120
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1121
|
+
:type CheckStatus: str
|
1122
|
+
:param _DeliverExpectTime: 交付预期时间
|
1123
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1124
|
+
:type DeliverExpectTime: str
|
1125
|
+
:param _DeliverFinishTime: 交付实际完成时间
|
1126
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1127
|
+
:type DeliverFinishTime: str
|
1128
|
+
:param _CheckExpectTime: 验收预期时间
|
1129
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1130
|
+
:type CheckExpectTime: str
|
1131
|
+
:param _CheckFinishTime: 验收实际完成时间
|
1132
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1133
|
+
:type CheckFinishTime: str
|
1134
|
+
:param _OrderSLA: 订单SLA
|
1135
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1136
|
+
:type OrderSLA: str
|
1137
|
+
:param _OrderPayPlan: 订单支付计划
|
1138
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1139
|
+
:type OrderPayPlan: str
|
1119
1140
|
"""
|
1120
1141
|
self._DedicatedClusterId = None
|
1121
1142
|
self._DedicatedClusterTypeId = None
|
@@ -1137,6 +1158,13 @@ class DedicatedClusterOrder(AbstractModel):
|
|
1137
1158
|
self._TimeUnit = None
|
1138
1159
|
self._TimeSpan = None
|
1139
1160
|
self._OrderType = None
|
1161
|
+
self._CheckStatus = None
|
1162
|
+
self._DeliverExpectTime = None
|
1163
|
+
self._DeliverFinishTime = None
|
1164
|
+
self._CheckExpectTime = None
|
1165
|
+
self._CheckFinishTime = None
|
1166
|
+
self._OrderSLA = None
|
1167
|
+
self._OrderPayPlan = None
|
1140
1168
|
|
1141
1169
|
@property
|
1142
1170
|
def DedicatedClusterId(self):
|
@@ -1298,6 +1326,62 @@ class DedicatedClusterOrder(AbstractModel):
|
|
1298
1326
|
def OrderType(self, OrderType):
|
1299
1327
|
self._OrderType = OrderType
|
1300
1328
|
|
1329
|
+
@property
|
1330
|
+
def CheckStatus(self):
|
1331
|
+
return self._CheckStatus
|
1332
|
+
|
1333
|
+
@CheckStatus.setter
|
1334
|
+
def CheckStatus(self, CheckStatus):
|
1335
|
+
self._CheckStatus = CheckStatus
|
1336
|
+
|
1337
|
+
@property
|
1338
|
+
def DeliverExpectTime(self):
|
1339
|
+
return self._DeliverExpectTime
|
1340
|
+
|
1341
|
+
@DeliverExpectTime.setter
|
1342
|
+
def DeliverExpectTime(self, DeliverExpectTime):
|
1343
|
+
self._DeliverExpectTime = DeliverExpectTime
|
1344
|
+
|
1345
|
+
@property
|
1346
|
+
def DeliverFinishTime(self):
|
1347
|
+
return self._DeliverFinishTime
|
1348
|
+
|
1349
|
+
@DeliverFinishTime.setter
|
1350
|
+
def DeliverFinishTime(self, DeliverFinishTime):
|
1351
|
+
self._DeliverFinishTime = DeliverFinishTime
|
1352
|
+
|
1353
|
+
@property
|
1354
|
+
def CheckExpectTime(self):
|
1355
|
+
return self._CheckExpectTime
|
1356
|
+
|
1357
|
+
@CheckExpectTime.setter
|
1358
|
+
def CheckExpectTime(self, CheckExpectTime):
|
1359
|
+
self._CheckExpectTime = CheckExpectTime
|
1360
|
+
|
1361
|
+
@property
|
1362
|
+
def CheckFinishTime(self):
|
1363
|
+
return self._CheckFinishTime
|
1364
|
+
|
1365
|
+
@CheckFinishTime.setter
|
1366
|
+
def CheckFinishTime(self, CheckFinishTime):
|
1367
|
+
self._CheckFinishTime = CheckFinishTime
|
1368
|
+
|
1369
|
+
@property
|
1370
|
+
def OrderSLA(self):
|
1371
|
+
return self._OrderSLA
|
1372
|
+
|
1373
|
+
@OrderSLA.setter
|
1374
|
+
def OrderSLA(self, OrderSLA):
|
1375
|
+
self._OrderSLA = OrderSLA
|
1376
|
+
|
1377
|
+
@property
|
1378
|
+
def OrderPayPlan(self):
|
1379
|
+
return self._OrderPayPlan
|
1380
|
+
|
1381
|
+
@OrderPayPlan.setter
|
1382
|
+
def OrderPayPlan(self, OrderPayPlan):
|
1383
|
+
self._OrderPayPlan = OrderPayPlan
|
1384
|
+
|
1301
1385
|
|
1302
1386
|
def _deserialize(self, params):
|
1303
1387
|
self._DedicatedClusterId = params.get("DedicatedClusterId")
|
@@ -1325,6 +1409,13 @@ class DedicatedClusterOrder(AbstractModel):
|
|
1325
1409
|
self._TimeUnit = params.get("TimeUnit")
|
1326
1410
|
self._TimeSpan = params.get("TimeSpan")
|
1327
1411
|
self._OrderType = params.get("OrderType")
|
1412
|
+
self._CheckStatus = params.get("CheckStatus")
|
1413
|
+
self._DeliverExpectTime = params.get("DeliverExpectTime")
|
1414
|
+
self._DeliverFinishTime = params.get("DeliverFinishTime")
|
1415
|
+
self._CheckExpectTime = params.get("CheckExpectTime")
|
1416
|
+
self._CheckFinishTime = params.get("CheckFinishTime")
|
1417
|
+
self._OrderSLA = params.get("OrderSLA")
|
1418
|
+
self._OrderPayPlan = params.get("OrderPayPlan")
|
1328
1419
|
memeber_set = set(params.keys())
|
1329
1420
|
for name, value in vars(self).items():
|
1330
1421
|
property_name = name[1:]
|
@@ -2452,6 +2543,8 @@ class DescribeDedicatedClusterOrdersRequest(AbstractModel):
|
|
2452
2543
|
:type Status: str
|
2453
2544
|
:param _ActionType: 订单类型为过滤条件:CREATE EXTEND
|
2454
2545
|
:type ActionType: str
|
2546
|
+
:param _OrderTypes: 订单类型列表
|
2547
|
+
:type OrderTypes: list of str
|
2455
2548
|
"""
|
2456
2549
|
self._DedicatedClusterIds = None
|
2457
2550
|
self._DedicatedClusterOrderIds = None
|
@@ -2459,6 +2552,7 @@ class DescribeDedicatedClusterOrdersRequest(AbstractModel):
|
|
2459
2552
|
self._Limit = None
|
2460
2553
|
self._Status = None
|
2461
2554
|
self._ActionType = None
|
2555
|
+
self._OrderTypes = None
|
2462
2556
|
|
2463
2557
|
@property
|
2464
2558
|
def DedicatedClusterIds(self):
|
@@ -2508,6 +2602,14 @@ class DescribeDedicatedClusterOrdersRequest(AbstractModel):
|
|
2508
2602
|
def ActionType(self, ActionType):
|
2509
2603
|
self._ActionType = ActionType
|
2510
2604
|
|
2605
|
+
@property
|
2606
|
+
def OrderTypes(self):
|
2607
|
+
return self._OrderTypes
|
2608
|
+
|
2609
|
+
@OrderTypes.setter
|
2610
|
+
def OrderTypes(self, OrderTypes):
|
2611
|
+
self._OrderTypes = OrderTypes
|
2612
|
+
|
2511
2613
|
|
2512
2614
|
def _deserialize(self, params):
|
2513
2615
|
self._DedicatedClusterIds = params.get("DedicatedClusterIds")
|
@@ -2516,6 +2618,7 @@ class DescribeDedicatedClusterOrdersRequest(AbstractModel):
|
|
2516
2618
|
self._Limit = params.get("Limit")
|
2517
2619
|
self._Status = params.get("Status")
|
2518
2620
|
self._ActionType = params.get("ActionType")
|
2621
|
+
self._OrderTypes = params.get("OrderTypes")
|
2519
2622
|
memeber_set = set(params.keys())
|
2520
2623
|
for name, value in vars(self).items():
|
2521
2624
|
property_name = name[1:]
|
@@ -50,6 +50,9 @@ INVALIDPARAMETERVALUE_SUBNETIDINVALID = 'InvalidParameterValue.SubnetIdInvalid'
|
|
50
50
|
# 子网不属于zone。
|
51
51
|
INVALIDPARAMETERVALUE_SUBNETNOTBELONGTOZONE = 'InvalidParameterValue.SubnetNotBelongToZone'
|
52
52
|
|
53
|
+
# 主题名已存在
|
54
|
+
INVALIDPARAMETERVALUE_TOPICNAMEALREADYEXIST = 'InvalidParameterValue.TopicNameAlreadyExist'
|
55
|
+
|
53
56
|
# 无效的 Vpc Id。
|
54
57
|
INVALIDPARAMETERVALUE_VPCIDINVALID = 'InvalidParameterValue.VpcIdInvalid'
|
55
58
|
|
@@ -107,5 +110,8 @@ UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
|
107
110
|
# 批量删除实例限制。
|
108
111
|
UNSUPPORTEDOPERATION_BATCHDELINSTANCELIMIT = 'UnsupportedOperation.BatchDelInstanceLimit'
|
109
112
|
|
113
|
+
# 删除主题频率过快
|
114
|
+
UNSUPPORTEDOPERATION_FREQUENCYTOPICDELETEOPERATE = 'UnsupportedOperation.FrequencyTopicDeleteOperate'
|
115
|
+
|
110
116
|
# Oss拒绝该操作。
|
111
117
|
UNSUPPORTEDOPERATION_OSSREJECT = 'UnsupportedOperation.OssReject'
|
File without changes
|
File without changes
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# -*- coding: utf8 -*-
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
import json
|
17
|
+
|
18
|
+
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
19
|
+
from tencentcloud.common.abstract_client import AbstractClient
|
20
|
+
from tencentcloud.cloudapp.v20220530 import models
|
21
|
+
|
22
|
+
|
23
|
+
class CloudappClient(AbstractClient):
|
24
|
+
_apiVersion = '2022-05-30'
|
25
|
+
_endpoint = 'cloudapp.tencentcloudapi.com'
|
26
|
+
_service = 'cloudapp'
|
27
|
+
|
28
|
+
|
29
|
+
def VerifyLicense(self, request):
|
30
|
+
"""通过运行时roleId查询对应的软件 LICENSE
|
31
|
+
|
32
|
+
:param request: Request instance for VerifyLicense.
|
33
|
+
:type request: :class:`tencentcloud.cloudapp.v20220530.models.VerifyLicenseRequest`
|
34
|
+
:rtype: :class:`tencentcloud.cloudapp.v20220530.models.VerifyLicenseResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("VerifyLicense", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.VerifyLicenseResponse()
|
43
|
+
model._deserialize(response["Response"])
|
44
|
+
return model
|
45
|
+
except Exception as e:
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
47
|
+
raise
|
48
|
+
else:
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# -*- coding: utf8 -*-
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
@@ -0,0 +1,417 @@
|
|
1
|
+
# -*- coding: utf8 -*-
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
import warnings
|
17
|
+
|
18
|
+
from tencentcloud.common.abstract_model import AbstractModel
|
19
|
+
|
20
|
+
|
21
|
+
class License(AbstractModel):
|
22
|
+
"""表示应用实例的软件授权,包含颁发信息、激活信息等内容。
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _LicenseId: License ID
|
29
|
+
:type LicenseId: str
|
30
|
+
:param _LicenseMode: 软件授权模式。
|
31
|
+
|
32
|
+
<table>
|
33
|
+
<thead>
|
34
|
+
<tr>
|
35
|
+
<th>枚举值</th>
|
36
|
+
<th>说明</th>
|
37
|
+
</tr>
|
38
|
+
</thead>
|
39
|
+
<tbody><tr>
|
40
|
+
<td>Permanent</td>
|
41
|
+
<td>永久授权。该授权不受有效期限制。</td>
|
42
|
+
</tr>
|
43
|
+
<tr>
|
44
|
+
<td>Subscription</td>
|
45
|
+
<td>订阅授权。授权如果过了有效期,则会进入过期状态。</td>
|
46
|
+
</tr>
|
47
|
+
</tbody></table>
|
48
|
+
:type LicenseMode: str
|
49
|
+
:param _LicenseStatus: 软件的授权状态。
|
50
|
+
|
51
|
+
<table>
|
52
|
+
<thead>
|
53
|
+
<tr>
|
54
|
+
<th>枚举值</th>
|
55
|
+
<th>说明</th>
|
56
|
+
</tr>
|
57
|
+
</thead>
|
58
|
+
<tbody><tr>
|
59
|
+
<td>Issued</td>
|
60
|
+
<td>已颁发,等待激活。一般来说,如果软件已经在运行,不会出现该状态。</td>
|
61
|
+
</tr>
|
62
|
+
<tr>
|
63
|
+
<td>Active</td>
|
64
|
+
<td>授权在有效期内,这是软件运行期间最常见的状态。</td>
|
65
|
+
</tr>
|
66
|
+
<tr>
|
67
|
+
<td>Expired</td>
|
68
|
+
<td>授权已过期。订阅类的软件授权有有效期,如果服务器时间已晚于有效期,则会进入过期状态。</td>
|
69
|
+
</tr>
|
70
|
+
<tr>
|
71
|
+
<td>Deactivated</td>
|
72
|
+
<td>授权已失效。用户如果退货软件,则授权会自动失效。</td>
|
73
|
+
</tr>
|
74
|
+
</tbody></table>
|
75
|
+
:type LicenseStatus: str
|
76
|
+
:param _ProviderId: 软件供应方 ID。
|
77
|
+
:type ProviderId: int
|
78
|
+
:param _SoftwarePackageId: 软件包 ID。
|
79
|
+
:type SoftwarePackageId: str
|
80
|
+
:param _SoftwarePackageVersion: 软件包版本。
|
81
|
+
:type SoftwarePackageVersion: str
|
82
|
+
:param _AuthorizedUserUin: 被授权的用户 UIN。
|
83
|
+
:type AuthorizedUserUin: str
|
84
|
+
:param _AuthorizedCloudappId: 被授权的应用实例 ID。
|
85
|
+
:type AuthorizedCloudappId: str
|
86
|
+
:param _AuthorizedCloudappRoleId: 被授权的角色 ID。
|
87
|
+
:type AuthorizedCloudappRoleId: str
|
88
|
+
:param _AuthorizedSpecification: 被授权的软件规格,具体字段请参考结构SaleParam
|
89
|
+
:type AuthorizedSpecification: list of SaleParam
|
90
|
+
:param _BillingMode: 被授权的软件的计费模式。
|
91
|
+
|
92
|
+
<table>
|
93
|
+
<thead>
|
94
|
+
<tr>
|
95
|
+
<th>枚举值</th>
|
96
|
+
<th>说明</th>
|
97
|
+
</tr>
|
98
|
+
</thead>
|
99
|
+
<tbody><tr>
|
100
|
+
<td>1</td>
|
101
|
+
<td>线上计费,软件的授权从腾讯云线上购买,支持续费、退款等操作。</td>
|
102
|
+
</tr>
|
103
|
+
<tr>
|
104
|
+
<td>2</td>
|
105
|
+
<td>线下计费,软件的授权线下签订合同购买,定向客户交付,无法从线上续费和退款。</td>
|
106
|
+
</tr>
|
107
|
+
<tr>
|
108
|
+
<td>4</td>
|
109
|
+
<td>免费</td>
|
110
|
+
</tr>
|
111
|
+
</tbody></table>
|
112
|
+
:type BillingMode: int
|
113
|
+
:param _LifeSpan: 授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)
|
114
|
+
:type LifeSpan: int
|
115
|
+
:param _IssueDate: 授权颁发时间。
|
116
|
+
:type IssueDate: str
|
117
|
+
:param _ActivationDate: 授权激活时间,如从未激活则返回 null。
|
118
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
119
|
+
:type ActivationDate: str
|
120
|
+
:param _ExpirationDate: 授权过期时间,如未过期或者是永久授权,则返回 null。
|
121
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
122
|
+
:type ExpirationDate: str
|
123
|
+
:param _LifeSpanUnit: 授权时长单位,枚举值有Y年/M月/D日三种
|
124
|
+
:type LifeSpanUnit: str
|
125
|
+
"""
|
126
|
+
self._LicenseId = None
|
127
|
+
self._LicenseMode = None
|
128
|
+
self._LicenseStatus = None
|
129
|
+
self._ProviderId = None
|
130
|
+
self._SoftwarePackageId = None
|
131
|
+
self._SoftwarePackageVersion = None
|
132
|
+
self._AuthorizedUserUin = None
|
133
|
+
self._AuthorizedCloudappId = None
|
134
|
+
self._AuthorizedCloudappRoleId = None
|
135
|
+
self._AuthorizedSpecification = None
|
136
|
+
self._BillingMode = None
|
137
|
+
self._LifeSpan = None
|
138
|
+
self._IssueDate = None
|
139
|
+
self._ActivationDate = None
|
140
|
+
self._ExpirationDate = None
|
141
|
+
self._LifeSpanUnit = None
|
142
|
+
|
143
|
+
@property
|
144
|
+
def LicenseId(self):
|
145
|
+
return self._LicenseId
|
146
|
+
|
147
|
+
@LicenseId.setter
|
148
|
+
def LicenseId(self, LicenseId):
|
149
|
+
self._LicenseId = LicenseId
|
150
|
+
|
151
|
+
@property
|
152
|
+
def LicenseMode(self):
|
153
|
+
return self._LicenseMode
|
154
|
+
|
155
|
+
@LicenseMode.setter
|
156
|
+
def LicenseMode(self, LicenseMode):
|
157
|
+
self._LicenseMode = LicenseMode
|
158
|
+
|
159
|
+
@property
|
160
|
+
def LicenseStatus(self):
|
161
|
+
return self._LicenseStatus
|
162
|
+
|
163
|
+
@LicenseStatus.setter
|
164
|
+
def LicenseStatus(self, LicenseStatus):
|
165
|
+
self._LicenseStatus = LicenseStatus
|
166
|
+
|
167
|
+
@property
|
168
|
+
def ProviderId(self):
|
169
|
+
return self._ProviderId
|
170
|
+
|
171
|
+
@ProviderId.setter
|
172
|
+
def ProviderId(self, ProviderId):
|
173
|
+
self._ProviderId = ProviderId
|
174
|
+
|
175
|
+
@property
|
176
|
+
def SoftwarePackageId(self):
|
177
|
+
return self._SoftwarePackageId
|
178
|
+
|
179
|
+
@SoftwarePackageId.setter
|
180
|
+
def SoftwarePackageId(self, SoftwarePackageId):
|
181
|
+
self._SoftwarePackageId = SoftwarePackageId
|
182
|
+
|
183
|
+
@property
|
184
|
+
def SoftwarePackageVersion(self):
|
185
|
+
return self._SoftwarePackageVersion
|
186
|
+
|
187
|
+
@SoftwarePackageVersion.setter
|
188
|
+
def SoftwarePackageVersion(self, SoftwarePackageVersion):
|
189
|
+
self._SoftwarePackageVersion = SoftwarePackageVersion
|
190
|
+
|
191
|
+
@property
|
192
|
+
def AuthorizedUserUin(self):
|
193
|
+
return self._AuthorizedUserUin
|
194
|
+
|
195
|
+
@AuthorizedUserUin.setter
|
196
|
+
def AuthorizedUserUin(self, AuthorizedUserUin):
|
197
|
+
self._AuthorizedUserUin = AuthorizedUserUin
|
198
|
+
|
199
|
+
@property
|
200
|
+
def AuthorizedCloudappId(self):
|
201
|
+
return self._AuthorizedCloudappId
|
202
|
+
|
203
|
+
@AuthorizedCloudappId.setter
|
204
|
+
def AuthorizedCloudappId(self, AuthorizedCloudappId):
|
205
|
+
self._AuthorizedCloudappId = AuthorizedCloudappId
|
206
|
+
|
207
|
+
@property
|
208
|
+
def AuthorizedCloudappRoleId(self):
|
209
|
+
return self._AuthorizedCloudappRoleId
|
210
|
+
|
211
|
+
@AuthorizedCloudappRoleId.setter
|
212
|
+
def AuthorizedCloudappRoleId(self, AuthorizedCloudappRoleId):
|
213
|
+
self._AuthorizedCloudappRoleId = AuthorizedCloudappRoleId
|
214
|
+
|
215
|
+
@property
|
216
|
+
def AuthorizedSpecification(self):
|
217
|
+
return self._AuthorizedSpecification
|
218
|
+
|
219
|
+
@AuthorizedSpecification.setter
|
220
|
+
def AuthorizedSpecification(self, AuthorizedSpecification):
|
221
|
+
self._AuthorizedSpecification = AuthorizedSpecification
|
222
|
+
|
223
|
+
@property
|
224
|
+
def BillingMode(self):
|
225
|
+
return self._BillingMode
|
226
|
+
|
227
|
+
@BillingMode.setter
|
228
|
+
def BillingMode(self, BillingMode):
|
229
|
+
self._BillingMode = BillingMode
|
230
|
+
|
231
|
+
@property
|
232
|
+
def LifeSpan(self):
|
233
|
+
return self._LifeSpan
|
234
|
+
|
235
|
+
@LifeSpan.setter
|
236
|
+
def LifeSpan(self, LifeSpan):
|
237
|
+
self._LifeSpan = LifeSpan
|
238
|
+
|
239
|
+
@property
|
240
|
+
def IssueDate(self):
|
241
|
+
return self._IssueDate
|
242
|
+
|
243
|
+
@IssueDate.setter
|
244
|
+
def IssueDate(self, IssueDate):
|
245
|
+
self._IssueDate = IssueDate
|
246
|
+
|
247
|
+
@property
|
248
|
+
def ActivationDate(self):
|
249
|
+
return self._ActivationDate
|
250
|
+
|
251
|
+
@ActivationDate.setter
|
252
|
+
def ActivationDate(self, ActivationDate):
|
253
|
+
self._ActivationDate = ActivationDate
|
254
|
+
|
255
|
+
@property
|
256
|
+
def ExpirationDate(self):
|
257
|
+
return self._ExpirationDate
|
258
|
+
|
259
|
+
@ExpirationDate.setter
|
260
|
+
def ExpirationDate(self, ExpirationDate):
|
261
|
+
self._ExpirationDate = ExpirationDate
|
262
|
+
|
263
|
+
@property
|
264
|
+
def LifeSpanUnit(self):
|
265
|
+
return self._LifeSpanUnit
|
266
|
+
|
267
|
+
@LifeSpanUnit.setter
|
268
|
+
def LifeSpanUnit(self, LifeSpanUnit):
|
269
|
+
self._LifeSpanUnit = LifeSpanUnit
|
270
|
+
|
271
|
+
|
272
|
+
def _deserialize(self, params):
|
273
|
+
self._LicenseId = params.get("LicenseId")
|
274
|
+
self._LicenseMode = params.get("LicenseMode")
|
275
|
+
self._LicenseStatus = params.get("LicenseStatus")
|
276
|
+
self._ProviderId = params.get("ProviderId")
|
277
|
+
self._SoftwarePackageId = params.get("SoftwarePackageId")
|
278
|
+
self._SoftwarePackageVersion = params.get("SoftwarePackageVersion")
|
279
|
+
self._AuthorizedUserUin = params.get("AuthorizedUserUin")
|
280
|
+
self._AuthorizedCloudappId = params.get("AuthorizedCloudappId")
|
281
|
+
self._AuthorizedCloudappRoleId = params.get("AuthorizedCloudappRoleId")
|
282
|
+
if params.get("AuthorizedSpecification") is not None:
|
283
|
+
self._AuthorizedSpecification = []
|
284
|
+
for item in params.get("AuthorizedSpecification"):
|
285
|
+
obj = SaleParam()
|
286
|
+
obj._deserialize(item)
|
287
|
+
self._AuthorizedSpecification.append(obj)
|
288
|
+
self._BillingMode = params.get("BillingMode")
|
289
|
+
self._LifeSpan = params.get("LifeSpan")
|
290
|
+
self._IssueDate = params.get("IssueDate")
|
291
|
+
self._ActivationDate = params.get("ActivationDate")
|
292
|
+
self._ExpirationDate = params.get("ExpirationDate")
|
293
|
+
self._LifeSpanUnit = params.get("LifeSpanUnit")
|
294
|
+
memeber_set = set(params.keys())
|
295
|
+
for name, value in vars(self).items():
|
296
|
+
property_name = name[1:]
|
297
|
+
if property_name in memeber_set:
|
298
|
+
memeber_set.remove(property_name)
|
299
|
+
if len(memeber_set) > 0:
|
300
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
class SaleParam(AbstractModel):
|
305
|
+
"""表示商品 SKU 的单个售卖参数
|
306
|
+
|
307
|
+
"""
|
308
|
+
|
309
|
+
def __init__(self):
|
310
|
+
r"""
|
311
|
+
:param _ParamKey: 售卖参数标识
|
312
|
+
:type ParamKey: str
|
313
|
+
:param _ParamValue: 售卖参数值
|
314
|
+
:type ParamValue: str
|
315
|
+
:param _ParamKeyName: 售卖参数的展示名称
|
316
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
317
|
+
:type ParamKeyName: str
|
318
|
+
:param _ParamValueName: 售卖参数值的展示名称
|
319
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
320
|
+
:type ParamValueName: str
|
321
|
+
"""
|
322
|
+
self._ParamKey = None
|
323
|
+
self._ParamValue = None
|
324
|
+
self._ParamKeyName = None
|
325
|
+
self._ParamValueName = None
|
326
|
+
|
327
|
+
@property
|
328
|
+
def ParamKey(self):
|
329
|
+
return self._ParamKey
|
330
|
+
|
331
|
+
@ParamKey.setter
|
332
|
+
def ParamKey(self, ParamKey):
|
333
|
+
self._ParamKey = ParamKey
|
334
|
+
|
335
|
+
@property
|
336
|
+
def ParamValue(self):
|
337
|
+
return self._ParamValue
|
338
|
+
|
339
|
+
@ParamValue.setter
|
340
|
+
def ParamValue(self, ParamValue):
|
341
|
+
self._ParamValue = ParamValue
|
342
|
+
|
343
|
+
@property
|
344
|
+
def ParamKeyName(self):
|
345
|
+
return self._ParamKeyName
|
346
|
+
|
347
|
+
@ParamKeyName.setter
|
348
|
+
def ParamKeyName(self, ParamKeyName):
|
349
|
+
self._ParamKeyName = ParamKeyName
|
350
|
+
|
351
|
+
@property
|
352
|
+
def ParamValueName(self):
|
353
|
+
return self._ParamValueName
|
354
|
+
|
355
|
+
@ParamValueName.setter
|
356
|
+
def ParamValueName(self, ParamValueName):
|
357
|
+
self._ParamValueName = ParamValueName
|
358
|
+
|
359
|
+
|
360
|
+
def _deserialize(self, params):
|
361
|
+
self._ParamKey = params.get("ParamKey")
|
362
|
+
self._ParamValue = params.get("ParamValue")
|
363
|
+
self._ParamKeyName = params.get("ParamKeyName")
|
364
|
+
self._ParamValueName = params.get("ParamValueName")
|
365
|
+
memeber_set = set(params.keys())
|
366
|
+
for name, value in vars(self).items():
|
367
|
+
property_name = name[1:]
|
368
|
+
if property_name in memeber_set:
|
369
|
+
memeber_set.remove(property_name)
|
370
|
+
if len(memeber_set) > 0:
|
371
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
class VerifyLicenseRequest(AbstractModel):
|
376
|
+
"""VerifyLicense请求参数结构体
|
377
|
+
|
378
|
+
"""
|
379
|
+
|
380
|
+
|
381
|
+
class VerifyLicenseResponse(AbstractModel):
|
382
|
+
"""VerifyLicense返回参数结构体
|
383
|
+
|
384
|
+
"""
|
385
|
+
|
386
|
+
def __init__(self):
|
387
|
+
r"""
|
388
|
+
:param _License: 软件的详细授权信息。
|
389
|
+
:type License: :class:`tencentcloud.cloudapp.v20220530.models.License`
|
390
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
391
|
+
:type RequestId: str
|
392
|
+
"""
|
393
|
+
self._License = None
|
394
|
+
self._RequestId = None
|
395
|
+
|
396
|
+
@property
|
397
|
+
def License(self):
|
398
|
+
return self._License
|
399
|
+
|
400
|
+
@License.setter
|
401
|
+
def License(self, License):
|
402
|
+
self._License = License
|
403
|
+
|
404
|
+
@property
|
405
|
+
def RequestId(self):
|
406
|
+
return self._RequestId
|
407
|
+
|
408
|
+
@RequestId.setter
|
409
|
+
def RequestId(self, RequestId):
|
410
|
+
self._RequestId = RequestId
|
411
|
+
|
412
|
+
|
413
|
+
def _deserialize(self, params):
|
414
|
+
if params.get("License") is not None:
|
415
|
+
self._License = License()
|
416
|
+
self._License._deserialize(params.get("License"))
|
417
|
+
self._RequestId = params.get("RequestId")
|