tencentcloud-sdk-python-cloudapp 3.0.1475__py2.py3-none-any.whl → 3.1.33__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 CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1475'
17
+ __version__ = '3.1.33'
@@ -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
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
+ }
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)
@@ -102,6 +102,57 @@ class DescribeLicenseResponse(AbstractModel):
102
102
  self._RequestId = params.get("RequestId")
103
103
 
104
104
 
105
+ class DisplayMetadata(AbstractModel):
106
+ r"""元数据展示信息
107
+
108
+ """
109
+
110
+ def __init__(self):
111
+ r"""
112
+ :param _Name: <p>展示的名称</p>
113
+ :type Name: str
114
+ :param _Value: <p>展示的值</p>
115
+ :type Value: str
116
+ """
117
+ self._Name = None
118
+ self._Value = None
119
+
120
+ @property
121
+ def Name(self):
122
+ r"""<p>展示的名称</p>
123
+ :rtype: str
124
+ """
125
+ return self._Name
126
+
127
+ @Name.setter
128
+ def Name(self, Name):
129
+ self._Name = Name
130
+
131
+ @property
132
+ def Value(self):
133
+ r"""<p>展示的值</p>
134
+ :rtype: str
135
+ """
136
+ return self._Value
137
+
138
+ @Value.setter
139
+ def Value(self, Value):
140
+ self._Value = Value
141
+
142
+
143
+ def _deserialize(self, params):
144
+ self._Name = params.get("Name")
145
+ self._Value = params.get("Value")
146
+ memeber_set = set(params.keys())
147
+ for name, value in vars(self).items():
148
+ property_name = name[1:]
149
+ if property_name in memeber_set:
150
+ memeber_set.remove(property_name)
151
+ if len(memeber_set) > 0:
152
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
153
+
154
+
155
+
105
156
  class Filter(AbstractModel):
106
157
  r"""描述键值对过滤器,用于条件过滤查询。例如过滤 ID、名称、状态等
107
158
 
@@ -163,44 +214,48 @@ class License(AbstractModel):
163
214
 
164
215
  def __init__(self):
165
216
  r"""
166
- :param _LicenseId: License ID
217
+ :param _LicenseId: <p>License ID</p>
167
218
  :type LicenseId: str
168
- :param _LicenseMode: 软件授权模式。<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>
219
+ :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
220
  :type LicenseMode: str
170
- :param _LicenseStatus: 软件的授权状态。<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>
221
+ :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
222
  :type LicenseStatus: str
172
- :param _ProviderId: 软件供应方 ID
223
+ :param _ProviderId: <p>软件供应方 ID。</p>
173
224
  :type ProviderId: int
174
- :param _SoftwarePackageId: 软件包 ID
225
+ :param _SoftwarePackageId: <p>软件包 ID。</p>
175
226
  :type SoftwarePackageId: str
176
- :param _SoftwarePackageVersion: 软件包版本。
227
+ :param _SoftwarePackageVersion: <p>软件包版本。</p>
177
228
  :type SoftwarePackageVersion: str
178
- :param _AuthorizedUserUin: 被授权的用户 UIN
229
+ :param _AuthorizedUserUin: <p>被授权的用户 UIN。</p>
179
230
  :type AuthorizedUserUin: str
180
- :param _AuthorizedCloudappId: 被授权的应用实例 ID
231
+ :param _AuthorizedCloudappId: <p>被授权的应用实例 ID。</p>
181
232
  :type AuthorizedCloudappId: str
182
- :param _AuthorizedCloudappRoleId: 被授权的角色 ID
233
+ :param _AuthorizedCloudappRoleId: <p>被授权的角色 ID。</p>
183
234
  :type AuthorizedCloudappRoleId: str
184
- :param _AuthorizedSpecification: 被授权的软件规格,具体字段请参考结构SaleParam
235
+ :param _AuthorizedSpecification: <p>被授权的软件规格,具体字段请参考结构SaleParam</p>
185
236
  :type AuthorizedSpecification: list of SaleParam
186
- :param _BillingMode: 被授权的软件的计费模式。<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>
237
+ :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
238
  :type BillingMode: int
188
- :param _LifeSpan: 授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)
239
+ :param _LifeSpan: <p>授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)</p>
189
240
  :type LifeSpan: int
190
- :param _IssueDate: 授权颁发时间。
241
+ :param _IssueDate: <p>授权颁发时间。</p>
191
242
  :type IssueDate: str
192
- :param _ActivationDate: 授权激活时间,如从未激活则返回 null
243
+ :param _ActivationDate: <p>授权激活时间,如从未激活则返回 null。</p>
193
244
  注意:此字段可能返回 null,表示取不到有效值。
