tencentcloud-sdk-python-cloudapp 3.1.40__py2.py3-none-any.whl → 3.1.43__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.py +23 -0
- tencentcloud/cloudapp/v20220530/cloudapp_client_async.py +18 -0
- tencentcloud/cloudapp/v20220530/models.py +177 -0
- {tencentcloud_sdk_python_cloudapp-3.1.40.dist-info → tencentcloud_sdk_python_cloudapp-3.1.43.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_cloudapp-3.1.43.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_cloudapp-3.1.40.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_cloudapp-3.1.40.dist-info → tencentcloud_sdk_python_cloudapp-3.1.43.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_cloudapp-3.1.40.dist-info → tencentcloud_sdk_python_cloudapp-3.1.43.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -162,6 +162,29 @@ class CloudappClient(AbstractClient):
|
|
|
162
162
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
163
163
|
|
|
164
164
|
|
|
165
|
+
def IssueLicense(self, request):
|
|
166
|
+
r"""颁发 License
|
|
167
|
+
|
|
168
|
+
:param request: Request instance for IssueLicense.
|
|
169
|
+
:type request: :class:`tencentcloud.cloudapp.v20220530.models.IssueLicenseRequest`
|
|
170
|
+
:rtype: :class:`tencentcloud.cloudapp.v20220530.models.IssueLicenseResponse`
|
|
171
|
+
|
|
172
|
+
"""
|
|
173
|
+
try:
|
|
174
|
+
params = request._serialize()
|
|
175
|
+
headers = request.headers
|
|
176
|
+
body = self.call("IssueLicense", params, headers=headers)
|
|
177
|
+
response = json.loads(body)
|
|
178
|
+
model = models.IssueLicenseResponse()
|
|
179
|
+
model._deserialize(response["Response"])
|
|
180
|
+
return model
|
|
181
|
+
except Exception as e:
|
|
182
|
+
if isinstance(e, TencentCloudSDKException):
|
|
183
|
+
raise
|
|
184
|
+
else:
|
|
185
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
186
|
+
|
|
187
|
+
|
|
165
188
|
def VerifyLicense(self, request):
|
|
166
189
|
r"""从软件进程读取 LICENSE。
|
|
167
190
|
|
|
@@ -156,6 +156,24 @@ class CloudappClient(AbstractClient):
|
|
|
156
156
|
|
|
157
157
|
return await self.call_and_deserialize(**kwargs)
|
|
158
158
|
|
|
159
|
+
async def IssueLicense(
|
|
160
|
+
self,
|
|
161
|
+
request: models.IssueLicenseRequest,
|
|
162
|
+
opts: Dict = None,
|
|
163
|
+
) -> models.IssueLicenseResponse:
|
|
164
|
+
"""
|
|
165
|
+
颁发 License
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
kwargs = {}
|
|
169
|
+
kwargs["action"] = "IssueLicense"
|
|
170
|
+
kwargs["params"] = request._serialize()
|
|
171
|
+
kwargs["resp_cls"] = models.IssueLicenseResponse
|
|
172
|
+
kwargs["headers"] = request.headers
|
|
173
|
+
kwargs["opts"] = opts or {}
|
|
174
|
+
|
|
175
|
+
return await self.call_and_deserialize(**kwargs)
|
|
176
|
+
|
|
159
177
|
async def VerifyLicense(
|
|
160
178
|
self,
|
|
161
179
|
request: models.VerifyLicenseRequest,
|
|
@@ -207,6 +207,132 @@ class Filter(AbstractModel):
|
|
|
207
207
|
|
|
208
208
|
|
|
209
209
|
|
|
210
|
+
class IssueLicenseRequest(AbstractModel):
|
|
211
|
+
r"""IssueLicense请求参数结构体
|
|
212
|
+
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
def __init__(self):
|
|
216
|
+
r"""
|
|
217
|
+
:param _CloudappId: <p>云应用实例 ID</p>
|
|
218
|
+
:type CloudappId: str
|
|
219
|
+
:param _LicenseId: <p>云应用颁发的 License 授权 ID。系统中唯一,伙伴可通过 License 颁发的订阅接口中获取</p>
|
|
220
|
+
:type LicenseId: str
|
|
221
|
+
:param _LicenseData: <p>License 的详细数据</p>
|
|
222
|
+
:type LicenseData: :class:`tencentcloud.cloudapp.v20220530.models.PartnerLicenseData`
|
|
223
|
+
:param _ActivateMode: <p>License 的激活模式</p>枚举值:<ul><li> immediate : 立即激活</li><li> scheduled: 指定时间激活</li></ul>
|
|
224
|
+
:type ActivateMode: str
|
|
225
|
+
:param _ActivateAt: <p>激活时间,指定时间激活时需要传该字段</p>
|
|
226
|
+
:type ActivateAt: str
|
|
227
|
+
"""
|
|
228
|
+
self._CloudappId = None
|
|
229
|
+
self._LicenseId = None
|
|
230
|
+
self._LicenseData = None
|
|
231
|
+
self._ActivateMode = None
|
|
232
|
+
self._ActivateAt = None
|
|
233
|
+
|
|
234
|
+
@property
|
|
235
|
+
def CloudappId(self):
|
|
236
|
+
r"""<p>云应用实例 ID</p>
|
|
237
|
+
:rtype: str
|
|
238
|
+
"""
|
|
239
|
+
return self._CloudappId
|
|
240
|
+
|
|
241
|
+
@CloudappId.setter
|
|
242
|
+
def CloudappId(self, CloudappId):
|
|
243
|
+
self._CloudappId = CloudappId
|
|
244
|
+
|
|
245
|
+
@property
|
|
246
|
+
def LicenseId(self):
|
|
247
|
+
r"""<p>云应用颁发的 License 授权 ID。系统中唯一,伙伴可通过 License 颁发的订阅接口中获取</p>
|
|
248
|
+
:rtype: str
|
|
249
|
+
"""
|
|
250
|
+
return self._LicenseId
|
|
251
|
+
|
|
252
|
+
@LicenseId.setter
|
|
253
|
+
def LicenseId(self, LicenseId):
|
|
254
|
+
self._LicenseId = LicenseId
|
|
255
|
+
|
|
256
|
+
@property
|
|
257
|
+
def LicenseData(self):
|
|
258
|
+
r"""<p>License 的详细数据</p>
|
|
259
|
+
:rtype: :class:`tencentcloud.cloudapp.v20220530.models.PartnerLicenseData`
|
|
260
|
+
"""
|
|
261
|
+
return self._LicenseData
|
|
262
|
+
|
|
263
|
+
@LicenseData.setter
|
|
264
|
+
def LicenseData(self, LicenseData):
|
|
265
|
+
self._LicenseData = LicenseData
|
|
266
|
+
|
|
267
|
+
@property
|
|
268
|
+
def ActivateMode(self):
|
|
269
|
+
r"""<p>License 的激活模式</p>枚举值:<ul><li> immediate : 立即激活</li><li> scheduled: 指定时间激活</li></ul>
|
|
270
|
+
:rtype: str
|
|
271
|
+
"""
|
|
272
|
+
return self._ActivateMode
|
|
273
|
+
|
|
274
|
+
@ActivateMode.setter
|
|
275
|
+
def ActivateMode(self, ActivateMode):
|
|
276
|
+
self._ActivateMode = ActivateMode
|
|
277
|
+
|
|
278
|
+
@property
|
|
279
|
+
def ActivateAt(self):
|
|
280
|
+
r"""<p>激活时间,指定时间激活时需要传该字段</p>
|
|
281
|
+
:rtype: str
|
|
282
|
+
"""
|
|
283
|
+
return self._ActivateAt
|
|
284
|
+
|
|
285
|
+
@ActivateAt.setter
|
|
286
|
+
def ActivateAt(self, ActivateAt):
|
|
287
|
+
self._ActivateAt = ActivateAt
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
def _deserialize(self, params):
|
|
291
|
+
self._CloudappId = params.get("CloudappId")
|
|
292
|
+
self._LicenseId = params.get("LicenseId")
|
|
293
|
+
if params.get("LicenseData") is not None:
|
|
294
|
+
self._LicenseData = PartnerLicenseData()
|
|
295
|
+
self._LicenseData._deserialize(params.get("LicenseData"))
|
|
296
|
+
self._ActivateMode = params.get("ActivateMode")
|
|
297
|
+
self._ActivateAt = params.get("ActivateAt")
|
|
298
|
+
memeber_set = set(params.keys())
|
|
299
|
+
for name, value in vars(self).items():
|
|
300
|
+
property_name = name[1:]
|
|
301
|
+
if property_name in memeber_set:
|
|
302
|
+
memeber_set.remove(property_name)
|
|
303
|
+
if len(memeber_set) > 0:
|
|
304
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
class IssueLicenseResponse(AbstractModel):
|
|
309
|
+
r"""IssueLicense返回参数结构体
|
|
310
|
+
|
|
311
|
+
"""
|
|
312
|
+
|
|
313
|
+
def __init__(self):
|
|
314
|
+
r"""
|
|
315
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
316
|
+
:type RequestId: str
|
|
317
|
+
"""
|
|
318
|
+
self._RequestId = None
|
|
319
|
+
|
|
320
|
+
@property
|
|
321
|
+
def RequestId(self):
|
|
322
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
323
|
+
:rtype: str
|
|
324
|
+
"""
|
|
325
|
+
return self._RequestId
|
|
326
|
+
|
|
327
|
+
@RequestId.setter
|
|
328
|
+
def RequestId(self, RequestId):
|
|
329
|
+
self._RequestId = RequestId
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
def _deserialize(self, params):
|
|
333
|
+
self._RequestId = params.get("RequestId")
|
|
334
|
+
|
|
335
|
+
|
|
210
336
|
class License(AbstractModel):
|
|
211
337
|
r"""表示应用实例的软件授权,包含颁发信息、激活信息等内容。
|
|
212
338
|
|
|
@@ -640,6 +766,57 @@ class LicenseData(AbstractModel):
|
|
|
640
766
|
|
|
641
767
|
|
|
642
768
|
|
|
769
|
+
class PartnerLicenseData(AbstractModel):
|
|
770
|
+
r"""License 内容信息
|
|
771
|
+
|
|
772
|
+
"""
|
|
773
|
+
|
|
774
|
+
def __init__(self):
|
|
775
|
+
r"""
|
|
776
|
+
:param _Text: <p>License 文本内容。可传入密钥、证书等文本型 License 内容,二进制内容请进行 base64 编码</p>
|
|
777
|
+
:type Text: str
|
|
778
|
+
:param _ExtraData: <p>License 的额外信息,JSON 字符串格式</p>
|
|
779
|
+
:type ExtraData: str
|
|
780
|
+
"""
|
|
781
|
+
self._Text = None
|
|
782
|
+
self._ExtraData = None
|
|
783
|
+
|
|
784
|
+
@property
|
|
785
|
+
def Text(self):
|
|
786
|
+
r"""<p>License 文本内容。可传入密钥、证书等文本型 License 内容,二进制内容请进行 base64 编码</p>
|
|
787
|
+
:rtype: str
|
|
788
|
+
"""
|
|
789
|
+
return self._Text
|
|
790
|
+
|
|
791
|
+
@Text.setter
|
|
792
|
+
def Text(self, Text):
|
|
793
|
+
self._Text = Text
|
|
794
|
+
|
|
795
|
+
@property
|
|
796
|
+
def ExtraData(self):
|
|
797
|
+
r"""<p>License 的额外信息,JSON 字符串格式</p>
|
|
798
|
+
:rtype: str
|
|
799
|
+
"""
|
|
800
|
+
return self._ExtraData
|
|
801
|
+
|
|
802
|
+
@ExtraData.setter
|
|
803
|
+
def ExtraData(self, ExtraData):
|
|
804
|
+
self._ExtraData = ExtraData
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
def _deserialize(self, params):
|
|
808
|
+
self._Text = params.get("Text")
|
|
809
|
+
self._ExtraData = params.get("ExtraData")
|
|
810
|
+
memeber_set = set(params.keys())
|
|
811
|
+
for name, value in vars(self).items():
|
|
812
|
+
property_name = name[1:]
|
|
813
|
+
if property_name in memeber_set:
|
|
814
|
+
memeber_set.remove(property_name)
|
|
815
|
+
if len(memeber_set) > 0:
|
|
816
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
|
|
643
820
|
class SaleParam(AbstractModel):
|
|
644
821
|
r"""表示商品 SKU 的单个售卖参数
|
|
645
822
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cloudapp
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.43
|
|
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.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.43
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=1lxcM80RWVOZKsweYR7qlMn3Ck_Ga03gteNFVJe4q7g,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=phtXasS2CCcSZkHT6TPMNJ55MOtoHE5lhYpnINl1gtE,9653
|
|
5
|
+
tencentcloud/cloudapp/v20220530/cloudapp_client_async.py,sha256=OTGmTy0847ID6NZ8FtPdI5IZOWbhWZPlislYrfOgzEU,8653
|
|
6
|
+
tencentcloud/cloudapp/v20220530/errorcodes.py,sha256=--3Fd24HvXy0prtDI2e7wKxr81LAvSqrDzBk0T20VmE,853
|
|
7
|
+
tencentcloud/cloudapp/v20220530/models.py,sha256=s1TqjzrtnY-eqE08xSgxPrz2QOyL4rE4V4i4iCC9p8Y,36834
|
|
8
|
+
tencentcloud_sdk_python_cloudapp-3.1.43.dist-info/METADATA,sha256=h1W_Cwaan6hEib88RrpFpnbnuUazuRLJAJBpJv_7g8M,1520
|
|
9
|
+
tencentcloud_sdk_python_cloudapp-3.1.43.dist-info/WHEEL,sha256=I3glN-nznogni2CWkAvi6vPRkBhTbVeYvJZnIsln6uc,109
|
|
10
|
+
tencentcloud_sdk_python_cloudapp-3.1.43.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_cloudapp-3.1.43.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=4orC4gNXRd4oqx0HCNS89t5iyM7S7qEEe2SQQLBmHhs,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=HYcEbcSSVtcK7sZTjQsBIyYwdA6m3PLMrifjg0-2yhs,31063
|
|
8
|
-
tencentcloud_sdk_python_cloudapp-3.1.40.dist-info/METADATA,sha256=6QZtzIGWXKviHfPFsS2cQfuuw7esTnIrJ4gUhv4rzK4,1520
|
|
9
|
-
tencentcloud_sdk_python_cloudapp-3.1.40.dist-info/WHEEL,sha256=I3glN-nznogni2CWkAvi6vPRkBhTbVeYvJZnIsln6uc,109
|
|
10
|
-
tencentcloud_sdk_python_cloudapp-3.1.40.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_cloudapp-3.1.40.dist-info/RECORD,,
|
|
File without changes
|