Skip to content

Commit

Permalink
update to v2.17.0 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Sczlog committed Aug 21, 2024
1 parent bbd5b9a commit 847b1c1
Show file tree
Hide file tree
Showing 36 changed files with 8,583 additions and 26 deletions.
16 changes: 16 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,20 @@ cloudtower/api/usb_device_api.py
cloudtower/api/user_api.py
cloudtower/api/user_audit_log_api.py
cloudtower/api/user_role_next_api.py
cloudtower/api/v2_everoute_license_api.py
cloudtower/api/vcenter_account_api.py
cloudtower/api/vds_api.py
cloudtower/api/view_api.py
cloudtower/api/virtual_private_cloud_api.py
cloudtower/api/virtual_private_cloud_cluster_binding_api.py
cloudtower/api/virtual_private_cloud_external_subnet_api.py
cloudtower/api/virtual_private_cloud_floating_ip_api.py
cloudtower/api/virtual_private_cloud_nat_gateway_api.py
cloudtower/api/virtual_private_cloud_route_table_api.py
cloudtower/api/virtual_private_cloud_router_gateway_api.py
cloudtower/api/virtual_private_cloud_security_group_api.py
cloudtower/api/virtual_private_cloud_security_policy_api.py
cloudtower/api/virtual_private_cloud_subnet_api.py
cloudtower/api/vlan_api.py
cloudtower/api/vm_api.py
cloudtower/api/vm_disk_api.py
Expand Down Expand Up @@ -985,6 +996,7 @@ cloudtower/models/nested_svt_image.py
cloudtower/models/nested_tag_position.py
cloudtower/models/nested_task.py
cloudtower/models/nested_template_nic.py
cloudtower/models/nested_template_vpc_nic.py
cloudtower/models/nested_thresholds.py
cloudtower/models/nested_usb_device.py
cloudtower/models/nested_user.py
Expand Down Expand Up @@ -1259,6 +1271,7 @@ cloudtower/models/update_vcenter_account_params.py
cloudtower/models/update_vcenter_account_params_data.py
cloudtower/models/update_vm_volume_params.py
cloudtower/models/update_vm_volume_params_data.py
cloudtower/models/update_vpc_nic_payloads.py
cloudtower/models/update_vsphere_esxi_account_params.py
cloudtower/models/update_vsphere_esxi_account_params_data.py
cloudtower/models/upgrade_cloud_tower_application_params.py
Expand Down Expand Up @@ -1566,6 +1579,8 @@ cloudtower/models/vm_update_owner_params.py
cloudtower/models/vm_update_owner_params_data.py
cloudtower/models/vm_update_params.py
cloudtower/models/vm_update_params_data.py
cloudtower/models/vm_update_vpc_nic_params.py
cloudtower/models/vm_update_vpc_nic_params_data.py
cloudtower/models/vm_usage.py
cloudtower/models/vm_video_type.py
cloudtower/models/vm_vlan_creation_params.py
Expand Down Expand Up @@ -1597,6 +1612,7 @@ cloudtower/models/vm_where_input.py
cloudtower/models/vm_where_unique_input.py
cloudtower/models/vmdk_cdrom_modify.py
cloudtower/models/vmdk_disk_modify.py
cloudtower/models/vpc_nic_params.py
cloudtower/models/vsphere_esxi_account.py
cloudtower/models/vsphere_esxi_account_connection.py
cloudtower/models/vsphere_esxi_account_order_by_input.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.16.0-py2.py3-none-any.whl
pip install cloudtower_sdk-2.17.0-py2.py3-none-any.whl
```

- ### tar.gz

```shell
tar xvzf cloudtower-sdk-2.16.0.tar.gz
cd cloudtower-sdk-2.16.0
tar xvzf cloudtower-sdk-2.17.0.tar.gz
cd cloudtower-sdk-2.17.0
python setup.py install
```

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

## release 日期 2024-08-21

v2.17.0 release (tower version 4.3.0)

### feature

- 新增 VPC 相关 API
- [VirtualPrivateCloudApi] VPC 服务管理
- [VirtualPrivateCloudClusterBindingApi] VPC 服务与集群关联关系
- [VirtualPrivateCloudExternalSubnetApi] VPC 网络外部子网
- [VirtualPrivateCloudFloatingIpApi] VPC 网络浮动 IP 管理
- [VirtualPrivateCloudNatGatewayApi] VPC 网络 NAT 网关管理
- [VirtualPrivateCloudRouterGatewayApi] VPC 网络路由网关管理
- [VirtualPrivateCloudRouteTableApi] VPC 网络路由表管理
- [VirtualPrivateCloudSecurityGroupApi] VPC 网络安全组管理
- [VirtualPrivateCloudSecurityPolicyApi] VPC 网络安全策略管理
- [VirtualPrivateCloudSubnetApi] VPC 子网管理
- [VmApi]: [update_vm_nic_vpc]: 更新虚拟机的 VPC 网卡

### update

- [ContentLibraryImage]: 新增 iscsi_luns 字段,用于记录分发至存算分离节点中的镜像的 lun 。
- [ContentLibraryImageApi]: []支持使用 iscsi_luns 进行搜索
- [VmApi]:
- [create_vm], [create_vm_from_content_library_template], [create_vm_from_template], [clone_vm], [rebuild_vm_from_snapshot] 支持配置虚拟机的 VPC 网卡
- [add_vm_nic], [update_vm_nic] 支持配置 VPC 网卡

### bugfix

- [VmApi]: [update_vm_disk], [add_vm_disk], [expand_vm_disk], [remove_vm_disk], [add_vm_cd_rom], [remove_vm_cd_rom], [eject_iso_from_vm_cd_rom], [toggle_vm_cd_rom_disable]: 修复被修改虚拟机的虚拟盘会丢失限速设置以及 cdrom 的禁用的问题
- [vmApi]: [create_vm_from_content_library_template]: 修复当内容库模板仅分发在存算分离的集群时,无法创建虚拟机的问题。

## release 日期 2024-07-16

v2.16.0 release (tower version 4.2.0)
Expand Down
18 changes: 17 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.16.0"
__version__ = "2.17.0"

# import apis into sdk package
from cloudtower.api.alert_api import AlertApi
Expand Down Expand Up @@ -80,9 +80,20 @@
from cloudtower.api.user_api import UserApi
from cloudtower.api.user_audit_log_api import UserAuditLogApi
from cloudtower.api.user_role_next_api import UserRoleNextApi
from cloudtower.api.v2_everoute_license_api import V2EverouteLicenseApi
from cloudtower.api.vcenter_account_api import VcenterAccountApi
from cloudtower.api.vds_api import VdsApi
from cloudtower.api.view_api import ViewApi
from cloudtower.api.virtual_private_cloud_api import VirtualPrivateCloudApi
from cloudtower.api.virtual_private_cloud_cluster_binding_api import VirtualPrivateCloudClusterBindingApi
from cloudtower.api.virtual_private_cloud_external_subnet_api import VirtualPrivateCloudExternalSubnetApi
from cloudtower.api.virtual_private_cloud_floating_ip_api import VirtualPrivateCloudFloatingIpApi
from cloudtower.api.virtual_private_cloud_nat_gateway_api import VirtualPrivateCloudNatGatewayApi
from cloudtower.api.virtual_private_cloud_route_table_api import VirtualPrivateCloudRouteTableApi
from cloudtower.api.virtual_private_cloud_router_gateway_api import VirtualPrivateCloudRouterGatewayApi
from cloudtower.api.virtual_private_cloud_security_group_api import VirtualPrivateCloudSecurityGroupApi
from cloudtower.api.virtual_private_cloud_security_policy_api import VirtualPrivateCloudSecurityPolicyApi
from cloudtower.api.virtual_private_cloud_subnet_api import VirtualPrivateCloudSubnetApi
from cloudtower.api.vlan_api import VlanApi
from cloudtower.api.vm_api import VmApi
from cloudtower.api.vm_disk_api import VmDiskApi
Expand Down Expand Up @@ -993,6 +1004,7 @@
from cloudtower.models.nested_tag_position import NestedTagPosition
from cloudtower.models.nested_task import NestedTask
from cloudtower.models.nested_template_nic import NestedTemplateNic
from cloudtower.models.nested_template_vpc_nic import NestedTemplateVpcNic
from cloudtower.models.nested_thresholds import NestedThresholds
from cloudtower.models.nested_usb_device import NestedUsbDevice
from cloudtower.models.nested_user import NestedUser
Expand Down Expand Up @@ -1267,6 +1279,7 @@
from cloudtower.models.update_vcenter_account_params_data import UpdateVcenterAccountParamsData
from cloudtower.models.update_vm_volume_params import UpdateVmVolumeParams
from cloudtower.models.update_vm_volume_params_data import UpdateVmVolumeParamsData
from cloudtower.models.update_vpc_nic_payloads import UpdateVpcNicPayloads
from cloudtower.models.update_vsphere_esxi_account_params import UpdateVsphereEsxiAccountParams
from cloudtower.models.update_vsphere_esxi_account_params_data import UpdateVsphereEsxiAccountParamsData
from cloudtower.models.upgrade_cloud_tower_application_params import UpgradeCloudTowerApplicationParams
Expand Down Expand Up @@ -1574,6 +1587,8 @@
from cloudtower.models.vm_update_owner_params_data import VmUpdateOwnerParamsData
from cloudtower.models.vm_update_params import VmUpdateParams
from cloudtower.models.vm_update_params_data import VmUpdateParamsData
from cloudtower.models.vm_update_vpc_nic_params import VmUpdateVpcNicParams
from cloudtower.models.vm_update_vpc_nic_params_data import VmUpdateVpcNicParamsData
from cloudtower.models.vm_usage import VmUsage
from cloudtower.models.vm_video_type import VmVideoType
from cloudtower.models.vm_vlan_creation_params import VmVlanCreationParams
Expand Down Expand Up @@ -1605,6 +1620,7 @@
from cloudtower.models.vm_where_unique_input import VmWhereUniqueInput
from cloudtower.models.vmdk_cdrom_modify import VmdkCdromModify
from cloudtower.models.vmdk_disk_modify import VmdkDiskModify
from cloudtower.models.vpc_nic_params import VpcNicParams
from cloudtower.models.vsphere_esxi_account import VsphereEsxiAccount
from cloudtower.models.vsphere_esxi_account_connection import VsphereEsxiAccountConnection
from cloudtower.models.vsphere_esxi_account_order_by_input import VsphereEsxiAccountOrderByInput
Expand Down
11 changes: 11 additions & 0 deletions cloudtower/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,20 @@
from cloudtower.api.user_api import UserApi
from cloudtower.api.user_audit_log_api import UserAuditLogApi
from cloudtower.api.user_role_next_api import UserRoleNextApi
from cloudtower.api.v2_everoute_license_api import V2EverouteLicenseApi
from cloudtower.api.vcenter_account_api import VcenterAccountApi
from cloudtower.api.vds_api import VdsApi
from cloudtower.api.view_api import ViewApi
from cloudtower.api.virtual_private_cloud_api import VirtualPrivateCloudApi
from cloudtower.api.virtual_private_cloud_cluster_binding_api import VirtualPrivateCloudClusterBindingApi
from cloudtower.api.virtual_private_cloud_external_subnet_api import VirtualPrivateCloudExternalSubnetApi
from cloudtower.api.virtual_private_cloud_floating_ip_api import VirtualPrivateCloudFloatingIpApi
from cloudtower.api.virtual_private_cloud_nat_gateway_api import VirtualPrivateCloudNatGatewayApi
from cloudtower.api.virtual_private_cloud_route_table_api import VirtualPrivateCloudRouteTableApi
from cloudtower.api.virtual_private_cloud_router_gateway_api import VirtualPrivateCloudRouterGatewayApi
from cloudtower.api.virtual_private_cloud_security_group_api import VirtualPrivateCloudSecurityGroupApi
from cloudtower.api.virtual_private_cloud_security_policy_api import VirtualPrivateCloudSecurityPolicyApi
from cloudtower.api.virtual_private_cloud_subnet_api import VirtualPrivateCloudSubnetApi
from cloudtower.api.vlan_api import VlanApi
from cloudtower.api.vm_api import VmApi
from cloudtower.api.vm_disk_api import VmDiskApi
Expand Down
8 changes: 4 additions & 4 deletions cloudtower/api/alert_notifier_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def create_alert_notifier_with_http_info(self, alert_notifier_creation_params, *
'POST', body_params)) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
auth_settings = ['Authorization'] # noqa: E501

response_types_map = {
200: "list[WithTaskAlertNotifier]",
Expand Down Expand Up @@ -289,7 +289,7 @@ def delete_alert_notifier_with_http_info(self, delete_alert_notifier_params, **k
'POST', body_params)) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
auth_settings = ['Authorization'] # noqa: E501

response_types_map = {
200: "list[WithTaskDeleteAlertNotifier]",
Expand Down Expand Up @@ -738,7 +738,7 @@ def update_alert_notifier_with_http_info(self, alert_notifier_updation_params, *
'POST', body_params)) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
auth_settings = ['Authorization'] # noqa: E501

response_types_map = {
200: "WithTaskAlertNotifier",
Expand Down Expand Up @@ -883,7 +883,7 @@ def update_many_alert_notifiers_with_http_info(self, alert_notifier_many_updatio
'POST', body_params)) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
auth_settings = ['Authorization'] # noqa: E501

response_types_map = {
200: "list[WithTaskAlertNotifier]",
Expand Down
6 changes: 3 additions & 3 deletions cloudtower/api/log_collection_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def create_log_collection_with_http_info(self, log_collection_creation_params, *
'POST', body_params)) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
auth_settings = ['Authorization'] # noqa: E501

response_types_map = {
200: "list[WithTaskLogCollection]",
Expand Down Expand Up @@ -289,7 +289,7 @@ def delete_log_collection_with_http_info(self, log_collection_deletion_params, *
'POST', body_params)) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
auth_settings = ['Authorization'] # noqa: E501

response_types_map = {
200: "list[WithTaskDeleteLogCollection]",
Expand Down Expand Up @@ -434,7 +434,7 @@ def force_stop_log_collection_with_http_info(self, force_stop_log_collection_par
'POST', body_params)) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
auth_settings = ['Authorization'] # noqa: E501

response_types_map = {
200: "list[WithTaskLogCollection]",
Expand Down
2 changes: 1 addition & 1 deletion cloudtower/api/user_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def get_my_info_with_http_info(self, **kwargs): # noqa: E501
['application/json']) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501
auth_settings = ['Authorization'] # noqa: E501

response_types_map = {
200: "User",
Expand Down
Loading

0 comments on commit 847b1c1

Please sign in to comment.