yicloud-sdk-python 0.5.0__tar.gz → 0.5.2__tar.gz

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.
Files changed (97) hide show
  1. {yicloud_sdk_python-0.5.0/yicloud_sdk_python.egg-info → yicloud_sdk_python-0.5.2}/PKG-INFO +1 -1
  2. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/pyproject.toml +1 -1
  3. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/version.py +1 -1
  4. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/__init__.py +1 -1
  5. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/fs/__init__.py +1 -0
  6. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/fs/models.py +8 -0
  7. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/job/__init__.py +5 -0
  8. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/job/actions.py +34 -0
  9. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/job/models.py +17 -0
  10. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/mc/__init__.py +71 -0
  11. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/mc/actions.py +450 -0
  12. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/mc/models.py +366 -2
  13. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/modelrepo/models.py +8 -1
  14. yicloud_sdk_python-0.5.2/yicloud/services/monitor/__init__.py +23 -0
  15. yicloud_sdk_python-0.5.2/yicloud/services/monitor/actions.py +70 -0
  16. yicloud_sdk_python-0.5.2/yicloud/services/monitor/client.py +21 -0
  17. yicloud_sdk_python-0.5.2/yicloud/services/monitor/models.py +52 -0
  18. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/oss/__init__.py +1 -0
  19. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/oss/models.py +9 -0
  20. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/workspace/models.py +1 -0
  21. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2/yicloud_sdk_python.egg-info}/PKG-INFO +1 -1
  22. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud_sdk_python.egg-info/SOURCES.txt +4 -0
  23. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/LICENSE +0 -0
  24. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/README.md +0 -0
  25. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/setup.cfg +0 -0
  26. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/__init__.py +0 -0
  27. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/auth/__init__.py +0 -0
  28. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/auth/credential.py +0 -0
  29. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/auth/sign.py +0 -0
  30. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/client.py +0 -0
  31. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/config.py +0 -0
  32. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/errs/__init__.py +0 -0
  33. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/log/__init__.py +0 -0
  34. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/log/logger.py +0 -0
  35. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/log/std.py +0 -0
  36. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/msgs/__init__.py +0 -0
  37. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/utils/__init__.py +0 -0
  38. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/utils/helps.py +0 -0
  39. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/utils/retry/__init__.py +0 -0
  40. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/base/utils/retry/retry.py +0 -0
  41. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/__init__.py +0 -0
  42. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/bc/__init__.py +0 -0
  43. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/bc/actions.py +0 -0
  44. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/bc/client.py +0 -0
  45. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/bc/models.py +0 -0
  46. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/dataset/__init__.py +0 -0
  47. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/dataset/actions.py +0 -0
  48. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/dataset/client.py +0 -0
  49. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/dataset/models.py +0 -0
  50. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/fs/actions.py +0 -0
  51. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/fs/client.py +0 -0
  52. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/iam/__init__.py +0 -0
  53. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/iam/actions.py +0 -0
  54. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/iam/client.py +0 -0
  55. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/iam/models.py +0 -0
  56. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/inferset/__init__.py +0 -0
  57. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/inferset/actions.py +0 -0
  58. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/inferset/client.py +0 -0
  59. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/inferset/models.py +0 -0
  60. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/job/client.py +0 -0
  61. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/mc/client.py +0 -0
  62. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/modelrepo/__init__.py +0 -0
  63. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/modelrepo/actions.py +0 -0
  64. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/modelrepo/client.py +0 -0
  65. {yicloud_sdk_python-0.5.0/yicloud/services/monitor → yicloud_sdk_python-0.5.2/yicloud/services/monitor/v1alpha1}/__init__.py +0 -0
  66. {yicloud_sdk_python-0.5.0/yicloud/services/monitor → yicloud_sdk_python-0.5.2/yicloud/services/monitor/v1alpha1}/actions.py +0 -0
  67. {yicloud_sdk_python-0.5.0/yicloud/services/monitor → yicloud_sdk_python-0.5.2/yicloud/services/monitor/v1alpha1}/client.py +0 -0
  68. {yicloud_sdk_python-0.5.0/yicloud/services/monitor → yicloud_sdk_python-0.5.2/yicloud/services/monitor/v1alpha1}/models.py +0 -0
  69. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/oss/actions.py +0 -0
  70. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/oss/client.py +0 -0
  71. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/ray/__init__.py +0 -0
  72. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/ray/actions.py +0 -0
  73. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/ray/client.py +0 -0
  74. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/ray/models.py +0 -0
  75. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/registry/__init__.py +0 -0
  76. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/registry/actions.py +0 -0
  77. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/registry/client.py +0 -0
  78. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/registry/models.py +0 -0
  79. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/sandbox/__init__.py +0 -0
  80. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/sandbox/actions.py +0 -0
  81. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/sandbox/client.py +0 -0
  82. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/sandbox/models.py +0 -0
  83. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/service/__init__.py +0 -0
  84. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/service/actions.py +0 -0
  85. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/service/client.py +0 -0
  86. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/service/models.py +0 -0
  87. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/volume/__init__.py +0 -0
  88. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/volume/actions.py +0 -0
  89. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/volume/client.py +0 -0
  90. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/volume/models.py +0 -0
  91. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/workspace/__init__.py +0 -0
  92. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/workspace/actions.py +0 -0
  93. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud/services/workspace/client.py +0 -0
  94. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud_sdk_python.egg-info/dependency_links.txt +0 -0
  95. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud_sdk_python.egg-info/not-zip-safe +0 -0
  96. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud_sdk_python.egg-info/requires.txt +0 -0
  97. {yicloud_sdk_python-0.5.0 → yicloud_sdk_python-0.5.2}/yicloud_sdk_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yicloud-sdk-python
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: YiCloud OpenAPI SDK for Python
5
5
  Author: YiCloud
