tencentcloud-sdk-python 3.0.1420__py2.py3-none-any.whl → 3.0.1421__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/autoscaling/v20180419/models.py +15 -0
- tencentcloud/cdb/v20170320/cdb_client.py +1 -1
- tencentcloud/cdb/v20170320/models.py +8 -8
- tencentcloud/cdn/v20180606/models.py +4 -4
- tencentcloud/cdwdoris/v20211228/errorcodes.py +6 -0
- tencentcloud/cdwdoris/v20211228/models.py +244 -4
- tencentcloud/cfg/v20210820/models.py +40 -0
- tencentcloud/gs/v20191118/models.py +71 -0
- tencentcloud/igtm/v20231024/igtm_client.py +69 -0
- tencentcloud/igtm/v20231024/models.py +1202 -198
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +3 -1
- tencentcloud/ocr/v20181119/models.py +4 -18
- tencentcloud/ocr/v20181119/ocr_client.py +3 -1
- tencentcloud/omics/v20221128/models.py +60 -0
- tencentcloud/ses/v20201002/models.py +171 -0
- tencentcloud/tcb/v20180608/models.py +64 -10
- tencentcloud/tdmq/v20200217/models.py +15 -0
- tencentcloud/teo/v20220901/models.py +664 -2
- tencentcloud/teo/v20220901/teo_client.py +115 -0
- tencentcloud/vrs/v20200824/vrs_client.py +1 -1
- {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/RECORD +26 -155
- tencentcloud/cis/__init__.py +0 -0
- tencentcloud/cis/v20180408/__init__.py +0 -0
- tencentcloud/cis/v20180408/cis_client.py +0 -187
- tencentcloud/cis/v20180408/errorcodes.py +0 -21
- tencentcloud/cis/v20180408/models.py +0 -1688
- tencentcloud/dataintegration/__init__.py +0 -0
- tencentcloud/dataintegration/v20220613/__init__.py +0 -0
- tencentcloud/dataintegration/v20220613/dataintegration_client.py +0 -49
- tencentcloud/dataintegration/v20220613/errorcodes.py +0 -15
- tencentcloud/dataintegration/v20220613/models.py +0 -168
- tencentcloud/dtf/__init__.py +0 -0
- tencentcloud/dtf/v20200506/__init__.py +0 -0
- tencentcloud/dtf/v20200506/dtf_client.py +0 -49
- tencentcloud/dtf/v20200506/errorcodes.py +0 -21
- tencentcloud/dtf/v20200506/models.py +0 -538
- tencentcloud/gpm/__init__.py +0 -0
- tencentcloud/gpm/v20200820/__init__.py +0 -0
- tencentcloud/gpm/v20200820/errorcodes.py +0 -168
- tencentcloud/gpm/v20200820/gpm_client.py +0 -476
- tencentcloud/gpm/v20200820/models.py +0 -4255
- tencentcloud/gse/__init__.py +0 -0
- tencentcloud/gse/v20191112/__init__.py +0 -0
- tencentcloud/gse/v20191112/errorcodes.py +0 -90
- tencentcloud/gse/v20191112/gse_client.py +0 -1993
- tencentcloud/gse/v20191112/models.py +0 -15093
- tencentcloud/iecp/__init__.py +0 -0
- tencentcloud/iecp/v20210914/__init__.py +0 -0
- tencentcloud/iecp/v20210914/errorcodes.py +0 -75
- tencentcloud/iecp/v20210914/iecp_client.py +0 -1912
- tencentcloud/iecp/v20210914/models.py +0 -17466
- tencentcloud/iir/__init__.py +0 -0
- tencentcloud/iir/v20200417/__init__.py +0 -0
- tencentcloud/iir/v20200417/errorcodes.py +0 -48
- tencentcloud/iir/v20200417/iir_client.py +0 -53
- tencentcloud/iir/v20200417/models.py +0 -451
- tencentcloud/iottid/__init__.py +0 -0
- tencentcloud/iottid/v20190411/__init__.py +0 -0
- tencentcloud/iottid/v20190411/errorcodes.py +0 -54
- tencentcloud/iottid/v20190411/iottid_client.py +0 -233
- tencentcloud/iottid/v20190411/models.py +0 -1053
- tencentcloud/mgobe/__init__.py +0 -0
- tencentcloud/mgobe/v20190929/__init__.py +0 -0
- tencentcloud/mgobe/v20190929/errorcodes.py +0 -945
- tencentcloud/mgobe/v20190929/mgobe_client.py +0 -49
- tencentcloud/mgobe/v20190929/models.py +0 -97
- tencentcloud/mgobe/v20201014/__init__.py +0 -0
- tencentcloud/mgobe/v20201014/errorcodes.py +0 -948
- tencentcloud/mgobe/v20201014/mgobe_client.py +0 -201
- tencentcloud/mgobe/v20201014/models.py +0 -1361
- tencentcloud/mvj/__init__.py +0 -0
- tencentcloud/mvj/v20190926/__init__.py +0 -0
- tencentcloud/mvj/v20190926/errorcodes.py +0 -30
- tencentcloud/mvj/v20190926/models.py +0 -263
- tencentcloud/mvj/v20190926/mvj_client.py +0 -51
- tencentcloud/pds/__init__.py +0 -0
- tencentcloud/pds/v20210701/__init__.py +0 -0
- tencentcloud/pds/v20210701/errorcodes.py +0 -48
- tencentcloud/pds/v20210701/models.py +0 -346
- tencentcloud/pds/v20210701/pds_client.py +0 -72
- tencentcloud/smpn/__init__.py +0 -0
- tencentcloud/smpn/v20190822/__init__.py +0 -0
- tencentcloud/smpn/v20190822/errorcodes.py +0 -27
- tencentcloud/smpn/v20190822/models.py +0 -389
- tencentcloud/smpn/v20190822/smpn_client.py +0 -76
- tencentcloud/solar/__init__.py +0 -0
- tencentcloud/solar/v20181011/__init__.py +0 -0
- tencentcloud/solar/v20181011/errorcodes.py +0 -42
- tencentcloud/solar/v20181011/models.py +0 -3848
- tencentcloud/solar/v20181011/solar_client.py +0 -417
- tencentcloud/tan/__init__.py +0 -0
- tencentcloud/tan/v20220420/__init__.py +0 -0
- tencentcloud/tan/v20220420/errorcodes.py +0 -81
- tencentcloud/tan/v20220420/models.py +0 -112
- tencentcloud/tan/v20220420/tan_client.py +0 -51
- tencentcloud/tav/__init__.py +0 -0
- tencentcloud/tav/v20190118/__init__.py +0 -0
- tencentcloud/tav/v20190118/errorcodes.py +0 -15
- tencentcloud/tav/v20190118/models.py +0 -550
- tencentcloud/tav/v20190118/tav_client.py +0 -118
- tencentcloud/tbm/__init__.py +0 -0
- tencentcloud/tbm/v20180129/__init__.py +0 -0
- tencentcloud/tbm/v20180129/errorcodes.py +0 -39
- tencentcloud/tbm/v20180129/models.py +0 -2354
- tencentcloud/tbm/v20180129/tbm_client.py +0 -233
- tencentcloud/tcex/__init__.py +0 -0
- tencentcloud/tcex/v20200727/__init__.py +0 -0
- tencentcloud/tcex/v20200727/errorcodes.py +0 -51
- tencentcloud/tcex/v20200727/models.py +0 -374
- tencentcloud/tcex/v20200727/tcex_client.py +0 -76
- tencentcloud/tci/__init__.py +0 -0
- tencentcloud/tci/v20190318/__init__.py +0 -0
- tencentcloud/tci/v20190318/errorcodes.py +0 -237
- tencentcloud/tci/v20190318/models.py +0 -11569
- tencentcloud/tci/v20190318/tci_client.py +0 -1017
- tencentcloud/tic/__init__.py +0 -0
- tencentcloud/tic/v20201117/__init__.py +0 -0
- tencentcloud/tic/v20201117/errorcodes.py +0 -48
- tencentcloud/tic/v20201117/models.py +0 -1952
- tencentcloud/tic/v20201117/tic_client.py +0 -342
- tencentcloud/ticm/__init__.py +0 -0
- tencentcloud/ticm/v20181127/__init__.py +0 -0
- tencentcloud/ticm/v20181127/errorcodes.py +0 -36
- tencentcloud/ticm/v20181127/models.py +0 -3385
- tencentcloud/ticm/v20181127/ticm_client.py +0 -95
- tencentcloud/tics/__init__.py +0 -0
- tencentcloud/tics/v20181115/__init__.py +0 -0
- tencentcloud/tics/v20181115/errorcodes.py +0 -30
- tencentcloud/tics/v20181115/models.py +0 -1324
- tencentcloud/tics/v20181115/tics_client.py +0 -118
- tencentcloud/tiems/__init__.py +0 -0
- tencentcloud/tiems/v20190416/__init__.py +0 -0
- tencentcloud/tiems/v20190416/errorcodes.py +0 -36
- tencentcloud/tiems/v20190416/models.py +0 -6644
- tencentcloud/tiems/v20190416/tiems_client.py +0 -651
- tencentcloud/trdp/__init__.py +0 -0
- tencentcloud/trdp/v20220726/__init__.py +0 -0
- tencentcloud/trdp/v20220726/errorcodes.py +0 -30
- tencentcloud/trdp/v20220726/models.py +0 -1609
- tencentcloud/trdp/v20220726/trdp_client.py +0 -49
- tencentcloud/ump/__init__.py +0 -0
- tencentcloud/ump/v20200918/__init__.py +0 -0
- tencentcloud/ump/v20200918/errorcodes.py +0 -57
- tencentcloud/ump/v20200918/models.py +0 -4089
- tencentcloud/ump/v20200918/ump_client.py +0 -454
- tencentcloud/youmall/__init__.py +0 -0
- tencentcloud/youmall/v20180228/__init__.py +0 -0
- tencentcloud/youmall/v20180228/errorcodes.py +0 -93
- tencentcloud/youmall/v20180228/models.py +0 -8181
- tencentcloud/youmall/v20180228/youmall_client.py +0 -740
- {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/top_level.txt +0 -0
@@ -1,417 +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.solar.v20181011 import models
|
21
|
-
|
22
|
-
|
23
|
-
class SolarClient(AbstractClient):
|
24
|
-
_apiVersion = '2018-10-11'
|
25
|
-
_endpoint = 'solar.tencentcloudapi.com'
|
26
|
-
_service = 'solar'
|
27
|
-
|
28
|
-
|
29
|
-
def CheckStaffChUser(self, request):
|
30
|
-
"""员工渠道更改员工状态
|
31
|
-
|
32
|
-
:param request: Request instance for CheckStaffChUser.
|
33
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.CheckStaffChUserRequest`
|
34
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.CheckStaffChUserResponse`
|
35
|
-
|
36
|
-
"""
|
37
|
-
try:
|
38
|
-
params = request._serialize()
|
39
|
-
headers = request.headers
|
40
|
-
body = self.call("CheckStaffChUser", params, headers=headers)
|
41
|
-
response = json.loads(body)
|
42
|
-
model = models.CheckStaffChUserResponse()
|
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))
|
50
|
-
|
51
|
-
|
52
|
-
def CopyActivityChannel(self, request):
|
53
|
-
"""复制活动渠道的策略
|
54
|
-
|
55
|
-
:param request: Request instance for CopyActivityChannel.
|
56
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.CopyActivityChannelRequest`
|
57
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.CopyActivityChannelResponse`
|
58
|
-
|
59
|
-
"""
|
60
|
-
try:
|
61
|
-
params = request._serialize()
|
62
|
-
headers = request.headers
|
63
|
-
body = self.call("CopyActivityChannel", params, headers=headers)
|
64
|
-
response = json.loads(body)
|
65
|
-
model = models.CopyActivityChannelResponse()
|
66
|
-
model._deserialize(response["Response"])
|
67
|
-
return model
|
68
|
-
except Exception as e:
|
69
|
-
if isinstance(e, TencentCloudSDKException):
|
70
|
-
raise
|
71
|
-
else:
|
72
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
73
|
-
|
74
|
-
|
75
|
-
def CreateProject(self, request):
|
76
|
-
"""创建项目
|
77
|
-
|
78
|
-
:param request: Request instance for CreateProject.
|
79
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.CreateProjectRequest`
|
80
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.CreateProjectResponse`
|
81
|
-
|
82
|
-
"""
|
83
|
-
try:
|
84
|
-
params = request._serialize()
|
85
|
-
headers = request.headers
|
86
|
-
body = self.call("CreateProject", params, headers=headers)
|
87
|
-
response = json.loads(body)
|
88
|
-
model = models.CreateProjectResponse()
|
89
|
-
model._deserialize(response["Response"])
|
90
|
-
return model
|
91
|
-
except Exception as e:
|
92
|
-
if isinstance(e, TencentCloudSDKException):
|
93
|
-
raise
|
94
|
-
else:
|
95
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
96
|
-
|
97
|
-
|
98
|
-
def CreateSubProject(self, request):
|
99
|
-
"""创建子项目
|
100
|
-
|
101
|
-
:param request: Request instance for CreateSubProject.
|
102
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.CreateSubProjectRequest`
|
103
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.CreateSubProjectResponse`
|
104
|
-
|
105
|
-
"""
|
106
|
-
try:
|
107
|
-
params = request._serialize()
|
108
|
-
headers = request.headers
|
109
|
-
body = self.call("CreateSubProject", params, headers=headers)
|
110
|
-
response = json.loads(body)
|
111
|
-
model = models.CreateSubProjectResponse()
|
112
|
-
model._deserialize(response["Response"])
|
113
|
-
return model
|
114
|
-
except Exception as e:
|
115
|
-
if isinstance(e, TencentCloudSDKException):
|
116
|
-
raise
|
117
|
-
else:
|
118
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
119
|
-
|
120
|
-
|
121
|
-
def DeleteProject(self, request):
|
122
|
-
"""删除项目
|
123
|
-
|
124
|
-
:param request: Request instance for DeleteProject.
|
125
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.DeleteProjectRequest`
|
126
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.DeleteProjectResponse`
|
127
|
-
|
128
|
-
"""
|
129
|
-
try:
|
130
|
-
params = request._serialize()
|
131
|
-
headers = request.headers
|
132
|
-
body = self.call("DeleteProject", params, headers=headers)
|
133
|
-
response = json.loads(body)
|
134
|
-
model = models.DeleteProjectResponse()
|
135
|
-
model._deserialize(response["Response"])
|
136
|
-
return model
|
137
|
-
except Exception as e:
|
138
|
-
if isinstance(e, TencentCloudSDKException):
|
139
|
-
raise
|
140
|
-
else:
|
141
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
142
|
-
|
143
|
-
|
144
|
-
def DescribeCustomer(self, request):
|
145
|
-
"""客户档案查询客户详情
|
146
|
-
|
147
|
-
:param request: Request instance for DescribeCustomer.
|
148
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.DescribeCustomerRequest`
|
149
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.DescribeCustomerResponse`
|
150
|
-
|
151
|
-
"""
|
152
|
-
try:
|
153
|
-
params = request._serialize()
|
154
|
-
headers = request.headers
|
155
|
-
body = self.call("DescribeCustomer", params, headers=headers)
|
156
|
-
response = json.loads(body)
|
157
|
-
model = models.DescribeCustomerResponse()
|
158
|
-
model._deserialize(response["Response"])
|
159
|
-
return model
|
160
|
-
except Exception as e:
|
161
|
-
if isinstance(e, TencentCloudSDKException):
|
162
|
-
raise
|
163
|
-
else:
|
164
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
165
|
-
|
166
|
-
|
167
|
-
def DescribeCustomers(self, request):
|
168
|
-
"""查询客户档案列表
|
169
|
-
|
170
|
-
:param request: Request instance for DescribeCustomers.
|
171
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.DescribeCustomersRequest`
|
172
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.DescribeCustomersResponse`
|
173
|
-
|
174
|
-
"""
|
175
|
-
try:
|
176
|
-
params = request._serialize()
|
177
|
-
headers = request.headers
|
178
|
-
body = self.call("DescribeCustomers", params, headers=headers)
|
179
|
-
response = json.loads(body)
|
180
|
-
model = models.DescribeCustomersResponse()
|
181
|
-
model._deserialize(response["Response"])
|
182
|
-
return model
|
183
|
-
except Exception as e:
|
184
|
-
if isinstance(e, TencentCloudSDKException):
|
185
|
-
raise
|
186
|
-
else:
|
187
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
188
|
-
|
189
|
-
|
190
|
-
def DescribeProject(self, request):
|
191
|
-
"""项目详情展示
|
192
|
-
|
193
|
-
:param request: Request instance for DescribeProject.
|
194
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.DescribeProjectRequest`
|
195
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.DescribeProjectResponse`
|
196
|
-
|
197
|
-
"""
|
198
|
-
try:
|
199
|
-
params = request._serialize()
|
200
|
-
headers = request.headers
|
201
|
-
body = self.call("DescribeProject", params, headers=headers)
|
202
|
-
response = json.loads(body)
|
203
|
-
model = models.DescribeProjectResponse()
|
204
|
-
model._deserialize(response["Response"])
|
205
|
-
return model
|
206
|
-
except Exception as e:
|
207
|
-
if isinstance(e, TencentCloudSDKException):
|
208
|
-
raise
|
209
|
-
else:
|
210
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
211
|
-
|
212
|
-
|
213
|
-
def DescribeProjectStock(self, request):
|
214
|
-
"""项目库存详情
|
215
|
-
|
216
|
-
:param request: Request instance for DescribeProjectStock.
|
217
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.DescribeProjectStockRequest`
|
218
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.DescribeProjectStockResponse`
|
219
|
-
|
220
|
-
"""
|
221
|
-
try:
|
222
|
-
params = request._serialize()
|
223
|
-
headers = request.headers
|
224
|
-
body = self.call("DescribeProjectStock", params, headers=headers)
|
225
|
-
response = json.loads(body)
|
226
|
-
model = models.DescribeProjectStockResponse()
|
227
|
-
model._deserialize(response["Response"])
|
228
|
-
return model
|
229
|
-
except Exception as e:
|
230
|
-
if isinstance(e, TencentCloudSDKException):
|
231
|
-
raise
|
232
|
-
else:
|
233
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
234
|
-
|
235
|
-
|
236
|
-
def DescribeProjects(self, request):
|
237
|
-
"""项目列表展示
|
238
|
-
|
239
|
-
:param request: Request instance for DescribeProjects.
|
240
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.DescribeProjectsRequest`
|
241
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.DescribeProjectsResponse`
|
242
|
-
|
243
|
-
"""
|
244
|
-
try:
|
245
|
-
params = request._serialize()
|
246
|
-
headers = request.headers
|
247
|
-
body = self.call("DescribeProjects", params, headers=headers)
|
248
|
-
response = json.loads(body)
|
249
|
-
model = models.DescribeProjectsResponse()
|
250
|
-
model._deserialize(response["Response"])
|
251
|
-
return model
|
252
|
-
except Exception as e:
|
253
|
-
if isinstance(e, TencentCloudSDKException):
|
254
|
-
raise
|
255
|
-
else:
|
256
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
257
|
-
|
258
|
-
|
259
|
-
def DescribeResourceTemplateHeaders(self, request):
|
260
|
-
"""素材查询服务号模板的列表(样例)
|
261
|
-
|
262
|
-
:param request: Request instance for DescribeResourceTemplateHeaders.
|
263
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.DescribeResourceTemplateHeadersRequest`
|
264
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.DescribeResourceTemplateHeadersResponse`
|
265
|
-
|
266
|
-
"""
|
267
|
-
try:
|
268
|
-
params = request._serialize()
|
269
|
-
headers = request.headers
|
270
|
-
body = self.call("DescribeResourceTemplateHeaders", params, headers=headers)
|
271
|
-
response = json.loads(body)
|
272
|
-
model = models.DescribeResourceTemplateHeadersResponse()
|
273
|
-
model._deserialize(response["Response"])
|
274
|
-
return model
|
275
|
-
except Exception as e:
|
276
|
-
if isinstance(e, TencentCloudSDKException):
|
277
|
-
raise
|
278
|
-
else:
|
279
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
280
|
-
|
281
|
-
|
282
|
-
def DescribeSubProject(self, request):
|
283
|
-
"""子项目详情
|
284
|
-
|
285
|
-
:param request: Request instance for DescribeSubProject.
|
286
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.DescribeSubProjectRequest`
|
287
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.DescribeSubProjectResponse`
|
288
|
-
|
289
|
-
"""
|
290
|
-
try:
|
291
|
-
params = request._serialize()
|
292
|
-
headers = request.headers
|
293
|
-
body = self.call("DescribeSubProject", params, headers=headers)
|
294
|
-
response = json.loads(body)
|
295
|
-
model = models.DescribeSubProjectResponse()
|
296
|
-
model._deserialize(response["Response"])
|
297
|
-
return model
|
298
|
-
except Exception as e:
|
299
|
-
if isinstance(e, TencentCloudSDKException):
|
300
|
-
raise
|
301
|
-
else:
|
302
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
303
|
-
|
304
|
-
|
305
|
-
def ExpireFlow(self, request):
|
306
|
-
"""把审批中的工单置为已失效
|
307
|
-
|
308
|
-
:param request: Request instance for ExpireFlow.
|
309
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.ExpireFlowRequest`
|
310
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.ExpireFlowResponse`
|
311
|
-
|
312
|
-
"""
|
313
|
-
try:
|
314
|
-
params = request._serialize()
|
315
|
-
headers = request.headers
|
316
|
-
body = self.call("ExpireFlow", params, headers=headers)
|
317
|
-
response = json.loads(body)
|
318
|
-
model = models.ExpireFlowResponse()
|
319
|
-
model._deserialize(response["Response"])
|
320
|
-
return model
|
321
|
-
except Exception as e:
|
322
|
-
if isinstance(e, TencentCloudSDKException):
|
323
|
-
raise
|
324
|
-
else:
|
325
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
326
|
-
|
327
|
-
|
328
|
-
def ModifyProject(self, request):
|
329
|
-
"""修改项目
|
330
|
-
|
331
|
-
:param request: Request instance for ModifyProject.
|
332
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.ModifyProjectRequest`
|
333
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.ModifyProjectResponse`
|
334
|
-
|
335
|
-
"""
|
336
|
-
try:
|
337
|
-
params = request._serialize()
|
338
|
-
headers = request.headers
|
339
|
-
body = self.call("ModifyProject", params, headers=headers)
|
340
|
-
response = json.loads(body)
|
341
|
-
model = models.ModifyProjectResponse()
|
342
|
-
model._deserialize(response["Response"])
|
343
|
-
return model
|
344
|
-
except Exception as e:
|
345
|
-
if isinstance(e, TencentCloudSDKException):
|
346
|
-
raise
|
347
|
-
else:
|
348
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
349
|
-
|
350
|
-
|
351
|
-
def OffLineProject(self, request):
|
352
|
-
"""下线项目
|
353
|
-
|
354
|
-
:param request: Request instance for OffLineProject.
|
355
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.OffLineProjectRequest`
|
356
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.OffLineProjectResponse`
|
357
|
-
|
358
|
-
"""
|
359
|
-
try:
|
360
|
-
params = request._serialize()
|
361
|
-
headers = request.headers
|
362
|
-
body = self.call("OffLineProject", params, headers=headers)
|
363
|
-
response = json.loads(body)
|
364
|
-
model = models.OffLineProjectResponse()
|
365
|
-
model._deserialize(response["Response"])
|
366
|
-
return model
|
367
|
-
except Exception as e:
|
368
|
-
if isinstance(e, TencentCloudSDKException):
|
369
|
-
raise
|
370
|
-
else:
|
371
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
372
|
-
|
373
|
-
|
374
|
-
def ReplenishProjectStock(self, request):
|
375
|
-
"""补充子项目库存
|
376
|
-
|
377
|
-
:param request: Request instance for ReplenishProjectStock.
|
378
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.ReplenishProjectStockRequest`
|
379
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.ReplenishProjectStockResponse`
|
380
|
-
|
381
|
-
"""
|
382
|
-
try:
|
383
|
-
params = request._serialize()
|
384
|
-
headers = request.headers
|
385
|
-
body = self.call("ReplenishProjectStock", params, headers=headers)
|
386
|
-
response = json.loads(body)
|
387
|
-
model = models.ReplenishProjectStockResponse()
|
388
|
-
model._deserialize(response["Response"])
|
389
|
-
return model
|
390
|
-
except Exception as e:
|
391
|
-
if isinstance(e, TencentCloudSDKException):
|
392
|
-
raise
|
393
|
-
else:
|
394
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
395
|
-
|
396
|
-
|
397
|
-
def SendWxTouchTask(self, request):
|
398
|
-
"""发送企业微信触达任务
|
399
|
-
|
400
|
-
:param request: Request instance for SendWxTouchTask.
|
401
|
-
:type request: :class:`tencentcloud.solar.v20181011.models.SendWxTouchTaskRequest`
|
402
|
-
:rtype: :class:`tencentcloud.solar.v20181011.models.SendWxTouchTaskResponse`
|
403
|
-
|
404
|
-
"""
|
405
|
-
try:
|
406
|
-
params = request._serialize()
|
407
|
-
headers = request.headers
|
408
|
-
body = self.call("SendWxTouchTask", params, headers=headers)
|
409
|
-
response = json.loads(body)
|
410
|
-
model = models.SendWxTouchTaskResponse()
|
411
|
-
model._deserialize(response["Response"])
|
412
|
-
return model
|
413
|
-
except Exception as e:
|
414
|
-
if isinstance(e, TencentCloudSDKException):
|
415
|
-
raise
|
416
|
-
else:
|
417
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
tencentcloud/tan/__init__.py
DELETED
File without changes
|
File without changes
|
@@ -1,81 +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
|
-
|
17
|
-
# CAM签名/鉴权错误。
|
18
|
-
AUTHFAILURE = 'AuthFailure'
|
19
|
-
|
20
|
-
# DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。
|
21
|
-
DRYRUNOPERATION = 'DryRunOperation'
|
22
|
-
|
23
|
-
# 操作失败。
|
24
|
-
FAILEDOPERATION = 'FailedOperation'
|
25
|
-
|
26
|
-
# 内部错误。
|
27
|
-
INTERNALERROR = 'InternalError'
|
28
|
-
|
29
|
-
# 参数错误。
|
30
|
-
INVALIDPARAMETER = 'InvalidParameter'
|
31
|
-
|
32
|
-
# 分组名称已存在。
|
33
|
-
INVALIDPARAMETER_GROUPNAMEEXISTED = 'InvalidParameter.GroupNameExisted'
|
34
|
-
|
35
|
-
# 记录超出限制。
|
36
|
-
INVALIDPARAMETER_RECORDEXCEEDSLIMIT = 'InvalidParameter.RecordExceedsLimit'
|
37
|
-
|
38
|
-
# 记录参数验证不通过。
|
39
|
-
INVALIDPARAMETER_RECORDPARAMETERCHECKFAIL = 'InvalidParameter.RecordParameterCheckFail'
|
40
|
-
|
41
|
-
# 记录参数解析不通过。
|
42
|
-
INVALIDPARAMETER_RECORDPARAMETERPARSEFAIL = 'InvalidParameter.RecordParameterParseFail'
|
43
|
-
|
44
|
-
# 参数取值错误。
|
45
|
-
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
46
|
-
|
47
|
-
# 超过配额限制。
|
48
|
-
LIMITEXCEEDED = 'LimitExceeded'
|
49
|
-
|
50
|
-
# 缺少参数错误。
|
51
|
-
MISSINGPARAMETER = 'MissingParameter'
|
52
|
-
|
53
|
-
# 操作被拒绝。
|
54
|
-
OPERATIONDENIED = 'OperationDenied'
|
55
|
-
|
56
|
-
# 请求的次数超过了频率限制。
|
57
|
-
REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
|
58
|
-
|
59
|
-
# 资源被占用。
|
60
|
-
RESOURCEINUSE = 'ResourceInUse'
|
61
|
-
|
62
|
-
# 资源不足。
|
63
|
-
RESOURCEINSUFFICIENT = 'ResourceInsufficient'
|
64
|
-
|
65
|
-
# 资源不存在。
|
66
|
-
RESOURCENOTFOUND = 'ResourceNotFound'
|
67
|
-
|
68
|
-
# 资源不可用。
|
69
|
-
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
70
|
-
|
71
|
-
# 资源售罄。
|
72
|
-
RESOURCESSOLDOUT = 'ResourcesSoldOut'
|
73
|
-
|
74
|
-
# 未授权操作。
|
75
|
-
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
76
|
-
|
77
|
-
# 未知参数错误。
|
78
|
-
UNKNOWNPARAMETER = 'UnknownParameter'
|
79
|
-
|
80
|
-
# 操作不支持。
|
81
|
-
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
@@ -1,112 +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 warnings
|
17
|
-
|
18
|
-
from tencentcloud.common.abstract_model import AbstractModel
|
19
|
-
|
20
|
-
|
21
|
-
class CreateBlockNodeRecordsRequest(AbstractModel):
|
22
|
-
"""CreateBlockNodeRecords请求参数结构体
|
23
|
-
|
24
|
-
"""
|
25
|
-
|
26
|
-
def __init__(self):
|
27
|
-
r"""
|
28
|
-
:param _GroupId: 盘查组id,可在“盘查组概览”功能中获取。
|
29
|
-
:type GroupId: str
|
30
|
-
:param _NodeId: 节点id,可在“数据接入管理”中获取。
|
31
|
-
:type NodeId: str
|
32
|
-
:param _Records: 节点数据json,具体demo请参考输入示例,其中key为数据接入管理中节点内创建的属性变量名,value为期望的推送值。
|
33
|
-
:type Records: str
|
34
|
-
"""
|
35
|
-
self._GroupId = None
|
36
|
-
self._NodeId = None
|
37
|
-
self._Records = None
|
38
|
-
|
39
|
-
@property
|
40
|
-
def GroupId(self):
|
41
|
-
"""盘查组id,可在“盘查组概览”功能中获取。
|
42
|
-
:rtype: str
|
43
|
-
"""
|
44
|
-
return self._GroupId
|
45
|
-
|
46
|
-
@GroupId.setter
|
47
|
-
def GroupId(self, GroupId):
|
48
|
-
self._GroupId = GroupId
|
49
|
-
|
50
|
-
@property
|
51
|
-
def NodeId(self):
|
52
|
-
"""节点id,可在“数据接入管理”中获取。
|
53
|
-
:rtype: str
|
54
|
-
"""
|
55
|
-
return self._NodeId
|
56
|
-
|
57
|
-
@NodeId.setter
|
58
|
-
def NodeId(self, NodeId):
|
59
|
-
self._NodeId = NodeId
|
60
|
-
|
61
|
-
@property
|
62
|
-
def Records(self):
|
63
|
-
"""节点数据json,具体demo请参考输入示例,其中key为数据接入管理中节点内创建的属性变量名,value为期望的推送值。
|
64
|
-
:rtype: str
|
65
|
-
"""
|
66
|
-
return self._Records
|
67
|
-
|
68
|
-
@Records.setter
|
69
|
-
def Records(self, Records):
|
70
|
-
self._Records = Records
|
71
|
-
|
72
|
-
|
73
|
-
def _deserialize(self, params):
|
74
|
-
self._GroupId = params.get("GroupId")
|
75
|
-
self._NodeId = params.get("NodeId")
|
76
|
-
self._Records = params.get("Records")
|
77
|
-
memeber_set = set(params.keys())
|
78
|
-
for name, value in vars(self).items():
|
79
|
-
property_name = name[1:]
|
80
|
-
if property_name in memeber_set:
|
81
|
-
memeber_set.remove(property_name)
|
82
|
-
if len(memeber_set) > 0:
|
83
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
class CreateBlockNodeRecordsResponse(AbstractModel):
|
88
|
-
"""CreateBlockNodeRecords返回参数结构体
|
89
|
-
|
90
|
-
"""
|
91
|
-
|
92
|
-
def __init__(self):
|
93
|
-
r"""
|
94
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
95
|
-
:type RequestId: str
|
96
|
-
"""
|
97
|
-
self._RequestId = None
|
98
|
-
|
99
|
-
@property
|
100
|
-
def RequestId(self):
|
101
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
102
|
-
:rtype: str
|
103
|
-
"""
|
104
|
-
return self._RequestId
|
105
|
-
|
106
|
-
@RequestId.setter
|
107
|
-
def RequestId(self, RequestId):
|
108
|
-
self._RequestId = RequestId
|
109
|
-
|
110
|
-
|
111
|
-
def _deserialize(self, params):
|
112
|
-
self._RequestId = params.get("RequestId")
|
@@ -1,51 +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.tan.v20220420 import models
|
21
|
-
|
22
|
-
|
23
|
-
class TanClient(AbstractClient):
|
24
|
-
_apiVersion = '2022-04-20'
|
25
|
-
_endpoint = 'tan.tencentcloudapi.com'
|
26
|
-
_service = 'tan'
|
27
|
-
|
28
|
-
|
29
|
-
def CreateBlockNodeRecords(self, request):
|
30
|
-
"""产品下线
|
31
|
-
|
32
|
-
推送节点数据
|
33
|
-
|
34
|
-
:param request: Request instance for CreateBlockNodeRecords.
|
35
|
-
:type request: :class:`tencentcloud.tan.v20220420.models.CreateBlockNodeRecordsRequest`
|
36
|
-
:rtype: :class:`tencentcloud.tan.v20220420.models.CreateBlockNodeRecordsResponse`
|
37
|
-
|
38
|
-
"""
|
39
|
-
try:
|
40
|
-
params = request._serialize()
|
41
|
-
headers = request.headers
|
42
|
-
body = self.call("CreateBlockNodeRecords", params, headers=headers)
|
43
|
-
response = json.loads(body)
|
44
|
-
model = models.CreateBlockNodeRecordsResponse()
|
45
|
-
model._deserialize(response["Response"])
|
46
|
-
return model
|
47
|
-
except Exception as e:
|
48
|
-
if isinstance(e, TencentCloudSDKException):
|
49
|
-
raise
|
50
|
-
else:
|
51
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
tencentcloud/tav/__init__.py
DELETED
File without changes
|
File without changes
|
@@ -1,15 +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
|
-
|