Skip to content

Commit

Permalink
update to v2.9.0 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Sczlog committed Jul 3, 2023
1 parent d4a2e47 commit 025b284
Show file tree
Hide file tree
Showing 112 changed files with 20,256 additions and 1,478 deletions.
2,896 changes: 1,476 additions & 1,420 deletions .openapi-generator/FILES

Large diffs are not rendered by default.

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.8.0-py2.py3-none-any.whl
pip install cloudtower_sdk-2.9.0-py2.py3-none-any.whl
```

- ### tar.gz

```shell
tar xvzf cloudtower-sdk-2.8.0.tar.gz
cd cloudtower-sdk-2.8.0
tar xvzf cloudtower-sdk-2.9.0.tar.gz
cd cloudtower-sdk-2.9.0
python setup.py install
```

Expand Down
13 changes: 11 additions & 2 deletions RELEASENOTE.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
# RELEASE NOTE

## release 日期 2022-05-04
v2.9.0 release (tower version 3.0.0)
## release 日期 2023-07-03

- feature: [SecurityGroupApi] 支持创建,更新与删除安全组
- feature: [SecurityPolicy] 支持创建,更新与删除自定义安全策略
- feature: [OvfApi], [VmExportFileApi], [VmApi] 支持虚拟机的导入与导出
- feature: [VlanApi] 支持 trunk vlan 的创建与编辑
- feature: [UserApi] [Login] 支持使用 authn_id 登陆,旧 LDAP 登陆方式被废弃
- optimize: 为 [Host], [Nic], [UsbDevice], [VmVolume], [VmVolumeSnapshot] 添加了 `EntityAsyncStatus` 已判断资源目前的状态
## release 日期 2023-05-04

v2.8.0 release

- optimize: VlanApi: [vm_vlan_creation_params], [vm_vlan_updation_params_data], [management_vlan_updation_params_data] 限制 `VlanId` 范围为 0~4095

## release 日期 2022-03-22
## release 日期 2023-03-22

v2.7.0 release

Expand Down
58 changes: 57 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.8.0"
__version__ = "2.9.0"

# import apis into sdk package
from cloudtower.api.alert_api import AlertApi
Expand Down Expand Up @@ -58,10 +58,12 @@
from cloudtower.api.nvmf_namespace_snapshot_api import NvmfNamespaceSnapshotApi
from cloudtower.api.nvmf_subsystem_api import NvmfSubsystemApi
from cloudtower.api.organization_api import OrganizationApi
from cloudtower.api.ovf_api import OvfApi
from cloudtower.api.pmem_dimm_api import PmemDimmApi
from cloudtower.api.rack_topo_api import RackTopoApi
from cloudtower.api.report_task_api import ReportTaskApi
from cloudtower.api.report_template_api import ReportTemplateApi
from cloudtower.api.security_group_api import SecurityGroupApi
from cloudtower.api.security_policy_api import SecurityPolicyApi
from cloudtower.api.snapshot_group_api import SnapshotGroupApi
from cloudtower.api.snapshot_plan_api import SnapshotPlanApi
Expand All @@ -84,6 +86,7 @@
from cloudtower.api.vm_api import VmApi
from cloudtower.api.vm_disk_api import VmDiskApi
from cloudtower.api.vm_entity_filter_result_api import VmEntityFilterResultApi
from cloudtower.api.vm_export_file_api import VmExportFileApi
from cloudtower.api.vm_folder_api import VmFolderApi
from cloudtower.api.vm_nic_api import VmNicApi
from cloudtower.api.vm_placement_group_api import VmPlacementGroupApi
Expand Down Expand Up @@ -299,6 +302,8 @@
from cloudtower.models.delete_rack_topo import DeleteRackTopo
from cloudtower.models.delete_report_template import DeleteReportTemplate
from cloudtower.models.delete_role import DeleteRole
from cloudtower.models.delete_security_group import DeleteSecurityGroup
from cloudtower.models.delete_security_policy import DeleteSecurityPolicy
from cloudtower.models.delete_snapshot_group import DeleteSnapshotGroup
from cloudtower.models.delete_snapshot_plan import DeleteSnapshotPlan
from cloudtower.models.delete_snmp_transport import DeleteSnmpTransport
Expand Down Expand Up @@ -375,6 +380,7 @@
from cloudtower.models.everoute_package_order_by_input import EveroutePackageOrderByInput
from cloudtower.models.everoute_package_where_input import EveroutePackageWhereInput
from cloudtower.models.execute_plan import ExecutePlan
from cloudtower.models.export_file_download_links import ExportFileDownloadLinks
from cloudtower.models.extra_ip import ExtraIp
from cloudtower.models.filter_rule_aggregation_enum import FilterRuleAggregationEnum
from cloudtower.models.filter_rule_input import FilterRuleInput
Expand Down Expand Up @@ -437,6 +443,7 @@
from cloudtower.models.get_everoute_licenses_request_body import GetEverouteLicensesRequestBody
from cloudtower.models.get_everoute_packages_connection_request_body import GetEveroutePackagesConnectionRequestBody
from cloudtower.models.get_everoute_packages_request_body import GetEveroutePackagesRequestBody
from cloudtower.models.get_export_file_download_links_params import GetExportFileDownloadLinksParams
from cloudtower.models.get_global_alert_rules_connection_request_body import GetGlobalAlertRulesConnectionRequestBody
from cloudtower.models.get_global_alert_rules_request_body import GetGlobalAlertRulesRequestBody
from cloudtower.models.get_global_settingses_connection_request_body import GetGlobalSettingsesConnectionRequestBody
Expand Down Expand Up @@ -499,6 +506,8 @@
from cloudtower.models.get_scvm_metric_input import GetScvmMetricInput
from cloudtower.models.get_scvm_network_input import GetScvmNetworkInput
from cloudtower.models.get_scvm_service_metric_input import GetScvmServiceMetricInput
from cloudtower.models.get_security_groups_connection_request_body import GetSecurityGroupsConnectionRequestBody
from cloudtower.models.get_security_groups_request_body import GetSecurityGroupsRequestBody
from cloudtower.models.get_security_policies_connection_request_body import GetSecurityPoliciesConnectionRequestBody
from cloudtower.models.get_security_policies_request_body import GetSecurityPoliciesRequestBody
from cloudtower.models.get_snapshot_groups_connection_request_body import GetSnapshotGroupsConnectionRequestBody
Expand Down Expand Up @@ -540,6 +549,8 @@
from cloudtower.models.get_vm_disks_request_body import GetVmDisksRequestBody
from cloudtower.models.get_vm_entity_filter_results_connection_request_body import GetVmEntityFilterResultsConnectionRequestBody
from cloudtower.models.get_vm_entity_filter_results_request_body import GetVmEntityFilterResultsRequestBody
from cloudtower.models.get_vm_export_files_connection_request_body import GetVmExportFilesConnectionRequestBody
from cloudtower.models.get_vm_export_files_request_body import GetVmExportFilesRequestBody
from cloudtower.models.get_vm_folders_connection_request_body import GetVmFoldersConnectionRequestBody
from cloudtower.models.get_vm_folders_request_body import GetVmFoldersRequestBody
from cloudtower.models.get_vm_metric_input import GetVmMetricInput
Expand Down Expand Up @@ -606,6 +617,7 @@
from cloudtower.models.host_updation_params_data import HostUpdationParamsData
from cloudtower.models.host_where_input import HostWhereInput
from cloudtower.models.hypervisor import Hypervisor
from cloudtower.models.ip_security_policy import IPSecurityPolicy
from cloudtower.models.install_vmtools_params import InstallVmtoolsParams
from cloudtower.models.install_vmtools_params_data import InstallVmtoolsParamsData
from cloudtower.models.ipmi import Ipmi
Expand Down Expand Up @@ -687,6 +699,7 @@
from cloudtower.models.metric_type import MetricType
from cloudtower.models.metric_unit import MetricUnit
from cloudtower.models.metro_check_status_enum import MetroCheckStatusEnum
from cloudtower.models.mfa_type import MfaType
from cloudtower.models.mgt_ip_mapper import MgtIpMapper
from cloudtower.models.migrate_type import MigrateType
from cloudtower.models.migrate_vm_config import MigrateVmConfig
Expand Down Expand Up @@ -753,6 +766,7 @@
from cloudtower.models.nested_aggregate_rack_topo import NestedAggregateRackTopo
from cloudtower.models.nested_aggregate_report_task import NestedAggregateReportTask
from cloudtower.models.nested_aggregate_report_template import NestedAggregateReportTemplate
from cloudtower.models.nested_aggregate_security_group import NestedAggregateSecurityGroup
from cloudtower.models.nested_aggregate_security_policy import NestedAggregateSecurityPolicy
from cloudtower.models.nested_aggregate_snapshot_group import NestedAggregateSnapshotGroup
from cloudtower.models.nested_aggregate_snapshot_plan import NestedAggregateSnapshotPlan
Expand All @@ -774,6 +788,7 @@
from cloudtower.models.nested_aggregate_vm import NestedAggregateVm
from cloudtower.models.nested_aggregate_vm_disk import NestedAggregateVmDisk
from cloudtower.models.nested_aggregate_vm_entity_filter_result import NestedAggregateVmEntityFilterResult
from cloudtower.models.nested_aggregate_vm_export_file import NestedAggregateVmExportFile
from cloudtower.models.nested_aggregate_vm_folder import NestedAggregateVmFolder
from cloudtower.models.nested_aggregate_vm_nic import NestedAggregateVmNic
from cloudtower.models.nested_aggregate_vm_placement_group import NestedAggregateVmPlacementGroup
Expand Down Expand Up @@ -837,6 +852,7 @@
from cloudtower.models.nested_iscsi_target import NestedIscsiTarget
from cloudtower.models.nested_isolation_policy import NestedIsolationPolicy
from cloudtower.models.nested_label import NestedLabel
from cloudtower.models.nested_label_group import NestedLabelGroup
from cloudtower.models.nested_license import NestedLicense
from cloudtower.models.nested_metro_availability_checklist import NestedMetroAvailabilityChecklist
from cloudtower.models.nested_metro_check_item import NestedMetroCheckItem
Expand Down Expand Up @@ -895,6 +911,7 @@
from cloudtower.models.nested_witness import NestedWitness
from cloudtower.models.nested_zone import NestedZone
from cloudtower.models.nested_zone_topo import NestedZoneTopo
from cloudtower.models.network_policy_rule_port_input import NetworkPolicyRulePortInput
from cloudtower.models.network_policy_rule_port_protocol import NetworkPolicyRulePortProtocol
from cloudtower.models.network_policy_rule_type import NetworkPolicyRuleType
from cloudtower.models.network_type import NetworkType
Expand Down Expand Up @@ -962,6 +979,11 @@
from cloudtower.models.organization_order_by_input import OrganizationOrderByInput
from cloudtower.models.organization_updation_params import OrganizationUpdationParams
from cloudtower.models.organization_where_input import OrganizationWhereInput
from cloudtower.models.ovf_cpu import OvfCpu
from cloudtower.models.ovf_disk import OvfDisk
from cloudtower.models.ovf_disk_operate import OvfDiskOperate
from cloudtower.models.ovf_nic import OvfNic
from cloudtower.models.parsed_ovf import ParsedOVF
from cloudtower.models.partition_usage import PartitionUsage
from cloudtower.models.password_complexity import PasswordComplexity
from cloudtower.models.pmem_dimm import PmemDimm
Expand Down Expand Up @@ -1003,9 +1025,25 @@
from cloudtower.models.role_updation_params import RoleUpdationParams
from cloudtower.models.role_updation_params_data import RoleUpdationParamsData
from cloudtower.models.root_user_creation_params import RootUserCreationParams
from cloudtower.models.security_group import SecurityGroup
from cloudtower.models.security_group_connection import SecurityGroupConnection
from cloudtower.models.security_group_create_params import SecurityGroupCreateParams
from cloudtower.models.security_group_delete_params import SecurityGroupDeleteParams
from cloudtower.models.security_group_order_by_input import SecurityGroupOrderByInput
from cloudtower.models.security_group_update_body import SecurityGroupUpdateBody
from cloudtower.models.security_group_update_params import SecurityGroupUpdateParams
from cloudtower.models.security_group_where_input import SecurityGroupWhereInput
from cloudtower.models.security_policy import SecurityPolicy
from cloudtower.models.security_policy_apply_to_input import SecurityPolicyApplyToInput
from cloudtower.models.security_policy_apply_to_input_target import SecurityPolicyApplyToInputTarget
from cloudtower.models.security_policy_connection import SecurityPolicyConnection
from cloudtower.models.security_policy_create_params import SecurityPolicyCreateParams
from cloudtower.models.security_policy_delete_params import SecurityPolicyDeleteParams
from cloudtower.models.security_policy_ingress_egress_input import SecurityPolicyIngressEgressInput
from cloudtower.models.security_policy_ingress_egress_input_target import SecurityPolicyIngressEgressInputTarget
from cloudtower.models.security_policy_order_by_input import SecurityPolicyOrderByInput
from cloudtower.models.security_policy_update_body import SecurityPolicyUpdateBody
from cloudtower.models.security_policy_update_params import SecurityPolicyUpdateParams
from cloudtower.models.security_policy_where_input import SecurityPolicyWhereInput
from cloudtower.models.severity_enum import SeverityEnum
from cloudtower.models.snapshot_group import SnapshotGroup
Expand Down Expand Up @@ -1162,6 +1200,7 @@
from cloudtower.models.vlan_connection import VlanConnection
from cloudtower.models.vlan_deletion_params import VlanDeletionParams
from cloudtower.models.vlan_mapping import VlanMapping
from cloudtower.models.vlan_mode_type import VlanModeType
from cloudtower.models.vlan_order_by_input import VlanOrderByInput
from cloudtower.models.vlan_where_input import VlanWhereInput
from cloudtower.models.vm import Vm
Expand Down Expand Up @@ -1199,6 +1238,15 @@
from cloudtower.models.vm_entity_filter_result_order_by_input import VmEntityFilterResultOrderByInput
from cloudtower.models.vm_entity_filter_result_where_input import VmEntityFilterResultWhereInput
from cloudtower.models.vm_expand_vm_disk_params import VmExpandVmDiskParams
from cloudtower.models.vm_export_file import VmExportFile
from cloudtower.models.vm_export_file_connection import VmExportFileConnection
from cloudtower.models.vm_export_file_file import VmExportFileFile
from cloudtower.models.vm_export_file_order_by_input import VmExportFileOrderByInput
from cloudtower.models.vm_export_file_type import VmExportFileType
from cloudtower.models.vm_export_file_where_input import VmExportFileWhereInput
from cloudtower.models.vm_export_file_where_unique_input import VmExportFileWhereUniqueInput
from cloudtower.models.vm_export_params import VmExportParams
from cloudtower.models.vm_export_params_data import VmExportParamsData
from cloudtower.models.vm_firmware import VmFirmware
from cloudtower.models.vm_folder import VmFolder
from cloudtower.models.vm_folder_connection import VmFolderConnection
Expand All @@ -1209,6 +1257,7 @@
from cloudtower.models.vm_folder_updation_params_data import VmFolderUpdationParamsData
from cloudtower.models.vm_folder_where_input import VmFolderWhereInput
from cloudtower.models.vm_guests_operation_system import VmGuestsOperationSystem
from cloudtower.models.vm_import_params import VmImportParams
from cloudtower.models.vm_migrate_across_cluster_params import VmMigrateAcrossClusterParams
from cloudtower.models.vm_migrate_across_cluster_params_data import VmMigrateAcrossClusterParamsData
from cloudtower.models.vm_migrate_params import VmMigrateParams
Expand Down Expand Up @@ -1305,6 +1354,8 @@
from cloudtower.models.vm_volume_where_unique_input import VmVolumeWhereUniqueInput
from cloudtower.models.vm_where_input import VmWhereInput
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.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 Expand Up @@ -1345,6 +1396,8 @@
from cloudtower.models.with_task_delete_rack_topo import WithTaskDeleteRackTopo
from cloudtower.models.with_task_delete_report_template import WithTaskDeleteReportTemplate
from cloudtower.models.with_task_delete_role import WithTaskDeleteRole
from cloudtower.models.with_task_delete_security_group import WithTaskDeleteSecurityGroup
from cloudtower.models.with_task_delete_security_policy import WithTaskDeleteSecurityPolicy
from cloudtower.models.with_task_delete_snapshot_group import WithTaskDeleteSnapshotGroup
from cloudtower.models.with_task_delete_snapshot_plan import WithTaskDeleteSnapshotPlan
from cloudtower.models.with_task_delete_snmp_transport import WithTaskDeleteSnmpTransport
Expand Down Expand Up @@ -1386,6 +1439,8 @@
from cloudtower.models.with_task_rack_topo import WithTaskRackTopo
from cloudtower.models.with_task_report_task import WithTaskReportTask
from cloudtower.models.with_task_report_template import WithTaskReportTemplate
from cloudtower.models.with_task_security_group import WithTaskSecurityGroup
from cloudtower.models.with_task_security_policy import WithTaskSecurityPolicy
from cloudtower.models.with_task_snapshot_group import WithTaskSnapshotGroup
from cloudtower.models.with_task_snapshot_plan import WithTaskSnapshotPlan
from cloudtower.models.with_task_snmp_transport import WithTaskSnmpTransport
Expand All @@ -1398,6 +1453,7 @@
from cloudtower.models.with_task_view import WithTaskView
from cloudtower.models.with_task_vlan import WithTaskVlan
from cloudtower.models.with_task_vm import WithTaskVm
from cloudtower.models.with_task_vm_export_file import WithTaskVmExportFile
from cloudtower.models.with_task_vm_folder import WithTaskVmFolder
from cloudtower.models.with_task_vm_placement_group import WithTaskVmPlacementGroup
from cloudtower.models.with_task_vm_snapshot import WithTaskVmSnapshot
Expand Down
3 changes: 3 additions & 0 deletions cloudtower/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@
from cloudtower.api.nvmf_namespace_snapshot_api import NvmfNamespaceSnapshotApi
from cloudtower.api.nvmf_subsystem_api import NvmfSubsystemApi
from cloudtower.api.organization_api import OrganizationApi
from cloudtower.api.ovf_api import OvfApi
from cloudtower.api.pmem_dimm_api import PmemDimmApi
from cloudtower.api.rack_topo_api import RackTopoApi
from cloudtower.api.report_task_api import ReportTaskApi
from cloudtower.api.report_template_api import ReportTemplateApi
from cloudtower.api.security_group_api import SecurityGroupApi
from cloudtower.api.security_policy_api import SecurityPolicyApi
from cloudtower.api.snapshot_group_api import SnapshotGroupApi
from cloudtower.api.snapshot_plan_api import SnapshotPlanApi
Expand All @@ -81,6 +83,7 @@
from cloudtower.api.vm_api import VmApi
from cloudtower.api.vm_disk_api import VmDiskApi
from cloudtower.api.vm_entity_filter_result_api import VmEntityFilterResultApi
from cloudtower.api.vm_export_file_api import VmExportFileApi
from cloudtower.api.vm_folder_api import VmFolderApi
from cloudtower.api.vm_nic_api import VmNicApi
from cloudtower.api.vm_placement_group_api import VmPlacementGroupApi
Expand Down
7 changes: 7 additions & 0 deletions cloudtower/api/elf_image_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def create_elf_image(self, file, **kwargs): # noqa: E501
:type name: str
:param size:
:type size: str
:param size_unit:
:type size_unit: str
:param description:
:type description: str
:param upload_task_id:
Expand Down Expand Up @@ -85,6 +87,8 @@ def create_elf_image_with_http_info(self, file, **kwargs): # noqa: E501
:type name: str
:param size:
:type size: str
:param size_unit:
:type size_unit: str
:param description:
:type description: str
:param upload_task_id:
Expand Down Expand Up @@ -121,6 +125,7 @@ def create_elf_image_with_http_info(self, file, **kwargs): # noqa: E501
'cluster_id',
'name',
'size',
'size_unit',
'description',
'upload_task_id'
]
Expand Down Expand Up @@ -169,6 +174,8 @@ def create_elf_image_with_http_info(self, file, **kwargs): # noqa: E501
form_params.append(('name', local_var_params['name'])) # noqa: E501
if 'size' in local_var_params:
form_params.append(('size', local_var_params['size'])) # noqa: E501
if 'size_unit' in local_var_params:
form_params.append(('size_unit', local_var_params['size_unit'])) # noqa: E501
if 'description' in local_var_params:
form_params.append(('description', local_var_params['description'])) # noqa: E501
if 'upload_task_id' in local_var_params:
Expand Down
Loading

0 comments on commit 025b284

Please sign in to comment.