6
6
  Project-URL: Homepage, https://gitee.com/yicloud-team/openapi-sdk-python
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "yicloud-sdk-python"
7
- version = "0.5.0"
7
+ version = "0.5.2"
8
8
  description = "YiCloud OpenAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.7"
@@ -1,4 +1,4 @@
1
- __version__ = "0.5.0"
1
+ __version__ = "0.5.2"
2
2
 
3
3
 
4
4
  def Version() -> str:
@@ -4,4 +4,4 @@ YiCloud Python SDK
4
4
  A Python SDK for the YiCloud OpenAPI service.
5
5
  """
6
6
 
7
- __version__ = "0.5.0"
7
+ __version__ = "0.5.2"
@@ -39,6 +39,7 @@ from .models import (
39
39
  GetFileInfoData,
40
40
  GetFilesetData,
41
41
  FilesetItem,
42
+ OwnerTransfer,
42
43
  ListDirData,
43
44
  ListFilesetsWithQuotaInfoData,
44
45
  SetFilesetQuotaReq,
@@ -44,6 +44,7 @@ class BucketResponse:
44
44
  Fs: Optional[str] = "" # 文件系统 json:"Fs,omitempty"
45
45
  FsCluster: Optional[str] = "" # 文件系统集群 json:"FsCluster,omitempty"
46
46
  Owner: Optional[str] = "" # 文件集所有者 json:"Owner,omitempty"
47
+ OwnerTransfer: Optional[List[OwnerTransfer]] = None # 所有权转移记录 json:"OwnerTransfer,omitempty"
47
48
  Permission: Optional[str] = "" # 文件集权限 json:"Permission,omitempty"
48
49
  Size: Optional[str] = "" # 已使用容量(字节) json:"Size,omitempty"
49
50
  State: Optional[str] = "" # 文件集状态 json:"State,omitempty"
@@ -97,6 +98,13 @@ class FilesetItem:
97
98
  BucketResponse: Optional[BucketResponse] = None # 文件集详情 json:"BucketResponse,omitempty"
98
99
  ID: Optional[str] = "" # 文件集ID json:"ID,omitempty"
99
100
 
101
+ @dataclass
102
+ class OwnerTransfer:
103
+ OperateTime: Optional[str] = "" # 操作时间(Unix 时间戳,秒) json:"OperateTime,omitempty"
104
+ Operator: Optional[str] = "" # 操作人 json:"Operator,omitempty"
105
+ Source: Optional[str] = "" # 原所有者 json:"Source,omitempty"
106
+ Target: Optional[str] = "" # 目标所有者 json:"Target,omitempty"
107
+
100
108
  @dataclass
101
109
  class ListDirData:
102
110
  Files: Optional[List[GetFileInfoData]] = None # 文件/目录列表 json:"Files,omitempty"
@@ -12,6 +12,7 @@ from .actions import (
12
12
  edit_job,
13
13
  batch_delete_jobs,
14
14
  batch_stop_jobs,
15
+ batch_stop_self_heal_jobs,
15
16
  stop_job,
16
17
  stop_replica,
17
18
  get_logs,
@@ -26,6 +27,7 @@ from .actions import (
26
27
  edit_job_async,
27
28
  batch_delete_jobs_async,
28
29
  batch_stop_jobs_async,
30
+ batch_stop_self_heal_jobs_async,
29
31
  stop_job_async,
30
32
  stop_replica_async,
31
33
  get_logs_async,
@@ -50,6 +52,8 @@ from .models import (
50
52
  BatchDeleteJobsReq,
51
53
  BatchStopJobsReq,
52
54
  BatchStopJobsData,
55
+ BatchStopSelfHealJobsReq,
56
+ BatchStopSelfHealJobsData,
53
57
  CreateJobReq,
54
58
  CreateJobData,
55
59
  EditJobReq,
@@ -72,6 +76,7 @@ from .models import (
72
76
  GetJobReplicaData,
73
77
  BatchDeleteJobsReqResourceIdentifier,
74
78
  BatchStopJobsReqResourceIdentifier,
79
+ BatchStopSelfHealJobsReqResourceIdentifier,
75
80
  Result,
76
81
  RootfsSourceResponse,
77
82
  S3Config,
@@ -223,6 +223,40 @@ async def batch_stop_jobs_async(ctx: Optional[dict], req: models.BatchStopJobsRe
223
223
  return rsp.get_typed_data()
224
224
 
225
225
 
226
+ def batch_stop_self_heal_jobs(ctx: Optional[dict], req: models.BatchStopSelfHealJobsReq) -> models.BatchStopSelfHealJobsData:
227
+ """批量中止 Job 自愈
228
+ 批量中止指定 Job 列表的自愈(不打断任务本身运行)。
229
+ 服务端为每个 Job 写入 self-health.brainpp.cn/stop 注解;
230
+ 控制器(maintain-ctler)识别后取消待定重拉并清理本轮自愈占位。
231
+ POST /job/v1alpha1/BatchStopSelfHealJobs
232
+ Action: BatchStopSelfHealJobs
233
+
234
+ Returns BatchStopSelfHealJobsData on success.
235
+ Raises YiCloudException on error.
236
+ """
237
+ path = f"/{_PRODUCT_CODE}/{_LAST_VERSION}/BatchStopSelfHealJobs"
238
+ rsp = msgs.Rsp[models.BatchStopSelfHealJobsData]()
239
+ client.base.post(ctx, path, {k: v for k, v in req.__dict__.items() if v is not None}, rsp)
240
+ return rsp.get_typed_data()
241
+
242
+
243
+ async def batch_stop_self_heal_jobs_async(ctx: Optional[dict], req: models.BatchStopSelfHealJobsReq) -> models.BatchStopSelfHealJobsData:
244
+ """批量中止 Job 自愈(异步)
245
+ 批量中止指定 Job 列表的自愈(不打断任务本身运行)。
246
+ 服务端为每个 Job 写入 self-health.brainpp.cn/stop 注解;
247
+ 控制器(maintain-ctler)识别后取消待定重拉并清理本轮自愈占位。
248
+ POST /job/v1alpha1/BatchStopSelfHealJobs
249
+ Action: BatchStopSelfHealJobs
250
+
251
+ Returns BatchStopSelfHealJobsData on success.
252
+ Raises YiCloudException on error.
253
+ """
254
+ path = f"/{_PRODUCT_CODE}/{_LAST_VERSION}/BatchStopSelfHealJobs"
255
+ rsp = msgs.Rsp[models.BatchStopSelfHealJobsData]()
256
+ await client.base.post_async(ctx, path, {k: v for k, v in req.__dict__.items() if v is not None}, rsp)
257
+ return rsp.get_typed_data()
258
+
259
+
226
260
  def stop_job(ctx: Optional[dict], req: models.StopJobReq):
227
261
  """停止 Job
