Skip to content

Commit

Permalink
update to v2.12.0 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Sczlog committed Oct 19, 2023
1 parent c7ddf6d commit 1b850bf
Show file tree
Hide file tree
Showing 74 changed files with 15,783 additions and 537 deletions.
34 changes: 34 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ cloudtower/api/everoute_license_api.py
cloudtower/api/everoute_package_api.py
cloudtower/api/global_alert_rule_api.py
cloudtower/api/global_settings_api.py
cloudtower/api/gpu_device_api.py
cloudtower/api/graph_api.py
cloudtower/api/host_api.py
cloudtower/api/ipmi_api.py
Expand Down Expand Up @@ -369,6 +370,7 @@ cloudtower/models/entity_filter_updation_params_data.py
cloudtower/models/entity_filter_where_input.py
cloudtower/models/entity_type.py
cloudtower/models/error_body.py
cloudtower/models/error_code.py
cloudtower/models/everoute_cluster.py
cloudtower/models/everoute_cluster_connection.py
cloudtower/models/everoute_cluster_order_by_input.py
Expand Down Expand Up @@ -453,6 +455,8 @@ cloudtower/models/get_global_alert_rules_connection_request_body.py
cloudtower/models/get_global_alert_rules_request_body.py
cloudtower/models/get_global_settingses_connection_request_body.py
cloudtower/models/get_global_settingses_request_body.py
cloudtower/models/get_gpu_devices_connection_request_body.py
cloudtower/models/get_gpu_devices_request_body.py
cloudtower/models/get_graphs_connection_request_body.py
cloudtower/models/get_graphs_request_body.py
cloudtower/models/get_host_metric_input.py
Expand Down Expand Up @@ -598,6 +602,18 @@ cloudtower/models/global_settings.py
cloudtower/models/global_settings_connection.py
cloudtower/models/global_settings_order_by_input.py
cloudtower/models/global_settings_where_input.py
cloudtower/models/gpu_device.py
cloudtower/models/gpu_device_connection.py
cloudtower/models/gpu_device_description_updation_params.py
cloudtower/models/gpu_device_description_updation_params_data.py
cloudtower/models/gpu_device_order_by_input.py
cloudtower/models/gpu_device_sriov_switch_params.py
cloudtower/models/gpu_device_sriov_switch_params_data.py
cloudtower/models/gpu_device_status.py
cloudtower/models/gpu_device_usage.py
cloudtower/models/gpu_device_usage_updation_params.py
cloudtower/models/gpu_device_usage_updation_params_data.py
cloudtower/models/gpu_device_where_input.py
cloudtower/models/graph.py
cloudtower/models/graph_connection.py
cloudtower/models/graph_creation_params.py
Expand Down Expand Up @@ -625,6 +641,7 @@ cloudtower/models/hypervisor.py
cloudtower/models/import_vm_volume_params.py
cloudtower/models/install_vmtools_params.py
cloudtower/models/install_vmtools_params_data.py
cloudtower/models/iommu_status.py
cloudtower/models/ip_security_policy.py
cloudtower/models/ipmi.py
cloudtower/models/ipmi_order_by_input.py
Expand Down Expand Up @@ -695,6 +712,7 @@ cloudtower/models/log_service_config.py
cloudtower/models/log_service_configs_input.py
cloudtower/models/login_input.py
cloudtower/models/login_response.py
cloudtower/models/maintenance_mode_enum.py
cloudtower/models/management_vlan_updation_params.py
cloudtower/models/management_vlan_updation_params_data.py
cloudtower/models/meta_leader.py
Expand Down Expand Up @@ -749,6 +767,7 @@ cloudtower/models/nested_aggregate_everoute_license.py
cloudtower/models/nested_aggregate_everoute_package.py
cloudtower/models/nested_aggregate_global_alert_rule.py
cloudtower/models/nested_aggregate_global_settings.py
cloudtower/models/nested_aggregate_gpu_device.py
cloudtower/models/nested_aggregate_graph.py
cloudtower/models/nested_aggregate_host.py
cloudtower/models/nested_aggregate_iscsi_connection.py
Expand Down Expand Up @@ -849,6 +868,8 @@ cloudtower/models/nested_frozen_disks.py
cloudtower/models/nested_frozen_nic.py
cloudtower/models/nested_frozen_vlan.py
cloudtower/models/nested_global_alert_rule.py
cloudtower/models/nested_gpu_device.py
cloudtower/models/nested_gpu_driver_info.py
cloudtower/models/nested_graph.py
cloudtower/models/nested_host.py
cloudtower/models/nested_initiator_chap.py
Expand All @@ -860,6 +881,7 @@ cloudtower/models/nested_isolation_policy.py
cloudtower/models/nested_label.py
cloudtower/models/nested_label_group.py
cloudtower/models/nested_license.py
cloudtower/models/nested_maintenance_host_state.py
cloudtower/models/nested_metro_availability_checklist.py
cloudtower/models/nested_metro_check_item.py
cloudtower/models/nested_metro_check_result.py
Expand Down Expand Up @@ -902,6 +924,7 @@ cloudtower/models/nested_user.py
cloudtower/models/nested_user_role_next.py
cloudtower/models/nested_vcenter_account.py
cloudtower/models/nested_vds.py
cloudtower/models/nested_vgpu_type.py
cloudtower/models/nested_view.py
cloudtower/models/nested_vlan.py
cloudtower/models/nested_vm.py
Expand All @@ -914,6 +937,7 @@ cloudtower/models/nested_vm_recycle_bin.py
cloudtower/models/nested_vm_snapshot.py
cloudtower/models/nested_vm_template.py
cloudtower/models/nested_vm_volume.py
cloudtower/models/nested_vm_volume_snapshot.py
cloudtower/models/nested_vsphere_esxi_account.py
cloudtower/models/nested_witness.py
cloudtower/models/nested_zone.py
Expand All @@ -940,6 +964,7 @@ cloudtower/models/nic_driver_state.py
cloudtower/models/nic_order_by_input.py
cloudtower/models/nic_updation_params.py
cloudtower/models/nic_updation_params_data.py
cloudtower/models/nic_user_usage.py
cloudtower/models/nic_where_input.py
cloudtower/models/node_top_updation_param.py
cloudtower/models/node_topo.py
Expand Down Expand Up @@ -1220,6 +1245,7 @@ cloudtower/models/vm_add_disk_params_data.py
cloudtower/models/vm_add_disk_params_data_vm_disks.py
cloudtower/models/vm_add_folder_params.py
cloudtower/models/vm_add_folder_params_data.py
cloudtower/models/vm_add_gpu_device_params.py
cloudtower/models/vm_add_nic_params.py
cloudtower/models/vm_add_nic_params_data.py
cloudtower/models/vm_cd_rom_params.py
Expand Down Expand Up @@ -1265,6 +1291,7 @@ cloudtower/models/vm_folder_order_by_input.py
cloudtower/models/vm_folder_updation_params.py
cloudtower/models/vm_folder_updation_params_data.py
cloudtower/models/vm_folder_where_input.py
cloudtower/models/vm_gpu_operation_params.py
cloudtower/models/vm_guests_operation_system.py
cloudtower/models/vm_import_nic_params.py
cloudtower/models/vm_import_params.py
Expand All @@ -1280,6 +1307,8 @@ cloudtower/models/vm_nic_qos_option.py
cloudtower/models/vm_nic_qos_traffic.py
cloudtower/models/vm_nic_where_input.py
cloudtower/models/vm_operate_params.py
cloudtower/models/vm_operate_pci_nic_params.py
cloudtower/models/vm_operate_pci_nic_params_data.py
cloudtower/models/vm_order_by_input.py
cloudtower/models/vm_placement_group.py
cloudtower/models/vm_placement_group_connection.py
Expand All @@ -1294,6 +1323,9 @@ cloudtower/models/vm_remove_cd_rom_params.py
cloudtower/models/vm_remove_cd_rom_params_data.py
cloudtower/models/vm_remove_disk_params.py
cloudtower/models/vm_remove_disk_params_data.py
cloudtower/models/vm_remove_gpu_device_params.py
cloudtower/models/vm_remove_nic_by_where_params.py
cloudtower/models/vm_remove_nic_by_where_params_effect.py
cloudtower/models/vm_remove_nic_params.py
cloudtower/models/vm_remove_nic_params_data.py
cloudtower/models/vm_reset_guest_os_password_params.py
Expand Down Expand Up @@ -1352,6 +1384,7 @@ cloudtower/models/vm_volume.py
cloudtower/models/vm_volume_connection.py
cloudtower/models/vm_volume_creation_params.py
cloudtower/models/vm_volume_deletion_params.py
cloudtower/models/vm_volume_deletion_params_effect.py
cloudtower/models/vm_volume_elf_storage_policy_type.py
cloudtower/models/vm_volume_export_file_type.py
cloudtower/models/vm_volume_order_by_input.py
Expand Down Expand Up @@ -1434,6 +1467,7 @@ cloudtower/models/with_task_elf_image.py
cloudtower/models/with_task_entity_filter.py
cloudtower/models/with_task_global_alert_rule.py
cloudtower/models/with_task_global_settings.py
cloudtower/models/with_task_gpu_device.py
cloudtower/models/with_task_graph.py
cloudtower/models/with_task_host.py
cloudtower/models/with_task_iscsi_lun.py
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ Python 环境下的 Cloudtower SDK,适用于 2.7 与 3.4 以上版本。
- ### whl

