tencentcloud-sdk-python-ctsdb 3.0.1459__py2.py3-none-any.whl → 3.1.43__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 CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1459'
17
+ __version__ = '3.1.43'
@@ -26,6 +26,29 @@ class CtsdbClient(AbstractClient):
26
26
  _service = 'ctsdb'
27
27
 
28
28
 
29
+ def DescribeClusterDetail(self, request):
30
+ r"""查询实例详情
31
+
32
+ :param request: Request instance for DescribeClusterDetail.
33
+ :type request: :class:`tencentcloud.ctsdb.v20230202.models.DescribeClusterDetailRequest`
34
+ :rtype: :class:`tencentcloud.ctsdb.v20230202.models.DescribeClusterDetailResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("DescribeClusterDetail", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.DescribeClusterDetailResponse()
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
+
29
52
  def DescribeClusters(self, request):
30
53
  r"""查询实例列表及详情
31
54
 
@@ -0,0 +1,87 @@
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
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.ctsdb.v20230202 import models
20
+ from typing import Dict
21
+
22
+
23
+ class CtsdbClient(AbstractClient):
24
+ _apiVersion = '2023-02-02'
25
+ _endpoint = 'ctsdb.tencentcloudapi.com'
26
+ _service = 'ctsdb'
27
+
28
+ async def DescribeClusterDetail(
29
+ self,
30
+ request: models.DescribeClusterDetailRequest,
31
+ opts: Dict = None,
32
+ ) -> models.DescribeClusterDetailResponse:
33
+ """
34
+ 查询实例详情
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "DescribeClusterDetail"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.DescribeClusterDetailResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def DescribeClusters(
47
+ self,
48
+ request: models.DescribeClustersRequest,
49
+ opts: Dict = None,
50
+ ) -> models.DescribeClustersResponse:
51
+ """
52
+ 查询实例列表及详情
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "DescribeClusters"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.DescribeClustersResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def DescribeDatabases(
65
+ self,
66
+ request: models.DescribeDatabasesRequest,
67
+ opts: Dict = None,
68
+ ) -> models.DescribeDatabasesResponse:
69
+ """
70
+ 查看数据库/列表
71
+
72
+ ```
73
+ "Database":{
74
+ "ClusterID":"ctsdbi-rebg0ghl",
75
+ "Name":"" //不指定则查询实例下所有db
76
+ }
77
+ ```
78
+ """
79
+
80
+ kwargs = {}
81
+ kwargs["action"] = "DescribeDatabases"
82
+ kwargs["params"] = request._serialize()
83
+ kwargs["resp_cls"] = models.DescribeDatabasesResponse
84
+ kwargs["headers"] = request.headers
85
+ kwargs["opts"] = opts or {}
86
+
87
+ return await self.call_and_deserialize(**kwargs)
@@ -318,6 +318,542 @@ class Cluster(AbstractModel):
318
318
 
319
319
 
320
320
 
