Skip to content

Commit c662342

Browse files
sdk-generatorSczlog
authored andcommitted
update to v2.3.0 schema
1 parent c6c9dc1 commit c662342

File tree

1,361 files changed

+8216
-15982
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,361 files changed

+8216
-15982
lines changed

.openapi-generator/FILES

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ cloudtower/api/__init__.py
77
cloudtower/api/alert_api.py
88
cloudtower/api/alert_notifier_api.py
99
cloudtower/api/alert_rule_api.py
10+
cloudtower/api/api_info_api.py
1011
cloudtower/api/application_api.py
1112
cloudtower/api/brick_topo_api.py
1213
cloudtower/api/cluster_api.py
@@ -85,6 +86,7 @@ cloudtower/api/vm_placement_group_api.py
8586
cloudtower/api/vm_snapshot_api.py
8687
cloudtower/api/vm_template_api.py
8788
cloudtower/api/vm_volume_api.py
89+
cloudtower/api/vm_volume_snapshot_api.py
8890
cloudtower/api/vsphere_esxi_account_api.py
8991
cloudtower/api/witness_api.py
9092
cloudtower/api/witness_service_api.py
@@ -135,6 +137,8 @@ cloudtower/models/brick_topo_updation_params_data.py
135137
cloudtower/models/brick_topo_where_input.py
136138
cloudtower/models/bus.py
137139
cloudtower/models/cancel_upload_task_params.py
140+
cloudtower/models/clone_vm_volume_params.py
141+
cloudtower/models/clone_vm_volume_params_data.py
138142
cloudtower/models/cloud_init_net_work.py
139143
cloudtower/models/cloud_init_net_work_route.py
140144
cloudtower/models/cloud_init_network_type_enum.py
@@ -270,6 +274,7 @@ cloudtower/models/delete_vm_placement_group.py
270274
cloudtower/models/delete_vm_snapshot.py
271275
cloudtower/models/delete_vm_template.py
272276
cloudtower/models/delete_vm_volume.py
277+
cloudtower/models/delete_vm_volume_snapshot.py
273278
cloudtower/models/deploy.py
274279
cloudtower/models/deploy_connection.py
275280
cloudtower/models/deploy_order_by_input.py
@@ -503,6 +508,8 @@ cloudtower/models/get_vm_snapshots_request_body.py
503508
cloudtower/models/get_vm_templates_connection_request_body.py
504509
cloudtower/models/get_vm_templates_request_body.py
505510
cloudtower/models/get_vm_volume_metric_input.py
511+
cloudtower/models/get_vm_volume_snapshots_connection_request_body.py
512+
cloudtower/models/get_vm_volume_snapshots_request_body.py
506513
cloudtower/models/get_vm_volumes_connection_request_body.py
507514
cloudtower/models/get_vm_volumes_request_body.py
508515
cloudtower/models/get_vms_connection_request_body.py
@@ -724,6 +731,7 @@ cloudtower/models/nested_aggregate_vm_placement_group.py
724731
cloudtower/models/nested_aggregate_vm_snapshot.py
725732
cloudtower/models/nested_aggregate_vm_template.py
726733
cloudtower/models/nested_aggregate_vm_volume.py
734+
cloudtower/models/nested_aggregate_vm_volume_snapshot.py
727735
cloudtower/models/nested_aggregate_vsphere_esxi_account.py
728736
cloudtower/models/nested_aggregate_witness.py
729737
cloudtower/models/nested_aggregate_zone.py
@@ -1027,6 +1035,8 @@ cloudtower/models/update_passrod_security_params.py
10271035
cloudtower/models/update_session_timeout_params.py
10281036
cloudtower/models/update_vcenter_account_params.py
10291037
cloudtower/models/update_vcenter_account_params_data.py
1038+
cloudtower/models/update_vm_volume_params.py
1039+
cloudtower/models/update_vm_volume_params_data.py
10301040
cloudtower/models/update_vsphere_esxi_account_params.py
10311041
cloudtower/models/update_vsphere_esxi_account_params_data.py
10321042
cloudtower/models/upload_resource_type.py
@@ -1217,7 +1227,18 @@ cloudtower/models/vm_volume_creation_params.py
12171227
cloudtower/models/vm_volume_deletion_params.py
12181228
cloudtower/models/vm_volume_elf_storage_policy_type.py
12191229
cloudtower/models/vm_volume_order_by_input.py
1230+
cloudtower/models/vm_volume_rebuild_params.py
1231+
cloudtower/models/vm_volume_rollback_params.py
1232+
cloudtower/models/vm_volume_snapshot.py
1233+
cloudtower/models/vm_volume_snapshot_connection.py
1234+
cloudtower/models/vm_volume_snapshot_creation_params.py
1235+
cloudtower/models/vm_volume_snapshot_deletion_params.py
1236+
cloudtower/models/vm_volume_snapshot_order_by_input.py
1237+
cloudtower/models/vm_volume_snapshot_type.py
1238+
cloudtower/models/vm_volume_snapshot_where_input.py
1239+
cloudtower/models/vm_volume_type.py
12201240
cloudtower/models/vm_volume_where_input.py
1241+
cloudtower/models/vm_volume_where_unique_input.py
12211242
cloudtower/models/vm_where_input.py
12221243
cloudtower/models/vm_where_unique_input.py
12231244
cloudtower/models/vsphere_esxi_account.py
@@ -1274,6 +1295,7 @@ cloudtower/models/with_task_delete_vm_placement_group.py
12741295
cloudtower/models/with_task_delete_vm_snapshot.py
12751296
cloudtower/models/with_task_delete_vm_template.py
12761297
cloudtower/models/with_task_delete_vm_volume.py
1298+
cloudtower/models/with_task_delete_vm_volume_snapshot.py
12771299
cloudtower/models/with_task_disk.py
12781300
cloudtower/models/with_task_elf_image.py
12791301
cloudtower/models/with_task_entity_filter.py
@@ -1318,6 +1340,7 @@ cloudtower/models/with_task_vm_placement_group.py
13181340
cloudtower/models/with_task_vm_snapshot.py
13191341
cloudtower/models/with_task_vm_template.py
13201342
cloudtower/models/with_task_vm_volume.py
1343+
cloudtower/models/with_task_vm_volume_snapshot.py
13211344
cloudtower/models/with_task_vsphere_esxi_account_array.py
13221345
cloudtower/models/witness.py
13231346
cloudtower/models/witness_connection.py

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ Python 环境下的 Cloudtower SDK,适用于 2.7 与 3.4 以上版本。
1111
- ### whl
1212

