Skip to content

Commit

Permalink
update to v2.15.0 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwen.yin authored and Sczlog committed May 11, 2024
1 parent c51df32 commit 071939b
Show file tree
Hide file tree
Showing 116 changed files with 38,449 additions and 609 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ target/

#Ipython Notebook
.ipynb_checkpoints
.pypirc
25 changes: 25 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ cloudtower/models/cluster_virtualization_updation_params_data.py
cloudtower/models/cluster_where_input.py
cloudtower/models/cluster_where_unique_input.py
cloudtower/models/column_config.py
cloudtower/models/common_header.py
cloudtower/models/connect_state.py
cloudtower/models/consistency_group.py
cloudtower/models/consistency_group_connection.py
Expand All @@ -236,6 +237,7 @@ cloudtower/models/consistency_group_updation_params.py
cloudtower/models/consistency_group_updation_params_data.py
cloudtower/models/consistency_group_where_input.py
cloudtower/models/consistent_type.py
cloudtower/models/content_language.py
cloudtower/models/content_library_image.py
cloudtower/models/content_library_image_connection.py
cloudtower/models/content_library_image_deletion_params.py
Expand Down Expand Up @@ -945,6 +947,7 @@ 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_virtual_private_cloud_nic.py
cloudtower/models/nested_vlan.py
cloudtower/models/nested_vm.py
cloudtower/models/nested_vm_disk.py
Expand Down Expand Up @@ -1260,6 +1263,27 @@ cloudtower/models/view_order_by_input.py
cloudtower/models/view_updation_params.py
cloudtower/models/view_updation_params_data.py
cloudtower/models/view_where_input.py
cloudtower/models/virtual_private_cloud_cluster_binding_where_input.py
cloudtower/models/virtual_private_cloud_edge_gateway_where_input.py
cloudtower/models/virtual_private_cloud_external_subnet_where_input.py
cloudtower/models/virtual_private_cloud_floating_ip_where_input.py
cloudtower/models/virtual_private_cloud_isolation_policy_mode.py
cloudtower/models/virtual_private_cloud_isolation_policy_where_input.py
cloudtower/models/virtual_private_cloud_layer2_gateway_where_input.py
cloudtower/models/virtual_private_cloud_nat_gateway_where_input.py
cloudtower/models/virtual_private_cloud_nic_snapshot_where_input.py
cloudtower/models/virtual_private_cloud_nic_where_input.py
cloudtower/models/virtual_private_cloud_peering_where_input.py
cloudtower/models/virtual_private_cloud_route_next_hop_type.py
cloudtower/models/virtual_private_cloud_route_table_where_input.py
cloudtower/models/virtual_private_cloud_route_where_input.py
cloudtower/models/virtual_private_cloud_router_gateway_where_input.py
cloudtower/models/virtual_private_cloud_security_group_where_input.py
cloudtower/models/virtual_private_cloud_security_policy_mode.py
cloudtower/models/virtual_private_cloud_security_policy_where_input.py
cloudtower/models/virtual_private_cloud_service_where_input.py
cloudtower/models/virtual_private_cloud_subnet_where_input.py
cloudtower/models/virtual_private_cloud_where_input.py
cloudtower/models/vlan.py
cloudtower/models/vlan_connection.py
cloudtower/models/vlan_deletion_params.py
Expand Down Expand Up @@ -1337,6 +1361,7 @@ cloudtower/models/vm_nic_order_by_input.py
cloudtower/models/vm_nic_params.py
cloudtower/models/vm_nic_qos_option.py
cloudtower/models/vm_nic_qos_traffic.py
cloudtower/models/vm_nic_type.py
cloudtower/models/vm_nic_where_input.py
cloudtower/models/vm_operate_params.py
cloudtower/models/vm_operate_pci_nic_params.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.14.2-py2.py3-none-any.whl
pip install cloudtower_sdk-2.15.0-py2.py3-none-any.whl
```

- ### tar.gz

```shell
tar xvzf cloudtower-sdk-2.14.2.tar.gz
cd cloudtower-sdk-2.14.2
tar xvzf cloudtower-sdk-2.15.0.tar.gz
cd cloudtower-sdk-2.15.0
python setup.py install
```

Expand Down
24 changes: 21 additions & 3 deletions RELEASENOTE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# RELEASE NOTE

## release 日期 2024-05-11

v2.15.0 release (tower version 4.1.0)

### update

- [CommonHeader]: 新增默认返回 Header 类
- [ContentLanguage]: 新增枚举规范返回语言,用于设置请求头的 `content-language`
- [NestedLabel], [LabelApi]: `LabelApi` 将会返回一致的 `Label` 相关的属性,NestedLabel 额外返回 `key``value`
- [Vm], [VmVolume], [IscsiLun], [NvmfNameSpace], [NfsInode]: 新增返回 `unique_logical_size` 用于表示资源的独占逻辑容量

### bugfix

- [VmApi]
- [add_vm_Nic], [remove_vm_nic], [remove_vm_nic_by_where], [update_vm_nic], [update_vm_nic_basic_info], [update_vm_nic_advance_info], [update_vm_nic_qos_option]: 修复更新虚拟机网卡类 API 编辑后丢失部分网卡信息的问题
- [VmPlacementGroupApi]
- [create_vm_placement_group], [update_vm_placement_group]: 修复了创建与更新放置组时,`vm_vm_policy_enabled` 为 false 时无法更新组内虚拟机成员

## release 日期 2024-01-09

v2.14.2 release (tower version 4.0.0)
Expand Down Expand Up @@ -88,7 +106,7 @@ v2.12.0 release (tower version 3.3.0)
- 新增 [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
- [remove_vm_nic_by_where] 新方法,支持使用 where 条件来筛选需要的网卡,对于 \_vm_nic 而言,可以配合使用 vm + mac_address 的筛选, `{vm:<vm_where>, mac_address:<mac_address>}` 的形式来较为稳定的筛选出需要的 \_vm_nic
- [NicApi] [update_nic] 支持通过 `nic_user_usage` 更新网口用途
- [LabelApi] 支持为 GPU 设备打标签

Expand All @@ -106,14 +124,14 @@ v2.11.0 release (tower version 3.2.0)

### breaking change

- [VmApi] [VmImportParams]: 由于 `VmNicParams` 支持配置 qos 配置,现在设计网卡的参数由 `VmNicParams` 更新为了 `VmImportNicParams`,类型和过去一致,没有 qos 支持。
- [VmApi] [VmImportParams]: 由于 `_vm_nicParams` 支持配置 qos 配置,现在设计网卡的参数由 `_vm_nicParams` 更新为了 `VmImportNicParams`,类型和过去一致,没有 qos 支持。

### update

- feature: [VmVolumeApi]: [import_vm_volume] [export_vm_volume]: 现在支持虚拟卷的导入与导出
- feature: [ContentLibraryVmTemplateApi]: [import_content_library_vm_template] [export_content_library_vm_template]: 现在支持虚拟机模板的导入与导出
- feature: [VmApi]: [update_vm_nic_qos_option]: 现在支持通过 api 更新现有虚拟机网卡的 qos 属性
- optimize: [VmNicParams]: 现在支持配置 `qos` 参数,用于在创建虚拟机(直接创建,模板创建,快照重建,克隆创建)时配置虚拟机网卡的 qos 参数
- optimize: [_vm_nicParams]: 现在支持配置 `qos` 参数,用于在创建虚拟机(直接创建,模板创建,快照重建,克隆创建)时配置虚拟机网卡的 qos 参数

### bugfix

Expand Down
27 changes: 26 additions & 1 deletion cloudtower/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# flake8: noqa
from __future__ import absolute_import

__version__ = "2.14.2"
__version__ = "2.15.0"

# import apis into sdk package
from cloudtower.api.alert_api import AlertApi
Expand Down Expand Up @@ -226,6 +226,7 @@
from cloudtower.models.cluster_where_input import ClusterWhereInput
from cloudtower.models.cluster_where_unique_input import ClusterWhereUniqueInput
from cloudtower.models.column_config import ColumnConfig
from cloudtower.models.common_header import CommonHeader
from cloudtower.models.connect_state import ConnectState
from cloudtower.models.consistency_group import ConsistencyGroup
from cloudtower.models.consistency_group_connection import ConsistencyGroupConnection
Expand All @@ -245,6 +246,7 @@
from cloudtower.models.consistency_group_updation_params_data import ConsistencyGroupUpdationParamsData
from cloudtower.models.consistency_group_where_input import ConsistencyGroupWhereInput
from cloudtower.models.consistent_type import ConsistentType
from cloudtower.models.content_language import ContentLanguage
from cloudtower.models.content_library_image import ContentLibraryImage
from cloudtower.models.content_library_image_connection import ContentLibraryImageConnection
from cloudtower.models.content_library_image_deletion_params import ContentLibraryImageDeletionParams
Expand Down Expand Up @@ -954,6 +956,7 @@
from cloudtower.models.nested_vds import NestedVds
from cloudtower.models.nested_vgpu_type import NestedVgpuType
from cloudtower.models.nested_view import NestedView
from cloudtower.models.nested_virtual_private_cloud_nic import NestedVirtualPrivateCloudNic
from cloudtower.models.nested_vlan import NestedVlan
from cloudtower.models.nested_vm import NestedVm
from cloudtower.models.nested_vm_disk import NestedVmDisk
Expand Down Expand Up @@ -1269,6 +1272,27 @@
from cloudtower.models.view_updation_params import ViewUpdationParams
from cloudtower.models.view_updation_params_data import ViewUpdationParamsData
from cloudtower.models.view_where_input import ViewWhereInput
from cloudtower.models.virtual_private_cloud_cluster_binding_where_input import VirtualPrivateCloudClusterBindingWhereInput
from cloudtower.models.virtual_private_cloud_edge_gateway_where_input import VirtualPrivateCloudEdgeGatewayWhereInput
from cloudtower.models.virtual_private_cloud_external_subnet_where_input import VirtualPrivateCloudExternalSubnetWhereInput
from cloudtower.models.virtual_private_cloud_floating_ip_where_input import VirtualPrivateCloudFloatingIpWhereInput
from cloudtower.models.virtual_private_cloud_isolation_policy_mode import VirtualPrivateCloudIsolationPolicyMode
from cloudtower.models.virtual_private_cloud_isolation_policy_where_input import VirtualPrivateCloudIsolationPolicyWhereInput
from cloudtower.models.virtual_private_cloud_layer2_gateway_where_input import VirtualPrivateCloudLayer2GatewayWhereInput
from cloudtower.models.virtual_private_cloud_nat_gateway_where_input import VirtualPrivateCloudNatGatewayWhereInput
from cloudtower.models.virtual_private_cloud_nic_snapshot_where_input import VirtualPrivateCloudNicSnapshotWhereInput
from cloudtower.models.virtual_private_cloud_nic_where_input import VirtualPrivateCloudNicWhereInput
from cloudtower.models.virtual_private_cloud_peering_where_input import VirtualPrivateCloudPeeringWhereInput
from cloudtower.models.virtual_private_cloud_route_next_hop_type import VirtualPrivateCloudRouteNextHopType
from cloudtower.models.virtual_private_cloud_route_table_where_input import VirtualPrivateCloudRouteTableWhereInput
from cloudtower.models.virtual_private_cloud_route_where_input import VirtualPrivateCloudRouteWhereInput
from cloudtower.models.virtual_private_cloud_router_gateway_where_input import VirtualPrivateCloudRouterGatewayWhereInput
from cloudtower.models.virtual_private_cloud_security_group_where_input import VirtualPrivateCloudSecurityGroupWhereInput
from cloudtower.models.virtual_private_cloud_security_policy_mode import VirtualPrivateCloudSecurityPolicyMode
from cloudtower.models.virtual_private_cloud_security_policy_where_input import VirtualPrivateCloudSecurityPolicyWhereInput
from cloudtower.models.virtual_private_cloud_service_where_input import VirtualPrivateCloudServiceWhereInput
from cloudtower.models.virtual_private_cloud_subnet_where_input import VirtualPrivateCloudSubnetWhereInput
from cloudtower.models.virtual_private_cloud_where_input import VirtualPrivateCloudWhereInput
from cloudtower.models.vlan import Vlan
from cloudtower.models.vlan_connection import VlanConnection
from cloudtower.models.vlan_deletion_params import VlanDeletionParams
Expand Down Expand Up @@ -1346,6 +1370,7 @@
from cloudtower.models.vm_nic_params import VmNicParams
from cloudtower.models.vm_nic_qos_option import VmNicQosOption
from cloudtower.models.vm_nic_qos_traffic import VmNicQosTraffic
from cloudtower.models.vm_nic_type import VmNicType
from cloudtower.models.vm_nic_where_input import VmNicWhereInput
from cloudtower.models.vm_operate_params import VmOperateParams
from cloudtower.models.vm_operate_pci_nic_params import VmOperatePciNicParams
Expand Down
4 changes: 2 additions & 2 deletions cloudtower/api/alert_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def resolve_alert(self, resolve_alert_params, **kwargs): # noqa: E501
:param resolve_alert_params: (required)
:type resolve_alert_params: ResolveAlertParams
:param content_language:
:type content_language: str
:type content_language: ContentLanguage
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand Down Expand Up @@ -372,7 +372,7 @@ def resolve_alert_with_http_info(self, resolve_alert_params, **kwargs): # noqa:
:param resolve_alert_params: (required)
:type resolve_alert_params: ResolveAlertParams
:param content_language:
:type content_language: str
:type content_language: ContentLanguage
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
Expand Down
16 changes: 8 additions & 8 deletions cloudtower/api/brick_topo_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def create_brick_topo(self, brick_topo_creation_params, **kwargs): # noqa: E501
:param brick_topo_creation_params: (required)
:type brick_topo_creation_params: list[BrickTopoCreationParams]
:param content_language:
:type content_language: str
:type content_language: ContentLanguage
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand Down Expand Up @@ -68,7 +68,7 @@ def create_brick_topo_with_http_info(self, brick_topo_creation_params, **kwargs)
:param brick_topo_creation_params: (required)
:type brick_topo_creation_params: list[BrickTopoCreationParams]
:param content_language:
:type content_language: str
:type content_language: ContentLanguage
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
Expand Down Expand Up @@ -189,7 +189,7 @@ def delete_brick_topo(self, brick_topo_deletion_params, **kwargs): # noqa: E501
:param brick_topo_deletion_params: (required)
:type brick_topo_deletion_params: BrickTopoDeletionParams
:param content_language:
:type content_language: str
:type content_language: ContentLanguage
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand Down Expand Up @@ -220,7 +220,7 @@ def delete_brick_topo_with_http_info(self, brick_topo_deletion_params, **kwargs)
:param brick_topo_deletion_params: (required)
:type brick_topo_deletion_params: BrickTopoDeletionParams
:param content_language:
:type content_language: str
:type content_language: ContentLanguage
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
Expand Down Expand Up @@ -645,7 +645,7 @@ def move_brick_topo(self, brick_topo_move_params, **kwargs): # noqa: E501
:param brick_topo_move_params: (required)
:type brick_topo_move_params: BrickTopoMoveParams
:param content_language:
:type content_language: str
:type content_language: ContentLanguage
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand Down Expand Up @@ -676,7 +676,7 @@ def move_brick_topo_with_http_info(self, brick_topo_move_params, **kwargs): # n
:param brick_topo_move_params: (required)
:type brick_topo_move_params: BrickTopoMoveParams
:param content_language:
:type content_language: str
:type content_language: ContentLanguage
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
Expand Down Expand Up @@ -797,7 +797,7 @@ def update_brick_topo(self, brick_topo_updation_params, **kwargs): # noqa: E501
:param brick_topo_updation_params: (required)
:type brick_topo_updation_params: BrickTopoUpdationParams
:param content_language:
:type content_language: str
:type content_language: ContentLanguage
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand Down Expand Up @@ -828,7 +828,7 @@ def update_brick_topo_with_http_info(self, brick_topo_updation_params, **kwargs)
:param brick_topo_updation_params: (required)
:type brick_topo_updation_params: BrickTopoUpdationParams
:param content_language:
:type content_language: str
:type content_language: ContentLanguage
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _return_http_data_only: response data without head status code
Expand Down
Loading

0 comments on commit 071939b

Please sign in to comment.