194
245
  :type ActivationDate: str
195
- :param _ExpirationDate: 授权过期时间
246
+ :param _ExpirationDate: <p>授权过期时间</p>
196
247
  注意:此字段可能返回 null,表示取不到有效值。
197
248
  :type ExpirationDate: str
198
- :param _LifeSpanUnit: 授权时长单位,枚举值有Y年/M月/D日三种
249
+ :param _LifeSpanUnit: <p>授权时长单位,枚举值有Y年/M月/D日三种</p>
199
250
  :type LifeSpanUnit: str
200
- :param _LicenseType: 授权的类型:Standard正式版/Development开发版/Trial体验版
251
+ :param _LicenseType: <p>授权的类型:Standard正式版/Development开发版/Trial体验版</p>
201
252
  :type LicenseType: str
202
- :param _LicenseLevel: 授权的层级:Master 主授权;Child 子授权/增强型授权
253
+ :param _LicenseLevel: <p>授权的层级:Master 主授权;Child 子授权/增强型授权</p>
203
254
  :type LicenseLevel: str
255
+ :param _LicenseData: <p>License 内容信息</p>
256
+ :type LicenseData: :class:`tencentcloud.cloudapp.v20220530.models.LicenseData`
257
+ :param _IssueURL: <p>License 颁发地址</p>
258
+ :type IssueURL: str
204
259
  """
205
260
  self._LicenseId = None
206
261
  self._LicenseMode = None
@@ -220,10 +275,12 @@ class License(AbstractModel):
220
275
  self._LifeSpanUnit = None
221
276
  self._LicenseType = None
222
277
  self._LicenseLevel = None
278
+ self._LicenseData = None
279
+ self._IssueURL = None
223
280
 
224
281
  @property
225
282
  def LicenseId(self):
226
- r"""License ID
283
+ r"""<p>License ID</p>
227
284
  :rtype: str
228
285
  """
229
286
  return self._LicenseId
@@ -234,7 +291,7 @@ class License(AbstractModel):
234
291
 
235
292
  @property
236
293
  def LicenseMode(self):
237
- r"""软件授权模式。<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>
294
+ 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
295
  :rtype: str
239
296
  """
240
297
  return self._LicenseMode
@@ -245,7 +302,7 @@ class License(AbstractModel):
245
302
 
246
303
  @property
247
304
  def LicenseStatus(self):
248
- r"""软件的授权状态。<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>
305
+ 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
306
  :rtype: str
250
307
  """
251
308
  return self._LicenseStatus
@@ -256,7 +313,7 @@ class License(AbstractModel):
256
313
 
257
314
  @property
258
315
  def ProviderId(self):
259
- r"""软件供应方 ID
316
+ r"""<p>软件供应方 ID。</p>
260
317
  :rtype: int
261
318
  """
262
319
  return self._ProviderId
@@ -267,7 +324,7 @@ class License(AbstractModel):
267
324
 
268
325
  @property
269
326
  def SoftwarePackageId(self):
270
- r"""软件包 ID
327
+ r"""<p>软件包 ID。</p>
271
328
  :rtype: str
272
329
  """
273
330
  return self._SoftwarePackageId
@@ -278,7 +335,7 @@ class License(AbstractModel):
278
335
 
279
336
  @property
280
337
  def SoftwarePackageVersion(self):
281
- r"""软件包版本。
338
+ r"""<p>软件包版本。</p>
282
339
  :rtype: str
283
340
  """
284
341
  return self._SoftwarePackageVersion
@@ -289,7 +346,7 @@ class License(AbstractModel):
289
346
 
290
347
  @property
291
348
  def AuthorizedUserUin(self):
292
- r"""被授权的用户 UIN
349
+ r"""<p>被授权的用户 UIN。</p>
293
350
  :rtype: str
294
351
  """
295
352
  return self._AuthorizedUserUin
@@ -300,7 +357,7 @@ class License(AbstractModel):
300
357
 
301
358
  @property
302
359
  def AuthorizedCloudappId(self):
303
- r"""被授权的应用实例 ID
360
+ r"""<p>被授权的应用实例 ID。</p>
304
361
  :rtype: str
305
362
  """
306
363
  return self._AuthorizedCloudappId
@@ -311,7 +368,7 @@ class License(AbstractModel):
311
368
 
312
369
  @property
313
370
  def AuthorizedCloudappRoleId(self):
314
- r"""被授权的角色 ID
371
+ r"""<p>被授权的角色 ID。</p>
315
372
  :rtype: str
316
373
  """
317
374
  return self._AuthorizedCloudappRoleId
@@ -322,7 +379,7 @@ class License(AbstractModel):
322
379
 
