tencentcloud-sdk-python-cloudapp 3.0.1212__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.
- tencentcloud-sdk-python-cloudapp-3.0.1212/PKG-INFO +45 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/README.rst +27 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/setup.cfg +8 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/setup.py +32 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud/__init__.py +17 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud/cloudapp/__init__.py +0 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud/cloudapp/v20220530/__init__.py +0 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud/cloudapp/v20220530/cloudapp_client.py +49 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud/cloudapp/v20220530/errorcodes.py +15 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud/cloudapp/v20220530/models.py +354 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud_sdk_python_cloudapp.egg-info/PKG-INFO +45 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud_sdk_python_cloudapp.egg-info/SOURCES.txt +14 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud_sdk_python_cloudapp.egg-info/dependency_links.txt +1 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud_sdk_python_cloudapp.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud_sdk_python_cloudapp.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 1.1
|
|
2
|
+
Name: tencentcloud-sdk-python-cloudapp
|
|
3
|
+
Version: 3.0.1212
|
|
4
|
+
Summary: Tencent Cloud Cloudapp SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Author-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Description: ============================
|
|
10
|
+
Tencent Cloud SDK for Python
|
|
11
|
+
============================
|
|
12
|
+
|
|
13
|
+
Tencent Cloud Python Cloudapp SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
14
|
+
The SDK works on Python versions:
|
|
15
|
+
|
|
16
|
+
* 2.7 and greater, including 3.x
|
|
17
|
+
|
|
18
|
+
Quick Start
|
|
19
|
+
-----------
|
|
20
|
+
|
|
21
|
+
First, install the library:
|
|
22
|
+
|
|
23
|
+
.. code-block:: sh
|
|
24
|
+
|
|
25
|
+
$ pip install tencentcloud-sdk-python-common
|
|
26
|
+
$ pip install tencentcloud-sdk-python-cloudapp
|
|
27
|
+
|
|
28
|
+
or download source code from github and install:
|
|
29
|
+
|
|
30
|
+
.. code-block:: sh
|
|
31
|
+
|
|
32
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
+
$ cd tencentcloud-sdk-python
|
|
34
|
+
$ python package.py --components common cloudapp
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
Platform: any
|
|
38
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
+
Classifier: Intended Audience :: Developers
|
|
40
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
+
Classifier: Programming Language :: Python
|
|
42
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
+
Classifier: Programming Language :: Python :: 3
|
|
44
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
============================
|
|
2
|
+
Tencent Cloud SDK for Python
|
|
3
|
+
============================
|
|
4
|
+
|
|
5
|
+
Tencent Cloud Python Cloudapp SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
6
|
+
The SDK works on Python versions:
|
|
7
|
+
|
|
8
|
+
* 2.7 and greater, including 3.x
|
|
9
|
+
|
|
10
|
+
Quick Start
|
|
11
|
+
-----------
|
|
12
|
+
|
|
13
|
+
First, install the library:
|
|
14
|
+
|
|
15
|
+
.. code-block:: sh
|
|
16
|
+
|
|
17
|
+
$ pip install tencentcloud-sdk-python-common
|
|
18
|
+
$ pip install tencentcloud-sdk-python-cloudapp
|
|
19
|
+
|
|
20
|
+
or download source code from github and install:
|
|
21
|
+
|
|
22
|
+
.. code-block:: sh
|
|
23
|
+
|
|
24
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
25
|
+
$ cd tencentcloud-sdk-python
|
|
26
|
+
$ python package.py --components common cloudapp
|
|
27
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
import os
|
|
3
|
+
from setuptools import setup, find_packages
|
|
4
|
+
|
|
5
|
+
import tencentcloud
|
|
6
|
+
|
|
7
|
+
ROOT = os.path.dirname(__file__)
|
|
8
|
+
|
|
9
|
+
setup(
|
|
10
|
+
name='tencentcloud-sdk-python-cloudapp',
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1212"],
|
|
12
|
+
version=tencentcloud.__version__,
|
|
13
|
+
description='Tencent Cloud Cloudapp SDK for Python',
|
|
14
|
+
long_description=open('README.rst').read(),
|
|
15
|
+
author='Tencent Cloud',
|
|
16
|
+
url='https://github.com/TencentCloud/tencentcloud-sdk-python',
|
|
17
|
+
maintainer_email="tencentcloudapi@tencent.com",
|
|
18
|
+
scripts=[],
|
|
19
|
+
packages=find_packages(exclude=["tests*"]),
|
|
20
|
+
license="Apache License 2.0",
|
|
21
|
+
platforms='any',
|
|
22
|
+
classifiers=[
|
|
23
|
+
'Development Status :: 5 - Production/Stable',
|
|
24
|
+
'Intended Audience :: Developers',
|
|
25
|
+
'License :: OSI Approved :: Apache Software License',
|
|
26
|
+
'Programming Language :: Python',
|
|
27
|
+
'Programming Language :: Python :: 2.7',
|
|
28
|
+
'Programming Language :: Python :: 3',
|
|
29
|
+
'Programming Language :: Python :: 3.6',
|
|
30
|
+
'Programming Language :: Python :: 3.7',
|
|
31
|
+
],
|
|
32
|
+
)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 1999-2018 Tencent Ltd.
|
|
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
|
+
__version__ = '3.0.1212'
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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
|
+
"""通过运行时roleId查询对应的软件 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))
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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
|
+
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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 warnings
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class License(AbstractModel):
|
|
22
|
+
"""表示应用实例的软件授权,包含颁发信息、激活信息等内容。
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _LicenseId: License ID
|
|
29
|
+
:type LicenseId: str
|
|
30
|
+
: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></tbody></table>
|
|
31
|
+
:type LicenseMode: str
|
|
32
|
+
: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>Deactivated</td><td>授权已失效。用户如果退货软件,则授权会自动失效。</td></tr></tbody></table>
|
|
33
|
+
:type LicenseStatus: str
|
|
34
|
+
:param _ProviderId: 软件供应方 ID。
|
|
35
|
+
:type ProviderId: int
|
|
36
|
+
:param _SoftwarePackageId: 软件包 ID。
|
|
37
|
+
:type SoftwarePackageId: str
|
|
38
|
+
:param _SoftwarePackageVersion: 软件包版本。
|
|
39
|
+
:type SoftwarePackageVersion: str
|
|
40
|
+
:param _AuthorizedUserUin: 被授权的用户 UIN。
|
|
41
|
+
:type AuthorizedUserUin: str
|
|
42
|
+
:param _AuthorizedCloudappId: 被授权的应用实例 ID。
|
|
43
|
+
:type AuthorizedCloudappId: str
|
|
44
|
+
:param _AuthorizedCloudappRoleId: 被授权的角色 ID。
|
|
45
|
+
:type AuthorizedCloudappRoleId: str
|
|
46
|
+
:param _AuthorizedSpecification: 被授权的软件规格,具体字段请参考结构SaleParam
|
|
47
|
+
:type AuthorizedSpecification: list of SaleParam
|
|
48
|
+
: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>
|
|
49
|
+
:type BillingMode: int
|
|
50
|
+
:param _LifeSpan: 授权时长(单位由LifeSpanUnit确定,枚举值有Y年/M月/D日三种)
|
|
51
|
+
:type LifeSpan: int
|
|
52
|
+
:param _IssueDate: 授权颁发时间。
|
|
53
|
+
:type IssueDate: str
|
|
54
|
+
:param _ActivationDate: 授权激活时间,如从未激活则返回 null。
|
|
55
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
56
|
+
:type ActivationDate: str
|
|
57
|
+
:param _ExpirationDate: 授权过期时间,如未过期或者是永久授权,则返回 null。
|
|
58
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
59
|
+
:type ExpirationDate: str
|
|
60
|
+
:param _LifeSpanUnit: 授权时长单位,枚举值有Y年/M月/D日三种
|
|
61
|
+
:type LifeSpanUnit: str
|
|
62
|
+
"""
|
|
63
|
+
self._LicenseId = None
|
|
64
|
+
self._LicenseMode = None
|
|
65
|
+
self._LicenseStatus = None
|
|
66
|
+
self._ProviderId = None
|
|
67
|
+
self._SoftwarePackageId = None
|
|
68
|
+
self._SoftwarePackageVersion = None
|
|
69
|
+
self._AuthorizedUserUin = None
|
|
70
|
+
self._AuthorizedCloudappId = None
|
|
71
|
+
self._AuthorizedCloudappRoleId = None
|
|
72
|
+
self._AuthorizedSpecification = None
|
|
73
|
+
self._BillingMode = None
|
|
74
|
+
self._LifeSpan = None
|
|
75
|
+
self._IssueDate = None
|
|
76
|
+
self._ActivationDate = None
|
|
77
|
+
self._ExpirationDate = None
|
|
78
|
+
self._LifeSpanUnit = None
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def LicenseId(self):
|
|
82
|
+
return self._LicenseId
|
|
83
|
+
|
|
84
|
+
@LicenseId.setter
|
|
85
|
+
def LicenseId(self, LicenseId):
|
|
86
|
+
self._LicenseId = LicenseId
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def LicenseMode(self):
|
|
90
|
+
return self._LicenseMode
|
|
91
|
+
|
|
92
|
+
@LicenseMode.setter
|
|
93
|
+
def LicenseMode(self, LicenseMode):
|
|
94
|
+
self._LicenseMode = LicenseMode
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
def LicenseStatus(self):
|
|
98
|
+
return self._LicenseStatus
|
|
99
|
+
|
|
100
|
+
@LicenseStatus.setter
|
|
101
|
+
def LicenseStatus(self, LicenseStatus):
|
|
102
|
+
self._LicenseStatus = LicenseStatus
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def ProviderId(self):
|
|
106
|
+
return self._ProviderId
|
|
107
|
+
|
|
108
|
+
@ProviderId.setter
|
|
109
|
+
def ProviderId(self, ProviderId):
|
|
110
|
+
self._ProviderId = ProviderId
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def SoftwarePackageId(self):
|
|
114
|
+
return self._SoftwarePackageId
|
|
115
|
+
|
|
116
|
+
@SoftwarePackageId.setter
|
|
117
|
+
def SoftwarePackageId(self, SoftwarePackageId):
|
|
118
|
+
self._SoftwarePackageId = SoftwarePackageId
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def SoftwarePackageVersion(self):
|
|
122
|
+
return self._SoftwarePackageVersion
|
|
123
|
+
|
|
124
|
+
@SoftwarePackageVersion.setter
|
|
125
|
+
def SoftwarePackageVersion(self, SoftwarePackageVersion):
|
|
126
|
+
self._SoftwarePackageVersion = SoftwarePackageVersion
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
def AuthorizedUserUin(self):
|
|
130
|
+
return self._AuthorizedUserUin
|
|
131
|
+
|
|
132
|
+
@AuthorizedUserUin.setter
|
|
133
|
+
def AuthorizedUserUin(self, AuthorizedUserUin):
|
|
134
|
+
self._AuthorizedUserUin = AuthorizedUserUin
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def AuthorizedCloudappId(self):
|
|
138
|
+
return self._AuthorizedCloudappId
|
|
139
|
+
|
|
140
|
+
@AuthorizedCloudappId.setter
|
|
141
|
+
def AuthorizedCloudappId(self, AuthorizedCloudappId):
|
|
142
|
+
self._AuthorizedCloudappId = AuthorizedCloudappId
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
def AuthorizedCloudappRoleId(self):
|
|
146
|
+
return self._AuthorizedCloudappRoleId
|
|
147
|
+
|
|
148
|
+
@AuthorizedCloudappRoleId.setter
|
|
149
|
+
def AuthorizedCloudappRoleId(self, AuthorizedCloudappRoleId):
|
|
150
|
+
self._AuthorizedCloudappRoleId = AuthorizedCloudappRoleId
|
|
151
|
+
|
|
152
|
+
@property
|
|
153
|
+
def AuthorizedSpecification(self):
|
|
154
|
+
return self._AuthorizedSpecification
|
|
155
|
+
|
|
156
|
+
@AuthorizedSpecification.setter
|
|
157
|
+
def AuthorizedSpecification(self, AuthorizedSpecification):
|
|
158
|
+
self._AuthorizedSpecification = AuthorizedSpecification
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def BillingMode(self):
|
|
162
|
+
return self._BillingMode
|
|
163
|
+
|
|
164
|
+
@BillingMode.setter
|
|
165
|
+
def BillingMode(self, BillingMode):
|
|
166
|
+
self._BillingMode = BillingMode
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
def LifeSpan(self):
|
|
170
|
+
return self._LifeSpan
|
|
171
|
+
|
|
172
|
+
@LifeSpan.setter
|
|
173
|
+
def LifeSpan(self, LifeSpan):
|
|
174
|
+
self._LifeSpan = LifeSpan
|
|
175
|
+
|
|
176
|
+
@property
|
|
177
|
+
def IssueDate(self):
|
|
178
|
+
return self._IssueDate
|
|
179
|
+
|
|
180
|
+
@IssueDate.setter
|
|
181
|
+
def IssueDate(self, IssueDate):
|
|
182
|
+
self._IssueDate = IssueDate
|
|
183
|
+
|
|
184
|
+
@property
|
|
185
|
+
def ActivationDate(self):
|
|
186
|
+
return self._ActivationDate
|
|
187
|
+
|
|
188
|
+
@ActivationDate.setter
|
|
189
|
+
def ActivationDate(self, ActivationDate):
|
|
190
|
+
self._ActivationDate = ActivationDate
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
def ExpirationDate(self):
|
|
194
|
+
return self._ExpirationDate
|
|
195
|
+
|
|
196
|
+
@ExpirationDate.setter
|
|
197
|
+
def ExpirationDate(self, ExpirationDate):
|
|
198
|
+
self._ExpirationDate = ExpirationDate
|
|
199
|
+
|
|
200
|
+
@property
|
|
201
|
+
def LifeSpanUnit(self):
|
|
202
|
+
return self._LifeSpanUnit
|
|
203
|
+
|
|
204
|
+
@LifeSpanUnit.setter
|
|
205
|
+
def LifeSpanUnit(self, LifeSpanUnit):
|
|
206
|
+
self._LifeSpanUnit = LifeSpanUnit
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
def _deserialize(self, params):
|
|
210
|
+
self._LicenseId = params.get("LicenseId")
|
|
211
|
+
self._LicenseMode = params.get("LicenseMode")
|
|
212
|
+
self._LicenseStatus = params.get("LicenseStatus")
|
|
213
|
+
self._ProviderId = params.get("ProviderId")
|
|
214
|
+
self._SoftwarePackageId = params.get("SoftwarePackageId")
|
|
215
|
+
self._SoftwarePackageVersion = params.get("SoftwarePackageVersion")
|
|
216
|
+
self._AuthorizedUserUin = params.get("AuthorizedUserUin")
|
|
217
|
+
self._AuthorizedCloudappId = params.get("AuthorizedCloudappId")
|
|
218
|
+
self._AuthorizedCloudappRoleId = params.get("AuthorizedCloudappRoleId")
|
|
219
|
+
if params.get("AuthorizedSpecification") is not None:
|
|
220
|
+
self._AuthorizedSpecification = []
|
|
221
|
+
for item in params.get("AuthorizedSpecification"):
|
|
222
|
+
obj = SaleParam()
|
|
223
|
+
obj._deserialize(item)
|
|
224
|
+
self._AuthorizedSpecification.append(obj)
|
|
225
|
+
self._BillingMode = params.get("BillingMode")
|
|
226
|
+
self._LifeSpan = params.get("LifeSpan")
|
|
227
|
+
self._IssueDate = params.get("IssueDate")
|
|
228
|
+
self._ActivationDate = params.get("ActivationDate")
|
|
229
|
+
self._ExpirationDate = params.get("ExpirationDate")
|
|
230
|
+
self._LifeSpanUnit = params.get("LifeSpanUnit")
|
|
231
|
+
memeber_set = set(params.keys())
|
|
232
|
+
for name, value in vars(self).items():
|
|
233
|
+
property_name = name[1:]
|
|
234
|
+
if property_name in memeber_set:
|
|
235
|
+
memeber_set.remove(property_name)
|
|
236
|
+
if len(memeber_set) > 0:
|
|
237
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
class SaleParam(AbstractModel):
|
|
242
|
+
"""表示商品 SKU 的单个售卖参数
|
|
243
|
+
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
def __init__(self):
|
|
247
|
+
r"""
|
|
248
|
+
:param _ParamKey: 售卖参数标识
|
|
249
|
+
:type ParamKey: str
|
|
250
|
+
:param _ParamValue: 售卖参数值
|
|
251
|
+
:type ParamValue: str
|
|
252
|
+
:param _ParamKeyName: 售卖参数的展示名称
|
|
253
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
254
|
+
:type ParamKeyName: str
|
|
255
|
+
:param _ParamValueName: 售卖参数值的展示名称
|
|
256
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
257
|
+
:type ParamValueName: str
|
|
258
|
+
"""
|
|
259
|
+
self._ParamKey = None
|
|
260
|
+
self._ParamValue = None
|
|
261
|
+
self._ParamKeyName = None
|
|
262
|
+
self._ParamValueName = None
|
|
263
|
+
|
|
264
|
+
@property
|
|
265
|
+
def ParamKey(self):
|
|
266
|
+
return self._ParamKey
|
|
267
|
+
|
|
268
|
+
@ParamKey.setter
|
|
269
|
+
def ParamKey(self, ParamKey):
|
|
270
|
+
self._ParamKey = ParamKey
|
|
271
|
+
|
|
272
|
+
@property
|
|
273
|
+
def ParamValue(self):
|
|
274
|
+
return self._ParamValue
|
|
275
|
+
|
|
276
|
+
@ParamValue.setter
|
|
277
|
+
def ParamValue(self, ParamValue):
|
|
278
|
+
self._ParamValue = ParamValue
|
|
279
|
+
|
|
280
|
+
@property
|
|
281
|
+
def ParamKeyName(self):
|
|
282
|
+
return self._ParamKeyName
|
|
283
|
+
|
|
284
|
+
@ParamKeyName.setter
|
|
285
|
+
def ParamKeyName(self, ParamKeyName):
|
|
286
|
+
self._ParamKeyName = ParamKeyName
|
|
287
|
+
|
|
288
|
+
@property
|
|
289
|
+
def ParamValueName(self):
|
|
290
|
+
return self._ParamValueName
|
|
291
|
+
|
|
292
|
+
@ParamValueName.setter
|
|
293
|
+
def ParamValueName(self, ParamValueName):
|
|
294
|
+
self._ParamValueName = ParamValueName
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
def _deserialize(self, params):
|
|
298
|
+
self._ParamKey = params.get("ParamKey")
|
|
299
|
+
self._ParamValue = params.get("ParamValue")
|
|
300
|
+
self._ParamKeyName = params.get("ParamKeyName")
|
|
301
|
+
self._ParamValueName = params.get("ParamValueName")
|
|
302
|
+
memeber_set = set(params.keys())
|
|
303
|
+
for name, value in vars(self).items():
|
|
304
|
+
property_name = name[1:]
|
|
305
|
+
if property_name in memeber_set:
|
|
306
|
+
memeber_set.remove(property_name)
|
|
307
|
+
if len(memeber_set) > 0:
|
|
308
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
class VerifyLicenseRequest(AbstractModel):
|
|
313
|
+
"""VerifyLicense请求参数结构体
|
|
314
|
+
|
|
315
|
+
"""
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
class VerifyLicenseResponse(AbstractModel):
|
|
319
|
+
"""VerifyLicense返回参数结构体
|
|
320
|
+
|
|
321
|
+
"""
|
|
322
|
+
|
|
323
|
+
def __init__(self):
|
|
324
|
+
r"""
|
|
325
|
+
:param _License: 软件的详细授权信息。
|
|
326
|
+
:type License: :class:`tencentcloud.cloudapp.v20220530.models.License`
|
|
327
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
328
|
+
:type RequestId: str
|
|
329
|
+
"""
|
|
330
|
+
self._License = None
|
|
331
|
+
self._RequestId = None
|
|
332
|
+
|
|
333
|
+
@property
|
|
334
|
+
def License(self):
|
|
335
|
+
return self._License
|
|
336
|
+
|
|
337
|
+
@License.setter
|
|
338
|
+
def License(self, License):
|
|
339
|
+
self._License = License
|
|
340
|
+
|
|
341
|
+
@property
|
|
342
|
+
def RequestId(self):
|
|
343
|
+
return self._RequestId
|
|
344
|
+
|
|
345
|
+
@RequestId.setter
|
|
346
|
+
def RequestId(self, RequestId):
|
|
347
|
+
self._RequestId = RequestId
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
def _deserialize(self, params):
|
|
351
|
+
if params.get("License") is not None:
|
|
352
|
+
self._License = License()
|
|
353
|
+
self._License._deserialize(params.get("License"))
|
|
354
|
+
self._RequestId = params.get("RequestId")
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 1.1
|
|
2
|
+
Name: tencentcloud-sdk-python-cloudapp
|
|
3
|
+
Version: 3.0.1212
|
|
4
|
+
Summary: Tencent Cloud Cloudapp SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Author-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Description: ============================
|
|
10
|
+
Tencent Cloud SDK for Python
|
|
11
|
+
============================
|
|
12
|
+
|
|
13
|
+
Tencent Cloud Python Cloudapp SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
14
|
+
The SDK works on Python versions:
|
|
15
|
+
|
|
16
|
+
* 2.7 and greater, including 3.x
|
|
17
|
+
|
|
18
|
+
Quick Start
|
|
19
|
+
-----------
|
|
20
|
+
|
|
21
|
+
First, install the library:
|
|
22
|
+
|
|
23
|
+
.. code-block:: sh
|
|
24
|
+
|
|
25
|
+
$ pip install tencentcloud-sdk-python-common
|
|
26
|
+
$ pip install tencentcloud-sdk-python-cloudapp
|
|
27
|
+
|
|
28
|
+
or download source code from github and install:
|
|
29
|
+
|
|
30
|
+
.. code-block:: sh
|
|
31
|
+
|
|
32
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
+
$ cd tencentcloud-sdk-python
|
|
34
|
+
$ python package.py --components common cloudapp
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
Platform: any
|
|
38
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
+
Classifier: Intended Audience :: Developers
|
|
40
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
+
Classifier: Programming Language :: Python
|
|
42
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
+
Classifier: Programming Language :: Python :: 3
|
|
44
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
+
Classifier: Programming Language :: Python :: 3.7
|
tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud_sdk_python_cloudapp.egg-info/SOURCES.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.rst
|
|
2
|
+
setup.cfg
|
|
3
|
+
setup.py
|
|
4
|
+
tencentcloud/__init__.py
|
|
5
|
+
tencentcloud/cloudapp/__init__.py
|
|
6
|
+
tencentcloud/cloudapp/v20220530/__init__.py
|
|
7
|
+
tencentcloud/cloudapp/v20220530/cloudapp_client.py
|
|
8
|
+
tencentcloud/cloudapp/v20220530/errorcodes.py
|
|
9
|
+
tencentcloud/cloudapp/v20220530/models.py
|
|
10
|
+
tencentcloud_sdk_python_cloudapp.egg-info/PKG-INFO
|
|
11
|
+
tencentcloud_sdk_python_cloudapp.egg-info/SOURCES.txt
|
|
12
|
+
tencentcloud_sdk_python_cloudapp.egg-info/dependency_links.txt
|
|
13
|
+
tencentcloud_sdk_python_cloudapp.egg-info/requires.txt
|
|
14
|
+
tencentcloud_sdk_python_cloudapp.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud_sdk_python_cloudapp.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1212
|
tencentcloud-sdk-python-cloudapp-3.0.1212/tencentcloud_sdk_python_cloudapp.egg-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud
|