321
+ class ClusterDetail(AbstractModel):
322
+ r"""实例详情信息
323
+
324
+ """
325
+
326
+ def __init__(self):
327
+ r"""
328
+ :param _AppID: <p>用户APPID</p>
329
+ 注意:此字段可能返回 null,表示取不到有效值。
330
+ :type AppID: int
331
+ :param _ClusterID: <p>实例id</p>
332
+ 注意:此字段可能返回 null,表示取不到有效值。
333
+ :type ClusterID: str
334
+ :param _AccountID: <p>账号id</p>
335
+ 注意:此字段可能返回 null,表示取不到有效值。
336
+ :type AccountID: str
337
+ :param _Name: <p>自定义实例名</p>
338
+ 注意:此字段可能返回 null,表示取不到有效值。
339
+ :type Name: str
340
+ :param _Region: <p>地域</p>
341
+ 注意:此字段可能返回 null,表示取不到有效值。
342
+ :type Region: str
343
+ :param _Networks: <p>网络信息</p>
344
+ 注意:此字段可能返回 null,表示取不到有效值。
345
+ :type Networks: list of Network
346
+ :param _Status: <p>实例状态</p>枚举值:<ul><li> 0: 运行中</li><li> 1: 创建中</li><li> 16: 变配中</li><li> 17: 隔离中</li><li> 18: 已隔离</li><li> 19: 恢复中</li><li> 20: 已关机</li><li> 21: 销毁中</li><li> 22: 已销毁</li><li> 30: 扩展节点添加中</li><li> 31: 扩展节点变配中</li><li> 32: 扩展节点删除中</li><li> 33: 扩展节点禁用中</li><li> 34: 扩展节点启用中</li></ul>
347
+ 注意:此字段可能返回 null,表示取不到有效值。
348
+ :type Status: int
349
+ :param _CreatedAt: <p>创建时间</p>
350
+ 注意:此字段可能返回 null,表示取不到有效值。
351
+ :type CreatedAt: str
352
+ :param _UpdatedAt: <p>最后修改时间</p>
353
+ 注意:此字段可能返回 null,表示取不到有效值。
354
+ :type UpdatedAt: str
355
+ :param _Tags: <p>标签</p>
356
+ 注意:此字段可能返回 null,表示取不到有效值。
357
+ :type Tags: list of Tag
358
+ :param _Security: <p>安全组信息</p>
359
+ 注意:此字段可能返回 null,表示取不到有效值。
360
+ :type Security: list of str
361
+ :param _Components: <p>组件信息</p>
362
+ 注意:此字段可能返回 null,表示取不到有效值。
363
+ :type Components: list of Component
364
+ :param _ExpiredAt: <p>过期时间</p>
365
+ 注意:此字段可能返回 null,表示取不到有效值。
366
+ :type ExpiredAt: str
367
+ :param _RenewFlag: <p>续费标识</p>枚举值:<ul><li> 0: 默认</li><li> 1: 自动续费</li><li> 2: 不自动续费</li></ul>
368
+ 注意:此字段可能返回 null,表示取不到有效值。
369
+ :type RenewFlag: int
370
+ :param _ShutdownAt: <p>关机时间</p>
371
+ 注意:此字段可能返回 null,表示取不到有效值。
372
+ :type ShutdownAt: str
373
+ :param _IsolatedAt: <p>隔离时间</p>
374
+ 注意:此字段可能返回 null,表示取不到有效值。
375
+ :type IsolatedAt: str
376
+ :param _Type: <p>实例类型</p>枚举值:<ul><li> 0: 共享型</li><li> 1: 独享型</li><li> 2: 标准型</li></ul>
377
+ :type Type: int
378
+ """
379
+ self._AppID = None
380
+ self._ClusterID = None
381
+ self._AccountID = None
382
+ self._Name = None
383
+ self._Region = None
384
+ self._Networks = None
385
+ self._Status = None
386
+ self._CreatedAt = None
387
+ self._UpdatedAt = None
388
+ self._Tags = None
389
+ self._Security = None
390
+ self._Components = None
391
+ self._ExpiredAt = None
392
+ self._RenewFlag = None
393
+ self._ShutdownAt = None
394
+ self._IsolatedAt = None
395
+ self._Type = None
396
+
397
+ @property
398
+ def AppID(self):
399
+ r"""<p>用户APPID</p>
400
+ 注意:此字段可能返回 null,表示取不到有效值。
401
+ :rtype: int
402
+ """
403
+ return self._AppID
404
+
405
+ @AppID.setter
406
+ def AppID(self, AppID):
407
+ self._AppID = AppID
408
+
409
+ @property
410
+ def ClusterID(self):
411
+ r"""<p>实例id</p>
412
+ 注意:此字段可能返回 null,表示取不到有效值。
413
+ :rtype: str
414
+ """
415
+ return self._ClusterID
416
+
417
+ @ClusterID.setter
418
+ def ClusterID(self, ClusterID):
419
+ self._ClusterID = ClusterID
420
+
421
+ @property
422
+ def AccountID(self):
423
+ r"""<p>账号id</p>
424
+ 注意:此字段可能返回 null,表示取不到有效值。
425
+ :rtype: str
426
+ """
427
+ return self._AccountID
428
+
429
+ @AccountID.setter
430
+ def AccountID(self, AccountID):
431
+ self._AccountID = AccountID
432
+
433
+ @property
434
+ def Name(self):
435
+ r"""<p>自定义实例名</p>
436
+ 注意:此字段可能返回 null,表示取不到有效值。
437
+ :rtype: str
438
+ """
439
+ return self._Name
440
+
441
+ @Name.setter
442
+ def Name(self, Name):
443
+ self._Name = Name
444
+
445
+ @property
446
+ def Region(self):
447
+ r"""<p>地域</p>
448
+ 注意:此字段可能返回 null,表示取不到有效值。
449
+ :rtype: str
450
+ """
451
+ return self._Region
452
+
453
+ @Region.setter
454
+ def Region(self, Region):
455
+ self._Region = Region
456
+
457
+ @property
458
+ def Networks(self):
459
+ r"""<p>网络信息</p>
460
+ 注意:此字段可能返回 null,表示取不到有效值。
461
+ :rtype: list of Network
462
+ """
463
+ return self._Networks
464
+
465
+ @Networks.setter
466
+ def Networks(self, Networks):
467
+ self._Networks = Networks
468
+
469
+ @property
470
+ def Status(self):
471
+ r"""<p>实例状态</p>枚举值:<ul><li> 0: 运行中</li><li> 1: 创建中</li><li> 16: 变配中</li><li> 17: 隔离中</li><li> 18: 已隔离</li><li> 19: 恢复中</li><li> 20: 已关机</li><li> 21: 销毁中</li><li> 22: 已销毁</li><li> 30: 扩展节点添加中</li><li> 31: 扩展节点变配中</li><li> 32: 扩展节点删除中</li><li> 33: 扩展节点禁用中</li><li> 34: 扩展节点启用中</li></ul>
472
+ 注意:此字段可能返回 null,表示取不到有效值。
473
+ :rtype: int
474
+ """
475
+ return self._Status
476
+
477
+ @Status.setter
478
+ def Status(self, Status):
479
+ self._Status = Status
480
+
481
+ @property
482
+ def CreatedAt(self):
483
+ r"""<p>创建时间</p>
484
+ 注意:此字段可能返回 null,表示取不到有效值。
485
+ :rtype: str
486
+ """
487
+ return self._CreatedAt
488
+
489
+ @CreatedAt.setter
490
+ def CreatedAt(self, CreatedAt):
491
+ self._CreatedAt = CreatedAt
492
+
493
+ @property
494
+ def UpdatedAt(self):
495
+ r"""<p>最后修改时间</p>
496
+ 注意:此字段可能返回 null,表示取不到有效值。
497
+ :rtype: str
498
+ """
499
+ return self._UpdatedAt
500
+
501
+ @UpdatedAt.setter
502
+ def UpdatedAt(self, UpdatedAt):
503
+ self._UpdatedAt = UpdatedAt
504
+
505
+ @property
506
+ def Tags(self):
507
+ r"""<p>标签</p>
508
+ 注意:此字段可能返回 null,表示取不到有效值。
509
+ :rtype: list of Tag
510
+ """
511
+ return self._Tags
512
+
513
+ @Tags.setter
514
+ def Tags(self, Tags):
515
+ self._Tags = Tags
516
+
517
+ @property
518
+ def Security(self):
519
+ r"""<p>安全组信息</p>
520
+ 注意:此字段可能返回 null,表示取不到有效值。
521
+ :rtype: list of str
522
+ """
523
+ return self._Security
524
+
525
+ @Security.setter
526
+ def Security(self, Security):
527
+ self._Security = Security
528
+
529
+ @property
530
+ def Components(self):
531
+ r"""<p>组件信息</p>
532
+ 注意:此字段可能返回 null,表示取不到有效值。
533
+ :rtype: list of Component
534
+ """
535
+ return self._Components
536
+
537
+ @Components.setter
538
+ def Components(self, Components):
539
+ self._Components = Components
540
+
541
+ @property
542
+ def ExpiredAt(self):
543
+ r"""<p>过期时间</p>
544
+ 注意:此字段可能返回 null,表示取不到有效值。
545
+ :rtype: str
546
+ """
547
+ return self._ExpiredAt
548
+
549
+ @ExpiredAt.setter
550
+ def ExpiredAt(self, ExpiredAt):
551
+ self._ExpiredAt = ExpiredAt
552
+
553
+ @property
554
+ def RenewFlag(self):
555
+ r"""<p>续费标识</p>枚举值:<ul><li> 0: 默认</li><li> 1: 自动续费</li><li> 2: 不自动续费</li></ul>
556
+ 注意:此字段可能返回 null,表示取不到有效值。
557
+ :rtype: int
558
+ """
559
+ return self._RenewFlag
560
+
561
+ @RenewFlag.setter
562
+ def RenewFlag(self, RenewFlag):
563
+ self._RenewFlag = RenewFlag
564
+
565
+ @property
566
+ def ShutdownAt(self):
567
+ r"""<p>关机时间</p>
568
+ 注意:此字段可能返回 null,表示取不到有效值。
569
+ :rtype: str
570
+ """
571
+ return self._ShutdownAt
572
+
573
+ @ShutdownAt.setter
574
+ def ShutdownAt(self, ShutdownAt):
575
+ self._ShutdownAt = ShutdownAt
576
+
577
+ @property
578
+ def IsolatedAt(self):
579
+ r"""<p>隔离时间</p>
580
+ 注意:此字段可能返回 null,表示取不到有效值。
581
+ :rtype: str
582
+ """
583
+ return self._IsolatedAt
584
+
585
+ @IsolatedAt.setter
586
+ def IsolatedAt(self, IsolatedAt):
587
+ self._IsolatedAt = IsolatedAt
588
+
589
+ @property
590
+ def Type(self):
591
+ r"""<p>实例类型</p>枚举值:<ul><li> 0: 共享型</li><li> 1: 独享型</li><li> 2: 标准型</li></ul>
592
+ :rtype: int
593
+ """
594
+ return self._Type
595
+
596
+ @Type.setter
597
+ def Type(self, Type):
598
+ self._Type = Type
599
+
600
+
601
+ def _deserialize(self, params):
602
+ self._AppID = params.get("AppID")
603
+ self._ClusterID = params.get("ClusterID")
604
+ self._AccountID = params.get("AccountID")
605
+ self._Name = params.get("Name")
606
+ self._Region = params.get("Region")
607
+ if params.get("Networks") is not None:
608
+ self._Networks = []
609
+ for item in params.get("Networks"):
610
+ obj = Network()
611
+ obj._deserialize(item)
612
+ self._Networks.append(obj)
613
+ self._Status = params.get("Status")
614
+ self._CreatedAt = params.get("CreatedAt")
615
+ self._UpdatedAt = params.get("UpdatedAt")
616
+ if params.get("Tags") is not None:
617
+ self._Tags = []
618
+ for item in params.get("Tags"):
619
+ obj = Tag()
620
+ obj._deserialize(item)
621
+ self._Tags.append(obj)
622
+ self._Security = params.get("Security")
623
+ if params.get("Components") is not None:
624
+ self._Components = []
625
+ for item in params.get("Components"):
626
+ obj = Component()
627
+ obj._deserialize(item)
628
+ self._Components.append(obj)
629
+ self._ExpiredAt = params.get("ExpiredAt")
630
+ self._RenewFlag = params.get("RenewFlag")
631
+ self._ShutdownAt = params.get("ShutdownAt")
632
+ self._IsolatedAt = params.get("IsolatedAt")
633
+ self._Type = params.get("Type")
634
+ memeber_set = set(params.keys())
635
+ for name, value in vars(self).items():
636
+ property_name = name[1:]
637
+ if property_name in memeber_set:
638
+ memeber_set.remove(property_name)
639
+ if len(memeber_set) > 0:
640
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
641
+
642
+
643
+
644
+ class Component(AbstractModel):
645
+ r"""实例组件信息
646
+
647
+ """
648
+
649
+ def __init__(self):
650
+ r"""
651
+ :param _InstanceID: <p>所属实例id</p>
652
+ 注意:此字段可能返回 null,表示取不到有效值。
653
+ :type InstanceID: str
654
+ :param _Name: <p>名称</p>
655
+ 注意:此字段可能返回 null,表示取不到有效值。
656
+ :type Name: str
657
+ :param _Type: <p>组件类型</p>枚举值:<ul><li> gateway: 时序节点</li><li> database: 数据节点</li><li> gateway-worker: 扩展节点</li></ul>
658
+ 注意:此字段可能返回 null,表示取不到有效值。
659
+ :type Type: str
660
+ :param _Cpu: <p>cpu</p>
661
+ 注意:此字段可能返回 null,表示取不到有效值。
662
+ :type Cpu: int
663
+ :param _Memory: <p>内存</p>
664
+ 注意:此字段可能返回 null,表示取不到有效值。
665
+ :type Memory: int
666
+ :param _Disk: <p>磁盘</p>
667
+ 注意:此字段可能返回 null,表示取不到有效值。
668
+ :type Disk: int
669
+ :param _Shards: <p>节点数量</p>
670
+ 注意:此字段可能返回 null,表示取不到有效值。
671
+ :type Shards: int
672
+ :param _Replicas: <p>副本数量</p>
673
+ 注意:此字段可能返回 null,表示取不到有效值。
674
+ :type Replicas: int
675
+ :param _Networks: <p>网络</p>
676
+ 注意:此字段可能返回 null,表示取不到有效值。
677
+ :type Networks: list of Network
678
+ :param _State: <p>组件状态</p>枚举值:<ul><li> 0: 运行中</li><li> 1: 创建中</li><li> 2: 变配中</li><li> 3: 隔离中</li><li> 4: 已隔离</li><li> 5: 删除中</li><li> 6: 已删除</li><li> 7: 禁用中</li><li> 8: 已禁用</li><li> 9: 启用中</li></ul>
679
+ 注意:此字段可能返回 null,表示取不到有效值。
680
+ :type State: int
681
+ :param _ID: <p>组件内部ID</p>
682
+ 注意:此字段可能返回 null,表示取不到有效值。
683
+ :type ID: int
684
+ """
685
+ self._InstanceID = None
686
+ self._Name = None
687
+ self._Type = None
688
+ self._Cpu = None
689
+ self._Memory = None
690
+ self._Disk = None
691
+ self._Shards = None
692
+ self._Replicas = None
693
+ self._Networks = None
694
+ self._State = None
695
+ self._ID = None
696
+
697
+ @property
698
+ def InstanceID(self):
699
+ r"""<p>所属实例id</p>
700
+ 注意:此字段可能返回 null,表示取不到有效值。
701
+ :rtype: str
702
+ """
703
+ return self._InstanceID
704
+
705
+ @InstanceID.setter
706
+ def InstanceID(self, InstanceID):
707
+ self._InstanceID = InstanceID
708
+
709
+ @property
710
+ def Name(self):
711
+ r"""<p>名称</p>
712
+ 注意:此字段可能返回 null,表示取不到有效值。
713
+ :rtype: str
714
+ """
715
+ return self._Name
716
+
717
+ @Name.setter
718
+ def Name(self, Name):
719
+ self._Name = Name
720
+
721
+ @property
722
+ def Type(self):
723
+ r"""<p>组件类型</p>枚举值:<ul><li> gateway: 时序节点</li><li> database: 数据节点</li><li> gateway-worker: 扩展节点</li></ul>
724
+ 注意:此字段可能返回 null,表示取不到有效值。
725
+ :rtype: str
726
+ """
727
+ return self._Type
728
+
729
+ @Type.setter
730
+ def Type(self, Type):
731
+ self._Type = Type
732
+
733
+ @property
734
+ def Cpu(self):
735
+ r"""<p>cpu</p>
736
+ 注意:此字段可能返回 null,表示取不到有效值。
737
+ :rtype: int
738
+ """
739
+ return self._Cpu
740
+
741
+ @Cpu.setter
742
+ def Cpu(self, Cpu):
743
+ self._Cpu = Cpu
744
+
745
+ @property
746
+ def Memory(self):
747
+ r"""<p>内存</p>
748
+ 注意:此字段可能返回 null,表示取不到有效值。
749
+ :rtype: int
750
+ """
751
+ return self._Memory
752
+
753
+ @Memory.setter
754
+ def Memory(self, Memory):
755
+ self._Memory = Memory
756
+
757
+ @property
758
+ def Disk(self):
759
+ r"""<p>磁盘</p>
760
+ 注意:此字段可能返回 null,表示取不到有效值。
761
+ :rtype: int
762
+ """
763
+ return self._Disk
764
+
765
+ @Disk.setter
766
+ def Disk(self, Disk):
767
+ self._Disk = Disk
768
+
769
+ @property
770
+ def Shards(self):
771
+ r"""<p>节点数量</p>
772
+ 注意:此字段可能返回 null,表示取不到有效值。
773
+ :rtype: int
774
+ """
775
+ return self._Shards
776
+
777
+ @Shards.setter
778
+ def Shards(self, Shards):
779
+ self._Shards = Shards
780
+
781
+ @property
782
+ def Replicas(self):
783
+ r"""<p>副本数量</p>
784
+ 注意:此字段可能返回 null,表示取不到有效值。
785
+ :rtype: int
786
+ """
787
+ return self._Replicas
788
+
789
+ @Replicas.setter
790
+ def Replicas(self, Replicas):
791
+ self._Replicas = Replicas
792
+
793
+ @property
794
+ def Networks(self):
795
+ r"""<p>网络</p>
796
+ 注意:此字段可能返回 null,表示取不到有效值。
797
+ :rtype: list of Network
798
+ """
799
+ return self._Networks
800
+
801
+ @Networks.setter
802
+ def Networks(self, Networks):
803
+ self._Networks = Networks
804
+
805
+ @property
806
+ def State(self):
807
+ r"""<p>组件状态</p>枚举值:<ul><li> 0: 运行中</li><li> 1: 创建中</li><li> 2: 变配中</li><li> 3: 隔离中</li><li> 4: 已隔离</li><li> 5: 删除中</li><li> 6: 已删除</li><li> 7: 禁用中</li><li> 8: 已禁用</li><li> 9: 启用中</li></ul>
808
+ 注意:此字段可能返回 null,表示取不到有效值。
809
+ :rtype: int
810
+ """
811
+ return self._State
812
+
813
+ @State.setter
814
+ def State(self, State):
815
+ self._State = State
816
+
817
+ @property
818
+ def ID(self):
819
+ r"""<p>组件内部ID</p>
820
+ 注意:此字段可能返回 null,表示取不到有效值。
821
+ :rtype: int
822
+ """
823
+ return self._ID
824
+
825
+ @ID.setter
826
+ def ID(self, ID):
827
+ self._ID = ID
828
+
829
+
830
+ def _deserialize(self, params):
831
+ self._InstanceID = params.get("InstanceID")
832
+ self._Name = params.get("Name")
833
+ self._Type = params.get("Type")
834
+ self._Cpu = params.get("Cpu")
835
+ self._Memory = params.get("Memory")
836
+ self._Disk = params.get("Disk")
837
+ self._Shards = params.get("Shards")
838
+ self._Replicas = params.get("Replicas")
839
+ if params.get("Networks") is not None:
840
+ self._Networks = []
841
+ for item in params.get("Networks"):
842
+ obj = Network()
843
+ obj._deserialize(item)
844
+ self._Networks.append(obj)
845
+ self._State = params.get("State")
846
+ self._ID = params.get("ID")
847
+ memeber_set = set(params.keys())
848
+ for name, value in vars(self).items():
849
+ property_name = name[1:]
850
+ if property_name in memeber_set:
851
+ memeber_set.remove(property_name)
852
+ if len(memeber_set) > 0:
853
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
854
+
855
+
856
+
321
857
  class Database(AbstractModel):
