huaweicloudsdkgaussdbforopengauss 3.1.124__py2.py3-none-any.whl → 3.1.126__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,9 +85,11 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.download_backup_response import
85
85
  from huaweicloudsdkgaussdbforopengauss.v3.model.download_object import DownloadObject
86
86
  from huaweicloudsdkgaussdbforopengauss.v3.model.eps_quotas_option import EpsQuotasOption
87
87
  from huaweicloudsdkgaussdbforopengauss.v3.model.error_response import ErrorResponse
88
+ from huaweicloudsdkgaussdbforopengauss.v3.model.feature_result import FeatureResult
88
89
  from huaweicloudsdkgaussdbforopengauss.v3.model.flavor import Flavor
89
90
  from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_error_response import FlavorErrorResponse
90
91
  from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_result import FlavorResult
92
+ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_error_response_body import GaussDBErrorResponseBody
91
93
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_upgrade_instances_version_request import GaussDBUpgradeInstancesVersionRequest
92
94
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_database_for_creation import GaussDBforOpenDatabaseForCreation
93
95
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_create_schema_req import GaussDBforOpenGaussCreateSchemaReq
@@ -148,6 +150,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_db_users_response import Li
148
150
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_diff_details_result import ListDiffDetailsResult
149
151
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_eps_quotas_request import ListEpsQuotasRequest
150
152
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_eps_quotas_response import ListEpsQuotasResponse
153
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_features_request import ListFeaturesRequest
154
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_features_response import ListFeaturesResponse
151
155
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavor_info import ListFlavorInfo
152
156
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_request import ListFlavorsRequest
153
157
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_response import ListFlavorsResponse
@@ -350,6 +354,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.tags_option import TagsOption
350
354
  from huaweicloudsdkgaussdbforopengauss.v3.model.tags_result import TagsResult
351
355
  from huaweicloudsdkgaussdbforopengauss.v3.model.task_detail_result import TaskDetailResult
352
356
  from huaweicloudsdkgaussdbforopengauss.v3.model.top_io_info import TopIoInfo
357
+ from huaweicloudsdkgaussdbforopengauss.v3.model.update_features_request import UpdateFeaturesRequest
358
+ from huaweicloudsdkgaussdbforopengauss.v3.model.update_features_request_body import UpdateFeaturesRequestBody
359
+ from huaweicloudsdkgaussdbforopengauss.v3.model.update_features_response import UpdateFeaturesResponse
353
360
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_request import UpdateInstanceConfigurationRequest
354
361
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_response import UpdateInstanceConfigurationResponse
355
362
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_name_request import UpdateInstanceNameRequest
@@ -2743,6 +2743,73 @@ class GaussDBforopenGaussAsyncClient(Client):
2743
2743
 
2744
2744
  return http_info
2745
2745
 
2746
+ def list_features_async(self, request):
2747
+ """查询实例特性列表
2748
+
2749
+ 查询当前实例高级特性列表。
2750
+
2751
+ Please refer to HUAWEI cloud API Explorer for details.
2752
+
2753
+
2754
+ :param request: Request instance for ListFeatures
2755
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListFeaturesRequest`
2756
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListFeaturesResponse`
2757
+ """
2758
+ http_info = self._list_features_http_info(request)
2759
+ return self._call_api(**http_info)
2760
+
2761
+ def list_features_async_invoker(self, request):
2762
+ http_info = self._list_features_http_info(request)
2763
+ return AsyncInvoker(self, http_info)
2764
+
2765
+ def _list_features_http_info(self, request):
2766
+ http_info = {
2767
+ "method": "GET",
2768
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/advance-features",
2769
+ "request_type": request.__class__.__name__,
2770
+ "response_type": "ListFeaturesResponse"
2771
+ }
2772
+
2773
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2774
+
2775
+ cname = None
2776
+
2777
+ collection_formats = {}
2778
+
2779
+ path_params = {}
2780
+ if 'instance_id' in local_var_params:
2781
+ path_params['instance_id'] = local_var_params['instance_id']
2782
+
2783
+ query_params = []
2784
+
2785
+ header_params = {}
2786
+ if 'x_language' in local_var_params:
2787
+ header_params['X-Language'] = local_var_params['x_language']
2788
+
2789
+ form_params = {}
2790
+
2791
+ body = None
2792
+ if isinstance(request, SdkStreamRequest):
2793
+ body = request.get_file_stream()
2794
+
2795
+ response_headers = []
2796
+
2797
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2798
+ ['application/json'])
2799
+
2800
+ auth_settings = []
2801
+
2802
+ http_info["cname"] = cname
2803
+ http_info["collection_formats"] = collection_formats
2804
+ http_info["path_params"] = path_params
2805
+ http_info["query_params"] = query_params
2806
+ http_info["header_params"] = header_params
2807
+ http_info["post_params"] = form_params
2808
+ http_info["body"] = body
2809
+ http_info["response_headers"] = response_headers
2810
+
2811
+ return http_info
2812
+
2746
2813
  def list_flavors_async(self, request):
