diff --git a/CHANGELOG.md b/CHANGELOG.md index 4259bdb78a..67e42d3059 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,40 @@ +# 3.0.52 2021-07-16 + +### HuaweiCloud SDK AS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the request parameter `description` to the interface `CreateScalingV2Policy`. + - Add the response parameter `description` to the interfaces `ShowScalingV2Policy`, `ShowScalingGroup`. + +### HuaweiCloud SDK DCS + +- _Features_ + - Support more interfaces: + - `CreateDiagnosisTask` + - `CreateRedislog` + - `CreateRedislogDownloadLink` + - `ListDiagnosisTasks` + - `ListRedislog` + - `ListSlowlog` + - `ShowDiagnosisTaskDetails` +- _Bug Fix_ + - None +- _Change_ + - Add the request parameter `include_delete` to the interface `ListInstances`. + +### HuaweiCloud SDK IMS + +- _Features_ + - None +- _Bug Fix_ + - [Issue 40](https://github.com/huaweicloud/huaweicloud-sdk-java-v3/issues/40): Fix the issue that the type of the response parameter `__lazyloading` is incorrectly defined. +- _Change_ + - None + # 3.0.51 2021-07-09 ### HuaweiCloud SDK BMS diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 9bdd07ef2d..1e8faf75e0 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,40 @@ +# 3.0.52 2021-07-16 + +### HuaweiCloud SDK AS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`CreateScalingV2Policy`新增请求参数`description` + - 接口`ShowScalingV2Policy`、`ShowScalingGroup`新增响应参数`description` + +### HuaweiCloud SDK DCS + +- _新增特性_ + - 支持更多接口: + - `CreateDiagnosisTask` + - `CreateRedislog` + - `CreateRedislogDownloadLink` + - `ListDiagnosisTasks` + - `ListRedislog` + - `ListSlowlog` + - `ShowDiagnosisTaskDetails` +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListInstances`新增请求参数`include_delete` + +### HuaweiCloud SDK IMS + +- _新增特性_ + - 无 +- _解决问题_ + - [Issue 40](https://github.com/huaweicloud/huaweicloud-sdk-java-v3/issues/40): 修复响应参数`__lazyloading`类型定义错误的问题 +- _特性变更_ + - 无 + # 3.0.51 2021-07-09 ### HuaweiCloud SDK BMS diff --git a/examples/setup.py b/examples/setup.py index 2678eafd5a..4467b1fb6c 100644 --- a/examples/setup.py +++ b/examples/setup.py @@ -21,7 +21,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkexample" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index 220365eadd..d964260784 100644 --- a/huaweicloud-sdk-aom/setup.py +++ b/huaweicloud-sdk-aom/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaom" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index a7fd073084..e613cb9f60 100644 --- a/huaweicloud-sdk-apig/setup.py +++ b/huaweicloud-sdk-apig/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkapig" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/create_scaling_group_option.py b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/create_scaling_group_option.py index 9d0e1c3045..b9b8098e30 100644 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/create_scaling_group_option.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/create_scaling_group_option.py @@ -41,7 +41,8 @@ class CreateScalingGroupOption: 'delete_publicip': 'bool', 'delete_volume': 'bool', 'enterprise_project_id': 'str', - 'multi_az_priority_policy': 'str' + 'multi_az_priority_policy': 'str', + 'description': 'str' } attribute_map = { @@ -65,10 +66,11 @@ class CreateScalingGroupOption: 'delete_publicip': 'delete_publicip', 'delete_volume': 'delete_volume', 'enterprise_project_id': 'enterprise_project_id', - 'multi_az_priority_policy': 'multi_az_priority_policy' + 'multi_az_priority_policy': 'multi_az_priority_policy', + 'description': 'description' } - def __init__(self, scaling_group_name=None, scaling_configuration_id=None, desire_instance_number=None, min_instance_number=None, max_instance_number=None, cool_down_time=None, lb_listener_id=None, lbaas_listeners=None, available_zones=None, networks=None, security_groups=None, vpc_id=None, health_periodic_audit_method=None, health_periodic_audit_time=None, health_periodic_audit_grace_period=None, instance_terminate_policy=None, notifications=None, delete_publicip=None, delete_volume=None, enterprise_project_id=None, multi_az_priority_policy=None): + def __init__(self, scaling_group_name=None, scaling_configuration_id=None, desire_instance_number=None, min_instance_number=None, max_instance_number=None, cool_down_time=None, lb_listener_id=None, lbaas_listeners=None, available_zones=None, networks=None, security_groups=None, vpc_id=None, health_periodic_audit_method=None, health_periodic_audit_time=None, health_periodic_audit_grace_period=None, instance_terminate_policy=None, notifications=None, delete_publicip=None, delete_volume=None, enterprise_project_id=None, multi_az_priority_policy=None, description=None): """CreateScalingGroupOption - a model defined in huaweicloud sdk""" @@ -94,6 +96,7 @@ def __init__(self, scaling_group_name=None, scaling_configuration_id=None, desir self._delete_volume = None self._enterprise_project_id = None self._multi_az_priority_policy = None + self._description = None self.discriminator = None self.scaling_group_name = scaling_group_name @@ -135,6 +138,8 @@ def __init__(self, scaling_group_name=None, scaling_configuration_id=None, desir self.enterprise_project_id = enterprise_project_id if multi_az_priority_policy is not None: self.multi_az_priority_policy = multi_az_priority_policy + if description is not None: + self.description = description @property def scaling_group_name(self): @@ -338,7 +343,7 @@ def available_zones(self, available_zones): def networks(self): """Gets the networks of this CreateScalingGroupOption. - 网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。使用vpc_id通过查询VPC服务子网列表接口获取, 查询子网列表”。 + 网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。获取子网信息请参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 :return: The networks of this CreateScalingGroupOption. :rtype: list[Networks] @@ -349,7 +354,7 @@ def networks(self): def networks(self, networks): """Sets the networks of this CreateScalingGroupOption. - 网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。使用vpc_id通过查询VPC服务子网列表接口获取, 查询子网列表”。 + 网络信息,最多支持选择5个子网,传入的第一个子网默认作为云服务器的主网卡。获取子网信息请参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 :param networks: The networks of this CreateScalingGroupOption. :type: list[Networks] @@ -598,6 +603,28 @@ def multi_az_priority_policy(self, multi_az_priority_policy): """ self._multi_az_priority_policy = multi_az_priority_policy + @property + def description(self): + """Gets the description of this CreateScalingGroupOption. + + 伸缩组描述信息(0-256个字符) + + :return: The description of this CreateScalingGroupOption. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateScalingGroupOption. + + 伸缩组描述信息(0-256个字符) + + :param description: The description of this CreateScalingGroupOption. + :type: str + """ + self._description = description + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/create_scaling_policy_v2_option.py b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/create_scaling_policy_v2_option.py index 1a8e101987..73f76ea81c 100644 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/create_scaling_policy_v2_option.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/create_scaling_policy_v2_option.py @@ -28,7 +28,8 @@ class CreateScalingPolicyV2Option: 'alarm_id': 'str', 'scheduled_policy': 'ScheduledPolicy', 'scaling_policy_action': 'ScalingPolicyActionV2', - 'cool_down_time': 'int' + 'cool_down_time': 'int', + 'description': 'str' } attribute_map = { @@ -39,10 +40,11 @@ class CreateScalingPolicyV2Option: 'alarm_id': 'alarm_id', 'scheduled_policy': 'scheduled_policy', 'scaling_policy_action': 'scaling_policy_action', - 'cool_down_time': 'cool_down_time' + 'cool_down_time': 'cool_down_time', + 'description': 'description' } - def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_resource_type=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None): + def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_resource_type=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, description=None): """CreateScalingPolicyV2Option - a model defined in huaweicloud sdk""" @@ -55,6 +57,7 @@ def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_r self._scheduled_policy = None self._scaling_policy_action = None self._cool_down_time = None + self._description = None self.discriminator = None self.scaling_policy_name = scaling_policy_name @@ -69,6 +72,8 @@ def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_r self.scaling_policy_action = scaling_policy_action if cool_down_time is not None: self.cool_down_time = cool_down_time + if description is not None: + self.description = description @property def scaling_policy_name(self): @@ -242,6 +247,28 @@ def cool_down_time(self, cool_down_time): """ self._cool_down_time = cool_down_time + @property + def description(self): + """Gets the description of this CreateScalingPolicyV2Option. + + 伸缩策略描述(1-256个字符) + + :return: The description of this CreateScalingPolicyV2Option. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateScalingPolicyV2Option. + + 伸缩策略描述(1-256个字符) + + :param description: The description of this CreateScalingPolicyV2Option. + :type: str + """ + self._description = description + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/instance_config.py b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/instance_config.py index c3a7b720c2..c80552d805 100644 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/instance_config.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/instance_config.py @@ -96,8 +96,7 @@ def __init__(self, instance_id=None, flavor_ref=None, image_ref=None, disk=None, self.user_data = user_data if metadata is not None: self.metadata = metadata - if security_groups is not None: - self.security_groups = security_groups + self.security_groups = security_groups if server_group_id is not None: self.server_group_id = server_group_id if tenancy is not None: @@ -135,7 +134,7 @@ def instance_id(self, instance_id): def flavor_ref(self): """Gets the flavor_ref of this InstanceConfig. - 云服务器的规格ID。最多支持选择10个规格,多个规格ID以逗号分隔。云服务器的ID通过查询弹性云服务器规格详情和扩展信息列表接口获取,详情请参考查询云服务器规格详情和扩展信息列表。 + 云服务器的规格ID。最多支持选择10个规格,多个规格ID以逗号分隔。云服务器的ID通过查询弹性云服务器规格详情和扩展信息列表接口获取,详情请参考 [查询云服务器规格详情和扩展信息列表](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212656.html)。 :return: The flavor_ref of this InstanceConfig. :rtype: str @@ -146,7 +145,7 @@ def flavor_ref(self): def flavor_ref(self, flavor_ref): """Sets the flavor_ref of this InstanceConfig. - 云服务器的规格ID。最多支持选择10个规格,多个规格ID以逗号分隔。云服务器的ID通过查询弹性云服务器规格详情和扩展信息列表接口获取,详情请参考查询云服务器规格详情和扩展信息列表。 + 云服务器的规格ID。最多支持选择10个规格,多个规格ID以逗号分隔。云服务器的ID通过查询弹性云服务器规格详情和扩展信息列表接口获取,详情请参考 [查询云服务器规格详情和扩展信息列表](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212656.html)。 :param flavor_ref: The flavor_ref of this InstanceConfig. :type: str @@ -157,7 +156,7 @@ def flavor_ref(self, flavor_ref): def image_ref(self): """Gets the image_ref of this InstanceConfig. - 镜像ID,同image_id,通过查询镜像服务镜像列表接口获取,详见《镜像服务API参考》的“查询镜像列表”。 + 镜像ID,同image_id,指定创建实例时选择的镜像资源。通过查询镜像服务镜像列表接口获取,请参考[查询镜像列表](https://support.huaweicloud.com/api-ims/ims_03_0602.html)。 :return: The image_ref of this InstanceConfig. :rtype: str @@ -168,7 +167,7 @@ def image_ref(self): def image_ref(self, image_ref): """Sets the image_ref of this InstanceConfig. - 镜像ID,同image_id,通过查询镜像服务镜像列表接口获取,详见《镜像服务API参考》的“查询镜像列表”。 + 镜像ID,同image_id,指定创建实例时选择的镜像资源。通过查询镜像服务镜像列表接口获取,请参考[查询镜像列表](https://support.huaweicloud.com/api-ims/ims_03_0602.html)。 :param image_ref: The image_ref of this InstanceConfig. :type: str @@ -201,7 +200,7 @@ def disk(self, disk): def key_name(self): """Gets the key_name of this InstanceConfig. - 登录云服务器的SSH密钥名称,与adminPass互斥,且必选一个。Windoes弹性云服务器不支持使用密钥登陆方式。 + 登录云服务器的SSH密钥名称。 获取密钥对方式请参考[创建及导入SSH密钥对](https://support.huaweicloud.com/api-dew/CreateKeypair.html)。 说明: 当key_name与user_data同时指定时,user_data只做用户数据注入。 :return: The key_name of this InstanceConfig. :rtype: str @@ -212,7 +211,7 @@ def key_name(self): def key_name(self, key_name): """Sets the key_name of this InstanceConfig. - 登录云服务器的SSH密钥名称,与adminPass互斥,且必选一个。Windoes弹性云服务器不支持使用密钥登陆方式。 + 登录云服务器的SSH密钥名称。 获取密钥对方式请参考[创建及导入SSH密钥对](https://support.huaweicloud.com/api-dew/CreateKeypair.html)。 说明: 当key_name与user_data同时指定时,user_data只做用户数据注入。 :param key_name: The key_name of this InstanceConfig. :type: str diff --git a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/matches.py b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/matches.py index 7cdc975e2c..784411933f 100644 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/matches.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/matches.py @@ -39,10 +39,8 @@ def __init__(self, key=None, value=None): self._value = None self.discriminator = None - if key is not None: - self.key = key - if value is not None: - self.value = value + self.key = key + self.value = value @property def key(self): diff --git a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/networks.py b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/networks.py index 1b408bb7b4..27d4a0e950 100644 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/networks.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/networks.py @@ -52,7 +52,7 @@ def __init__(self, id=None, ipv6_enable=None, ipv6_bandwidth=None): def id(self): """Gets the id of this Networks. - 网络ID。 + 子网的网络id。 :return: The id of this Networks. :rtype: str @@ -63,7 +63,7 @@ def id(self): def id(self, id): """Sets the id of this Networks. - 网络ID。 + 子网的网络id。 :param id: The id of this Networks. :type: str diff --git a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_all_policy_detail.py b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_all_policy_detail.py index 29af731f1a..be0a85e6a7 100644 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_all_policy_detail.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_all_policy_detail.py @@ -32,7 +32,8 @@ class ScalingAllPolicyDetail: 'scaling_policy_action': 'ScalingPolicyActionV2', 'cool_down_time': 'int', 'create_time': 'datetime', - 'meta_data': 'ScalingPolicyV2MetaData' + 'meta_data': 'ScalingPolicyV2MetaData', + 'description': 'str' } attribute_map = { @@ -47,10 +48,11 @@ class ScalingAllPolicyDetail: 'scaling_policy_action': 'scaling_policy_action', 'cool_down_time': 'cool_down_time', 'create_time': 'create_time', - 'meta_data': 'meta_data' + 'meta_data': 'meta_data', + 'description': 'description' } - def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, create_time=None, meta_data=None): + def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, create_time=None, meta_data=None, description=None): """ScalingAllPolicyDetail - a model defined in huaweicloud sdk""" @@ -67,6 +69,7 @@ def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_res self._cool_down_time = None self._create_time = None self._meta_data = None + self._description = None self.discriminator = None if scaling_policy_name is not None: @@ -93,6 +96,8 @@ def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_res self.create_time = create_time if meta_data is not None: self.meta_data = meta_data + if description is not None: + self.description = description @property def scaling_policy_name(self): @@ -352,6 +357,28 @@ def meta_data(self, meta_data): """ self._meta_data = meta_data + @property + def description(self): + """Gets the description of this ScalingAllPolicyDetail. + + 伸缩策略描述(1-256个字符) + + :return: The description of this ScalingAllPolicyDetail. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ScalingAllPolicyDetail. + + 伸缩策略描述(1-256个字符) + + :param description: The description of this ScalingAllPolicyDetail. + :type: str + """ + self._description = description + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_groups.py b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_groups.py index 6e32b7e57d..dea9e9f690 100644 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_groups.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_groups.py @@ -50,7 +50,8 @@ class ScalingGroups: 'cloud_location_id': 'str', 'enterprise_project_id': 'str', 'activity_type': 'str', - 'multi_az_priority_policy': 'str' + 'multi_az_priority_policy': 'str', + 'description': 'str' } attribute_map = { @@ -83,10 +84,11 @@ class ScalingGroups: 'cloud_location_id': 'cloud_location_id', 'enterprise_project_id': 'enterprise_project_id', 'activity_type': 'activity_type', - 'multi_az_priority_policy': 'multi_az_priority_policy' + 'multi_az_priority_policy': 'multi_az_priority_policy', + 'description': 'description' } - def __init__(self, scaling_group_name=None, scaling_group_id=None, scaling_group_status=None, scaling_configuration_id=None, scaling_configuration_name=None, current_instance_number=None, desire_instance_number=None, min_instance_number=None, max_instance_number=None, cool_down_time=None, lb_listener_id=None, lbaas_listeners=None, available_zones=None, networks=None, security_groups=None, create_time=None, vpc_id=None, detail=None, is_scaling=None, health_periodic_audit_method=None, health_periodic_audit_time=None, health_periodic_audit_grace_period=None, instance_terminate_policy=None, notifications=None, delete_publicip=None, delete_volume=None, cloud_location_id=None, enterprise_project_id=None, activity_type=None, multi_az_priority_policy=None): + def __init__(self, scaling_group_name=None, scaling_group_id=None, scaling_group_status=None, scaling_configuration_id=None, scaling_configuration_name=None, current_instance_number=None, desire_instance_number=None, min_instance_number=None, max_instance_number=None, cool_down_time=None, lb_listener_id=None, lbaas_listeners=None, available_zones=None, networks=None, security_groups=None, create_time=None, vpc_id=None, detail=None, is_scaling=None, health_periodic_audit_method=None, health_periodic_audit_time=None, health_periodic_audit_grace_period=None, instance_terminate_policy=None, notifications=None, delete_publicip=None, delete_volume=None, cloud_location_id=None, enterprise_project_id=None, activity_type=None, multi_az_priority_policy=None, description=None): """ScalingGroups - a model defined in huaweicloud sdk""" @@ -121,6 +123,7 @@ def __init__(self, scaling_group_name=None, scaling_group_id=None, scaling_group self._enterprise_project_id = None self._activity_type = None self._multi_az_priority_policy = None + self._description = None self.discriminator = None if scaling_group_name is not None: @@ -183,6 +186,8 @@ def __init__(self, scaling_group_name=None, scaling_group_id=None, scaling_group self.activity_type = activity_type if multi_az_priority_policy is not None: self.multi_az_priority_policy = multi_az_priority_policy + if description is not None: + self.description = description @property def scaling_group_name(self): @@ -844,6 +849,28 @@ def multi_az_priority_policy(self, multi_az_priority_policy): """ self._multi_az_priority_policy = multi_az_priority_policy + @property + def description(self): + """Gets the description of this ScalingGroups. + + 伸缩组描述信息 + + :return: The description of this ScalingGroups. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ScalingGroups. + + 伸缩组描述信息 + + :param description: The description of this ScalingGroups. + :type: str + """ + self._description = description + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_policies_v2.py b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_policies_v2.py index 8f45e993ba..a5a3901188 100644 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_policies_v2.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_policies_v2.py @@ -32,7 +32,8 @@ class ScalingPoliciesV2: 'scaling_policy_action': 'ScalingPolicyActionV2', 'cool_down_time': 'int', 'create_time': 'datetime', - 'meta_data': 'ScalingPolicyV2MetaData' + 'meta_data': 'ScalingPolicyV2MetaData', + 'description': 'str' } attribute_map = { @@ -47,10 +48,11 @@ class ScalingPoliciesV2: 'scaling_policy_action': 'scaling_policy_action', 'cool_down_time': 'cool_down_time', 'create_time': 'create_time', - 'meta_data': 'meta_data' + 'meta_data': 'meta_data', + 'description': 'description' } - def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, create_time=None, meta_data=None): + def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, create_time=None, meta_data=None, description=None): """ScalingPoliciesV2 - a model defined in huaweicloud sdk""" @@ -67,6 +69,7 @@ def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_res self._cool_down_time = None self._create_time = None self._meta_data = None + self._description = None self.discriminator = None if scaling_policy_name is not None: @@ -93,6 +96,8 @@ def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_res self.create_time = create_time if meta_data is not None: self.meta_data = meta_data + if description is not None: + self.description = description @property def scaling_policy_name(self): @@ -352,6 +357,28 @@ def meta_data(self, meta_data): """ self._meta_data = meta_data + @property + def description(self): + """Gets the description of this ScalingPoliciesV2. + + 伸缩策略描述(1-256个字符) + + :return: The description of this ScalingPoliciesV2. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ScalingPoliciesV2. + + 伸缩策略描述(1-256个字符) + + :param description: The description of this ScalingPoliciesV2. + :type: str + """ + self._description = description + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py index 2dfeebee4e..2964c121be 100644 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py @@ -32,7 +32,8 @@ class ScalingV2PolicyDetail: 'scaling_policy_action': 'ScalingPolicyActionV2', 'cool_down_time': 'int', 'create_time': 'datetime', - 'meta_data': 'ScalingPolicyV2MetaData' + 'meta_data': 'ScalingPolicyV2MetaData', + 'description': 'str' } attribute_map = { @@ -47,10 +48,11 @@ class ScalingV2PolicyDetail: 'scaling_policy_action': 'scaling_policy_action', 'cool_down_time': 'cool_down_time', 'create_time': 'create_time', - 'meta_data': 'meta_data' + 'meta_data': 'meta_data', + 'description': 'description' } - def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, create_time=None, meta_data=None): + def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, create_time=None, meta_data=None, description=None): """ScalingV2PolicyDetail - a model defined in huaweicloud sdk""" @@ -67,6 +69,7 @@ def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_res self._cool_down_time = None self._create_time = None self._meta_data = None + self._description = None self.discriminator = None if scaling_policy_name is not None: @@ -93,6 +96,8 @@ def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_res self.create_time = create_time if meta_data is not None: self.meta_data = meta_data + if description is not None: + self.description = description @property def scaling_policy_name(self): @@ -352,6 +357,28 @@ def meta_data(self, meta_data): """ self._meta_data = meta_data + @property + def description(self): + """Gets the description of this ScalingV2PolicyDetail. + + 伸缩策略描述(1-256个字符) + + :return: The description of this ScalingV2PolicyDetail. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ScalingV2PolicyDetail. + + 伸缩策略描述(1-256个字符) + + :param description: The description of this ScalingV2PolicyDetail. + :type: str + """ + self._description = description + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/update_scaling_group_option.py b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/update_scaling_group_option.py index d2c4f9a8f0..6980530e8a 100644 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/update_scaling_group_option.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/update_scaling_group_option.py @@ -40,7 +40,8 @@ class UpdateScalingGroupOption: 'delete_publicip': 'bool', 'delete_volume': 'bool', 'enterprise_project_id': 'str', - 'multi_az_priority_policy': 'str' + 'multi_az_priority_policy': 'str', + 'description': 'str' } attribute_map = { @@ -63,10 +64,11 @@ class UpdateScalingGroupOption: 'delete_publicip': 'delete_publicip', 'delete_volume': 'delete_volume', 'enterprise_project_id': 'enterprise_project_id', - 'multi_az_priority_policy': 'multi_az_priority_policy' + 'multi_az_priority_policy': 'multi_az_priority_policy', + 'description': 'description' } - def __init__(self, scaling_group_name=None, desire_instance_number=None, min_instance_number=None, max_instance_number=None, cool_down_time=None, available_zones=None, networks=None, security_groups=None, lb_listener_id=None, lbaas_listeners=None, health_periodic_audit_method=None, health_periodic_audit_time=None, health_periodic_audit_grace_period=None, instance_terminate_policy=None, scaling_configuration_id=None, notifications=None, delete_publicip=None, delete_volume=None, enterprise_project_id=None, multi_az_priority_policy=None): + def __init__(self, scaling_group_name=None, desire_instance_number=None, min_instance_number=None, max_instance_number=None, cool_down_time=None, available_zones=None, networks=None, security_groups=None, lb_listener_id=None, lbaas_listeners=None, health_periodic_audit_method=None, health_periodic_audit_time=None, health_periodic_audit_grace_period=None, instance_terminate_policy=None, scaling_configuration_id=None, notifications=None, delete_publicip=None, delete_volume=None, enterprise_project_id=None, multi_az_priority_policy=None, description=None): """UpdateScalingGroupOption - a model defined in huaweicloud sdk""" @@ -91,6 +93,7 @@ def __init__(self, scaling_group_name=None, desire_instance_number=None, min_ins self._delete_volume = None self._enterprise_project_id = None self._multi_az_priority_policy = None + self._description = None self.discriminator = None if scaling_group_name is not None: @@ -133,6 +136,8 @@ def __init__(self, scaling_group_name=None, desire_instance_number=None, min_ins self.enterprise_project_id = enterprise_project_id if multi_az_priority_policy is not None: self.multi_az_priority_policy = multi_az_priority_policy + if description is not None: + self.description = description @property def scaling_group_name(self): @@ -512,7 +517,7 @@ def delete_publicip(self, delete_publicip): def delete_volume(self): """Gets the delete_volume of this UpdateScalingGroupOption. - 配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除务器时,仅云服解绑定在云服务器上的数据盘,不删除数据盘。 + 配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除务器时,仅云服解绑定在云服务器上的数据盘,不删除数据盘。 :return: The delete_volume of this UpdateScalingGroupOption. :rtype: bool @@ -523,7 +528,7 @@ def delete_volume(self): def delete_volume(self, delete_volume): """Sets the delete_volume of this UpdateScalingGroupOption. - 配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除务器时,仅云服解绑定在云服务器上的数据盘,不删除数据盘。 + 配置删除云服务器时是否删除云服务器绑定的数据盘。取值为true或false,默认为false。 true:删除云服务器时,会同时删除绑定在云服务器上的数据盘。当数据盘的计费方式为包年包月时,不会被删除。 false:删除务器时,仅云服解绑定在云服务器上的数据盘,不删除数据盘。 :param delete_volume: The delete_volume of this UpdateScalingGroupOption. :type: bool @@ -574,6 +579,28 @@ def multi_az_priority_policy(self, multi_az_priority_policy): """ self._multi_az_priority_policy = multi_az_priority_policy + @property + def description(self): + """Gets the description of this UpdateScalingGroupOption. + + 伸缩组描述信息(0-256个字符) + + :return: The description of this UpdateScalingGroupOption. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateScalingGroupOption. + + 伸缩组描述信息(0-256个字符) + + :param description: The description of this UpdateScalingGroupOption. + :type: str + """ + self._description = description + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/update_scaling_v2_policy_option.py b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/update_scaling_v2_policy_option.py index 72809113c6..e36732702d 100644 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/update_scaling_v2_policy_option.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/update_scaling_v2_policy_option.py @@ -28,7 +28,8 @@ class UpdateScalingV2PolicyOption: 'alarm_id': 'str', 'scheduled_policy': 'ScheduledPolicy', 'scaling_policy_action': 'ScalingPolicyActionV2', - 'cool_down_time': 'int' + 'cool_down_time': 'int', + 'description': 'str' } attribute_map = { @@ -39,10 +40,11 @@ class UpdateScalingV2PolicyOption: 'alarm_id': 'alarm_id', 'scheduled_policy': 'scheduled_policy', 'scaling_policy_action': 'scaling_policy_action', - 'cool_down_time': 'cool_down_time' + 'cool_down_time': 'cool_down_time', + 'description': 'description' } - def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_resource_type=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None): + def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_resource_type=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, description=None): """UpdateScalingV2PolicyOption - a model defined in huaweicloud sdk""" @@ -55,6 +57,7 @@ def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_r self._scheduled_policy = None self._scaling_policy_action = None self._cool_down_time = None + self._description = None self.discriminator = None if scaling_policy_name is not None: @@ -73,6 +76,8 @@ def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_r self.scaling_policy_action = scaling_policy_action if cool_down_time is not None: self.cool_down_time = cool_down_time + if description is not None: + self.description = description @property def scaling_policy_name(self): @@ -246,6 +251,28 @@ def cool_down_time(self, cool_down_time): """ self._cool_down_time = cool_down_time + @property + def description(self): + """Gets the description of this UpdateScalingV2PolicyOption. + + 伸缩策略描述(1-256个字符) + + :return: The description of this UpdateScalingV2PolicyOption. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateScalingV2PolicyOption. + + 伸缩策略描述(1-256个字符) + + :param description: The description of this UpdateScalingV2PolicyOption. + :type: str + """ + self._description = description + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index f69f34b1d3..b255c8a591 100644 --- a/huaweicloud-sdk-as/setup.py +++ b/huaweicloud-sdk-as/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkas" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index de3b7f75a1..d65159d8b9 100644 --- a/huaweicloud-sdk-bcs/setup.py +++ b/huaweicloud-sdk-bcs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbcs" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index e5568d1357..cbcc91e636 100644 --- a/huaweicloud-sdk-bms/setup.py +++ b/huaweicloud-sdk-bms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbms" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index 7f3f10ddf1..6195e49fad 100644 --- a/huaweicloud-sdk-bss/setup.py +++ b/huaweicloud-sdk-bss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbss" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index de8bc4873a..31de2a064c 100644 --- a/huaweicloud-sdk-bssintl/setup.py +++ b/huaweicloud-sdk-bssintl/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbssintl" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index fe9e368431..a860ea87bc 100644 --- a/huaweicloud-sdk-cbr/setup.py +++ b/huaweicloud-sdk-cbr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbr" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index 4e5fef6802..918677740a 100644 --- a/huaweicloud-sdk-cce/setup.py +++ b/huaweicloud-sdk-cce/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcce" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index 8d93751677..0ece956827 100644 --- a/huaweicloud-sdk-ccm/setup.py +++ b/huaweicloud-sdk-ccm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkccm" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index 15629bc6c3..aa25c1c27a 100644 --- a/huaweicloud-sdk-cdn/setup.py +++ b/huaweicloud-sdk-cdn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcdn" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 132462ca16..ddb18f4dd3 100644 --- a/huaweicloud-sdk-ces/setup.py +++ b/huaweicloud-sdk-ces/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkces" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index aaeaeb92cb..8607f4f961 100644 --- a/huaweicloud-sdk-classroom/setup.py +++ b/huaweicloud-sdk-classroom/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkclassroom" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index 02668293b2..8a8b93aed0 100644 --- a/huaweicloud-sdk-cloudide/setup.py +++ b/huaweicloud-sdk-cloudide/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudide" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudpipeline/setup.py b/huaweicloud-sdk-cloudpipeline/setup.py index 38c38d6d91..2fc7831955 100644 --- a/huaweicloud-sdk-cloudpipeline/setup.py +++ b/huaweicloud-sdk-cloudpipeline/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpipeline" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index 60f3d15a6e..b4e078803c 100644 --- a/huaweicloud-sdk-cloudtest/setup.py +++ b/huaweicloud-sdk-cloudtest/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtest" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-core/huaweicloudsdkcore/utils/http_utils.py b/huaweicloud-sdk-core/huaweicloudsdkcore/utils/http_utils.py index 6c37123cc9..a6601920ef 100644 --- a/huaweicloud-sdk-core/huaweicloudsdkcore/utils/http_utils.py +++ b/huaweicloud-sdk-core/huaweicloudsdkcore/utils/http_utils.py @@ -19,6 +19,7 @@ """ import datetime +import decimal import six @@ -32,6 +33,9 @@ def sanitize_for_serialization(obj): elif isinstance(obj, primitive_types): return obj + elif isinstance(obj, decimal.Decimal): + return obj + elif isinstance(obj, list): return [sanitize_for_serialization(sub_obj) for sub_obj in obj] diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index 323e078279..548ce91c76 100644 --- a/huaweicloud-sdk-core/setup.py +++ b/huaweicloud-sdk-core/setup.py @@ -22,7 +22,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcore" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index 14b9cbd225..1d703c24ae 100644 --- a/huaweicloud-sdk-cts/setup.py +++ b/huaweicloud-sdk-cts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcts" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py index 1a35ada10a..5236baa77c 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py @@ -22,14 +22,19 @@ from huaweicloudsdkdcs.v2.model.batch_ops_result import BatchOpsResult from huaweicloudsdkdcs.v2.model.bigkeys_body import BigkeysBody from huaweicloudsdkdcs.v2.model.bss_param import BssParam +from huaweicloudsdkdcs.v2.model.bss_param_entity import BssParamEntity from huaweicloudsdkdcs.v2.model.change_instance_status_body import ChangeInstanceStatusBody from huaweicloudsdkdcs.v2.model.change_master_standby_request import ChangeMasterStandbyRequest from huaweicloudsdkdcs.v2.model.change_master_standby_response import ChangeMasterStandbyResponse from huaweicloudsdkdcs.v2.model.cluster_redis_node_monitored_object import ClusterRedisNodeMonitoredObject +from huaweicloudsdkdcs.v2.model.conclusion_item import ConclusionItem from huaweicloudsdkdcs.v2.model.copy_instance_request import CopyInstanceRequest from huaweicloudsdkdcs.v2.model.copy_instance_response import CopyInstanceResponse from huaweicloudsdkdcs.v2.model.create_bigkey_scan_task_request import CreateBigkeyScanTaskRequest from huaweicloudsdkdcs.v2.model.create_bigkey_scan_task_response import CreateBigkeyScanTaskResponse +from huaweicloudsdkdcs.v2.model.create_diagnosis_task_body import CreateDiagnosisTaskBody +from huaweicloudsdkdcs.v2.model.create_diagnosis_task_request import CreateDiagnosisTaskRequest +from huaweicloudsdkdcs.v2.model.create_diagnosis_task_response import CreateDiagnosisTaskResponse from huaweicloudsdkdcs.v2.model.create_hotkey_scan_task_request import CreateHotkeyScanTaskRequest from huaweicloudsdkdcs.v2.model.create_hotkey_scan_task_response import CreateHotkeyScanTaskResponse from huaweicloudsdkdcs.v2.model.create_instance_body import CreateInstanceBody @@ -39,6 +44,10 @@ from huaweicloudsdkdcs.v2.model.create_migration_task_request import CreateMigrationTaskRequest from huaweicloudsdkdcs.v2.model.create_migration_task_response import CreateMigrationTaskResponse from huaweicloudsdkdcs.v2.model.create_or_delete_instance_tags import CreateOrDeleteInstanceTags +from huaweicloudsdkdcs.v2.model.create_redislog_download_link_request import CreateRedislogDownloadLinkRequest +from huaweicloudsdkdcs.v2.model.create_redislog_download_link_response import CreateRedislogDownloadLinkResponse +from huaweicloudsdkdcs.v2.model.create_redislog_request import CreateRedislogRequest +from huaweicloudsdkdcs.v2.model.create_redislog_response import CreateRedislogResponse from huaweicloudsdkdcs.v2.model.delete_background_task_request import DeleteBackgroundTaskRequest from huaweicloudsdkdcs.v2.model.delete_background_task_response import DeleteBackgroundTaskResponse from huaweicloudsdkdcs.v2.model.delete_backup_file_request import DeleteBackupFileRequest @@ -55,6 +64,10 @@ from huaweicloudsdkdcs.v2.model.delete_single_instance_request import DeleteSingleInstanceRequest from huaweicloudsdkdcs.v2.model.delete_single_instance_response import DeleteSingleInstanceResponse from huaweicloudsdkdcs.v2.model.details_body import DetailsBody +from huaweicloudsdkdcs.v2.model.diagnosis_dimension import DiagnosisDimension +from huaweicloudsdkdcs.v2.model.diagnosis_item import DiagnosisItem +from huaweicloudsdkdcs.v2.model.diagnosis_node_report import DiagnosisNodeReport +from huaweicloudsdkdcs.v2.model.diagnosis_report_info import DiagnosisReportInfo from huaweicloudsdkdcs.v2.model.dim_child import DimChild from huaweicloudsdkdcs.v2.model.download_backup_files_req import DownloadBackupFilesReq from huaweicloudsdkdcs.v2.model.files import Files @@ -82,6 +95,8 @@ from huaweicloudsdkdcs.v2.model.list_bigkey_scan_tasks_response import ListBigkeyScanTasksResponse from huaweicloudsdkdcs.v2.model.list_configurations_request import ListConfigurationsRequest from huaweicloudsdkdcs.v2.model.list_configurations_response import ListConfigurationsResponse +from huaweicloudsdkdcs.v2.model.list_diagnosis_tasks_request import ListDiagnosisTasksRequest +from huaweicloudsdkdcs.v2.model.list_diagnosis_tasks_response import ListDiagnosisTasksResponse from huaweicloudsdkdcs.v2.model.list_flavors_request import ListFlavorsRequest from huaweicloudsdkdcs.v2.model.list_flavors_response import ListFlavorsResponse from huaweicloudsdkdcs.v2.model.list_group_replication_info_request import ListGroupReplicationInfoRequest @@ -100,6 +115,8 @@ from huaweicloudsdkdcs.v2.model.list_monitored_objects_response import ListMonitoredObjectsResponse from huaweicloudsdkdcs.v2.model.list_number_of_instances_in_different_status_request import ListNumberOfInstancesInDifferentStatusRequest from huaweicloudsdkdcs.v2.model.list_number_of_instances_in_different_status_response import ListNumberOfInstancesInDifferentStatusResponse +from huaweicloudsdkdcs.v2.model.list_redislog_request import ListRedislogRequest +from huaweicloudsdkdcs.v2.model.list_redislog_response import ListRedislogResponse from huaweicloudsdkdcs.v2.model.list_restore_records_request import ListRestoreRecordsRequest from huaweicloudsdkdcs.v2.model.list_restore_records_response import ListRestoreRecordsResponse from huaweicloudsdkdcs.v2.model.list_slowlog_request import ListSlowlogRequest @@ -120,6 +137,9 @@ from huaweicloudsdkdcs.v2.model.query_tenant_quota_resp_quotas import QueryTenantQuotaRespQuotas from huaweicloudsdkdcs.v2.model.records_response import RecordsResponse from huaweicloudsdkdcs.v2.model.redis_config import RedisConfig +from huaweicloudsdkdcs.v2.model.resize_instance_body import ResizeInstanceBody +from huaweicloudsdkdcs.v2.model.resize_instance_request import ResizeInstanceRequest +from huaweicloudsdkdcs.v2.model.resize_instance_response import ResizeInstanceResponse from huaweicloudsdkdcs.v2.model.resource_tag import ResourceTag from huaweicloudsdkdcs.v2.model.resources import Resources from huaweicloudsdkdcs.v2.model.restart_or_flush_instances_request import RestartOrFlushInstancesRequest @@ -127,10 +147,13 @@ from huaweicloudsdkdcs.v2.model.restore_instance_body import RestoreInstanceBody from huaweicloudsdkdcs.v2.model.restore_instance_request import RestoreInstanceRequest from huaweicloudsdkdcs.v2.model.restore_instance_response import RestoreInstanceResponse +from huaweicloudsdkdcs.v2.model.runlog_item import RunlogItem from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_request import ShowBigkeyAutoscanConfigRequest from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_response import ShowBigkeyAutoscanConfigResponse from huaweicloudsdkdcs.v2.model.show_bigkey_scan_task_details_request import ShowBigkeyScanTaskDetailsRequest from huaweicloudsdkdcs.v2.model.show_bigkey_scan_task_details_response import ShowBigkeyScanTaskDetailsResponse +from huaweicloudsdkdcs.v2.model.show_diagnosis_task_details_request import ShowDiagnosisTaskDetailsRequest +from huaweicloudsdkdcs.v2.model.show_diagnosis_task_details_response import ShowDiagnosisTaskDetailsResponse from huaweicloudsdkdcs.v2.model.show_hotkey_autoscan_config_request import ShowHotkeyAutoscanConfigRequest from huaweicloudsdkdcs.v2.model.show_hotkey_autoscan_config_response import ShowHotkeyAutoscanConfigResponse from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_request import ShowHotkeyTaskDetailsRequest diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py index cb13eca339..43c90b1170 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py @@ -369,6 +369,71 @@ def create_bigkey_scan_task_with_http_info(self, request): request_type=request.__class__.__name__) + def create_diagnosis_task_async(self, request): + """创建实例诊断任务 + + 诊断指定的缓存实例。 + + :param CreateDiagnosisTaskRequest request + :return: CreateDiagnosisTaskResponse + """ + return self.create_diagnosis_task_with_http_info(request) + + def create_diagnosis_task_with_http_info(self, request): + """创建实例诊断任务 + + 诊断指定的缓存实例。 + + :param CreateDiagnosisTaskRequest request + :return: CreateDiagnosisTaskResponse + """ + + all_params = ['instance_id', 'create_diagnosis_task_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/diagnosis', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateDiagnosisTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_hotkey_scan_task_async(self, request): """创建热key分析任务 @@ -558,6 +623,140 @@ def create_migration_task_with_http_info(self, request): request_type=request.__class__.__name__) + def create_redislog_async(self, request): + """采集Redis运行日志 + + 采集Redis运行日志。 + + :param CreateRedislogRequest request + :return: CreateRedislogResponse + """ + return self.create_redislog_with_http_info(request) + + def create_redislog_with_http_info(self, request): + """采集Redis运行日志 + + 采集Redis运行日志。 + + :param CreateRedislogRequest request + :return: CreateRedislogResponse + """ + + all_params = ['instance_id', 'log_type', 'query_time', 'replication_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'query_time' in local_var_params: + query_params.append(('query_time', local_var_params['query_time'])) + if 'log_type' in local_var_params: + query_params.append(('log_type', local_var_params['log_type'])) + if 'replication_id' in local_var_params: + query_params.append(('replication_id', local_var_params['replication_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/redislog', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateRedislogResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_redislog_download_link_async(self, request): + """获取日志下载链接 + + 获取日志下载链接。 + + :param CreateRedislogDownloadLinkRequest request + :return: CreateRedislogDownloadLinkResponse + """ + return self.create_redislog_download_link_with_http_info(request) + + def create_redislog_download_link_with_http_info(self, request): + """获取日志下载链接 + + 获取日志下载链接。 + + :param CreateRedislogDownloadLinkRequest request + :return: CreateRedislogDownloadLinkResponse + """ + + all_params = ['instance_id', 'id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/redislog/{id}/links', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateRedislogDownloadLinkResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_background_task_async(self, request): """删除后台任务 @@ -1413,6 +1612,73 @@ def list_configurations_with_http_info(self, request): request_type=request.__class__.__name__) + def list_diagnosis_tasks_async(self, request): + """查询实例诊断任务列表 + + 查询指定缓存实例诊断任务列表。 + + :param ListDiagnosisTasksRequest request + :return: ListDiagnosisTasksResponse + """ + return self.list_diagnosis_tasks_with_http_info(request) + + def list_diagnosis_tasks_with_http_info(self, request): + """查询实例诊断任务列表 + + 查询指定缓存实例诊断任务列表。 + + :param ListDiagnosisTasksRequest request + :return: ListDiagnosisTasksResponse + """ + + all_params = ['instance_id', 'limit', 'offset'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/diagnosis', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListDiagnosisTasksResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_flavors_async(self, request): """查询产品规格 @@ -1637,7 +1903,7 @@ def list_instances_with_http_info(self, request): :return: ListInstancesResponse """ - all_params = ['instance_id', 'include_failure', 'name', 'offset', 'limit', 'status', 'name_equal', 'tags', 'ip'] + all_params = ['instance_id', 'include_failure', 'include_delete', 'name', 'offset', 'limit', 'status', 'name_equal', 'tags', 'ip'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1652,6 +1918,8 @@ def list_instances_with_http_info(self, request): query_params.append(('instance_id', local_var_params['instance_id'])) if 'include_failure' in local_var_params: query_params.append(('include_failure', local_var_params['include_failure'])) + if 'include_delete' in local_var_params: + query_params.append(('include_delete', local_var_params['include_delete'])) if 'name' in local_var_params: query_params.append(('name', local_var_params['name'])) if 'offset' in local_var_params: @@ -2020,6 +2288,75 @@ def list_number_of_instances_in_different_status_with_http_info(self, request): request_type=request.__class__.__name__) + def list_redislog_async(self, request): + """查询Redis运行日志列表 + + 查询Redis运行日志列表。 + + :param ListRedislogRequest request + :return: ListRedislogResponse + """ + return self.list_redislog_with_http_info(request) + + def list_redislog_with_http_info(self, request): + """查询Redis运行日志列表 + + 查询Redis运行日志列表。 + + :param ListRedislogRequest request + :return: ListRedislogResponse + """ + + all_params = ['instance_id', 'log_type', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'log_type' in local_var_params: + query_params.append(('log_type', local_var_params['log_type'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/redislog', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListRedislogResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_restore_records_async(self, request): """查询实例恢复记录 @@ -2288,6 +2625,71 @@ def list_tags_of_tenant_with_http_info(self, request): request_type=request.__class__.__name__) + def resize_instance_async(self, request): + """变更实例规格 + + 用户可以为状态为“运行中”的DCS缓存实例进行规格变更,当前仅能支持按需实例的同副本或分片数量的实例规格变更。 + + :param ResizeInstanceRequest request + :return: ResizeInstanceResponse + """ + return self.resize_instance_with_http_info(request) + + def resize_instance_with_http_info(self, request): + """变更实例规格 + + 用户可以为状态为“运行中”的DCS缓存实例进行规格变更,当前仅能支持按需实例的同副本或分片数量的实例规格变更。 + + :param ResizeInstanceRequest request + :return: ResizeInstanceResponse + """ + + all_params = ['instance_id', 'resize_instance_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/resize', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ResizeInstanceResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def restart_or_flush_instances_async(self, request): """重启实例或清空数据 @@ -2544,6 +2946,69 @@ def show_bigkey_scan_task_details_with_http_info(self, request): request_type=request.__class__.__name__) + def show_diagnosis_task_details_async(self, request): + """查询指定诊断报告 + + 通过报告ID查询诊断报告的详细信息。 + + :param ShowDiagnosisTaskDetailsRequest request + :return: ShowDiagnosisTaskDetailsResponse + """ + return self.show_diagnosis_task_details_with_http_info(request) + + def show_diagnosis_task_details_with_http_info(self, request): + """查询指定诊断报告 + + 通过报告ID查询诊断报告的详细信息。 + + :param ShowDiagnosisTaskDetailsRequest request + :return: ShowDiagnosisTaskDetailsResponse + """ + + all_params = ['report_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'report_id' in local_var_params: + path_params['report_id'] = local_var_params['report_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/diagnosis/{report_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowDiagnosisTaskDetailsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_hotkey_autoscan_config_async(self, request): """查询热key自动分析配置 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py index c833e9cd13..0353a20953 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py @@ -369,6 +369,71 @@ def create_bigkey_scan_task_with_http_info(self, request): request_type=request.__class__.__name__) + def create_diagnosis_task(self, request): + """创建实例诊断任务 + + 诊断指定的缓存实例。 + + :param CreateDiagnosisTaskRequest request + :return: CreateDiagnosisTaskResponse + """ + return self.create_diagnosis_task_with_http_info(request) + + def create_diagnosis_task_with_http_info(self, request): + """创建实例诊断任务 + + 诊断指定的缓存实例。 + + :param CreateDiagnosisTaskRequest request + :return: CreateDiagnosisTaskResponse + """ + + all_params = ['instance_id', 'create_diagnosis_task_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/diagnosis', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateDiagnosisTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_hotkey_scan_task(self, request): """创建热key分析任务 @@ -558,6 +623,140 @@ def create_migration_task_with_http_info(self, request): request_type=request.__class__.__name__) + def create_redislog(self, request): + """采集Redis运行日志 + + 采集Redis运行日志。 + + :param CreateRedislogRequest request + :return: CreateRedislogResponse + """ + return self.create_redislog_with_http_info(request) + + def create_redislog_with_http_info(self, request): + """采集Redis运行日志 + + 采集Redis运行日志。 + + :param CreateRedislogRequest request + :return: CreateRedislogResponse + """ + + all_params = ['instance_id', 'log_type', 'query_time', 'replication_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'query_time' in local_var_params: + query_params.append(('query_time', local_var_params['query_time'])) + if 'log_type' in local_var_params: + query_params.append(('log_type', local_var_params['log_type'])) + if 'replication_id' in local_var_params: + query_params.append(('replication_id', local_var_params['replication_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/redislog', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateRedislogResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_redislog_download_link(self, request): + """获取日志下载链接 + + 获取日志下载链接。 + + :param CreateRedislogDownloadLinkRequest request + :return: CreateRedislogDownloadLinkResponse + """ + return self.create_redislog_download_link_with_http_info(request) + + def create_redislog_download_link_with_http_info(self, request): + """获取日志下载链接 + + 获取日志下载链接。 + + :param CreateRedislogDownloadLinkRequest request + :return: CreateRedislogDownloadLinkResponse + """ + + all_params = ['instance_id', 'id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/redislog/{id}/links', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateRedislogDownloadLinkResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def delete_background_task(self, request): """删除后台任务 @@ -1413,6 +1612,73 @@ def list_configurations_with_http_info(self, request): request_type=request.__class__.__name__) + def list_diagnosis_tasks(self, request): + """查询实例诊断任务列表 + + 查询指定缓存实例诊断任务列表。 + + :param ListDiagnosisTasksRequest request + :return: ListDiagnosisTasksResponse + """ + return self.list_diagnosis_tasks_with_http_info(request) + + def list_diagnosis_tasks_with_http_info(self, request): + """查询实例诊断任务列表 + + 查询指定缓存实例诊断任务列表。 + + :param ListDiagnosisTasksRequest request + :return: ListDiagnosisTasksResponse + """ + + all_params = ['instance_id', 'limit', 'offset'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/diagnosis', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListDiagnosisTasksResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_flavors(self, request): """查询产品规格 @@ -1637,7 +1903,7 @@ def list_instances_with_http_info(self, request): :return: ListInstancesResponse """ - all_params = ['instance_id', 'include_failure', 'name', 'offset', 'limit', 'status', 'name_equal', 'tags', 'ip'] + all_params = ['instance_id', 'include_failure', 'include_delete', 'name', 'offset', 'limit', 'status', 'name_equal', 'tags', 'ip'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1652,6 +1918,8 @@ def list_instances_with_http_info(self, request): query_params.append(('instance_id', local_var_params['instance_id'])) if 'include_failure' in local_var_params: query_params.append(('include_failure', local_var_params['include_failure'])) + if 'include_delete' in local_var_params: + query_params.append(('include_delete', local_var_params['include_delete'])) if 'name' in local_var_params: query_params.append(('name', local_var_params['name'])) if 'offset' in local_var_params: @@ -2020,6 +2288,75 @@ def list_number_of_instances_in_different_status_with_http_info(self, request): request_type=request.__class__.__name__) + def list_redislog(self, request): + """查询Redis运行日志列表 + + 查询Redis运行日志列表。 + + :param ListRedislogRequest request + :return: ListRedislogResponse + """ + return self.list_redislog_with_http_info(request) + + def list_redislog_with_http_info(self, request): + """查询Redis运行日志列表 + + 查询Redis运行日志列表。 + + :param ListRedislogRequest request + :return: ListRedislogResponse + """ + + all_params = ['instance_id', 'log_type', 'offset', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'log_type' in local_var_params: + query_params.append(('log_type', local_var_params['log_type'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/redislog', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListRedislogResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_restore_records(self, request): """查询实例恢复记录 @@ -2288,6 +2625,71 @@ def list_tags_of_tenant_with_http_info(self, request): request_type=request.__class__.__name__) + def resize_instance(self, request): + """变更实例规格 + + 用户可以为状态为“运行中”的DCS缓存实例进行规格变更,当前仅能支持按需实例的同副本或分片数量的实例规格变更。 + + :param ResizeInstanceRequest request + :return: ResizeInstanceResponse + """ + return self.resize_instance_with_http_info(request) + + def resize_instance_with_http_info(self, request): + """变更实例规格 + + 用户可以为状态为“运行中”的DCS缓存实例进行规格变更,当前仅能支持按需实例的同副本或分片数量的实例规格变更。 + + :param ResizeInstanceRequest request + :return: ResizeInstanceResponse + """ + + all_params = ['instance_id', 'resize_instance_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/resize', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ResizeInstanceResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def restart_or_flush_instances(self, request): """重启实例或清空数据 @@ -2544,6 +2946,69 @@ def show_bigkey_scan_task_details_with_http_info(self, request): request_type=request.__class__.__name__) + def show_diagnosis_task_details(self, request): + """查询指定诊断报告 + + 通过报告ID查询诊断报告的详细信息。 + + :param ShowDiagnosisTaskDetailsRequest request + :return: ShowDiagnosisTaskDetailsResponse + """ + return self.show_diagnosis_task_details_with_http_info(request) + + def show_diagnosis_task_details_with_http_info(self, request): + """查询指定诊断报告 + + 通过报告ID查询诊断报告的详细信息。 + + :param ShowDiagnosisTaskDetailsRequest request + :return: ShowDiagnosisTaskDetailsResponse + """ + + all_params = ['report_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'report_id' in local_var_params: + path_params['report_id'] = local_var_params['report_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/diagnosis/{report_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowDiagnosisTaskDetailsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_hotkey_autoscan_config(self, request): """查询热key自动分析配置 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py index f791af5394..f442a2c66d 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py @@ -19,14 +19,19 @@ from huaweicloudsdkdcs.v2.model.batch_ops_result import BatchOpsResult from huaweicloudsdkdcs.v2.model.bigkeys_body import BigkeysBody from huaweicloudsdkdcs.v2.model.bss_param import BssParam +from huaweicloudsdkdcs.v2.model.bss_param_entity import BssParamEntity from huaweicloudsdkdcs.v2.model.change_instance_status_body import ChangeInstanceStatusBody from huaweicloudsdkdcs.v2.model.change_master_standby_request import ChangeMasterStandbyRequest from huaweicloudsdkdcs.v2.model.change_master_standby_response import ChangeMasterStandbyResponse from huaweicloudsdkdcs.v2.model.cluster_redis_node_monitored_object import ClusterRedisNodeMonitoredObject +from huaweicloudsdkdcs.v2.model.conclusion_item import ConclusionItem from huaweicloudsdkdcs.v2.model.copy_instance_request import CopyInstanceRequest from huaweicloudsdkdcs.v2.model.copy_instance_response import CopyInstanceResponse from huaweicloudsdkdcs.v2.model.create_bigkey_scan_task_request import CreateBigkeyScanTaskRequest from huaweicloudsdkdcs.v2.model.create_bigkey_scan_task_response import CreateBigkeyScanTaskResponse +from huaweicloudsdkdcs.v2.model.create_diagnosis_task_body import CreateDiagnosisTaskBody +from huaweicloudsdkdcs.v2.model.create_diagnosis_task_request import CreateDiagnosisTaskRequest +from huaweicloudsdkdcs.v2.model.create_diagnosis_task_response import CreateDiagnosisTaskResponse from huaweicloudsdkdcs.v2.model.create_hotkey_scan_task_request import CreateHotkeyScanTaskRequest from huaweicloudsdkdcs.v2.model.create_hotkey_scan_task_response import CreateHotkeyScanTaskResponse from huaweicloudsdkdcs.v2.model.create_instance_body import CreateInstanceBody @@ -36,6 +41,10 @@ from huaweicloudsdkdcs.v2.model.create_migration_task_request import CreateMigrationTaskRequest from huaweicloudsdkdcs.v2.model.create_migration_task_response import CreateMigrationTaskResponse from huaweicloudsdkdcs.v2.model.create_or_delete_instance_tags import CreateOrDeleteInstanceTags +from huaweicloudsdkdcs.v2.model.create_redislog_download_link_request import CreateRedislogDownloadLinkRequest +from huaweicloudsdkdcs.v2.model.create_redislog_download_link_response import CreateRedislogDownloadLinkResponse +from huaweicloudsdkdcs.v2.model.create_redislog_request import CreateRedislogRequest +from huaweicloudsdkdcs.v2.model.create_redislog_response import CreateRedislogResponse from huaweicloudsdkdcs.v2.model.delete_background_task_request import DeleteBackgroundTaskRequest from huaweicloudsdkdcs.v2.model.delete_background_task_response import DeleteBackgroundTaskResponse from huaweicloudsdkdcs.v2.model.delete_backup_file_request import DeleteBackupFileRequest @@ -52,6 +61,10 @@ from huaweicloudsdkdcs.v2.model.delete_single_instance_request import DeleteSingleInstanceRequest from huaweicloudsdkdcs.v2.model.delete_single_instance_response import DeleteSingleInstanceResponse from huaweicloudsdkdcs.v2.model.details_body import DetailsBody +from huaweicloudsdkdcs.v2.model.diagnosis_dimension import DiagnosisDimension +from huaweicloudsdkdcs.v2.model.diagnosis_item import DiagnosisItem +from huaweicloudsdkdcs.v2.model.diagnosis_node_report import DiagnosisNodeReport +from huaweicloudsdkdcs.v2.model.diagnosis_report_info import DiagnosisReportInfo from huaweicloudsdkdcs.v2.model.dim_child import DimChild from huaweicloudsdkdcs.v2.model.download_backup_files_req import DownloadBackupFilesReq from huaweicloudsdkdcs.v2.model.files import Files @@ -79,6 +92,8 @@ from huaweicloudsdkdcs.v2.model.list_bigkey_scan_tasks_response import ListBigkeyScanTasksResponse from huaweicloudsdkdcs.v2.model.list_configurations_request import ListConfigurationsRequest from huaweicloudsdkdcs.v2.model.list_configurations_response import ListConfigurationsResponse +from huaweicloudsdkdcs.v2.model.list_diagnosis_tasks_request import ListDiagnosisTasksRequest +from huaweicloudsdkdcs.v2.model.list_diagnosis_tasks_response import ListDiagnosisTasksResponse from huaweicloudsdkdcs.v2.model.list_flavors_request import ListFlavorsRequest from huaweicloudsdkdcs.v2.model.list_flavors_response import ListFlavorsResponse from huaweicloudsdkdcs.v2.model.list_group_replication_info_request import ListGroupReplicationInfoRequest @@ -97,6 +112,8 @@ from huaweicloudsdkdcs.v2.model.list_monitored_objects_response import ListMonitoredObjectsResponse from huaweicloudsdkdcs.v2.model.list_number_of_instances_in_different_status_request import ListNumberOfInstancesInDifferentStatusRequest from huaweicloudsdkdcs.v2.model.list_number_of_instances_in_different_status_response import ListNumberOfInstancesInDifferentStatusResponse +from huaweicloudsdkdcs.v2.model.list_redislog_request import ListRedislogRequest +from huaweicloudsdkdcs.v2.model.list_redislog_response import ListRedislogResponse from huaweicloudsdkdcs.v2.model.list_restore_records_request import ListRestoreRecordsRequest from huaweicloudsdkdcs.v2.model.list_restore_records_response import ListRestoreRecordsResponse from huaweicloudsdkdcs.v2.model.list_slowlog_request import ListSlowlogRequest @@ -117,6 +134,9 @@ from huaweicloudsdkdcs.v2.model.query_tenant_quota_resp_quotas import QueryTenantQuotaRespQuotas from huaweicloudsdkdcs.v2.model.records_response import RecordsResponse from huaweicloudsdkdcs.v2.model.redis_config import RedisConfig +from huaweicloudsdkdcs.v2.model.resize_instance_body import ResizeInstanceBody +from huaweicloudsdkdcs.v2.model.resize_instance_request import ResizeInstanceRequest +from huaweicloudsdkdcs.v2.model.resize_instance_response import ResizeInstanceResponse from huaweicloudsdkdcs.v2.model.resource_tag import ResourceTag from huaweicloudsdkdcs.v2.model.resources import Resources from huaweicloudsdkdcs.v2.model.restart_or_flush_instances_request import RestartOrFlushInstancesRequest @@ -124,10 +144,13 @@ from huaweicloudsdkdcs.v2.model.restore_instance_body import RestoreInstanceBody from huaweicloudsdkdcs.v2.model.restore_instance_request import RestoreInstanceRequest from huaweicloudsdkdcs.v2.model.restore_instance_response import RestoreInstanceResponse +from huaweicloudsdkdcs.v2.model.runlog_item import RunlogItem from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_request import ShowBigkeyAutoscanConfigRequest from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_response import ShowBigkeyAutoscanConfigResponse from huaweicloudsdkdcs.v2.model.show_bigkey_scan_task_details_request import ShowBigkeyScanTaskDetailsRequest from huaweicloudsdkdcs.v2.model.show_bigkey_scan_task_details_response import ShowBigkeyScanTaskDetailsResponse +from huaweicloudsdkdcs.v2.model.show_diagnosis_task_details_request import ShowDiagnosisTaskDetailsRequest +from huaweicloudsdkdcs.v2.model.show_diagnosis_task_details_response import ShowDiagnosisTaskDetailsResponse from huaweicloudsdkdcs.v2.model.show_hotkey_autoscan_config_request import ShowHotkeyAutoscanConfigRequest from huaweicloudsdkdcs.v2.model.show_hotkey_autoscan_config_response import ShowHotkeyAutoscanConfigResponse from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_request import ShowHotkeyTaskDetailsRequest diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/attrs_object.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/attrs_object.py index 013b7f9dcd..72c8a6d6f8 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/attrs_object.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/attrs_object.py @@ -53,7 +53,7 @@ def __init__(self, capacity=None, name=None, value=None): def capacity(self): """Gets the capacity of this AttrsObject. - 缓存容量。 + 缓存容量(G Byte)。 :return: The capacity of this AttrsObject. :rtype: str @@ -64,7 +64,7 @@ def capacity(self): def capacity(self, capacity): """Sets the capacity of this AttrsObject. - 缓存容量。 + 缓存容量(G Byte)。 :param capacity: The capacity of this AttrsObject. :type: str diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/bss_param_entity.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/bss_param_entity.py new file mode 100644 index 0000000000..8f9d51ff94 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/bss_param_entity.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import re +import six + + + + + +class BssParamEntity: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'is_auto_pay': 'str' + } + + attribute_map = { + 'is_auto_pay': 'is_auto_pay' + } + + def __init__(self, is_auto_pay=None): + """BssParamEntity - a model defined in huaweicloud sdk""" + + + + self._is_auto_pay = None + self.discriminator = None + + if is_auto_pay is not None: + self.is_auto_pay = is_auto_pay + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this BssParamEntity. + + 功能说明:下单订购后,是否自动从客户的账户中支付;默认是“不自动支付” 。 取值范围: - true:是(自动支付,从账户余额自动扣费) - false:否(默认值,只提交订单不支付,需要客户手动去支付) 约束: 自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。 **如果没有设置成自动支付,即设置为false时,在创建实例之后,实例状态为“支付中”,用户必须在“费用中心 > 我的订单”,完成订单支付,否则订单一直在支付中,实例没有创建成功**。 + + :return: The is_auto_pay of this BssParamEntity. + :rtype: str + """ + return self._is_auto_pay + + @is_auto_pay.setter + def is_auto_pay(self, is_auto_pay): + """Sets the is_auto_pay of this BssParamEntity. + + 功能说明:下单订购后,是否自动从客户的账户中支付;默认是“不自动支付” 。 取值范围: - true:是(自动支付,从账户余额自动扣费) - false:否(默认值,只提交订单不支付,需要客户手动去支付) 约束: 自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。 **如果没有设置成自动支付,即设置为false时,在创建实例之后,实例状态为“支付中”,用户必须在“费用中心 > 我的订单”,完成订单支付,否则订单一直在支付中,实例没有创建成功**。 + + :param is_auto_pay: The is_auto_pay of this BssParamEntity. + :type: str + """ + self._is_auto_pay = is_auto_pay + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BssParamEntity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/conclusion_item.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/conclusion_item.py new file mode 100644 index 0000000000..bfdce5bbc2 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/conclusion_item.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +import re +import six + + + + + +class ConclusionItem: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'id': 'int', + 'params': 'dict(str, str)' + } + + attribute_map = { + 'id': 'id', + 'params': 'params' + } + + def __init__(self, id=None, params=None): + """ConclusionItem - a model defined in huaweicloud sdk""" + + + + self._id = None + self._params = None + self.discriminator = None + + self.id = id + if params is not None: + self.params = params + + @property + def id(self): + """Gets the id of this ConclusionItem. + + 结论id + + :return: The id of this ConclusionItem. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ConclusionItem. + + 结论id + + :param id: The id of this ConclusionItem. + :type: int + """ + self._id = id + + @property + def params(self): + """Gets the params of this ConclusionItem. + + 结论参数 + + :return: The params of this ConclusionItem. + :rtype: dict(str, str) + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this ConclusionItem. + + 结论参数 + + :param params: The params of this ConclusionItem. + :type: dict(str, str) + """ + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConclusionItem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_diagnosis_task_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_diagnosis_task_body.py new file mode 100644 index 0000000000..5dcb82baea --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_diagnosis_task_body.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +import re +import six + + + + + +class CreateDiagnosisTaskBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'begin_time': 'str', + 'end_time': 'str', + 'node_ip_list': 'list[str]' + } + + attribute_map = { + 'begin_time': 'begin_time', + 'end_time': 'end_time', + 'node_ip_list': 'node_ip_list' + } + + def __init__(self, begin_time=None, end_time=None, node_ip_list=None): + """CreateDiagnosisTaskBody - a model defined in huaweicloud sdk""" + + + + self._begin_time = None + self._end_time = None + self._node_ip_list = None + self.discriminator = None + + self.begin_time = begin_time + self.end_time = end_time + if node_ip_list is not None: + self.node_ip_list = node_ip_list + + @property + def begin_time(self): + """Gets the begin_time of this CreateDiagnosisTaskBody. + + 诊断开始时间。UNIX时间戳,单位毫秒。 + + :return: The begin_time of this CreateDiagnosisTaskBody. + :rtype: str + """ + return self._begin_time + + @begin_time.setter + def begin_time(self, begin_time): + """Sets the begin_time of this CreateDiagnosisTaskBody. + + 诊断开始时间。UNIX时间戳,单位毫秒。 + + :param begin_time: The begin_time of this CreateDiagnosisTaskBody. + :type: str + """ + self._begin_time = begin_time + + @property + def end_time(self): + """Gets the end_time of this CreateDiagnosisTaskBody. + + 诊断结束时间。UNIX时间戳,单位毫秒。 + + :return: The end_time of this CreateDiagnosisTaskBody. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this CreateDiagnosisTaskBody. + + 诊断结束时间。UNIX时间戳,单位毫秒。 + + :param end_time: The end_time of this CreateDiagnosisTaskBody. + :type: str + """ + self._end_time = end_time + + @property + def node_ip_list(self): + """Gets the node_ip_list of this CreateDiagnosisTaskBody. + + 诊断节点IP列表。默认诊断所有节点。 非读写分离实例查询方法如下: - 方法一:参考[查看实例信息](https://support.huaweicloud.com/usermanual-dcs/dcs-ug-0312016.html)。 - 方法二:调用[查询指定实例](https://support.huaweicloud.com/api-dcs/ShowInstance.html)查询。 读写分离实例查询方法:调用[查询分片信息](https://support.huaweicloud.com/api-dcs/ListGroupReplicationInfo.html#ListGroupReplicationInfo__response_InstanceReplicationListInfo)。 + + :return: The node_ip_list of this CreateDiagnosisTaskBody. + :rtype: list[str] + """ + return self._node_ip_list + + @node_ip_list.setter + def node_ip_list(self, node_ip_list): + """Sets the node_ip_list of this CreateDiagnosisTaskBody. + + 诊断节点IP列表。默认诊断所有节点。 非读写分离实例查询方法如下: - 方法一:参考[查看实例信息](https://support.huaweicloud.com/usermanual-dcs/dcs-ug-0312016.html)。 - 方法二:调用[查询指定实例](https://support.huaweicloud.com/api-dcs/ShowInstance.html)查询。 读写分离实例查询方法:调用[查询分片信息](https://support.huaweicloud.com/api-dcs/ListGroupReplicationInfo.html#ListGroupReplicationInfo__response_InstanceReplicationListInfo)。 + + :param node_ip_list: The node_ip_list of this CreateDiagnosisTaskBody. + :type: list[str] + """ + self._node_ip_list = node_ip_list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDiagnosisTaskBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_diagnosis_task_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_diagnosis_task_request.py new file mode 100644 index 0000000000..708d0edd35 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_diagnosis_task_request.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +import re +import six + + + + + +class CreateDiagnosisTaskRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'CreateDiagnosisTaskBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """CreateDiagnosisTaskRequest - a model defined in huaweicloud sdk""" + + + + self._instance_id = None + self._body = None + self.discriminator = None + + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateDiagnosisTaskRequest. + + 实例ID + + :return: The instance_id of this CreateDiagnosisTaskRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateDiagnosisTaskRequest. + + 实例ID + + :param instance_id: The instance_id of this CreateDiagnosisTaskRequest. + :type: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateDiagnosisTaskRequest. + + + :return: The body of this CreateDiagnosisTaskRequest. + :rtype: CreateDiagnosisTaskBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateDiagnosisTaskRequest. + + + :param body: The body of this CreateDiagnosisTaskRequest. + :type: CreateDiagnosisTaskBody + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDiagnosisTaskRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_diagnosis_task_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_diagnosis_task_response.py new file mode 100644 index 0000000000..250261db37 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_diagnosis_task_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateDiagnosisTaskResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'report_id': 'str' + } + + attribute_map = { + 'report_id': 'report_id' + } + + def __init__(self, report_id=None): + """CreateDiagnosisTaskResponse - a model defined in huaweicloud sdk""" + + super(CreateDiagnosisTaskResponse, self).__init__() + + self._report_id = None + self.discriminator = None + + if report_id is not None: + self.report_id = report_id + + @property + def report_id(self): + """Gets the report_id of this CreateDiagnosisTaskResponse. + + 报告ID + + :return: The report_id of this CreateDiagnosisTaskResponse. + :rtype: str + """ + return self._report_id + + @report_id.setter + def report_id(self, report_id): + """Sets the report_id of this CreateDiagnosisTaskResponse. + + 报告ID + + :param report_id: The report_id of this CreateDiagnosisTaskResponse. + :type: str + """ + self._report_id = report_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDiagnosisTaskResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_instance_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_instance_body.py index 5880953e9e..329f0d3c00 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_instance_body.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_instance_body.py @@ -254,7 +254,7 @@ def capacity(self, capacity): def spec_code(self): """Gets the spec_code of this CreateInstanceBody. - 产品规格编码。具体查询方法,请参考[查询产品规格](https://support.huaweicloud.com/api-dcs/ListFlavors.html)。 + 产品规格编码。具体查询方法如下: - 方法一:查询产品介绍中的[实例规格](https://support.huaweicloud.com/productdesc-dcs/dcs-pd-0522002.html) - 方法二:登录分布式缓存的控制台界面,点击购买缓存实例,查找对应的实例规格名称 - 方法三:调用[查询产品规格](https://support.huaweicloud.com/api-dcs/ListFlavors.html)接口查询。 :return: The spec_code of this CreateInstanceBody. :rtype: str @@ -265,7 +265,7 @@ def spec_code(self): def spec_code(self, spec_code): """Sets the spec_code of this CreateInstanceBody. - 产品规格编码。具体查询方法,请参考[查询产品规格](https://support.huaweicloud.com/api-dcs/ListFlavors.html)。 + 产品规格编码。具体查询方法如下: - 方法一:查询产品介绍中的[实例规格](https://support.huaweicloud.com/productdesc-dcs/dcs-pd-0522002.html) - 方法二:登录分布式缓存的控制台界面,点击购买缓存实例,查找对应的实例规格名称 - 方法三:调用[查询产品规格](https://support.huaweicloud.com/api-dcs/ListFlavors.html)接口查询。 :param spec_code: The spec_code of this CreateInstanceBody. :type: str diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_redislog_download_link_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_redislog_download_link_request.py new file mode 100644 index 0000000000..9bf32008ee --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_redislog_download_link_request.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +import re +import six + + + + + +class CreateRedislogDownloadLinkRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'id': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'id': 'id' + } + + def __init__(self, instance_id=None, id=None): + """CreateRedislogDownloadLinkRequest - a model defined in huaweicloud sdk""" + + + + self._instance_id = None + self._id = None + self.discriminator = None + + self.instance_id = instance_id + self.id = id + + @property + def instance_id(self): + """Gets the instance_id of this CreateRedislogDownloadLinkRequest. + + 实例ID。 + + :return: The instance_id of this CreateRedislogDownloadLinkRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateRedislogDownloadLinkRequest. + + 实例ID。 + + :param instance_id: The instance_id of this CreateRedislogDownloadLinkRequest. + :type: str + """ + self._instance_id = instance_id + + @property + def id(self): + """Gets the id of this CreateRedislogDownloadLinkRequest. + + 日志的唯一ID,来自于查询运行日志查询接口 + + :return: The id of this CreateRedislogDownloadLinkRequest. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateRedislogDownloadLinkRequest. + + 日志的唯一ID,来自于查询运行日志查询接口 + + :param id: The id of this CreateRedislogDownloadLinkRequest. + :type: str + """ + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRedislogDownloadLinkRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_redislog_download_link_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_redislog_download_link_response.py new file mode 100644 index 0000000000..7a2c9fc9e3 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_redislog_download_link_response.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateRedislogDownloadLinkResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'link': 'str' + } + + attribute_map = { + 'id': 'id', + 'link': 'link' + } + + def __init__(self, id=None, link=None): + """CreateRedislogDownloadLinkResponse - a model defined in huaweicloud sdk""" + + super(CreateRedislogDownloadLinkResponse, self).__init__() + + self._id = None + self._link = None + self.discriminator = None + + if id is not None: + self.id = id + if link is not None: + self.link = link + + @property + def id(self): + """Gets the id of this CreateRedislogDownloadLinkResponse. + + 日志id + + :return: The id of this CreateRedislogDownloadLinkResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateRedislogDownloadLinkResponse. + + 日志id + + :param id: The id of this CreateRedislogDownloadLinkResponse. + :type: str + """ + self._id = id + + @property + def link(self): + """Gets the link of this CreateRedislogDownloadLinkResponse. + + 日志下载链接,默认有效时间为24小时 + + :return: The link of this CreateRedislogDownloadLinkResponse. + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this CreateRedislogDownloadLinkResponse. + + 日志下载链接,默认有效时间为24小时 + + :param link: The link of this CreateRedislogDownloadLinkResponse. + :type: str + """ + self._link = link + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRedislogDownloadLinkResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_redislog_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_redislog_request.py new file mode 100644 index 0000000000..10b2b91184 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_redislog_request.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +import re +import six + + + + + +class CreateRedislogRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'query_time': 'int', + 'log_type': 'str', + 'replication_id': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'query_time': 'query_time', + 'log_type': 'log_type', + 'replication_id': 'replication_id' + } + + def __init__(self, instance_id=None, query_time=None, log_type=None, replication_id=None): + """CreateRedislogRequest - a model defined in huaweicloud sdk""" + + + + self._instance_id = None + self._query_time = None + self._log_type = None + self._replication_id = None + self.discriminator = None + + self.instance_id = instance_id + if query_time is not None: + self.query_time = query_time + self.log_type = log_type + if replication_id is not None: + self.replication_id = replication_id + + @property + def instance_id(self): + """Gets the instance_id of this CreateRedislogRequest. + + 实例ID。 + + :return: The instance_id of this CreateRedislogRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateRedislogRequest. + + 实例ID。 + + :param instance_id: The instance_id of this CreateRedislogRequest. + :type: str + """ + self._instance_id = instance_id + + @property + def query_time(self): + """Gets the query_time of this CreateRedislogRequest. + + 日期偏移量,表示从过去的n天开始查询,例如:传入0则表示查询今天的日志,传入7则表示查询过去7天的日志。最大支持0-7。 + + :return: The query_time of this CreateRedislogRequest. + :rtype: int + """ + return self._query_time + + @query_time.setter + def query_time(self, query_time): + """Sets the query_time of this CreateRedislogRequest. + + 日期偏移量,表示从过去的n天开始查询,例如:传入0则表示查询今天的日志,传入7则表示查询过去7天的日志。最大支持0-7。 + + :param query_time: The query_time of this CreateRedislogRequest. + :type: int + """ + self._query_time = query_time + + @property + def log_type(self): + """Gets the log_type of this CreateRedislogRequest. + + 返回日志的类型,当前仅支持Redis运行日志,类型为run + + :return: The log_type of this CreateRedislogRequest. + :rtype: str + """ + return self._log_type + + @log_type.setter + def log_type(self, log_type): + """Sets the log_type of this CreateRedislogRequest. + + 返回日志的类型,当前仅支持Redis运行日志,类型为run + + :param log_type: The log_type of this CreateRedislogRequest. + :type: str + """ + self._log_type = log_type + + @property + def replication_id(self): + """Gets the replication_id of this CreateRedislogRequest. + + 副本ID,可以从分片与副本中查询对应节点的副本ID + + :return: The replication_id of this CreateRedislogRequest. + :rtype: str + """ + return self._replication_id + + @replication_id.setter + def replication_id(self, replication_id): + """Sets the replication_id of this CreateRedislogRequest. + + 副本ID,可以从分片与副本中查询对应节点的副本ID + + :param replication_id: The replication_id of this CreateRedislogRequest. + :type: str + """ + self._replication_id = replication_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRedislogRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_redislog_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_redislog_response.py new file mode 100644 index 0000000000..0e60712689 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_redislog_response.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class CreateRedislogResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """CreateRedislogResponse - a model defined in huaweicloud sdk""" + + super(CreateRedislogResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateRedislogResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/diagnosis_dimension.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/diagnosis_dimension.py new file mode 100644 index 0000000000..db77b45ca9 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/diagnosis_dimension.py @@ -0,0 +1,185 @@ +# coding: utf-8 + +import re +import six + + + + + +class DiagnosisDimension: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'abnormal_num': 'int', + 'failed_num': 'int', + 'diagnosis_item_list': 'list[DiagnosisItem]' + } + + attribute_map = { + 'name': 'name', + 'abnormal_num': 'abnormal_num', + 'failed_num': 'failed_num', + 'diagnosis_item_list': 'diagnosis_item_list' + } + + def __init__(self, name=None, abnormal_num=None, failed_num=None, diagnosis_item_list=None): + """DiagnosisDimension - a model defined in huaweicloud sdk""" + + + + self._name = None + self._abnormal_num = None + self._failed_num = None + self._diagnosis_item_list = None + self.discriminator = None + + self.name = name + self.abnormal_num = abnormal_num + self.failed_num = failed_num + self.diagnosis_item_list = diagnosis_item_list + + @property + def name(self): + """Gets the name of this DiagnosisDimension. + + 诊断维度名称 + + :return: The name of this DiagnosisDimension. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DiagnosisDimension. + + 诊断维度名称 + + :param name: The name of this DiagnosisDimension. + :type: str + """ + self._name = name + + @property + def abnormal_num(self): + """Gets the abnormal_num of this DiagnosisDimension. + + 诊断结果为异常的诊断项总数 + + :return: The abnormal_num of this DiagnosisDimension. + :rtype: int + """ + return self._abnormal_num + + @abnormal_num.setter + def abnormal_num(self, abnormal_num): + """Sets the abnormal_num of this DiagnosisDimension. + + 诊断结果为异常的诊断项总数 + + :param abnormal_num: The abnormal_num of this DiagnosisDimension. + :type: int + """ + self._abnormal_num = abnormal_num + + @property + def failed_num(self): + """Gets the failed_num of this DiagnosisDimension. + + 诊断失败的诊断项总数 + + :return: The failed_num of this DiagnosisDimension. + :rtype: int + """ + return self._failed_num + + @failed_num.setter + def failed_num(self, failed_num): + """Sets the failed_num of this DiagnosisDimension. + + 诊断失败的诊断项总数 + + :param failed_num: The failed_num of this DiagnosisDimension. + :type: int + """ + self._failed_num = failed_num + + @property + def diagnosis_item_list(self): + """Gets the diagnosis_item_list of this DiagnosisDimension. + + 诊断项列表 + + :return: The diagnosis_item_list of this DiagnosisDimension. + :rtype: list[DiagnosisItem] + """ + return self._diagnosis_item_list + + @diagnosis_item_list.setter + def diagnosis_item_list(self, diagnosis_item_list): + """Sets the diagnosis_item_list of this DiagnosisDimension. + + 诊断项列表 + + :param diagnosis_item_list: The diagnosis_item_list of this DiagnosisDimension. + :type: list[DiagnosisItem] + """ + self._diagnosis_item_list = diagnosis_item_list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DiagnosisDimension): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/diagnosis_item.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/diagnosis_item.py new file mode 100644 index 0000000000..7f7b7e2779 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/diagnosis_item.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +import re +import six + + + + + +class DiagnosisItem: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'cause_ids': 'list[ConclusionItem]', + 'impact_ids': 'list[ConclusionItem]', + 'advice_ids': 'list[ConclusionItem]', + 'result': 'str' + } + + attribute_map = { + 'name': 'name', + 'cause_ids': 'cause_ids', + 'impact_ids': 'impact_ids', + 'advice_ids': 'advice_ids', + 'result': 'result' + } + + def __init__(self, name=None, cause_ids=None, impact_ids=None, advice_ids=None, result=None): + """DiagnosisItem - a model defined in huaweicloud sdk""" + + + + self._name = None + self._cause_ids = None + self._impact_ids = None + self._advice_ids = None + self._result = None + self.discriminator = None + + self.name = name + if cause_ids is not None: + self.cause_ids = cause_ids + if impact_ids is not None: + self.impact_ids = impact_ids + if advice_ids is not None: + self.advice_ids = advice_ids + self.result = result + + @property + def name(self): + """Gets the name of this DiagnosisItem. + + 诊断项名称 + + :return: The name of this DiagnosisItem. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DiagnosisItem. + + 诊断项名称 + + :param name: The name of this DiagnosisItem. + :type: str + """ + self._name = name + + @property + def cause_ids(self): + """Gets the cause_ids of this DiagnosisItem. + + 原因ID列表 + + :return: The cause_ids of this DiagnosisItem. + :rtype: list[ConclusionItem] + """ + return self._cause_ids + + @cause_ids.setter + def cause_ids(self, cause_ids): + """Sets the cause_ids of this DiagnosisItem. + + 原因ID列表 + + :param cause_ids: The cause_ids of this DiagnosisItem. + :type: list[ConclusionItem] + """ + self._cause_ids = cause_ids + + @property + def impact_ids(self): + """Gets the impact_ids of this DiagnosisItem. + + 影响ID列表 + + :return: The impact_ids of this DiagnosisItem. + :rtype: list[ConclusionItem] + """ + return self._impact_ids + + @impact_ids.setter + def impact_ids(self, impact_ids): + """Sets the impact_ids of this DiagnosisItem. + + 影响ID列表 + + :param impact_ids: The impact_ids of this DiagnosisItem. + :type: list[ConclusionItem] + """ + self._impact_ids = impact_ids + + @property + def advice_ids(self): + """Gets the advice_ids of this DiagnosisItem. + + 建议ID列表 + + :return: The advice_ids of this DiagnosisItem. + :rtype: list[ConclusionItem] + """ + return self._advice_ids + + @advice_ids.setter + def advice_ids(self, advice_ids): + """Sets the advice_ids of this DiagnosisItem. + + 建议ID列表 + + :param advice_ids: The advice_ids of this DiagnosisItem. + :type: list[ConclusionItem] + """ + self._advice_ids = advice_ids + + @property + def result(self): + """Gets the result of this DiagnosisItem. + + 诊断结果 + + :return: The result of this DiagnosisItem. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this DiagnosisItem. + + 诊断结果 + + :param result: The result of this DiagnosisItem. + :type: str + """ + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DiagnosisItem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/diagnosis_node_report.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/diagnosis_node_report.py new file mode 100644 index 0000000000..ffd6b35fa8 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/diagnosis_node_report.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import re +import six + + + + + +class DiagnosisNodeReport: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'node_ip': 'str', + 'az_code': 'str', + 'group_name': 'str', + 'abnormal_sum': 'int', + 'failed_sum': 'int', + 'role': 'str', + 'diagnosis_dimension_list': 'list[DiagnosisDimension]', + 'command_time_taken_list': 'object' + } + + attribute_map = { + 'node_ip': 'node_ip', + 'az_code': 'az_code', + 'group_name': 'group_name', + 'abnormal_sum': 'abnormal_sum', + 'failed_sum': 'failed_sum', + 'role': 'role', + 'diagnosis_dimension_list': 'diagnosis_dimension_list', + 'command_time_taken_list': 'command_time_taken_list' + } + + def __init__(self, node_ip=None, az_code=None, group_name=None, abnormal_sum=None, failed_sum=None, role=None, diagnosis_dimension_list=None, command_time_taken_list=None): + """DiagnosisNodeReport - a model defined in huaweicloud sdk""" + + + + self._node_ip = None + self._az_code = None + self._group_name = None + self._abnormal_sum = None + self._failed_sum = None + self._role = None + self._diagnosis_dimension_list = None + self._command_time_taken_list = None + self.discriminator = None + + self.node_ip = node_ip + self.az_code = az_code + self.group_name = group_name + self.abnormal_sum = abnormal_sum + self.failed_sum = failed_sum + self.role = role + self.diagnosis_dimension_list = diagnosis_dimension_list + self.command_time_taken_list = command_time_taken_list + + @property + def node_ip(self): + """Gets the node_ip of this DiagnosisNodeReport. + + 节点IP。例如:192.168.0.234:6379 + + :return: The node_ip of this DiagnosisNodeReport. + :rtype: str + """ + return self._node_ip + + @node_ip.setter + def node_ip(self, node_ip): + """Sets the node_ip of this DiagnosisNodeReport. + + 节点IP。例如:192.168.0.234:6379 + + :param node_ip: The node_ip of this DiagnosisNodeReport. + :type: str + """ + self._node_ip = node_ip + + @property + def az_code(self): + """Gets the az_code of this DiagnosisNodeReport. + + 节点所在可用区Code + + :return: The az_code of this DiagnosisNodeReport. + :rtype: str + """ + return self._az_code + + @az_code.setter + def az_code(self, az_code): + """Sets the az_code of this DiagnosisNodeReport. + + 节点所在可用区Code + + :param az_code: The az_code of this DiagnosisNodeReport. + :type: str + """ + self._az_code = az_code + + @property + def group_name(self): + """Gets the group_name of this DiagnosisNodeReport. + + 节点所在分片的名称 + + :return: The group_name of this DiagnosisNodeReport. + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this DiagnosisNodeReport. + + 节点所在分片的名称 + + :param group_name: The group_name of this DiagnosisNodeReport. + :type: str + """ + self._group_name = group_name + + @property + def abnormal_sum(self): + """Gets the abnormal_sum of this DiagnosisNodeReport. + + 诊断结果为异常的诊断项总数 + + :return: The abnormal_sum of this DiagnosisNodeReport. + :rtype: int + """ + return self._abnormal_sum + + @abnormal_sum.setter + def abnormal_sum(self, abnormal_sum): + """Sets the abnormal_sum of this DiagnosisNodeReport. + + 诊断结果为异常的诊断项总数 + + :param abnormal_sum: The abnormal_sum of this DiagnosisNodeReport. + :type: int + """ + self._abnormal_sum = abnormal_sum + + @property + def failed_sum(self): + """Gets the failed_sum of this DiagnosisNodeReport. + + 诊断失败的诊断项总数 + + :return: The failed_sum of this DiagnosisNodeReport. + :rtype: int + """ + return self._failed_sum + + @failed_sum.setter + def failed_sum(self, failed_sum): + """Sets the failed_sum of this DiagnosisNodeReport. + + 诊断失败的诊断项总数 + + :param failed_sum: The failed_sum of this DiagnosisNodeReport. + :type: int + """ + self._failed_sum = failed_sum + + @property + def role(self): + """Gets the role of this DiagnosisNodeReport. + + 节点角色 + + :return: The role of this DiagnosisNodeReport. + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """Sets the role of this DiagnosisNodeReport. + + 节点角色 + + :param role: The role of this DiagnosisNodeReport. + :type: str + """ + self._role = role + + @property + def diagnosis_dimension_list(self): + """Gets the diagnosis_dimension_list of this DiagnosisNodeReport. + + 诊断维度列表 + + :return: The diagnosis_dimension_list of this DiagnosisNodeReport. + :rtype: list[DiagnosisDimension] + """ + return self._diagnosis_dimension_list + + @diagnosis_dimension_list.setter + def diagnosis_dimension_list(self, diagnosis_dimension_list): + """Sets the diagnosis_dimension_list of this DiagnosisNodeReport. + + 诊断维度列表 + + :param diagnosis_dimension_list: The diagnosis_dimension_list of this DiagnosisNodeReport. + :type: list[DiagnosisDimension] + """ + self._diagnosis_dimension_list = diagnosis_dimension_list + + @property + def command_time_taken_list(self): + """Gets the command_time_taken_list of this DiagnosisNodeReport. + + 命令耗时统计列表 + + :return: The command_time_taken_list of this DiagnosisNodeReport. + :rtype: object + """ + return self._command_time_taken_list + + @command_time_taken_list.setter + def command_time_taken_list(self, command_time_taken_list): + """Sets the command_time_taken_list of this DiagnosisNodeReport. + + 命令耗时统计列表 + + :param command_time_taken_list: The command_time_taken_list of this DiagnosisNodeReport. + :type: object + """ + self._command_time_taken_list = command_time_taken_list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DiagnosisNodeReport): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/diagnosis_report_info.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/diagnosis_report_info.py new file mode 100644 index 0000000000..d3e47e859e --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/diagnosis_report_info.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import re +import six + + + + + +class DiagnosisReportInfo: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'report_id': 'str', + 'status': 'str', + 'begin_time': 'str', + 'end_time': 'str', + 'created_at': 'str', + 'node_num': 'int', + 'abnormal_item_sum': 'int', + 'failed_item_sum': 'int' + } + + attribute_map = { + 'report_id': 'report_id', + 'status': 'status', + 'begin_time': 'begin_time', + 'end_time': 'end_time', + 'created_at': 'created_at', + 'node_num': 'node_num', + 'abnormal_item_sum': 'abnormal_item_sum', + 'failed_item_sum': 'failed_item_sum' + } + + def __init__(self, report_id=None, status=None, begin_time=None, end_time=None, created_at=None, node_num=None, abnormal_item_sum=None, failed_item_sum=None): + """DiagnosisReportInfo - a model defined in huaweicloud sdk""" + + + + self._report_id = None + self._status = None + self._begin_time = None + self._end_time = None + self._created_at = None + self._node_num = None + self._abnormal_item_sum = None + self._failed_item_sum = None + self.discriminator = None + + self.report_id = report_id + self.status = status + self.begin_time = begin_time + self.end_time = end_time + self.created_at = created_at + self.node_num = node_num + self.abnormal_item_sum = abnormal_item_sum + self.failed_item_sum = failed_item_sum + + @property + def report_id(self): + """Gets the report_id of this DiagnosisReportInfo. + + 诊断报告ID + + :return: The report_id of this DiagnosisReportInfo. + :rtype: str + """ + return self._report_id + + @report_id.setter + def report_id(self, report_id): + """Sets the report_id of this DiagnosisReportInfo. + + 诊断报告ID + + :param report_id: The report_id of this DiagnosisReportInfo. + :type: str + """ + self._report_id = report_id + + @property + def status(self): + """Gets the status of this DiagnosisReportInfo. + + 诊断任务状态 + + :return: The status of this DiagnosisReportInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this DiagnosisReportInfo. + + 诊断任务状态 + + :param status: The status of this DiagnosisReportInfo. + :type: str + """ + self._status = status + + @property + def begin_time(self): + """Gets the begin_time of this DiagnosisReportInfo. + + 诊断时间段的开始时间。格式为:2017-03-31T12:24:46.297Z + + :return: The begin_time of this DiagnosisReportInfo. + :rtype: str + """ + return self._begin_time + + @begin_time.setter + def begin_time(self, begin_time): + """Sets the begin_time of this DiagnosisReportInfo. + + 诊断时间段的开始时间。格式为:2017-03-31T12:24:46.297Z + + :param begin_time: The begin_time of this DiagnosisReportInfo. + :type: str + """ + self._begin_time = begin_time + + @property + def end_time(self): + """Gets the end_time of this DiagnosisReportInfo. + + 诊断时间段的结束时间。格式为:2017-03-31T12:24:46.297Z + + :return: The end_time of this DiagnosisReportInfo. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this DiagnosisReportInfo. + + 诊断时间段的结束时间。格式为:2017-03-31T12:24:46.297Z + + :param end_time: The end_time of this DiagnosisReportInfo. + :type: str + """ + self._end_time = end_time + + @property + def created_at(self): + """Gets the created_at of this DiagnosisReportInfo. + + 诊断报告创建时间 + + :return: The created_at of this DiagnosisReportInfo. + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this DiagnosisReportInfo. + + 诊断报告创建时间 + + :param created_at: The created_at of this DiagnosisReportInfo. + :type: str + """ + self._created_at = created_at + + @property + def node_num(self): + """Gets the node_num of this DiagnosisReportInfo. + + 参与诊断的节点个数 + + :return: The node_num of this DiagnosisReportInfo. + :rtype: int + """ + return self._node_num + + @node_num.setter + def node_num(self, node_num): + """Sets the node_num of this DiagnosisReportInfo. + + 参与诊断的节点个数 + + :param node_num: The node_num of this DiagnosisReportInfo. + :type: int + """ + self._node_num = node_num + + @property + def abnormal_item_sum(self): + """Gets the abnormal_item_sum of this DiagnosisReportInfo. + + 诊断结果为异常的诊断项总数 + + :return: The abnormal_item_sum of this DiagnosisReportInfo. + :rtype: int + """ + return self._abnormal_item_sum + + @abnormal_item_sum.setter + def abnormal_item_sum(self, abnormal_item_sum): + """Sets the abnormal_item_sum of this DiagnosisReportInfo. + + 诊断结果为异常的诊断项总数 + + :param abnormal_item_sum: The abnormal_item_sum of this DiagnosisReportInfo. + :type: int + """ + self._abnormal_item_sum = abnormal_item_sum + + @property + def failed_item_sum(self): + """Gets the failed_item_sum of this DiagnosisReportInfo. + + 诊断失败的诊断项总数 + + :return: The failed_item_sum of this DiagnosisReportInfo. + :rtype: int + """ + return self._failed_item_sum + + @failed_item_sum.setter + def failed_item_sum(self, failed_item_sum): + """Sets the failed_item_sum of this DiagnosisReportInfo. + + 诊断失败的诊断项总数 + + :param failed_item_sum: The failed_item_sum of this DiagnosisReportInfo. + :type: int + """ + self._failed_item_sum = failed_item_sum + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DiagnosisReportInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/flavor_az_object.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/flavor_az_object.py index 377781d7bc..e459be8216 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/flavor_az_object.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/flavor_az_object.py @@ -48,7 +48,7 @@ def __init__(self, capacity=None, az_codes=None): def capacity(self): """Gets the capacity of this FlavorAzObject. - 缓存容量。 + 缓存容量(G Byte)。 :return: The capacity of this FlavorAzObject. :rtype: str @@ -59,7 +59,7 @@ def capacity(self): def capacity(self, capacity): """Sets the capacity of this FlavorAzObject. - 缓存容量。 + 缓存容量(G Byte)。 :param capacity: The capacity of this FlavorAzObject. :type: str diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/flavors_items.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/flavors_items.py index e62b922439..2c72b6bb3c 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/flavors_items.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/flavors_items.py @@ -184,7 +184,7 @@ def cloud_resource_type_code(self, cloud_resource_type_code): def cache_mode(self): """Gets the cache_mode of this FlavorsItems. - 缓存实例类型。取值范围如下: - single:表示单机实例 - ha:表示主备实例 - cluster:表示cluster集群实例 - proxy:表示Proxy集群实例 + 缓存实例类型。取值范围如下: - single:表示单机实例 - ha:表示主备实例 - cluster:表示cluster集群实例 - proxy:表示Proxy集群实例 - ha_rw_split: 表示读写分离实例 :return: The cache_mode of this FlavorsItems. :rtype: str @@ -195,7 +195,7 @@ def cache_mode(self): def cache_mode(self, cache_mode): """Sets the cache_mode of this FlavorsItems. - 缓存实例类型。取值范围如下: - single:表示单机实例 - ha:表示主备实例 - cluster:表示cluster集群实例 - proxy:表示Proxy集群实例 + 缓存实例类型。取值范围如下: - single:表示单机实例 - ha:表示主备实例 - cluster:表示cluster集群实例 - proxy:表示Proxy集群实例 - ha_rw_split: 表示读写分离实例 :param cache_mode: The cache_mode of this FlavorsItems. :type: str diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/instance_list_info.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/instance_list_info.py index 93a8b876a0..0e89801c93 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/instance_list_info.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/instance_list_info.py @@ -53,7 +53,10 @@ class InstanceListInfo: 'spec_code': 'str', 'status': 'str', 'tags': 'list[ResourceTag]', - 'enterprise_project_id': 'str' + 'enterprise_project_id': 'str', + 'description': 'str', + 'cpu_type': 'str', + 'az_codes': 'list[str]' } attribute_map = { @@ -89,10 +92,13 @@ class InstanceListInfo: 'spec_code': 'spec_code', 'status': 'status', 'tags': 'tags', - 'enterprise_project_id': 'enterprise_project_id' + 'enterprise_project_id': 'enterprise_project_id', + 'description': 'description', + 'cpu_type': 'cpu_type', + 'az_codes': 'az_codes' } - def __init__(self, publicip_id=None, vpc_name=None, charging_mode=None, vpc_id=None, subnet_id=None, security_group_id=None, created_at=None, enable_ssl=None, max_memory=None, used_memory=None, publicip_address=None, capacity=None, capacity_minor=None, maintain_begin=None, maintain_end=None, engine=None, engine_version=None, service_upgrade=None, no_password_access=None, service_task_id=None, ip=None, access_user=None, instance_id=None, enable_publicip=None, port=None, user_id=None, user_name=None, domain_name=None, name=None, spec_code=None, status=None, tags=None, enterprise_project_id=None): + def __init__(self, publicip_id=None, vpc_name=None, charging_mode=None, vpc_id=None, subnet_id=None, security_group_id=None, created_at=None, enable_ssl=None, max_memory=None, used_memory=None, publicip_address=None, capacity=None, capacity_minor=None, maintain_begin=None, maintain_end=None, engine=None, engine_version=None, service_upgrade=None, no_password_access=None, service_task_id=None, ip=None, access_user=None, instance_id=None, enable_publicip=None, port=None, user_id=None, user_name=None, domain_name=None, name=None, spec_code=None, status=None, tags=None, enterprise_project_id=None, description=None, cpu_type=None, az_codes=None): """InstanceListInfo - a model defined in huaweicloud sdk""" @@ -130,6 +136,9 @@ def __init__(self, publicip_id=None, vpc_name=None, charging_mode=None, vpc_id=N self._status = None self._tags = None self._enterprise_project_id = None + self._description = None + self._cpu_type = None + self._az_codes = None self.discriminator = None if publicip_id is not None: @@ -198,6 +207,12 @@ def __init__(self, publicip_id=None, vpc_name=None, charging_mode=None, vpc_id=N self.tags = tags if enterprise_project_id is not None: self.enterprise_project_id = enterprise_project_id + if description is not None: + self.description = description + if cpu_type is not None: + self.cpu_type = cpu_type + if az_codes is not None: + self.az_codes = az_codes @property def publicip_id(self): @@ -925,6 +940,72 @@ def enterprise_project_id(self, enterprise_project_id): """ self._enterprise_project_id = enterprise_project_id + @property + def description(self): + """Gets the description of this InstanceListInfo. + + 实例描述备注 + + :return: The description of this InstanceListInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this InstanceListInfo. + + 实例描述备注 + + :param description: The description of this InstanceListInfo. + :type: str + """ + self._description = description + + @property + def cpu_type(self): + """Gets the cpu_type of this InstanceListInfo. + + 实例CPU类型,通常为x86_64或aarch64 + + :return: The cpu_type of this InstanceListInfo. + :rtype: str + """ + return self._cpu_type + + @cpu_type.setter + def cpu_type(self, cpu_type): + """Sets the cpu_type of this InstanceListInfo. + + 实例CPU类型,通常为x86_64或aarch64 + + :param cpu_type: The cpu_type of this InstanceListInfo. + :type: str + """ + self._cpu_type = cpu_type + + @property + def az_codes(self): + """Gets the az_codes of this InstanceListInfo. + + 有资源的可用区编码。 + + :return: The az_codes of this InstanceListInfo. + :rtype: list[str] + """ + return self._az_codes + + @az_codes.setter + def az_codes(self, az_codes): + """Sets the az_codes of this InstanceListInfo. + + 有资源的可用区编码。 + + :param az_codes: The az_codes of this InstanceListInfo. + :type: list[str] + """ + self._az_codes = az_codes + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_diagnosis_tasks_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_diagnosis_tasks_request.py new file mode 100644 index 0000000000..fc19be44bc --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_diagnosis_tasks_request.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +import re +import six + + + + + +class ListDiagnosisTasksRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'limit': 'int', + 'offset': 'int' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'limit': 'limit', + 'offset': 'offset' + } + + def __init__(self, instance_id=None, limit=None, offset=None): + """ListDiagnosisTasksRequest - a model defined in huaweicloud sdk""" + + + + self._instance_id = None + self._limit = None + self._offset = None + self.discriminator = None + + self.instance_id = instance_id + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + + @property + def instance_id(self): + """Gets the instance_id of this ListDiagnosisTasksRequest. + + 实例ID + + :return: The instance_id of this ListDiagnosisTasksRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListDiagnosisTasksRequest. + + 实例ID + + :param instance_id: The instance_id of this ListDiagnosisTasksRequest. + :type: str + """ + self._instance_id = instance_id + + @property + def limit(self): + """Gets the limit of this ListDiagnosisTasksRequest. + + 每页显示条数,最小值为1,最大值为1000,若不设置该参数,则为10。 + + :return: The limit of this ListDiagnosisTasksRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListDiagnosisTasksRequest. + + 每页显示条数,最小值为1,最大值为1000,若不设置该参数,则为10。 + + :param limit: The limit of this ListDiagnosisTasksRequest. + :type: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListDiagnosisTasksRequest. + + 偏移量,表示从此偏移量开始查询, offset大于等于0。 + + :return: The offset of this ListDiagnosisTasksRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListDiagnosisTasksRequest. + + 偏移量,表示从此偏移量开始查询, offset大于等于0。 + + :param offset: The offset of this ListDiagnosisTasksRequest. + :type: int + """ + self._offset = offset + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDiagnosisTasksRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_diagnosis_tasks_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_diagnosis_tasks_response.py new file mode 100644 index 0000000000..f818b39cb6 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_diagnosis_tasks_response.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ListDiagnosisTasksResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'diagnosis_report_list': 'list[DiagnosisReportInfo]', + 'total_num': 'int' + } + + attribute_map = { + 'diagnosis_report_list': 'diagnosis_report_list', + 'total_num': 'total_num' + } + + def __init__(self, diagnosis_report_list=None, total_num=None): + """ListDiagnosisTasksResponse - a model defined in huaweicloud sdk""" + + super(ListDiagnosisTasksResponse, self).__init__() + + self._diagnosis_report_list = None + self._total_num = None + self.discriminator = None + + if diagnosis_report_list is not None: + self.diagnosis_report_list = diagnosis_report_list + if total_num is not None: + self.total_num = total_num + + @property + def diagnosis_report_list(self): + """Gets the diagnosis_report_list of this ListDiagnosisTasksResponse. + + 诊断报告列表 + + :return: The diagnosis_report_list of this ListDiagnosisTasksResponse. + :rtype: list[DiagnosisReportInfo] + """ + return self._diagnosis_report_list + + @diagnosis_report_list.setter + def diagnosis_report_list(self, diagnosis_report_list): + """Sets the diagnosis_report_list of this ListDiagnosisTasksResponse. + + 诊断报告列表 + + :param diagnosis_report_list: The diagnosis_report_list of this ListDiagnosisTasksResponse. + :type: list[DiagnosisReportInfo] + """ + self._diagnosis_report_list = diagnosis_report_list + + @property + def total_num(self): + """Gets the total_num of this ListDiagnosisTasksResponse. + + 诊断报告总数 + + :return: The total_num of this ListDiagnosisTasksResponse. + :rtype: int + """ + return self._total_num + + @total_num.setter + def total_num(self, total_num): + """Sets the total_num of this ListDiagnosisTasksResponse. + + 诊断报告总数 + + :param total_num: The total_num of this ListDiagnosisTasksResponse. + :type: int + """ + self._total_num = total_num + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDiagnosisTasksResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_flavors_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_flavors_request.py index 7e75750dc7..21f9e144e7 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_flavors_request.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_flavors_request.py @@ -90,7 +90,7 @@ def spec_code(self, spec_code): def cache_mode(self): """Gets the cache_mode of this ListFlavorsRequest. - 缓存实例类型。取值范围如下: - single:表示单机实例 - ha:表示主备实例 - cluster:表示cluster集群实例 - proxy:表示Proxy集群实例 + 缓存实例类型。取值范围如下: - single:表示单机实例 - ha:表示主备实例 - cluster:表示cluster集群实例 - proxy:表示Proxy集群实例 - ha_rw_split: 表示读写分离实例 :return: The cache_mode of this ListFlavorsRequest. :rtype: str @@ -101,7 +101,7 @@ def cache_mode(self): def cache_mode(self, cache_mode): """Sets the cache_mode of this ListFlavorsRequest. - 缓存实例类型。取值范围如下: - single:表示单机实例 - ha:表示主备实例 - cluster:表示cluster集群实例 - proxy:表示Proxy集群实例 + 缓存实例类型。取值范围如下: - single:表示单机实例 - ha:表示主备实例 - cluster:表示cluster集群实例 - proxy:表示Proxy集群实例 - ha_rw_split: 表示读写分离实例 :param cache_mode: The cache_mode of this ListFlavorsRequest. :type: str diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_instances_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_instances_request.py index 676d0c4072..2a277b64f2 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_instances_request.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_instances_request.py @@ -23,6 +23,7 @@ class ListInstancesRequest: openapi_types = { 'instance_id': 'str', 'include_failure': 'str', + 'include_delete': 'str', 'name': 'str', 'offset': 'int', 'limit': 'int', @@ -35,6 +36,7 @@ class ListInstancesRequest: attribute_map = { 'instance_id': 'instance_id', 'include_failure': 'include_failure', + 'include_delete': 'include_delete', 'name': 'name', 'offset': 'offset', 'limit': 'limit', @@ -44,13 +46,14 @@ class ListInstancesRequest: 'ip': 'ip' } - def __init__(self, instance_id=None, include_failure=None, name=None, offset=None, limit=None, status=None, name_equal=None, tags=None, ip=None): + def __init__(self, instance_id=None, include_failure=None, include_delete=None, name=None, offset=None, limit=None, status=None, name_equal=None, tags=None, ip=None): """ListInstancesRequest - a model defined in huaweicloud sdk""" self._instance_id = None self._include_failure = None + self._include_delete = None self._name = None self._offset = None self._limit = None @@ -64,6 +67,8 @@ def __init__(self, instance_id=None, include_failure=None, name=None, offset=Non self.instance_id = instance_id if include_failure is not None: self.include_failure = include_failure + if include_delete is not None: + self.include_delete = include_delete if name is not None: self.name = name if offset is not None: @@ -105,7 +110,7 @@ def instance_id(self, instance_id): def include_failure(self): """Gets the include_failure of this ListInstancesRequest. - 是否返回创建失败的实例数。 当参数值为“true”时,返回创建失败的实例数。参数值为“false”或者其他值,不返回创建失败的实例数。 + 是否返回创建失败的实例数。 当参数值为“true”时,返回创建失败的实例数。参数值为“false”或者其他值,不返回创建失败的实例数。 :return: The include_failure of this ListInstancesRequest. :rtype: str @@ -116,13 +121,35 @@ def include_failure(self): def include_failure(self, include_failure): """Sets the include_failure of this ListInstancesRequest. - 是否返回创建失败的实例数。 当参数值为“true”时,返回创建失败的实例数。参数值为“false”或者其他值,不返回创建失败的实例数。 + 是否返回创建失败的实例数。 当参数值为“true”时,返回创建失败的实例数。参数值为“false”或者其他值,不返回创建失败的实例数。 :param include_failure: The include_failure of this ListInstancesRequest. :type: str """ self._include_failure = include_failure + @property + def include_delete(self): + """Gets the include_delete of this ListInstancesRequest. + + 是否返回已删除的实例数。 当参数值为“true”时,返回已删除的实例数。参数值为“false”或者其他值,不返回已删除的实例数。 + + :return: The include_delete of this ListInstancesRequest. + :rtype: str + """ + return self._include_delete + + @include_delete.setter + def include_delete(self, include_delete): + """Sets the include_delete of this ListInstancesRequest. + + 是否返回已删除的实例数。 当参数值为“true”时,返回已删除的实例数。参数值为“false”或者其他值,不返回已删除的实例数。 + + :param include_delete: The include_delete of this ListInstancesRequest. + :type: str + """ + self._include_delete = include_delete + @property def name(self): """Gets the name of this ListInstancesRequest. @@ -215,7 +242,7 @@ def status(self, status): def name_equal(self): """Gets the name_equal of this ListInstancesRequest. - 是否按照实例名称进行精确匹配查询。 默认为“false”,表示模糊匹配实例名称查询。若参数值为“true”表示按照实例名称进行精确匹配查询。 + 是否按照实例名称进行精确匹配查询。 默认为“false”,表示模糊匹配实例名称查询。若参数值为“true”表示按照实例名称进行精确匹配查询。 :return: The name_equal of this ListInstancesRequest. :rtype: str @@ -226,7 +253,7 @@ def name_equal(self): def name_equal(self, name_equal): """Sets the name_equal of this ListInstancesRequest. - 是否按照实例名称进行精确匹配查询。 默认为“false”,表示模糊匹配实例名称查询。若参数值为“true”表示按照实例名称进行精确匹配查询。 + 是否按照实例名称进行精确匹配查询。 默认为“false”,表示模糊匹配实例名称查询。若参数值为“true”表示按照实例名称进行精确匹配查询。 :param name_equal: The name_equal of this ListInstancesRequest. :type: str diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_redislog_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_redislog_request.py new file mode 100644 index 0000000000..23a68182af --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_redislog_request.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +import re +import six + + + + + +class ListRedislogRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'log_type': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'offset': 'offset', + 'limit': 'limit', + 'log_type': 'log_type' + } + + def __init__(self, instance_id=None, offset=None, limit=None, log_type=None): + """ListRedislogRequest - a model defined in huaweicloud sdk""" + + + + self._instance_id = None + self._offset = None + self._limit = None + self._log_type = None + self.discriminator = None + + self.instance_id = instance_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + self.log_type = log_type + + @property + def instance_id(self): + """Gets the instance_id of this ListRedislogRequest. + + 实例ID。 + + :return: The instance_id of this ListRedislogRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListRedislogRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ListRedislogRequest. + :type: str + """ + self._instance_id = instance_id + + @property + def offset(self): + """Gets the offset of this ListRedislogRequest. + + 偏移量,表示从此偏移量开始查询, offset大于等于0 + + :return: The offset of this ListRedislogRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListRedislogRequest. + + 偏移量,表示从此偏移量开始查询, offset大于等于0 + + :param offset: The offset of this ListRedislogRequest. + :type: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListRedislogRequest. + + 每页显示的条目数量。 + + :return: The limit of this ListRedislogRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListRedislogRequest. + + 每页显示的条目数量。 + + :param limit: The limit of this ListRedislogRequest. + :type: int + """ + self._limit = limit + + @property + def log_type(self): + """Gets the log_type of this ListRedislogRequest. + + 返回日志的类型,当前仅支持Redis运行日志,类型为run + + :return: The log_type of this ListRedislogRequest. + :rtype: str + """ + return self._log_type + + @log_type.setter + def log_type(self, log_type): + """Sets the log_type of this ListRedislogRequest. + + 返回日志的类型,当前仅支持Redis运行日志,类型为run + + :param log_type: The log_type of this ListRedislogRequest. + :type: str + """ + self._log_type = log_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListRedislogRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_slow_log_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_redislog_response.py similarity index 53% rename from huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_slow_log_response.py rename to huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_redislog_response.py index 7249db72fe..77c7e446c5 100644 --- a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_slow_log_response.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_redislog_response.py @@ -7,7 +7,7 @@ from huaweicloudsdkcore.sdk_response import SdkResponse -class ListSlowLogResponse(SdkResponse): +class ListRedislogResponse(SdkResponse): """ @@ -21,72 +21,72 @@ class ListSlowLogResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'total_record': 'int', - 'slow_log_list': 'list[SlowLogList]' + 'total_num': 'int', + 'file_list': 'list[RunlogItem]' } attribute_map = { - 'total_record': 'totalRecord', - 'slow_log_list': 'slowLogList' + 'total_num': 'total_num', + 'file_list': 'file_list' } - def __init__(self, total_record=None, slow_log_list=None): - """ListSlowLogResponse - a model defined in huaweicloud sdk""" + def __init__(self, total_num=None, file_list=None): + """ListRedislogResponse - a model defined in huaweicloud sdk""" - super(ListSlowLogResponse, self).__init__() + super(ListRedislogResponse, self).__init__() - self._total_record = None - self._slow_log_list = None + self._total_num = None + self._file_list = None self.discriminator = None - if total_record is not None: - self.total_record = total_record - if slow_log_list is not None: - self.slow_log_list = slow_log_list + if total_num is not None: + self.total_num = total_num + if file_list is not None: + self.file_list = file_list @property - def total_record(self): - """Gets the total_record of this ListSlowLogResponse. + def total_num(self): + """Gets the total_num of this ListRedislogResponse. - DDM慢sql日志条数。 + 总数 - :return: The total_record of this ListSlowLogResponse. + :return: The total_num of this ListRedislogResponse. :rtype: int """ - return self._total_record + return self._total_num - @total_record.setter - def total_record(self, total_record): - """Sets the total_record of this ListSlowLogResponse. + @total_num.setter + def total_num(self, total_num): + """Sets the total_num of this ListRedislogResponse. - DDM慢sql日志条数。 + 总数 - :param total_record: The total_record of this ListSlowLogResponse. + :param total_num: The total_num of this ListRedislogResponse. :type: int """ - self._total_record = total_record + self._total_num = total_num @property - def slow_log_list(self): - """Gets the slow_log_list of this ListSlowLogResponse. + def file_list(self): + """Gets the file_list of this ListRedislogResponse. - DDM慢sql日志信息列表的集合。 + 运行日志列表 - :return: The slow_log_list of this ListSlowLogResponse. - :rtype: list[SlowLogList] + :return: The file_list of this ListRedislogResponse. + :rtype: list[RunlogItem] """ - return self._slow_log_list + return self._file_list - @slow_log_list.setter - def slow_log_list(self, slow_log_list): - """Sets the slow_log_list of this ListSlowLogResponse. + @file_list.setter + def file_list(self, file_list): + """Sets the file_list of this ListRedislogResponse. - DDM慢sql日志信息列表的集合。 + 运行日志列表 - :param slow_log_list: The slow_log_list of this ListSlowLogResponse. - :type: list[SlowLogList] + :param file_list: The file_list of this ListRedislogResponse. + :type: list[RunlogItem] """ - self._slow_log_list = slow_log_list + self._file_list = file_list def to_dict(self): """Returns the model properties as a dict""" @@ -125,7 +125,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ListSlowLogResponse): + if not isinstance(other, ListRedislogResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/resize_instance_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/resize_instance_body.py new file mode 100644 index 0000000000..3fd17b4d7f --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/resize_instance_body.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +import re +import six + + + + + +class ResizeInstanceBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'spec_code': 'str', + 'new_capacity': 'int', + 'bss_param': 'BssParamEntity', + 'reserved_ip': 'list[str]', + 'change_type': 'str', + 'available_zones': 'list[str]', + 'node_list': 'list[str]' + } + + attribute_map = { + 'spec_code': 'spec_code', + 'new_capacity': 'new_capacity', + 'bss_param': 'bss_param', + 'reserved_ip': 'reserved_ip', + 'change_type': 'change_type', + 'available_zones': 'available_zones', + 'node_list': 'node_list' + } + + def __init__(self, spec_code=None, new_capacity=None, bss_param=None, reserved_ip=None, change_type=None, available_zones=None, node_list=None): + """ResizeInstanceBody - a model defined in huaweicloud sdk""" + + + + self._spec_code = None + self._new_capacity = None + self._bss_param = None + self._reserved_ip = None + self._change_type = None + self._available_zones = None + self._node_list = None + self.discriminator = None + + self.spec_code = spec_code + self.new_capacity = new_capacity + if bss_param is not None: + self.bss_param = bss_param + if reserved_ip is not None: + self.reserved_ip = reserved_ip + if change_type is not None: + self.change_type = change_type + if available_zones is not None: + self.available_zones = available_zones + if node_list is not None: + self.node_list = node_list + + @property + def spec_code(self): + """Gets the spec_code of this ResizeInstanceBody. + + 产品规格编码。具体查询方法如下: - 方法一:查询产品介绍中的[实例规格](https://support.huaweicloud.com/productdesc-dcs/dcs-pd-0522002.html) - 方法二:登录分布式缓存的控制台界面,点击购买缓存实例,查找对应的实例规格名称 - 方法三:调用[查询产品规格](https://support.huaweicloud.com/api-dcs/ListFlavors.html)接口查询。 + + :return: The spec_code of this ResizeInstanceBody. + :rtype: str + """ + return self._spec_code + + @spec_code.setter + def spec_code(self, spec_code): + """Sets the spec_code of this ResizeInstanceBody. + + 产品规格编码。具体查询方法如下: - 方法一:查询产品介绍中的[实例规格](https://support.huaweicloud.com/productdesc-dcs/dcs-pd-0522002.html) - 方法二:登录分布式缓存的控制台界面,点击购买缓存实例,查找对应的实例规格名称 - 方法三:调用[查询产品规格](https://support.huaweicloud.com/api-dcs/ListFlavors.html)接口查询。 + + :param spec_code: The spec_code of this ResizeInstanceBody. + :type: str + """ + self._spec_code = spec_code + + @property + def new_capacity(self): + """Gets the new_capacity of this ResizeInstanceBody. + + 新的缓存实例规格,新的规格必须大于扩容前的规格,单位:GB。 取值包括:4,8,16,32,64 取值必须是当前产品支持的实例规格,请以实际为准。 + + :return: The new_capacity of this ResizeInstanceBody. + :rtype: int + """ + return self._new_capacity + + @new_capacity.setter + def new_capacity(self, new_capacity): + """Sets the new_capacity of this ResizeInstanceBody. + + 新的缓存实例规格,新的规格必须大于扩容前的规格,单位:GB。 取值包括:4,8,16,32,64 取值必须是当前产品支持的实例规格,请以实际为准。 + + :param new_capacity: The new_capacity of this ResizeInstanceBody. + :type: int + """ + self._new_capacity = new_capacity + + @property + def bss_param(self): + """Gets the bss_param of this ResizeInstanceBody. + + + :return: The bss_param of this ResizeInstanceBody. + :rtype: BssParamEntity + """ + return self._bss_param + + @bss_param.setter + def bss_param(self, bss_param): + """Sets the bss_param of this ResizeInstanceBody. + + + :param bss_param: The bss_param of this ResizeInstanceBody. + :type: BssParamEntity + """ + self._bss_param = bss_param + + @property + def reserved_ip(self): + """Gets the reserved_ip of this ResizeInstanceBody. + + 需要保留的节点ip。cluster集群缩容时需要填写,不填写时系统将随机删除多余的分片 + + :return: The reserved_ip of this ResizeInstanceBody. + :rtype: list[str] + """ + return self._reserved_ip + + @reserved_ip.setter + def reserved_ip(self, reserved_ip): + """Sets the reserved_ip of this ResizeInstanceBody. + + 需要保留的节点ip。cluster集群缩容时需要填写,不填写时系统将随机删除多余的分片 + + :param reserved_ip: The reserved_ip of this ResizeInstanceBody. + :type: list[str] + """ + self._reserved_ip = reserved_ip + + @property + def change_type(self): + """Gets the change_type of this ResizeInstanceBody. + + 变更类型,Redis 4.0或者5.0主备实例进行副本数变更时必选。 - createReplication: 添加副本 - deleteReplication: 删除副本 + + :return: The change_type of this ResizeInstanceBody. + :rtype: str + """ + return self._change_type + + @change_type.setter + def change_type(self, change_type): + """Sets the change_type of this ResizeInstanceBody. + + 变更类型,Redis 4.0或者5.0主备实例进行副本数变更时必选。 - createReplication: 添加副本 - deleteReplication: 删除副本 + + :param change_type: The change_type of this ResizeInstanceBody. + :type: str + """ + self._change_type = change_type + + @property + def available_zones(self): + """Gets the available_zones of this ResizeInstanceBody. + + Redis 4.0或者5.0主备实例进行添加副本时必选,指定每个副本所在的可用区Code,使用前需要先确认该可用区资源是否售罄。 具体查询方法,请参考[查询可用区信息](https://support.huaweicloud.com/api-dcs/ListAvailableZones.html) + + :return: The available_zones of this ResizeInstanceBody. + :rtype: list[str] + """ + return self._available_zones + + @available_zones.setter + def available_zones(self, available_zones): + """Sets the available_zones of this ResizeInstanceBody. + + Redis 4.0或者5.0主备实例进行添加副本时必选,指定每个副本所在的可用区Code,使用前需要先确认该可用区资源是否售罄。 具体查询方法,请参考[查询可用区信息](https://support.huaweicloud.com/api-dcs/ListAvailableZones.html) + + :param available_zones: The available_zones of this ResizeInstanceBody. + :type: list[str] + """ + self._available_zones = available_zones + + @property + def node_list(self): + """Gets the node_list of this ResizeInstanceBody. + + Redis 4.0或者5.0主备实例进行删除副本时必选,指定需要删除的节点ID,目前仅支持一次删除一个副本。 节点ID查询方法,请参考[查询分片信息](https://support.huaweicloud.com/api-dcs/ListGroupReplicationInfo.html) + + :return: The node_list of this ResizeInstanceBody. + :rtype: list[str] + """ + return self._node_list + + @node_list.setter + def node_list(self, node_list): + """Sets the node_list of this ResizeInstanceBody. + + Redis 4.0或者5.0主备实例进行删除副本时必选,指定需要删除的节点ID,目前仅支持一次删除一个副本。 节点ID查询方法,请参考[查询分片信息](https://support.huaweicloud.com/api-dcs/ListGroupReplicationInfo.html) + + :param node_list: The node_list of this ResizeInstanceBody. + :type: list[str] + """ + self._node_list = node_list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResizeInstanceBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/resize_instance_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/resize_instance_request.py new file mode 100644 index 0000000000..f97c6caa6a --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/resize_instance_request.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +import re +import six + + + + + +class ResizeInstanceRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'ResizeInstanceBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """ResizeInstanceRequest - a model defined in huaweicloud sdk""" + + + + self._instance_id = None + self._body = None + self.discriminator = None + + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this ResizeInstanceRequest. + + 实例ID。 + + :return: The instance_id of this ResizeInstanceRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ResizeInstanceRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ResizeInstanceRequest. + :type: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this ResizeInstanceRequest. + + + :return: The body of this ResizeInstanceRequest. + :rtype: ResizeInstanceBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ResizeInstanceRequest. + + + :param body: The body of this ResizeInstanceRequest. + :type: ResizeInstanceBody + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResizeInstanceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/resize_instance_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/resize_instance_response.py new file mode 100644 index 0000000000..a23c880fa0 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/resize_instance_response.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ResizeInstanceResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """ResizeInstanceResponse - a model defined in huaweicloud sdk""" + + super(ResizeInstanceResponse, self).__init__() + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResizeInstanceResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/runlog_item.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/runlog_item.py new file mode 100644 index 0000000000..ab4dd985f0 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/runlog_item.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +import re +import six + + + + + +class RunlogItem: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'file_name': 'str', + 'status': 'str', + 'time': 'str' + } + + attribute_map = { + 'id': 'id', + 'file_name': 'file_name', + 'status': 'status', + 'time': 'time' + } + + def __init__(self, id=None, file_name=None, status=None, time=None): + """RunlogItem - a model defined in huaweicloud sdk""" + + + + self._id = None + self._file_name = None + self._status = None + self._time = None + self.discriminator = None + + if id is not None: + self.id = id + if file_name is not None: + self.file_name = file_name + if status is not None: + self.status = status + if time is not None: + self.time = time + + @property + def id(self): + """Gets the id of this RunlogItem. + + 日志的唯一标识 + + :return: The id of this RunlogItem. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this RunlogItem. + + 日志的唯一标识 + + :param id: The id of this RunlogItem. + :type: str + """ + self._id = id + + @property + def file_name(self): + """Gets the file_name of this RunlogItem. + + 运行日志文件名 + + :return: The file_name of this RunlogItem. + :rtype: str + """ + return self._file_name + + @file_name.setter + def file_name(self, file_name): + """Sets the file_name of this RunlogItem. + + 运行日志文件名 + + :param file_name: The file_name of this RunlogItem. + :type: str + """ + self._file_name = file_name + + @property + def status(self): + """Gets the status of this RunlogItem. + + 获取运行日志状态 + + :return: The status of this RunlogItem. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this RunlogItem. + + 获取运行日志状态 + + :param status: The status of this RunlogItem. + :type: str + """ + self._status = status + + @property + def time(self): + """Gets the time of this RunlogItem. + + 运行日志采集的日期,格式为\"yyyy-MM-dd\" + + :return: The time of this RunlogItem. + :rtype: str + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this RunlogItem. + + 运行日志采集的日期,格式为\"yyyy-MM-dd\" + + :param time: The time of this RunlogItem. + :type: str + """ + self._time = time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RunlogItem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_diagnosis_task_details_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_diagnosis_task_details_request.py new file mode 100644 index 0000000000..2fda8f3281 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_diagnosis_task_details_request.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +import re +import six + + + + + +class ShowDiagnosisTaskDetailsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'report_id': 'str' + } + + attribute_map = { + 'report_id': 'report_id' + } + + def __init__(self, report_id=None): + """ShowDiagnosisTaskDetailsRequest - a model defined in huaweicloud sdk""" + + + + self._report_id = None + self.discriminator = None + + self.report_id = report_id + + @property + def report_id(self): + """Gets the report_id of this ShowDiagnosisTaskDetailsRequest. + + 诊断报告ID + + :return: The report_id of this ShowDiagnosisTaskDetailsRequest. + :rtype: str + """ + return self._report_id + + @report_id.setter + def report_id(self, report_id): + """Sets the report_id of this ShowDiagnosisTaskDetailsRequest. + + 诊断报告ID + + :param report_id: The report_id of this ShowDiagnosisTaskDetailsRequest. + :type: str + """ + self._report_id = report_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDiagnosisTaskDetailsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_diagnosis_task_details_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_diagnosis_task_details_response.py new file mode 100644 index 0000000000..7510de5858 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_diagnosis_task_details_response.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse + + +class ShowDiagnosisTaskDetailsResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'abnormal_item_sum': 'int', + 'failed_item_sum': 'int', + 'diagnosis_node_report_list': 'list[DiagnosisNodeReport]' + } + + attribute_map = { + 'abnormal_item_sum': 'abnormal_item_sum', + 'failed_item_sum': 'failed_item_sum', + 'diagnosis_node_report_list': 'diagnosis_node_report_list' + } + + def __init__(self, abnormal_item_sum=None, failed_item_sum=None, diagnosis_node_report_list=None): + """ShowDiagnosisTaskDetailsResponse - a model defined in huaweicloud sdk""" + + super(ShowDiagnosisTaskDetailsResponse, self).__init__() + + self._abnormal_item_sum = None + self._failed_item_sum = None + self._diagnosis_node_report_list = None + self.discriminator = None + + if abnormal_item_sum is not None: + self.abnormal_item_sum = abnormal_item_sum + if failed_item_sum is not None: + self.failed_item_sum = failed_item_sum + if diagnosis_node_report_list is not None: + self.diagnosis_node_report_list = diagnosis_node_report_list + + @property + def abnormal_item_sum(self): + """Gets the abnormal_item_sum of this ShowDiagnosisTaskDetailsResponse. + + 诊断结果为异常的诊断项总数 + + :return: The abnormal_item_sum of this ShowDiagnosisTaskDetailsResponse. + :rtype: int + """ + return self._abnormal_item_sum + + @abnormal_item_sum.setter + def abnormal_item_sum(self, abnormal_item_sum): + """Sets the abnormal_item_sum of this ShowDiagnosisTaskDetailsResponse. + + 诊断结果为异常的诊断项总数 + + :param abnormal_item_sum: The abnormal_item_sum of this ShowDiagnosisTaskDetailsResponse. + :type: int + """ + self._abnormal_item_sum = abnormal_item_sum + + @property + def failed_item_sum(self): + """Gets the failed_item_sum of this ShowDiagnosisTaskDetailsResponse. + + 诊断失败的诊断项总数 + + :return: The failed_item_sum of this ShowDiagnosisTaskDetailsResponse. + :rtype: int + """ + return self._failed_item_sum + + @failed_item_sum.setter + def failed_item_sum(self, failed_item_sum): + """Sets the failed_item_sum of this ShowDiagnosisTaskDetailsResponse. + + 诊断失败的诊断项总数 + + :param failed_item_sum: The failed_item_sum of this ShowDiagnosisTaskDetailsResponse. + :type: int + """ + self._failed_item_sum = failed_item_sum + + @property + def diagnosis_node_report_list(self): + """Gets the diagnosis_node_report_list of this ShowDiagnosisTaskDetailsResponse. + + 节点诊断报告列表 + + :return: The diagnosis_node_report_list of this ShowDiagnosisTaskDetailsResponse. + :rtype: list[DiagnosisNodeReport] + """ + return self._diagnosis_node_report_list + + @diagnosis_node_report_list.setter + def diagnosis_node_report_list(self, diagnosis_node_report_list): + """Sets the diagnosis_node_report_list of this ShowDiagnosisTaskDetailsResponse. + + 节点诊断报告列表 + + :param diagnosis_node_report_list: The diagnosis_node_report_list of this ShowDiagnosisTaskDetailsResponse. + :type: list[DiagnosisNodeReport] + """ + self._diagnosis_node_report_list = diagnosis_node_report_list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + import simplejson as json + return json.dumps(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDiagnosisTaskDetailsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index c667f738ae..8bda9fcbdb 100644 --- a/huaweicloud-sdk-dcs/setup.py +++ b/huaweicloud-sdk-dcs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdcs" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/__init__.py b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/__init__.py index 398323056b..c5b7758aa7 100644 --- a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/__init__.py +++ b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/__init__.py @@ -55,10 +55,6 @@ from huaweicloudsdkddm.v1.model.list_instances_response import ListInstancesResponse from huaweicloudsdkddm.v1.model.list_nodes_request import ListNodesRequest from huaweicloudsdkddm.v1.model.list_nodes_response import ListNodesResponse -from huaweicloudsdkddm.v1.model.list_read_write_ratio_request import ListReadWriteRatioRequest -from huaweicloudsdkddm.v1.model.list_read_write_ratio_response import ListReadWriteRatioResponse -from huaweicloudsdkddm.v1.model.list_slow_log_request import ListSlowLogRequest -from huaweicloudsdkddm.v1.model.list_slow_log_response import ListSlowLogResponse from huaweicloudsdkddm.v1.model.list_users_request import ListUsersRequest from huaweicloudsdkddm.v1.model.list_users_response import ListUsersResponse from huaweicloudsdkddm.v1.model.modify_instance_name_req import ModifyInstanceNameReq @@ -66,7 +62,6 @@ from huaweicloudsdkddm.v1.model.modify_read_and_write_strategy_req import ModifyReadAndWriteStrategyReq from huaweicloudsdkddm.v1.model.node_list import NodeList from huaweicloudsdkddm.v1.model.query_available_rds_list import QueryAvailableRdsList -from huaweicloudsdkddm.v1.model.read_write_ratio_list import ReadWriteRatioList from huaweicloudsdkddm.v1.model.rebuild_config_request import RebuildConfigRequest from huaweicloudsdkddm.v1.model.rebuild_config_response import RebuildConfigResponse from huaweicloudsdkddm.v1.model.reduce_request import ReduceRequest @@ -88,7 +83,6 @@ from huaweicloudsdkddm.v1.model.show_node_response import ShowNodeResponse from huaweicloudsdkddm.v1.model.shrink_instance_nodes_request import ShrinkInstanceNodesRequest from huaweicloudsdkddm.v1.model.shrink_instance_nodes_response import ShrinkInstanceNodesResponse -from huaweicloudsdkddm.v1.model.slow_log_list import SlowLogList from huaweicloudsdkddm.v1.model.support_azs_info import SupportAzsInfo from huaweicloudsdkddm.v1.model.update_database_info_request import UpdateDatabaseInfoRequest from huaweicloudsdkddm.v1.model.update_database_info_response import UpdateDatabaseInfoResponse diff --git a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/ddm_async_client.py b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/ddm_async_client.py index 0dfa7cfdb3..509a2260cb 100644 --- a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/ddm_async_client.py +++ b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/ddm_async_client.py @@ -901,148 +901,6 @@ def list_nodes_with_http_info(self, request): request_type=request.__class__.__name__) - def list_read_write_ratio_async(self, request): - """读写比例监控 - - 查询指定时间段内在DDM实例的读写次数。 - - :param ListReadWriteRatioRequest request - :return: ListReadWriteRatioResponse - """ - return self.list_read_write_ratio_with_http_info(request) - - def list_read_write_ratio_with_http_info(self, request): - """读写比例监控 - - 查询指定时间段内在DDM实例的读写次数。 - - :param ListReadWriteRatioRequest request - :return: ListReadWriteRatioResponse - """ - - all_params = ['instance_id', 'cur_page', 'per_page', 'start_date', 'end_date'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - collection_formats = {} - - path_params = {} - if 'instance_id' in local_var_params: - path_params['instance_id'] = local_var_params['instance_id'] - - query_params = [] - if 'cur_page' in local_var_params: - query_params.append(('curPage', local_var_params['cur_page'])) - if 'per_page' in local_var_params: - query_params.append(('perPage', local_var_params['per_page'])) - if 'start_date' in local_var_params: - query_params.append(('startDate', local_var_params['start_date'])) - if 'end_date' in local_var_params: - query_params.append(('endDate', local_var_params['end_date'])) - - header_params = {} - - form_params = {} - - body_params = None - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - return self.call_api( - resource_path='/v2/{project_id}/instances/{instance_id}/read-write-ratio', - method='GET', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='ListReadWriteRatioResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - - def list_slow_log_async(self, request): - """慢日志监控 - - 查询指定时间段内在DDM实例上执行过的慢sql相关信息。 - - :param ListSlowLogRequest request - :return: ListSlowLogResponse - """ - return self.list_slow_log_with_http_info(request) - - def list_slow_log_with_http_info(self, request): - """慢日志监控 - - 查询指定时间段内在DDM实例上执行过的慢sql相关信息。 - - :param ListSlowLogRequest request - :return: ListSlowLogResponse - """ - - all_params = ['instance_id', 'cur_page', 'per_page', 'start_date', 'end_date'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - collection_formats = {} - - path_params = {} - if 'instance_id' in local_var_params: - path_params['instance_id'] = local_var_params['instance_id'] - - query_params = [] - if 'cur_page' in local_var_params: - query_params.append(('curPage', local_var_params['cur_page'])) - if 'per_page' in local_var_params: - query_params.append(('perPage', local_var_params['per_page'])) - if 'start_date' in local_var_params: - query_params.append(('startDate', local_var_params['start_date'])) - if 'end_date' in local_var_params: - query_params.append(('endDate', local_var_params['end_date'])) - - header_params = {} - - form_params = {} - - body_params = None - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - return self.call_api( - resource_path='/v2/{project_id}/instances/{instance_id}/slowlog', - method='GET', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='ListSlowLogResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def list_users_async(self, request): """查询DDM帐号列表 diff --git a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/ddm_client.py b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/ddm_client.py index c6039c6ad3..8c3375133d 100644 --- a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/ddm_client.py +++ b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/ddm_client.py @@ -901,148 +901,6 @@ def list_nodes_with_http_info(self, request): request_type=request.__class__.__name__) - def list_read_write_ratio(self, request): - """读写比例监控 - - 查询指定时间段内在DDM实例的读写次数。 - - :param ListReadWriteRatioRequest request - :return: ListReadWriteRatioResponse - """ - return self.list_read_write_ratio_with_http_info(request) - - def list_read_write_ratio_with_http_info(self, request): - """读写比例监控 - - 查询指定时间段内在DDM实例的读写次数。 - - :param ListReadWriteRatioRequest request - :return: ListReadWriteRatioResponse - """ - - all_params = ['instance_id', 'cur_page', 'per_page', 'start_date', 'end_date'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - collection_formats = {} - - path_params = {} - if 'instance_id' in local_var_params: - path_params['instance_id'] = local_var_params['instance_id'] - - query_params = [] - if 'cur_page' in local_var_params: - query_params.append(('curPage', local_var_params['cur_page'])) - if 'per_page' in local_var_params: - query_params.append(('perPage', local_var_params['per_page'])) - if 'start_date' in local_var_params: - query_params.append(('startDate', local_var_params['start_date'])) - if 'end_date' in local_var_params: - query_params.append(('endDate', local_var_params['end_date'])) - - header_params = {} - - form_params = {} - - body_params = None - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - return self.call_api( - resource_path='/v2/{project_id}/instances/{instance_id}/read-write-ratio', - method='GET', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='ListReadWriteRatioResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - - def list_slow_log(self, request): - """慢日志监控 - - 查询指定时间段内在DDM实例上执行过的慢sql相关信息。 - - :param ListSlowLogRequest request - :return: ListSlowLogResponse - """ - return self.list_slow_log_with_http_info(request) - - def list_slow_log_with_http_info(self, request): - """慢日志监控 - - 查询指定时间段内在DDM实例上执行过的慢sql相关信息。 - - :param ListSlowLogRequest request - :return: ListSlowLogResponse - """ - - all_params = ['instance_id', 'cur_page', 'per_page', 'start_date', 'end_date'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - collection_formats = {} - - path_params = {} - if 'instance_id' in local_var_params: - path_params['instance_id'] = local_var_params['instance_id'] - - query_params = [] - if 'cur_page' in local_var_params: - query_params.append(('curPage', local_var_params['cur_page'])) - if 'per_page' in local_var_params: - query_params.append(('perPage', local_var_params['per_page'])) - if 'start_date' in local_var_params: - query_params.append(('startDate', local_var_params['start_date'])) - if 'end_date' in local_var_params: - query_params.append(('endDate', local_var_params['end_date'])) - - header_params = {} - - form_params = {} - - body_params = None - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - return self.call_api( - resource_path='/v2/{project_id}/instances/{instance_id}/slowlog', - method='GET', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - response_type='ListSlowLogResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def list_users(self, request): """查询DDM帐号列表 diff --git a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/__init__.py b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/__init__.py index 12ad134340..d906f19af3 100644 --- a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/__init__.py +++ b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/__init__.py @@ -52,10 +52,6 @@ from huaweicloudsdkddm.v1.model.list_instances_response import ListInstancesResponse from huaweicloudsdkddm.v1.model.list_nodes_request import ListNodesRequest from huaweicloudsdkddm.v1.model.list_nodes_response import ListNodesResponse -from huaweicloudsdkddm.v1.model.list_read_write_ratio_request import ListReadWriteRatioRequest -from huaweicloudsdkddm.v1.model.list_read_write_ratio_response import ListReadWriteRatioResponse -from huaweicloudsdkddm.v1.model.list_slow_log_request import ListSlowLogRequest -from huaweicloudsdkddm.v1.model.list_slow_log_response import ListSlowLogResponse from huaweicloudsdkddm.v1.model.list_users_request import ListUsersRequest from huaweicloudsdkddm.v1.model.list_users_response import ListUsersResponse from huaweicloudsdkddm.v1.model.modify_instance_name_req import ModifyInstanceNameReq @@ -63,7 +59,6 @@ from huaweicloudsdkddm.v1.model.modify_read_and_write_strategy_req import ModifyReadAndWriteStrategyReq from huaweicloudsdkddm.v1.model.node_list import NodeList from huaweicloudsdkddm.v1.model.query_available_rds_list import QueryAvailableRdsList -from huaweicloudsdkddm.v1.model.read_write_ratio_list import ReadWriteRatioList from huaweicloudsdkddm.v1.model.rebuild_config_request import RebuildConfigRequest from huaweicloudsdkddm.v1.model.rebuild_config_response import RebuildConfigResponse from huaweicloudsdkddm.v1.model.reduce_request import ReduceRequest @@ -85,7 +80,6 @@ from huaweicloudsdkddm.v1.model.show_node_response import ShowNodeResponse from huaweicloudsdkddm.v1.model.shrink_instance_nodes_request import ShrinkInstanceNodesRequest from huaweicloudsdkddm.v1.model.shrink_instance_nodes_response import ShrinkInstanceNodesResponse -from huaweicloudsdkddm.v1.model.slow_log_list import SlowLogList from huaweicloudsdkddm.v1.model.support_azs_info import SupportAzsInfo from huaweicloudsdkddm.v1.model.update_database_info_request import UpdateDatabaseInfoRequest from huaweicloudsdkddm.v1.model.update_database_info_response import UpdateDatabaseInfoResponse diff --git a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_read_write_ratio_request.py b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_read_write_ratio_request.py deleted file mode 100644 index b1bb6e8dee..0000000000 --- a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_read_write_ratio_request.py +++ /dev/null @@ -1,211 +0,0 @@ -# coding: utf-8 - -import re -import six - - - - - -class ListReadWriteRatioRequest: - - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - - sensitive_list = [] - - openapi_types = { - 'instance_id': 'str', - 'cur_page': 'str', - 'per_page': 'str', - 'start_date': 'str', - 'end_date': 'str' - } - - attribute_map = { - 'instance_id': 'instance_id', - 'cur_page': 'curPage', - 'per_page': 'perPage', - 'start_date': 'startDate', - 'end_date': 'endDate' - } - - def __init__(self, instance_id=None, cur_page=None, per_page=None, start_date=None, end_date=None): - """ListReadWriteRatioRequest - a model defined in huaweicloud sdk""" - - - - self._instance_id = None - self._cur_page = None - self._per_page = None - self._start_date = None - self._end_date = None - self.discriminator = None - - self.instance_id = instance_id - self.cur_page = cur_page - self.per_page = per_page - self.start_date = start_date - self.end_date = end_date - - @property - def instance_id(self): - """Gets the instance_id of this ListReadWriteRatioRequest. - - DDM实例ID。 - - :return: The instance_id of this ListReadWriteRatioRequest. - :rtype: str - """ - return self._instance_id - - @instance_id.setter - def instance_id(self, instance_id): - """Sets the instance_id of this ListReadWriteRatioRequest. - - DDM实例ID。 - - :param instance_id: The instance_id of this ListReadWriteRatioRequest. - :type: str - """ - self._instance_id = instance_id - - @property - def cur_page(self): - """Gets the cur_page of this ListReadWriteRatioRequest. - - 分页参数:起始值 [大于等于0] 。 - - :return: The cur_page of this ListReadWriteRatioRequest. - :rtype: str - """ - return self._cur_page - - @cur_page.setter - def cur_page(self, cur_page): - """Sets the cur_page of this ListReadWriteRatioRequest. - - 分页参数:起始值 [大于等于0] 。 - - :param cur_page: The cur_page of this ListReadWriteRatioRequest. - :type: str - """ - self._cur_page = cur_page - - @property - def per_page(self): - """Gets the per_page of this ListReadWriteRatioRequest. - - 分页参数:每页多少条。 - - :return: The per_page of this ListReadWriteRatioRequest. - :rtype: str - """ - return self._per_page - - @per_page.setter - def per_page(self, per_page): - """Sets the per_page of this ListReadWriteRatioRequest. - - 分页参数:每页多少条。 - - :param per_page: The per_page of this ListReadWriteRatioRequest. - :type: str - """ - self._per_page = per_page - - @property - def start_date(self): - """Gets the start_date of this ListReadWriteRatioRequest. - - 开始时间,UTC time,精确到毫秒。 - - :return: The start_date of this ListReadWriteRatioRequest. - :rtype: str - """ - return self._start_date - - @start_date.setter - def start_date(self, start_date): - """Sets the start_date of this ListReadWriteRatioRequest. - - 开始时间,UTC time,精确到毫秒。 - - :param start_date: The start_date of this ListReadWriteRatioRequest. - :type: str - """ - self._start_date = start_date - - @property - def end_date(self): - """Gets the end_date of this ListReadWriteRatioRequest. - - 结束时间,UTC time,精确到毫秒。 - - :return: The end_date of this ListReadWriteRatioRequest. - :rtype: str - """ - return self._end_date - - @end_date.setter - def end_date(self, end_date): - """Sets the end_date of this ListReadWriteRatioRequest. - - 结束时间,UTC time,精确到毫秒。 - - :param end_date: The end_date of this ListReadWriteRatioRequest. - :type: str - """ - self._end_date = end_date - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - import simplejson as json - return json.dumps(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ListReadWriteRatioRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_read_write_ratio_response.py b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_read_write_ratio_response.py deleted file mode 100644 index 04cce0449f..0000000000 --- a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_read_write_ratio_response.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -import re -import six - - -from huaweicloudsdkcore.sdk_response import SdkResponse - - -class ListReadWriteRatioResponse(SdkResponse): - - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - - sensitive_list = [] - - openapi_types = { - 'total_record': 'int', - 'read_write_ratio_list': 'list[ReadWriteRatioList]' - } - - attribute_map = { - 'total_record': 'totalRecord', - 'read_write_ratio_list': 'readWriteRatioList' - } - - def __init__(self, total_record=None, read_write_ratio_list=None): - """ListReadWriteRatioResponse - a model defined in huaweicloud sdk""" - - super(ListReadWriteRatioResponse, self).__init__() - - self._total_record = None - self._read_write_ratio_list = None - self.discriminator = None - - if total_record is not None: - self.total_record = total_record - if read_write_ratio_list is not None: - self.read_write_ratio_list = read_write_ratio_list - - @property - def total_record(self): - """Gets the total_record of this ListReadWriteRatioResponse. - - DDM读写比例监控信息条数。 - - :return: The total_record of this ListReadWriteRatioResponse. - :rtype: int - """ - return self._total_record - - @total_record.setter - def total_record(self, total_record): - """Sets the total_record of this ListReadWriteRatioResponse. - - DDM读写比例监控信息条数。 - - :param total_record: The total_record of this ListReadWriteRatioResponse. - :type: int - """ - self._total_record = total_record - - @property - def read_write_ratio_list(self): - """Gets the read_write_ratio_list of this ListReadWriteRatioResponse. - - DDM实例读写次数信息列表的集合。 - - :return: The read_write_ratio_list of this ListReadWriteRatioResponse. - :rtype: list[ReadWriteRatioList] - """ - return self._read_write_ratio_list - - @read_write_ratio_list.setter - def read_write_ratio_list(self, read_write_ratio_list): - """Sets the read_write_ratio_list of this ListReadWriteRatioResponse. - - DDM实例读写次数信息列表的集合。 - - :param read_write_ratio_list: The read_write_ratio_list of this ListReadWriteRatioResponse. - :type: list[ReadWriteRatioList] - """ - self._read_write_ratio_list = read_write_ratio_list - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - import simplejson as json - return json.dumps(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ListReadWriteRatioResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_slow_log_request.py b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_slow_log_request.py deleted file mode 100644 index 048e15271a..0000000000 --- a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_slow_log_request.py +++ /dev/null @@ -1,211 +0,0 @@ -# coding: utf-8 - -import re -import six - - - - - -class ListSlowLogRequest: - - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - - sensitive_list = [] - - openapi_types = { - 'instance_id': 'str', - 'cur_page': 'str', - 'per_page': 'str', - 'start_date': 'str', - 'end_date': 'str' - } - - attribute_map = { - 'instance_id': 'instance_id', - 'cur_page': 'curPage', - 'per_page': 'perPage', - 'start_date': 'startDate', - 'end_date': 'endDate' - } - - def __init__(self, instance_id=None, cur_page=None, per_page=None, start_date=None, end_date=None): - """ListSlowLogRequest - a model defined in huaweicloud sdk""" - - - - self._instance_id = None - self._cur_page = None - self._per_page = None - self._start_date = None - self._end_date = None - self.discriminator = None - - self.instance_id = instance_id - self.cur_page = cur_page - self.per_page = per_page - self.start_date = start_date - self.end_date = end_date - - @property - def instance_id(self): - """Gets the instance_id of this ListSlowLogRequest. - - DDM实例ID。 - - :return: The instance_id of this ListSlowLogRequest. - :rtype: str - """ - return self._instance_id - - @instance_id.setter - def instance_id(self, instance_id): - """Sets the instance_id of this ListSlowLogRequest. - - DDM实例ID。 - - :param instance_id: The instance_id of this ListSlowLogRequest. - :type: str - """ - self._instance_id = instance_id - - @property - def cur_page(self): - """Gets the cur_page of this ListSlowLogRequest. - - 分页参数:起始值 [大于等于0] 。 - - :return: The cur_page of this ListSlowLogRequest. - :rtype: str - """ - return self._cur_page - - @cur_page.setter - def cur_page(self, cur_page): - """Sets the cur_page of this ListSlowLogRequest. - - 分页参数:起始值 [大于等于0] 。 - - :param cur_page: The cur_page of this ListSlowLogRequest. - :type: str - """ - self._cur_page = cur_page - - @property - def per_page(self): - """Gets the per_page of this ListSlowLogRequest. - - 分页参数:每页多少条。 - - :return: The per_page of this ListSlowLogRequest. - :rtype: str - """ - return self._per_page - - @per_page.setter - def per_page(self, per_page): - """Sets the per_page of this ListSlowLogRequest. - - 分页参数:每页多少条。 - - :param per_page: The per_page of this ListSlowLogRequest. - :type: str - """ - self._per_page = per_page - - @property - def start_date(self): - """Gets the start_date of this ListSlowLogRequest. - - 开始时间,UTC time,精确到毫秒。 - - :return: The start_date of this ListSlowLogRequest. - :rtype: str - """ - return self._start_date - - @start_date.setter - def start_date(self, start_date): - """Sets the start_date of this ListSlowLogRequest. - - 开始时间,UTC time,精确到毫秒。 - - :param start_date: The start_date of this ListSlowLogRequest. - :type: str - """ - self._start_date = start_date - - @property - def end_date(self): - """Gets the end_date of this ListSlowLogRequest. - - 结束时间,UTC time,精确到毫秒。 - - :return: The end_date of this ListSlowLogRequest. - :rtype: str - """ - return self._end_date - - @end_date.setter - def end_date(self, end_date): - """Sets the end_date of this ListSlowLogRequest. - - 结束时间,UTC time,精确到毫秒。 - - :param end_date: The end_date of this ListSlowLogRequest. - :type: str - """ - self._end_date = end_date - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - import simplejson as json - return json.dumps(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ListSlowLogRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/read_write_ratio_list.py b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/read_write_ratio_list.py deleted file mode 100644 index ed0c90dac1..0000000000 --- a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/read_write_ratio_list.py +++ /dev/null @@ -1,243 +0,0 @@ -# coding: utf-8 - -import re -import six - - - - - -class ReadWriteRatioList: - - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - - sensitive_list = [] - - openapi_types = { - 'schema': 'str', - 'table': 'str', - 'read_count': 'str', - 'write_count': 'str', - 'relation_tables': 'str', - 'last_updated': 'str' - } - - attribute_map = { - 'schema': 'schema', - 'table': 'table', - 'read_count': 'readCount', - 'write_count': 'writeCount', - 'relation_tables': 'relationTables', - 'last_updated': 'lastUpdated' - } - - def __init__(self, schema=None, table=None, read_count=None, write_count=None, relation_tables=None, last_updated=None): - """ReadWriteRatioList - a model defined in huaweicloud sdk""" - - - - self._schema = None - self._table = None - self._read_count = None - self._write_count = None - self._relation_tables = None - self._last_updated = None - self.discriminator = None - - if schema is not None: - self.schema = schema - if table is not None: - self.table = table - if read_count is not None: - self.read_count = read_count - if write_count is not None: - self.write_count = write_count - if relation_tables is not None: - self.relation_tables = relation_tables - if last_updated is not None: - self.last_updated = last_updated - - @property - def schema(self): - """Gets the schema of this ReadWriteRatioList. - - 逻辑库名称。 - - :return: The schema of this ReadWriteRatioList. - :rtype: str - """ - return self._schema - - @schema.setter - def schema(self, schema): - """Sets the schema of this ReadWriteRatioList. - - 逻辑库名称。 - - :param schema: The schema of this ReadWriteRatioList. - :type: str - """ - self._schema = schema - - @property - def table(self): - """Gets the table of this ReadWriteRatioList. - - 逻辑表名称。 - - :return: The table of this ReadWriteRatioList. - :rtype: str - """ - return self._table - - @table.setter - def table(self, table): - """Sets the table of this ReadWriteRatioList. - - 逻辑表名称。 - - :param table: The table of this ReadWriteRatioList. - :type: str - """ - self._table = table - - @property - def read_count(self): - """Gets the read_count of this ReadWriteRatioList. - - 读次数。 - - :return: The read_count of this ReadWriteRatioList. - :rtype: str - """ - return self._read_count - - @read_count.setter - def read_count(self, read_count): - """Sets the read_count of this ReadWriteRatioList. - - 读次数。 - - :param read_count: The read_count of this ReadWriteRatioList. - :type: str - """ - self._read_count = read_count - - @property - def write_count(self): - """Gets the write_count of this ReadWriteRatioList. - - 写次数。 - - :return: The write_count of this ReadWriteRatioList. - :rtype: str - """ - return self._write_count - - @write_count.setter - def write_count(self, write_count): - """Sets the write_count of this ReadWriteRatioList. - - 写次数。 - - :param write_count: The write_count of this ReadWriteRatioList. - :type: str - """ - self._write_count = write_count - - @property - def relation_tables(self): - """Gets the relation_tables of this ReadWriteRatioList. - - 关联表。 - - :return: The relation_tables of this ReadWriteRatioList. - :rtype: str - """ - return self._relation_tables - - @relation_tables.setter - def relation_tables(self, relation_tables): - """Sets the relation_tables of this ReadWriteRatioList. - - 关联表。 - - :param relation_tables: The relation_tables of this ReadWriteRatioList. - :type: str - """ - self._relation_tables = relation_tables - - @property - def last_updated(self): - """Gets the last_updated of this ReadWriteRatioList. - - 最后执行时间。 - - :return: The last_updated of this ReadWriteRatioList. - :rtype: str - """ - return self._last_updated - - @last_updated.setter - def last_updated(self, last_updated): - """Sets the last_updated of this ReadWriteRatioList. - - 最后执行时间。 - - :param last_updated: The last_updated of this ReadWriteRatioList. - :type: str - """ - self._last_updated = last_updated - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - import simplejson as json - return json.dumps(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ReadWriteRatioList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/slow_log_list.py b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/slow_log_list.py deleted file mode 100644 index 8499e52143..0000000000 --- a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/slow_log_list.py +++ /dev/null @@ -1,270 +0,0 @@ -# coding: utf-8 - -import re -import six - - - - - -class SlowLogList: - - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - - sensitive_list = [] - - openapi_types = { - 'users': 'str', - 'database': 'str', - 'query_sample': 'str', - 'log_time': 'str', - 'time': 'str', - 'shards': 'str', - 'rows_examined': 'str' - } - - attribute_map = { - 'users': 'users', - 'database': 'database', - 'query_sample': 'querySample', - 'log_time': 'logTime', - 'time': 'time', - 'shards': 'shards', - 'rows_examined': 'rowsExamined' - } - - def __init__(self, users=None, database=None, query_sample=None, log_time=None, time=None, shards=None, rows_examined=None): - """SlowLogList - a model defined in huaweicloud sdk""" - - - - self._users = None - self._database = None - self._query_sample = None - self._log_time = None - self._time = None - self._shards = None - self._rows_examined = None - self.discriminator = None - - if users is not None: - self.users = users - if database is not None: - self.database = database - if query_sample is not None: - self.query_sample = query_sample - if log_time is not None: - self.log_time = log_time - if time is not None: - self.time = time - if shards is not None: - self.shards = shards - if rows_examined is not None: - self.rows_examined = rows_examined - - @property - def users(self): - """Gets the users of this SlowLogList. - - 执行慢sql的DDM账号名称。 - - :return: The users of this SlowLogList. - :rtype: str - """ - return self._users - - @users.setter - def users(self, users): - """Sets the users of this SlowLogList. - - 执行慢sql的DDM账号名称。 - - :param users: The users of this SlowLogList. - :type: str - """ - self._users = users - - @property - def database(self): - """Gets the database of this SlowLogList. - - 慢sql所属逻辑库的名称。 - - :return: The database of this SlowLogList. - :rtype: str - """ - return self._database - - @database.setter - def database(self, database): - """Sets the database of this SlowLogList. - - 慢sql所属逻辑库的名称。 - - :param database: The database of this SlowLogList. - :type: str - """ - self._database = database - - @property - def query_sample(self): - """Gets the query_sample of this SlowLogList. - - 慢sql执行语法。 - - :return: The query_sample of this SlowLogList. - :rtype: str - """ - return self._query_sample - - @query_sample.setter - def query_sample(self, query_sample): - """Sets the query_sample of this SlowLogList. - - 慢sql执行语法。 - - :param query_sample: The query_sample of this SlowLogList. - :type: str - """ - self._query_sample = query_sample - - @property - def log_time(self): - """Gets the log_time of this SlowLogList. - - DDM慢sql开始执行时间。 - - :return: The log_time of this SlowLogList. - :rtype: str - """ - return self._log_time - - @log_time.setter - def log_time(self, log_time): - """Sets the log_time of this SlowLogList. - - DDM慢sql开始执行时间。 - - :param log_time: The log_time of this SlowLogList. - :type: str - """ - self._log_time = log_time - - @property - def time(self): - """Gets the time of this SlowLogList. - - 慢sql的执行时长,精确到毫秒。 - - :return: The time of this SlowLogList. - :rtype: str - """ - return self._time - - @time.setter - def time(self, time): - """Sets the time of this SlowLogList. - - 慢sql的执行时长,精确到毫秒。 - - :param time: The time of this SlowLogList. - :type: str - """ - self._time = time - - @property - def shards(self): - """Gets the shards of this SlowLogList. - - 逻辑库物理分片名称。 - - :return: The shards of this SlowLogList. - :rtype: str - """ - return self._shards - - @shards.setter - def shards(self, shards): - """Sets the shards of this SlowLogList. - - 逻辑库物理分片名称。 - - :param shards: The shards of this SlowLogList. - :type: str - """ - self._shards = shards - - @property - def rows_examined(self): - """Gets the rows_examined of this SlowLogList. - - 慢sql影响行数。 - - :return: The rows_examined of this SlowLogList. - :rtype: str - """ - return self._rows_examined - - @rows_examined.setter - def rows_examined(self, rows_examined): - """Sets the rows_examined of this SlowLogList. - - 慢sql影响行数。 - - :param rows_examined: The rows_examined of this SlowLogList. - :type: str - """ - self._rows_examined = rows_examined - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - import simplejson as json - return json.dumps(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SlowLogList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index f01d65a4f9..40c3fd353e 100644 --- a/huaweicloud-sdk-ddm/setup.py +++ b/huaweicloud-sdk-ddm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkddm" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 521accc399..ec4095fb28 100644 --- a/huaweicloud-sdk-dds/setup.py +++ b/huaweicloud-sdk-dds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdds" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index 3524b586d1..1df5b60d14 100644 --- a/huaweicloud-sdk-devstar/setup.py +++ b/huaweicloud-sdk-devstar/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdevstar" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index 88d6e68db8..c8df536935 100644 --- a/huaweicloud-sdk-dgc/setup.py +++ b/huaweicloud-sdk-dgc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdgc" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dms/setup.py b/huaweicloud-sdk-dms/setup.py index 2c72d975a9..3470007f52 100644 --- a/huaweicloud-sdk-dms/setup.py +++ b/huaweicloud-sdk-dms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdms" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index fec4ae85a4..47d5619a74 100644 --- a/huaweicloud-sdk-dns/setup.py +++ b/huaweicloud-sdk-dns/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdns" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index 1054196afd..346eef431b 100644 --- a/huaweicloud-sdk-drs/setup.py +++ b/huaweicloud-sdk-drs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdrs" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/change_server_os_with_cloud_init_option.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/change_server_os_with_cloud_init_option.py index dde08f8cfd..75e0a1289c 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/change_server_os_with_cloud_init_option.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/change_server_os_with_cloud_init_option.py @@ -89,7 +89,7 @@ def adminpass(self, adminpass): def keyname(self): """Gets the keyname of this ChangeServerOsWithCloudInitOption. - 密钥名称。 + 密钥名称。 密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html) )。 :return: The keyname of this ChangeServerOsWithCloudInitOption. :rtype: str @@ -100,7 +100,7 @@ def keyname(self): def keyname(self, keyname): """Sets the keyname of this ChangeServerOsWithCloudInitOption. - 密钥名称。 + 密钥名称。 密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html) )。 :param keyname: The keyname of this ChangeServerOsWithCloudInitOption. :type: str @@ -133,7 +133,7 @@ def userid(self, userid): def imageid(self): """Gets the imageid of this ChangeServerOsWithCloudInitOption. - 切换系统所使用的新镜像的ID,格式为UUID。 + 切换系统所使用的新镜像的ID,格式为UUID。 镜像的ID可以从控制台或者参考[《镜像服务API参考》](https://support.huaweicloud.com/api-ims/ims_03_0702.html)的“查询镜像列表”的章节获取。 :return: The imageid of this ChangeServerOsWithCloudInitOption. :rtype: str @@ -144,7 +144,7 @@ def imageid(self): def imageid(self, imageid): """Sets the imageid of this ChangeServerOsWithCloudInitOption. - 切换系统所使用的新镜像的ID,格式为UUID。 + 切换系统所使用的新镜像的ID,格式为UUID。 镜像的ID可以从控制台或者参考[《镜像服务API参考》](https://support.huaweicloud.com/api-ims/ims_03_0702.html)的“查询镜像列表”的章节获取。 :param imageid: The imageid of this ChangeServerOsWithCloudInitOption. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/change_severs_os_metadata.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/change_severs_os_metadata.py index 01f9112a6c..128aea177d 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/change_severs_os_metadata.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/change_severs_os_metadata.py @@ -43,7 +43,7 @@ def __init__(self, user_data=None): def user_data(self): """Gets the user_data of this ChangeSeversOsMetadata. - 重装云服务器过程中注入用户数据。 支持注入文本、文本文件或gzip文件。注入内容最大长度32KB。注入内容,需要进行base64格式编码。 + 重装云服务器过程中注入用户数据。 支持注入文本、文本文件或gzip文件。注入内容最大长度32KB。注入内容,需要进行base64格式编码。 了解更多用户数据注入请参考[用户数据注入](https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0032380449.html)。 :return: The user_data of this ChangeSeversOsMetadata. :rtype: str @@ -54,7 +54,7 @@ def user_data(self): def user_data(self, user_data): """Sets the user_data of this ChangeSeversOsMetadata. - 重装云服务器过程中注入用户数据。 支持注入文本、文本文件或gzip文件。注入内容最大长度32KB。注入内容,需要进行base64格式编码。 + 重装云服务器过程中注入用户数据。 支持注入文本、文本文件或gzip文件。注入内容最大长度32KB。注入内容,需要进行base64格式编码。 了解更多用户数据注入请参考[用户数据注入](https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0032380449.html)。 :param user_data: The user_data of this ChangeSeversOsMetadata. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_flavors_request.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_flavors_request.py index ecfdbeb862..6e37315db1 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_flavors_request.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_flavors_request.py @@ -43,7 +43,7 @@ def __init__(self, availability_zone=None): def availability_zone(self): """Gets the availability_zone of this ListFlavorsRequest. - 可用区,需要指定可用区(AZ)的名称或者ID或者code。 + 可用区,需要指定可用区(AZ)的名称或者ID或者code。 可通过接口 [查询可用区列表接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=ECS&api=NovaListAvailabilityZones) 获取,也可参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)获取。 :return: The availability_zone of this ListFlavorsRequest. :rtype: str @@ -54,7 +54,7 @@ def availability_zone(self): def availability_zone(self, availability_zone): """Sets the availability_zone of this ListFlavorsRequest. - 可用区,需要指定可用区(AZ)的名称或者ID或者code。 + 可用区,需要指定可用区(AZ)的名称或者ID或者code。 可通过接口 [查询可用区列表接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=ECS&api=NovaListAvailabilityZones) 获取,也可参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)获取。 :param availability_zone: The availability_zone of this ListFlavorsRequest. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_servers_details_request.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_servers_details_request.py index a9fd525679..20b7feea33 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_servers_details_request.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_servers_details_request.py @@ -264,7 +264,7 @@ def reservation_id(self, reservation_id): def status(self): """Gets the status of this ListServersDetailsRequest. - 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 只有管理员可以使用“deleted”状态过滤查询已经删除的弹性云服务器。 + 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 只有管理员可以使用“deleted”状态过滤查询已经删除的弹性云服务器。 弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html) :return: The status of this ListServersDetailsRequest. :rtype: str @@ -275,7 +275,7 @@ def status(self): def status(self, status): """Sets the status of this ListServersDetailsRequest. - 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 只有管理员可以使用“deleted”状态过滤查询已经删除的弹性云服务器。 + 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 只有管理员可以使用“deleted”状态过滤查询已经删除的弹性云服务器。 弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html) :param status: The status of this ListServersDetailsRequest. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/nova_list_servers_details_request.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/nova_list_servers_details_request.py index 2ae4bc453e..6542e5c8b4 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/nova_list_servers_details_request.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/nova_list_servers_details_request.py @@ -323,7 +323,7 @@ def sort_key(self, sort_key): def status(self): """Gets the status of this NovaListServersDetailsRequest. - 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 直到2.37微版本,非上面范围的status字段将返回空列表,2.38之后的微版本,将返回400错误。 + 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 直到2.37微版本,非上面范围的status字段将返回空列表,2.38之后的微版本,将返回400错误。 云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。 :return: The status of this NovaListServersDetailsRequest. :rtype: str @@ -334,7 +334,7 @@ def status(self): def status(self, status): """Sets the status of this NovaListServersDetailsRequest. - 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 直到2.37微版本,非上面范围的status字段将返回空列表,2.38之后的微版本,将返回400错误。 + 云服务器状态。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 直到2.37微版本,非上面范围的status字段将返回空列表,2.38之后的微版本,将返回400错误。 云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。 :param status: The status of this NovaListServersDetailsRequest. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/nova_server.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/nova_server.py index 4df6fa9bb9..038d0631cf 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/nova_server.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/nova_server.py @@ -260,7 +260,7 @@ def id(self, id): def status(self): """Gets the status of this NovaServer. - 云服务器当前状态信息。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE + 云服务器当前状态信息。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。 :return: The status of this NovaServer. :rtype: str @@ -271,7 +271,7 @@ def status(self): def status(self, status): """Sets the status of this NovaServer. - 云服务器当前状态信息。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE + 云服务器当前状态信息。 取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE 云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。 :param status: The status of this NovaServer. :type: str @@ -674,7 +674,7 @@ def os_ext_st_spower_state(self, os_ext_st_spower_state): def os_ext_st_stask_state(self): """Gets the os_ext_st_stask_state of this NovaServer. - 扩展属性,云服务器任务状态。 取值范围: SHOUTOFF, RESIZE, REBUILD, VERIFY_RESIZE, REVERT_RESIZE, PAUSED, MIGRATING, SUSPENDED, RESCUE, ERROR, DELETED,SOFT_DELETED,SHELVED,SHELVED_OFFLOADED + 扩展属性,云服务器任务状态。 取值范围: SHOUTOFF, RESIZE, REBUILD, VERIFY_RESIZE, REVERT_RESIZE, PAUSED, MIGRATING, SUSPENDED, RESCUE, ERROR, DELETED,SOFT_DELETED,SHELVED,SHELVED_OFFLOADED 取值范围请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)表3。 :return: The os_ext_st_stask_state of this NovaServer. :rtype: str @@ -685,7 +685,7 @@ def os_ext_st_stask_state(self): def os_ext_st_stask_state(self, os_ext_st_stask_state): """Sets the os_ext_st_stask_state of this NovaServer. - 扩展属性,云服务器任务状态。 取值范围: SHOUTOFF, RESIZE, REBUILD, VERIFY_RESIZE, REVERT_RESIZE, PAUSED, MIGRATING, SUSPENDED, RESCUE, ERROR, DELETED,SOFT_DELETED,SHELVED,SHELVED_OFFLOADED + 扩展属性,云服务器任务状态。 取值范围: SHOUTOFF, RESIZE, REBUILD, VERIFY_RESIZE, REVERT_RESIZE, PAUSED, MIGRATING, SUSPENDED, RESCUE, ERROR, DELETED,SOFT_DELETED,SHELVED,SHELVED_OFFLOADED 取值范围请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)表3。 :param os_ext_st_stask_state: The os_ext_st_stask_state of this NovaServer. :type: str @@ -696,7 +696,7 @@ def os_ext_st_stask_state(self, os_ext_st_stask_state): def os_ext_st_svm_state(self): """Gets the os_ext_st_svm_state of this NovaServer. - 扩展属性,云服务器状态。 取值范围: ACTIVE,BUILDING,STOPPED,RESIZED,PAUSED,SUSPENDED,RESCUED,ERROR,DELETED,SOFT_DELETED,SHELVED,SHELVED_OFFLOADED + 扩展属性,云服务器状态。 取值范围: ACTIVE,BUILDING,STOPPED,RESIZED,PAUSED,SUSPENDED,RESCUED,ERROR,DELETED,SOFT_DELETED,SHELVED,SHELVED_OFFLOADED 云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。 :return: The os_ext_st_svm_state of this NovaServer. :rtype: str @@ -707,7 +707,7 @@ def os_ext_st_svm_state(self): def os_ext_st_svm_state(self, os_ext_st_svm_state): """Sets the os_ext_st_svm_state of this NovaServer. - 扩展属性,云服务器状态。 取值范围: ACTIVE,BUILDING,STOPPED,RESIZED,PAUSED,SUSPENDED,RESCUED,ERROR,DELETED,SOFT_DELETED,SHELVED,SHELVED_OFFLOADED + 扩展属性,云服务器状态。 取值范围: ACTIVE,BUILDING,STOPPED,RESIZED,PAUSED,SUSPENDED,RESCUED,ERROR,DELETED,SOFT_DELETED,SHELVED,SHELVED_OFFLOADED 云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。 :param os_ext_st_svm_state: The os_ext_st_svm_state of this NovaServer. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/nova_server_block_device_mapping.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/nova_server_block_device_mapping.py index d46ba29e50..38d0acc7d3 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/nova_server_block_device_mapping.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/nova_server_block_device_mapping.py @@ -258,7 +258,7 @@ def volume_size(self, volume_size): def volume_type(self): """Gets the volume_type of this NovaServerBlockDeviceMapping. - 卷类型,在source_type是image,destination_type是volume时建议填写。 卷类型取值范围请参考 EVS 服务 磁盘类型介绍。 + 卷类型,在source_type是image,destination_type是volume时建议填写。 卷类型取值范围请参考 EVS 服务 [磁盘类型介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 :return: The volume_type of this NovaServerBlockDeviceMapping. :rtype: str @@ -269,7 +269,7 @@ def volume_type(self): def volume_type(self, volume_type): """Sets the volume_type of this NovaServerBlockDeviceMapping. - 卷类型,在source_type是image,destination_type是volume时建议填写。 卷类型取值范围请参考 EVS 服务 磁盘类型介绍。 + 卷类型,在source_type是image,destination_type是volume时建议填写。 卷类型取值范围请参考 EVS 服务 [磁盘类型介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 :param volume_type: The volume_type of this NovaServerBlockDeviceMapping. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server.py index 2ee7aa0a90..5c9488b587 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server.py @@ -338,7 +338,7 @@ def is_auto_rename(self, is_auto_rename): def key_name(self): """Gets the key_name of this PostPaidServer. - 如果需要使用SSH密钥方式登录云服务器,请指定已创建密钥的名称。 密钥可以通过密钥创建接口进行创建 [创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)(请参见),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212676.html) )。 + 如果需要使用SSH密钥方式登录云服务器,请指定已创建密钥的名称。 密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html))。 :return: The key_name of this PostPaidServer. :rtype: str @@ -349,7 +349,7 @@ def key_name(self): def key_name(self, key_name): """Sets the key_name of this PostPaidServer. - 如果需要使用SSH密钥方式登录云服务器,请指定已创建密钥的名称。 密钥可以通过密钥创建接口进行创建 [创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)(请参见),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212676.html) )。 + 如果需要使用SSH密钥方式登录云服务器,请指定已创建密钥的名称。 密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html))。 :param key_name: The key_name of this PostPaidServer. :type: str @@ -404,7 +404,7 @@ def name(self, name): def nics(self): """Gets the nics of this PostPaidServer. - 待创建云服务器的网卡信息。 约束: - 网卡对应的子网(subnet)必须属于vpcid对应的VPC。 - 当前单个云服务器支持最多挂载12张网卡。 + 待创建云服务器的网卡信息。 约束: - 网卡对应的子网(subnet)必须属于vpcid对应的VPC。 - 当前单个云服务器支持最多挂载12张网卡。 - 不同的规格对网卡上限有一定的区别,参考[规格清单](https://support.huaweicloud.com/productdesc-ecs/zh-cn_topic_0159822360.html)。 :return: The nics of this PostPaidServer. :rtype: list[PostPaidServerNic] @@ -415,7 +415,7 @@ def nics(self): def nics(self, nics): """Sets the nics of this PostPaidServer. - 待创建云服务器的网卡信息。 约束: - 网卡对应的子网(subnet)必须属于vpcid对应的VPC。 - 当前单个云服务器支持最多挂载12张网卡。 + 待创建云服务器的网卡信息。 约束: - 网卡对应的子网(subnet)必须属于vpcid对应的VPC。 - 当前单个云服务器支持最多挂载12张网卡。 - 不同的规格对网卡上限有一定的区别,参考[规格清单](https://support.huaweicloud.com/productdesc-ecs/zh-cn_topic_0159822360.html)。 :param nics: The nics of this PostPaidServer. :type: list[PostPaidServerNic] @@ -552,7 +552,7 @@ def tags(self, tags): def user_data(self): """Gets the user_data of this PostPaidServer. - 创建云服务器过程中待注入用户数据。支持注入文本、文本文件或gzip文件。 更多关于待注入用户数据的信息,请参见《弹性云服务器用户指南 》的“用户数据注入”章节。 约束: - 注入内容,需要进行base64格式编码。注入内容(编码之前的内容)最大长度32KB。 - 创建密码方式鉴权的Linux弹性云服务器时,该字段可为root用户注入自定义初始化密码,具体注入密码的使用方法请参见接口描述(设置登录鉴权方式)。 示例(base64编码前): - Linux弹性云服务器 ``` #! /bin/bash echo user_test >> /home/user.txt ``` - Windows弹性云服务器 ``` rem cmd echo 111 > c:\\aaa.tx ``` + 创建云服务器过程中待注入用户数据。支持注入文本、文本文件或gzip文件。 更多关于待注入用户数据的信息,请参见《弹性云服务器用户指南 》的“[用户数据注入](https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0032380449.html)”章节。 约束: - 注入内容,需要进行base64格式编码。注入内容(编码之前的内容)最大长度32KB。 - 创建密码方式鉴权的Linux弹性云服务器时,该字段可为root用户注入自定义初始化密码,具体注入密码的使用方法请参见接口描述(设置登录鉴权方式)。 示例(base64编码前): - Linux弹性云服务器 ``` #! /bin/bash echo user_test >> /home/user.txt ``` - Windows弹性云服务器 ``` rem cmd echo 111 > c:\\\\aaa.tx ``` :return: The user_data of this PostPaidServer. :rtype: str @@ -563,7 +563,7 @@ def user_data(self): def user_data(self, user_data): """Sets the user_data of this PostPaidServer. - 创建云服务器过程中待注入用户数据。支持注入文本、文本文件或gzip文件。 更多关于待注入用户数据的信息,请参见《弹性云服务器用户指南 》的“用户数据注入”章节。 约束: - 注入内容,需要进行base64格式编码。注入内容(编码之前的内容)最大长度32KB。 - 创建密码方式鉴权的Linux弹性云服务器时,该字段可为root用户注入自定义初始化密码,具体注入密码的使用方法请参见接口描述(设置登录鉴权方式)。 示例(base64编码前): - Linux弹性云服务器 ``` #! /bin/bash echo user_test >> /home/user.txt ``` - Windows弹性云服务器 ``` rem cmd echo 111 > c:\\aaa.tx ``` + 创建云服务器过程中待注入用户数据。支持注入文本、文本文件或gzip文件。 更多关于待注入用户数据的信息,请参见《弹性云服务器用户指南 》的“[用户数据注入](https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0032380449.html)”章节。 约束: - 注入内容,需要进行base64格式编码。注入内容(编码之前的内容)最大长度32KB。 - 创建密码方式鉴权的Linux弹性云服务器时,该字段可为root用户注入自定义初始化密码,具体注入密码的使用方法请参见接口描述(设置登录鉴权方式)。 示例(base64编码前): - Linux弹性云服务器 ``` #! /bin/bash echo user_test >> /home/user.txt ``` - Windows弹性云服务器 ``` rem cmd echo 111 > c:\\\\aaa.tx ``` :param user_data: The user_data of this PostPaidServer. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_data_volume_metadata.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_data_volume_metadata.py index 22349b24c4..261ea17a49 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_data_volume_metadata.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_data_volume_metadata.py @@ -70,7 +70,7 @@ def system__encrypted(self, system__encrypted): def system__cmkid(self): """Gets the system__cmkid of this PostPaidServerDataVolumeMetadata. - metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。 + metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。 > 说明: - 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。 :return: The system__cmkid of this PostPaidServerDataVolumeMetadata. :rtype: str @@ -81,7 +81,7 @@ def system__cmkid(self): def system__cmkid(self, system__cmkid): """Sets the system__cmkid of this PostPaidServerDataVolumeMetadata. - metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。 + metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。 > 说明: - 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。 :param system__cmkid: The system__cmkid of this PostPaidServerDataVolumeMetadata. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_eip.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_eip.py index 0c9646392c..e8ac4cba6f 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_eip.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_eip.py @@ -51,7 +51,7 @@ def __init__(self, iptype=None, bandwidth=None, extendparam=None): def iptype(self): """Gets the iptype of this PostPaidServerEip. - 弹性IP地址类型。 + 弹性IP地址类型。 详情请参见“[申请弹性公网IP](https://support.huaweicloud.com/api-eip/eip_api_0001.html)”章节的“publicip”字段说明。 :return: The iptype of this PostPaidServerEip. :rtype: str @@ -62,7 +62,7 @@ def iptype(self): def iptype(self, iptype): """Sets the iptype of this PostPaidServerEip. - 弹性IP地址类型。 + 弹性IP地址类型。 详情请参见“[申请弹性公网IP](https://support.huaweicloud.com/api-eip/eip_api_0001.html)”章节的“publicip”字段说明。 :param iptype: The iptype of this PostPaidServerEip. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_root_volume.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_root_volume.py index 67aa1b109a..2498a26152 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_root_volume.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_root_volume.py @@ -89,7 +89,7 @@ def volumetype(self, volumetype): def size(self): """Gets the size of this PostPaidServerRootVolume. - 系统盘大小,容量单位为GB, 输入大小范围为[1,1024]。 约束: - 系统盘大小取值应不小于镜像支持的系统盘的最小值(镜像的min_disk属性)。 - 若该参数没有指定或者指定为0时,系统盘大小默认取值为镜像中系统盘的最小值(镜像的min_disk属性)。 > 说明: > > 镜像系统盘的最小值(镜像的min_disk属性)可在控制台中点击镜像详情查看。或通过调用“查询镜像详情(OpenStack原生)”API获取,详细操作请参考《镜像服务API参考》中“查询镜像详情(OpenStack原生)”章节。 + 系统盘大小,容量单位为GB, 输入大小范围为[1,1024]。 约束: - 系统盘大小取值应不小于镜像支持的系统盘的最小值(镜像的min_disk属性)。 - 若该参数没有指定或者指定为0时,系统盘大小默认取值为镜像中系统盘的最小值(镜像的min_disk属性)。 > 说明: > > 镜像系统盘的最小值(镜像的min_disk属性)可在控制台中点击镜像详情查看。或通过调用“查询镜像详情(OpenStack原生)”API获取,详细操作请参考[《镜像服务API参考》](https://support.huaweicloud.com/api-ims/ims_03_0702.html)中“查询镜像详情(OpenStack原生)”章节。 :return: The size of this PostPaidServerRootVolume. :rtype: int @@ -100,7 +100,7 @@ def size(self): def size(self, size): """Sets the size of this PostPaidServerRootVolume. - 系统盘大小,容量单位为GB, 输入大小范围为[1,1024]。 约束: - 系统盘大小取值应不小于镜像支持的系统盘的最小值(镜像的min_disk属性)。 - 若该参数没有指定或者指定为0时,系统盘大小默认取值为镜像中系统盘的最小值(镜像的min_disk属性)。 > 说明: > > 镜像系统盘的最小值(镜像的min_disk属性)可在控制台中点击镜像详情查看。或通过调用“查询镜像详情(OpenStack原生)”API获取,详细操作请参考《镜像服务API参考》中“查询镜像详情(OpenStack原生)”章节。 + 系统盘大小,容量单位为GB, 输入大小范围为[1,1024]。 约束: - 系统盘大小取值应不小于镜像支持的系统盘的最小值(镜像的min_disk属性)。 - 若该参数没有指定或者指定为0时,系统盘大小默认取值为镜像中系统盘的最小值(镜像的min_disk属性)。 > 说明: > > 镜像系统盘的最小值(镜像的min_disk属性)可在控制台中点击镜像详情查看。或通过调用“查询镜像详情(OpenStack原生)”API获取,详细操作请参考[《镜像服务API参考》](https://support.huaweicloud.com/api-ims/ims_03_0702.html)中“查询镜像详情(OpenStack原生)”章节。 :param size: The size of this PostPaidServerRootVolume. :type: int diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_scheduler_hints.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_scheduler_hints.py index 5a6a5eccc8..a585a68383 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_scheduler_hints.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/post_paid_server_scheduler_hints.py @@ -53,7 +53,7 @@ def __init__(self, group=None, dedicated_host_id=None, tenancy=None): def group(self): """Gets the group of this PostPaidServerSchedulerHints. - 云服务器组ID,UUID格式。 + 云服务器组ID,UUID格式。 云服务器组的ID可以从控制台或者参考[查询云服务器组列表](https://support.huaweicloud.com/api-ecs/ecs_03_1402.html)获取。 :return: The group of this PostPaidServerSchedulerHints. :rtype: str @@ -64,7 +64,7 @@ def group(self): def group(self, group): """Sets the group of this PostPaidServerSchedulerHints. - 云服务器组ID,UUID格式。 + 云服务器组ID,UUID格式。 云服务器组的ID可以从控制台或者参考[查询云服务器组列表](https://support.huaweicloud.com/api-ecs/ecs_03_1402.html)获取。 :param group: The group of this PostPaidServerSchedulerHints. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server.py index 5679ed24d4..98b142f8c6 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server.py @@ -230,7 +230,7 @@ def name(self, name): def user_data(self): """Gets the user_data of this PrePaidServer. - 创建云服务器过程中待注入用户数据。支持注入文本、文本文件或gzip文件。 更多关于待注入用户数据的信息,请参见《弹性云服务器用户指南 》的“用户数据注入”章节。 约束: - 注入内容,需要进行base64格式编码。注入内容(编码之前的内容)最大长度32KB。 - 创建密码方式鉴权的Linux弹性云服务器时,该字段可为root用户注入自定义初始化密码,具体注入密码的使用方法请参见背景信息(设置登录鉴权方式)。 示例(base64编码前): - Linux弹性云服务器 ``` #! /bin/bash echo user_test >> /home/user.txt ``` - Windows弹性云服务器 ``` rem cmd echo 111 > c:\\aaa.tx ``` + 创建云服务器过程中待注入用户数据。支持注入文本、文本文件或gzip文件。 更多关于待注入用户数据的信息,请参见《弹性云服务器用户指南 》的“[用户数据注入](https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0032380449.html)”章节。 约束: - 注入内容,需要进行base64格式编码。注入内容(编码之前的内容)最大长度32KB。 - 创建密码方式鉴权的Linux弹性云服务器时,该字段可为root用户注入自定义初始化密码,具体注入密码的使用方法请参见背景信息(设置登录鉴权方式)。 示例(base64编码前): - Linux弹性云服务器 ``` #! /bin/bash echo user_test >> /home/user.txt ``` - Windows弹性云服务器 ``` rem cmd echo 111 > c:\\\\aaa.tx ``` :return: The user_data of this PrePaidServer. :rtype: str @@ -241,7 +241,7 @@ def user_data(self): def user_data(self, user_data): """Sets the user_data of this PrePaidServer. - 创建云服务器过程中待注入用户数据。支持注入文本、文本文件或gzip文件。 更多关于待注入用户数据的信息,请参见《弹性云服务器用户指南 》的“用户数据注入”章节。 约束: - 注入内容,需要进行base64格式编码。注入内容(编码之前的内容)最大长度32KB。 - 创建密码方式鉴权的Linux弹性云服务器时,该字段可为root用户注入自定义初始化密码,具体注入密码的使用方法请参见背景信息(设置登录鉴权方式)。 示例(base64编码前): - Linux弹性云服务器 ``` #! /bin/bash echo user_test >> /home/user.txt ``` - Windows弹性云服务器 ``` rem cmd echo 111 > c:\\aaa.tx ``` + 创建云服务器过程中待注入用户数据。支持注入文本、文本文件或gzip文件。 更多关于待注入用户数据的信息,请参见《弹性云服务器用户指南 》的“[用户数据注入](https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0032380449.html)”章节。 约束: - 注入内容,需要进行base64格式编码。注入内容(编码之前的内容)最大长度32KB。 - 创建密码方式鉴权的Linux弹性云服务器时,该字段可为root用户注入自定义初始化密码,具体注入密码的使用方法请参见背景信息(设置登录鉴权方式)。 示例(base64编码前): - Linux弹性云服务器 ``` #! /bin/bash echo user_test >> /home/user.txt ``` - Windows弹性云服务器 ``` rem cmd echo 111 > c:\\\\aaa.tx ``` :param user_data: The user_data of this PrePaidServer. :type: str @@ -274,7 +274,7 @@ def admin_pass(self, admin_pass): def key_name(self): """Gets the key_name of this PrePaidServer. - 如果需要使用SSH密钥方式登录云服务器,请指定已创建密钥的名称。 密钥可以通过密钥创建接口进行创建 [创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)(请参见),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212676.html) )。 + 如果需要使用SSH密钥方式登录云服务器,请指定已创建密钥的名称。 密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html) )。 :return: The key_name of this PrePaidServer. :rtype: str @@ -285,7 +285,7 @@ def key_name(self): def key_name(self, key_name): """Sets the key_name of this PrePaidServer. - 如果需要使用SSH密钥方式登录云服务器,请指定已创建密钥的名称。 密钥可以通过密钥创建接口进行创建 [创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)(请参见),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212676.html) )。 + 如果需要使用SSH密钥方式登录云服务器,请指定已创建密钥的名称。 密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html) )。 :param key_name: The key_name of this PrePaidServer. :type: str @@ -318,7 +318,7 @@ def vpcid(self, vpcid): def nics(self): """Gets the nics of this PrePaidServer. - 待创建云服务器的网卡信息。 约束: - 网卡对应的子网(subnet)必须属于vpcid对应的VPC。 - 当前单个云服务器支持最多挂载12张网卡。 + 待创建云服务器的网卡信息。 约束: - 网卡对应的子网(subnet)必须属于vpcid对应的VPC。 - 当前单个云服务器支持最多挂载12张网卡。 - 不同的规格对网卡上限有一定的区别,参考[规格清单](https://support.huaweicloud.com/productdesc-ecs/zh-cn_topic_0159822360.html)。 :return: The nics of this PrePaidServer. :rtype: list[PrePaidServerNic] @@ -329,7 +329,7 @@ def nics(self): def nics(self, nics): """Sets the nics of this PrePaidServer. - 待创建云服务器的网卡信息。 约束: - 网卡对应的子网(subnet)必须属于vpcid对应的VPC。 - 当前单个云服务器支持最多挂载12张网卡。 + 待创建云服务器的网卡信息。 约束: - 网卡对应的子网(subnet)必须属于vpcid对应的VPC。 - 当前单个云服务器支持最多挂载12张网卡。 - 不同的规格对网卡上限有一定的区别,参考[规格清单](https://support.huaweicloud.com/productdesc-ecs/zh-cn_topic_0159822360.html)。 :param nics: The nics of this PrePaidServer. :type: list[PrePaidServerNic] diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_data_volume_metadata.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_data_volume_metadata.py index 7d77ddcd8a..2113502ecd 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_data_volume_metadata.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_data_volume_metadata.py @@ -70,7 +70,7 @@ def system__encrypted(self, system__encrypted): def system__cmkid(self): """Gets the system__cmkid of this PrePaidServerDataVolumeMetadata. - metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。 + metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。 > 说明: - 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。 :return: The system__cmkid of this PrePaidServerDataVolumeMetadata. :rtype: str @@ -81,7 +81,7 @@ def system__cmkid(self): def system__cmkid(self, system__cmkid): """Sets the system__cmkid of this PrePaidServerDataVolumeMetadata. - metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。 + metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。 > 说明: - 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。 :param system__cmkid: The system__cmkid of this PrePaidServerDataVolumeMetadata. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_eip.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_eip.py index 4196e27c3e..d6048de160 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_eip.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_eip.py @@ -51,7 +51,7 @@ def __init__(self, iptype=None, bandwidth=None, extendparam=None): def iptype(self): """Gets the iptype of this PrePaidServerEip. - 弹性IP地址类型。 + 弹性IP地址类型。 详情请参见“[申请弹性公网IP](https://support.huaweicloud.com/api-eip/eip_api_0001.html)”章节的“publicip”字段说明。 :return: The iptype of this PrePaidServerEip. :rtype: str @@ -62,7 +62,7 @@ def iptype(self): def iptype(self, iptype): """Sets the iptype of this PrePaidServerEip. - 弹性IP地址类型。 + 弹性IP地址类型。 详情请参见“[申请弹性公网IP](https://support.huaweicloud.com/api-eip/eip_api_0001.html)”章节的“publicip”字段说明。 :param iptype: The iptype of this PrePaidServerEip. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_root_volume.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_root_volume.py index 32b5b2b529..59800ce79a 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_root_volume.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_root_volume.py @@ -89,7 +89,7 @@ def volumetype(self, volumetype): def size(self): """Gets the size of this PrePaidServerRootVolume. - 系统盘大小,容量单位为GB, 输入大小范围为[1,1024]。 约束: - 系统盘大小取值应不小于镜像支持的系统盘的最小值(镜像的min_disk属性)。 - 若该参数没有指定或者指定为0时,系统盘大小默认取值为镜像中系统盘的最小值(镜像的min_disk属性)。 > 说明: > > 镜像系统盘的最小值(镜像的min_disk属性)可在控制台中点击镜像详情查看。或通过调用“查询镜像详情(OpenStack原生)”API获取,详细操作请参考《镜像服务API参考》中“查询镜像详情(OpenStack原生)”章节。 + 系统盘大小,容量单位为GB, 输入大小范围为[1,1024]。 约束: - 系统盘大小取值应不小于镜像支持的系统盘的最小值(镜像的min_disk属性)。 - 若该参数没有指定或者指定为0时,系统盘大小默认取值为镜像中系统盘的最小值(镜像的min_disk属性)。 > 说明: > 镜像系统盘的最小值(镜像的min_disk属性)可在控制台中点击镜像详情查看。或通过调用“查询镜像详情(OpenStack原生)”API获取,详细操作请参考[《镜像服务API参考》](https://support.huaweicloud.com/api-ims/ims_03_0702.html)中“查询镜像详情(OpenStack原生)”章节。 :return: The size of this PrePaidServerRootVolume. :rtype: int @@ -100,7 +100,7 @@ def size(self): def size(self, size): """Sets the size of this PrePaidServerRootVolume. - 系统盘大小,容量单位为GB, 输入大小范围为[1,1024]。 约束: - 系统盘大小取值应不小于镜像支持的系统盘的最小值(镜像的min_disk属性)。 - 若该参数没有指定或者指定为0时,系统盘大小默认取值为镜像中系统盘的最小值(镜像的min_disk属性)。 > 说明: > > 镜像系统盘的最小值(镜像的min_disk属性)可在控制台中点击镜像详情查看。或通过调用“查询镜像详情(OpenStack原生)”API获取,详细操作请参考《镜像服务API参考》中“查询镜像详情(OpenStack原生)”章节。 + 系统盘大小,容量单位为GB, 输入大小范围为[1,1024]。 约束: - 系统盘大小取值应不小于镜像支持的系统盘的最小值(镜像的min_disk属性)。 - 若该参数没有指定或者指定为0时,系统盘大小默认取值为镜像中系统盘的最小值(镜像的min_disk属性)。 > 说明: > 镜像系统盘的最小值(镜像的min_disk属性)可在控制台中点击镜像详情查看。或通过调用“查询镜像详情(OpenStack原生)”API获取,详细操作请参考[《镜像服务API参考》](https://support.huaweicloud.com/api-ims/ims_03_0702.html)中“查询镜像详情(OpenStack原生)”章节。 :param size: The size of this PrePaidServerRootVolume. :type: int diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_scheduler_hints.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_scheduler_hints.py index ee9078cf4b..349d530912 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_scheduler_hints.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server_scheduler_hints.py @@ -53,7 +53,7 @@ def __init__(self, group=None, tenancy=None, dedicated_host_id=None): def group(self): """Gets the group of this PrePaidServerSchedulerHints. - 云服务器组ID,UUID格式。 + 云服务器组ID,UUID格式。 云服务器组的ID可以从控制台或者参考[查询云服务器组列表](https://support.huaweicloud.com/api-ecs/ecs_03_1402.html)获取。 :return: The group of this PrePaidServerSchedulerHints. :rtype: str @@ -64,7 +64,7 @@ def group(self): def group(self, group): """Sets the group of this PrePaidServerSchedulerHints. - 云服务器组ID,UUID格式。 + 云服务器组ID,UUID格式。 云服务器组的ID可以从控制台或者参考[查询云服务器组列表](https://support.huaweicloud.com/api-ecs/ecs_03_1402.html)获取。 :param group: The group of this PrePaidServerSchedulerHints. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/reinstall_server_with_cloud_init_option.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/reinstall_server_with_cloud_init_option.py index b332ae43a0..4ba66999fa 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/reinstall_server_with_cloud_init_option.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/reinstall_server_with_cloud_init_option.py @@ -85,7 +85,7 @@ def adminpass(self, adminpass): def keyname(self): """Gets the keyname of this ReinstallServerWithCloudInitOption. - 密钥名称。 + 密钥名称。 密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html) )。 :return: The keyname of this ReinstallServerWithCloudInitOption. :rtype: str @@ -96,7 +96,7 @@ def keyname(self): def keyname(self, keyname): """Sets the keyname of this ReinstallServerWithCloudInitOption. - 密钥名称。 + 密钥名称。 密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html) )。 :param keyname: The keyname of this ReinstallServerWithCloudInitOption. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/reinstall_sever_metadata.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/reinstall_sever_metadata.py index ee3d6c3c5b..0967c9a89d 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/reinstall_sever_metadata.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/reinstall_sever_metadata.py @@ -43,7 +43,7 @@ def __init__(self, user_data=None): def user_data(self): """Gets the user_data of this ReinstallSeverMetadata. - 重装云服务器过程中注入用户数据。 支持注入文本、文本文件或gzip文件。注入内容最大长度32KB。注入内容,需要进行base64格式编码。 + 重装云服务器过程中注入用户数据。 支持注入文本、文本文件或gzip文件。注入内容最大长度32KB。注入内容,需要进行base64格式编码。 了解更多用户数据注入请参考[用户数据注入](https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0032380449.html)。 :return: The user_data of this ReinstallSeverMetadata. :rtype: str @@ -54,7 +54,7 @@ def user_data(self): def user_data(self, user_data): """Sets the user_data of this ReinstallSeverMetadata. - 重装云服务器过程中注入用户数据。 支持注入文本、文本文件或gzip文件。注入内容最大长度32KB。注入内容,需要进行base64格式编码。 + 重装云服务器过程中注入用户数据。 支持注入文本、文本文件或gzip文件。注入内容最大长度32KB。注入内容,需要进行base64格式编码。 了解更多用户数据注入请参考[用户数据注入](https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0032380449.html)。 :param user_data: The user_data of this ReinstallSeverMetadata. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/resize_post_paid_server_option.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/resize_post_paid_server_option.py index 9b23182855..94e668e051 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/resize_post_paid_server_option.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/resize_post_paid_server_option.py @@ -47,7 +47,7 @@ def __init__(self, flavor_ref=None, mode=None): def flavor_ref(self): """Gets the flavor_ref of this ResizePostPaidServerOption. - 变更后的云服务器规格ID。 + 变更后的云服务器规格ID。 可通过[查询云服务器规格变更支持列表](https://support.huaweicloud.com/api-ecs/ecs_02_0402.html)接口查询允许变更的规格列表。 :return: The flavor_ref of this ResizePostPaidServerOption. :rtype: str @@ -58,7 +58,7 @@ def flavor_ref(self): def flavor_ref(self, flavor_ref): """Sets the flavor_ref of this ResizePostPaidServerOption. - 变更后的云服务器规格ID。 + 变更后的云服务器规格ID。 可通过[查询云服务器规格变更支持列表](https://support.huaweicloud.com/api-ecs/ecs_02_0402.html)接口查询允许变更的规格列表。 :param flavor_ref: The flavor_ref of this ResizePostPaidServerOption. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/resize_pre_paid_server_option.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/resize_pre_paid_server_option.py index d8155795c0..838a874b11 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/resize_pre_paid_server_option.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/resize_pre_paid_server_option.py @@ -57,7 +57,7 @@ def __init__(self, flavor_ref=None, dedicated_host_id=None, extendparam=None, mo def flavor_ref(self): """Gets the flavor_ref of this ResizePrePaidServerOption. - 变更后的云服务器规格ID。 + 变更后的云服务器规格ID。 可通过[查询云服务器规格变更支持列表](https://support.huaweicloud.com/api-ecs/ecs_02_0402.html)接口查询允许变更的规格列表。 :return: The flavor_ref of this ResizePrePaidServerOption. :rtype: str @@ -68,7 +68,7 @@ def flavor_ref(self): def flavor_ref(self, flavor_ref): """Sets the flavor_ref of this ResizePrePaidServerOption. - 变更后的云服务器规格ID。 + 变更后的云服务器规格ID。 可通过[查询云服务器规格变更支持列表](https://support.huaweicloud.com/api-ecs/ecs_02_0402.html)接口查询允许变更的规格列表。 :param flavor_ref: The flavor_ref of this ResizePrePaidServerOption. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/server_detail.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/server_detail.py index 3123c9eec1..85beb15107 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/server_detail.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/server_detail.py @@ -228,7 +228,7 @@ def __init__(self, status=None, updated=None, auto_terminate_time=None, host_id= def status(self): """Gets the status of this ServerDetail. - 弹性云服务器状态。 取值范围: ACTIVE、BUILD、DELETED、ERROR、HARD_REBOOT、MIGRATING、PAUSED、REBOOT、REBUILD、RESIZE、REVERT_RESIZE、SHUTOFF、SHELVED、SHELVED_OFFLOADED、SOFT_DELETED、SUSPENDED、VERIFY_RESIZE + 弹性云服务器状态。 取值范围: ACTIVE、BUILD、DELETED、ERROR、HARD_REBOOT、MIGRATING、PAUSED、REBOOT、REBUILD、RESIZE、REVERT_RESIZE、SHUTOFF、SHELVED、SHELVED_OFFLOADED、SOFT_DELETED、SUSPENDED、VERIFY_RESIZE 弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html) :return: The status of this ServerDetail. :rtype: str @@ -239,7 +239,7 @@ def status(self): def status(self, status): """Sets the status of this ServerDetail. - 弹性云服务器状态。 取值范围: ACTIVE、BUILD、DELETED、ERROR、HARD_REBOOT、MIGRATING、PAUSED、REBOOT、REBUILD、RESIZE、REVERT_RESIZE、SHUTOFF、SHELVED、SHELVED_OFFLOADED、SOFT_DELETED、SUSPENDED、VERIFY_RESIZE + 弹性云服务器状态。 取值范围: ACTIVE、BUILD、DELETED、ERROR、HARD_REBOOT、MIGRATING、PAUSED、REBOOT、REBUILD、RESIZE、REVERT_RESIZE、SHUTOFF、SHELVED、SHELVED_OFFLOADED、SOFT_DELETED、SUSPENDED、VERIFY_RESIZE 弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html) :param status: The status of this ServerDetail. :type: str @@ -402,7 +402,7 @@ def image(self, image): def os_ext_st_stask_state(self): """Gets the os_ext_st_stask_state of this ServerDetail. - 扩展属性,弹性云服务器当前任务的状态。 + 扩展属性,弹性云服务器当前任务的状态。 取值范围请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)表3。 :return: The os_ext_st_stask_state of this ServerDetail. :rtype: str @@ -413,7 +413,7 @@ def os_ext_st_stask_state(self): def os_ext_st_stask_state(self, os_ext_st_stask_state): """Sets the os_ext_st_stask_state of this ServerDetail. - 扩展属性,弹性云服务器当前任务的状态。 + 扩展属性,弹性云服务器当前任务的状态。 取值范围请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)表3。 :param os_ext_st_stask_state: The os_ext_st_stask_state of this ServerDetail. :type: str @@ -424,7 +424,7 @@ def os_ext_st_stask_state(self, os_ext_st_stask_state): def os_ext_st_svm_state(self): """Gets the os_ext_st_svm_state of this ServerDetail. - 扩展属性,弹性云服务器当前状态。 + 扩展属性,弹性云服务器当前状态。 云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。 :return: The os_ext_st_svm_state of this ServerDetail. :rtype: str @@ -435,7 +435,7 @@ def os_ext_st_svm_state(self): def os_ext_st_svm_state(self, os_ext_st_svm_state): """Sets the os_ext_st_svm_state of this ServerDetail. - 扩展属性,弹性云服务器当前状态。 + 扩展属性,弹性云服务器当前状态。 云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。 :param os_ext_st_svm_state: The os_ext_st_svm_state of this ServerDetail. :type: str diff --git a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/update_server_result.py b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/update_server_result.py index dd8a936ff2..851e62d29a 100644 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/update_server_result.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/update_server_result.py @@ -541,7 +541,7 @@ def tags(self, tags): def status(self): """Gets the status of this UpdateServerResult. - 弹性云服务器状态。 取值范围: ACTIVE、BUILD、DELETED、ERROR、HARD_REBOOT、MIGRATING、PAUSED、REBOOT、REBUILD、RESIZE、REVERT_RESIZE、SHUTOFF、SHELVED、SHELVED_OFFLOADED、SOFT_DELETED、SUSPENDED、VERIFY_RESIZE + 弹性云服务器状态。 取值范围: ACTIVE、BUILD、DELETED、ERROR、HARD_REBOOT、MIGRATING、PAUSED、REBOOT、REBUILD、RESIZE、REVERT_RESIZE、SHUTOFF、SHELVED、SHELVED_OFFLOADED、SOFT_DELETED、SUSPENDED、VERIFY_RESIZE 弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html) :return: The status of this UpdateServerResult. :rtype: str @@ -552,7 +552,7 @@ def status(self): def status(self, status): """Sets the status of this UpdateServerResult. - 弹性云服务器状态。 取值范围: ACTIVE、BUILD、DELETED、ERROR、HARD_REBOOT、MIGRATING、PAUSED、REBOOT、REBUILD、RESIZE、REVERT_RESIZE、SHUTOFF、SHELVED、SHELVED_OFFLOADED、SOFT_DELETED、SUSPENDED、VERIFY_RESIZE + 弹性云服务器状态。 取值范围: ACTIVE、BUILD、DELETED、ERROR、HARD_REBOOT、MIGRATING、PAUSED、REBOOT、REBUILD、RESIZE、REVERT_RESIZE、SHUTOFF、SHELVED、SHELVED_OFFLOADED、SOFT_DELETED、SUSPENDED、VERIFY_RESIZE 弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html) :param status: The status of this UpdateServerResult. :type: str diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index 9c4fd7d2ef..1928cf8912 100644 --- a/huaweicloud-sdk-ecs/setup.py +++ b/huaweicloud-sdk-ecs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkecs" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index 12d86c5cd1..c81aec63a3 100644 --- a/huaweicloud-sdk-eip/setup.py +++ b/huaweicloud-sdk-eip/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeip" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index 838b3f06e9..78a2480f61 100644 --- a/huaweicloud-sdk-elb/setup.py +++ b/huaweicloud-sdk-elb/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkelb" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index b4bbaaee6f..67a096e406 100644 --- a/huaweicloud-sdk-eps/setup.py +++ b/huaweicloud-sdk-eps/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeps" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index 297cefda09..2e1cf06a13 100644 --- a/huaweicloud-sdk-evs/setup.py +++ b/huaweicloud-sdk-evs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkevs" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index 18ab3d0e0b..d01bc0dddc 100644 --- a/huaweicloud-sdk-functiongraph/setup.py +++ b/huaweicloud-sdk-functiongraph/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkfunctiongraph" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index 08b3ca7c80..2761e06d93 100644 --- a/huaweicloud-sdk-gaussdbfornosql/setup.py +++ b/huaweicloud-sdk-gaussdbfornosql/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbfornosql" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 499b0d7eb2..5b199371c6 100644 --- a/huaweicloud-sdk-hss/setup.py +++ b/huaweicloud-sdk-hss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkhss" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index 180470d156..e5ae049b51 100644 --- a/huaweicloud-sdk-iam/setup.py +++ b/huaweicloud-sdk-iam/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiam" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index 78bdfd50e9..4b5ce17305 100644 --- a/huaweicloud-sdk-iec/setup.py +++ b/huaweicloud-sdk-iec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiec" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index ca29de28ac..04d5413588 100644 --- a/huaweicloud-sdk-image/setup.py +++ b/huaweicloud-sdk-image/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkimage" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_list_images_request.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_list_images_request.py index 9ce9d2988e..d7a76b5390 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_list_images_request.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_list_images_request.py @@ -286,7 +286,7 @@ def os_type(self, os_type): def platform(self): """Gets the platform of this GlanceListImagesRequest. - 镜像平台分类,取值为Windows,Ubuntu,RedHat,SUSE,CentOS,Debian,OpenSUSE, Oracle Linux,Fedora,Other,CoreOS和EuleOS + 镜像平台分类,取值为Windows,Ubuntu,RedHat,SUSE,CentOS,Debian,OpenSUSE, Oracle Linux,Fedora,Other,CoreOS和EulerOS :return: The platform of this GlanceListImagesRequest. :rtype: str @@ -297,7 +297,7 @@ def platform(self): def platform(self, platform): """Sets the platform of this GlanceListImagesRequest. - 镜像平台分类,取值为Windows,Ubuntu,RedHat,SUSE,CentOS,Debian,OpenSUSE, Oracle Linux,Fedora,Other,CoreOS和EuleOS + 镜像平台分类,取值为Windows,Ubuntu,RedHat,SUSE,CentOS,Debian,OpenSUSE, Oracle Linux,Fedora,Other,CoreOS和EulerOS :param platform: The platform of this GlanceListImagesRequest. :type: str diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_show_image_response.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_show_image_response.py index 38cf6eed3d..9e7647f7f9 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_show_image_response.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_show_image_response.py @@ -68,7 +68,7 @@ class GlanceShowImageResponse(SdkResponse): 'hw_firmware_type': 'str', 'support_arm': 'str', 'is_offshelved': 'str', - 'lazyloading': 'bool', + 'lazyloading': 'str', 'os_feature_list': 'str', 'root_origin': 'str', 'sequence_num': 'str', @@ -1367,10 +1367,10 @@ def is_offshelved(self, is_offshelved): def lazyloading(self): """Gets the lazyloading of this GlanceShowImageResponse. - 镜像是否支持延迟加载。取值为“True”或“False”。 + 镜像是否支持延迟加载。取值为True或False。 :return: The lazyloading of this GlanceShowImageResponse. - :rtype: bool + :rtype: str """ return self._lazyloading @@ -1378,10 +1378,10 @@ def lazyloading(self): def lazyloading(self, lazyloading): """Sets the lazyloading of this GlanceShowImageResponse. - 镜像是否支持延迟加载。取值为“True”或“False”。 + 镜像是否支持延迟加载。取值为True或False。 :param lazyloading: The lazyloading of this GlanceShowImageResponse. - :type: bool + :type: str """ self._lazyloading = lazyloading diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_show_image_response_body.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_show_image_response_body.py index b6fd42abe5..e0ca5ccdd6 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_show_image_response_body.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_show_image_response_body.py @@ -68,7 +68,7 @@ class GlanceShowImageResponseBody: 'hw_firmware_type': 'str', 'support_arm': 'str', 'is_offshelved': 'str', - 'lazyloading': 'bool', + 'lazyloading': 'str', 'os_feature_list': 'str', 'root_origin': 'str', 'sequence_num': 'str', @@ -1308,10 +1308,10 @@ def is_offshelved(self, is_offshelved): def lazyloading(self): """Gets the lazyloading of this GlanceShowImageResponseBody. - 镜像是否支持延迟加载。取值为“True”或“False”。 + 镜像是否支持延迟加载。取值为True或False。 :return: The lazyloading of this GlanceShowImageResponseBody. - :rtype: bool + :rtype: str """ return self._lazyloading @@ -1319,10 +1319,10 @@ def lazyloading(self): def lazyloading(self, lazyloading): """Sets the lazyloading of this GlanceShowImageResponseBody. - 镜像是否支持延迟加载。取值为“True”或“False”。 + 镜像是否支持延迟加载。取值为True或False。 :param lazyloading: The lazyloading of this GlanceShowImageResponseBody. - :type: bool + :type: str """ self._lazyloading = lazyloading diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_update_image_response.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_update_image_response.py index 65ea1f0b5a..201ef75eb2 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_update_image_response.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/glance_update_image_response.py @@ -68,7 +68,7 @@ class GlanceUpdateImageResponse(SdkResponse): 'hw_firmware_type': 'str', 'support_arm': 'str', 'is_offshelved': 'str', - 'lazyloading': 'bool', + 'lazyloading': 'str', 'os_feature_list': 'str', 'root_origin': 'str', 'sequence_num': 'str', @@ -1367,10 +1367,10 @@ def is_offshelved(self, is_offshelved): def lazyloading(self): """Gets the lazyloading of this GlanceUpdateImageResponse. - 镜像是否支持延迟加载。取值为“True”或“False”。 + 镜像是否支持延迟加载。取值为True或False。 :return: The lazyloading of this GlanceUpdateImageResponse. - :rtype: bool + :rtype: str """ return self._lazyloading @@ -1378,10 +1378,10 @@ def lazyloading(self): def lazyloading(self, lazyloading): """Sets the lazyloading of this GlanceUpdateImageResponse. - 镜像是否支持延迟加载。取值为“True”或“False”。 + 镜像是否支持延迟加载。取值为True或False。 :param lazyloading: The lazyloading of this GlanceUpdateImageResponse. - :type: bool + :type: str """ self._lazyloading = lazyloading diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/image_info.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/image_info.py index 148866e391..7ff57c65c5 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/image_info.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/image_info.py @@ -74,7 +74,7 @@ class ImageInfo: 'account_code': 'str', 'hw_vif_multiqueue_enabled': 'str', 'is_offshelved': 'str', - 'lazyloading': 'bool', + 'lazyloading': 'str', 'root_origin': 'str', 'sequence_num': 'str', 'active_at': 'str', @@ -1463,7 +1463,7 @@ def lazyloading(self): 镜像是否支持延迟加载。取值为“True”或“False”。 :return: The lazyloading of this ImageInfo. - :rtype: bool + :rtype: str """ return self._lazyloading @@ -1474,7 +1474,7 @@ def lazyloading(self, lazyloading): 镜像是否支持延迟加载。取值为“True”或“False”。 :param lazyloading: The lazyloading of this ImageInfo. - :type: bool + :type: str """ self._lazyloading = lazyloading diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/update_image_response.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/update_image_response.py index 842d0c0f68..60d8153063 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/update_image_response.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/update_image_response.py @@ -74,7 +74,7 @@ class UpdateImageResponse(SdkResponse): 'account_code': 'str', 'hw_vif_multiqueue_enabled': 'str', 'is_offshelved': 'str', - 'lazyloading': 'bool', + 'lazyloading': 'str', 'root_origin': 'str', 'sequence_num': 'str', 'active_at': 'str', @@ -1497,7 +1497,7 @@ def lazyloading(self): 镜像是否支持延迟加载。取值为“True”或“False”。 :return: The lazyloading of this UpdateImageResponse. - :rtype: bool + :rtype: str """ return self._lazyloading @@ -1508,7 +1508,7 @@ def lazyloading(self, lazyloading): 镜像是否支持延迟加载。取值为“True”或“False”。 :param lazyloading: The lazyloading of this UpdateImageResponse. - :type: bool + :type: str """ self._lazyloading = lazyloading diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index c39f459971..764f01e75e 100644 --- a/huaweicloud-sdk-ims/setup.py +++ b/huaweicloud-sdk-ims/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkims" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index f52efa22bc..3394325d65 100644 --- a/huaweicloud-sdk-iotda/setup.py +++ b/huaweicloud-sdk-iotda/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotda" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index a1b462aa70..1a93e5d254 100644 --- a/huaweicloud-sdk-kafka/setup.py +++ b/huaweicloud-sdk-kafka/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkafka" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index 56cfe77ea9..4cda4eeccb 100644 --- a/huaweicloud-sdk-kms/setup.py +++ b/huaweicloud-sdk-kms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkms" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index 56b9c0ea45..2c55f3105e 100644 --- a/huaweicloud-sdk-live/setup.py +++ b/huaweicloud-sdk-live/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklive" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index 3f1831bd58..371b1c579e 100644 --- a/huaweicloud-sdk-lts/setup.py +++ b/huaweicloud-sdk-lts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklts" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index 48e98d017f..990c8d428b 100644 --- a/huaweicloud-sdk-meeting/setup.py +++ b/huaweicloud-sdk-meeting/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmeeting" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index fdefad2c86..73c8627c75 100644 --- a/huaweicloud-sdk-moderation/setup.py +++ b/huaweicloud-sdk-moderation/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmoderation" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index 07a4920d68..c0d2754739 100644 --- a/huaweicloud-sdk-mpc/setup.py +++ b/huaweicloud-sdk-mpc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmpc" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index cc693bec85..6868a81d96 100644 --- a/huaweicloud-sdk-nat/setup.py +++ b/huaweicloud-sdk-nat/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdknat" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index 380536729f..aa2519c966 100644 --- a/huaweicloud-sdk-ocr/setup.py +++ b/huaweicloud-sdk-ocr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkocr" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index 6bd1337004..b81b7515b7 100644 --- a/huaweicloud-sdk-oms/setup.py +++ b/huaweicloud-sdk-oms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoms" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 931534230b..62da480147 100644 --- a/huaweicloud-sdk-osm/setup.py +++ b/huaweicloud-sdk-osm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkosm" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index 9f21f0e642..a69edc1928 100644 --- a/huaweicloud-sdk-projectman/setup.py +++ b/huaweicloud-sdk-projectman/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkprojectman" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index 2c281a708c..095574d95b 100644 --- a/huaweicloud-sdk-rabbitmq/setup.py +++ b/huaweicloud-sdk-rabbitmq/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrabbitmq" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index 3a7fb7e701..35bce8f7f8 100644 --- a/huaweicloud-sdk-rds/setup.py +++ b/huaweicloud-sdk-rds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrds" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index 03003d63f1..ebc4103ddc 100644 --- a/huaweicloud-sdk-rms/setup.py +++ b/huaweicloud-sdk-rms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrms" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index 42b63cf339..f7053f9a0c 100644 --- a/huaweicloud-sdk-servicestage/setup.py +++ b/huaweicloud-sdk-servicestage/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkservicestage" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index ffae75ac5b..c8d6a952a0 100644 --- a/huaweicloud-sdk-smn/setup.py +++ b/huaweicloud-sdk-smn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksmn" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index f9978ad4ec..863fa2b93c 100644 --- a/huaweicloud-sdk-swr/setup.py +++ b/huaweicloud-sdk-swr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkswr" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index 551074c8f7..69a7272769 100644 --- a/huaweicloud-sdk-tms/setup.py +++ b/huaweicloud-sdk-tms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdktms" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index fa9e5f0f4f..2b941eadaa 100644 --- a/huaweicloud-sdk-vod/setup.py +++ b/huaweicloud-sdk-vod/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvod" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 9078f78d9c..4337fa30d6 100644 --- a/huaweicloud-sdk-vpc/setup.py +++ b/huaweicloud-sdk-vpc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpc" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index c3bca15963..c867510620 100644 --- a/huaweicloud-sdk-waf/setup.py +++ b/huaweicloud-sdk-waf/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkwaf" -VERSION = "3.0.51" +VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"