Skip to content

Commit 06c29f9

Browse files
authored
sdk: rolling update for 0.11.55 (#259)
1 parent 9a3d852 commit 06c29f9

File tree

3 files changed

+28
-15
lines changed

3 files changed

+28
-15
lines changed

ucloud/services/udb/client.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -701,30 +701,37 @@ def describe_mongo_db_sharded_cluster(
701701
- **BackupCount** (int) -
702702
- **BackupDate** (str) -
703703
- **BackupDuration** (int) -
704+
- **BackupMethod** (str) -
704705
- **BackupZone** (str) -
706+
- **CaseSensitivityParam** (int) -
705707
- **ChargeType** (str) -
706708
- **CluserRole** (str) -
707709
- **ClusterRole** (str) -
708710
- **CreateTime** (int) -
709711
- **DBId** (str) -
712+
- **DBSubVersion** (str) -
710713
- **DBTypeId** (str) -
711714
- **DataFileSize** (float) -
712715
- **DataSet** (list) - 见 **UDBSlaveInstanceSet** 模型定义
713716
- **DiskSpace** (int) -
714717
- **DiskUsedSize** (float) -
718+
- **EnableSSL** (int) -
715719
- **ExpiredTime** (int) -
716720
- **IPv6Address** (str) -
717721
- **InstanceMode** (str) -
718722
- **InstanceType** (str) -
719723
- **InstanceTypeId** (int) -
720724
- **LogFileSize** (float) -
725+
- **MachineType** (str) -
721726
- **MemoryLimit** (int) -
722727
- **ModifyTime** (int) -
723728
- **Name** (str) -
724729
- **ParamGroupId** (int) -
725730
- **Port** (int) -
726731
- **Role** (str) -
727732
- **SSDType** (str) -
733+
- **SSLExpirationTime** (int) -
734+
- **SpecificationType** (int) -
728735
- **SrcDBId** (str) -
729736
- **State** (str) -
730737
- **SubnetId** (str) -
@@ -745,6 +752,7 @@ def describe_mongo_db_sharded_cluster(
745752
- **BackupCount** (int) -
746753
- **BackupDate** (str) -
747754
- **BackupDuration** (int) -
755+
- **CaseSensitivityParam** (int) -
748756
- **ChargeType** (str) -
749757
- **ClusterRole** (str) -
750758
- **CreateTime** (int) -
@@ -759,13 +767,16 @@ def describe_mongo_db_sharded_cluster(
759767
- **InstanceType** (str) -
760768
- **InstanceTypeId** (int) -
761769
- **LogFileSize** (float) -
770+
- **MachineType** (str) -
762771
- **MemoryLimit** (int) -
763772
- **ModifyTime** (int) -
764773
- **Name** (str) -
765774
- **ParamGroupId** (int) -
766775
- **Port** (int) -
776+
- **ReplicationDelaySeconds** (int) -
767777
- **Role** (str) -
768778
- **SSDType** (str) -
779+
- **SpecificationType** (str) -
769780
- **SrcDBId** (str) -
770781
- **State** (str) -
771782
- **SubnetId** (str) -
@@ -957,6 +968,7 @@ def describe_udb_instance(
957968
- **BackupDuration** (int) - 备份策略,一天内备份时间间隔,单位小时,默认24小时
958969
- **BackupMethod** (str) - 默认的备份方式,nobackup表示不备份, snapshot 表示使用快照备份,logic 表示使用逻辑备份,xtrabackup表示使用物理备份。
959970
- **BackupZone** (str) - 跨可用区高可用备库所在可用区
971+
- **CPU** (int) - CPU核数
960972
- **CaseSensitivityParam** (int) - 0区分大小写, 1不分区
961973
- **ChargeType** (str) - Year, Month, Dynamic,Trial,默认: Dynamic
962974
- **ClusterRole** (str) - 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式
@@ -1770,17 +1782,17 @@ def list_udb_user_tables(
17701782
17711783
**Response Model**
17721784
1785+
**UDBDatabaseData**
1786+
- **DBName** (str) - 数据库名称
1787+
- **TableDataSet** (list) - 见 **TableData** 模型定义
1788+
1789+
17731790
**TableData**
17741791
- **DBName** (str) - 表所属的库名称
17751792
- **Engine** (str) - 表的引擎(innodb, myisam)
17761793
- **TableName** (str) - 表名称
17771794
17781795
1779-
**UDBDatabaseData**
1780-
- **DBName** (str) - 数据库名称
1781-
- **TableDataSet** (list) - 见 **TableData** 模型定义
1782-
1783-
17841796
"""
17851797
# build request
17861798
d = {

ucloud/services/udb/schemas/models.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@
33
from ucloud.core.typesystem import schema, fields
44

55

6-
class UFileDataSetSchema(schema.ResponseSchema):
7-
"""UFileDataSet - 增加ufile的描述"""
8-
9-
fields = {
10-
"Bucket": fields.Str(required=False, load_from="Bucket"),
11-
"TokenID": fields.Str(required=False, load_from="TokenID"),
12-
}
13-
14-
156
class UDBSlaveInstanceSetSchema(schema.ResponseSchema):
167
"""UDBSlaveInstanceSet - DescribeUDBSlaveInstance"""
178

@@ -78,6 +69,15 @@ class UDBSlaveInstanceSetSchema(schema.ResponseSchema):
7869
}
7970

8071

72+
class UFileDataSetSchema(schema.ResponseSchema):
73+
"""UFileDataSet - 增加ufile的描述"""
74+
75+
fields = {
76+
"Bucket": fields.Str(required=False, load_from="Bucket"),
77+
"TokenID": fields.Str(required=False, load_from="TokenID"),
78+
}
79+
80+
8181
class MongoDBShardedClusterSetSchema(schema.ResponseSchema):
8282
"""MongoDBShardedClusterSet -"""
8383

@@ -114,6 +114,7 @@ class UDBInstanceSetSchema(schema.ResponseSchema):
114114
),
115115
"BackupMethod": fields.Str(required=False, load_from="BackupMethod"),
116116
"BackupZone": fields.Str(required=False, load_from="BackupZone"),
117+
"CPU": fields.Int(required=False, load_from="CPU"),
117118
"CaseSensitivityParam": fields.Int(
118119
required=False, load_from="CaseSensitivityParam"
119120
),

ucloud/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "0.11.54"
1+
version = "0.11.55"

0 commit comments

Comments
 (0)