2747
2814
  """查询数据库规格
2748
2815
 
@@ -6628,6 +6695,75 @@ class GaussDBforopenGaussAsyncClient(Client):
6628
6695
 
6629
6696
  return http_info
6630
6697
 
6698
+ def update_features_async(self, request):
6699
+ """开启特性
6700
+
6701
+ 打开高级特性开关。
6702
+
6703
+ Please refer to HUAWEI cloud API Explorer for details.
6704
+
6705
+
6706
+ :param request: Request instance for UpdateFeatures
6707
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateFeaturesRequest`
6708
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateFeaturesResponse`
6709
+ """
6710
+ http_info = self._update_features_http_info(request)
6711
+ return self._call_api(**http_info)
6712
+
6713
+ def update_features_async_invoker(self, request):
6714
+ http_info = self._update_features_http_info(request)
6715
+ return AsyncInvoker(self, http_info)
6716
+
6717
+ def _update_features_http_info(self, request):
6718
+ http_info = {
6719
+ "method": "POST",
6720
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/advance-features",
6721
+ "request_type": request.__class__.__name__,
6722
+ "response_type": "UpdateFeaturesResponse"
6723
+ }
6724
+
6725
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6726
+
6727
+ cname = None
6728
+
6729
+ collection_formats = {}
6730
+
6731
+ path_params = {}
6732
+ if 'instance_id' in local_var_params:
6733
+ path_params['instance_id'] = local_var_params['instance_id']
6734
+
6735
+ query_params = []
6736
+
6737
+ header_params = {}
6738
+ if 'x_language' in local_var_params:
6739
+ header_params['X-Language'] = local_var_params['x_language']
6740
+
6741
+ form_params = {}
6742
+
6743
+ body = None
6744
+ if 'body' in local_var_params:
6745
+ body = local_var_params['body']
6746
+ if isinstance(request, SdkStreamRequest):
6747
+ body = request.get_file_stream()
6748
+
6749
+ response_headers = []
6750
+
6751
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6752
+ ['application/json;charset=UTF-8'])
6753
+
6754
+ auth_settings = []
6755
+
6756
+ http_info["cname"] = cname
6757
+ http_info["collection_formats"] = collection_formats
6758
+ http_info["path_params"] = path_params
6759
+ http_info["query_params"] = query_params
6760
+ http_info["header_params"] = header_params
6761
+ http_info["post_params"] = form_params
6762
+ http_info["body"] = body
6763
+ http_info["response_headers"] = response_headers
6764
+
6765
+ return http_info
6766
+
6631
6767
  def update_instance_configuration_async(self, request):
6632
6768
  """修改指定实例的参数
6633
6769
 
@@ -2743,6 +2743,73 @@ class GaussDBforopenGaussClient(Client):
2743
2743
 
2744
2744
  return http_info
2745
2745
 
2746
+ def list_features(self, request):
2747
+ """查询实例特性列表
2748
+
2749
+ 查询当前实例高级特性列表。
2750
+
2751
+ Please refer to HUAWEI cloud API Explorer for details.
2752
+
2753
+ :param request: Request instance for ListFeatures
2754
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListFeaturesRequest`
2755
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListFeaturesResponse`
2756
+ """
2757
+ http_info = self._list_features_http_info(request)
2758
+ return self._call_api(**http_info)
2759
+
2760
+ def list_features_invoker(self, request):
2761
+ http_info = self._list_features_http_info(request)
2762
+ return SyncInvoker(self, http_info)
2763
+
2764
+ @classmethod
2765
+ def _list_features_http_info(cls, request):
2766
+ http_info = {
2767
+ "method": "GET",
2768
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/advance-features",
2769
+ "request_type": request.__class__.__name__,
2770
+ "response_type": "ListFeaturesResponse"
2771
+ }
2772
+
2773
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2774
+
2775
+ cname = None
2776
+
2777
+ collection_formats = {}
2778
+
2779
+ path_params = {}
2780
+ if 'instance_id' in local_var_params:
2781
+ path_params['instance_id'] = local_var_params['instance_id']
2782
+
2783
+ query_params = []
2784
+
2785
+ header_params = {}
2786
+ if 'x_language' in local_var_params:
2787
+ header_params['X-Language'] = local_var_params['x_language']
2788
+
2789
+ form_params = {}
2790
+
2791
+ body = None
2792
+ if isinstance(request, SdkStreamRequest):
2793
+ body = request.get_file_stream()
2794
+
2795
+ response_headers = []
2796
+
2797
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2798
+ ['application/json'])
2799
+
2800
+ auth_settings = []
2801
+
2802
+ http_info["cname"] = cname
2803
+ http_info["collection_formats"] = collection_formats
2804
+ http_info["path_params"] = path_params
2805
+ http_info["query_params"] = query_params
2806
+ http_info["header_params"] = header_params
2807
+ http_info["post_params"] = form_params
2808
+ http_info["body"] = body
2809
+ http_info["response_headers"] = response_headers
2810
+
2811
+ return http_info
2812
+
2746
2813
  def list_flavors(self, request):
