ucloud-sdk-python3 0.11.148__py3-none-any.whl → 0.11.149__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.
- ucloud/services/uai_modelverse/client.py +111 -46
- ucloud/services/uai_modelverse/schemas/apis.py +45 -3
- ucloud/services/uai_modelverse/schemas/models.py +39 -32
- ucloud/version.py +1 -1
- {ucloud_sdk_python3-0.11.148.dist-info → ucloud_sdk_python3-0.11.149.dist-info}/METADATA +7 -7
- {ucloud_sdk_python3-0.11.148.dist-info → ucloud_sdk_python3-0.11.149.dist-info}/RECORD +9 -9
- {ucloud_sdk_python3-0.11.148.dist-info → ucloud_sdk_python3-0.11.149.dist-info}/LICENSE +0 -0
- {ucloud_sdk_python3-0.11.148.dist-info → ucloud_sdk_python3-0.11.149.dist-info}/WHEEL +0 -0
- {ucloud_sdk_python3-0.11.148.dist-info → ucloud_sdk_python3-0.11.149.dist-info}/top_level.txt +0 -0
|
@@ -369,16 +369,6 @@ class UAI_ModelverseClient(Client):
|
|
|
369
369
|
- **WebSearch** (bool) - 是否支持联网搜索
|
|
370
370
|
|
|
371
371
|
|
|
372
|
-
**Pricing**
|
|
373
|
-
- **Completion** (float) - 输出定价
|
|
374
|
-
- **Currency** (str) - 币种
|
|
375
|
-
- **Image** (float) - 生图定价
|
|
376
|
-
- **Prompt** (float) - 提示词定价
|
|
377
|
-
- **Unit** (str) - 单位(中文),如“次” “百万”
|
|
378
|
-
- **UnitEn** (str) - 单位(English),如“Time” “Million”
|
|
379
|
-
- **Video** (str) - 生视频定价
|
|
380
|
-
|
|
381
|
-
|
|
382
372
|
**ModelTypeMap**
|
|
383
373
|
- **ImageToImage** (bool) - 图生图模型
|
|
384
374
|
- **ImageToVideo** (bool) - 图生视频模型
|
|
@@ -389,6 +379,13 @@ class UAI_ModelverseClient(Client):
|
|
|
389
379
|
- **TextToVideo** (bool) - 文生视频模型
|
|
390
380
|
|
|
391
381
|
|
|
382
|
+
**ApiProtocols**
|
|
383
|
+
- **Anthropic** (bool) - 是否支持Anthropic协议
|
|
384
|
+
- **ChatCompletions** (bool) - 是否支持chat协议
|
|
385
|
+
- **Gemini** (bool) - 是否支持gemini协议
|
|
386
|
+
- **Responses** (bool) - 是否支持responses协议
|
|
387
|
+
|
|
388
|
+
|
|
392
389
|
**PriceRate**
|
|
393
390
|
- **ChargeItem** (str) - 收费项:input/output/thinking/tool...
|
|
394
391
|
- **ChargeItemDescription** (str) - 收费项描述
|
|
@@ -399,13 +396,14 @@ class UAI_ModelverseClient(Client):
|
|
|
399
396
|
- **UnitEn** (str) - 计价单位英文
|
|
400
397
|
|
|
401
398
|
|
|
402
|
-
**
|
|
403
|
-
- **
|
|
404
|
-
- **
|
|
405
|
-
- **
|
|
406
|
-
- **
|
|
407
|
-
- **
|
|
408
|
-
- **
|
|
399
|
+
**Pricing**
|
|
400
|
+
- **Completion** (float) - 输出定价
|
|
401
|
+
- **Currency** (str) - 币种
|
|
402
|
+
- **Image** (float) - 生图定价
|
|
403
|
+
- **Prompt** (float) - 提示词定价
|
|
404
|
+
- **Unit** (str) - 单位(中文),如“次” “百万”
|
|
405
|
+
- **UnitEn** (str) - 单位(English),如“Time” “Million”
|
|
406
|
+
- **Video** (str) - 生视频定价
|
|
409
407
|
|
|
410
408
|
|
|
411
409
|
**PriceTier**
|
|
@@ -415,11 +413,13 @@ class UAI_ModelverseClient(Client):
|
|
|
415
413
|
- **Rates** (list) - 见 **PriceRate** 模型定义
|
|
416
414
|
|
|
417
415
|
|
|
418
|
-
**
|
|
419
|
-
- **
|
|
420
|
-
- **
|
|
421
|
-
- **
|
|
422
|
-
- **
|
|
416
|
+
**InferenceRegionInfo**
|
|
417
|
+
- **ModelId** (str) - 地域模型ID (例如: deepseek-v4-flash-sg)
|
|
418
|
+
- **RegionCode** (str) - 地域代码: sg(新加坡)/us(美国)/hk(香港)
|
|
419
|
+
- **RegionName** (str) - 地域名称: 新加坡/美国/香港
|
|
420
|
+
- **RegionNameEn** (str) - 地域名称(英文): Singapore/United States/Hong Kong
|
|
421
|
+
- **SquareModelId** (str) - 广场模型ID (umodel-xxx)
|
|
422
|
+
- **Status** (str) - 状态: published(已发布)/unpublished(未发布)
|
|
423
423
|
|
|
424
424
|
|
|
425
425
|
**SquareModel**
|
|
@@ -842,16 +842,6 @@ class UAI_ModelverseClient(Client):
|
|
|
842
842
|
|
|
843
843
|
**Response Model**
|
|
844
844
|
|
|
845
|
-
**PriceRate**
|
|
846
|
-
- **ChargeItem** (str) - 收费项:input/output/thinking/tool...
|
|
847
|
-
- **ChargeItemDescription** (str) - 收费项描述
|
|
848
|
-
- **ChargeItemDescriptionEn** (str) - 收费项描述英文描述
|
|
849
|
-
- **Currency** (str) - 货币单位
|
|
850
|
-
- **Price** (str) - 价格
|
|
851
|
-
- **Unit** (str) - 计价单位
|
|
852
|
-
- **UnitEn** (str) - 计价单位英文
|
|
853
|
-
|
|
854
|
-
|
|
855
845
|
**Pricing**
|
|
856
846
|
- **Completion** (float) - 输出定价
|
|
857
847
|
- **Currency** (str) - 币种
|
|
@@ -862,6 +852,16 @@ class UAI_ModelverseClient(Client):
|
|
|
862
852
|
- **Video** (str) - 生视频定价
|
|
863
853
|
|
|
864
854
|
|
|
855
|
+
**PriceRate**
|
|
856
|
+
- **ChargeItem** (str) - 收费项:input/output/thinking/tool...
|
|
857
|
+
- **ChargeItemDescription** (str) - 收费项描述
|
|
858
|
+
- **ChargeItemDescriptionEn** (str) - 收费项描述英文描述
|
|
859
|
+
- **Currency** (str) - 货币单位
|
|
860
|
+
- **Price** (str) - 价格
|
|
861
|
+
- **Unit** (str) - 计价单位
|
|
862
|
+
- **UnitEn** (str) - 计价单位英文
|
|
863
|
+
|
|
864
|
+
|
|
865
865
|
**PriceTier**
|
|
866
866
|
- **Condition** (str) - 档位/条件(例如 "32k"、"128k")
|
|
867
867
|
- **Description** (str) - 档位描述(例如 "标准上下文 32k")
|
|
@@ -949,19 +949,80 @@ class UAI_ModelverseClient(Client):
|
|
|
949
949
|
def list_um_infer_api_key(
|
|
950
950
|
self, req: typing.Optional[dict] = None, **kwargs
|
|
951
951
|
) -> dict:
|
|
952
|
-
"""ListUMInferAPIKey -
|
|
952
|
+
"""ListUMInferAPIKey -
|
|
953
|
+
|
|
954
|
+
**Request**
|
|
955
|
+
|
|
956
|
+
- **ProjectId** (str) - (Config)
|
|
957
|
+
- **Limit** (int) -
|
|
958
|
+
- **ModelverseDisabled** (int) -
|
|
959
|
+
- **Offset** (int) -
|
|
960
|
+
- **SandBoxDisabled** (int) -
|
|
961
|
+
|
|
962
|
+
**Response**
|
|
963
|
+
|
|
964
|
+
- **Data** (list) - 见 **APIKey** 模型定义
|
|
965
|
+
|
|
966
|
+
**Response Model**
|
|
967
|
+
|
|
968
|
+
**APIKey**
|
|
969
|
+
- **ChannelId** (int) -
|
|
970
|
+
- **CreateTime** (int) -
|
|
971
|
+
- **DailyLimitAmount** (str) -
|
|
972
|
+
- **DailyUsedAmount** (str) -
|
|
973
|
+
- **ExpireTime** (int) -
|
|
974
|
+
- **GrantAllModels** (bool) -
|
|
975
|
+
- **GrantedModels** (list) -
|
|
976
|
+
- **IPWhitelist** (str) -
|
|
977
|
+
- **Key** (str) -
|
|
978
|
+
- **KeyId** (str) -
|
|
979
|
+
- **ModelverseDisabled** (int) -
|
|
980
|
+
- **MonthlyLimitAmount** (str) -
|
|
981
|
+
- **MonthlyUsedAmount** (str) -
|
|
982
|
+
- **Name** (str) -
|
|
983
|
+
- **OrganizationId** (int) -
|
|
984
|
+
- **SandBoxDisabled** (int) -
|
|
985
|
+
- **Status** (int) -
|
|
986
|
+
- **TopOrganizationId** (int) -
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
"""
|
|
990
|
+
# build request
|
|
991
|
+
d = {
|
|
992
|
+
"ProjectId": self.config.project_id,
|
|
993
|
+
}
|
|
994
|
+
req and d.update(req)
|
|
995
|
+
d = apis.ListUMInferAPIKeyRequestSchema().dumps(d)
|
|
996
|
+
|
|
997
|
+
# build options
|
|
998
|
+
kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
|
|
999
|
+
|
|
1000
|
+
resp = self.invoke("ListUMInferAPIKey", d, **kwargs)
|
|
1001
|
+
return apis.ListUMInferAPIKeyResponseSchema().loads(resp)
|
|
1002
|
+
|
|
1003
|
+
def list_um_infer_api_key_v2(
|
|
1004
|
+
self, req: typing.Optional[dict] = None, **kwargs
|
|
1005
|
+
) -> dict:
|
|
1006
|
+
"""ListUMInferAPIKeyV2 - 获取modelverse apikey,密钥掩码返回
|
|
953
1007
|
|
|
954
1008
|
**Request**
|
|
955
1009
|
|
|
956
1010
|
- **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
|
|
957
|
-
- **
|
|
958
|
-
- **
|
|
959
|
-
- **
|
|
960
|
-
- **
|
|
1011
|
+
- **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
1012
|
+
- **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
|
|
1013
|
+
- **AllStatus** (int) - 默认 false,排除已删除记录;true 包含已删除记录
|
|
1014
|
+
- **KeyId** (str) - 按 API Key 资源 ID 精确过滤;为空不限制
|
|
1015
|
+
- **Limit** (int) - 每页条数;0 表示不限制条数
|
|
1016
|
+
- **Offset** (str) - 从 0 开始的页号,默认 0;不是记录偏移量
|
|
1017
|
+
- **SandBoxDisabled** (str) - 不传不限制;0 启用,1 禁用
|
|
1018
|
+
- **SortByCreateTimeAsc** (bool) - true 按创建时间升序,false 降序
|
|
1019
|
+
- **SortByUpdateTimeAsc** (bool) - true 按更新时间升序,false 降序;优先于创建时间排序
|
|
961
1020
|
|
|
962
1021
|
**Response**
|
|
963
1022
|
|
|
964
1023
|
- **Data** (list) - 见 **APIKey** 模型定义
|
|
1024
|
+
- **Timestamp** (int) - 时间戳
|
|
1025
|
+
- **TotalCount** (int) - 数据量
|
|
965
1026
|
|
|
966
1027
|
**Response Model**
|
|
967
1028
|
|
|
@@ -970,12 +1031,15 @@ class UAI_ModelverseClient(Client):
|
|
|
970
1031
|
- **CreateTime** (int) - 创建时间
|
|
971
1032
|
- **DailyLimitAmount** (str) - 日限额,单位随用户所在渠道。126渠道单位为美元
|
|
972
1033
|
- **DailyUsedAmount** (str) - 日已使用额,单位随用户所在渠道。126渠道单位为美元
|
|
1034
|
+
- **DeniedModels** (list) - 禁止访问的模型列表。当 ModelAccessMode=blacklist 时生效。
|
|
973
1035
|
- **ExpireTime** (int) - 过期时间的unix时间戳,-1 用不过期
|
|
974
1036
|
- **GrantAllModels** (bool) - 全部模型访问开关,开启不受 GrantedModels 参数控制,关闭只能访问 GrantedModels 中添加模型
|
|
975
1037
|
- **GrantedModels** (list) - 授权的模型,英文逗号分隔,all表示所有模型都有权限
|
|
976
1038
|
- **IPWhitelist** (str) - ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例: 192.168.1.1 192.168.1.10-192.168.1.100 192.168.1.10/24
|
|
977
|
-
- **
|
|
1039
|
+
- **InferenceLogEnabled** (int) - 是否开启推理日志
|
|
1040
|
+
- **Key** (str) - 密钥值,前四后四,中间*掩码展示
|
|
978
1041
|
- **KeyId** (str) - 资源ID
|
|
1042
|
+
- **ModelAccessMode** (str) - 模型访问策略。可选值:whitelist(白名单模式,默认)或 blacklist(黑名单模式)。
|
|
979
1043
|
- **ModelverseDisabled** (int) - 是否modelverse可用 0: 启用 1: 禁用
|
|
980
1044
|
- **MonthlyLimitAmount** (str) - 月限额,单位随用户所在渠道。126渠道单位为美元
|
|
981
1045
|
- **MonthlyUsedAmount** (str) - 月已使用额,单位随用户所在渠道。126渠道单位为美元
|
|
@@ -990,12 +1054,13 @@ class UAI_ModelverseClient(Client):
|
|
|
990
1054
|
# build request
|
|
991
1055
|
d = {
|
|
992
1056
|
"ProjectId": self.config.project_id,
|
|
1057
|
+
"Region": self.config.region,
|
|
993
1058
|
}
|
|
994
1059
|
req and d.update(req)
|
|
995
|
-
d = apis.
|
|
1060
|
+
d = apis.ListUMInferAPIKeyV2RequestSchema().dumps(d)
|
|
996
1061
|
|
|
997
|
-
resp = self.invoke("
|
|
998
|
-
return apis.
|
|
1062
|
+
resp = self.invoke("ListUMInferAPIKeyV2", d, **kwargs)
|
|
1063
|
+
return apis.ListUMInferAPIKeyV2ResponseSchema().loads(resp)
|
|
999
1064
|
|
|
1000
1065
|
def list_um_infer_request_logs(
|
|
1001
1066
|
self, req: typing.Optional[dict] = None, **kwargs
|
|
@@ -1021,6 +1086,11 @@ class UAI_ModelverseClient(Client):
|
|
|
1021
1086
|
|
|
1022
1087
|
**Response Model**
|
|
1023
1088
|
|
|
1089
|
+
**RequestLogSummary**
|
|
1090
|
+
- **FailedRequests** (int) - 查询条件命中的失败请求数
|
|
1091
|
+
- **TotalRequests** (int) - 查询条件命中的总请求数
|
|
1092
|
+
|
|
1093
|
+
|
|
1024
1094
|
**RequestLogItem**
|
|
1025
1095
|
- **ApiKeyId** (str) - API Key ID
|
|
1026
1096
|
- **ApiKeyName** (str) - API Key 名称
|
|
@@ -1045,11 +1115,6 @@ class UAI_ModelverseClient(Client):
|
|
|
1045
1115
|
- **TotalTokens** (int) - 总 Token 数
|
|
1046
1116
|
|
|
1047
1117
|
|
|
1048
|
-
**RequestLogSummary**
|
|
1049
|
-
- **FailedRequests** (int) - 查询条件命中的失败请求数
|
|
1050
|
-
- **TotalRequests** (int) - 查询条件命中的总请求数
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
1118
|
**ListUMInferRequestLogsData**
|
|
1054
1119
|
- **Items** (list) - 见 **RequestLogItem** 模型定义
|
|
1055
1120
|
- **Summary** (dict) - 见 **RequestLogSummary** 模型定义
|
|
@@ -639,12 +639,12 @@ class ListUFSquareModelFiltersAuthResponseSchema(schema.ResponseSchema):
|
|
|
639
639
|
"""
|
|
640
640
|
API: ListUMInferAPIKey
|
|
641
641
|
|
|
642
|
-
|
|
642
|
+
|
|
643
643
|
"""
|
|
644
644
|
|
|
645
645
|
|
|
646
646
|
class ListUMInferAPIKeyRequestSchema(schema.RequestSchema):
|
|
647
|
-
"""ListUMInferAPIKey -
|
|
647
|
+
"""ListUMInferAPIKey -"""
|
|
648
648
|
|
|
649
649
|
fields = {
|
|
650
650
|
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
@@ -660,7 +660,7 @@ class ListUMInferAPIKeyRequestSchema(schema.RequestSchema):
|
|
|
660
660
|
|
|
661
661
|
|
|
662
662
|
class ListUMInferAPIKeyResponseSchema(schema.ResponseSchema):
|
|
663
|
-
"""ListUMInferAPIKey -
|
|
663
|
+
"""ListUMInferAPIKey -"""
|
|
664
664
|
|
|
665
665
|
fields = {
|
|
666
666
|
"Data": fields.List(
|
|
@@ -669,6 +669,48 @@ class ListUMInferAPIKeyResponseSchema(schema.ResponseSchema):
|
|
|
669
669
|
}
|
|
670
670
|
|
|
671
671
|
|
|
672
|
+
"""
|
|
673
|
+
API: ListUMInferAPIKeyV2
|
|
674
|
+
|
|
675
|
+
获取modelverse apikey,密钥掩码返回
|
|
676
|
+
"""
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
class ListUMInferAPIKeyV2RequestSchema(schema.RequestSchema):
|
|
680
|
+
"""ListUMInferAPIKeyV2 - 获取modelverse apikey,密钥掩码返回"""
|
|
681
|
+
|
|
682
|
+
fields = {
|
|
683
|
+
"AllStatus": fields.Int(required=False, dump_to="AllStatus"),
|
|
684
|
+
"KeyId": fields.Str(required=False, dump_to="KeyId"),
|
|
685
|
+
"Limit": fields.Int(required=False, dump_to="Limit"),
|
|
686
|
+
"Offset": fields.Str(required=False, dump_to="Offset"),
|
|
687
|
+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
|
|
688
|
+
"Region": fields.Str(required=True, dump_to="Region"),
|
|
689
|
+
"SandBoxDisabled": fields.Str(
|
|
690
|
+
required=False, dump_to="SandBoxDisabled"
|
|
691
|
+
),
|
|
692
|
+
"SortByCreateTimeAsc": fields.Bool(
|
|
693
|
+
required=False, dump_to="SortByCreateTimeAsc"
|
|
694
|
+
),
|
|
695
|
+
"SortByUpdateTimeAsc": fields.Bool(
|
|
696
|
+
required=False, dump_to="SortByUpdateTimeAsc"
|
|
697
|
+
),
|
|
698
|
+
"Zone": fields.Str(required=True, dump_to="Zone"),
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
class ListUMInferAPIKeyV2ResponseSchema(schema.ResponseSchema):
|
|
703
|
+
"""ListUMInferAPIKeyV2 - 获取modelverse apikey,密钥掩码返回"""
|
|
704
|
+
|
|
705
|
+
fields = {
|
|
706
|
+
"Data": fields.List(
|
|
707
|
+
models.APIKeySchema(), required=False, load_from="Data"
|
|
708
|
+
),
|
|
709
|
+
"Timestamp": fields.Int(required=False, load_from="Timestamp"),
|
|
710
|
+
"TotalCount": fields.Int(required=False, load_from="TotalCount"),
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
|
|
672
714
|
"""
|
|
673
715
|
API: ListUMInferRequestLogs
|
|
674
716
|
|
|
@@ -15,14 +15,21 @@ class APIKeySchema(schema.ResponseSchema):
|
|
|
15
15
|
"DailyUsedAmount": fields.Str(
|
|
16
16
|
required=False, load_from="DailyUsedAmount"
|
|
17
17
|
),
|
|
18
|
+
"DeniedModels": fields.List(fields.Str()),
|
|
18
19
|
"ExpireTime": fields.Int(required=False, load_from="ExpireTime"),
|
|
19
20
|
"GrantAllModels": fields.Bool(
|
|
20
21
|
required=False, load_from="GrantAllModels"
|
|
21
22
|
),
|
|
22
23
|
"GrantedModels": fields.List(fields.Str()),
|
|
23
24
|
"IPWhitelist": fields.Str(required=True, load_from="IPWhitelist"),
|
|
25
|
+
"InferenceLogEnabled": fields.Int(
|
|
26
|
+
required=True, load_from="InferenceLogEnabled"
|
|
27
|
+
),
|
|
24
28
|
"Key": fields.Str(required=False, load_from="Key"),
|
|
25
29
|
"KeyId": fields.Str(required=False, load_from="KeyId"),
|
|
30
|
+
"ModelAccessMode": fields.Str(
|
|
31
|
+
required=False, load_from="ModelAccessMode"
|
|
32
|
+
),
|
|
26
33
|
"ModelverseDisabled": fields.Int(
|
|
27
34
|
required=False, load_from="ModelverseDisabled"
|
|
28
35
|
),
|
|
@@ -56,21 +63,21 @@ class DownloadFileDataSchema(schema.ResponseSchema):
|
|
|
56
63
|
}
|
|
57
64
|
|
|
58
65
|
|
|
59
|
-
class
|
|
60
|
-
"""
|
|
66
|
+
class FilterOptionStringSchema(schema.ResponseSchema):
|
|
67
|
+
"""FilterOptionString - 字符串类型筛选选项"""
|
|
61
68
|
|
|
62
69
|
fields = {
|
|
63
70
|
"Name": fields.Str(required=False, load_from="Name"),
|
|
64
|
-
"Value": fields.
|
|
71
|
+
"Value": fields.Str(required=False, load_from="Value"),
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
|
|
68
|
-
class
|
|
69
|
-
"""
|
|
75
|
+
class FilterOptionIntegerSchema(schema.ResponseSchema):
|
|
76
|
+
"""FilterOptionInteger - 整数类型筛选选项"""
|
|
70
77
|
|
|
71
78
|
fields = {
|
|
72
79
|
"Name": fields.Str(required=False, load_from="Name"),
|
|
73
|
-
"Value": fields.
|
|
80
|
+
"Value": fields.Int(required=False, load_from="Value"),
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
|
|
@@ -90,6 +97,19 @@ class ModelTypeMapSchema(schema.ResponseSchema):
|
|
|
90
97
|
}
|
|
91
98
|
|
|
92
99
|
|
|
100
|
+
class InferenceRegionInfoSchema(schema.ResponseSchema):
|
|
101
|
+
"""InferenceRegionInfo - 地域推理模型信息"""
|
|
102
|
+
|
|
103
|
+
fields = {
|
|
104
|
+
"ModelId": fields.Str(required=False, load_from="ModelId"),
|
|
105
|
+
"RegionCode": fields.Str(required=False, load_from="RegionCode"),
|
|
106
|
+
"RegionName": fields.Str(required=False, load_from="RegionName"),
|
|
107
|
+
"RegionNameEn": fields.Str(required=False, load_from="RegionNameEn"),
|
|
108
|
+
"SquareModelId": fields.Str(required=False, load_from="SquareModelId"),
|
|
109
|
+
"Status": fields.Str(required=False, load_from="Status"),
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
|
|
93
113
|
class PricingSchema(schema.ResponseSchema):
|
|
94
114
|
"""Pricing - 定价策略"""
|
|
95
115
|
|
|
@@ -104,24 +124,6 @@ class PricingSchema(schema.ResponseSchema):
|
|
|
104
124
|
}
|
|
105
125
|
|
|
106
126
|
|
|
107
|
-
class PriceRateSchema(schema.ResponseSchema):
|
|
108
|
-
"""PriceRate - 该档位下的收费列表(有序数组)"""
|
|
109
|
-
|
|
110
|
-
fields = {
|
|
111
|
-
"ChargeItem": fields.Str(required=False, load_from="ChargeItem"),
|
|
112
|
-
"ChargeItemDescription": fields.Str(
|
|
113
|
-
required=False, load_from="ChargeItemDescription"
|
|
114
|
-
),
|
|
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"),
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
127
|
class ModelCapabilitiesSchema(schema.ResponseSchema):
|
|
126
128
|
"""ModelCapabilities - ModelCapabilities"""
|
|
127
129
|
|
|
@@ -156,16 +158,21 @@ class ApiProtocolsSchema(schema.ResponseSchema):
|
|
|
156
158
|
}
|
|
157
159
|
|
|
158
160
|
|
|
159
|
-
class
|
|
160
|
-
"""
|
|
161
|
+
class PriceRateSchema(schema.ResponseSchema):
|
|
162
|
+
"""PriceRate - 该档位下的收费列表(有序数组)"""
|
|
161
163
|
|
|
162
164
|
fields = {
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
"
|
|
168
|
-
|
|
165
|
+
"ChargeItem": fields.Str(required=False, load_from="ChargeItem"),
|
|
166
|
+
"ChargeItemDescription": fields.Str(
|
|
167
|
+
required=False, load_from="ChargeItemDescription"
|
|
168
|
+
),
|
|
169
|
+
"ChargeItemDescriptionEn": fields.Str(
|
|
170
|
+
required=True, load_from="ChargeItemDescriptionEn"
|
|
171
|
+
),
|
|
172
|
+
"Currency": fields.Str(required=True, load_from="Currency"),
|
|
173
|
+
"Price": fields.Str(required=False, load_from="Price"),
|
|
174
|
+
"Unit": fields.Str(required=True, load_from="Unit"),
|
|
175
|
+
"UnitEn": fields.Str(required=True, load_from="UnitEn"),
|
|
169
176
|
}
|
|
170
177
|
|
|
171
178
|
|
ucloud/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "0.11.
|
|
1
|
+
version = "0.11.149"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ucloud-sdk-python3
|
|
3
|
-
Version: 0.11.
|
|
3
|
+
Version: 0.11.149
|
|
4
4
|
Summary: UCloud Service Development Kit - Python
|
|
5
5
|
Home-page: https://github.com/ucloud/ucloud-sdk-python3
|
|
6
6
|
Author: ucloud
|
|
@@ -22,19 +22,19 @@ Description-Content-Type: text/markdown
|
|
|
22
22
|
License-File: LICENSE
|
|
23
23
|
Requires-Dist: requests
|
|
24
24
|
Provides-Extra: ci
|
|
25
|
+
Requires-Dist: requests-mock; extra == "ci"
|
|
26
|
+
Requires-Dist: sphinx; extra == "ci"
|
|
27
|
+
Requires-Dist: requests; extra == "ci"
|
|
25
28
|
Requires-Dist: pytest-cov; extra == "ci"
|
|
26
29
|
Requires-Dist: flake8>=3.6.0; extra == "ci"
|
|
27
|
-
Requires-Dist: sphinx; extra == "ci"
|
|
28
|
-
Requires-Dist: requests-mock; extra == "ci"
|
|
29
30
|
Requires-Dist: pytest>=4.6; extra == "ci"
|
|
30
|
-
Requires-Dist: requests; extra == "ci"
|
|
31
31
|
Provides-Extra: dev
|
|
32
|
-
Requires-Dist: pytest-cov; extra == "dev"
|
|
33
|
-
Requires-Dist: flake8>=3.6.0; extra == "dev"
|
|
34
|
-
Requires-Dist: sphinx; extra == "dev"
|
|
35
32
|
Requires-Dist: requests-mock; extra == "dev"
|
|
33
|
+
Requires-Dist: sphinx; extra == "dev"
|
|
36
34
|
Requires-Dist: pytest>=4.6; extra == "dev"
|
|
35
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
37
36
|
Requires-Dist: black; extra == "dev"
|
|
37
|
+
Requires-Dist: flake8>=3.6.0; extra == "dev"
|
|
38
38
|
Requires-Dist: requests; extra == "dev"
|
|
39
39
|
Provides-Extra: doc
|
|
40
40
|
Requires-Dist: requests; extra == "doc"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
ucloud/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
ucloud/client.py,sha256=-BJGM-ulXMVFaj_-fHQkZlB5tu7f3bpZPxpUqFDuii8,14782
|
|
3
|
-
ucloud/version.py,sha256=
|
|
3
|
+
ucloud/version.py,sha256=SBfjPmmfQlC5nRJidHoH-OEX_0W3D7aekazUbsebDOc,21
|
|
4
4
|
ucloud/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
ucloud/core/auth/__init__.py,sha256=yO69G6m3hTfWQZzqFmZJEe0-JXw6JKTHTDJu7goX_QU,71
|
|
6
6
|
ucloud/core/auth/_cfg.py,sha256=7Zsv7bKxJ6NtxeR_VE9jldLh-iIy0ERvkr2AuvLESZY,2115
|
|
@@ -108,10 +108,10 @@ ucloud/services/uads/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
|
|
|
108
108
|
ucloud/services/uads/schemas/apis.py,sha256=Uyety2W0wHk4WGyri2zNUPY_rOfd5XhaOnBw2cvGoFs,29043
|
|
109
109
|
ucloud/services/uads/schemas/models.py,sha256=W6rqAJ8Xp_ltV4EQz5Nkb2BP9mO9K2wSVyad6PxDy0A,7707
|
|
110
110
|
ucloud/services/uai_modelverse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
111
|
-
ucloud/services/uai_modelverse/client.py,sha256=
|
|
111
|
+
ucloud/services/uai_modelverse/client.py,sha256=alYd72bIhMqBbpQujwZKZU6A0fOshz4jj96C1KQHY4E,60801
|
|
112
112
|
ucloud/services/uai_modelverse/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
113
|
-
ucloud/services/uai_modelverse/schemas/apis.py,sha256=
|
|
114
|
-
ucloud/services/uai_modelverse/schemas/models.py,sha256=
|
|
113
|
+
ucloud/services/uai_modelverse/schemas/apis.py,sha256=CZVBIHLRg1Lg7IYEB3LmMfnd3vEXin1OWxWRvtmRif8,29813
|
|
114
|
+
ucloud/services/uai_modelverse/schemas/models.py,sha256=QQB_n21axm7ovRhFr0UJpp7SMd5Abbl-5GneMrbxo-k,24049
|
|
115
115
|
ucloud/services/uas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
116
116
|
ucloud/services/uas/client.py,sha256=Mv7k0nmFhd083h_hbSt-hAVVAY9mlqam1fv4bVQew4k,2704
|
|
117
117
|
ucloud/services/uas/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -343,8 +343,8 @@ ucloud/testing/driver/__init__.py,sha256=54MLBVRxmiRLl0NLnP5dBi7abADTzWT3hJTgWxD
|
|
|
343
343
|
ucloud/testing/driver/_scenario.py,sha256=9L8TTuPRTRIAowNT9fe8lX-dx3QHPxVuVXlBRkKJs-Y,2585
|
|
344
344
|
ucloud/testing/driver/_specification.py,sha256=FaKgkqsZJej7cTPp6-YjbNotR13mUZvRJlsnxxhUCMs,1726
|
|
345
345
|
ucloud/testing/driver/_step.py,sha256=rK9PN4Hu20eD4ol7jV8KAIqfdwTXKEj9nJoXd_tzHpE,5443
|
|
346
|
-
ucloud_sdk_python3-0.11.
|
|
347
|
-
ucloud_sdk_python3-0.11.
|
|
348
|
-
ucloud_sdk_python3-0.11.
|
|
349
|
-
ucloud_sdk_python3-0.11.
|
|
350
|
-
ucloud_sdk_python3-0.11.
|
|
346
|
+
ucloud_sdk_python3-0.11.149.dist-info/LICENSE,sha256=Pd-b5cKP4n2tFDpdx27qJSIq0d1ok0oEcGTlbtL6QMU,11560
|
|
347
|
+
ucloud_sdk_python3-0.11.149.dist-info/METADATA,sha256=MG2UuM9cruHM6EU75KJQsHJoWLHKb6RMSeLu35oYuaE,2876
|
|
348
|
+
ucloud_sdk_python3-0.11.149.dist-info/WHEEL,sha256=BNRMDyzLkkcmlv0J8ppDQkk2VED33SesJDynr9ED1gc,91
|
|
349
|
+
ucloud_sdk_python3-0.11.149.dist-info/top_level.txt,sha256=zDw9C3GldC2mbAz2YzUcVbMsPS4MYmWmXnGeYcoIeJI,7
|
|
350
|
+
ucloud_sdk_python3-0.11.149.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{ucloud_sdk_python3-0.11.148.dist-info → ucloud_sdk_python3-0.11.149.dist-info}/top_level.txt
RENAMED
|
File without changes
|