Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
136 changes: 68 additions & 68 deletions ucloud/services/ucompshare/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,15 +481,24 @@ def describe_available_comp_share_instance_types(
- **Value** (float) - 值,单位是TFlops


**FeatureModes**
- **MinimalCpuPlatform** (list) - 这个特性必须是列出来的CPU平台及以上的CPU才支持
- **Name** (str) - 模式|特性名称
- **RelatedToImageFeature** (list) - 为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。
**BootDiskInfo**
- **Features** (list) - 磁盘可支持的服务
- **InstantResize** (bool) - 系统盘是否允许扩容,如果是本地盘,则不允许扩容,InstantResize为false。
- **MaximalSize** (int) - MaximalSize为磁盘最大值
- **Name** (str) - 系统盘类别,包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。


**Features**
- **Modes** (list) - 见 **FeatureModes** 模型定义
- **Name** (str) - 可支持的特性名称。目前支持的特性网络增强|NetCapability、热升级|Hotplug
**DataDiskInfo**
- **Features** (list) - 数据盘可支持的服务
- **MaximalSize** (int) - MaximalSize为磁盘最大值
- **MinimalSize** (int) - 磁盘最小值,如果没有该字段,最小值取基础镜像Size值即可(linux为20G,windows为40G)。
- **Name** (str) - 数据盘类别,包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。


**Disks**
- **BootDisk** (list) - 见 **BootDiskInfo** 模型定义
- **DataDisk** (list) - 见 **DataDiskInfo** 模型定义
- **Name** (str) - 磁盘介质类别信息,磁盘主要分类如下:云盘|cloudDisk、普通本地盘|normalLocalDisk和SSD本地盘|ssdLocalDisk。


**GraphicsMemory**
Expand All @@ -514,24 +523,15 @@ def describe_available_comp_share_instance_types(
- **Intel** (list) - 返回Intel的CPU平台信息,例如:Intel: ['Intel/CascadeLake','Intel/CascadelakeR','Intel/IceLake']


**BootDiskInfo**
- **Features** (list) - 磁盘可支持的服务
- **InstantResize** (bool) - 系统盘是否允许扩容,如果是本地盘,则不允许扩容,InstantResize为false。
- **MaximalSize** (int) - MaximalSize为磁盘最大值
- **Name** (str) - 系统盘类别,包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。


**DataDiskInfo**
- **Features** (list) - 数据盘可支持的服务
- **MaximalSize** (int) - MaximalSize为磁盘最大值
- **MinimalSize** (int) - 磁盘最小值,如果没有该字段,最小值取基础镜像Size值即可(linux为20G,windows为40G)。
- **Name** (str) - 数据盘类别,包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。
**FeatureModes**
- **MinimalCpuPlatform** (list) - 这个特性必须是列出来的CPU平台及以上的CPU才支持
- **Name** (str) - 模式|特性名称
- **RelatedToImageFeature** (list) - 为镜像上支持这个特性的标签。例如DescribeImage返回的字段Features包含HotPlug,说明该镜像支持热升级。


**Disks**
- **BootDisk** (list) - 见 **BootDiskInfo** 模型定义
- **DataDisk** (list) - 见 **DataDiskInfo** 模型定义
- **Name** (str) - 磁盘介质类别信息,磁盘主要分类如下:云盘|cloudDisk、普通本地盘|normalLocalDisk和SSD本地盘|ssdLocalDisk。
**Features**
- **Modes** (list) - 见 **FeatureModes** 模型定义
- **Name** (str) - 可支持的特性名称。目前支持的特性网络增强|NetCapability、热升级|Hotplug


**AvailableInstanceTypes**
Expand Down Expand Up @@ -670,18 +670,18 @@ def describe_comp_share_custom_images(

**Response Model**

**Projects**
- **AccountId** (str) - 账号Id
- **AccountName** (str) - 账号昵称


**Software**
- **Applications** (list) - 【array of string】应用列表
- **CUDAVersion** (str) - CUDA版本
- **Framework** (str) - 框架名称
- **FrameworkVersion** (str) - 框架版本


**Projects**
- **AccountId** (str) - 账号Id
- **AccountName** (str) - 账号昵称


**CompShareImage**
- **AuthInfo** (int) - 镜像作者认证信息
- **Author** (str) - 镜像作者昵称
Expand Down Expand Up @@ -838,18 +838,18 @@ def describe_comp_share_images(

**Response Model**

**Projects**
- **AccountId** (str) - 账号Id
- **AccountName** (str) - 账号昵称


**Software**
- **Applications** (list) - 【array of string】应用列表
- **CUDAVersion** (str) - CUDA版本
- **Framework** (str) - 框架名称
- **FrameworkVersion** (str) - 框架版本


**Projects**
- **AccountId** (str) - 账号Id
- **AccountName** (str) - 账号昵称


**CompShareImage**
- **AuthInfo** (int) - 镜像作者认证信息
- **Author** (str) - 镜像作者昵称
Expand Down Expand Up @@ -910,22 +910,15 @@ def describe_comp_share_instance(

**Response Model**

**GpuMonitorInfo**
- **GPU** (str) - GPU卡名称
- **GpuUsageRate** (str) - GPU卡使用率
- **MemoryUsageRate** (str) - GPU显存使用率


**MonitorMessage**
- **CpuUsageRate** (str) - CPU使用率
- **GpuInfo** (list) - 见 **GpuMonitorInfo** 模型定义
- **MemUsageRate** (str) - 内存使用率


**WithoutGpuSpec**
- **Cpu** (int) - cpu
- **Gpu** (int) - gpu
- **Memory** (int) - 内存
**UHostDiskSet**
- **DiskId** (str) - 磁盘ID
- **DiskType** (str) - 磁盘类型。请参考 `磁盘类型 <https://docs.ucloud.cn/api/uhost-api/disk_type>`_ 。
- **Drive** (str) - 磁盘盘符
- **Encrypted** (str) - "true": 加密盘 "false":非加密盘
- **IsBoot** (str) - 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
- **Name** (str) - UDisk名字(仅当磁盘是UDisk时返回)
- **Size** (int) - 磁盘大小,单位: GB
- **Type** (str) - 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk


**UHostIPSet**
Expand All @@ -942,20 +935,10 @@ def describe_comp_share_instance(
- **Weight** (int) - 当前EIP的权重。权重最大的为当前的出口IP。


**UHostDiskSet**
- **DiskId** (str) - 磁盘ID
- **DiskType** (str) - 磁盘类型。请参考 `磁盘类型 <https://docs.ucloud.cn/api/uhost-api/disk_type>`_ 。
- **Drive** (str) - 磁盘盘符
- **Encrypted** (str) - "true": 加密盘 "false":非加密盘
- **IsBoot** (str) - 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
- **Name** (str) - UDisk名字(仅当磁盘是UDisk时返回)
- **Size** (int) - 磁盘大小,单位: GB
- **Type** (str) - 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk


**SoftwareAddr**
- **Name** (str) - 软件名称
- **URL** (str) - 软件地址
**GpuMonitorInfo**
- **GPU** (str) - GPU卡名称
- **GpuUsageRate** (str) - GPU卡使用率
- **MemoryUsageRate** (str) - GPU显存使用率


**DiskPriceInfo**
Expand All @@ -964,11 +947,28 @@ def describe_comp_share_instance(
- **Price** (float) - 磁盘价格


**WithoutGpuSpec**
- **Cpu** (int) - cpu
- **Gpu** (int) - gpu
- **Memory** (int) - 内存


**MonitorMessage**
- **CpuUsageRate** (str) - CPU使用率
- **GpuInfo** (list) - 见 **GpuMonitorInfo** 模型定义
- **MemUsageRate** (str) - 内存使用率


**GraphicsMemory**
- **Rate** (int) - 交互展示参数,可忽略
- **Value** (int) - 值,单位是GB


**SoftwareAddr**
- **Name** (str) - 软件名称
- **URL** (str) - 软件地址


**CompShareInstanceSet**
- **AutoRenew** (str) - 是否自动续费,自动续费:“Yes”,不自动续费:“No”
- **CPU** (int) - 虚拟CPU核数,单位: 个
Expand Down Expand Up @@ -1285,18 +1285,18 @@ def describe_self_community_images(

**Response Model**

**Projects**
- **AccountId** (str) - 账号Id
- **AccountName** (str) - 账号昵称


**Software**
- **Applications** (list) - 【array of string】应用列表
- **CUDAVersion** (str) - CUDA版本
- **Framework** (str) - 框架名称
- **FrameworkVersion** (str) - 框架版本


**Projects**
- **AccountId** (str) - 账号Id
- **AccountName** (str) - 账号昵称


**CompShareImage**
- **AuthInfo** (int) - 镜像作者认证信息
- **Author** (str) - 镜像作者昵称
Expand Down
4 changes: 2 additions & 2 deletions ucloud/services/ucompshare/schemas/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class DeleteCompShareStopSchedulerRequestSchema(schema.RequestSchema):
"""DeleteCompShareStopScheduler - 删除实例定时关机任务"""

fields = {
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
"Region": fields.Str(required=True, dump_to="Region"),
"UHostId": fields.Str(required=True, dump_to="UHostId"),
"Zone": fields.Str(required=False, dump_to="Zone"),
Expand Down Expand Up @@ -2501,7 +2501,7 @@ class UpdateCompShareStopSchedulerRequestSchema(schema.RequestSchema):
"""UpdateCompShareStopScheduler - 更新实例定时关机时间,若不存在则新建此定时任务"""

fields = {
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
"Region": fields.Str(required=True, dump_to="Region"),
"StopTime": fields.Int(required=True, dump_to="StopTime"),
"UHostId": fields.Str(required=True, dump_to="UHostId"),
Expand Down
Loading