323
380
  @property
324
381
  def AuthorizedSpecification(self):
325
- r"""被授权的软件规格,具体字段请参考结构SaleParam
382
+ r"""<p>被授权的软件规格,具体字段请参考结构SaleParam</p>
326
383
  :rtype: list of SaleParam
327
384
  """
328
385
  return self._AuthorizedSpecification
@@ -333,7 +390,7 @@ class License(AbstractModel):
333
390
 
334
391
  @property
335
392
  def BillingMode(self):
336
- r"""被授权的软件的计费模式。<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>
393
+ 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
394
  :rtype: int
338
395
  """
339
396
  return self._BillingMode
@@ -344,7 +401,7 @@ class License(AbstractModel):
344
401
 
345
402
  @property
346
403
  def LifeSpan(self):
347
- r"""授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)
404
+ r"""<p>授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)</p>
348
405
  :rtype: int
349
406
  """
350
407
  return self._LifeSpan
@@ -355,7 +412,7 @@ class License(AbstractModel):
355
412
 
356
413
  @property
357
414
  def IssueDate(self):
358
- r"""授权颁发时间。
415
+ r"""<p>授权颁发时间。</p>
359
416
  :rtype: str
360
417
  """
361
418
  return self._IssueDate
@@ -366,7 +423,7 @@ class License(AbstractModel):
366
423
 
367
424
  @property
368
425
  def ActivationDate(self):
369
- r"""授权激活时间,如从未激活则返回 null
426
+ r"""<p>授权激活时间,如从未激活则返回 null。</p>
370
427
  注意:此字段可能返回 null,表示取不到有效值。
371
428
  :rtype: str
372
429
  """
@@ -378,7 +435,7 @@ class License(AbstractModel):
378
435
 
379
436
  @property
380
437
  def ExpirationDate(self):
381
- r"""授权过期时间
438
+ r"""<p>授权过期时间</p>
382
439
  注意:此字段可能返回 null,表示取不到有效值。
383
440
  :rtype: str
384
441
  """
@@ -390,7 +447,7 @@ class License(AbstractModel):
390
447
 
391
448
  @property
392
449
  def LifeSpanUnit(self):
393
- r"""授权时长单位,枚举值有Y年/M月/D日三种
450
+ r"""<p>授权时长单位,枚举值有Y年/M月/D日三种</p>
394
451
  :rtype: str
395
452
  """
396
453
  return self._LifeSpanUnit
@@ -401,7 +458,7 @@ class License(AbstractModel):
401
458
 
402
459
  @property
403
460
  def LicenseType(self):
404
- r"""授权的类型:Standard正式版/Development开发版/Trial体验版
461
+ r"""<p>授权的类型:Standard正式版/Development开发版/Trial体验版</p>
405
462
  :rtype: str
406
463
  """
407
464
  return self._LicenseType
@@ -412,7 +469,7 @@ class License(AbstractModel):
412
469
 
413
470
  @property
414
471
  def LicenseLevel(self):
415
- r"""授权的层级:Master 主授权;Child 子授权/增强型授权
472
+ r"""<p>授权的层级:Master 主授权;Child 子授权/增强型授权</p>
416
473
  :rtype: str
417
474
  """
418
475
  return self._LicenseLevel
@@ -421,6 +478,28 @@ class License(AbstractModel):
421
478
  def LicenseLevel(self, LicenseLevel):
422
479
  self._LicenseLevel = LicenseLevel
423
480
 
481
+ @property
482
+ def LicenseData(self):
483
+ r"""<p>License 内容信息</p>
484
+ :rtype: :class:`tencentcloud.cloudapp.v20220530.models.LicenseData`
485
+ """
486
+ return self._LicenseData
487
+
488
+ @LicenseData.setter
489
+ def LicenseData(self, LicenseData):
490
+ self._LicenseData = LicenseData
491
+
492
+ @property
493
+ def IssueURL(self):
494
+ r"""<p>License 颁发地址</p>
495
+ :rtype: str
496
+ """
497
+ return self._IssueURL
498
+
499
+ @IssueURL.setter
500
+ def IssueURL(self, IssueURL):
501
+ self._IssueURL = IssueURL
502
+
424
503
 
425
504
  def _deserialize(self, params):
426
505
  self._LicenseId = params.get("LicenseId")
@@ -446,6 +525,81 @@ class License(AbstractModel):
446
525
  self._LifeSpanUnit = params.get("LifeSpanUnit")
447
526
  self._LicenseType = params.get("LicenseType")
448
527
  self._LicenseLevel = params.get("LicenseLevel")