1313
```shell
14-
pip install cloudtower_sdk-2.0.0-py2.py3-none-any.whl
14+
pip install cloudtower_sdk-2.3.0-py2.py3-none-any.whl
1515
```
1616

1717
- ### tar.gz
1818

1919
```shell
20-
tar xvzf cloudtower-sdk-2.0.0.tar.gz
21-
cd cloudtower-sdk-2.0.0
20+
tar xvzf cloudtower-sdk-2.3.0.tar.gz
21+
cd cloudtower-sdk-2.3.0
2222
python setup.py install
2323
```
2424

RELEASENOTE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# RELEASE NOTE
22

3+
## release 日期 2022-09-05
4+
5+
v2.3.0 release
6+
7+
- feature:VmVolumeSnapshotApi: [get_vm_volume_snapshots] 新增虚拟卷快照查询 api
8+
- feature:VmVolumeSnapshotApi: [create_vm_volume_snapshot] 新增创建虚拟卷快照 api
9+
- feature:VmVolumeSnapshotApi: [delete_vm_volume_snapshot] 新增删除虚拟卷快照 api
10+
- feature:VmVolumeApi: [clone_vm_volume] 新增克隆虚拟卷 api
11+
- feature:VmVolumeApi: [rebuild_vm_volume] 新增通过虚拟卷快照重建虚拟卷 api
12+
- feature:VmVolumeApi: [rollback_vm_volume] 新增回滚虚拟卷至指定虚拟卷快照 api
13+
- feature:VmVolumeApi: [update_vm_volume] 新增编辑虚拟卷 api
14+
- feature:UserApi: [get_my_info] 新增查询当前 client 对应用户 api
15+
- feature:VersionApi: [get_api_info] 新增查询当前 api 版本 api
16+
- feature:VmApi: 新增内容库镜像支持,[vm_cd_rom_params] 支持传入 `content_library_image_id` 来挂载内容库镜像
17+
- optimize: 优化 `WaitTask`, `WaitTasks` 方法,并且在没有搜索到对应 `taskId` 的 task 情况下,尝试等待 task 被创建或直到超时
18+
319
## release 日期 2022-08-12
420