228
262
  停止运行中的 Job
@@ -85,6 +85,17 @@ class BatchStopJobsData:
85
85
  Message: Optional[str] = "" # 操作结果消息 json:"Message,omitempty"
86
86
  Reasons: Optional[Dict[str, str]] = None # 失败原因映射,key 为 Job ID,value 为失败原因 json:"Reasons,omitempty"
87
87
 
88
+ @dataclass
89
+ class BatchStopSelfHealJobsReq:
90
+ Resources: List[BatchStopSelfHealJobsReqResourceIdentifier] # 待中止自愈的 Job 列表 json:"Resources"
91
+ ZoneId: Optional[str] = None # 可用区(AZ),如 cn-shanghai-b;可选,当前服务端暂不处理。RegionId 由网关通过 X-OGW-REGION-ID 头注入,不在 body 中传递 json:"ZoneId,omitempty"
92
+
93
+ @dataclass
94
+ class BatchStopSelfHealJobsData:
95
+ Failed: Optional[List[str]] = None # 中止自愈失败的 Job ID 列表 json:"Failed,omitempty"
96
+ Message: Optional[str] = "" # 操作结果消息 json:"Message,omitempty"
97
+ Reasons: Optional[Dict[str, str]] = None # 失败原因映射,key 为 Job ID,value 为失败原因 json:"Reasons,omitempty"
98
+
88
99
  @dataclass
