tencentcloud-sdk-python 3.0.1420__py2.py3-none-any.whl → 3.0.1422__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/batch/v20170312/models.py +4 -4
- tencentcloud/cdb/v20170320/cdb_client.py +1 -1
- tencentcloud/cdb/v20170320/models.py +8 -8
- tencentcloud/cdn/v20180606/models.py +4 -4
- tencentcloud/cdwch/v20200915/models.py +17 -2
- tencentcloud/cdwdoris/v20211228/errorcodes.py +6 -0
- tencentcloud/cdwdoris/v20211228/models.py +244 -4
- tencentcloud/cfg/v20210820/models.py +40 -0
- tencentcloud/ckafka/v20190819/ckafka_client.py +0 -23
- tencentcloud/ckafka/v20190819/models.py +0 -371
- tencentcloud/ctem/v20231128/models.py +30 -0
- tencentcloud/cvm/v20170312/models.py +4 -4
- tencentcloud/dts/v20211206/models.py +32 -2
- tencentcloud/emr/v20190103/models.py +74 -24
- tencentcloud/faceid/v20180301/models.py +22 -16
- 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/live/v20180801/live_client.py +69 -0
- tencentcloud/live/v20180801/models.py +102 -0
- tencentcloud/ocr/v20181119/models.py +4 -18
- tencentcloud/ocr/v20181119/ocr_client.py +3 -1
- tencentcloud/omics/v20221128/models.py +62 -2
- 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.1422.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1422.dist-info}/RECORD +37 -166
- 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.1422.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1422.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1422.dist-info}/top_level.txt +0 -0
@@ -1,1361 +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 ChangeRoomPlayerProfileRequest(AbstractModel):
|
22
|
-
"""ChangeRoomPlayerProfile请求参数结构体
|
23
|
-
|
24
|
-
"""
|
25
|
-
|
26
|
-
def __init__(self):
|
27
|
-
r"""
|
28
|
-
:param _GameId: 游戏资源Id。
|
29
|
-
:type GameId: str
|
30
|
-
:param _PlayerId: 发起修改的玩家Id。
|
31
|
-
:type PlayerId: str
|
32
|
-
:param _CustomProfile: 需要修改的玩家自定义属性。
|
33
|
-
:type CustomProfile: str
|
34
|
-
"""
|
35
|
-
self._GameId = None
|
36
|
-
self._PlayerId = None
|
37
|
-
self._CustomProfile = None
|
38
|
-
|
39
|
-
@property
|
40
|
-
def GameId(self):
|
41
|
-
"""游戏资源Id。
|
42
|
-
:rtype: str
|
43
|
-
"""
|
44
|
-
return self._GameId
|
45
|
-
|
46
|
-
@GameId.setter
|
47
|
-
def GameId(self, GameId):
|
48
|
-
self._GameId = GameId
|
49
|
-
|
50
|
-
@property
|
51
|
-
def PlayerId(self):
|
52
|
-
"""发起修改的玩家Id。
|
53
|
-
:rtype: str
|
54
|
-
"""
|
55
|
-
return self._PlayerId
|
56
|
-
|
57
|
-
@PlayerId.setter
|
58
|
-
def PlayerId(self, PlayerId):
|
59
|
-
self._PlayerId = PlayerId
|
60
|
-
|
61
|
-
@property
|
62
|
-
def CustomProfile(self):
|
63
|
-
"""需要修改的玩家自定义属性。
|
64
|
-
:rtype: str
|
65
|
-
"""
|
66
|
-
return self._CustomProfile
|
67
|
-
|
68
|
-
@CustomProfile.setter
|
69
|
-
def CustomProfile(self, CustomProfile):
|
70
|
-
self._CustomProfile = CustomProfile
|
71
|
-
|
72
|
-
|
73
|
-
def _deserialize(self, params):
|
74
|
-
self._GameId = params.get("GameId")
|
75
|
-
self._PlayerId = params.get("PlayerId")
|
76
|
-
self._CustomProfile = params.get("CustomProfile")
|
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 ChangeRoomPlayerProfileResponse(AbstractModel):
|
88
|
-
"""ChangeRoomPlayerProfile返回参数结构体
|
89
|
-
|
90
|
-
"""
|
91
|
-
|
92
|
-
def __init__(self):
|
93
|
-
r"""
|
94
|
-
:param _Room: 房间信息。
|
95
|
-
:type Room: :class:`tencentcloud.mgobe.v20201014.models.Room`
|
96
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
97
|
-
:type RequestId: str
|
98
|
-
"""
|
99
|
-
self._Room = None
|
100
|
-
self._RequestId = None
|
101
|
-
|
102
|
-
@property
|
103
|
-
def Room(self):
|
104
|
-
"""房间信息。
|
105
|
-
:rtype: :class:`tencentcloud.mgobe.v20201014.models.Room`
|
106
|
-
"""
|
107
|
-
return self._Room
|
108
|
-
|
109
|
-
@Room.setter
|
110
|
-
def Room(self, Room):
|
111
|
-
self._Room = Room
|
112
|
-
|
113
|
-
@property
|
114
|
-
def RequestId(self):
|
115
|
-
"""唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
116
|
-
:rtype: str
|
117
|
-
"""
|
118
|
-
return self._RequestId
|
119
|
-
|
120
|
-
@RequestId.setter
|
121
|
-
def RequestId(self, RequestId):
|
122
|
-
self._RequestId = RequestId
|
123
|
-
|
124
|
-
|
125
|
-
def _deserialize(self, params):
|
126
|
-
if params.get("Room") is not None:
|
127
|
-
self._Room = Room()
|
128
|
-
self._Room._deserialize(params.get("Room"))
|
129
|
-
self._RequestId = params.get("RequestId")
|
130
|
-
|
131
|
-
|
132
|
-
class ChangeRoomPlayerStatusRequest(AbstractModel):
|
133
|
-
"""ChangeRoomPlayerStatus请求参数结构体
|
134
|
-
|
135
|
-
"""
|
136
|
-
|
137
|
-
def __init__(self):
|
138
|
-
r"""
|
139
|
-
:param _GameId: 游戏资源Id。
|
140
|
-
:type GameId: str
|
141
|
-
:param _CustomStatus: 玩家自定义状态。
|
142
|
-
:type CustomStatus: int
|
143
|
-
:param _PlayerId: 玩家id。
|
144
|
-
:type PlayerId: str
|
145
|
-
"""
|
146
|
-
self._GameId = None
|
147
|
-
self._CustomStatus = None
|
148
|
-
self._PlayerId = None
|
149
|
-
|
150
|
-
@property
|
151
|
-
def GameId(self):
|
152
|
-
"""游戏资源Id。
|
153
|
-
:rtype: str
|
154
|
-
"""
|
155
|
-
return self._GameId
|
156
|
-
|
157
|
-
@GameId.setter
|
158
|
-
def GameId(self, GameId):
|
159
|
-
self._GameId = GameId
|
160
|
-
|
161
|
-
@property
|
162
|
-
def CustomStatus(self):
|
163
|
-
"""玩家自定义状态。
|
164
|
-
:rtype: int
|
165
|
-
"""
|
166
|
-
return self._CustomStatus
|
167
|
-
|
168
|
-
@CustomStatus.setter
|
169
|
-
def CustomStatus(self, CustomStatus):
|
170
|
-
self._CustomStatus = CustomStatus
|
171
|
-
|
172
|
-
@property
|
173
|
-
def PlayerId(self):
|
174
|
-
"""玩家id。
|
175
|
-
:rtype: str
|
176
|
-
"""
|
177
|
-
return self._PlayerId
|
178
|
-
|
179
|
-
@PlayerId.setter
|
180
|
-
def PlayerId(self, PlayerId):
|
181
|
-
self._PlayerId = PlayerId
|
182
|
-
|
183
|
-
|
184
|
-
def _deserialize(self, params):
|
185
|
-
self._GameId = params.get("GameId")
|
186
|
-
self._CustomStatus = params.get("CustomStatus")
|
187
|
-
self._PlayerId = params.get("PlayerId")
|
188
|
-
memeber_set = set(params.keys())
|
189
|
-
for name, value in vars(self).items():
|
190
|
-
property_name = name[1:]
|
191
|
-
if property_name in memeber_set:
|
192
|
-
memeber_set.remove(property_name)
|
193
|
-
if len(memeber_set) > 0:
|
194
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
class ChangeRoomPlayerStatusResponse(AbstractModel):
|
199
|
-
"""ChangeRoomPlayerStatus返回参数结构体
|
200
|
-
|
201
|
-
"""
|
202
|
-
|
203
|
-
def __init__(self):
|
204
|
-
r"""
|
205
|
-
:param _Room: 房间信息
|
206
|
-
:type Room: :class:`tencentcloud.mgobe.v20201014.models.Room`
|
207
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
208
|
-
:type RequestId: str
|
209
|
-
"""
|
210
|
-
self._Room = None
|
211
|
-
self._RequestId = None
|
212
|
-
|
213
|
-
@property
|
214
|
-
def Room(self):
|
215
|
-
"""房间信息
|
216
|
-
:rtype: :class:`tencentcloud.mgobe.v20201014.models.Room`
|
217
|
-
"""
|
218
|
-
return self._Room
|
219
|
-
|
220
|
-
@Room.setter
|
221
|
-
def Room(self, Room):
|
222
|
-
self._Room = Room
|
223
|
-
|
224
|
-
@property
|
225
|
-
def RequestId(self):
|
226
|
-
"""唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
227
|
-
:rtype: str
|
228
|
-
"""
|
229
|
-
return self._RequestId
|
230
|
-
|
231
|
-
@RequestId.setter
|
232
|
-
def RequestId(self, RequestId):
|
233
|
-
self._RequestId = RequestId
|
234
|
-
|
235
|
-
|
236
|
-
def _deserialize(self, params):
|
237
|
-
if params.get("Room") is not None:
|
238
|
-
self._Room = Room()
|
239
|
-
self._Room._deserialize(params.get("Room"))
|
240
|
-
self._RequestId = params.get("RequestId")
|
241
|
-
|
242
|
-
|
243
|
-
class DescribePlayerRequest(AbstractModel):
|
244
|
-
"""DescribePlayer请求参数结构体
|
245
|
-
|
246
|
-
"""
|
247
|
-
|
248
|
-
def __init__(self):
|
249
|
-
r"""
|
250
|
-
:param _GameId: 游戏资源Id。
|
251
|
-
:type GameId: str
|
252
|
-
:param _OpenId: 玩家OpenId。
|
253
|
-
:type OpenId: str
|
254
|
-
:param _PlayerId: 玩家PlayerId,由后台分配,当OpenId不传的时候,PlayerId必传,传入PlayerId可以查询当前PlayerId的玩家信息,当OpenId传入的时候,PlayerId可不传,按照OpenId查询玩家信息。
|
255
|
-
:type PlayerId: str
|
256
|
-
"""
|
257
|
-
self._GameId = None
|
258
|
-
self._OpenId = None
|
259
|
-
self._PlayerId = None
|
260
|
-
|
261
|
-
@property
|
262
|
-
def GameId(self):
|
263
|
-
"""游戏资源Id。
|
264
|
-
:rtype: str
|
265
|
-
"""
|
266
|
-
return self._GameId
|
267
|
-
|
268
|
-
@GameId.setter
|
269
|
-
def GameId(self, GameId):
|
270
|
-
self._GameId = GameId
|
271
|
-
|
272
|
-
@property
|
273
|
-
def OpenId(self):
|
274
|
-
"""玩家OpenId。
|
275
|
-
:rtype: str
|
276
|
-
"""
|
277
|
-
return self._OpenId
|
278
|
-
|
279
|
-
@OpenId.setter
|
280
|
-
def OpenId(self, OpenId):
|
281
|
-
self._OpenId = OpenId
|
282
|
-
|
283
|
-
@property
|
284
|
-
def PlayerId(self):
|
285
|
-
"""玩家PlayerId,由后台分配,当OpenId不传的时候,PlayerId必传,传入PlayerId可以查询当前PlayerId的玩家信息,当OpenId传入的时候,PlayerId可不传,按照OpenId查询玩家信息。
|
286
|
-
:rtype: str
|
287
|
-
"""
|
288
|
-
return self._PlayerId
|
289
|
-
|
290
|
-
@PlayerId.setter
|
291
|
-
def PlayerId(self, PlayerId):
|
292
|
-
self._PlayerId = PlayerId
|
293
|
-
|
294
|
-
|
295
|
-
def _deserialize(self, params):
|
296
|
-
self._GameId = params.get("GameId")
|
297
|
-
self._OpenId = params.get("OpenId")
|
298
|
-
self._PlayerId = params.get("PlayerId")
|
299
|
-
memeber_set = set(params.keys())
|
300
|
-
for name, value in vars(self).items():
|
301
|
-
property_name = name[1:]
|
302
|
-
if property_name in memeber_set:
|
303
|
-
memeber_set.remove(property_name)
|
304
|
-
if len(memeber_set) > 0:
|
305
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
class DescribePlayerResponse(AbstractModel):
|
310
|
-
"""DescribePlayer返回参数结构体
|
311
|
-
|
312
|
-
"""
|
313
|
-
|
314
|
-
def __init__(self):
|
315
|
-
r"""
|
316
|
-
:param _Player: 玩家信息。
|
317
|
-
:type Player: :class:`tencentcloud.mgobe.v20201014.models.Player`
|
318
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
319
|
-
:type RequestId: str
|
320
|
-
"""
|
321
|
-
self._Player = None
|
322
|
-
self._RequestId = None
|
323
|
-
|
324
|
-
@property
|
325
|
-
def Player(self):
|
326
|
-
"""玩家信息。
|
327
|
-
:rtype: :class:`tencentcloud.mgobe.v20201014.models.Player`
|
328
|
-
"""
|
329
|
-
return self._Player
|
330
|
-
|
331
|
-
@Player.setter
|
332
|
-
def Player(self, Player):
|
333
|
-
self._Player = Player
|
334
|
-
|
335
|
-
@property
|
336
|
-
def RequestId(self):
|
337
|
-
"""唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
338
|
-
:rtype: str
|
339
|
-
"""
|
340
|
-
return self._RequestId
|
341
|
-
|
342
|
-
@RequestId.setter
|
343
|
-
def RequestId(self, RequestId):
|
344
|
-
self._RequestId = RequestId
|
345
|
-
|
346
|
-
|
347
|
-
def _deserialize(self, params):
|
348
|
-
if params.get("Player") is not None:
|
349
|
-
self._Player = Player()
|
350
|
-
self._Player._deserialize(params.get("Player"))
|
351
|
-
self._RequestId = params.get("RequestId")
|
352
|
-
|
353
|
-
|
354
|
-
class DescribeRoomRequest(AbstractModel):
|
355
|
-
"""DescribeRoom请求参数结构体
|
356
|
-
|
357
|
-
"""
|
358
|
-
|
359
|
-
def __init__(self):
|
360
|
-
r"""
|
361
|
-
:param _GameId: 游戏资源Id。
|
362
|
-
:type GameId: str
|
363
|
-
:param _PlayerId: 玩家Id。当房间Id不传的时候,玩家Id必传,传入玩家Id可以查询当前玩家所在的房间信息,当房间Id传入的时候,优先按照房间Id查询房间信息。
|
364
|
-
:type PlayerId: str
|
365
|
-
:param _RoomId: 房间Id。
|
366
|
-
:type RoomId: str
|
367
|
-
"""
|
368
|
-
self._GameId = None
|
369
|
-
self._PlayerId = None
|
370
|
-
self._RoomId = None
|
371
|
-
|
372
|
-
@property
|
373
|
-
def GameId(self):
|
374
|
-
"""游戏资源Id。
|
375
|
-
:rtype: str
|
376
|
-
"""
|
377
|
-
return self._GameId
|
378
|
-
|
379
|
-
@GameId.setter
|
380
|
-
def GameId(self, GameId):
|
381
|
-
self._GameId = GameId
|
382
|
-
|
383
|
-
@property
|
384
|
-
def PlayerId(self):
|
385
|
-
"""玩家Id。当房间Id不传的时候,玩家Id必传,传入玩家Id可以查询当前玩家所在的房间信息,当房间Id传入的时候,优先按照房间Id查询房间信息。
|
386
|
-
:rtype: str
|
387
|
-
"""
|
388
|
-
return self._PlayerId
|
389
|
-
|
390
|
-
@PlayerId.setter
|
391
|
-
def PlayerId(self, PlayerId):
|
392
|
-
self._PlayerId = PlayerId
|
393
|
-
|
394
|
-
@property
|
395
|
-
def RoomId(self):
|
396
|
-
"""房间Id。
|
397
|
-
:rtype: str
|
398
|
-
"""
|
399
|
-
return self._RoomId
|
400
|
-
|
401
|
-
@RoomId.setter
|
402
|
-
def RoomId(self, RoomId):
|
403
|
-
self._RoomId = RoomId
|
404
|
-
|
405
|
-
|
406
|
-
def _deserialize(self, params):
|
407
|
-
self._GameId = params.get("GameId")
|
408
|
-
self._PlayerId = params.get("PlayerId")
|
409
|
-
self._RoomId = params.get("RoomId")
|
410
|
-
memeber_set = set(params.keys())
|
411
|
-
for name, value in vars(self).items():
|
412
|
-
property_name = name[1:]
|
413
|
-
if property_name in memeber_set:
|
414
|
-
memeber_set.remove(property_name)
|
415
|
-
if len(memeber_set) > 0:
|
416
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
class DescribeRoomResponse(AbstractModel):
|
421
|
-
"""DescribeRoom返回参数结构体
|
422
|
-
|
423
|
-
"""
|
424
|
-
|
425
|
-
def __init__(self):
|
426
|
-
r"""
|
427
|
-
:param _Room: 房间信息。
|
428
|
-
:type Room: :class:`tencentcloud.mgobe.v20201014.models.Room`
|
429
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
430
|
-
:type RequestId: str
|
431
|
-
"""
|
432
|
-
self._Room = None
|
433
|
-
self._RequestId = None
|
434
|
-
|
435
|
-
@property
|
436
|
-
def Room(self):
|
437
|
-
"""房间信息。
|
438
|
-
:rtype: :class:`tencentcloud.mgobe.v20201014.models.Room`
|
439
|
-
"""
|
440
|
-
return self._Room
|
441
|
-
|
442
|
-
@Room.setter
|
443
|
-
def Room(self, Room):
|
444
|
-
self._Room = Room
|
445
|
-
|
446
|
-
@property
|
447
|
-
def RequestId(self):
|
448
|
-
"""唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
449
|
-
:rtype: str
|
450
|
-
"""
|
451
|
-
return self._RequestId
|
452
|
-
|
453
|
-
@RequestId.setter
|
454
|
-
def RequestId(self, RequestId):
|
455
|
-
self._RequestId = RequestId
|
456
|
-
|
457
|
-
|
458
|
-
def _deserialize(self, params):
|
459
|
-
if params.get("Room") is not None:
|
460
|
-
self._Room = Room()
|
461
|
-
self._Room._deserialize(params.get("Room"))
|
462
|
-
self._RequestId = params.get("RequestId")
|
463
|
-
|
464
|
-
|
465
|
-
class DismissRoomRequest(AbstractModel):
|
466
|
-
"""DismissRoom请求参数结构体
|
467
|
-
|
468
|
-
"""
|
469
|
-
|
470
|
-
def __init__(self):
|
471
|
-
r"""
|
472
|
-
:param _GameId: 表示游戏资源唯一 ID, 由后台自动分配, 无法修改。
|
473
|
-
:type GameId: str
|
474
|
-
:param _RoomId: 表示游戏房间唯一ID。
|
475
|
-
:type RoomId: str
|
476
|
-
"""
|
477
|
-
self._GameId = None
|
478
|
-
self._RoomId = None
|
479
|
-
|
480
|
-
@property
|
481
|
-
def GameId(self):
|
482
|
-
"""表示游戏资源唯一 ID, 由后台自动分配, 无法修改。
|
483
|
-
:rtype: str
|
484
|
-
"""
|
485
|
-
return self._GameId
|
486
|
-
|
487
|
-
@GameId.setter
|
488
|
-
def GameId(self, GameId):
|
489
|
-
self._GameId = GameId
|
490
|
-
|
491
|
-
@property
|
492
|
-
def RoomId(self):
|
493
|
-
"""表示游戏房间唯一ID。
|
494
|
-
:rtype: str
|
495
|
-
"""
|
496
|
-
return self._RoomId
|
497
|
-
|
498
|
-
@RoomId.setter
|
499
|
-
def RoomId(self, RoomId):
|
500
|
-
self._RoomId = RoomId
|
501
|
-
|
502
|
-
|
503
|
-
def _deserialize(self, params):
|
504
|
-
self._GameId = params.get("GameId")
|
505
|
-
self._RoomId = params.get("RoomId")
|
506
|
-
memeber_set = set(params.keys())
|
507
|
-
for name, value in vars(self).items():
|
508
|
-
property_name = name[1:]
|
509
|
-
if property_name in memeber_set:
|
510
|
-
memeber_set.remove(property_name)
|
511
|
-
if len(memeber_set) > 0:
|
512
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
class DismissRoomResponse(AbstractModel):
|
517
|
-
"""DismissRoom返回参数结构体
|
518
|
-
|
519
|
-
"""
|
520
|
-
|
521
|
-
def __init__(self):
|
522
|
-
r"""
|
523
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
524
|
-
:type RequestId: str
|
525
|
-
"""
|
526
|
-
self._RequestId = None
|
527
|
-
|
528
|
-
@property
|
529
|
-
def RequestId(self):
|
530
|
-
"""唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
531
|
-
:rtype: str
|
532
|
-
"""
|
533
|
-
return self._RequestId
|
534
|
-
|
535
|
-
@RequestId.setter
|
536
|
-
def RequestId(self, RequestId):
|
537
|
-
self._RequestId = RequestId
|
538
|
-
|
539
|
-
|
540
|
-
def _deserialize(self, params):
|
541
|
-
self._RequestId = params.get("RequestId")
|
542
|
-
|
543
|
-
|
544
|
-
class ModifyRoomRequest(AbstractModel):
|
545
|
-
"""ModifyRoom请求参数结构体
|
546
|
-
|
547
|
-
"""
|
548
|
-
|
549
|
-
def __init__(self):
|
550
|
-
r"""
|
551
|
-
:param _GameId: 游戏资源Id。
|
552
|
-
:type GameId: str
|
553
|
-
:param _RoomId: 房间ID。
|
554
|
-
:type RoomId: str
|
555
|
-
:param _PlayerId: 发起者的PlayerId。
|
556
|
-
:type PlayerId: str
|
557
|
-
:param _ChangeRoomOptionList: 需要修改的房间选项,0表示房间名称,1表示房主,2表示是否允许观战,3表示是否支持邀请码/密码,4表示是否私有,5表示是否自定义房间属性,6表示是否禁止加人。
|
558
|
-
:type ChangeRoomOptionList: list of int
|
559
|
-
:param _RoomName: 房间名称。
|
560
|
-
:type RoomName: str
|
561
|
-
:param _Owner: 变更房主。
|
562
|
-
:type Owner: str
|
563
|
-
:param _IsViewed: 是否支持观战。
|
564
|
-
:type IsViewed: bool
|
565
|
-
:param _IsInvited: 是否支持邀请码/密码。
|
566
|
-
:type IsInvited: bool
|
567
|
-
:param _IsPrivate: 是否私有。
|
568
|
-
:type IsPrivate: bool
|
569
|
-
:param _CustomProperties: 自定义房间属性。
|
570
|
-
:type CustomProperties: str
|
571
|
-
:param _IsForbidJoin: 房间是否禁止加人。
|
572
|
-
:type IsForbidJoin: bool
|
573
|
-
"""
|
574
|
-
self._GameId = None
|
575
|
-
self._RoomId = None
|
576
|
-
self._PlayerId = None
|
577
|
-
self._ChangeRoomOptionList = None
|
578
|
-
self._RoomName = None
|
579
|
-
self._Owner = None
|
580
|
-
self._IsViewed = None
|
581
|
-
self._IsInvited = None
|
582
|
-
self._IsPrivate = None
|
583
|
-
self._CustomProperties = None
|
584
|
-
self._IsForbidJoin = None
|
585
|
-
|
586
|
-
@property
|
587
|
-
def GameId(self):
|
588
|
-
"""游戏资源Id。
|
589
|
-
:rtype: str
|
590
|
-
"""
|
591
|
-
return self._GameId
|
592
|
-
|
593
|
-
@GameId.setter
|
594
|
-
def GameId(self, GameId):
|
595
|
-
self._GameId = GameId
|
596
|
-
|
597
|
-
@property
|
598
|
-
def RoomId(self):
|
599
|
-
"""房间ID。
|
600
|
-
:rtype: str
|
601
|
-
"""
|
602
|
-
return self._RoomId
|
603
|
-
|
604
|
-
@RoomId.setter
|
605
|
-
def RoomId(self, RoomId):
|
606
|
-
self._RoomId = RoomId
|
607
|
-
|
608
|
-
@property
|
609
|
-
def PlayerId(self):
|
610
|
-
"""发起者的PlayerId。
|
611
|
-
:rtype: str
|
612
|
-
"""
|
613
|
-
return self._PlayerId
|
614
|
-
|
615
|
-
@PlayerId.setter
|
616
|
-
def PlayerId(self, PlayerId):
|
617
|
-
self._PlayerId = PlayerId
|
618
|
-
|
619
|
-
@property
|
620
|
-
def ChangeRoomOptionList(self):
|
621
|
-
"""需要修改的房间选项,0表示房间名称,1表示房主,2表示是否允许观战,3表示是否支持邀请码/密码,4表示是否私有,5表示是否自定义房间属性,6表示是否禁止加人。
|
622
|
-
:rtype: list of int
|
623
|
-
"""
|
624
|
-
return self._ChangeRoomOptionList
|
625
|
-
|
626
|
-
@ChangeRoomOptionList.setter
|
627
|
-
def ChangeRoomOptionList(self, ChangeRoomOptionList):
|
628
|
-
self._ChangeRoomOptionList = ChangeRoomOptionList
|
629
|
-
|
630
|
-
@property
|
631
|
-
def RoomName(self):
|
632
|
-
"""房间名称。
|
633
|
-
:rtype: str
|
634
|
-
"""
|
635
|
-
return self._RoomName
|
636
|
-
|
637
|
-
@RoomName.setter
|
638
|
-
def RoomName(self, RoomName):
|
639
|
-
self._RoomName = RoomName
|
640
|
-
|
641
|
-
@property
|
642
|
-
def Owner(self):
|
643
|
-
"""变更房主。
|
644
|
-
:rtype: str
|
645
|
-
"""
|
646
|
-
return self._Owner
|
647
|
-
|
648
|
-
@Owner.setter
|
649
|
-
def Owner(self, Owner):
|
650
|
-
self._Owner = Owner
|
651
|
-
|
652
|
-
@property
|
653
|
-
def IsViewed(self):
|
654
|
-
"""是否支持观战。
|
655
|
-
:rtype: bool
|
656
|
-
"""
|
657
|
-
return self._IsViewed
|
658
|
-
|
659
|
-
@IsViewed.setter
|
660
|
-
def IsViewed(self, IsViewed):
|
661
|
-
self._IsViewed = IsViewed
|
662
|
-
|
663
|
-
@property
|
664
|
-
def IsInvited(self):
|
665
|
-
"""是否支持邀请码/密码。
|
666
|
-
:rtype: bool
|
667
|
-
"""
|
668
|
-
return self._IsInvited
|
669
|
-
|
670
|
-
@IsInvited.setter
|
671
|
-
def IsInvited(self, IsInvited):
|
672
|
-
self._IsInvited = IsInvited
|
673
|
-
|
674
|
-
@property
|
675
|
-
def IsPrivate(self):
|
676
|
-
"""是否私有。
|
677
|
-
:rtype: bool
|
678
|
-
"""
|
679
|
-
return self._IsPrivate
|
680
|
-
|
681
|
-
@IsPrivate.setter
|
682
|
-
def IsPrivate(self, IsPrivate):
|
683
|
-
self._IsPrivate = IsPrivate
|
684
|
-
|
685
|
-
@property
|
686
|
-
def CustomProperties(self):
|
687
|
-
"""自定义房间属性。
|
688
|
-
:rtype: str
|
689
|
-
"""
|
690
|
-
return self._CustomProperties
|
691
|
-
|
692
|
-
@CustomProperties.setter
|
693
|
-
def CustomProperties(self, CustomProperties):
|
694
|
-
self._CustomProperties = CustomProperties
|
695
|
-
|
696
|
-
@property
|
697
|
-
def IsForbidJoin(self):
|
698
|
-
"""房间是否禁止加人。
|
699
|
-
:rtype: bool
|
700
|
-
"""
|
701
|
-
return self._IsForbidJoin
|
702
|
-
|
703
|
-
@IsForbidJoin.setter
|
704
|
-
def IsForbidJoin(self, IsForbidJoin):
|
705
|
-
self._IsForbidJoin = IsForbidJoin
|
706
|
-
|
707
|
-
|
708
|
-
def _deserialize(self, params):
|
709
|
-
self._GameId = params.get("GameId")
|
710
|
-
self._RoomId = params.get("RoomId")
|
711
|
-
self._PlayerId = params.get("PlayerId")
|
712
|
-
self._ChangeRoomOptionList = params.get("ChangeRoomOptionList")
|
713
|
-
self._RoomName = params.get("RoomName")
|
714
|
-
self._Owner = params.get("Owner")
|
715
|
-
self._IsViewed = params.get("IsViewed")
|
716
|
-
self._IsInvited = params.get("IsInvited")
|
717
|
-
self._IsPrivate = params.get("IsPrivate")
|
718
|
-
self._CustomProperties = params.get("CustomProperties")
|
719
|
-
self._IsForbidJoin = params.get("IsForbidJoin")
|
720
|
-
memeber_set = set(params.keys())
|
721
|
-
for name, value in vars(self).items():
|
722
|
-
property_name = name[1:]
|
723
|
-
if property_name in memeber_set:
|
724
|
-
memeber_set.remove(property_name)
|
725
|
-
if len(memeber_set) > 0:
|
726
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
class ModifyRoomResponse(AbstractModel):
|
731
|
-
"""ModifyRoom返回参数结构体
|
732
|
-
|
733
|
-
"""
|
734
|
-
|
735
|
-
def __init__(self):
|
736
|
-
r"""
|
737
|
-
:param _Room: 房间信息
|
738
|
-
:type Room: :class:`tencentcloud.mgobe.v20201014.models.Room`
|
739
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
740
|
-
:type RequestId: str
|
741
|
-
"""
|
742
|
-
self._Room = None
|
743
|
-
self._RequestId = None
|
744
|
-
|
745
|
-
@property
|
746
|
-
def Room(self):
|
747
|
-
"""房间信息
|
748
|
-
:rtype: :class:`tencentcloud.mgobe.v20201014.models.Room`
|
749
|
-
"""
|
750
|
-
return self._Room
|
751
|
-
|
752
|
-
@Room.setter
|
753
|
-
def Room(self, Room):
|
754
|
-
self._Room = Room
|
755
|
-
|
756
|
-
@property
|
757
|
-
def RequestId(self):
|
758
|
-
"""唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
759
|
-
:rtype: str
|
760
|
-
"""
|
761
|
-
return self._RequestId
|
762
|
-
|
763
|
-
@RequestId.setter
|
764
|
-
def RequestId(self, RequestId):
|
765
|
-
self._RequestId = RequestId
|
766
|
-
|
767
|
-
|
768
|
-
def _deserialize(self, params):
|
769
|
-
if params.get("Room") is not None:
|
770
|
-
self._Room = Room()
|
771
|
-
self._Room._deserialize(params.get("Room"))
|
772
|
-
self._RequestId = params.get("RequestId")
|
773
|
-
|
774
|
-
|
775
|
-
class Player(AbstractModel):
|
776
|
-
"""玩家信息详情
|
777
|
-
|
778
|
-
"""
|
779
|
-
|
780
|
-
def __init__(self):
|
781
|
-
r"""
|
782
|
-
:param _OpenId: 玩家 OpenId。最长不超过64个字符。
|
783
|
-
:type OpenId: str
|
784
|
-
:param _Name: 玩家昵称。最长不超过32个字符。
|
785
|
-
:type Name: str
|
786
|
-
:param _TeamId: 队伍 ID。最长不超过16个字符。
|
787
|
-
:type TeamId: str
|
788
|
-
:param _IsRobot: 是否为机器人。
|
789
|
-
:type IsRobot: bool
|
790
|
-
:param _PlayerId: 玩家 PlayerId。出参使用,由后端返回。
|
791
|
-
:type PlayerId: str
|
792
|
-
:param _CustomPlayerStatus: 自定义玩家状态。非负数,最大不超过4294967295。默认为0。
|
793
|
-
:type CustomPlayerStatus: int
|
794
|
-
:param _CustomProfile: 自定义玩家属性。最长不超过256个字符。默认为空字符串。
|
795
|
-
:type CustomProfile: str
|
796
|
-
"""
|
797
|
-
self._OpenId = None
|
798
|
-
self._Name = None
|
799
|
-
self._TeamId = None
|
800
|
-
self._IsRobot = None
|
801
|
-
self._PlayerId = None
|
802
|
-
self._CustomPlayerStatus = None
|
803
|
-
self._CustomProfile = None
|
804
|
-
|
805
|
-
@property
|
806
|
-
def OpenId(self):
|
807
|
-
"""玩家 OpenId。最长不超过64个字符。
|
808
|
-
:rtype: str
|
809
|
-
"""
|
810
|
-
return self._OpenId
|
811
|
-
|
812
|
-
@OpenId.setter
|
813
|
-
def OpenId(self, OpenId):
|
814
|
-
self._OpenId = OpenId
|
815
|
-
|
816
|
-
@property
|
817
|
-
def Name(self):
|
818
|
-
"""玩家昵称。最长不超过32个字符。
|
819
|
-
:rtype: str
|
820
|
-
"""
|
821
|
-
return self._Name
|
822
|
-
|
823
|
-
@Name.setter
|
824
|
-
def Name(self, Name):
|
825
|
-
self._Name = Name
|
826
|
-
|
827
|
-
@property
|
828
|
-
def TeamId(self):
|
829
|
-
"""队伍 ID。最长不超过16个字符。
|
830
|
-
:rtype: str
|
831
|
-
"""
|
832
|
-
return self._TeamId
|
833
|
-
|
834
|
-
@TeamId.setter
|
835
|
-
def TeamId(self, TeamId):
|
836
|
-
self._TeamId = TeamId
|
837
|
-
|
838
|
-
@property
|
839
|
-
def IsRobot(self):
|
840
|
-
"""是否为机器人。
|
841
|
-
:rtype: bool
|
842
|
-
"""
|
843
|
-
return self._IsRobot
|
844
|
-
|
845
|
-
@IsRobot.setter
|
846
|
-
def IsRobot(self, IsRobot):
|
847
|
-
self._IsRobot = IsRobot
|
848
|
-
|
849
|
-
@property
|
850
|
-
def PlayerId(self):
|
851
|
-
"""玩家 PlayerId。出参使用,由后端返回。
|
852
|
-
:rtype: str
|
853
|
-
"""
|
854
|
-
return self._PlayerId
|
855
|
-
|
856
|
-
@PlayerId.setter
|
857
|
-
def PlayerId(self, PlayerId):
|
858
|
-
self._PlayerId = PlayerId
|
859
|
-
|
860
|
-
@property
|
861
|
-
def CustomPlayerStatus(self):
|
862
|
-
"""自定义玩家状态。非负数,最大不超过4294967295。默认为0。
|
863
|
-
:rtype: int
|
864
|
-
"""
|
865
|
-
return self._CustomPlayerStatus
|
866
|
-
|
867
|
-
@CustomPlayerStatus.setter
|
868
|
-
def CustomPlayerStatus(self, CustomPlayerStatus):
|
869
|
-
self._CustomPlayerStatus = CustomPlayerStatus
|
870
|
-
|
871
|
-
@property
|
872
|
-
def CustomProfile(self):
|
873
|
-
"""自定义玩家属性。最长不超过256个字符。默认为空字符串。
|
874
|
-
:rtype: str
|
875
|
-
"""
|
876
|
-
return self._CustomProfile
|
877
|
-
|
878
|
-
@CustomProfile.setter
|
879
|
-
def CustomProfile(self, CustomProfile):
|
880
|
-
self._CustomProfile = CustomProfile
|
881
|
-
|
882
|
-
|
883
|
-
def _deserialize(self, params):
|
884
|
-
self._OpenId = params.get("OpenId")
|
885
|
-
self._Name = params.get("Name")
|
886
|
-
self._TeamId = params.get("TeamId")
|
887
|
-
self._IsRobot = params.get("IsRobot")
|
888
|
-
self._PlayerId = params.get("PlayerId")
|
889
|
-
self._CustomPlayerStatus = params.get("CustomPlayerStatus")
|
890
|
-
self._CustomProfile = params.get("CustomProfile")
|
891
|
-
memeber_set = set(params.keys())
|
892
|
-
for name, value in vars(self).items():
|
893
|
-
property_name = name[1:]
|
894
|
-
if property_name in memeber_set:
|
895
|
-
memeber_set.remove(property_name)
|
896
|
-
if len(memeber_set) > 0:
|
897
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
class RemoveRoomPlayerRequest(AbstractModel):
|
902
|
-
"""RemoveRoomPlayer请求参数结构体
|
903
|
-
|
904
|
-
"""
|
905
|
-
|
906
|
-
def __init__(self):
|
907
|
-
r"""
|
908
|
-
:param _GameId: 游戏资源Id。
|
909
|
-
:type GameId: str
|
910
|
-
:param _RemovePlayerId: 被踢出房间的玩家Id。
|
911
|
-
:type RemovePlayerId: str
|
912
|
-
"""
|
913
|
-
self._GameId = None
|
914
|
-
self._RemovePlayerId = None
|
915
|
-
|
916
|
-
@property
|
917
|
-
def GameId(self):
|
918
|
-
"""游戏资源Id。
|
919
|
-
:rtype: str
|
920
|
-
"""
|
921
|
-
return self._GameId
|
922
|
-
|
923
|
-
@GameId.setter
|
924
|
-
def GameId(self, GameId):
|
925
|
-
self._GameId = GameId
|
926
|
-
|
927
|
-
@property
|
928
|
-
def RemovePlayerId(self):
|
929
|
-
"""被踢出房间的玩家Id。
|
930
|
-
:rtype: str
|
931
|
-
"""
|
932
|
-
return self._RemovePlayerId
|
933
|
-
|
934
|
-
@RemovePlayerId.setter
|
935
|
-
def RemovePlayerId(self, RemovePlayerId):
|
936
|
-
self._RemovePlayerId = RemovePlayerId
|
937
|
-
|
938
|
-
|
939
|
-
def _deserialize(self, params):
|
940
|
-
self._GameId = params.get("GameId")
|
941
|
-
self._RemovePlayerId = params.get("RemovePlayerId")
|
942
|
-
memeber_set = set(params.keys())
|
943
|
-
for name, value in vars(self).items():
|
944
|
-
property_name = name[1:]
|
945
|
-
if property_name in memeber_set:
|
946
|
-
memeber_set.remove(property_name)
|
947
|
-
if len(memeber_set) > 0:
|
948
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
class RemoveRoomPlayerResponse(AbstractModel):
|
953
|
-
"""RemoveRoomPlayer返回参数结构体
|
954
|
-
|
955
|
-
"""
|
956
|
-
|
957
|
-
def __init__(self):
|
958
|
-
r"""
|
959
|
-
:param _Room: 房间信息
|
960
|
-
:type Room: :class:`tencentcloud.mgobe.v20201014.models.Room`
|
961
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
962
|
-
:type RequestId: str
|
963
|
-
"""
|
964
|
-
self._Room = None
|
965
|
-
self._RequestId = None
|
966
|
-
|
967
|
-
@property
|
968
|
-
def Room(self):
|
969
|
-
"""房间信息
|
970
|
-
:rtype: :class:`tencentcloud.mgobe.v20201014.models.Room`
|
971
|
-
"""
|
972
|
-
return self._Room
|
973
|
-
|
974
|
-
@Room.setter
|
975
|
-
def Room(self, Room):
|
976
|
-
self._Room = Room
|
977
|
-
|
978
|
-
@property
|
979
|
-
def RequestId(self):
|
980
|
-
"""唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
981
|
-
:rtype: str
|
982
|
-
"""
|
983
|
-
return self._RequestId
|
984
|
-
|
985
|
-
@RequestId.setter
|
986
|
-
def RequestId(self, RequestId):
|
987
|
-
self._RequestId = RequestId
|
988
|
-
|
989
|
-
|
990
|
-
def _deserialize(self, params):
|
991
|
-
if params.get("Room") is not None:
|
992
|
-
self._Room = Room()
|
993
|
-
self._Room._deserialize(params.get("Room"))
|
994
|
-
self._RequestId = params.get("RequestId")
|
995
|
-
|
996
|
-
|
997
|
-
class Room(AbstractModel):
|
998
|
-
"""房间信息详情。
|
999
|
-
|
1000
|
-
"""
|
1001
|
-
|
1002
|
-
def __init__(self):
|
1003
|
-
r"""
|
1004
|
-
:param _Name: 表示房间名称。最长不超过32个字符。
|
1005
|
-
:type Name: str
|
1006
|
-
:param _MaxPlayers: 表示房间最大玩家数量。最大不超过100人。
|
1007
|
-
:type MaxPlayers: int
|
1008
|
-
:param _OwnerOpenId: 表示房主OpenId。最长不超过16个字符。
|
1009
|
-
:type OwnerOpenId: str
|
1010
|
-
:param _IsPrivate: 表示是否私有,私有指的是不允许其他玩家通过匹配加入房间。
|
1011
|
-
:type IsPrivate: bool
|
1012
|
-
:param _Players: 表示玩家详情列表。
|
1013
|
-
:type Players: list of Player
|
1014
|
-
:param _Teams: 表示团队属性列表。
|
1015
|
-
:type Teams: list of Team
|
1016
|
-
:param _Id: 表示房间 ID。出参用,由后端返回。
|
1017
|
-
:type Id: str
|
1018
|
-
:param _Type: 表示房间类型。最长不超过32个字符。
|
1019
|
-
:type Type: str
|
1020
|
-
:param _CreateType: 表示创建方式:0.单人主动发起创建房间请求;1.多人在线匹配请求分配房间;2. 直接创建满员房间。调用云API的创房请求默认为3,目前通过云API调用只支持第3种方式。
|
1021
|
-
:type CreateType: int
|
1022
|
-
:param _CustomProperties: 表示自定义房间属性,不传为空字符串。最长不超过1024个字符。
|
1023
|
-
:type CustomProperties: str
|
1024
|
-
:param _FrameSyncState: 表示房间帧同步状态。0表示未开始帧同步,1表示已开始帧同步,用于出参。
|
1025
|
-
:type FrameSyncState: int
|
1026
|
-
:param _FrameRate: 表示帧率。由控制台设置,用于出参。
|
1027
|
-
:type FrameRate: int
|
1028
|
-
:param _RouteId: 表示路由ID。用于出参。
|
1029
|
-
:type RouteId: str
|
1030
|
-
:param _CreateTime: 表示房间创建的时间戳(单位:秒)。
|
1031
|
-
:type CreateTime: int
|
1032
|
-
:param _StartGameTime: 表示开始帧同步时的时间戳(单位:秒),未开始帧同步时返回为0。
|
1033
|
-
:type StartGameTime: int
|
1034
|
-
:param _IsForbidJoin: 表示是否禁止加入房间。出参使用,默认为False,通过SDK的ChangeRoom接口可以修改。
|
1035
|
-
:type IsForbidJoin: bool
|
1036
|
-
:param _Owner: 表示房主PlayerId。
|
1037
|
-
:type Owner: str
|
1038
|
-
"""
|
1039
|
-
self._Name = None
|
1040
|
-
self._MaxPlayers = None
|
1041
|
-
self._OwnerOpenId = None
|
1042
|
-
self._IsPrivate = None
|
1043
|
-
self._Players = None
|
1044
|
-
self._Teams = None
|
1045
|
-
self._Id = None
|
1046
|
-
self._Type = None
|
1047
|
-
self._CreateType = None
|
1048
|
-
self._CustomProperties = None
|
1049
|
-
self._FrameSyncState = None
|
1050
|
-
self._FrameRate = None
|
1051
|
-
self._RouteId = None
|
1052
|
-
self._CreateTime = None
|
1053
|
-
self._StartGameTime = None
|
1054
|
-
self._IsForbidJoin = None
|
1055
|
-
self._Owner = None
|
1056
|
-
|
1057
|
-
@property
|
1058
|
-
def Name(self):
|
1059
|
-
"""表示房间名称。最长不超过32个字符。
|
1060
|
-
:rtype: str
|
1061
|
-
"""
|
1062
|
-
return self._Name
|
1063
|
-
|
1064
|
-
@Name.setter
|
1065
|
-
def Name(self, Name):
|
1066
|
-
self._Name = Name
|
1067
|
-
|
1068
|
-
@property
|
1069
|
-
def MaxPlayers(self):
|
1070
|
-
"""表示房间最大玩家数量。最大不超过100人。
|
1071
|
-
:rtype: int
|
1072
|
-
"""
|
1073
|
-
return self._MaxPlayers
|
1074
|
-
|
1075
|
-
@MaxPlayers.setter
|
1076
|
-
def MaxPlayers(self, MaxPlayers):
|
1077
|
-
self._MaxPlayers = MaxPlayers
|
1078
|
-
|
1079
|
-
@property
|
1080
|
-
def OwnerOpenId(self):
|
1081
|
-
"""表示房主OpenId。最长不超过16个字符。
|
1082
|
-
:rtype: str
|
1083
|
-
"""
|
1084
|
-
return self._OwnerOpenId
|
1085
|
-
|
1086
|
-
@OwnerOpenId.setter
|
1087
|
-
def OwnerOpenId(self, OwnerOpenId):
|
1088
|
-
self._OwnerOpenId = OwnerOpenId
|
1089
|
-
|
1090
|
-
@property
|
1091
|
-
def IsPrivate(self):
|
1092
|
-
"""表示是否私有,私有指的是不允许其他玩家通过匹配加入房间。
|
1093
|
-
:rtype: bool
|
1094
|
-
"""
|
1095
|
-
return self._IsPrivate
|
1096
|
-
|
1097
|
-
@IsPrivate.setter
|
1098
|
-
def IsPrivate(self, IsPrivate):
|
1099
|
-
self._IsPrivate = IsPrivate
|
1100
|
-
|
1101
|
-
@property
|
1102
|
-
def Players(self):
|
1103
|
-
"""表示玩家详情列表。
|
1104
|
-
:rtype: list of Player
|
1105
|
-
"""
|
1106
|
-
return self._Players
|
1107
|
-
|
1108
|
-
@Players.setter
|
1109
|
-
def Players(self, Players):
|
1110
|
-
self._Players = Players
|
1111
|
-
|
1112
|
-
@property
|
1113
|
-
def Teams(self):
|
1114
|
-
"""表示团队属性列表。
|
1115
|
-
:rtype: list of Team
|
1116
|
-
"""
|
1117
|
-
return self._Teams
|
1118
|
-
|
1119
|
-
@Teams.setter
|
1120
|
-
def Teams(self, Teams):
|
1121
|
-
self._Teams = Teams
|
1122
|
-
|
1123
|
-
@property
|
1124
|
-
def Id(self):
|
1125
|
-
"""表示房间 ID。出参用,由后端返回。
|
1126
|
-
:rtype: str
|
1127
|
-
"""
|
1128
|
-
return self._Id
|
1129
|
-
|
1130
|
-
@Id.setter
|
1131
|
-
def Id(self, Id):
|
1132
|
-
self._Id = Id
|
1133
|
-
|
1134
|
-
@property
|
1135
|
-
def Type(self):
|
1136
|
-
"""表示房间类型。最长不超过32个字符。
|
1137
|
-
:rtype: str
|
1138
|
-
"""
|
1139
|
-
return self._Type
|
1140
|
-
|
1141
|
-
@Type.setter
|
1142
|
-
def Type(self, Type):
|
1143
|
-
self._Type = Type
|
1144
|
-
|
1145
|
-
@property
|
1146
|
-
def CreateType(self):
|
1147
|
-
"""表示创建方式:0.单人主动发起创建房间请求;1.多人在线匹配请求分配房间;2. 直接创建满员房间。调用云API的创房请求默认为3,目前通过云API调用只支持第3种方式。
|
1148
|
-
:rtype: int
|
1149
|
-
"""
|
1150
|
-
return self._CreateType
|
1151
|
-
|
1152
|
-
@CreateType.setter
|
1153
|
-
def CreateType(self, CreateType):
|
1154
|
-
self._CreateType = CreateType
|
1155
|
-
|
1156
|
-
@property
|
1157
|
-
def CustomProperties(self):
|
1158
|
-
"""表示自定义房间属性,不传为空字符串。最长不超过1024个字符。
|
1159
|
-
:rtype: str
|
1160
|
-
"""
|
1161
|
-
return self._CustomProperties
|
1162
|
-
|
1163
|
-
@CustomProperties.setter
|
1164
|
-
def CustomProperties(self, CustomProperties):
|
1165
|
-
self._CustomProperties = CustomProperties
|
1166
|
-
|
1167
|
-
@property
|
1168
|
-
def FrameSyncState(self):
|
1169
|
-
"""表示房间帧同步状态。0表示未开始帧同步,1表示已开始帧同步,用于出参。
|
1170
|
-
:rtype: int
|
1171
|
-
"""
|
1172
|
-
return self._FrameSyncState
|
1173
|
-
|
1174
|
-
@FrameSyncState.setter
|
1175
|
-
def FrameSyncState(self, FrameSyncState):
|
1176
|
-
self._FrameSyncState = FrameSyncState
|
1177
|
-
|
1178
|
-
@property
|
1179
|
-
def FrameRate(self):
|
1180
|
-
"""表示帧率。由控制台设置,用于出参。
|
1181
|
-
:rtype: int
|
1182
|
-
"""
|
1183
|
-
return self._FrameRate
|
1184
|
-
|
1185
|
-
@FrameRate.setter
|
1186
|
-
def FrameRate(self, FrameRate):
|
1187
|
-
self._FrameRate = FrameRate
|
1188
|
-
|
1189
|
-
@property
|
1190
|
-
def RouteId(self):
|
1191
|
-
"""表示路由ID。用于出参。
|
1192
|
-
:rtype: str
|
1193
|
-
"""
|
1194
|
-
return self._RouteId
|
1195
|
-
|
1196
|
-
@RouteId.setter
|
1197
|
-
def RouteId(self, RouteId):
|
1198
|
-
self._RouteId = RouteId
|
1199
|
-
|
1200
|
-
@property
|
1201
|
-
def CreateTime(self):
|
1202
|
-
"""表示房间创建的时间戳(单位:秒)。
|
1203
|
-
:rtype: int
|
1204
|
-
"""
|
1205
|
-
return self._CreateTime
|
1206
|
-
|
1207
|
-
@CreateTime.setter
|
1208
|
-
def CreateTime(self, CreateTime):
|
1209
|
-
self._CreateTime = CreateTime
|
1210
|
-
|
1211
|
-
@property
|
1212
|
-
def StartGameTime(self):
|
1213
|
-
"""表示开始帧同步时的时间戳(单位:秒),未开始帧同步时返回为0。
|
1214
|
-
:rtype: int
|
1215
|
-
"""
|
1216
|
-
return self._StartGameTime
|
1217
|
-
|
1218
|
-
@StartGameTime.setter
|
1219
|
-
def StartGameTime(self, StartGameTime):
|
1220
|
-
self._StartGameTime = StartGameTime
|
1221
|
-
|
1222
|
-
@property
|
1223
|
-
def IsForbidJoin(self):
|
1224
|
-
"""表示是否禁止加入房间。出参使用,默认为False,通过SDK的ChangeRoom接口可以修改。
|
1225
|
-
:rtype: bool
|
1226
|
-
"""
|
1227
|
-
return self._IsForbidJoin
|
1228
|
-
|
1229
|
-
@IsForbidJoin.setter
|
1230
|
-
def IsForbidJoin(self, IsForbidJoin):
|
1231
|
-
self._IsForbidJoin = IsForbidJoin
|
1232
|
-
|
1233
|
-
@property
|
1234
|
-
def Owner(self):
|
1235
|
-
"""表示房主PlayerId。
|
1236
|
-
:rtype: str
|
1237
|
-
"""
|
1238
|
-
return self._Owner
|
1239
|
-
|
1240
|
-
@Owner.setter
|
1241
|
-
def Owner(self, Owner):
|
1242
|
-
self._Owner = Owner
|
1243
|
-
|
1244
|
-
|
1245
|
-
def _deserialize(self, params):
|
1246
|
-
self._Name = params.get("Name")
|
1247
|
-
self._MaxPlayers = params.get("MaxPlayers")
|
1248
|
-
self._OwnerOpenId = params.get("OwnerOpenId")
|
1249
|
-
self._IsPrivate = params.get("IsPrivate")
|
1250
|
-
if params.get("Players") is not None:
|
1251
|
-
self._Players = []
|
1252
|
-
for item in params.get("Players"):
|
1253
|
-
obj = Player()
|
1254
|
-
obj._deserialize(item)
|
1255
|
-
self._Players.append(obj)
|
1256
|
-
if params.get("Teams") is not None:
|
1257
|
-
self._Teams = []
|
1258
|
-
for item in params.get("Teams"):
|
1259
|
-
obj = Team()
|
1260
|
-
obj._deserialize(item)
|
1261
|
-
self._Teams.append(obj)
|
1262
|
-
self._Id = params.get("Id")
|
1263
|
-
self._Type = params.get("Type")
|
1264
|
-
self._CreateType = params.get("CreateType")
|
1265
|
-
self._CustomProperties = params.get("CustomProperties")
|
1266
|
-
self._FrameSyncState = params.get("FrameSyncState")
|
1267
|
-
self._FrameRate = params.get("FrameRate")
|
1268
|
-
self._RouteId = params.get("RouteId")
|
1269
|
-
self._CreateTime = params.get("CreateTime")
|
1270
|
-
self._StartGameTime = params.get("StartGameTime")
|
1271
|
-
self._IsForbidJoin = params.get("IsForbidJoin")
|
1272
|
-
self._Owner = params.get("Owner")
|
1273
|
-
memeber_set = set(params.keys())
|
1274
|
-
for name, value in vars(self).items():
|
1275
|
-
property_name = name[1:]
|
1276
|
-
if property_name in memeber_set:
|
1277
|
-
memeber_set.remove(property_name)
|
1278
|
-
if len(memeber_set) > 0:
|
1279
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
class Team(AbstractModel):
|
1284
|
-
"""团队属性
|
1285
|
-
|
1286
|
-
"""
|
1287
|
-
|
1288
|
-
def __init__(self):
|
1289
|
-
r"""
|
1290
|
-
:param _Id: 队伍ID。最长不超过16个字符。
|
1291
|
-
:type Id: str
|
1292
|
-
:param _Name: 队伍名称。最长不超过32个字符。
|
1293
|
-
:type Name: str
|
1294
|
-
:param _MinPlayers: 队伍最小人数。最大不超过100人。
|
1295
|
-
:type MinPlayers: int
|
1296
|
-
:param _MaxPlayers: 队伍最大人数。最大不超过100人。
|
1297
|
-
:type MaxPlayers: int
|
1298
|
-
"""
|
1299
|
-
self._Id = None
|
1300
|
-
self._Name = None
|
1301
|
-
self._MinPlayers = None
|
1302
|
-
self._MaxPlayers = None
|
1303
|
-
|
1304
|
-
@property
|
1305
|
-
def Id(self):
|
1306
|
-
"""队伍ID。最长不超过16个字符。
|
1307
|
-
:rtype: str
|
1308
|
-
"""
|
1309
|
-
return self._Id
|
1310
|
-
|
1311
|
-
@Id.setter
|
1312
|
-
def Id(self, Id):
|
1313
|
-
self._Id = Id
|
1314
|
-
|
1315
|
-
@property
|
1316
|
-
def Name(self):
|
1317
|
-
"""队伍名称。最长不超过32个字符。
|
1318
|
-
:rtype: str
|
1319
|
-
"""
|
1320
|
-
return self._Name
|
1321
|
-
|
1322
|
-
@Name.setter
|
1323
|
-
def Name(self, Name):
|
1324
|
-
self._Name = Name
|
1325
|
-
|
1326
|
-
@property
|
1327
|
-
def MinPlayers(self):
|
1328
|
-
"""队伍最小人数。最大不超过100人。
|
1329
|
-
:rtype: int
|
1330
|
-
"""
|
1331
|
-
return self._MinPlayers
|
1332
|
-
|
1333
|
-
@MinPlayers.setter
|
1334
|
-
def MinPlayers(self, MinPlayers):
|
1335
|
-
self._MinPlayers = MinPlayers
|
1336
|
-
|
1337
|
-
@property
|
1338
|
-
def MaxPlayers(self):
|
1339
|
-
"""队伍最大人数。最大不超过100人。
|
1340
|
-
:rtype: int
|
1341
|
-
"""
|
1342
|
-
return self._MaxPlayers
|
1343
|
-
|
1344
|
-
@MaxPlayers.setter
|
1345
|
-
def MaxPlayers(self, MaxPlayers):
|
1346
|
-
self._MaxPlayers = MaxPlayers
|
1347
|
-
|
1348
|
-
|
1349
|
-
def _deserialize(self, params):
|
1350
|
-
self._Id = params.get("Id")
|
1351
|
-
self._Name = params.get("Name")
|
1352
|
-
self._MinPlayers = params.get("MinPlayers")
|
1353
|
-
self._MaxPlayers = params.get("MaxPlayers")
|
1354
|
-
memeber_set = set(params.keys())
|
1355
|
-
for name, value in vars(self).items():
|
1356
|
-
property_name = name[1:]
|
1357
|
-
if property_name in memeber_set:
|
1358
|
-
memeber_set.remove(property_name)
|
1359
|
-
if len(memeber_set) > 0:
|
1360
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1361
|
-
|