Skip to content

Commit

Permalink
update to v2.13.0 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Sczlog committed Nov 7, 2023
1 parent 1b850bf commit 2c11cf0
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 34 deletions.
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.12.0-py2.py3-none-any.whl
pip install cloudtower_sdk-2.13.0-py2.py3-none-any.whl
```

- ### tar.gz

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

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

## release 日期 2023-11-07

v2.13.0 release (tower version 3.4.0)

### update

- [ROLEACTION] 新增 `SMTX_INSPECTOR`

## release 日期 2023-10-19

v2.12.0 release (tower version 3.3.0)
Expand Down
2 changes: 1 addition & 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.12.0"
__version__ = "2.13.0"

# import apis into sdk package
from cloudtower.api.alert_api import AlertApi
Expand Down
4 changes: 2 additions & 2 deletions cloudtower/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
cloudtower operation API and SDK # noqa: E501
The version of the OpenAPI document: 2.12.0
The version of the OpenAPI document: 2.13.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/2.12.0/python'
self.user_agent = 'OpenAPI-Generator/2.13.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
4 changes: 2 additions & 2 deletions cloudtower/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 2.12.0\n"\
"SDK Package Version: 2.12.0".\
"Version of the API: 2.13.0\n"\
"SDK Package Version: 2.13.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
3 changes: 2 additions & 1 deletion cloudtower/models/roleaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ class ROLEACTION(object):
MANAGE_REPLICATION_TASK = "MANAGE_REPLICATION_TASK"
MANAGE_REPLICATION_FAULT_TASK = "MANAGE_REPLICATION_FAULT_TASK"
MANAGE_CLUSTER_PRIORITIZED = "MANAGE_CLUSTER_PRIORITIZED"
SMTX_INSPECTOR = "SMTX_INSPECTOR"

allowable_values = [_, MANAGE_DATA_CENTER, MANAGE_CLUSTER_CONNECTION, MANAGE_HOST, MANAGE_NIC_MTU, MANAGE_DISK, MANAGE_HARDWARE_TOPO, MANAGE_USB_DEVICE, MANAGE_GPU_DEVICE, MANAGE_VDS, MANAGE_VLAN, MANAGE_SYSTEM_VLAN, MANAGE_ISCSI_DATA_STORE, MANAGE_NFS_DATA_STORE, MANAGE_NVMF_DATA_STORE, CREATE_VM, UPDATE_VM, DELETE_VM, UPDATE_VM_ADVANCED_SETTING, UPDATE_VM_GUEST, VM_OPERATION_OPEN_TERMINAL, VM_OPERATION_MIGRATE, VM_OPERATION_VM_FOLDER, VM_OPERATION_VM_POWER, VM_OPERATION_CLONE, VM_OPERATION_INSTALL_TOOLS, VM_IMPORT_EXPORT, CREATE_VM_TEMPLATE, MANAGE_VM_TEMPLATE, VM_TEMPLATE_IMPORT_EXPORT, MANAGE_VM_SNAPSHOT, MANAGE_VM_VOLUME, VM_VOLUME_IMPORT_EXPORT, MANAGE_ISO, QUERY_SENSITIVE_RESOURCE_LIST, QUERY_SENSITIVE_RESOURCE, MANAGE_SENSITIVE_RESOURCE, MANAGE_VM_PLACEMENT_GROUP, MANAGE_SNAPSHOT_PLAN, MANAGE_ALERT, MANAGE_MONITOR_VIEW, MANAGE_ENTITY_FILTER, MANAGE_CLUSTER_BASIC_INFO, MANAGE_CLUSTER_LICENCE, MANAGE_CLUSTER_SNMP_TRANSPORT, MANAGE_SNMP_TRAP, MANAGE_CLUSTER_VIP, MANAGE_CLUSTER_MANAGEMENT_IP, MANAGE_DNS_SERVER, MANAGE_NTP_SERVER, MANAGE_IPMI, MANAGE_CLUSTER_VM_CPU_MODEL, MANAGE_CLUSTER_VM_TOOLS, MANAGE_CLUSTER_HOT_MIGRATION, MANAGE_CLUSTER_HA, MANAGE_SSL_CERTIFICATE, MANAGE_LOG_COLLECTION, MANAGE_SYSLOG, MANAGE_LOG_FIND, MANAGE_LABEL, MANAGE_USER_AND_ROLE, MANAGE_PASSWORD_SETTINGS, MANAGE_ACCESS_CONTROL, MANAGE_SESSION_EXPIRATION, MANAGE_VCENTER_ASSOCIATION, MANAGE_ESXI_ASSOCIATION, MANAGE_AUDIT_LOG, MANAGE_ALERT_EMAIL_SETTING, MANAGE_SMTP_SERVER, MANAGE_CLUSTER_UPGRADE, MANAGE_VM_RECYCLE_BIN_SETTING, MANAGE_REPORT, MANAGE_SHARING_VM_TOOLS, MANAGE_ADVANCED_MONITOR, MANAGE_THIRD_PARTY_DRIVER, MANAGE_ORGANIZATION_NAME, MANAGE_CLOUD_TOWER_LICENSE, MANAGE_CONSISTENCY_GROUP, MANAGE_NIC, MANAGE_CLUSTER_ISCSI, MANAGE_BACKUP_LICENSE, MANAGE_BACKUP_PACKAGE, MANAGE_BACKUP_SERVICE, MANAGE_BACKUP_STORE_REPOSITORY, MANAGE_BACKUP_PLAN, MANAGE_BACKUP_TASK, MANAGE_BACKUP_RESTORE_POINT, MANAGE_BACKUP_RESTORE_POINT_TASK, MANAGE_SECURITY_POLICY, MANAGE_SECURITY_GROUP, ISOLATE_VM, MANAGE_EVEROUTE_LICENSE, MANAGE_EVEROUTE_PACKAGE, DEPLOY_EVEROUTE_CLUSTER, UNDEPLOY_EVEROUTE_CLUSTER, UPDATE_EVEROUTE_CLUSTER, UPGRADE_EVEROUTE_CLUSTER, MANAGE_EVEROUTE_NETWORK_POLICY_RULE_SERVICE, MANAGE_EVEROUTE_CLUSTER_ASSOCIATION, MANAGE_EVEROUTE_CLUSTER_GLOBAL_POLICY, MANAGE_MICRO_SEGMENTATION, MANAGE_LOAD_BALANCER_RESOURCE, MANAGE_LOAD_BALANCER, MANAGE_LOAD_BALANCER_VNET_BOND, MANAGE_LDAP_AD_CONFIG, MANAGE_MFA_CONFIG, MANAGE_DEFAULT_LOGIN_OPTION, MANAGE_CLUSTER_STORAGE_POLICY, MANAGE_SKS_SERVICE, MANAGE_SKS_LICENSE, CONFIGURE_SKS_SERVICE, CREATE_SKS_WORKLOAD_CLUSTER, DELETE_SKS_WORKLOAD_CLUSTER, UPDATE_SKS_WORKLOAD_CLUSTER, DOWNLOAD_SKS_WORKLOAD_CLUSTER_KUBECONFIG, MANAGE_SKS_WORKLOAD_CLUSTER_RECONCILE, MANAGE_OBSERVABILITY_PACKAGE, MANAGE_OBSERVABILITY_SERVICE, CONFIG_DYNAMIC_RESOURCE_SCHEDULE, GENERATE_DRS_PROPOSALS, APPLY_DRS_PROPOSAL, MANAGE_AGENT_MESH, MANAGE_REPLICATION_SERVICE, MANAGE_REPLICATION_RESTORE_POINT, MANAGE_REPLICATION_PLAN, MANAGE_REPLICATION_TASK, MANAGE_REPLICATION_FAULT_TASK, MANAGE_CLUSTER_PRIORITIZED] # noqa: E501
allowable_values = [_, MANAGE_DATA_CENTER, MANAGE_CLUSTER_CONNECTION, MANAGE_HOST, MANAGE_NIC_MTU, MANAGE_DISK, MANAGE_HARDWARE_TOPO, MANAGE_USB_DEVICE, MANAGE_GPU_DEVICE, MANAGE_VDS, MANAGE_VLAN, MANAGE_SYSTEM_VLAN, MANAGE_ISCSI_DATA_STORE, MANAGE_NFS_DATA_STORE, MANAGE_NVMF_DATA_STORE, CREATE_VM, UPDATE_VM, DELETE_VM, UPDATE_VM_ADVANCED_SETTING, UPDATE_VM_GUEST, VM_OPERATION_OPEN_TERMINAL, VM_OPERATION_MIGRATE, VM_OPERATION_VM_FOLDER, VM_OPERATION_VM_POWER, VM_OPERATION_CLONE, VM_OPERATION_INSTALL_TOOLS, VM_IMPORT_EXPORT, CREATE_VM_TEMPLATE, MANAGE_VM_TEMPLATE, VM_TEMPLATE_IMPORT_EXPORT, MANAGE_VM_SNAPSHOT, MANAGE_VM_VOLUME, VM_VOLUME_IMPORT_EXPORT, MANAGE_ISO, QUERY_SENSITIVE_RESOURCE_LIST, QUERY_SENSITIVE_RESOURCE, MANAGE_SENSITIVE_RESOURCE, MANAGE_VM_PLACEMENT_GROUP, MANAGE_SNAPSHOT_PLAN, MANAGE_ALERT, MANAGE_MONITOR_VIEW, MANAGE_ENTITY_FILTER, MANAGE_CLUSTER_BASIC_INFO, MANAGE_CLUSTER_LICENCE, MANAGE_CLUSTER_SNMP_TRANSPORT, MANAGE_SNMP_TRAP, MANAGE_CLUSTER_VIP, MANAGE_CLUSTER_MANAGEMENT_IP, MANAGE_DNS_SERVER, MANAGE_NTP_SERVER, MANAGE_IPMI, MANAGE_CLUSTER_VM_CPU_MODEL, MANAGE_CLUSTER_VM_TOOLS, MANAGE_CLUSTER_HOT_MIGRATION, MANAGE_CLUSTER_HA, MANAGE_SSL_CERTIFICATE, MANAGE_LOG_COLLECTION, MANAGE_SYSLOG, MANAGE_LOG_FIND, MANAGE_LABEL, MANAGE_USER_AND_ROLE, MANAGE_PASSWORD_SETTINGS, MANAGE_ACCESS_CONTROL, MANAGE_SESSION_EXPIRATION, MANAGE_VCENTER_ASSOCIATION, MANAGE_ESXI_ASSOCIATION, MANAGE_AUDIT_LOG, MANAGE_ALERT_EMAIL_SETTING, MANAGE_SMTP_SERVER, MANAGE_CLUSTER_UPGRADE, MANAGE_VM_RECYCLE_BIN_SETTING, MANAGE_REPORT, MANAGE_SHARING_VM_TOOLS, MANAGE_ADVANCED_MONITOR, MANAGE_THIRD_PARTY_DRIVER, MANAGE_ORGANIZATION_NAME, MANAGE_CLOUD_TOWER_LICENSE, MANAGE_CONSISTENCY_GROUP, MANAGE_NIC, MANAGE_CLUSTER_ISCSI, MANAGE_BACKUP_LICENSE, MANAGE_BACKUP_PACKAGE, MANAGE_BACKUP_SERVICE, MANAGE_BACKUP_STORE_REPOSITORY, MANAGE_BACKUP_PLAN, MANAGE_BACKUP_TASK, MANAGE_BACKUP_RESTORE_POINT, MANAGE_BACKUP_RESTORE_POINT_TASK, MANAGE_SECURITY_POLICY, MANAGE_SECURITY_GROUP, ISOLATE_VM, MANAGE_EVEROUTE_LICENSE, MANAGE_EVEROUTE_PACKAGE, DEPLOY_EVEROUTE_CLUSTER, UNDEPLOY_EVEROUTE_CLUSTER, UPDATE_EVEROUTE_CLUSTER, UPGRADE_EVEROUTE_CLUSTER, MANAGE_EVEROUTE_NETWORK_POLICY_RULE_SERVICE, MANAGE_EVEROUTE_CLUSTER_ASSOCIATION, MANAGE_EVEROUTE_CLUSTER_GLOBAL_POLICY, MANAGE_MICRO_SEGMENTATION, MANAGE_LOAD_BALANCER_RESOURCE, MANAGE_LOAD_BALANCER, MANAGE_LOAD_BALANCER_VNET_BOND, MANAGE_LDAP_AD_CONFIG, MANAGE_MFA_CONFIG, MANAGE_DEFAULT_LOGIN_OPTION, MANAGE_CLUSTER_STORAGE_POLICY, MANAGE_SKS_SERVICE, MANAGE_SKS_LICENSE, CONFIGURE_SKS_SERVICE, CREATE_SKS_WORKLOAD_CLUSTER, DELETE_SKS_WORKLOAD_CLUSTER, UPDATE_SKS_WORKLOAD_CLUSTER, DOWNLOAD_SKS_WORKLOAD_CLUSTER_KUBECONFIG, MANAGE_SKS_WORKLOAD_CLUSTER_RECONCILE, MANAGE_OBSERVABILITY_PACKAGE, MANAGE_OBSERVABILITY_SERVICE, CONFIG_DYNAMIC_RESOURCE_SCHEDULE, GENERATE_DRS_PROPOSALS, APPLY_DRS_PROPOSAL, MANAGE_AGENT_MESH, MANAGE_REPLICATION_SERVICE, MANAGE_REPLICATION_RESTORE_POINT, MANAGE_REPLICATION_PLAN, MANAGE_REPLICATION_TASK, MANAGE_REPLICATION_FAULT_TASK, MANAGE_CLUSTER_PRIORITIZED, SMTX_INSPECTOR] # noqa: E501

"""
Attributes:
Expand Down
39 changes: 14 additions & 25 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
# coding: utf-8

"""
CloudTower APIs
cloudtower operation API and SDK # noqa: E501
The version of the OpenAPI document: 2.12.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""

import os
import io
"""
CloudTower APIs
cloudtower operation API and SDK # noqa: E501
The version of the OpenAPI document: 2.13.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""


import pathlib
from setuptools import setup, find_packages # noqa: H301

NAME = "cloudtower-sdk"
VERSION = "2.12.0"


# Get the parent directory of the current script
parent_dir = os.path.dirname(os.path.abspath(__file__))

# Get the contents of the README.md file as a string
with io.open(os.path.join(parent_dir, "README.md"), "r", encoding="utf-8") as f:
readme_contents = f.read()

# Define the long description for the package
long_description = readme_contents
VERSION = "2.13.0"
# To install the library, run the following
#
# python setup.py install
Expand All @@ -48,5 +37,5 @@
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
long_description_content_type='text/markdown',
long_description=long_description,
long_description=(pathlib.Path(__file__).parent / "README.md").read_text(encoding="UTF-8"),
)

0 comments on commit 2c11cf0

Please sign in to comment.