89
100
  class CreateJobReq:
90
101
  Name: str # Job 显示名称 json:"Name"
@@ -187,6 +198,7 @@ class GetJobData:
187
198
  SelfHealLimitCount: Optional[int] = 0 # 自愈最大重试次数 json:"SelfHealLimitCount,omitempty"
188
199
  SelfHealNotifyWebhook: Optional[str] = "" # 自愈事件通知 Webhook URL json:"SelfHealNotifyWebhook,omitempty"
189
200
  SelfHealRetryScope: Optional[str] = "" # 自愈重试粒度(rjob/task) json:"SelfHealRetryScope,omitempty"
201
+ SelfHealStopRequested: Optional[bool] = False # 是否已点击终止自愈;RJob 的 self-health.brainpp.cn/stop 注解为 true 时返回 true json:"SelfHealStopRequested,omitempty"
190
202
  SelfHealTerminationGracePeriodSeconds: Optional[int] = 0 # 自愈数据回收时间(秒),读取自愈注解 self-health.brainpp.cn/termination-grace-period-seconds;未设置时不返回 json:"SelfHealTerminationGracePeriodSeconds,omitempty"
191
203
  StopTime: Optional[str] = "" # 停止时间(RFC3339 格式) json:"StopTime,omitempty"
192
204
  TaskSpecs: Optional[Dict[str, TaskSpecResponse]] = None # 任务规格映射,key 为任务名(如 t0),value 为任务规格 json:"TaskSpecs,omitempty"
@@ -294,6 +306,11 @@ class BatchStopJobsReqResourceIdentifier:
294
306
  JobId: Optional[str] = None # Job 唯一标识 json:"JobId,omitempty"
295
307
  Project: Optional[str] = None # 项目名称 json:"Project,omitempty"
296
308
 
309
+ @dataclass
310
+ class BatchStopSelfHealJobsReqResourceIdentifier:
311
+ JobId: Optional[str] = None # Job 唯一标识 json:"JobId,omitempty"
312
+ Project: Optional[str] = None # 项目名称 json:"Project,omitempty"
313
+
297
314
  @dataclass
298
315
  class Result:
299
316
  Metric: Optional[Dict[str, str]] = None # 指标标签 json:"Metric,omitempty"
@@ -5,20 +5,25 @@ from . import actions, models
5
5
 
6
6
  # Re-export action functions
