From c206e9493122aa9eb25d41744d13d556542d124c Mon Sep 17 00:00:00 2001 From: Shenwen Yin Date: Tue, 9 Jan 2024 13:37:18 +0800 Subject: [PATCH] bugfix: fix invalid VmVolumeElfSotargePolicyType enum --- README.md | 6 +++--- RELEASENOTE.md | 8 ++++++++ cloudtower/__init__.py | 2 +- cloudtower/api_client.py | 4 ++-- cloudtower/configuration.py | 4 ++-- .../vm_volume_elf_storage_policy_type.py | 2 +- setup.py | 20 +++++++++---------- 7 files changed, 27 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index bf7925e2..b5caccb0 100644 --- a/README.md +++ b/README.md @@ -11,14 +11,14 @@ Python 环境下的 Cloudtower SDK,适用于 2.7 与 3.4 以上版本。 - ### whl ```shell - pip install cloudtower_sdk-2.14.0-py2.py3-none-any.whl + pip install cloudtower_sdk-2.14.1-py2.py3-none-any.whl ``` - ### tar.gz ```shell - tar xvzf cloudtower-sdk-2.14.0.tar.gz - cd cloudtower-sdk-2.14.0 + tar xvzf cloudtower-sdk-2.14.1.tar.gz + cd cloudtower-sdk-2.14.1 python setup.py install ``` diff --git a/RELEASENOTE.md b/RELEASENOTE.md index a20afc55..28f3473b 100644 --- a/RELEASENOTE.md +++ b/RELEASENOTE.md @@ -1,5 +1,13 @@ # RELEASE NOTE +## release 日期 2024-01-09 + +v2.14.1 release (tower version 4.0.0) + +### bugfix + +- [VmVolumeElfStoragePolicyType]\: 修复错误的枚举类型 + ## release 日期 2024-01-04 v2.14.0 release (tower version 4.0.0) diff --git a/cloudtower/__init__.py b/cloudtower/__init__.py index ff0c8a2d..2ecb41b4 100644 --- a/cloudtower/__init__.py +++ b/cloudtower/__init__.py @@ -3,7 +3,7 @@ # flake8: noqa from __future__ import absolute_import -__version__ = "2.14.0" +__version__ = "2.14.1" # import apis into sdk package from cloudtower.api.alert_api import AlertApi diff --git a/cloudtower/api_client.py b/cloudtower/api_client.py index 00725ea1..235c6b29 100644 --- a/cloudtower/api_client.py +++ b/cloudtower/api_client.py @@ -4,7 +4,7 @@ cloudtower operation API and SDK # noqa: E501 - The version of the OpenAPI document: 2.14.0 + The version of the OpenAPI document: 2.14.1 Contact: info@smartx.com Generated by: https://openapi-generator.tech """ @@ -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.14.0/python' + self.user_agent = 'OpenAPI-Generator/2.14.1/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/cloudtower/configuration.py b/cloudtower/configuration.py index ff2890f3..7e489ee5 100644 --- a/cloudtower/configuration.py +++ b/cloudtower/configuration.py @@ -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.14.0\n"\ - "SDK Package Version: 2.14.0".\ + "Version of the API: 2.14.1\n"\ + "SDK Package Version: 2.14.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/cloudtower/models/vm_volume_elf_storage_policy_type.py b/cloudtower/models/vm_volume_elf_storage_policy_type.py index 1137e401..09b6e4b0 100644 --- a/cloudtower/models/vm_volume_elf_storage_policy_type.py +++ b/cloudtower/models/vm_volume_elf_storage_policy_type.py @@ -31,7 +31,7 @@ class VmVolumeElfStoragePolicyType(object): _3_THICK_PROVISION = "REPLICA_3_THICK_PROVISION" _3_THIN_PROVISION = "REPLICA_3_THIN_PROVISION" - allowable_values = [ELF_CP_REPLICA_2_THICK_PROVISION, ELF_CP_REPLICA_2_THIN_PROVISION, ELF_CP_REPLICA_3_THICK_PROVISION, ELF_CP_REPLICA_3_THIN_PROVISION, REPLICA_1_THICK_PROVISION, REPLICA_1_THIN_PROVISION, REPLICA_2_THICK_PROVISION, REPLICA_2_THIN_PROVISION, REPLICA_3_THICK_PROVISION, REPLICA_3_THIN_PROVISION] # noqa: E501 + allowable_values = [ELF_CP_REPLICA_2_THICK_PROVISION, ELF_CP_REPLICA_2_THIN_PROVISION, ELF_CP_REPLICA_3_THICK_PROVISION, ELF_CP_REPLICA_3_THIN_PROVISION, _1_THICK_PROVISION, _1_THIN_PROVISION, _2_THICK_PROVISION, _2_THIN_PROVISION, _3_THICK_PROVISION, _3_THIN_PROVISION] # noqa: E501 """ Attributes: diff --git a/setup.py b/setup.py index f90ef5e6..29f2dc64 100644 --- a/setup.py +++ b/setup.py @@ -1,21 +1,21 @@ # coding: utf-8 -""" - CloudTower APIs - - cloudtower operation API and SDK # noqa: E501 - - The version of the OpenAPI document: 2.14.0 - Contact: info@smartx.com - Generated by: https://openapi-generator.tech -""" +""" + CloudTower APIs + + cloudtower operation API and SDK # noqa: E501 + + The version of the OpenAPI document: 2.14.1 + Contact: info@smartx.com + Generated by: https://openapi-generator.tech +""" import pathlib from setuptools import setup, find_packages # noqa: H301 NAME = "cloudtower-sdk" -VERSION = "2.14.0" +VERSION = "2.14.1" # To install the library, run the following # # python setup.py install