528
+ if params.get("LicenseData") is not None:
529
+ self._LicenseData = LicenseData()
530
+ self._LicenseData._deserialize(params.get("LicenseData"))
531
+ self._IssueURL = params.get("IssueURL")
532
+ memeber_set = set(params.keys())
533
+ for name, value in vars(self).items():
534
+ property_name = name[1:]
535
+ if property_name in memeber_set:
536
+ memeber_set.remove(property_name)
537
+ if len(memeber_set) > 0:
538
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
539
+
540
+
541
+
542
+ class LicenseData(AbstractModel):
543
+ r"""License 内容信息
544
+
545
+ """
546
+
547
+ def __init__(self):
548
+ r"""
549
+ :param _Text: <p>License 文本内容。支持密钥、证书等文本形式,二进制的密钥需要伙伴进行 base64 转码</p>
550
+ :type Text: str
551
+ :param _DeploymentOutput: <p>部署服务输出信息,基于部署签发 License 时需要该参数。</p>
552
+ :type DeploymentOutput: str
553
+ :param _Metadata: <p>License 前端展示信息。key、value 形式,比如可传入,颁发机构:XXXX 有限公司</p>
554
+ :type Metadata: list of DisplayMetadata
555
+ """
556
+ self._Text = None
557
+ self._DeploymentOutput = None
558
+ self._Metadata = None
559
+
560
+ @property
561
+ def Text(self):
562
+ r"""<p>License 文本内容。支持密钥、证书等文本形式,二进制的密钥需要伙伴进行 base64 转码</p>
563
+ :rtype: str
564
+ """
565
+ return self._Text
566
+
567
+ @Text.setter
568
+ def Text(self, Text):
569
+ self._Text = Text
570
+
571
+ @property
572
+ def DeploymentOutput(self):
573
+ r"""<p>部署服务输出信息,基于部署签发 License 时需要该参数。</p>
574
+ :rtype: str
575
+ """
576
+ return self._DeploymentOutput
577
+
578
+ @DeploymentOutput.setter
579
+ def DeploymentOutput(self, DeploymentOutput):
580
+ self._DeploymentOutput = DeploymentOutput
581
+
582
+ @property
583
+ def Metadata(self):
584
+ r"""<p>License 前端展示信息。key、value 形式,比如可传入,颁发机构:XXXX 有限公司</p>
585
+ :rtype: list of DisplayMetadata
586
+ """
587
+ return self._Metadata
588
+
589
+ @Metadata.setter
590
+ def Metadata(self, Metadata):
591
+ self._Metadata = Metadata
592
+
593
+
594
+ def _deserialize(self, params):
595
+ self._Text = params.get("Text")
596
+ self._DeploymentOutput = params.get("DeploymentOutput")
597
+ if params.get("Metadata") is not None:
598
+ self._Metadata = []
599
+ for item in params.get("Metadata"):
600
+ obj = DisplayMetadata()
601
+ obj._deserialize(item)
602
+ self._Metadata.append(obj)
449
603
  memeber_set = set(params.keys())
450
604
  for name, value in vars(self).items():
451
605
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cloudapp
3
- Version: 3.0.1475
3
+ Version: 3.1.33
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 (<4.0.0,>=3.0.1475)
18
+ Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.33
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=TglDu80I-GxPNBtiSv8V-zD-SiYgCOOsMh88zby6mkM,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=S_s3eXmW62jEztOp-5fxH5D1EEAuPI59MkySxNpL-6k,30193
8
+ tencentcloud_sdk_python_cloudapp-3.1.33.dist-info/METADATA,sha256=1r91rSiTF1BNcDHsCd_qAg62h4aiTRzFuQHqg0k3sTU,1520
9
+ tencentcloud_sdk_python_cloudapp-3.1.33.dist-info/WHEEL,sha256=I3glN-nznogni2CWkAvi6vPRkBhTbVeYvJZnIsln6uc,109
10
+ tencentcloud_sdk_python_cloudapp-3.1.33.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
+ tencentcloud_sdk_python_cloudapp-3.1.33.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.37.1)
2
+ Generator: setuptools (75.3.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=tRmXr-ZDvWfwIFktIQ-b1fdkyZKpAoJ89Ao9mKYMqxc,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=ph5zW4BPSFhCAVbCqdmMh7yaY8157D9NrYUrenYSQeg,25306
7
- tencentcloud_sdk_python_cloudapp-3.0.1475.dist-info/METADATA,sha256=9YsOceGi9Ej-V2s2xAxDh-nbk7nFLjopnPT6eLAPs1U,1528
8
- tencentcloud_sdk_python_cloudapp-3.0.1475.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_cloudapp-3.0.1475.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_cloudapp-3.0.1475.dist-info/RECORD,,