322
858
  r"""数据库相关信息
323
859
 
@@ -475,6 +1011,59 @@ class Database(AbstractModel):
475
1011
 
476
1012
 
477
1013
 
1014
+ class DescribeClusterDetailRequest(AbstractModel):
1015
+ r"""DescribeClusterDetail请求参数结构体
1016
+
1017
+ """
1018
+
1019
+
1020
+ class DescribeClusterDetailResponse(AbstractModel):
1021
+ r"""DescribeClusterDetail返回参数结构体
1022
+
1023
+ """
1024
+
1025
+ def __init__(self):
1026
+ r"""
1027
+ :param _Cluster: <p>实例详情</p>
1028
+ 注意:此字段可能返回 null,表示取不到有效值。
1029
+ :type Cluster: :class:`tencentcloud.ctsdb.v20230202.models.ClusterDetail`
1030
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1031
+ :type RequestId: str
1032
+ """
1033
+ self._Cluster = None
1034
+ self._RequestId = None
1035
+
1036
+ @property
1037
+ def Cluster(self):
1038
+ r"""<p>实例详情</p>
1039
+ 注意:此字段可能返回 null,表示取不到有效值。
1040
+ :rtype: :class:`tencentcloud.ctsdb.v20230202.models.ClusterDetail`
1041
+ """
1042
+ return self._Cluster
1043
+
1044
+ @Cluster.setter
1045
+ def Cluster(self, Cluster):
1046
+ self._Cluster = Cluster
1047
+
1048
+ @property
1049
+ def RequestId(self):
1050
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1051
+ :rtype: str
1052
+ """
1053
+ return self._RequestId
1054
+
1055
+ @RequestId.setter
1056
+ def RequestId(self, RequestId):
1057
+ self._RequestId = RequestId
1058
+
1059
+
1060
+ def _deserialize(self, params):
1061
+ if params.get("Cluster") is not None:
1062
+ self._Cluster = ClusterDetail()
1063
+ self._Cluster._deserialize(params.get("Cluster"))
1064
+ self._RequestId = params.get("RequestId")
1065
+
1066
+
478
1067
  class DescribeClustersRequest(AbstractModel):
