Skip to content

Commit 07d2ea0

Browse files
authored
sdk: rolling update for 0.11.139 (#372)
1 parent 2311372 commit 07d2ea0

6 files changed

Lines changed: 143 additions & 143 deletions

File tree

‎ucloud/services/uai_modelverse/client.py‎

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -358,23 +358,15 @@ def get_uf_square_model_detail(
358358
359359
**Response Model**
360360
361-
**InferenceRegionInfo**
362-
- **ModelId** (str) - 地域模型ID (例如: deepseek-v4-flash-sg)
363-
- **RegionCode** (str) - 地域代码: sg(新加坡)/us(美国)/hk(香港)
364-
- **RegionName** (str) - 地域名称: 新加坡/美国/香港
365-
- **RegionNameEn** (str) - 地域名称(英文): Singapore/United States/Hong Kong
366-
- **SquareModelId** (str) - 广场模型ID (umodel-xxx)
367-
- **Status** (str) - 状态: published(已发布)/unpublished(未发布)
368-
369-
370-
**ModelTypeMap**
371-
- **ImageToImage** (bool) - 图生图模型
372-
- **ImageToVideo** (bool) - 图生视频模型
373-
- **Inference** (bool) - 微调模型
374-
- **Sensitive** (bool) - 海外模型
375-
- **TextGeneration** (bool) - 文生文模型,true 表示是文生文模型,下同
376-
- **TextToImage** (bool) - 文生图模型
377-
- **TextToVideo** (bool) - 文生视频模型
361+
**ModelCapabilities**
362+
- **BatchInference** (bool) - 是否支持批量推理
363+
- **ContextCaching** (bool) - 是否支持上下文缓存
364+
- **Experience** (bool) - 是否支持体验
365+
- **FunctionCall** (bool) - 是否支持函数调用
366+
- **KnowledgeBase** (bool) - 是否支持知识库
367+
- **Mcp** (bool) - 是否支持MCP
368+
- **StructuredOutput** (bool) - 是否支持结构化输出
369+
- **WebSearch** (bool) - 是否支持联网搜索
378370
379371
380372
**Pricing**
@@ -387,6 +379,16 @@ def get_uf_square_model_detail(
387379
- **Video** (str) - 生视频定价
388380
389381
382+
**ModelTypeMap**
383+
- **ImageToImage** (bool) - 图生图模型
384+
- **ImageToVideo** (bool) - 图生视频模型
385+
- **Inference** (bool) - 微调模型
386+
- **Sensitive** (bool) - 海外模型
387+
- **TextGeneration** (bool) - 文生文模型,true 表示是文生文模型,下同
388+
- **TextToImage** (bool) - 文生图模型
389+
- **TextToVideo** (bool) - 文生视频模型
390+
391+
390392
**PriceRate**
391393
- **ChargeItem** (str) - 收费项:input/output/thinking/tool...
392394
- **ChargeItemDescription** (str) - 收费项描述
@@ -397,22 +399,13 @@ def get_uf_square_model_detail(
397399
- **UnitEn** (str) - 计价单位英文
398400
399401
400-
**ApiProtocols**
401-
- **Anthropic** (bool) - 是否支持Anthropic协议
402-
- **ChatCompletions** (bool) - 是否支持chat协议
403-
- **Gemini** (bool) - 是否支持gemini协议
404-
- **Responses** (bool) - 是否支持responses协议
405-
406-
407-
**ModelCapabilities**
408-
- **BatchInference** (bool) - 是否支持批量推理
409-
- **ContextCaching** (bool) - 是否支持上下文缓存
410-
- **Experience** (bool) - 是否支持体验
411-
- **FunctionCall** (bool) - 是否支持函数调用
412-
- **KnowledgeBase** (bool) - 是否支持知识库
413-
- **Mcp** (bool) - 是否支持MCP
414-
- **StructuredOutput** (bool) - 是否支持结构化输出
415-
- **WebSearch** (bool) - 是否支持联网搜索
402+
**InferenceRegionInfo**
403+
- **ModelId** (str) - 地域模型ID (例如: deepseek-v4-flash-sg)
404+
- **RegionCode** (str) - 地域代码: sg(新加坡)/us(美国)/hk(香港)
405+
- **RegionName** (str) - 地域名称: 新加坡/美国/香港
406+
- **RegionNameEn** (str) - 地域名称(英文): Singapore/United States/Hong Kong
407+
- **SquareModelId** (str) - 广场模型ID (umodel-xxx)
408+
- **Status** (str) - 状态: published(已发布)/unpublished(未发布)
416409
417410
418411
**PriceTier**
@@ -422,6 +415,13 @@ def get_uf_square_model_detail(
422415
- **Rates** (list) - 见 **PriceRate** 模型定义
423416
424417
418+
**ApiProtocols**
419+
- **Anthropic** (bool) - 是否支持Anthropic协议
420+
- **ChatCompletions** (bool) - 是否支持chat协议
421+
- **Gemini** (bool) - 是否支持gemini协议
422+
- **Responses** (bool) - 是否支持responses协议
423+
424+
425425
**SquareModel**
426426
- **ApiProtocols** (dict) - 见 **ApiProtocols** 模型定义
427427
- **BatchName** (str) - 关联的 batch 模型名称
@@ -492,7 +492,7 @@ def get_uf_square_model_prices(
492492
- **ChargeItemDescription** (str) - 收费项描述
493493
- **ChargeItemDescriptionEn** (str) - 收费项描述英文描述
494494
- **Currency** (str) - 货币单位
495-
- **Price** (str) - 价格
495+
- **Price** (int) - 价格
496496
- **Unit** (str) - 计价单位
497497
- **UnitEn** (str) - 计价单位英文
498498
@@ -842,16 +842,6 @@ def list_uf_square_model(
842842
843843
**Response Model**
844844
845-
**Pricing**
846-
- **Completion** (float) - 输出定价
847-
- **Currency** (str) - 币种
848-
- **Image** (float) - 生图定价
849-
- **Prompt** (float) - 提示词定价
850-
- **Unit** (str) - 单位(中文),如“次” “百万”
851-
- **UnitEn** (str) - 单位(English),如“Time” “Million”
852-
- **Video** (str) - 生视频定价
853-
854-
855845
**PriceRate**
856846
- **ChargeItem** (str) - 收费项:input/output/thinking/tool...
857847
- **ChargeItemDescription** (str) - 收费项描述
@@ -862,6 +852,16 @@ def list_uf_square_model(
862852
- **UnitEn** (str) - 计价单位英文
863853
864854
855+
**Pricing**
856+
- **Completion** (float) - 输出定价
857+
- **Currency** (str) - 币种
858+
- **Image** (float) - 生图定价
859+
- **Prompt** (float) - 提示词定价
860+
- **Unit** (str) - 单位(中文),如“次” “百万”
861+
- **UnitEn** (str) - 单位(English),如“Time” “Million”
862+
- **Video** (str) - 生视频定价
863+
864+
865865
**PriceTier**
866866
- **Condition** (str) - 档位/条件(例如 "32k"、"128k")
867867
- **Description** (str) - 档位描述(例如 "标准上下文 32k")

‎ucloud/services/uai_modelverse/schemas/models.py‎

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -74,35 +74,6 @@ class FilterOptionStringSchema(schema.ResponseSchema):
7474
}
7575

7676

77-
class PriceRateSchema(schema.ResponseSchema):
78-
"""PriceRate - 该档位下的收费列表(有序数组)"""
79-
80-
fields = {
81-
"ChargeItem": fields.Str(required=False, load_from="ChargeItem"),
82-
"ChargeItemDescription": fields.Str(
83-
required=False, load_from="ChargeItemDescription"
84-
),
85-
"ChargeItemDescriptionEn": fields.Str(
86-
required=True, load_from="ChargeItemDescriptionEn"
87-
),
88-
"Currency": fields.Str(required=True, load_from="Currency"),
89-
"Price": fields.Str(required=False, load_from="Price"),
90-
"Unit": fields.Str(required=True, load_from="Unit"),
91-
"UnitEn": fields.Str(required=True, load_from="UnitEn"),
92-
}
93-
94-
95-
class PriceTierSchema(schema.ResponseSchema):
96-
"""PriceTier - 价格阶梯"""
97-
98-
fields = {
99-
"Condition": fields.Str(required=False, load_from="Condition"),
100-
"Description": fields.Str(required=False, load_from="Description"),
101-
"DescriptionEn": fields.Str(required=True, load_from="DescriptionEn"),
102-
"Rates": fields.List(PriceRateSchema()),
103-
}
104-
105-
10677
class ModelTypeMapSchema(schema.ResponseSchema):
10778
"""ModelTypeMap - ModelTypeMap"""
10879

@@ -133,16 +104,21 @@ class PricingSchema(schema.ResponseSchema):
133104
}
134105

135106

136-
class ApiProtocolsSchema(schema.ResponseSchema):
137-
"""ApiProtocols - ApiProtocols"""
107+
class PriceRateSchema(schema.ResponseSchema):
108+
"""PriceRate - 该档位下的收费列表(有序数组)"""
138109

139110
fields = {
140-
"Anthropic": fields.Bool(required=False, load_from="Anthropic"),
141-
"ChatCompletions": fields.Bool(
142-
required=False, load_from="ChatCompletions"
111+
"ChargeItem": fields.Str(required=False, load_from="ChargeItem"),
112+
"ChargeItemDescription": fields.Str(
113+
required=False, load_from="ChargeItemDescription"
143114
),
144-
"Gemini": fields.Bool(required=False, load_from="Gemini"),
145-
"Responses": fields.Bool(required=False, load_from="Responses"),
115+
"ChargeItemDescriptionEn": fields.Str(
116+
required=True, load_from="ChargeItemDescriptionEn"
117+
),
118+
"Currency": fields.Str(required=True, load_from="Currency"),
119+
"Price": fields.Str(required=False, load_from="Price"),
120+
"Unit": fields.Str(required=True, load_from="Unit"),
121+
"UnitEn": fields.Str(required=True, load_from="UnitEn"),
146122
}
147123

148124

@@ -167,6 +143,19 @@ class ModelCapabilitiesSchema(schema.ResponseSchema):
167143
}
168144

169145

146+
class ApiProtocolsSchema(schema.ResponseSchema):
147+
"""ApiProtocols - ApiProtocols"""
148+
149+
fields = {
150+
"Anthropic": fields.Bool(required=False, load_from="Anthropic"),
151+
"ChatCompletions": fields.Bool(
152+
required=False, load_from="ChatCompletions"
153+
),
154+
"Gemini": fields.Bool(required=False, load_from="Gemini"),
155+
"Responses": fields.Bool(required=False, load_from="Responses"),
156+
}
157+
158+
170159
class InferenceRegionInfoSchema(schema.ResponseSchema):
171160
"""InferenceRegionInfo - 地域推理模型信息"""
172161

@@ -180,6 +169,17 @@ class InferenceRegionInfoSchema(schema.ResponseSchema):
180169
}
181170

182171

172+
class PriceTierSchema(schema.ResponseSchema):
173+
"""PriceTier - 价格阶梯"""
174+
175+
fields = {
176+
"Condition": fields.Str(required=False, load_from="Condition"),
177+
"Description": fields.Str(required=False, load_from="Description"),
178+
"DescriptionEn": fields.Str(required=True, load_from="DescriptionEn"),
179+
"Rates": fields.List(PriceRateSchema()),
180+
}
181+
182+
183183
class SquareModelSchema(schema.ResponseSchema):
184184
"""SquareModel - 广场模型"""
185185

‎ucloud/services/vpc/client.py‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,12 +1590,6 @@ def describe_natgw(
15901590
15911591
**Response Model**
15921592
1593-
**NatGatewaySubnetSet**
1594-
- **Subnet** (str) - 子网网段
1595-
- **SubnetName** (str) - 子网名字
1596-
- **SubnetworkId** (str) - 子网id
1597-
1598-
15991593
**NatGWIPResInfo**
16001594
- **EIP** (str) - 外网IP
16011595
- **OperatorName** (str) - IP的运营商信息
@@ -1609,6 +1603,12 @@ def describe_natgw(
16091603
- **Weight** (int) - 权重为100的为出口
16101604
16111605
1606+
**NatGatewaySubnetSet**
1607+
- **Subnet** (str) - 子网网段
1608+
- **SubnetName** (str) - 子网名字
1609+
- **SubnetworkId** (str) - 子网id
1610+
1611+
16121612
**NatGatewayDataSet**
16131613
- **CreateTime** (int) - natgw创建时间
16141614
- **FirewallId** (str) - 绑定的防火墙Id
@@ -1912,16 +1912,6 @@ def describe_network_interface(
19121912
19131913
**Response Model**
19141914
1915-
**UNIIpInfo**
1916-
- **IpAddr** (list) - ip 地址
1917-
- **IpType** (str) - ip类型 SecondaryIp/PrimaryIp
1918-
1919-
1920-
**FwInfo**
1921-
- **Id** (str) - 防火墙资源 ID
1922-
- **Name** (str) - 防火墙资源名称
1923-
1924-
19251915
**SimpleIPv6AddressInfo**
19261916
- **Attribute** (str) - 属性
19271917
- **IPv6Address** (str) - IPv6 地址
@@ -1939,6 +1929,16 @@ def describe_network_interface(
19391929
- **SecGroupId** (str) - 安全组ID
19401930
19411931
1932+
**FwInfo**
1933+
- **Id** (str) - 防火墙资源 ID
1934+
- **Name** (str) - 防火墙资源名称
1935+
1936+
1937+
**UNIIpInfo**
1938+
- **IpAddr** (list) - ip 地址
1939+
- **IpType** (str) - ip类型 SecondaryIp/PrimaryIp
1940+
1941+
19421942
**NetworkInterface**
19431943
- **AttachInstanceId** (str) - 绑定实例资源ID
19441944
- **CreateTime** (int) - 创建时间
@@ -3446,7 +3446,7 @@ def update_sec_group(
34463446
34473447
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
34483448
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
3449-
- **SecGroupId** (str) - (Required) 安全组资源ID数组。不支持 .n 格式。Type 为 string 数组。
3449+
- **SecGroupId** (list) - (Required) 安全组资源ID数组。不支持 .n 格式。Type 为 string 数组。
34503450
- **Name** (str) - 安全组名称,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上
34513451
- **Remark** (str) - 安全组备注,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上
34523452

‎ucloud/services/vpc/schemas/apis.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2704,7 +2704,7 @@ class UpdateSecGroupRequestSchema(schema.RequestSchema):
27042704
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
27052705
"Region": fields.Str(required=True, dump_to="Region"),
27062706
"Remark": fields.Str(required=False, dump_to="Remark"),
2707-
"SecGroupId": fields.Str(required=True, dump_to="SecGroupId"),
2707+
"SecGroupId": fields.List(fields.Str()),
27082708
}
27092709

27102710

0 commit comments

Comments
 (0)