2747
2814
  """查询数据库规格
2748
2815
 
@@ -6628,6 +6695,75 @@ class GaussDBforopenGaussClient(Client):
6628
6695
 
6629
6696
  return http_info
6630
6697
 
6698
+ def update_features(self, request):
6699
+ """开启特性
6700
+
6701
+ 打开高级特性开关。
6702
+
6703
+ Please refer to HUAWEI cloud API Explorer for details.
6704
+
6705
+ :param request: Request instance for UpdateFeatures
6706
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateFeaturesRequest`
6707
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateFeaturesResponse`
6708
+ """
6709
+ http_info = self._update_features_http_info(request)
6710
+ return self._call_api(**http_info)
6711
+
6712
+ def update_features_invoker(self, request):
6713
+ http_info = self._update_features_http_info(request)
6714
+ return SyncInvoker(self, http_info)
6715
+
6716
+ @classmethod
6717
+ def _update_features_http_info(cls, request):
6718
+ http_info = {
6719
+ "method": "POST",
6720
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/advance-features",
6721
+ "request_type": request.__class__.__name__,
6722
+ "response_type": "UpdateFeaturesResponse"
6723
+ }
6724
+
6725
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6726
+
6727
+ cname = None
6728
+
6729
+ collection_formats = {}
6730
+
6731
+ path_params = {}
6732
+ if 'instance_id' in local_var_params:
6733
+ path_params['instance_id'] = local_var_params['instance_id']
6734
+
6735
+ query_params = []
6736
+
6737
+ header_params = {}
6738
+ if 'x_language' in local_var_params:
6739
+ header_params['X-Language'] = local_var_params['x_language']
6740
+
6741
+ form_params = {}
6742
+
6743
+ body = None
6744
+ if 'body' in local_var_params:
6745
+ body = local_var_params['body']
6746
+ if isinstance(request, SdkStreamRequest):
6747
+ body = request.get_file_stream()
6748
+
6749
+ response_headers = []
6750
+
6751
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6752
+ ['application/json;charset=UTF-8'])
6753
+
6754
+ auth_settings = []
6755
+
6756
+ http_info["cname"] = cname
6757
+ http_info["collection_formats"] = collection_formats
6758
+ http_info["path_params"] = path_params
6759
+ http_info["query_params"] = query_params
6760
+ http_info["header_params"] = header_params
6761
+ http_info["post_params"] = form_params
6762
+ http_info["body"] = body
6763
+ http_info["response_headers"] = response_headers
6764
+
6765
+ return http_info
6766
+
6631
6767
  def update_instance_configuration(self, request):
6632
6768
  """修改指定实例的参数
6633
6769
 
@@ -83,9 +83,11 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.download_backup_response import
83
83
  from huaweicloudsdkgaussdbforopengauss.v3.model.download_object import DownloadObject
84
84
  from huaweicloudsdkgaussdbforopengauss.v3.model.eps_quotas_option import EpsQuotasOption
85
85
  from huaweicloudsdkgaussdbforopengauss.v3.model.error_response import ErrorResponse
86
+ from huaweicloudsdkgaussdbforopengauss.v3.model.feature_result import FeatureResult
86
87
  from huaweicloudsdkgaussdbforopengauss.v3.model.flavor import Flavor
87
88
  from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_error_response import FlavorErrorResponse
88
89
  from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_result import FlavorResult