```shell
pip install cloudtower_sdk-2.11.1-py2.py3-none-any.whl
pip install cloudtower_sdk-2.12.0-py2.py3-none-any.whl
```

- ### tar.gz

```shell
tar xvzf cloudtower-sdk-2.11.1.tar.gz
cd cloudtower-sdk-2.11.1
tar xvzf cloudtower-sdk-2.12.0.tar.gz
cd cloudtower-sdk-2.12.0
python setup.py install
```

Expand Down
30 changes: 30 additions & 0 deletions RELEASENOTE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# RELEASE NOTE

## release 日期 2023-10-19

v2.12.0 release (tower version 3.3.0)

### update

- [GpuDeviceApi] 新增 GPU 设备的支持,新增以下 API:
- [get_gpu_devices] 获取 GPU 设备列表
- [get_gpuDevice_connections] 获取 GPU 设备数量
- [switch_gpu_device_sriov] 切换 GPU 设备 sr-iov 开启
- [update_gpu_device_description] 更新 GPU 设备描述
- [update_gpu_device_usage] 更新 GPU 设备用途
- [VmApi] 新增 GPU 设备支持:
- 支持创建虚拟机,克隆虚拟机,从内容库模板创建虚拟机时额外配置 GPU 设备,需要指定主机
- 新增 [add_vm_gpu_device] 为已有虚拟机挂载 GPU 设备
- 新增 [remove_vm_gpu_device] 为已有虚拟机卸载 GPU 设备
- [VmApi] 新增 PCI 网卡支持:
- 支持创建虚拟机,克隆虚拟机,从内容库模板创建虚拟机时额外配置 PCI 网卡,需要指定主机
- 新增 [add_vm_pci_nic] 支持为已有虚拟机挂载 PCI 网卡
- 新增 [remove_vm_pci_nic] 支持为已有的虚拟机卸载 PCI 网卡
- [VmApi] 优化卸载网卡:
- [remove_vm_nic] `nic_index` 作为删除标记不够稳定,弃用
- [remove_vm_nic_by_where] 新方法,支持使用 where 条件来筛选需要的网卡,对于 VmNic 而言,可以配合使用 vm + mac_address 的筛选, `{vm:<vm_where>, mac_address:<mac_address>}` 的形式来较为稳定的筛选出需要的 VmNic
- [NicApi] [update_nic] 支持通过 `nic_user_usage` 更新网口用途
- [LabelApi] 支持为 GPU 设备打标签

### bugfix

- 去除 python2.7 不兼容的内容

v2.11.1 release (tower version 3.2.0)

- bugfix: 修复 `utils.login` LDAP 登陆失败的问题
Expand Down
Loading

0 comments on commit 1b850bf

Please sign in to comment.