tencentcloud-sdk-python-intl-en 3.0.1250__py2.py3-none-any.whl → 3.0.1252__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.
@@ -0,0 +1,959 @@
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 ApplyEmbedIntervalRequest(AbstractModel):
22
+ """ApplyEmbedInterval request structure.
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _ProjectId: Shares the project ID. Required.
29
+ :type ProjectId: int
30
+ :param _PageId: Shares the page ID. This field is empty (0) for embedding a dashboard and is not passed for embedding ChatBI.
31
+
32
+ :type PageId: int
33
+ :param _BIToken: Token requiring extension.
34
+ :type BIToken: str
35
+ :param _ExtraParam: Alternate field.
36
+ :type ExtraParam: str
37
+ :param _Intention: embed: page/dashboard embedding.
38
+ chatBIEmbed: ChatBI embedding.
39
+ :type Intention: str
40
+ :param _Scope: panel: dashboard; page: page.
41
+ project, during ChatBI embedding.
42
+ :type Scope: str
43
+ """
44
+ self._ProjectId = None
45
+ self._PageId = None
46
+ self._BIToken = None
47
+ self._ExtraParam = None
48
+ self._Intention = None
49
+ self._Scope = None
50
+
51
+ @property
52
+ def ProjectId(self):
53
+ """Shares the project ID. Required.
54
+ :rtype: int
55
+ """
56
+ return self._ProjectId
57
+
58
+ @ProjectId.setter
59
+ def ProjectId(self, ProjectId):
60
+ self._ProjectId = ProjectId
61
+
62
+ @property
63
+ def PageId(self):
64
+ """Shares the page ID. This field is empty (0) for embedding a dashboard and is not passed for embedding ChatBI.
65
+
66
+ :rtype: int
67
+ """
68
+ return self._PageId
69
+
70
+ @PageId.setter
71
+ def PageId(self, PageId):
72
+ self._PageId = PageId
73
+
74
+ @property
75
+ def BIToken(self):
76
+ """Token requiring extension.
77
+ :rtype: str
78
+ """
79
+ return self._BIToken
80
+
81
+ @BIToken.setter
82
+ def BIToken(self, BIToken):
83
+ self._BIToken = BIToken
84
+
85
+ @property
86
+ def ExtraParam(self):
87
+ """Alternate field.
88
+ :rtype: str
89
+ """
90
+ return self._ExtraParam
91
+
92
+ @ExtraParam.setter
93
+ def ExtraParam(self, ExtraParam):
94
+ self._ExtraParam = ExtraParam
95
+
96
+ @property
97
+ def Intention(self):
98
+ """embed: page/dashboard embedding.
99
+ chatBIEmbed: ChatBI embedding.
100
+ :rtype: str
101
+ """
102
+ return self._Intention
103
+
104
+ @Intention.setter
105
+ def Intention(self, Intention):
106
+ self._Intention = Intention
107
+
108
+ @property
109
+ def Scope(self):
110
+ """panel: dashboard; page: page.
111
+ project, during ChatBI embedding.
112
+ :rtype: str
113
+ """
114
+ return self._Scope
115
+
116
+ @Scope.setter
117
+ def Scope(self, Scope):
118
+ self._Scope = Scope
119
+
120
+
121
+ def _deserialize(self, params):
122
+ self._ProjectId = params.get("ProjectId")
123
+ self._PageId = params.get("PageId")
124
+ self._BIToken = params.get("BIToken")
125
+ self._ExtraParam = params.get("ExtraParam")
126
+ self._Intention = params.get("Intention")
127
+ self._Scope = params.get("Scope")
128
+ memeber_set = set(params.keys())
129
+ for name, value in vars(self).items():
130
+ property_name = name[1:]
131
+ if property_name in memeber_set:
132
+ memeber_set.remove(property_name)
133
+ if len(memeber_set) > 0:
134
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
135
+
136
+
137
+
138
+ class ApplyEmbedIntervalResponse(AbstractModel):
139
+ """ApplyEmbedInterval response structure.
140
+
141
+ """
142
+
143
+ def __init__(self):
144
+ r"""
145
+ :param _ErrorInfo: Custom error information object.
146
+ Note: This field may return null, indicating that no valid values can be obtained.
147
+ :type ErrorInfo: :class:`tencentcloud.bi.v20220105.models.ErrorInfo`
148
+ :param _Extra: Additional parameters.
149
+ Note: This field may return null, indicating that no valid values can be obtained.
150
+ :type Extra: str
151
+ :param _Data: Result data.
152
+ Note: This field may return null, indicating that no valid values can be obtained.
153
+ :type Data: :class:`tencentcloud.bi.v20220105.models.ApplyEmbedTokenInfo`
154
+ :param _Msg: Result description.
155
+ Note: This field may return null, indicating that no valid values can be obtained.
156
+ :type Msg: str
157
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
158
+ :type RequestId: str
159
+ """
160
+ self._ErrorInfo = None
161
+ self._Extra = None
162
+ self._Data = None
163
+ self._Msg = None
164
+ self._RequestId = None
165
+
166
+ @property
167
+ def ErrorInfo(self):
168
+ """Custom error information object.
169
+ Note: This field may return null, indicating that no valid values can be obtained.
170
+ :rtype: :class:`tencentcloud.bi.v20220105.models.ErrorInfo`
171
+ """
172
+ return self._ErrorInfo
173
+
174
+ @ErrorInfo.setter
175
+ def ErrorInfo(self, ErrorInfo):
176
+ self._ErrorInfo = ErrorInfo
177
+
178
+ @property
179
+ def Extra(self):
180
+ """Additional parameters.
181
+ Note: This field may return null, indicating that no valid values can be obtained.
182
+ :rtype: str
183
+ """
184
+ return self._Extra
185
+
186
+ @Extra.setter
187
+ def Extra(self, Extra):
188
+ self._Extra = Extra
189
+
190
+ @property
191
+ def Data(self):
192
+ """Result data.
193
+ Note: This field may return null, indicating that no valid values can be obtained.
194
+ :rtype: :class:`tencentcloud.bi.v20220105.models.ApplyEmbedTokenInfo`
195
+ """
196
+ return self._Data
197
+
198
+ @Data.setter
199
+ def Data(self, Data):
200
+ self._Data = Data
201
+
202
+ @property
203
+ def Msg(self):
204
+ """Result description.
205
+ Note: This field may return null, indicating that no valid values can be obtained.
206
+ :rtype: str
207
+ """
208
+ return self._Msg
209
+
210
+ @Msg.setter
211
+ def Msg(self, Msg):
212
+ self._Msg = Msg
213
+
214
+ @property
215
+ def RequestId(self):
216
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
217
+ :rtype: str
218
+ """
219
+ return self._RequestId
220
+
221
+ @RequestId.setter
222
+ def RequestId(self, RequestId):
223
+ self._RequestId = RequestId
224
+
225
+
226
+ def _deserialize(self, params):
227
+ if params.get("ErrorInfo") is not None:
228
+ self._ErrorInfo = ErrorInfo()
229
+ self._ErrorInfo._deserialize(params.get("ErrorInfo"))
230
+ self._Extra = params.get("Extra")
231
+ if params.get("Data") is not None:
232
+ self._Data = ApplyEmbedTokenInfo()
233
+ self._Data._deserialize(params.get("Data"))
234
+ self._Msg = params.get("Msg")
235
+ self._RequestId = params.get("RequestId")
236
+
237
+
238
+ class ApplyEmbedTokenInfo(AbstractModel):
239
+ """Token deferral request
240
+
241
+ """
242
+
243
+ def __init__(self):
244
+ r"""
245
+ :param _Result: Request result.
246
+ Note: This field may return null, indicating that no valid values can be obtained.
247
+ :type Result: bool
248
+ """
249
+ self._Result = None
250
+
251
+ @property
252
+ def Result(self):
253
+ """Request result.
254
+ Note: This field may return null, indicating that no valid values can be obtained.
255
+ :rtype: bool
256
+ """
257
+ return self._Result
258
+
259
+ @Result.setter
260
+ def Result(self, Result):
261
+ self._Result = Result
262
+
263
+
264
+ def _deserialize(self, params):
265
+ self._Result = params.get("Result")
266
+ memeber_set = set(params.keys())
267
+ for name, value in vars(self).items():
268
+ property_name = name[1:]
269
+ if property_name in memeber_set:
270
+ memeber_set.remove(property_name)
271
+ if len(memeber_set) > 0:
272
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
273
+
274
+
275
+
276
+ class CreateDatasourceRequest(AbstractModel):
277
+ """CreateDatasource request structure.
278
+
279
+ """
280
+
281
+ def __init__(self):
282
+ r"""
283
+ :param _DbHost: HOST
284
+ :type DbHost: str
285
+ :param _DbPort: Port.
286
+ :type DbPort: int
287
+ :param _ServiceType: The backend provides dictionaries: domain type. 1. Tencent Cloud, 2. local.
288
+ :type ServiceType: str
289
+ :param _DbType: Drive.
290
+ :type DbType: str
291
+ :param _Charset: Database encoding.
292
+ :type Charset: str
293
+ :param _DbUser: Username.
294
+ :type DbUser: str
295
+ :param _DbPwd: Password.
296
+ :type DbPwd: str
297
+ :param _DbName: Database name.
298
+ :type DbName: str
299
+ :param _SourceName: Database alias.
300
+ :type SourceName: str
301
+ :param _ProjectId: Project ID.
302
+ :type ProjectId: int
303
+ :param _Catalog: Catalog value.
304
+ :type Catalog: str
305
+ :param _DataOrigin: Third-party data source identifier.
306
+ :type DataOrigin: str
307
+ :param _DataOriginProjectId: Third-party project ID.
308
+ :type DataOriginProjectId: str
309
+ :param _DataOriginDatasourceId: Third-party data source ID.
310
+ :type DataOriginDatasourceId: str
311
+ :param _ExtraParam: Extension parameter.
312
+ :type ExtraParam: str
313
+ :param _UniqVpcId: Unified identifier of the Tencent Cloud VPC.
314
+ :type UniqVpcId: str
315
+ :param _Vip: VPC IP address.
316
+ :type Vip: str
317
+ :param _Vport: VPC port.
318
+ :type Vport: str
319
+ :param _VpcId: Tencent Cloud VPC identifier.
320
+ :type VpcId: str
321
+ :param _OperationAuthLimit: Operation permission limitation.
322
+ :type OperationAuthLimit: list of str
323
+ :param _UseVPC: Enables VPC.
324
+ :type UseVPC: bool
325
+ :param _RegionId: Region.
326
+ :type RegionId: str
327
+ """
328
+ self._DbHost = None
329
+ self._DbPort = None
330
+ self._ServiceType = None
331
+ self._DbType = None
332
+ self._Charset = None
333
+ self._DbUser = None
334
+ self._DbPwd = None
335
+ self._DbName = None
336
+ self._SourceName = None
337
+ self._ProjectId = None
338
+ self._Catalog = None
339
+ self._DataOrigin = None
340
+ self._DataOriginProjectId = None
341
+ self._DataOriginDatasourceId = None
342
+ self._ExtraParam = None
343
+ self._UniqVpcId = None
344
+ self._Vip = None
345
+ self._Vport = None
346
+ self._VpcId = None
347
+ self._OperationAuthLimit = None
348
+ self._UseVPC = None
349
+ self._RegionId = None
350
+
351
+ @property
352
+ def DbHost(self):
353
+ """HOST
354
+ :rtype: str
355
+ """
356
+ return self._DbHost
357
+
358
+ @DbHost.setter
359
+ def DbHost(self, DbHost):
360
+ self._DbHost = DbHost
361
+
362
+ @property
363
+ def DbPort(self):
364
+ """Port.
365
+ :rtype: int
366
+ """
367
+ return self._DbPort
368
+
369
+ @DbPort.setter
370
+ def DbPort(self, DbPort):
371
+ self._DbPort = DbPort
372
+
373
+ @property
374
+ def ServiceType(self):
375
+ """The backend provides dictionaries: domain type. 1. Tencent Cloud, 2. local.
376
+ :rtype: str
377
+ """
378
+ return self._ServiceType
379
+
380
+ @ServiceType.setter
381
+ def ServiceType(self, ServiceType):
382
+ self._ServiceType = ServiceType
383
+
384
+ @property
385
+ def DbType(self):
386
+ """Drive.
387
+ :rtype: str
388
+ """
389
+ return self._DbType
390
+
391
+ @DbType.setter
392
+ def DbType(self, DbType):
393
+ self._DbType = DbType
394
+
395
+ @property
396
+ def Charset(self):
397
+ """Database encoding.
398
+ :rtype: str
399
+ """
400
+ return self._Charset
401
+
402
+ @Charset.setter
403
+ def Charset(self, Charset):
404
+ self._Charset = Charset
405
+
406
+ @property
407
+ def DbUser(self):
408
+ """Username.
409
+ :rtype: str
410
+ """
411
+ return self._DbUser
412
+
413
+ @DbUser.setter
414
+ def DbUser(self, DbUser):
415
+ self._DbUser = DbUser
416
+
417
+ @property
418
+ def DbPwd(self):
419
+ """Password.
420
+ :rtype: str
421
+ """
422
+ return self._DbPwd
423
+
424
+ @DbPwd.setter
425
+ def DbPwd(self, DbPwd):
426
+ self._DbPwd = DbPwd
427
+
428
+ @property
429
+ def DbName(self):
430
+ """Database name.
431
+ :rtype: str
432
+ """
433
+ return self._DbName
434
+
435
+ @DbName.setter
436
+ def DbName(self, DbName):
437
+ self._DbName = DbName
438
+
439
+ @property
440
+ def SourceName(self):
441
+ """Database alias.
442
+ :rtype: str
443
+ """
444
+ return self._SourceName
445
+
446
+ @SourceName.setter
447
+ def SourceName(self, SourceName):
448
+ self._SourceName = SourceName
449
+
450
+ @property
451
+ def ProjectId(self):
452
+ """Project ID.
453
+ :rtype: int
454
+ """
455
+ return self._ProjectId
456
+
457
+ @ProjectId.setter
458
+ def ProjectId(self, ProjectId):
459
+ self._ProjectId = ProjectId
460
+
461
+ @property
462
+ def Catalog(self):
463
+ """Catalog value.
464
+ :rtype: str
465
+ """
466
+ return self._Catalog
467
+
468
+ @Catalog.setter
469
+ def Catalog(self, Catalog):
470
+ self._Catalog = Catalog
471
+
472
+ @property
473
+ def DataOrigin(self):
474
+ """Third-party data source identifier.
475
+ :rtype: str
476
+ """
477
+ return self._DataOrigin
478
+
479
+ @DataOrigin.setter
480
+ def DataOrigin(self, DataOrigin):
481
+ self._DataOrigin = DataOrigin
482
+
483
+ @property
484
+ def DataOriginProjectId(self):
485
+ """Third-party project ID.
486
+ :rtype: str
487
+ """
488
+ return self._DataOriginProjectId
489
+
490
+ @DataOriginProjectId.setter
491
+ def DataOriginProjectId(self, DataOriginProjectId):
492
+ self._DataOriginProjectId = DataOriginProjectId
493
+
494
+ @property
495
+ def DataOriginDatasourceId(self):
496
+ """Third-party data source ID.
497
+ :rtype: str
498
+ """
499
+ return self._DataOriginDatasourceId
500
+
501
+ @DataOriginDatasourceId.setter
502
+ def DataOriginDatasourceId(self, DataOriginDatasourceId):
503
+ self._DataOriginDatasourceId = DataOriginDatasourceId
504
+
505
+ @property
506
+ def ExtraParam(self):
507
+ """Extension parameter.
508
+ :rtype: str
509
+ """
510
+ return self._ExtraParam
511
+
512
+ @ExtraParam.setter
513
+ def ExtraParam(self, ExtraParam):
514
+ self._ExtraParam = ExtraParam
515
+
516
+ @property
517
+ def UniqVpcId(self):
518
+ """Unified identifier of the Tencent Cloud VPC.
519
+ :rtype: str
520
+ """
521
+ return self._UniqVpcId
522
+
523
+ @UniqVpcId.setter
524
+ def UniqVpcId(self, UniqVpcId):
525
+ self._UniqVpcId = UniqVpcId
526
+
527
+ @property
528
+ def Vip(self):
529
+ """VPC IP address.
530
+ :rtype: str
531
+ """
532
+ return self._Vip
533
+
534
+ @Vip.setter
535
+ def Vip(self, Vip):
536
+ self._Vip = Vip
537
+
538
+ @property
539
+ def Vport(self):
540
+ """VPC port.
541
+ :rtype: str
542
+ """
543
+ return self._Vport
544
+
545
+ @Vport.setter
546
+ def Vport(self, Vport):
547
+ self._Vport = Vport
548
+
549
+ @property
550
+ def VpcId(self):
551
+ """Tencent Cloud VPC identifier.
552
+ :rtype: str
553
+ """
554
+ return self._VpcId
555
+
556
+ @VpcId.setter
557
+ def VpcId(self, VpcId):
558
+ self._VpcId = VpcId
559
+
560
+ @property
561
+ def OperationAuthLimit(self):
562
+ """Operation permission limitation.
563
+ :rtype: list of str
564
+ """
565
+ return self._OperationAuthLimit
566
+
567
+ @OperationAuthLimit.setter
568
+ def OperationAuthLimit(self, OperationAuthLimit):
569
+ self._OperationAuthLimit = OperationAuthLimit
570
+
571
+ @property
572
+ def UseVPC(self):
573
+ """Enables VPC.
574
+ :rtype: bool
575
+ """
576
+ return self._UseVPC
577
+
578
+ @UseVPC.setter
579
+ def UseVPC(self, UseVPC):
580
+ self._UseVPC = UseVPC
581
+
582
+ @property
583
+ def RegionId(self):
584
+ """Region.
585
+ :rtype: str
586
+ """
587
+ return self._RegionId
588
+
589
+ @RegionId.setter
590
+ def RegionId(self, RegionId):
591
+ self._RegionId = RegionId
592
+
593
+
594
+ def _deserialize(self, params):
595
+ self._DbHost = params.get("DbHost")
596
+ self._DbPort = params.get("DbPort")
597
+ self._ServiceType = params.get("ServiceType")
598
+ self._DbType = params.get("DbType")
599
+ self._Charset = params.get("Charset")
600
+ self._DbUser = params.get("DbUser")
601
+ self._DbPwd = params.get("DbPwd")
602
+ self._DbName = params.get("DbName")
603
+ self._SourceName = params.get("SourceName")
604
+ self._ProjectId = params.get("ProjectId")
605
+ self._Catalog = params.get("Catalog")
606
+ self._DataOrigin = params.get("DataOrigin")
607
+ self._DataOriginProjectId = params.get("DataOriginProjectId")
608
+ self._DataOriginDatasourceId = params.get("DataOriginDatasourceId")
609
+ self._ExtraParam = params.get("ExtraParam")
610
+ self._UniqVpcId = params.get("UniqVpcId")
611
+ self._Vip = params.get("Vip")
612
+ self._Vport = params.get("Vport")
613
+ self._VpcId = params.get("VpcId")
614
+ self._OperationAuthLimit = params.get("OperationAuthLimit")
615
+ self._UseVPC = params.get("UseVPC")
616
+ self._RegionId = params.get("RegionId")
617
+ memeber_set = set(params.keys())
618
+ for name, value in vars(self).items():
619
+ property_name = name[1:]
620
+ if property_name in memeber_set:
621
+ memeber_set.remove(property_name)
622
+ if len(memeber_set) > 0:
623
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
624
+
625
+
626
+
627
+ class CreateDatasourceResponse(AbstractModel):
628
+ """CreateDatasource response structure.
629
+
630
+ """
631
+
632
+ def __init__(self):
633
+ r"""
634
+ :param _ErrorInfo: Custom error information object.
635
+ Note: This field may return null, indicating that no valid values can be obtained.
636
+ :type ErrorInfo: :class:`tencentcloud.bi.v20220105.models.ErrorInfo`
637
+ :param _Data: Data source ID.
638
+ Note: This field may return null, indicating that no valid values can be obtained.
639
+ :type Data: :class:`tencentcloud.bi.v20220105.models.IdDTO`
640
+ :param _Extra: Additional information.
641
+ Note: This field may return null, indicating that no valid values can be obtained.
642
+ :type Extra: str
643
+ :param _Msg: Prompt.
644
+ Note: This field may return null, indicating that no valid values can be obtained.
645
+ :type Msg: str
646
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
647
+ :type RequestId: str
648
+ """
649
+ self._ErrorInfo = None
650
+ self._Data = None
651
+ self._Extra = None
652
+ self._Msg = None
653
+ self._RequestId = None
654
+
655
+ @property
656
+ def ErrorInfo(self):
657
+ """Custom error information object.
658
+ Note: This field may return null, indicating that no valid values can be obtained.
659
+ :rtype: :class:`tencentcloud.bi.v20220105.models.ErrorInfo`
660
+ """
661
+ return self._ErrorInfo
662
+
663
+ @ErrorInfo.setter
664
+ def ErrorInfo(self, ErrorInfo):
665
+ self._ErrorInfo = ErrorInfo
666
+
667
+ @property
668
+ def Data(self):
669
+ """Data source ID.
670
+ Note: This field may return null, indicating that no valid values can be obtained.
671
+ :rtype: :class:`tencentcloud.bi.v20220105.models.IdDTO`
672
+ """
673
+ return self._Data
674
+
675
+ @Data.setter
676
+ def Data(self, Data):
677
+ self._Data = Data
678
+
679
+ @property
680
+ def Extra(self):
681
+ """Additional information.
682
+ Note: This field may return null, indicating that no valid values can be obtained.
683
+ :rtype: str
684
+ """
685
+ return self._Extra
686
+
687
+ @Extra.setter
688
+ def Extra(self, Extra):
689
+ self._Extra = Extra
690
+
691
+ @property
692
+ def Msg(self):
693
+ """Prompt.
694
+ Note: This field may return null, indicating that no valid values can be obtained.
695
+ :rtype: str
696
+ """
697
+ return self._Msg
698
+
699
+ @Msg.setter
700
+ def Msg(self, Msg):
701
+ self._Msg = Msg
702
+
703
+ @property
704
+ def RequestId(self):
705
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
706
+ :rtype: str
707
+ """
708
+ return self._RequestId
709
+
710
+ @RequestId.setter
711
+ def RequestId(self, RequestId):
712
+ self._RequestId = RequestId
713
+
714
+
715
+ def _deserialize(self, params):
716
+ if params.get("ErrorInfo") is not None:
717
+ self._ErrorInfo = ErrorInfo()
718
+ self._ErrorInfo._deserialize(params.get("ErrorInfo"))
719
+ if params.get("Data") is not None:
720
+ self._Data = IdDTO()
721
+ self._Data._deserialize(params.get("Data"))
722
+ self._Extra = params.get("Extra")
723
+ self._Msg = params.get("Msg")
724
+ self._RequestId = params.get("RequestId")
725
+
726
+
727
+ class ErrorInfo(AbstractModel):
728
+ """Custom error information object
729
+
730
+ """
731
+
732
+ def __init__(self):
733
+ r"""
734
+ :param _ErrorTip: Error description field.
735
+ Note: This field may return null, indicating that no valid values can be obtained.
736
+ :type ErrorTip: str
737
+ :param _ErrorMessage: Original exception message.
738
+ Note: This field may return null, indicating that no valid values can be obtained.
739
+ :type ErrorMessage: str
740
+ :param _ErrorLevel: Error level field.
741
+ ERROR
742
+ WARN
743
+ INFO
744
+ Note: This field may return null, indicating that no valid values can be obtained.
745
+ :type ErrorLevel: str
746
+ :param _DocLink: Documentation link.
747
+ Note: This field may return null, indicating that no valid values can be obtained.
748
+ :type DocLink: str
749
+ :param _FAQ: Quick start guide.
750
+ Note: This field may return null, indicating that no valid values can be obtained.
751
+ :type FAQ: str
752
+ :param _ReservedField: Reserved field 1.
753
+ Note: This field may return null, indicating that no valid values can be obtained.
754
+ :type ReservedField: str
755
+ """
756
+ self._ErrorTip = None
757
+ self._ErrorMessage = None
758
+ self._ErrorLevel = None
759
+ self._DocLink = None
760
+ self._FAQ = None
761
+ self._ReservedField = None
762
+
763
+ @property
764
+ def ErrorTip(self):
765
+ """Error description field.
766
+ Note: This field may return null, indicating that no valid values can be obtained.
767
+ :rtype: str
768
+ """
769
+ return self._ErrorTip
770
+
771
+ @ErrorTip.setter
772
+ def ErrorTip(self, ErrorTip):
773
+ self._ErrorTip = ErrorTip
774
+
775
+ @property
776
+ def ErrorMessage(self):
777
+ """Original exception message.
778
+ Note: This field may return null, indicating that no valid values can be obtained.
779
+ :rtype: str
780
+ """
781
+ return self._ErrorMessage
782
+
783
+ @ErrorMessage.setter
784
+ def ErrorMessage(self, ErrorMessage):
785
+ self._ErrorMessage = ErrorMessage
786
+
787
+ @property
788
+ def ErrorLevel(self):
789
+ """Error level field.
790
+ ERROR
791
+ WARN
792
+ INFO
793
+ Note: This field may return null, indicating that no valid values can be obtained.
794
+ :rtype: str
795
+ """
796
+ return self._ErrorLevel
797
+
798
+ @ErrorLevel.setter
799
+ def ErrorLevel(self, ErrorLevel):
800
+ self._ErrorLevel = ErrorLevel
801
+
802
+ @property
803
+ def DocLink(self):
804
+ """Documentation link.
805
+ Note: This field may return null, indicating that no valid values can be obtained.
806
+ :rtype: str
807
+ """
808
+ return self._DocLink
809
+
810
+ @DocLink.setter
811
+ def DocLink(self, DocLink):
812
+ self._DocLink = DocLink
813
+
814
+ @property
815
+ def FAQ(self):
816
+ """Quick start guide.
817
+ Note: This field may return null, indicating that no valid values can be obtained.
818
+ :rtype: str
819
+ """
820
+ return self._FAQ
821
+
822
+ @FAQ.setter
823
+ def FAQ(self, FAQ):
824
+ self._FAQ = FAQ
825
+
826
+ @property
827
+ def ReservedField(self):
828
+ """Reserved field 1.
829
+ Note: This field may return null, indicating that no valid values can be obtained.
830
+ :rtype: str
831
+ """
832
+ return self._ReservedField
833
+
834
+ @ReservedField.setter
835
+ def ReservedField(self, ReservedField):
836
+ self._ReservedField = ReservedField
837
+
838
+
839
+ def _deserialize(self, params):
840
+ self._ErrorTip = params.get("ErrorTip")
841
+ self._ErrorMessage = params.get("ErrorMessage")
842
+ self._ErrorLevel = params.get("ErrorLevel")
843
+ self._DocLink = params.get("DocLink")
844
+ self._FAQ = params.get("FAQ")
845
+ self._ReservedField = params.get("ReservedField")
846
+ memeber_set = set(params.keys())
847
+ for name, value in vars(self).items():
848
+ property_name = name[1:]
849
+ if property_name in memeber_set:
850
+ memeber_set.remove(property_name)
851
+ if len(memeber_set) > 0:
852
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
853
+
854
+
855
+
856
+ class IdDTO(AbstractModel):
857
+ """Object containing only ID
858
+
859
+ """
860
+
861
+ def __init__(self):
862
+ r"""
863
+ :param _Id: Request ID.
864
+ Note: This field may return null, indicating that no valid values can be obtained.
865
+ :type Id: int
866
+ :param _AccessKey: key
867
+ Note: This field may return null, indicating that no valid values can be obtained.
868
+ :type AccessKey: str
869
+ :param _ProjectId: id
870
+ Note: This field may return null, indicating that no valid values can be obtained.
871
+ :type ProjectId: int
872
+ :param _TranId: Transaction ID.
873
+ Note: This field may return null, indicating that no valid values can be obtained.
874
+ :type TranId: str
875
+ :param _TranStatus: Transaction status.
876
+ Note: This field may return null, indicating that no valid values can be obtained.
877
+ :type TranStatus: int
878
+ """
879
+ self._Id = None
880
+ self._AccessKey = None
881
+ self._ProjectId = None
882
+ self._TranId = None
883
+ self._TranStatus = None
884
+
885
+ @property
886
+ def Id(self):
887
+ """Request ID.
888
+ Note: This field may return null, indicating that no valid values can be obtained.
889
+ :rtype: int
890
+ """
891
+ return self._Id
892
+
893
+ @Id.setter
894
+ def Id(self, Id):
895
+ self._Id = Id
896
+
897
+ @property
898
+ def AccessKey(self):
899
+ """key
900
+ Note: This field may return null, indicating that no valid values can be obtained.
901
+ :rtype: str
902
+ """
903
+ return self._AccessKey
904
+
905
+ @AccessKey.setter
906
+ def AccessKey(self, AccessKey):
907
+ self._AccessKey = AccessKey
908
+
909
+ @property
910
+ def ProjectId(self):
911
+ """id
912
+ Note: This field may return null, indicating that no valid values can be obtained.
913
+ :rtype: int
914
+ """
915
+ return self._ProjectId
916
+
917
+ @ProjectId.setter
918
+ def ProjectId(self, ProjectId):
919
+ self._ProjectId = ProjectId
920
+
921
+ @property
922
+ def TranId(self):
923
+ """Transaction ID.
924
+ Note: This field may return null, indicating that no valid values can be obtained.
925
+ :rtype: str
926
+ """
927
+ return self._TranId
928
+
929
+ @TranId.setter
930
+ def TranId(self, TranId):
931
+ self._TranId = TranId
932
+
933
+ @property
934
+ def TranStatus(self):
935
+ """Transaction status.
936
+ Note: This field may return null, indicating that no valid values can be obtained.
937
+ :rtype: int
938
+ """
939
+ return self._TranStatus
940
+
941
+ @TranStatus.setter
942
+ def TranStatus(self, TranStatus):
943
+ self._TranStatus = TranStatus
944
+
945
+
946
+ def _deserialize(self, params):
947
+ self._Id = params.get("Id")
948
+ self._AccessKey = params.get("AccessKey")
949
+ self._ProjectId = params.get("ProjectId")
950
+ self._TranId = params.get("TranId")
951
+ self._TranStatus = params.get("TranStatus")
952
+ memeber_set = set(params.keys())
953
+ for name, value in vars(self).items():
954
+ property_name = name[1:]
955
+ if property_name in memeber_set:
956
+ memeber_set.remove(property_name)
957
+ if len(memeber_set) > 0:
958
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
959
+