521
v2.2.0 release

cloudtower/__init__.py

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,15 @@
11
# coding: utf-8
22

33
# flake8: noqa
4-
5-
"""
6-
CloudTower APIs
7-
8-
cloudtower operation API and SDK # noqa: E501
9-
10-
The version of the OpenAPI document: 2.2.0
11-
12-
Generated by: https://openapi-generator.tech
13-
"""
14-
15-
164
from __future__ import absolute_import
175

18-
__version__ = "2.2.0"
6+
__version__ = "2.3.0"
197

208
# import apis into sdk package
219
from cloudtower.api.alert_api import AlertApi
2210
from cloudtower.api.alert_notifier_api import AlertNotifierApi
2311
from cloudtower.api.alert_rule_api import AlertRuleApi
12+
from cloudtower.api.api_info_api import ApiInfoApi
2413
from cloudtower.api.application_api import ApplicationApi
2514
from cloudtower.api.brick_topo_api import BrickTopoApi
2615
from cloudtower.api.cluster_api import ClusterApi
@@ -99,6 +88,7 @@
9988
from cloudtower.api.vm_snapshot_api import VmSnapshotApi
10089
from cloudtower.api.vm_template_api import VmTemplateApi
10190
from cloudtower.api.vm_volume_api import VmVolumeApi
91+
from cloudtower.api.vm_volume_snapshot_api import VmVolumeSnapshotApi
10292
from cloudtower.api.vsphere_esxi_account_api import VsphereEsxiAccountApi
10393
from cloudtower.api.witness_api import WitnessApi
10494
from cloudtower.api.witness_service_api import WitnessServiceApi
@@ -156,6 +146,8 @@
156146
from cloudtower.models.brick_topo_where_input import BrickTopoWhereInput
157147
from cloudtower.models.bus import Bus
158148
from cloudtower.models.cancel_upload_task_params import CancelUploadTaskParams
149+
from cloudtower.models.clone_vm_volume_params import CloneVmVolumeParams
150+
from cloudtower.models.clone_vm_volume_params_data import CloneVmVolumeParamsData
159151
from cloudtower.models.cloud_init_net_work import CloudInitNetWork
160152
from cloudtower.models.cloud_init_net_work_route import CloudInitNetWorkRoute
161153
from cloudtower.models.cloud_init_network_type_enum import CloudInitNetworkTypeEnum
@@ -291,6 +283,7 @@
291283
from cloudtower.models.delete_vm_snapshot import DeleteVmSnapshot
292284
from cloudtower.models.delete_vm_template import DeleteVmTemplate
293285
from cloudtower.models.delete_vm_volume import DeleteVmVolume
286+
from cloudtower.models.delete_vm_volume_snapshot import DeleteVmVolumeSnapshot
294287
from cloudtower.models.deploy import Deploy
295288
from cloudtower.models.deploy_connection import DeployConnection
296289
from cloudtower.models.deploy_order_by_input import DeployOrderByInput
@@ -524,6 +517,8 @@
524517
from cloudtower.models.get_vm_templates_connection_request_body import GetVmTemplatesConnectionRequestBody
525518
from cloudtower.models.get_vm_templates_request_body import GetVmTemplatesRequestBody
526519
from cloudtower.models.get_vm_volume_metric_input import GetVmVolumeMetricInput
520+
from cloudtower.models.get_vm_volume_snapshots_connection_request_body import GetVmVolumeSnapshotsConnectionRequestBody
521+
from cloudtower.models.get_vm_volume_snapshots_request_body import GetVmVolumeSnapshotsRequestBody
527522
from cloudtower.models.get_vm_volumes_connection_request_body import GetVmVolumesConnectionRequestBody
528523
from cloudtower.models.get_vm_volumes_request_body import GetVmVolumesRequestBody
529524
from cloudtower.models.get_vms_connection_request_body import GetVmsConnectionRequestBody
@@ -745,6 +740,7 @@
745740
from cloudtower.models.nested_aggregate_vm_snapshot import NestedAggregateVmSnapshot
746741
from cloudtower.models.nested_aggregate_vm_template import NestedAggregateVmTemplate
747742
from cloudtower.models.nested_aggregate_vm_volume import NestedAggregateVmVolume
743+
from cloudtower.models.nested_aggregate_vm_volume_snapshot import NestedAggregateVmVolumeSnapshot
748744
from cloudtower.models.nested_aggregate_vsphere_esxi_account import NestedAggregateVsphereEsxiAccount
749745
from cloudtower.models.nested_aggregate_witness import NestedAggregateWitness
750746
from cloudtower.models.nested_aggregate_zone import NestedAggregateZone
@@ -1048,6 +1044,8 @@
10481044
from cloudtower.models.update_session_timeout_params import UpdateSessionTimeoutParams
10491045
from cloudtower.models.update_vcenter_account_params import UpdateVcenterAccountParams
10501046
from cloudtower.models.update_vcenter_account_params_data import UpdateVcenterAccountParamsData
1047+
from cloudtower.models.update_vm_volume_params import UpdateVmVolumeParams
1048+
from cloudtower.models.update_vm_volume_params_data import UpdateVmVolumeParamsData
10511049
from cloudtower.models.update_vsphere_esxi_account_params import UpdateVsphereEsxiAccountParams
10521050
from cloudtower.models.update_vsphere_esxi_account_params_data import UpdateVsphereEsxiAccountParamsData
10531051
from cloudtower.models.upload_resource_type import UploadResourceType
@@ -1238,7 +1236,18 @@
12381236
from cloudtower.models.vm_volume_deletion_params import VmVolumeDeletionParams
12391237
from cloudtower.models.vm_volume_elf_storage_policy_type import VmVolumeElfStoragePolicyType
12401238
from cloudtower.models.vm_volume_order_by_input import VmVolumeOrderByInput
1239+
from cloudtower.models.vm_volume_rebuild_params import VmVolumeRebuildParams
1240+
from cloudtower.models.vm_volume_rollback_params import VmVolumeRollbackParams
1241+
from cloudtower.models.vm_volume_snapshot import VmVolumeSnapshot
1242+
from cloudtower.models.vm_volume_snapshot_connection import VmVolumeSnapshotConnection
1243+
from cloudtower.models.vm_volume_snapshot_creation_params import VmVolumeSnapshotCreationParams
1244+
from cloudtower.models.vm_volume_snapshot_deletion_params import VmVolumeSnapshotDeletionParams
1245+
from cloudtower.models.vm_volume_snapshot_order_by_input import VmVolumeSnapshotOrderByInput
1246+
from cloudtower.models.vm_volume_snapshot_type import VmVolumeSnapshotType
1247+
from cloudtower.models.vm_volume_snapshot_where_input import VmVolumeSnapshotWhereInput
1248+
from cloudtower.models.vm_volume_type import VmVolumeType
12411249
from cloudtower.models.vm_volume_where_input import VmVolumeWhereInput
1250+
from cloudtower.models.vm_volume_where_unique_input import VmVolumeWhereUniqueInput
12421251
from cloudtower.models.vm_where_input import VmWhereInput
12431252
from cloudtower.models.vm_where_unique_input import VmWhereUniqueInput
12441253
from cloudtower.models.vsphere_esxi_account import VsphereEsxiAccount
@@ -1295,6 +1304,7 @@
12951304
from cloudtower.models.with_task_delete_vm_snapshot import WithTaskDeleteVmSnapshot
12961305
from cloudtower.models.with_task_delete_vm_template import WithTaskDeleteVmTemplate
12971306
from cloudtower.models.with_task_delete_vm_volume import WithTaskDeleteVmVolume
1307+
from cloudtower.models.with_task_delete_vm_volume_snapshot import WithTaskDeleteVmVolumeSnapshot
12981308
from cloudtower.models.with_task_disk import WithTaskDisk
12991309
from cloudtower.models.with_task_elf_image import WithTaskElfImage
13001310
from cloudtower.models.with_task_entity_filter import WithTaskEntityFilter
@@ -1339,6 +1349,7 @@
13391349
from cloudtower.models.with_task_vm_snapshot import WithTaskVmSnapshot
13401350
from cloudtower.models.with_task_vm_template import WithTaskVmTemplate
13411351
from cloudtower.models.with_task_vm_volume import WithTaskVmVolume
1352+
from cloudtower.models.with_task_vm_volume_snapshot import WithTaskVmVolumeSnapshot
13421353
from cloudtower.models.with_task_vsphere_esxi_account_array import WithTaskVsphereEsxiAccountArray
13431354
from cloudtower.models.witness import Witness
13441355
from cloudtower.models.witness_connection import WitnessConnection

