Skip to content

Commit

Permalink
sdk: rolling update for 0.11.55 (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot authored Mar 30, 2024
1 parent 9a3d852 commit 06c29f9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
22 changes: 17 additions & 5 deletions ucloud/services/udb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,30 +701,37 @@ def describe_mongo_db_sharded_cluster(
- **BackupCount** (int) -
- **BackupDate** (str) -
- **BackupDuration** (int) -
- **BackupMethod** (str) -
- **BackupZone** (str) -
- **CaseSensitivityParam** (int) -
- **ChargeType** (str) -
- **CluserRole** (str) -
- **ClusterRole** (str) -
- **CreateTime** (int) -
- **DBId** (str) -
- **DBSubVersion** (str) -
- **DBTypeId** (str) -
- **DataFileSize** (float) -
- **DataSet** (list) - 见 **UDBSlaveInstanceSet** 模型定义
- **DiskSpace** (int) -
- **DiskUsedSize** (float) -
- **EnableSSL** (int) -
- **ExpiredTime** (int) -
- **IPv6Address** (str) -
- **InstanceMode** (str) -
- **InstanceType** (str) -
- **InstanceTypeId** (int) -
- **LogFileSize** (float) -
- **MachineType** (str) -
- **MemoryLimit** (int) -
- **ModifyTime** (int) -
- **Name** (str) -
- **ParamGroupId** (int) -
- **Port** (int) -
- **Role** (str) -
- **SSDType** (str) -
- **SSLExpirationTime** (int) -
- **SpecificationType** (int) -
- **SrcDBId** (str) -
- **State** (str) -
- **SubnetId** (str) -
Expand All @@ -745,6 +752,7 @@ def describe_mongo_db_sharded_cluster(
- **BackupCount** (int) -
- **BackupDate** (str) -
- **BackupDuration** (int) -
- **CaseSensitivityParam** (int) -
- **ChargeType** (str) -
- **ClusterRole** (str) -
- **CreateTime** (int) -
Expand All @@ -759,13 +767,16 @@ def describe_mongo_db_sharded_cluster(
- **InstanceType** (str) -
- **InstanceTypeId** (int) -
- **LogFileSize** (float) -
- **MachineType** (str) -
- **MemoryLimit** (int) -
- **ModifyTime** (int) -
- **Name** (str) -
- **ParamGroupId** (int) -
- **Port** (int) -
- **ReplicationDelaySeconds** (int) -
- **Role** (str) -
- **SSDType** (str) -
- **SpecificationType** (str) -
- **SrcDBId** (str) -
- **State** (str) -
- **SubnetId** (str) -
Expand Down Expand Up @@ -957,6 +968,7 @@ def describe_udb_instance(
- **BackupDuration** (int) - 备份策略,一天内备份时间间隔,单位小时,默认24小时
- **BackupMethod** (str) - 默认的备份方式,nobackup表示不备份, snapshot 表示使用快照备份,logic 表示使用逻辑备份,xtrabackup表示使用物理备份。
- **BackupZone** (str) - 跨可用区高可用备库所在可用区
- **CPU** (int) - CPU核数
- **CaseSensitivityParam** (int) - 0区分大小写, 1不分区
- **ChargeType** (str) - Year, Month, Dynamic,Trial,默认: Dynamic
- **ClusterRole** (str) - 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式
Expand Down Expand Up @@ -1770,17 +1782,17 @@ def list_udb_user_tables(
**Response Model**
**UDBDatabaseData**
- **DBName** (str) - 数据库名称
- **TableDataSet** (list) - 见 **TableData** 模型定义
**TableData**
- **DBName** (str) - 表所属的库名称
- **Engine** (str) - 表的引擎(innodb, myisam)
- **TableName** (str) - 表名称
**UDBDatabaseData**
- **DBName** (str) - 数据库名称
- **TableDataSet** (list) - 见 **TableData** 模型定义
"""
# build request
d = {
Expand Down
19 changes: 10 additions & 9 deletions ucloud/services/udb/schemas/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
from ucloud.core.typesystem import schema, fields


class UFileDataSetSchema(schema.ResponseSchema):
"""UFileDataSet - 增加ufile的描述"""

fields = {
"Bucket": fields.Str(required=False, load_from="Bucket"),
"TokenID": fields.Str(required=False, load_from="TokenID"),
}


class UDBSlaveInstanceSetSchema(schema.ResponseSchema):
"""UDBSlaveInstanceSet - DescribeUDBSlaveInstance"""

Expand Down Expand Up @@ -78,6 +69,15 @@ class UDBSlaveInstanceSetSchema(schema.ResponseSchema):
}


class UFileDataSetSchema(schema.ResponseSchema):
"""UFileDataSet - 增加ufile的描述"""

fields = {
"Bucket": fields.Str(required=False, load_from="Bucket"),
"TokenID": fields.Str(required=False, load_from="TokenID"),
}


class MongoDBShardedClusterSetSchema(schema.ResponseSchema):
"""MongoDBShardedClusterSet -"""

Expand Down Expand Up @@ -114,6 +114,7 @@ class UDBInstanceSetSchema(schema.ResponseSchema):
),
"BackupMethod": fields.Str(required=False, load_from="BackupMethod"),
"BackupZone": fields.Str(required=False, load_from="BackupZone"),
"CPU": fields.Int(required=False, load_from="CPU"),
"CaseSensitivityParam": fields.Int(
required=False, load_from="CaseSensitivityParam"
),
Expand Down
2 changes: 1 addition & 1 deletion ucloud/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.11.54"
version = "0.11.55"

0 comments on commit 06c29f9

Please sign in to comment.