479
1068
  r"""DescribeClusters请求参数结构体
480
1069
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ctsdb
3
- Version: 3.0.1459
3
+ Version: 3.1.43
4
4
  Summary: Tencent Cloud Ctsdb SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common (<4.0.0,>=3.0.1459)
18
+ Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.43
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -44,5 +44,3 @@ or download source code from github and install:
44
44
  $ cd tencentcloud-sdk-python
45
45
  $ python package.py --components common ctsdb
46
46
 
47
-
48
-
@@ -0,0 +1,11 @@
1
+ tencentcloud/__init__.py,sha256=1lxcM80RWVOZKsweYR7qlMn3Ck_Ga03gteNFVJe4q7g,629
2
+ tencentcloud/ctsdb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/ctsdb/v20230202/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/ctsdb/v20230202/ctsdb_client.py,sha256=egdIW6nMT5Zb8dXVn-Z7fUmKymBvnUYi6KEZaUA24ZQ,3794
5
+ tencentcloud/ctsdb/v20230202/ctsdb_client_async.py,sha256=nfRo0M4V_os9Gvo2Np6XL73fDpu4oZlDqiV32uN6Vw0,2798
6
+ tencentcloud/ctsdb/v20230202/errorcodes.py,sha256=S-5aHQVaqiTSCJVorLKZ0ij8tNrxUbdPraSG26HmGfg,797
7
+ tencentcloud/ctsdb/v20230202/models.py,sha256=1RhaUelh-sTj1h0kifTPCzWAfgWnSGIMZ-ZF2rPjIy8,55889
8
+ tencentcloud_sdk_python_ctsdb-3.1.43.dist-info/METADATA,sha256=Vr4q4gxsENgv1COwg6seVVrgZtVEREY87KNR8PcqdXs,1505
9
+ tencentcloud_sdk_python_ctsdb-3.1.43.dist-info/WHEEL,sha256=I3glN-nznogni2CWkAvi6vPRkBhTbVeYvJZnIsln6uc,109
10
+ tencentcloud_sdk_python_ctsdb-3.1.43.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
+ tencentcloud_sdk_python_ctsdb-3.1.43.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.37.1)
2
+ Generator: setuptools (75.3.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=r84PYsG-hFbeEH3ch-Sw2bJmqWlws-vogRx7ePuiG9c,631
2
- tencentcloud/ctsdb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/ctsdb/v20230202/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/ctsdb/v20230202/ctsdb_client.py,sha256=C_pToS42mWVKzTpEIYDroanOpu1i4dkC_nLqxmQPebM,2896
5
- tencentcloud/ctsdb/v20230202/errorcodes.py,sha256=S-5aHQVaqiTSCJVorLKZ0ij8tNrxUbdPraSG26HmGfg,797
6
- tencentcloud/ctsdb/v20230202/models.py,sha256=zLWVi4wtTFFOSjlmI2bCrzFrl1BFDPd5WZnpzfdb6a4,36626
7
- tencentcloud_sdk_python_ctsdb-3.0.1459.dist-info/METADATA,sha256=Tt9FLjakr-iaCd3JwZfo_RhDW4KaVK3opOqLlrDNqsM,1513
8
- tencentcloud_sdk_python_ctsdb-3.0.1459.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_ctsdb-3.0.1459.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_ctsdb-3.0.1459.dist-info/RECORD,,