cloudtower/api/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from cloudtower.api.alert_api import AlertApi
77
from cloudtower.api.alert_notifier_api import AlertNotifierApi
88
from cloudtower.api.alert_rule_api import AlertRuleApi
9+
from cloudtower.api.api_info_api import ApiInfoApi
910
from cloudtower.api.application_api import ApplicationApi
1011
from cloudtower.api.brick_topo_api import BrickTopoApi
1112
from cloudtower.api.cluster_api import ClusterApi
@@ -84,6 +85,7 @@
8485
from cloudtower.api.vm_snapshot_api import VmSnapshotApi
8586
from cloudtower.api.vm_template_api import VmTemplateApi
8687
from cloudtower.api.vm_volume_api import VmVolumeApi
88+
from cloudtower.api.vm_volume_snapshot_api import VmVolumeSnapshotApi
8789
from cloudtower.api.vsphere_esxi_account_api import VsphereEsxiAccountApi
8890
from cloudtower.api.witness_api import WitnessApi
8991
from cloudtower.api.witness_service_api import WitnessServiceApi

cloudtower/api/alert_api.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
# coding: utf-8
2-
3-
"""
4-
CloudTower APIs
5-
6-
cloudtower operation API and SDK # noqa: E501
7-
8-
The version of the OpenAPI document: 2.2.0
9-
10-
Generated by: https://openapi-generator.tech
11-
"""
12-
13-
142
from __future__ import absolute_import
153

164
import re # noqa: F401

cloudtower/api/alert_notifier_api.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
# coding: utf-8
2-
3-
"""
4-
CloudTower APIs
5-
6-
cloudtower operation API and SDK # noqa: E501
7-
8-
The version of the OpenAPI document: 2.2.0
9-
10-
Generated by: https://openapi-generator.tech
11-
"""
12-
13-
142
from __future__ import absolute_import
153

164
import re # noqa: F401

cloudtower/api/alert_rule_api.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
# coding: utf-8
2-
3-
"""
4-
CloudTower APIs
5-
6-
cloudtower operation API and SDK # noqa: E501
7-
8-
The version of the OpenAPI document: 2.2.0
9-
10-
Generated by: https://openapi-generator.tech
11-
"""
12-
13-
142
from __future__ import absolute_import
153

164
import re # noqa: F401

0 commit comments

Comments
 (0)