tencentcloud-sdk-python-cloudapp 3.1.33__tar.gz → 3.1.43__tar.gz

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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/tencentcloud/cloudapp/v20220530/cloudapp_client.py +23 -0
  5. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/tencentcloud/cloudapp/v20220530/cloudapp_client_async.py +18 -0
  6. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/tencentcloud/cloudapp/v20220530/models.py +207 -0
  7. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/tencentcloud_sdk_python_cloudapp.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_cloudapp-3.1.43/tencentcloud_sdk_python_cloudapp.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_cloudapp-3.1.33/tencentcloud_sdk_python_cloudapp.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/README.rst +0 -0
  11. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/tencentcloud/cloudapp/__init__.py +0 -0
  13. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/tencentcloud/cloudapp/v20220530/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/tencentcloud/cloudapp/v20220530/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/tencentcloud_sdk_python_cloudapp.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/tencentcloud_sdk_python_cloudapp.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cloudapp-3.1.33 → tencentcloud_sdk_python_cloudapp-3.1.43}/tencentcloud_sdk_python_cloudapp.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cloudapp
3
- Version: 3.1.33
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.33
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.43
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-cloudapp',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.33,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.43,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cloudapp SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.33'
17
+ __version__ = '3.1.43'
@@ -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
 
@@ -256,6 +382,10 @@ class License(AbstractModel):
256
382
  :type LicenseData: :class:`tencentcloud.cloudapp.v20220530.models.LicenseData`
257
383
  :param _IssueURL: <p>License 颁发地址</p>
258
384
  :type IssueURL: str
385
+ :param _ProviderUin: <p>商品供应商 UIN</p>
386
+ :type ProviderUin: str
387
+ :param _CreateSource: <p>License 创建来源 ID</p>
388
+ :type CreateSource: str
259
389
  """
260
390
  self._LicenseId = None
261
391
  self._LicenseMode = None
@@ -277,6 +407,8 @@ class License(AbstractModel):
277
407
  self._LicenseLevel = None
278
408
  self._LicenseData = None
279
409
  self._IssueURL = None
410
+ self._ProviderUin = None
411
+ self._CreateSource = None
280
412
 
281
413
  @property
282
414
  def LicenseId(self):
@@ -500,6 +632,28 @@ class License(AbstractModel):
500
632
  def IssueURL(self, IssueURL):
501
633
  self._IssueURL = IssueURL
502
634
 
635
+ @property
636
+ def ProviderUin(self):
637
+ r"""<p>商品供应商 UIN</p>
638
+ :rtype: str
639
+ """
640
+ return self._ProviderUin
641
+
642
+ @ProviderUin.setter
643
+ def ProviderUin(self, ProviderUin):
644
+ self._ProviderUin = ProviderUin
645
+
646
+ @property
647
+ def CreateSource(self):
648
+ r"""<p>License 创建来源 ID</p>
649
+ :rtype: str
650
+ """
651
+ return self._CreateSource
652
+
653
+ @CreateSource.setter
654
+ def CreateSource(self, CreateSource):
655
+ self._CreateSource = CreateSource
656
+
503
657
 
504
658
  def _deserialize(self, params):
505
659
  self._LicenseId = params.get("LicenseId")
@@ -529,6 +683,8 @@ class License(AbstractModel):
529
683
  self._LicenseData = LicenseData()
530
684
  self._LicenseData._deserialize(params.get("LicenseData"))
531
685
  self._IssueURL = params.get("IssueURL")
686
+ self._ProviderUin = params.get("ProviderUin")
687
+ self._CreateSource = params.get("CreateSource")
532
688
  memeber_set = set(params.keys())
533
689
  for name, value in vars(self).items():
534
690
  property_name = name[1:]
@@ -610,6 +766,57 @@ class LicenseData(AbstractModel):
610
766
 
611
767
 
612
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
+
613
820
  class SaleParam(AbstractModel):
614
821
  r"""表示商品 SKU 的单个售卖参数
615
822
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cloudapp
3
- Version: 3.1.33
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.33
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 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.43
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.33