tencentcloud-sdk-python-cloudapp 3.0.1416__tar.gz → 3.0.1460__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.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-cloudapp-3.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/setup.py +1 -1
  3. {tencentcloud-sdk-python-cloudapp-3.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/tencentcloud/__init__.py +1 -1
  4. tencentcloud-sdk-python-cloudapp-3.0.1460/tencentcloud/cloudapp/v20220530/cloudapp_client.py +185 -0
  5. {tencentcloud-sdk-python-cloudapp-3.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/tencentcloud/cloudapp/v20220530/models.py +169 -31
  6. {tencentcloud-sdk-python-cloudapp-3.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/tencentcloud_sdk_python_cloudapp.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-cloudapp-3.0.1460/tencentcloud_sdk_python_cloudapp.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-cloudapp-3.0.1416/tencentcloud/cloudapp/v20220530/cloudapp_client.py +0 -49
  9. tencentcloud-sdk-python-cloudapp-3.0.1416/tencentcloud_sdk_python_cloudapp.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-cloudapp-3.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/README.rst +0 -0
  11. {tencentcloud-sdk-python-cloudapp-3.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-cloudapp-3.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/tencentcloud/cloudapp/__init__.py +0 -0
  13. {tencentcloud-sdk-python-cloudapp-3.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/tencentcloud/cloudapp/v20220530/__init__.py +0 -0
  14. {tencentcloud-sdk-python-cloudapp-3.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/tencentcloud/cloudapp/v20220530/errorcodes.py +0 -0
  15. {tencentcloud-sdk-python-cloudapp-3.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/tencentcloud_sdk_python_cloudapp.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud-sdk-python-cloudapp-3.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/tencentcloud_sdk_python_cloudapp.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud-sdk-python-cloudapp-3.0.1416 → tencentcloud-sdk-python-cloudapp-3.0.1460}/tencentcloud_sdk_python_cloudapp.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-cloudapp
3
- Version: 3.0.1416
3
+ Version: 3.0.1460
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
@@ -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.0.1416"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1460,<4.0.0"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Cloudapp SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1416'
17
+ __version__ = '3.0.1460'
@@ -0,0 +1,185 @@
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
+ 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 DescribeLicense(self, request):
30
+ r"""# DescribeLicense
31
+
32
+ 客户根据请求的参数获取当前名下的许可证信息
33
+
34
+ ```json
35
+ {
36
+ "Filters": [
37
+ {
38
+ "Name": "QueryType",
39
+ "Values": ["IncludeAddition"]
40
+ }
41
+ ]
42
+ }
43
+ ```
44
+
45
+ 返回的内容结构如下:
46
+
47
+ - Response.RequestId 为当前请求的唯一 id
48
+ - Response.Token 为 license 信息 jwt 加密后的 token 串
49
+
50
+ ```json
51
+ {
52
+ "Response": {
53
+ "RequestId": "cd15813b-adff-460e-b9fc-64579e96412d",
54
+ "Token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjkzMjQ4MTc5ODAsImlhdCI6MTc1NjE3Nzk4MCwiaXNzIjoibGljZW5zZS1zZXJ2aWNlIiwicGF5bG9hZCI6eyJNYWluTGljZW5zZSI6eyJMaWNlbnNlTW9kZSI6IlN1YnNjcmlwdGlvbiIsIkJpbGxpbmdNb2RlIjoxLCJDcmVhdGVTb3VyY2UiOiJTTjE3MTk0MDc1NDc0SEJETSIsIkF1dGhvcml6ZWRDbG91ZGFwcFJvbGVJZCI6IjcwMDAwMTgzMzgwNiIsIkF1dGhvcml6ZWRDbG91ZGFwcElkIjoiY2xvdWRhcHAtc2V3ZWM2cHMiLCJBdXRob3JpemVkVXNlclVpbiI6IjcwMDAwMDkxODE1NiIsIkxpZmVTcGFuVW5pdCI6IlkiLCJMaWZlU3BhbiI6MzY1LCJTb2Z0d2FyZVBhY2thZ2VJZCI6InBrZy0xZ2xlaG9tNyIsIlNvZnR3YXJlUGFja2FnZVZlcnNpb24iOiIwLjAuMSIsIkF1dGhvcml6ZWRTcGVjaWZpY2F0aW9uIjpbeyJQYXJhbUtleSI6InZlcnNpb24iLCJQYXJhbUtleU5hbWUiOiLniYjmnKwiLCJQYXJhbVZhbHVlIjoiYmFzaWMiLCJQYXJhbVZhbHVlTmFtZSI6IuWfuuehgOeJiCJ9LHsiUGFyYW1LZXkiOiJzaXplIiwiUGFyYW1LZXlOYW1lIjoi6KeE5qC8IiwiUGFyYW1WYWx1ZSI6IjEwMCIsIlBhcmFtVmFsdWVOYW1lIjoiMTAw5Lq66KeE5qihIn1dLCJQcm92aWRlcklkIjoxMDAwMDAwNzEsIlByb3ZpZGVyVWluIjoiNzAwMDAwOTE4MTU2IiwiSXNzdWVEYXRlIjoiMjAyNC0wNi0yNlQyMToxMjozMiswODowMCIsIkFjdGl2YXRpb25EYXRlIjoiMjAyNC0wNi0yNlQyMToxMjozNSswODowMCIsIkV4cGlyYXRpb25EYXRlIjoiMjM4OS0wNi0yNlQyMToxMjozNSswODowMCIsIkxpY2Vuc2VTdGF0dXMiOiJBY3RpdmUiLCJMaWNlbnNlSWQiOiI3MDAwMDA5MTgxNTY6cGtnLTFnbGVob203OmNsb3VkYXBwLXNld2VjNnBzOjgwMDciLCJMaWNlbnNlVHlwZSI6IlN0YW5kYXJkIiwiTGljZW5zZUxldmVsIjoiTWFzdGVyIn0sIkFkZGl0aW9uTGljZW5zZXMiOltdLCJUaW1lc3RhbXAiOiIyMDI1LTA4LTI2VDExOjEzOjAwKzA4OjAwIn19.G8Lx49xZBW0Rh3lRA15XzZ-PzLJj0bAxwnklx0pTjrHWxqxQdETAdGfU_QaGI_WZfYh2IVbFcwHnRLiRj6pQb4guCMpCbcsgL28BRS4g1wnaFhjcyEQLLtpDdz4_lPnOR2VHHvnfwhLZtccAgsRpeedPMBK1hwO9D3WKisQg2LcIr0V-QB8gmgIqqyqrLW6z37QpjgB4ZyJ5bIC1J-0-VmghskA04xnQRPdGJtlyBhjzVjeDxBq5JOqm3Am0Nqu1jyTd3MuYgSRwJqkDyjVBOGFGGy6mZCIYnxU_ET6-0ZEendqYwXDkpYG4rZZv5YmRCXiSESYz0zx4czwmFWkw-TjRSvUQBxBfsoDcAgyzpY7zBOTnbrr7DyoMvVnnHo7vb0if8_vkub6o0MuRnvdDYxNJtnTtlIScCadWAIvWUQ1DlUw2kzS-h9Ju2h7JhKw9cUeutu0X_6V4arZu9JlgWT9Ns7BtS9Y5JxgQOd36Aan39Rwohy_BrVwjOkbvDuTFLc_yNUlNdq5T2GNbDjABCmi73CGhCuWyPgtRs4ftpPugDRrTe4E95F224jdhf7I0He-nY4i1MoVjz8Zzm4v0vH67cMfcu0XVhs7ywvmu5tBSwm0uuhAXFFIbSrgEzuadxNhSi6qVCFNLnjiPYplK1M9mxG8Hc-fU-0A0TPepx8Q"
55
+ }
56
+ }
57
+ ```
58
+
59
+ 验签过程:
60
+ 对 Response.Token 内容使用公钥进行解码转换得到许可结构体信息,返回的内容结构如下,其中 paylod 中的信息为许可证信息结构:
61
+
62
+ ```json
63
+ {
64
+ "exp": 9324758169,
65
+ "iat": 1756118169,
66
+ "iss": "license-service",
67
+ "payload": {
68
+ "MainLicense": {
69
+ "LicenseMode": "Subscription",
70
+ "BillingMode": 1,
71
+ "CreateSource": "SN1719406931EJJ1E",
72
+ "AuthorizedCloudappRoleId": "700001833621",
73
+ "AuthorizedCloudappId": "cloudapp-992nqg9u",
74
+ "AuthorizedUserUin": "700001833621",
75
+ "LifeSpanUnit": "Y",
76
+ "LifeSpan": 365,
77
+ "SoftwarePackageId": "pkg-1glehom7",
78
+ "SoftwarePackageVersion": "0.0.1",
79
+ "AuthorizedSpecification": [
80
+ {
81
+ "ParamKey": "version",
82
+ "ParamKeyName": "版本",
83
+ "ParamValue": "basic",
84
+ "ParamValueName": "基础版"
85
+ },
86
+ {
87
+ "ParamKey": "size",
88
+ "ParamKeyName": "规格",
89
+ "ParamValue": "100",
90
+ "ParamValueName": "100 人规模"
91
+ }
92
+ ],
93
+ "ProviderId": 100000071,
94
+ "ProviderUin": "700000918156",
95
+ "IssueDate": "2024-06-26T21:02:16+08:00",
96
+ "ActivationDate": "2024-06-26T21:02:19+08:00",
97
+ "ExpirationDate": "2389-06-26T21:02:19+08:00",
98
+ "LicenseStatus": "Active",
99
+ "LicenseId": "700000918156:pkg-1glehom7:cloudapp-992nqg9u:3988",
100
+ "LicenseType": "Standard",
101
+ "LicenseLevel": "Master"
102
+ },
103
+ "AdditionLicenses": [
104
+ {
105
+ "LicenseMode": "Subscription",
106
+ "BillingMode": 1,
107
+ "CreateSource": "SN1719406931EJJ1E",
108
+ "AuthorizedCloudappRoleId": "700001833621",
109
+ "AuthorizedCloudappId": "cloudapp-992nqg9u",
110
+ "AuthorizedUserUin": "700001833621",
111
+ "LifeSpanUnit": "Y",
112
+ "LifeSpan": 365,
113
+ "SoftwarePackageId": "pkg-1glehom7",
114
+ "SoftwarePackageVersion": "0.0.1",
115
+ "AuthorizedSpecification": [
116
+ {
117
+ "ParamKey": "version",
118
+ "ParamKeyName": "版本",
119
+ "ParamValue": "basic",
120
+ "ParamValueName": "基础版"
121
+ },
122
+ {
123
+ "ParamKey": "size",
124
+ "ParamKeyName": "规格",
125
+ "ParamValue": "100",
126
+ "ParamValueName": "100 人规模"
127
+ }
128
+ ],
129
+ "ProviderId": 100000071,
130
+ "ProviderUin": "700000918156",
131
+ "IssueDate": "2024-06-26T21:02:16+08:00",
132
+ "ActivationDate": "2024-06-26T21:02:19+08:00",
133
+ "ExpirationDate": "2389-06-26T21:02:19+08:00",
134
+ "LicenseStatus": "Active",
135
+ "LicenseId": "700000918156:pkg-1glehom7:cloudapp-992nqg9u:3988",
136
+ "LicenseType": "Standard",
137
+ "LicenseLevel": "Master"
138
+ }
139
+ ],
140
+ "Timestamp": "2025-08-25T18:36:09+08:00"
141
+ }
142
+ }
143
+ ```
144
+
145
+ :param request: Request instance for DescribeLicense.
146
+ :type request: :class:`tencentcloud.cloudapp.v20220530.models.DescribeLicenseRequest`
147
+ :rtype: :class:`tencentcloud.cloudapp.v20220530.models.DescribeLicenseResponse`
148
+
149
+ """
150
+ try:
151
+ params = request._serialize()
152
+ headers = request.headers
153
+ body = self.call("DescribeLicense", params, headers=headers)
154
+ response = json.loads(body)
155
+ model = models.DescribeLicenseResponse()
156
+ model._deserialize(response["Response"])
157
+ return model
158
+ except Exception as e:
159
+ if isinstance(e, TencentCloudSDKException):
160
+ raise
161
+ else:
162
+ raise TencentCloudSDKException(type(e).__name__, str(e))
163
+
164
+
165
+ def VerifyLicense(self, request):
166
+ r"""从软件进程读取 LICENSE。
167
+
168
+ :param request: Request instance for VerifyLicense.
169
+ :type request: :class:`tencentcloud.cloudapp.v20220530.models.VerifyLicenseRequest`
170
+ :rtype: :class:`tencentcloud.cloudapp.v20220530.models.VerifyLicenseResponse`
171
+
172
+ """
173
+ try:
174
+ params = request._serialize()
175
+ headers = request.headers
176
+ body = self.call("VerifyLicense", params, headers=headers)
177
+ response = json.loads(body)
178
+ model = models.VerifyLicenseResponse()
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))
@@ -18,8 +18,146 @@ import warnings
18
18
  from tencentcloud.common.abstract_model import AbstractModel
19
19
 
20
20
 
21
+ class DescribeLicenseRequest(AbstractModel):
22
+ r"""DescribeLicense请求参数结构体
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _Filters: 可选过滤器
29
+ :type Filters: list of Filter
30
+ """
31
+ self._Filters = None
32
+
33
+ @property
34
+ def Filters(self):
35
+ r"""可选过滤器
36
+ :rtype: list of Filter
37
+ """
38
+ return self._Filters
39
+
40
+ @Filters.setter
41
+ def Filters(self, Filters):
42
+ self._Filters = Filters
43
+
44
+
45
+ def _deserialize(self, params):
46
+ if params.get("Filters") is not None:
47
+ self._Filters = []
48
+ for item in params.get("Filters"):
49
+ obj = Filter()
50
+ obj._deserialize(item)
51
+ self._Filters.append(obj)
52
+ memeber_set = set(params.keys())
53
+ for name, value in vars(self).items():
54
+ property_name = name[1:]
55
+ if property_name in memeber_set:
56
+ memeber_set.remove(property_name)
57
+ if len(memeber_set) > 0:
58
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
59
+
60
+
61
+
62
+ class DescribeLicenseResponse(AbstractModel):
63
+ r"""DescribeLicense返回参数结构体
64
+
65
+ """
66
+
67
+ def __init__(self):
68
+ r"""
69
+ :param _Token: 针对上面raw的签名
70
+ :type Token: str
71
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
72
+ :type RequestId: str
73
+ """
74
+ self._Token = None
75
+ self._RequestId = None
76
+
77
+ @property
78
+ def Token(self):
79
+ r"""针对上面raw的签名
80
+ :rtype: str
81
+ """
82
+ return self._Token
83
+
84
+ @Token.setter
85
+ def Token(self, Token):
86
+ self._Token = Token
87
+
88
+ @property
89
+ def RequestId(self):
90
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
91
+ :rtype: str
92
+ """
93
+ return self._RequestId
94
+
95
+ @RequestId.setter
96
+ def RequestId(self, RequestId):
97
+ self._RequestId = RequestId
98
+
99
+
100
+ def _deserialize(self, params):
101
+ self._Token = params.get("Token")
102
+ self._RequestId = params.get("RequestId")
103
+
104
+
105
+ class Filter(AbstractModel):
106
+ r"""描述键值对过滤器,用于条件过滤查询。例如过滤 ID、名称、状态等
107
+
108
+ - 若存在多个 Filter 时,Filter间的关系为逻辑与(AND)关系。
109
+ - 若同一个 Filter 存在多个 Values,同一 Filter 下 Values 间的关系为逻辑或(OR)关系。
110
+
111
+ """
112
+
113
+ def __init__(self):
114
+ r"""
115
+ :param _Name: 需要过滤的字段
116
+ :type Name: str
117
+ :param _Values: 字段的过滤值
118
+ :type Values: list of str
119
+ """
120
+ self._Name = None
121
+ self._Values = None
122
+
123
+ @property
124
+ def Name(self):
125
+ r"""需要过滤的字段
126
+ :rtype: str
127
+ """
128
+ return self._Name
129
+
130
+ @Name.setter
131
+ def Name(self, Name):
132
+ self._Name = Name
133
+
134
+ @property
135
+ def Values(self):
136
+ r"""字段的过滤值
137
+ :rtype: list of str
138
+ """
139
+ return self._Values
140
+
141
+ @Values.setter
142
+ def Values(self, Values):
143
+ self._Values = Values
144
+
145
+
146
+ def _deserialize(self, params):
147
+ self._Name = params.get("Name")
148
+ self._Values = params.get("Values")
149
+ memeber_set = set(params.keys())
150
+ for name, value in vars(self).items():
151
+ property_name = name[1:]
152
+ if property_name in memeber_set:
153
+ memeber_set.remove(property_name)
154
+ if len(memeber_set) > 0:
155
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
156
+
157
+
158
+
21
159
  class License(AbstractModel):
22
- """表示应用实例的软件授权,包含颁发信息、激活信息等内容。
160
+ r"""表示应用实例的软件授权,包含颁发信息、激活信息等内容。
23
161
 
24
162
  """
25
163
 
@@ -85,7 +223,7 @@ class License(AbstractModel):
85
223
 
86
224
  @property
87
225
  def LicenseId(self):
88
- """License ID
226
+ r"""License ID
89
227
  :rtype: str
90
228
  """
91
229
  return self._LicenseId
@@ -96,7 +234,7 @@ class License(AbstractModel):
96
234
 
97
235
  @property
98
236
  def LicenseMode(self):
99
- """软件授权模式。<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>
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>
100
238
  :rtype: str
101
239
  """
102
240
  return self._LicenseMode
@@ -107,7 +245,7 @@ class License(AbstractModel):
107
245
 
108
246
  @property
109
247
  def LicenseStatus(self):
110
- """软件的授权状态。<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>
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>
111
249
  :rtype: str
112
250
  """
113
251
  return self._LicenseStatus
@@ -118,7 +256,7 @@ class License(AbstractModel):
118
256
 
119
257
  @property
120
258
  def ProviderId(self):
121
- """软件供应方 ID。
259
+ r"""软件供应方 ID。
122
260
  :rtype: int
123
261
  """
124
262
  return self._ProviderId
@@ -129,7 +267,7 @@ class License(AbstractModel):
129
267
 
130
268
  @property
131
269
  def SoftwarePackageId(self):
132
- """软件包 ID。
270
+ r"""软件包 ID。
133
271
  :rtype: str
134
272
  """
135
273
  return self._SoftwarePackageId
@@ -140,7 +278,7 @@ class License(AbstractModel):
140
278
 
141
279
  @property
142
280
  def SoftwarePackageVersion(self):
143
- """软件包版本。
281
+ r"""软件包版本。
144
282
  :rtype: str
145
283
  """
146
284
  return self._SoftwarePackageVersion
@@ -151,7 +289,7 @@ class License(AbstractModel):
151
289
 
152
290
  @property
153
291
  def AuthorizedUserUin(self):
154
- """被授权的用户 UIN。
292
+ r"""被授权的用户 UIN。
155
293
  :rtype: str
156
294
  """
157
295
  return self._AuthorizedUserUin
@@ -162,7 +300,7 @@ class License(AbstractModel):
162
300
 
163
301
  @property
164
302
  def AuthorizedCloudappId(self):
165
- """被授权的应用实例 ID。
303
+ r"""被授权的应用实例 ID。
166
304
  :rtype: str
167
305
  """
168
306
  return self._AuthorizedCloudappId
@@ -173,7 +311,7 @@ class License(AbstractModel):
173
311
 
174
312
  @property
175
313
  def AuthorizedCloudappRoleId(self):
176
- """被授权的角色 ID。
314
+ r"""被授权的角色 ID。
177
315
  :rtype: str
178
316
  """
179
317
  return self._AuthorizedCloudappRoleId
@@ -184,7 +322,7 @@ class License(AbstractModel):
184
322
 
185
323
  @property
186
324
  def AuthorizedSpecification(self):
187
- """被授权的软件规格,具体字段请参考结构SaleParam
325
+ r"""被授权的软件规格,具体字段请参考结构SaleParam
188
326
  :rtype: list of SaleParam
189
327
  """
190
328
  return self._AuthorizedSpecification
@@ -195,7 +333,7 @@ class License(AbstractModel):
195
333
 
196
334
  @property
197
335
  def BillingMode(self):
198
- """被授权的软件的计费模式。<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>
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>
199
337
  :rtype: int
200
338
  """
201
339
  return self._BillingMode
@@ -206,7 +344,7 @@ class License(AbstractModel):
206
344
 
207
345
  @property
208
346
  def LifeSpan(self):
209
- """授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)
347
+ r"""授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)
210
348
  :rtype: int
211
349
  """
212
350
  return self._LifeSpan
@@ -217,7 +355,7 @@ class License(AbstractModel):
217
355
 
218
356
  @property
219
357
  def IssueDate(self):
220
- """授权颁发时间。
358
+ r"""授权颁发时间。
221
359
  :rtype: str
222
360
  """
223
361
  return self._IssueDate
@@ -228,7 +366,7 @@ class License(AbstractModel):
228
366
 
229
367
  @property
230
368
  def ActivationDate(self):
231
- """授权激活时间,如从未激活则返回 null。
369
+ r"""授权激活时间,如从未激活则返回 null。
232
370
  注意:此字段可能返回 null,表示取不到有效值。
233
371
  :rtype: str
234
372
  """
@@ -240,7 +378,7 @@ class License(AbstractModel):
240
378
 
241
379
  @property
242
380
  def ExpirationDate(self):
243
- """授权过期时间
381
+ r"""授权过期时间
244
382
  注意:此字段可能返回 null,表示取不到有效值。
245
383
  :rtype: str
246
384
  """
@@ -252,7 +390,7 @@ class License(AbstractModel):
252
390
 
253
391
  @property
254
392
  def LifeSpanUnit(self):
255
- """授权时长单位,枚举值有Y年/M月/D日三种
393
+ r"""授权时长单位,枚举值有Y年/M月/D日三种
256
394
  :rtype: str
257
395
  """
258
396
  return self._LifeSpanUnit
@@ -263,7 +401,7 @@ class License(AbstractModel):
263
401
 
264
402
  @property
265
403
  def LicenseType(self):
266
- """授权的类型:Standard正式版/Development开发版/Trial体验版
404
+ r"""授权的类型:Standard正式版/Development开发版/Trial体验版
267
405
  :rtype: str
268
406
  """
269
407
  return self._LicenseType
@@ -274,7 +412,7 @@ class License(AbstractModel):
274
412
 
275
413
  @property
276
414
  def LicenseLevel(self):
277
- """授权的层级:Master 主授权;Child 子授权/增强型授权
415
+ r"""授权的层级:Master 主授权;Child 子授权/增强型授权
278
416
  :rtype: str
279
417
  """
280
418
  return self._LicenseLevel
@@ -319,7 +457,7 @@ class License(AbstractModel):
319
457
 
320
458
 
321
459
  class SaleParam(AbstractModel):
322
- """表示商品 SKU 的单个售卖参数
460
+ r"""表示商品 SKU 的单个售卖参数
323
461
 
324
462
  """
325
463
 
@@ -348,7 +486,7 @@ class SaleParam(AbstractModel):
348
486
 
349
487
  @property
350
488
  def ParamKey(self):
351
- """售卖参数标识
489
+ r"""售卖参数标识
352
490
  :rtype: str
353
491
  """
354
492
  return self._ParamKey
@@ -359,7 +497,7 @@ class SaleParam(AbstractModel):
359
497
 
360
498
  @property
361
499
  def ParamKeyName(self):
362
- """售卖参数的展示名称
500
+ r"""售卖参数的展示名称
363
501
  注意:此字段可能返回 null,表示取不到有效值。
364
502
  :rtype: str
365
503
  """
@@ -371,7 +509,7 @@ class SaleParam(AbstractModel):
371
509
 
372
510
  @property
373
511
  def ParamValue(self):
374
- """售卖参数值,当ParamType=Quant时,该值有可能为Null
512
+ r"""售卖参数值,当ParamType=Quant时,该值有可能为Null
375
513
  注意:此字段可能返回 null,表示取不到有效值。
376
514
  :rtype: str
377
515
  """
@@ -383,7 +521,7 @@ class SaleParam(AbstractModel):
383
521
 
384
522
  @property
385
523
  def ParamValueName(self):
386
- """售卖参数值的展示名称
524
+ r"""售卖参数值的展示名称
387
525
  注意:此字段可能返回 null,表示取不到有效值。
388
526
  :rtype: str
389
527
  """
@@ -395,7 +533,7 @@ class SaleParam(AbstractModel):
395
533
 
396
534
  @property
397
535
  def ParamType(self):
398
- """售卖参数的类型,目前支持枚举类Enum/数量类Quant
536
+ r"""售卖参数的类型,目前支持枚举类Enum/数量类Quant
399
537
  注意:此字段可能返回 null,表示取不到有效值。
400
538
  :rtype: str
401
539
  """
@@ -423,13 +561,13 @@ class SaleParam(AbstractModel):
423
561
 
424
562
 
425
563
  class VerifyLicenseRequest(AbstractModel):
426
- """VerifyLicense请求参数结构体
564
+ r"""VerifyLicense请求参数结构体
427
565
 
428
566
  """
429
567
 
430
568
 
431
569
  class VerifyLicenseResponse(AbstractModel):
432
- """VerifyLicense返回参数结构体
570
+ r"""VerifyLicense返回参数结构体
433
571
 
434
572
  """
435
573
 
@@ -451,7 +589,7 @@ class VerifyLicenseResponse(AbstractModel):
451
589
 
452
590
  @property
453
591
  def License(self):
454
- """软件的详细授权信息。
592
+ r"""软件的详细授权信息。
455
593
  :rtype: :class:`tencentcloud.cloudapp.v20220530.models.License`
456
594
  """
457
595
  return self._License
@@ -462,7 +600,7 @@ class VerifyLicenseResponse(AbstractModel):
462
600
 
463
601
  @property
464
602
  def Timestamp(self):
465
- """当前请求服务端的时间戳,格式为RFC3339
603
+ r"""当前请求服务端的时间戳,格式为RFC3339
466
604
  :rtype: str
467
605
  """
468
606
  return self._Timestamp
@@ -473,7 +611,7 @@ class VerifyLicenseResponse(AbstractModel):
473
611
 
474
612
  @property
475
613
  def Signature(self):
476
- """对License字段对应的json数据的签名
614
+ r"""对License字段对应的json数据的签名
477
615
  :rtype: str
478
616
  """
479
617
  return self._Signature
@@ -484,7 +622,7 @@ class VerifyLicenseResponse(AbstractModel):
484
622
 
485
623
  @property
486
624
  def RequestId(self):
487
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
625
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
488
626
  :rtype: str
489
627
  """
490
628
  return self._RequestId
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-cloudapp
3
- Version: 3.0.1416
3
+ Version: 3.0.1460
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.0.1460
@@ -1,49 +0,0 @@
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
- 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
- """从软件进程读取 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))
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1416