tencentcloud-sdk-python-cloudapp 3.0.1460__py2.py3-none-any.whl → 3.1.20__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/cloudapp/v20220530/cloudapp_client_async.py +175 -0
- tencentcloud/cloudapp/v20220530/models.py +111 -36
- {tencentcloud_sdk_python_cloudapp-3.0.1460.dist-info → tencentcloud_sdk_python_cloudapp-3.1.20.dist-info}/METADATA +2 -4
- tencentcloud_sdk_python_cloudapp-3.1.20.dist-info/RECORD +11 -0
- {tencentcloud_sdk_python_cloudapp-3.0.1460.dist-info → tencentcloud_sdk_python_cloudapp-3.1.20.dist-info}/WHEEL +1 -1
- tencentcloud_sdk_python_cloudapp-3.0.1460.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_cloudapp-3.0.1460.dist-info → tencentcloud_sdk_python_cloudapp-3.1.20.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. 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
|
+
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.abstract_client_async import AbstractClient
|
|
19
|
+
from tencentcloud.cloudapp.v20220530 import models
|
|
20
|
+
from typing import Dict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CloudappClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2022-05-30'
|
|
25
|
+
_endpoint = 'cloudapp.tencentcloudapi.com'
|
|
26
|
+
_service = 'cloudapp'
|
|
27
|
+
|
|
28
|
+
async def DescribeLicense(
|
|
29
|
+
self,
|
|
30
|
+
request: models.DescribeLicenseRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.DescribeLicenseResponse:
|
|
33
|
+
"""
|
|
34
|
+
# DescribeLicense
|
|
35
|
+
|
|
36
|
+
客户根据请求的参数获取当前名下的许可证信息
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"Filters": [
|
|
41
|
+
{
|
|
42
|
+
"Name": "QueryType",
|
|
43
|
+
"Values": ["IncludeAddition"]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
返回的内容结构如下:
|
|
50
|
+
|
|
51
|
+
- Response.RequestId 为当前请求的唯一 id
|
|
52
|
+
- Response.Token 为 license 信息 jwt 加密后的 token 串
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"Response": {
|
|
57
|
+
"RequestId": "cd15813b-adff-460e-b9fc-64579e96412d",
|
|
58
|
+
"Token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjkzMjQ4MTc5ODAsImlhdCI6MTc1NjE3Nzk4MCwiaXNzIjoibGljZW5zZS1zZXJ2aWNlIiwicGF5bG9hZCI6eyJNYWluTGljZW5zZSI6eyJMaWNlbnNlTW9kZSI6IlN1YnNjcmlwdGlvbiIsIkJpbGxpbmdNb2RlIjoxLCJDcmVhdGVTb3VyY2UiOiJTTjE3MTk0MDc1NDc0SEJETSIsIkF1dGhvcml6ZWRDbG91ZGFwcFJvbGVJZCI6IjcwMDAwMTgzMzgwNiIsIkF1dGhvcml6ZWRDbG91ZGFwcElkIjoiY2xvdWRhcHAtc2V3ZWM2cHMiLCJBdXRob3JpemVkVXNlclVpbiI6IjcwMDAwMDkxODE1NiIsIkxpZmVTcGFuVW5pdCI6IlkiLCJMaWZlU3BhbiI6MzY1LCJTb2Z0d2FyZVBhY2thZ2VJZCI6InBrZy0xZ2xlaG9tNyIsIlNvZnR3YXJlUGFja2FnZVZlcnNpb24iOiIwLjAuMSIsIkF1dGhvcml6ZWRTcGVjaWZpY2F0aW9uIjpbeyJQYXJhbUtleSI6InZlcnNpb24iLCJQYXJhbUtleU5hbWUiOiLniYjmnKwiLCJQYXJhbVZhbHVlIjoiYmFzaWMiLCJQYXJhbVZhbHVlTmFtZSI6IuWfuuehgOeJiCJ9LHsiUGFyYW1LZXkiOiJzaXplIiwiUGFyYW1LZXlOYW1lIjoi6KeE5qC8IiwiUGFyYW1WYWx1ZSI6IjEwMCIsIlBhcmFtVmFsdWVOYW1lIjoiMTAw5Lq66KeE5qihIn1dLCJQcm92aWRlcklkIjoxMDAwMDAwNzEsIlByb3ZpZGVyVWluIjoiNzAwMDAwOTE4MTU2IiwiSXNzdWVEYXRlIjoiMjAyNC0wNi0yNlQyMToxMjozMiswODowMCIsIkFjdGl2YXRpb25EYXRlIjoiMjAyNC0wNi0yNlQyMToxMjozNSswODowMCIsIkV4cGlyYXRpb25EYXRlIjoiMjM4OS0wNi0yNlQyMToxMjozNSswODowMCIsIkxpY2Vuc2VTdGF0dXMiOiJBY3RpdmUiLCJMaWNlbnNlSWQiOiI3MDAwMDA5MTgxNTY6cGtnLTFnbGVob203OmNsb3VkYXBwLXNld2VjNnBzOjgwMDciLCJMaWNlbnNlVHlwZSI6IlN0YW5kYXJkIiwiTGljZW5zZUxldmVsIjoiTWFzdGVyIn0sIkFkZGl0aW9uTGljZW5zZXMiOltdLCJUaW1lc3RhbXAiOiIyMDI1LTA4LTI2VDExOjEzOjAwKzA4OjAwIn19.G8Lx49xZBW0Rh3lRA15XzZ-PzLJj0bAxwnklx0pTjrHWxqxQdETAdGfU_QaGI_WZfYh2IVbFcwHnRLiRj6pQb4guCMpCbcsgL28BRS4g1wnaFhjcyEQLLtpDdz4_lPnOR2VHHvnfwhLZtccAgsRpeedPMBK1hwO9D3WKisQg2LcIr0V-QB8gmgIqqyqrLW6z37QpjgB4ZyJ5bIC1J-0-VmghskA04xnQRPdGJtlyBhjzVjeDxBq5JOqm3Am0Nqu1jyTd3MuYgSRwJqkDyjVBOGFGGy6mZCIYnxU_ET6-0ZEendqYwXDkpYG4rZZv5YmRCXiSESYz0zx4czwmFWkw-TjRSvUQBxBfsoDcAgyzpY7zBOTnbrr7DyoMvVnnHo7vb0if8_vkub6o0MuRnvdDYxNJtnTtlIScCadWAIvWUQ1DlUw2kzS-h9Ju2h7JhKw9cUeutu0X_6V4arZu9JlgWT9Ns7BtS9Y5JxgQOd36Aan39Rwohy_BrVwjOkbvDuTFLc_yNUlNdq5T2GNbDjABCmi73CGhCuWyPgtRs4ftpPugDRrTe4E95F224jdhf7I0He-nY4i1MoVjz8Zzm4v0vH67cMfcu0XVhs7ywvmu5tBSwm0uuhAXFFIbSrgEzuadxNhSi6qVCFNLnjiPYplK1M9mxG8Hc-fU-0A0TPepx8Q"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
验签过程:
|
|
64
|
+
对 Response.Token 内容使用公钥进行解码转换得到许可结构体信息,返回的内容结构如下,其中 paylod 中的信息为许可证信息结构:
|
|
65
|
+
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"exp": 9324758169,
|
|
69
|
+
"iat": 1756118169,
|
|
70
|
+
"iss": "license-service",
|
|
71
|
+
"payload": {
|
|
72
|
+
"MainLicense": {
|
|
73
|
+
"LicenseMode": "Subscription",
|
|
74
|
+
"BillingMode": 1,
|
|
75
|
+
"CreateSource": "SN1719406931EJJ1E",
|
|
76
|
+
"AuthorizedCloudappRoleId": "700001833621",
|
|
77
|
+
"AuthorizedCloudappId": "cloudapp-992nqg9u",
|
|
78
|
+
"AuthorizedUserUin": "700001833621",
|
|
79
|
+
"LifeSpanUnit": "Y",
|
|
80
|
+
"LifeSpan": 365,
|
|
81
|
+
"SoftwarePackageId": "pkg-1glehom7",
|
|
82
|
+
"SoftwarePackageVersion": "0.0.1",
|
|
83
|
+
"AuthorizedSpecification": [
|
|
84
|
+
{
|
|
85
|
+
"ParamKey": "version",
|
|
86
|
+
"ParamKeyName": "版本",
|
|
87
|
+
"ParamValue": "basic",
|
|
88
|
+
"ParamValueName": "基础版"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"ParamKey": "size",
|
|
92
|
+
"ParamKeyName": "规格",
|
|
93
|
+
"ParamValue": "100",
|
|
94
|
+
"ParamValueName": "100 人规模"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"ProviderId": 100000071,
|
|
98
|
+
"ProviderUin": "700000918156",
|
|
99
|
+
"IssueDate": "2024-06-26T21:02:16+08:00",
|
|
100
|
+
"ActivationDate": "2024-06-26T21:02:19+08:00",
|
|
101
|
+
"ExpirationDate": "2389-06-26T21:02:19+08:00",
|
|
102
|
+
"LicenseStatus": "Active",
|
|
103
|
+
"LicenseId": "700000918156:pkg-1glehom7:cloudapp-992nqg9u:3988",
|
|
104
|
+
"LicenseType": "Standard",
|
|
105
|
+
"LicenseLevel": "Master"
|
|
106
|
+
},
|
|
107
|
+
"AdditionLicenses": [
|
|
108
|
+
{
|
|
109
|
+
"LicenseMode": "Subscription",
|
|
110
|
+
"BillingMode": 1,
|
|
111
|
+
"CreateSource": "SN1719406931EJJ1E",
|
|
112
|
+
"AuthorizedCloudappRoleId": "700001833621",
|
|
113
|
+
"AuthorizedCloudappId": "cloudapp-992nqg9u",
|
|
114
|
+
"AuthorizedUserUin": "700001833621",
|
|
115
|
+
"LifeSpanUnit": "Y",
|
|
116
|
+
"LifeSpan": 365,
|
|
117
|
+
"SoftwarePackageId": "pkg-1glehom7",
|
|
118
|
+
"SoftwarePackageVersion": "0.0.1",
|
|
119
|
+
"AuthorizedSpecification": [
|
|
120
|
+
{
|
|
121
|
+
"ParamKey": "version",
|
|
122
|
+
"ParamKeyName": "版本",
|
|
123
|
+
"ParamValue": "basic",
|
|
124
|
+
"ParamValueName": "基础版"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"ParamKey": "size",
|
|
128
|
+
"ParamKeyName": "规格",
|
|
129
|
+
"ParamValue": "100",
|
|
130
|
+
"ParamValueName": "100 人规模"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"ProviderId": 100000071,
|
|
134
|
+
"ProviderUin": "700000918156",
|
|
135
|
+
"IssueDate": "2024-06-26T21:02:16+08:00",
|
|
136
|
+
"ActivationDate": "2024-06-26T21:02:19+08:00",
|
|
137
|
+
"ExpirationDate": "2389-06-26T21:02:19+08:00",
|
|
138
|
+
"LicenseStatus": "Active",
|
|
139
|
+
"LicenseId": "700000918156:pkg-1glehom7:cloudapp-992nqg9u:3988",
|
|
140
|
+
"LicenseType": "Standard",
|
|
141
|
+
"LicenseLevel": "Master"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"Timestamp": "2025-08-25T18:36:09+08:00"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
"""
|
|
149
|
+
|
|
150
|
+
kwargs = {}
|
|
151
|
+
kwargs["action"] = "DescribeLicense"
|
|
152
|
+
kwargs["params"] = request._serialize()
|
|
153
|
+
kwargs["resp_cls"] = models.DescribeLicenseResponse
|
|
154
|
+
kwargs["headers"] = request.headers
|
|
155
|
+
kwargs["opts"] = opts or {}
|
|
156
|
+
|
|
157
|
+
return await self.call_and_deserialize(**kwargs)
|
|
158
|
+
|
|
159
|
+
async def VerifyLicense(
|
|
160
|
+
self,
|
|
161
|
+
request: models.VerifyLicenseRequest,
|
|
162
|
+
opts: Dict = None,
|
|
163
|
+
) -> models.VerifyLicenseResponse:
|
|
164
|
+
"""
|
|
165
|
+
从软件进程读取 LICENSE。
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
kwargs = {}
|
|
169
|
+
kwargs["action"] = "VerifyLicense"
|
|
170
|
+
kwargs["params"] = request._serialize()
|
|
171
|
+
kwargs["resp_cls"] = models.VerifyLicenseResponse
|
|
172
|
+
kwargs["headers"] = request.headers
|
|
173
|
+
kwargs["opts"] = opts or {}
|
|
174
|
+
|
|
175
|
+
return await self.call_and_deserialize(**kwargs)
|
|
@@ -163,43 +163,43 @@ class License(AbstractModel):
|
|
|
163
163
|
|
|
164
164
|
def __init__(self):
|
|
165
165
|
r"""
|
|
166
|
-
:param _LicenseId: License ID
|
|
166
|
+
:param _LicenseId: <p>License ID</p>
|
|
167
167
|
:type LicenseId: str
|
|
168
|
-
:param _LicenseMode:
|
|
168
|
+
:param _LicenseMode: <p>软件授权模式。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>Permanent</td><td>永久授权。该授权不受有效期限制。</td></tr><tr><td>Subscription</td><td>订阅授权。授权如果过了有效期,则会进入过期状态。</td></tr><tr><td>Accept</td><td>验收期授权。用于需要验收的软件处于验收期间的授权,授权如果过了验收有效期,则会进入过期状态。</td></tr></tbody></table></p>
|
|
169
169
|
:type LicenseMode: str
|
|
170
|
-
:param _LicenseStatus:
|
|
170
|
+
:param _LicenseStatus: <p>软件的授权状态。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>Issued</td><td>已颁发,等待激活。一般来说,如果软件已经在运行,不会出现该状态。</td></tr><tr><td>Active</td><td>授权在有效期内,这是软件运行期间最常见的状态。</td></tr><tr><td>Expired</td><td>授权已过期。订阅类的软件授权有有效期,如果服务器时间已晚于有效期,则会进入过期状态。</td></tr><tr><td>Isolated</td><td>授权已隔离。有截止日期的授权,当用户授权到期时,先进入此状态,用户可以去续费,超过7天不续费则授权进入Destroyed状态。</td></tr><tr><td>Destroyed</td><td>授权已失效/销毁。用户如果退货软件,则授权会自动失效。</td></tr></tbody></table></p>
|
|
171
171
|
:type LicenseStatus: str
|
|
172
|
-
:param _ProviderId:
|
|
172
|
+
:param _ProviderId: <p>软件供应方 ID。</p>
|
|
173
173
|
:type ProviderId: int
|
|
174
|
-
:param _SoftwarePackageId:
|
|
174
|
+
:param _SoftwarePackageId: <p>软件包 ID。</p>
|
|
175
175
|
:type SoftwarePackageId: str
|
|
176
|
-
:param _SoftwarePackageVersion:
|
|
176
|
+
:param _SoftwarePackageVersion: <p>软件包版本。</p>
|
|
177
177
|
:type SoftwarePackageVersion: str
|
|
178
|
-
:param _AuthorizedUserUin:
|
|
178
|
+
:param _AuthorizedUserUin: <p>被授权的用户 UIN。</p>
|
|
179
179
|
:type AuthorizedUserUin: str
|
|
180
|
-
:param _AuthorizedCloudappId:
|
|
180
|
+
:param _AuthorizedCloudappId: <p>被授权的应用实例 ID。</p>
|
|
181
181
|
:type AuthorizedCloudappId: str
|
|
182
|
-
:param _AuthorizedCloudappRoleId:
|
|
182
|
+
:param _AuthorizedCloudappRoleId: <p>被授权的角色 ID。</p>
|
|
183
183
|
:type AuthorizedCloudappRoleId: str
|
|
184
|
-
:param _AuthorizedSpecification:
|
|
184
|
+
:param _AuthorizedSpecification: <p>被授权的软件规格,具体字段请参考结构SaleParam</p>
|
|
185
185
|
:type AuthorizedSpecification: list of SaleParam
|
|
186
|
-
:param _BillingMode:
|
|
186
|
+
:param _BillingMode: <p>被授权的软件的计费模式。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>1</td><td>线上计费,软件的授权从腾讯云线上购买,支持续费、退款等操作。</td></tr><tr><td>2</td><td>线下计费,软件的授权线下签订合同购买,定向客户交付,无法从线上续费和退款。</td></tr><tr><td>4</td><td>免费</td></tr></tbody></table></p>
|
|
187
187
|
:type BillingMode: int
|
|
188
|
-
:param _LifeSpan:
|
|
188
|
+
:param _LifeSpan: <p>授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)</p>
|
|
189
189
|
:type LifeSpan: int
|
|
190
|
-
:param _IssueDate:
|
|
190
|
+
:param _IssueDate: <p>授权颁发时间。</p>
|
|
191
191
|
:type IssueDate: str
|
|
192
|
-
:param _ActivationDate:
|
|
192
|
+
:param _ActivationDate: <p>授权激活时间,如从未激活则返回 null。</p>
|
|
193
193
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
194
194
|
:type ActivationDate: str
|
|
195
|
-
:param _ExpirationDate:
|
|
195
|
+
:param _ExpirationDate: <p>授权过期时间</p>
|
|
196
196
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
197
197
|
:type ExpirationDate: str
|
|
198
|
-
:param _LifeSpanUnit:
|
|
198
|
+
:param _LifeSpanUnit: <p>授权时长单位,枚举值有Y年/M月/D日三种</p>
|
|
199
199
|
:type LifeSpanUnit: str
|
|
200
|
-
:param _LicenseType:
|
|
200
|
+
:param _LicenseType: <p>授权的类型:Standard正式版/Development开发版/Trial体验版</p>
|
|
201
201
|
:type LicenseType: str
|
|
202
|
-
:param _LicenseLevel:
|
|
202
|
+
:param _LicenseLevel: <p>授权的层级:Master 主授权;Child 子授权/增强型授权</p>
|
|
203
203
|
:type LicenseLevel: str
|
|
204
204
|
"""
|
|
205
205
|
self._LicenseId = None
|
|
@@ -223,7 +223,7 @@ class License(AbstractModel):
|
|
|
223
223
|
|
|
224
224
|
@property
|
|
225
225
|
def LicenseId(self):
|
|
226
|
-
r"""License ID
|
|
226
|
+
r"""<p>License ID</p>
|
|
227
227
|
:rtype: str
|
|
228
228
|
"""
|
|
229
229
|
return self._LicenseId
|
|
@@ -234,7 +234,7 @@ class License(AbstractModel):
|
|
|
234
234
|
|
|
235
235
|
@property
|
|
236
236
|
def LicenseMode(self):
|
|
237
|
-
r"""
|
|
237
|
+
r"""<p>软件授权模式。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>Permanent</td><td>永久授权。该授权不受有效期限制。</td></tr><tr><td>Subscription</td><td>订阅授权。授权如果过了有效期,则会进入过期状态。</td></tr><tr><td>Accept</td><td>验收期授权。用于需要验收的软件处于验收期间的授权,授权如果过了验收有效期,则会进入过期状态。</td></tr></tbody></table></p>
|
|
238
238
|
:rtype: str
|
|
239
239
|
"""
|
|
240
240
|
return self._LicenseMode
|
|
@@ -245,7 +245,7 @@ class License(AbstractModel):
|
|
|
245
245
|
|
|
246
246
|
@property
|
|
247
247
|
def LicenseStatus(self):
|
|
248
|
-
r"""
|
|
248
|
+
r"""<p>软件的授权状态。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>Issued</td><td>已颁发,等待激活。一般来说,如果软件已经在运行,不会出现该状态。</td></tr><tr><td>Active</td><td>授权在有效期内,这是软件运行期间最常见的状态。</td></tr><tr><td>Expired</td><td>授权已过期。订阅类的软件授权有有效期,如果服务器时间已晚于有效期,则会进入过期状态。</td></tr><tr><td>Isolated</td><td>授权已隔离。有截止日期的授权,当用户授权到期时,先进入此状态,用户可以去续费,超过7天不续费则授权进入Destroyed状态。</td></tr><tr><td>Destroyed</td><td>授权已失效/销毁。用户如果退货软件,则授权会自动失效。</td></tr></tbody></table></p>
|
|
249
249
|
:rtype: str
|
|
250
250
|
"""
|
|
251
251
|
return self._LicenseStatus
|
|
@@ -256,7 +256,7 @@ class License(AbstractModel):
|
|
|
256
256
|
|
|
257
257
|
@property
|
|
258
258
|
def ProviderId(self):
|
|
259
|
-
r"""
|
|
259
|
+
r"""<p>软件供应方 ID。</p>
|
|
260
260
|
:rtype: int
|
|
261
261
|
"""
|
|
262
262
|
return self._ProviderId
|
|
@@ -267,7 +267,7 @@ class License(AbstractModel):
|
|
|
267
267
|
|
|
268
268
|
@property
|
|
269
269
|
def SoftwarePackageId(self):
|
|
270
|
-
r"""
|
|
270
|
+
r"""<p>软件包 ID。</p>
|
|
271
271
|
:rtype: str
|
|
272
272
|
"""
|
|
273
273
|
return self._SoftwarePackageId
|
|
@@ -278,7 +278,7 @@ class License(AbstractModel):
|
|
|
278
278
|
|
|
279
279
|
@property
|
|
280
280
|
def SoftwarePackageVersion(self):
|
|
281
|
-
r"""
|
|
281
|
+
r"""<p>软件包版本。</p>
|
|
282
282
|
:rtype: str
|
|
283
283
|
"""
|
|
284
284
|
return self._SoftwarePackageVersion
|
|
@@ -289,7 +289,7 @@ class License(AbstractModel):
|
|
|
289
289
|
|
|
290
290
|
@property
|
|
291
291
|
def AuthorizedUserUin(self):
|
|
292
|
-
r"""
|
|
292
|
+
r"""<p>被授权的用户 UIN。</p>
|
|
293
293
|
:rtype: str
|
|
294
294
|
"""
|
|
295
295
|
return self._AuthorizedUserUin
|
|
@@ -300,7 +300,7 @@ class License(AbstractModel):
|
|
|
300
300
|
|
|
301
301
|
@property
|
|
302
302
|
def AuthorizedCloudappId(self):
|
|
303
|
-
r"""
|
|
303
|
+
r"""<p>被授权的应用实例 ID。</p>
|
|
304
304
|
:rtype: str
|
|
305
305
|
"""
|
|
306
306
|
return self._AuthorizedCloudappId
|
|
@@ -311,7 +311,7 @@ class License(AbstractModel):
|
|
|
311
311
|
|
|
312
312
|
@property
|
|
313
313
|
def AuthorizedCloudappRoleId(self):
|
|
314
|
-
r"""
|
|
314
|
+
r"""<p>被授权的角色 ID。</p>
|
|
315
315
|
:rtype: str
|
|
316
316
|
"""
|
|
317
317
|
return self._AuthorizedCloudappRoleId
|
|
@@ -322,7 +322,7 @@ class License(AbstractModel):
|
|
|
322
322
|
|
|
323
323
|
@property
|
|
324
324
|
def AuthorizedSpecification(self):
|
|
325
|
-
r"""
|
|
325
|
+
r"""<p>被授权的软件规格,具体字段请参考结构SaleParam</p>
|
|
326
326
|
:rtype: list of SaleParam
|
|
327
327
|
"""
|
|
328
328
|
return self._AuthorizedSpecification
|
|
@@ -333,7 +333,7 @@ class License(AbstractModel):
|
|
|
333
333
|
|
|
334
334
|
@property
|
|
335
335
|
def BillingMode(self):
|
|
336
|
-
r"""
|
|
336
|
+
r"""<p>被授权的软件的计费模式。<table><thead><tr><th>枚举值</th><th>说明</th></tr></thead><tbody><tr><td>1</td><td>线上计费,软件的授权从腾讯云线上购买,支持续费、退款等操作。</td></tr><tr><td>2</td><td>线下计费,软件的授权线下签订合同购买,定向客户交付,无法从线上续费和退款。</td></tr><tr><td>4</td><td>免费</td></tr></tbody></table></p>
|
|
337
337
|
:rtype: int
|
|
338
338
|
"""
|
|
339
339
|
return self._BillingMode
|
|
@@ -344,7 +344,7 @@ class License(AbstractModel):
|
|
|
344
344
|
|
|
345
345
|
@property
|
|
346
346
|
def LifeSpan(self):
|
|
347
|
-
r"""
|
|
347
|
+
r"""<p>授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)</p>
|
|
348
348
|
:rtype: int
|
|
349
349
|
"""
|
|
350
350
|
return self._LifeSpan
|
|
@@ -355,7 +355,7 @@ class License(AbstractModel):
|
|
|
355
355
|
|
|
356
356
|
@property
|
|
357
357
|
def IssueDate(self):
|
|
358
|
-
r"""
|
|
358
|
+
r"""<p>授权颁发时间。</p>
|
|
359
359
|
:rtype: str
|
|
360
360
|
"""
|
|
361
361
|
return self._IssueDate
|
|
@@ -366,7 +366,7 @@ class License(AbstractModel):
|
|
|
366
366
|
|
|
367
367
|
@property
|
|
368
368
|
def ActivationDate(self):
|
|
369
|
-
r"""
|
|
369
|
+
r"""<p>授权激活时间,如从未激活则返回 null。</p>
|
|
370
370
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
371
371
|
:rtype: str
|
|
372
372
|
"""
|
|
@@ -378,7 +378,7 @@ class License(AbstractModel):
|
|
|
378
378
|
|
|
379
379
|
@property
|
|
380
380
|
def ExpirationDate(self):
|
|
381
|
-
r"""
|
|
381
|
+
r"""<p>授权过期时间</p>
|
|
382
382
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
383
383
|
:rtype: str
|
|
384
384
|
"""
|
|
@@ -390,7 +390,7 @@ class License(AbstractModel):
|
|
|
390
390
|
|
|
391
391
|
@property
|
|
392
392
|
def LifeSpanUnit(self):
|
|
393
|
-
r"""
|
|
393
|
+
r"""<p>授权时长单位,枚举值有Y年/M月/D日三种</p>
|
|
394
394
|
:rtype: str
|
|
395
395
|
"""
|
|
396
396
|
return self._LifeSpanUnit
|
|
@@ -401,7 +401,7 @@ class License(AbstractModel):
|
|
|
401
401
|
|
|
402
402
|
@property
|
|
403
403
|
def LicenseType(self):
|
|
404
|
-
r"""
|
|
404
|
+
r"""<p>授权的类型:Standard正式版/Development开发版/Trial体验版</p>
|
|
405
405
|
:rtype: str
|
|
406
406
|
"""
|
|
407
407
|
return self._LicenseType
|
|
@@ -412,7 +412,7 @@ class License(AbstractModel):
|
|
|
412
412
|
|
|
413
413
|
@property
|
|
414
414
|
def LicenseLevel(self):
|
|
415
|
-
r"""
|
|
415
|
+
r"""<p>授权的层级:Master 主授权;Child 子授权/增强型授权</p>
|
|
416
416
|
:rtype: str
|
|
417
417
|
"""
|
|
418
418
|
return self._LicenseLevel
|
|
@@ -468,6 +468,10 @@ class SaleParam(AbstractModel):
|
|
|
468
468
|
:param _ParamKeyName: 售卖参数的展示名称
|
|
469
469
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
470
470
|
:type ParamKeyName: str
|
|
471
|
+
:param _ParamId: 参数 Id
|
|
472
|
+
:type ParamId: str
|
|
473
|
+
:param _ParamValueId: 参数值 Id
|
|
474
|
+
:type ParamValueId: str
|
|
471
475
|
:param _ParamValue: 售卖参数值,当ParamType=Quant时,该值有可能为Null
|
|
472
476
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
473
477
|
:type ParamValue: str
|
|
@@ -477,12 +481,23 @@ class SaleParam(AbstractModel):
|
|
|
477
481
|
:param _ParamType: 售卖参数的类型,目前支持枚举类Enum/数量类Quant
|
|
478
482
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
479
483
|
:type ParamType: str
|
|
484
|
+
:param _ModuleId: 模块ID
|
|
485
|
+
:type ModuleId: str
|
|
486
|
+
:param _ModuleKey: 模块key
|
|
487
|
+
:type ModuleKey: str
|
|
488
|
+
:param _ModuleName: 模块名称
|
|
489
|
+
:type ModuleName: str
|
|
480
490
|
"""
|
|
481
491
|
self._ParamKey = None
|
|
482
492
|
self._ParamKeyName = None
|
|
493
|
+
self._ParamId = None
|
|
494
|
+
self._ParamValueId = None
|
|
483
495
|
self._ParamValue = None
|
|
484
496
|
self._ParamValueName = None
|
|
485
497
|
self._ParamType = None
|
|
498
|
+
self._ModuleId = None
|
|
499
|
+
self._ModuleKey = None
|
|
500
|
+
self._ModuleName = None
|
|
486
501
|
|
|
487
502
|
@property
|
|
488
503
|
def ParamKey(self):
|
|
@@ -507,6 +522,28 @@ class SaleParam(AbstractModel):
|
|
|
507
522
|
def ParamKeyName(self, ParamKeyName):
|
|
508
523
|
self._ParamKeyName = ParamKeyName
|
|
509
524
|
|
|
525
|
+
@property
|
|
526
|
+
def ParamId(self):
|
|
527
|
+
r"""参数 Id
|
|
528
|
+
:rtype: str
|
|
529
|
+
"""
|
|
530
|
+
return self._ParamId
|
|
531
|
+
|
|
532
|
+
@ParamId.setter
|
|
533
|
+
def ParamId(self, ParamId):
|
|
534
|
+
self._ParamId = ParamId
|
|
535
|
+
|
|
536
|
+
@property
|
|
537
|
+
def ParamValueId(self):
|
|
538
|
+
r"""参数值 Id
|
|
539
|
+
:rtype: str
|
|
540
|
+
"""
|
|
541
|
+
return self._ParamValueId
|
|
542
|
+
|
|
543
|
+
@ParamValueId.setter
|
|
544
|
+
def ParamValueId(self, ParamValueId):
|
|
545
|
+
self._ParamValueId = ParamValueId
|
|
546
|
+
|
|
510
547
|
@property
|
|
511
548
|
def ParamValue(self):
|
|
512
549
|
r"""售卖参数值,当ParamType=Quant时,该值有可能为Null
|
|
@@ -543,13 +580,51 @@ class SaleParam(AbstractModel):
|
|
|
543
580
|
def ParamType(self, ParamType):
|
|
544
581
|
self._ParamType = ParamType
|
|
545
582
|
|
|
583
|
+
@property
|
|
584
|
+
def ModuleId(self):
|
|
585
|
+
r"""模块ID
|
|
586
|
+
:rtype: str
|
|
587
|
+
"""
|
|
588
|
+
return self._ModuleId
|
|
589
|
+
|
|
590
|
+
@ModuleId.setter
|
|
591
|
+
def ModuleId(self, ModuleId):
|
|
592
|
+
self._ModuleId = ModuleId
|
|
593
|
+
|
|
594
|
+
@property
|
|
595
|
+
def ModuleKey(self):
|
|
596
|
+
r"""模块key
|
|
597
|
+
:rtype: str
|
|
598
|
+
"""
|
|
599
|
+
return self._ModuleKey
|
|
600
|
+
|
|
601
|
+
@ModuleKey.setter
|
|
602
|
+
def ModuleKey(self, ModuleKey):
|
|
603
|
+
self._ModuleKey = ModuleKey
|
|
604
|
+
|
|
605
|
+
@property
|
|
606
|
+
def ModuleName(self):
|
|
607
|
+
r"""模块名称
|
|
608
|
+
:rtype: str
|
|
609
|
+
"""
|
|
610
|
+
return self._ModuleName
|
|
611
|
+
|
|
612
|
+
@ModuleName.setter
|
|
613
|
+
def ModuleName(self, ModuleName):
|
|
614
|
+
self._ModuleName = ModuleName
|
|
615
|
+
|
|
546
616
|
|
|
547
617
|
def _deserialize(self, params):
|
|
548
618
|
self._ParamKey = params.get("ParamKey")
|
|
549
619
|
self._ParamKeyName = params.get("ParamKeyName")
|
|
620
|
+
self._ParamId = params.get("ParamId")
|
|
621
|
+
self._ParamValueId = params.get("ParamValueId")
|
|
550
622
|
self._ParamValue = params.get("ParamValue")
|
|
551
623
|
self._ParamValueName = params.get("ParamValueName")
|
|
552
624
|
self._ParamType = params.get("ParamType")
|
|
625
|
+
self._ModuleId = params.get("ModuleId")
|
|
626
|
+
self._ModuleKey = params.get("ModuleKey")
|
|
627
|
+
self._ModuleName = params.get("ModuleName")
|
|
553
628
|
memeber_set = set(params.keys())
|
|
554
629
|
for name, value in vars(self).items():
|
|
555
630
|
property_name = name[1:]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cloudapp
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1.20
|
|
4
4
|
Summary: Tencent Cloud Cloudapp SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.20
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -44,5 +44,3 @@ or download source code from github and install:
|
|
|
44
44
|
$ cd tencentcloud-sdk-python
|
|
45
45
|
$ python package.py --components common cloudapp
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=Pf_GEGWGhyhYYQr94uZEjfdLMiVP2DtbP4829a1dQjE,629
|
|
2
|
+
tencentcloud/cloudapp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/cloudapp/v20220530/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/cloudapp/v20220530/cloudapp_client.py,sha256=tC0ep32jLbR8jwUoxId4AzXtRipSVHfKDQTqfSHm5Hs,8807
|
|
5
|
+
tencentcloud/cloudapp/v20220530/cloudapp_client_async.py,sha256=EgSOjvrPDkvgjOUdA5YtT5LzeEofdfRHnijhG0O_56A,8111
|
|
6
|
+
tencentcloud/cloudapp/v20220530/errorcodes.py,sha256=--3Fd24HvXy0prtDI2e7wKxr81LAvSqrDzBk0T20VmE,853
|
|
7
|
+
tencentcloud/cloudapp/v20220530/models.py,sha256=DdGlJ0vtvJ9J44DWqoIlJSFIqMM1wYgffDjSaSdNZMk,25558
|
|
8
|
+
tencentcloud_sdk_python_cloudapp-3.1.20.dist-info/METADATA,sha256=CHSDiAN5RuHBcBtj4quEQyADPAdkB3WH4TOqvGLK0aw,1520
|
|
9
|
+
tencentcloud_sdk_python_cloudapp-3.1.20.dist-info/WHEEL,sha256=Ll72iyqtt6Rbxp-Q7FSafYA1LeRv98X15xcZWRsFEmY,109
|
|
10
|
+
tencentcloud_sdk_python_cloudapp-3.1.20.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_cloudapp-3.1.20.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=paY6MOsvDwzIWBrTvSW3NCWnBF6uAWxXOOZIRopE7U0,631
|
|
2
|
-
tencentcloud/cloudapp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/cloudapp/v20220530/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/cloudapp/v20220530/cloudapp_client.py,sha256=tC0ep32jLbR8jwUoxId4AzXtRipSVHfKDQTqfSHm5Hs,8807
|
|
5
|
-
tencentcloud/cloudapp/v20220530/errorcodes.py,sha256=--3Fd24HvXy0prtDI2e7wKxr81LAvSqrDzBk0T20VmE,853
|
|
6
|
-
tencentcloud/cloudapp/v20220530/models.py,sha256=EZosqf8MMojnlvegIziJ_Mge21p018HQU0ykldZjo-I,23449
|
|
7
|
-
tencentcloud_sdk_python_cloudapp-3.0.1460.dist-info/METADATA,sha256=TZoswotBmG6Zg5d6nNWXMEzFeeZbom_gRe5-v1HjdlM,1528
|
|
8
|
-
tencentcloud_sdk_python_cloudapp-3.0.1460.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
9
|
-
tencentcloud_sdk_python_cloudapp-3.0.1460.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
10
|
-
tencentcloud_sdk_python_cloudapp-3.0.1460.dist-info/RECORD,,
|