7
7
  from .actions import (
8
+ add_resource_pool_machines,
8
9
  assign_nodes,
9
10
  bind_project_user,
10
11
  create_project,
11
12
  create_quota_group,
13
+ create_resource_pool,
12
14
  delete_project,
13
15
  delete_quota_group,
16
+ delete_resource_pool,
14
17
  get_low_priority_usage,
15
18
  get_node_quota,
16
19
  get_project,
17
20
  get_project_quota,
18
21
  get_project_quota_limit,
19
22
  get_quota_group,
23
+ get_resource_pool,
20
24
  list_audit_logs,
21
25
  list_events,
26
+ list_gpu_types,
22
27
  list_node_configuration,
23
28
  list_node_instances,
24
29
  list_nodes,
@@ -27,29 +32,44 @@ from .actions import (
27
32
  list_projects,
28
33
  list_projects_simple,
29
34
  list_projects_with_sku_quotas,
35
+ list_quota_group_resource_pool_shared_nodes,
30
36
  list_quota_groups,
31
37
  list_quota_groups_simple,
32
38
  list_quota_groups_under_tenant,
39
+ list_resource_pool_assignable_nodes,
40
+ list_resource_pool_instances,
41
+ list_resource_pool_names,
42
+ list_resource_pool_nodes,
43
+ list_resource_pools,
33
44
  list_skus,
34
45
  list_zones,
35
46
  operate_node,
36
47
  remove_project_user,
48
+ remove_resource_pool_machines,
49
+ set_resource_pool_gpu_node_limit,
50
+ set_resource_pool_machine_schedulable,
37
51
  update_project,
38
52
  update_quota_group,
53
+ update_resource_pool,
54
+ add_resource_pool_machines_async,
39
55
  assign_nodes_async,
40
56
  bind_project_user_async,
41
57
  create_project_async,
42
58
  create_quota_group_async,
59
+ create_resource_pool_async,
43
60
  delete_project_async,
44
61
  delete_quota_group_async,
62
+ delete_resource_pool_async,
45
63
  get_low_priority_usage_async,
46
64
  get_node_quota_async,
47
65
  get_project_async,
48
66
  get_project_quota_async,
49
67
  get_project_quota_limit_async,
50
68
  get_quota_group_async,
69
+ get_resource_pool_async,
51
70
  list_audit_logs_async,
52
71
  list_events_async,
72
+ list_gpu_types_async,
53
73
  list_node_configuration_async,
54
74
  list_node_instances_async,
55
75
  list_nodes_async,
@@ -58,15 +78,25 @@ from .actions import (
58
78
  list_projects_async,
59
79
  list_projects_simple_async,
60
80
  list_projects_with_sku_quotas_async,
81
+ list_quota_group_resource_pool_shared_nodes_async,
61
82
  list_quota_groups_async,
62
83
  list_quota_groups_simple_async,
63
84
  list_quota_groups_under_tenant_async,
85
+ list_resource_pool_assignable_nodes_async,
86
+ list_resource_pool_instances_async,
87
+ list_resource_pool_names_async,
88
+ list_resource_pool_nodes_async,
89
+ list_resource_pools_async,
64
90
  list_skus_async,
65
91
  list_zones_async,
66
92
  operate_node_async,
67
93
  remove_project_user_async,
94
+ remove_resource_pool_machines_async,
95
+ set_resource_pool_gpu_node_limit_async,
96
+ set_resource_pool_machine_schedulable_async,
68
97
  update_project_async,
69
98
  update_quota_group_async,
99
+ update_resource_pool_async,
70
100
  )
71
101
 
72
102
  # Re-export models
@@ -80,16 +110,22 @@ from .models import (
80
110
  SchedStrategy,
81
111
  UpdateOption,
82
112
  UsageType,
113
+ AddResourcePoolMachinesData,
114
+ AddResourcePoolMachinesReq,
83
115
  AssignNodesReq,
84
116
  AuditLogData,
85
117
  BindProjectUserReq,
86
118
  CpuMemoryLimit,
87
119
  CreateProjectReq,
88
120
  CreateQuotaGroupReq,
121
+ CreateResourcePoolReq,
89
122
  DeleteProjectReq,
123
+ DeleteResourcePoolReq,
90
124
  EventItem,
125
+ GpuTypeDisplayData,
91
126
  ListAuditLogsData,
92
127
  ListEventsData,
128
+ ListGpuTypesData,
93
129
  ListNodeInstancesData,
94
130
  ListNodesData,
95
131
  ListProjectUsersData,
@@ -98,6 +134,9 @@ from .models import (
98
134
  ListProjectsWithSkuQuotasData,
99
135
  ListProjectQuotaGroupsData,
100
136
  ListQuotaGroupsSimpleData,
137
+ ListResourcePoolNamesData,
138
+ ListResourcePoolsData,
139
+ ListResourcePoolInstancesData,
101
140
  ListSKUsData,
102
141
  ListZonesData,
103
142
  GetLowPriorityUsageData,
@@ -108,6 +147,7 @@ from .models import (
108
147
  NodeQuota,
109
148
  GetNodeQuotaData,
110
149
  OperateNodeReq,
150
+ PoolMachineOperationData,
111
151
  GetProjectData,
112
152
  GetProjectQuotaData,
113
153
  ProjectSimpleData,
@@ -125,16 +165,30 @@ from .models import (
125
165
  GetProjectQuotaLimitData,
126
166
  QuotaStatus,
127
167
  RemoveProjectUserReq,
168
+ RemoveResourcePoolMachinesReq,
128
169
  ResourceDetail,
170
+ CreateResourcePoolData,
171
+ ResourcePoolGpuInfoData,
172
+ ResourcePoolMachinesData,
173
+ ResourcePoolMetaDataData,
174
+ ResourcePoolNameData,
175
+ ResourcePoolResourcesConditionData,
176
+ ResourcePoolScopeData,
177
+ ResourcePoolStatusData,
129
178
  SKUData,
179
+ SetResourcePoolGpuNodeLimitReq,
180
+ SetResourcePoolMachineSchedulableReq,
130
181
  SkuQuotaResourceStatus,
131
182
  CreateProjectReqSkuQuotaSpec,
132
183
  UpdateProjectReqSkuQuotaSpec,
133
184
  SkuQuotaStatusItem,
134
185
  SkuQuotaStatusPublic,
135
186
  SkuResourceUsage,
187
+ SubResourceData,
136
188
  UpdateProjectReq,
137
189
  UpdateQuotaGroupReq,
190
+ UpdateResourcePoolReq,
191
+ WorkloadData,
138
192
  ZoneData,
139
193
  DeleteQuotaGroupReq,
140
194
  GetLowPriorityUsageReq,
@@ -143,8 +197,10 @@ from .models import (
143
197
  GetProjectQuotaReq,
144
198
  GetProjectQuotaLimitReq,
145
199
  GetQuotaGroupReq,
200
+ GetResourcePoolReq,
146
201
  ListAuditLogsReq,
147
202
  ListEventsReq,
203
+ ListGpuTypesReq,
148
204
  ListNodeConfigurationReq,
149
205
  ListNodeInstancesReq,
150
206
  ListNodesReq,
@@ -153,11 +209,26 @@ from .models import (
153
209
  ListProjectsReq,
154
210
  ListProjectsSimpleReq,
155
211
  ListProjectsWithSkuQuotasReq,
212
+ ListQuotaGroupResourcePoolSharedNodesReq,
156
213
  ListQuotaGroupsReq,
157
214
  ListQuotaGroupsSimpleReq,
158
215
  ListQuotaGroupsUnderTenantReq,
216
+ ListResourcePoolAssignableNodesReq,
217
+ ListResourcePoolInstancesReq,
218
+ ListResourcePoolNamesReq,
219
+ ListResourcePoolNodesReq,
220
+ ListResourcePoolsReq,
159
221
  ListSKUsReq,
160
222
  ListZonesReq,
223
+ RemoveResourcePoolMachinesData,
224
+ DeleteResourcePoolData,
225
+ GetResourcePoolData,
226
+ SetResourcePoolGpuNodeLimitData,
227
+ SetResourcePoolMachineSchedulableData,
228
+ UpdateResourcePoolData,
229
+ ListQuotaGroupResourcePoolSharedNodesData,
230
+ ListResourcePoolAssignableNodesData,
231
+ ListResourcePoolNodesData,
161
232
  ListQuotaGroupsData,
162
233
  ListQuotaGroupsUnderTenantData,
163
234
  )