90
+ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_error_response_body import GaussDBErrorResponseBody
89
91
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_upgrade_instances_version_request import GaussDBUpgradeInstancesVersionRequest
90
92
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_database_for_creation import GaussDBforOpenDatabaseForCreation
91
93
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_create_schema_req import GaussDBforOpenGaussCreateSchemaReq
@@ -146,6 +148,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_db_users_response import Li
146
148
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_diff_details_result import ListDiffDetailsResult
147
149
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_eps_quotas_request import ListEpsQuotasRequest
148
150
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_eps_quotas_response import ListEpsQuotasResponse
151
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_features_request import ListFeaturesRequest
152
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_features_response import ListFeaturesResponse
149
153
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavor_info import ListFlavorInfo
150
154
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_request import ListFlavorsRequest
151
155
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_response import ListFlavorsResponse
@@ -348,6 +352,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.tags_option import TagsOption
348
352
  from huaweicloudsdkgaussdbforopengauss.v3.model.tags_result import TagsResult
349
353
  from huaweicloudsdkgaussdbforopengauss.v3.model.task_detail_result import TaskDetailResult
350
354
  from huaweicloudsdkgaussdbforopengauss.v3.model.top_io_info import TopIoInfo
355
+ from huaweicloudsdkgaussdbforopengauss.v3.model.update_features_request import UpdateFeaturesRequest
356
+ from huaweicloudsdkgaussdbforopengauss.v3.model.update_features_request_body import UpdateFeaturesRequestBody
357
+ from huaweicloudsdkgaussdbforopengauss.v3.model.update_features_response import UpdateFeaturesResponse
351
358
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_request import UpdateInstanceConfigurationRequest
352
359
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_response import UpdateInstanceConfigurationResponse
353
360
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_name_request import UpdateInstanceNameRequest
@@ -0,0 +1,289 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class FeatureResult:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'name': 'str',
21
+ 'status': 'str',
22
+ 'description': 'str',
23
+ 'type': 'str',
24
+ 'value': 'str',
25
+ 'range': 'str',
26
+ 'range_description': 'str'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'name': 'name',
31
+ 'status': 'status',
32
+ 'description': 'description',
33
+ 'type': 'type',
34
+ 'value': 'value',
35
+ 'range': 'range',
36
+ 'range_description': 'range_description'
37
+ }
38
+
39
+ def __init__(self, name=None, status=None, description=None, type=None, value=None, range=None, range_description=None):
40
+ """FeatureResult
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param name: 特性名称。
45
+ :type name: str
46
+ :param status: 特性是否开启。
47
+ :type status: str
48
+ :param description: 特性中文描述。
49
+ :type description: str
50
+ :param type: 特性值类型。
51
+ :type type: str
52
+ :param value: 特性值。
53
+ :type value: str
54
+ :param range: 特性值范围。
55
+ :type range: str
56
+ :param range_description: 特性范围描述。
57
+ :type range_description: str
58
+ """
59
+
60
+
61
+
62
+ self._name = None
63
+ self._status = None
64
+ self._description = None
65
+ self._type = None
66
+ self._value = None
67
+ self._range = None
68
+ self._range_description = None
69
+ self.discriminator = None
70
+
71
+ if name is not None:
72
+ self.name = name
73
+ if status is not None:
74
+ self.status = status
75
+ if description is not None:
76
+ self.description = description
77
+ if type is not None:
78
+ self.type = type
79
+ if value is not None:
80
+ self.value = value
81
+ if range is not None:
82
+ self.range = range
83
+ if range_description is not None:
84
+ self.range_description = range_description
85
+
86
+ @property
87
+ def name(self):
88
+ """Gets the name of this FeatureResult.
89
+
90
+ 特性名称。
91
+
92
+ :return: The name of this FeatureResult.
93
+ :rtype: str
94
+ """
95
+ return self._name
96
+
97
+ @name.setter
98
+ def name(self, name):
99
+ """Sets the name of this FeatureResult.
100
+
101
+ 特性名称。
102
+
103
+ :param name: The name of this FeatureResult.
104
+ :type name: str
105
+ """
106
+ self._name = name
107
+
108
+ @property
109
+ def status(self):
110
+ """Gets the status of this FeatureResult.
111
+
112
+ 特性是否开启。
113
+
114
+ :return: The status of this FeatureResult.
115
+ :rtype: str
116
+ """
117
+ return self._status
118
+
119
+ @status.setter
120
+ def status(self, status):
121
+ """Sets the status of this FeatureResult.
122
+
123
+ 特性是否开启。
124
+
125
+ :param status: The status of this FeatureResult.
126
+ :type status: str
127
+ """
128
+ self._status = status
129
+
130
+ @property
131
+ def description(self):
132
+ """Gets the description of this FeatureResult.
133
+
134
+ 特性中文描述。
135
+
136
+ :return: The description of this FeatureResult.
137
+ :rtype: str
138
+ """
139
+ return self._description
140
+
141
+ @description.setter
142
+ def description(self, description):
143
+ """Sets the description of this FeatureResult.
144
+
145
+ 特性中文描述。
146
+
147
+ :param description: The description of this FeatureResult.
148
+ :type description: str
149
+ """
150
+ self._description = description
151
+
152
+ @property
153
+ def type(self):
154
+ """Gets the type of this FeatureResult.
155
+
156
+ 特性值类型。
157
+
158
+ :return: The type of this FeatureResult.
159
+ :rtype: str
160
+ """
161
+ return self._type
162
+
163
+ @type.setter
164
+ def type(self, type):
165
+ """Sets the type of this FeatureResult.
166
+
167
+ 特性值类型。
168
+
169
+ :param type: The type of this FeatureResult.
170
+ :type type: str
171
+ """
172
+ self._type = type
173
+
174
+ @property
175
+ def value(self):
176
+ """Gets the value of this FeatureResult.
177
+
178
+ 特性值。
179
+
180
+ :return: The value of this FeatureResult.
181
+ :rtype: str
182
+ """
183
+ return self._value
184
+
185
+ @value.setter
186
+ def value(self, value):
187
+ """Sets the value of this FeatureResult.
188
+
189
+ 特性值。
190
+
191
+ :param value: The value of this FeatureResult.
192
+ :type value: str
193
+ """
194
+ self._value = value
195
+
196
+ @property
197
+ def range(self):
198
+ """Gets the range of this FeatureResult.
199
+
200
+ 特性值范围。
201
+
202
+ :return: The range of this FeatureResult.
203
+ :rtype: str
204
+ """
205
+ return self._range
206
+
207
+ @range.setter
208
+ def range(self, range):
209
+ """Sets the range of this FeatureResult.
210
+
211
+ 特性值范围。
212
+
213
+ :param range: The range of this FeatureResult.
214
+ :type range: str
215
+ """
216
+ self._range = range
217
+
218
+ @property
219
+ def range_description(self):
220
+ """Gets the range_description of this FeatureResult.
221
+
222
+ 特性范围描述。
223
+
224
+ :return: The range_description of this FeatureResult.
225
+ :rtype: str
226
+ """
227
+ return self._range_description
228
+
229
+ @range_description.setter
230
+ def range_description(self, range_description):
231
+ """Sets the range_description of this FeatureResult.
232
+
233
+ 特性范围描述。
234
+
235
+ :param range_description: The range_description of this FeatureResult.
236
+ :type range_description: str
237
+ """
238
+ self._range_description = range_description
239
+
240
+ def to_dict(self):
241
+ """Returns the model properties as a dict"""
242
+ result = {}
243
+
244
+ for attr, _ in six.iteritems(self.openapi_types):
245
+ value = getattr(self, attr)
246
+ if isinstance(value, list):
247
+ result[attr] = list(map(
248
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
249
+ value
250
+ ))
251
+ elif hasattr(value, "to_dict"):
252
+ result[attr] = value.to_dict()
253
+ elif isinstance(value, dict):
254
+ result[attr] = dict(map(
255
+ lambda item: (item[0], item[1].to_dict())
256
+ if hasattr(item[1], "to_dict") else item,
257
+ value.items()
258
+ ))
259
+ else:
260
+ if attr in self.sensitive_list:
261
+ result[attr] = "****"
262
+ else:
263
+ result[attr] = value
264
+
265
+ return result
266
+
267
+ def to_str(self):
268
+ """Returns the string representation of the model"""
269
+ import simplejson as json
270
+ if six.PY2:
271
+ import sys
272
+ reload(sys)
273
+ sys.setdefaultencoding("utf-8")
274
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
275
+
276
+ def __repr__(self):
277
+ """For `print`"""
278
+ return self.to_str()
279
+
280
+ def __eq__(self, other):
281
+ """Returns true if both objects are equal"""
282
+ if not isinstance(other, FeatureResult):
283
+ return False
284
+
285
+ return self.__dict__ == other.__dict__
286
+
287
+ def __ne__(self, other):
288
+ """Returns true if both objects are not equal"""
289
+ return not self == other