huaweicloudsdkgaussdb 3.1.131__py2.py3-none-any.whl → 3.1.133__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.
Files changed (55) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +8 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +223 -14
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +223 -14
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +8 -0
  5. huaweicloudsdkgaussdb/v3/model/check_ch_database_config_request_body.py +3 -3
  6. huaweicloudsdkgaussdb/v3/model/check_ch_database_table_config_request_body.py +3 -3
  7. huaweicloudsdkgaussdb/v3/model/check_data_base_config_response.py +6 -6
  8. huaweicloudsdkgaussdb/v3/model/check_table_config_response.py +3 -3
  9. huaweicloudsdkgaussdb/v3/model/copy_configurations_request.py +3 -3
  10. huaweicloudsdkgaussdb/v3/model/copy_instance_configurations_request.py +3 -3
  11. huaweicloudsdkgaussdb/v3/model/create_ch_database_replication_request_body.py +3 -3
  12. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body.py +3 -3
  13. huaweicloudsdkgaussdb/v3/model/create_click_house_instance_request.py +3 -3
  14. huaweicloudsdkgaussdb/v3/model/create_database_user_list.py +3 -3
  15. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication.py +6 -6
  16. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_request.py +3 -3
  17. huaweicloudsdkgaussdb/v3/model/db_config_check_request_v3.py +9 -9
  18. huaweicloudsdkgaussdb/v3/model/db_parameter.py +32 -3
  19. huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_request.py +3 -3
  20. huaweicloudsdkgaussdb/v3/model/delete_gauss_my_sql_backup_request.py +3 -3
  21. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_request.py +3 -3
  22. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_request.py +3 -3
  23. huaweicloudsdkgaussdb/v3/model/list_configurations_instances_request.py +3 -3
  24. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_request.py +3 -3
  25. huaweicloudsdkgaussdb/v3/model/list_modify_history_request.py +3 -3
  26. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_by_data_base_request.py +170 -0
  27. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_by_data_base_response.py +336 -0
  28. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_response.py +6 -6
  29. huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_request.py +32 -3
  30. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_request.py +3 -3
  31. huaweicloudsdkgaussdb/v3/model/modify_data_sync_config_request_v3.py +314 -0
  32. huaweicloudsdkgaussdb/v3/model/modify_data_sync_request.py +167 -0
  33. huaweicloudsdkgaussdb/v3/model/modify_data_sync_response.py +261 -0
  34. huaweicloudsdkgaussdb/v3/model/modify_port_request.py +3 -3
  35. huaweicloudsdkgaussdb/v3/model/mysql_create_readonly_node_request.py +3 -3
  36. huaweicloudsdkgaussdb/v3/model/mysql_datastore_in_backup.py +3 -3
  37. huaweicloudsdkgaussdb/v3/model/mysql_datastore_in_req.py +6 -6
  38. huaweicloudsdkgaussdb/v3/model/mysql_datastore_in_res.py +6 -6
  39. huaweicloudsdkgaussdb/v3/model/mysql_instance_list_info.py +3 -3
  40. huaweicloudsdkgaussdb/v3/model/mysql_instance_list_info_unify_status.py +3 -3
  41. huaweicloudsdkgaussdb/v3/model/resize_star_rocks_flavor_request.py +3 -3
  42. huaweicloudsdkgaussdb/v3/model/resource_check_resource.py +3 -3
  43. huaweicloudsdkgaussdb/v3/model/show_restore_tables_request.py +3 -3
  44. huaweicloudsdkgaussdb/v3/model/star_rocks_replication_info.py +3 -3
  45. huaweicloudsdkgaussdb/v3/model/table_config_check_request_v3.py +9 -9
  46. huaweicloudsdkgaussdb/v3/model/update_backup_offsite_policy_info.py +3 -3
  47. huaweicloudsdkgaussdb/v3/model/update_proxy_port_request_body.py +3 -3
  48. huaweicloudsdkgaussdb/v3/model/upgrade_sr_kernel_version_request.py +167 -0
  49. huaweicloudsdkgaussdb/v3/model/upgrade_sr_kernel_version_request_v3.py +144 -0
  50. huaweicloudsdkgaussdb/v3/model/upgrade_sr_kernel_version_response.py +116 -0
  51. {huaweicloudsdkgaussdb-3.1.131.dist-info → huaweicloudsdkgaussdb-3.1.133.dist-info}/METADATA +2 -2
  52. {huaweicloudsdkgaussdb-3.1.131.dist-info → huaweicloudsdkgaussdb-3.1.133.dist-info}/RECORD +55 -47
  53. {huaweicloudsdkgaussdb-3.1.131.dist-info → huaweicloudsdkgaussdb-3.1.133.dist-info}/LICENSE +0 -0
  54. {huaweicloudsdkgaussdb-3.1.131.dist-info → huaweicloudsdkgaussdb-3.1.133.dist-info}/WHEEL +0 -0
  55. {huaweicloudsdkgaussdb-3.1.131.dist-info → huaweicloudsdkgaussdb-3.1.133.dist-info}/top_level.txt +0 -0
@@ -45,11 +45,11 @@ class TableConfigCheckRequestV3:
45
45
 
46
46
  The model defined in huaweicloud sdk
47
47
 
48
- :param source_instance_id: GaussDB(for MySQL)实例ID。
48
+ :param source_instance_id: TaurusDB实例ID。
49
49
  :type source_instance_id: str
50
- :param source_node_id: GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID
50
+ :param source_node_id: TaurusDB只读节点ID。如为空,则取TaurusDB主节点ID
51
51
  :type source_node_id: str
52
- :param source_database_name: GaussDB(for MySQL)数据库名。
52
+ :param source_database_name: TaurusDB数据库名。
53
53
  :type source_database_name: str
54
54
  :param task_name: 同步任务名称。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
55
55
  :type task_name: str
@@ -101,7 +101,7 @@ class TableConfigCheckRequestV3:
101
101
  def source_instance_id(self):
102
102
  """Gets the source_instance_id of this TableConfigCheckRequestV3.
103
103
 
104
- GaussDB(for MySQL)实例ID。
104
+ TaurusDB实例ID。
105
105
 
106
106
  :return: The source_instance_id of this TableConfigCheckRequestV3.
107
107
  :rtype: str
@@ -112,7 +112,7 @@ class TableConfigCheckRequestV3:
112
112
  def source_instance_id(self, source_instance_id):
113
113
  """Sets the source_instance_id of this TableConfigCheckRequestV3.
114
114
 
115
- GaussDB(for MySQL)实例ID。
115
+ TaurusDB实例ID。
116
116
 
117
117
  :param source_instance_id: The source_instance_id of this TableConfigCheckRequestV3.
118
118
  :type source_instance_id: str
@@ -123,7 +123,7 @@ class TableConfigCheckRequestV3:
123
123
  def source_node_id(self):
124
124
  """Gets the source_node_id of this TableConfigCheckRequestV3.
125
125
 
126
- GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID
126
+ TaurusDB只读节点ID。如为空,则取TaurusDB主节点ID
127
127
 
128
128
  :return: The source_node_id of this TableConfigCheckRequestV3.
129
129
  :rtype: str
@@ -134,7 +134,7 @@ class TableConfigCheckRequestV3:
134
134
  def source_node_id(self, source_node_id):
135
135
  """Sets the source_node_id of this TableConfigCheckRequestV3.
136
136
 
137
- GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID
137
+ TaurusDB只读节点ID。如为空,则取TaurusDB主节点ID
138
138
 
139
139
  :param source_node_id: The source_node_id of this TableConfigCheckRequestV3.
140
140
  :type source_node_id: str
@@ -145,7 +145,7 @@ class TableConfigCheckRequestV3:
145
145
  def source_database_name(self):
146
146
  """Gets the source_database_name of this TableConfigCheckRequestV3.
147
147
 
148
- GaussDB(for MySQL)数据库名。
148
+ TaurusDB数据库名。
149
149
 
150
150
  :return: The source_database_name of this TableConfigCheckRequestV3.
151
151
  :rtype: str
@@ -156,7 +156,7 @@ class TableConfigCheckRequestV3:
156
156
  def source_database_name(self, source_database_name):
157
157
  """Sets the source_database_name of this TableConfigCheckRequestV3.
158
158
 
159
- GaussDB(for MySQL)数据库名。
159
+ TaurusDB数据库名。
160
160
 
161
161
  :param source_database_name: The source_database_name of this TableConfigCheckRequestV3.
162
162
  :type source_database_name: str
@@ -41,7 +41,7 @@ class UpdateBackupOffsitePolicyInfo:
41
41
  :type open_auto_backup: bool
42
42
  :param open_incremental_backup: 是否开启跨区域增量备份。 - true:开启跨区域增量备份,当open_auto_backup开启时才可以开启。 - false:关闭跨区域增量备份。
43
43
  :type open_incremental_backup: bool
44
- :param destination_project_id: 设置跨区域备份策略的目标project ID。 租户在某一Region下的project ID。 获取方法请参见[获取项目ID](https://support.huaweicloud.com/api-gaussdbformysql/gaussdbformysql_10_0004.html)。
44
+ :param destination_project_id: 设置跨区域备份策略的目标project ID。 租户在某一Region下的project ID。 获取方法请参见[获取项目ID](https://support.huaweicloud.com/api-taurusdb/taurusdb_10_0004.html)。
45
45
  :type destination_project_id: str
46
46
  :param destination_region: 设置跨区域备份策略的目标区域。
47
47
  :type destination_region: str
@@ -112,7 +112,7 @@ class UpdateBackupOffsitePolicyInfo:
112
112
  def destination_project_id(self):
113
113
  """Gets the destination_project_id of this UpdateBackupOffsitePolicyInfo.
114
114
 
115
- 设置跨区域备份策略的目标project ID。 租户在某一Region下的project ID。 获取方法请参见[获取项目ID](https://support.huaweicloud.com/api-gaussdbformysql/gaussdbformysql_10_0004.html)。
115
+ 设置跨区域备份策略的目标project ID。 租户在某一Region下的project ID。 获取方法请参见[获取项目ID](https://support.huaweicloud.com/api-taurusdb/taurusdb_10_0004.html)。
116
116
 
117
117
  :return: The destination_project_id of this UpdateBackupOffsitePolicyInfo.
118
118
  :rtype: str
@@ -123,7 +123,7 @@ class UpdateBackupOffsitePolicyInfo:
123
123
  def destination_project_id(self, destination_project_id):
124
124
  """Sets the destination_project_id of this UpdateBackupOffsitePolicyInfo.
125
125
 
126
- 设置跨区域备份策略的目标project ID。 租户在某一Region下的project ID。 获取方法请参见[获取项目ID](https://support.huaweicloud.com/api-gaussdbformysql/gaussdbformysql_10_0004.html)。
126
+ 设置跨区域备份策略的目标project ID。 租户在某一Region下的project ID。 获取方法请参见[获取项目ID](https://support.huaweicloud.com/api-taurusdb/taurusdb_10_0004.html)。
127
127
 
128
128
  :param destination_project_id: The destination_project_id of this UpdateBackupOffsitePolicyInfo.
129
129
  :type destination_project_id: str
@@ -29,7 +29,7 @@ class UpdateProxyPortRequestBody:
29
29
 
30
30
  The model defined in huaweicloud sdk
31
31
 
32
- :param port: 修改后的读写分离端口。 GaussDB(for MySQL) Proxy端口号范围:大于等于1025,小于等于65534,不包含端口1033、5342-5345、12017、20000、20201、20202、33062、33071。
32
+ :param port: 修改后的读写分离端口。 TaurusDB Proxy端口号范围:大于等于1025,小于等于65534,不包含端口1033、5342-5345、12017、20000、20201、20202、33062、33071。
33
33
  :type port: int
34
34
  """
35
35
 
@@ -44,7 +44,7 @@ class UpdateProxyPortRequestBody:
44
44
  def port(self):
45
45
  """Gets the port of this UpdateProxyPortRequestBody.
46
46
 
47
- 修改后的读写分离端口。 GaussDB(for MySQL) Proxy端口号范围:大于等于1025,小于等于65534,不包含端口1033、5342-5345、12017、20000、20201、20202、33062、33071。
47
+ 修改后的读写分离端口。 TaurusDB Proxy端口号范围:大于等于1025,小于等于65534,不包含端口1033、5342-5345、12017、20000、20201、20202、33062、33071。
48
48
 
49
49
  :return: The port of this UpdateProxyPortRequestBody.
50
50
  :rtype: int
@@ -55,7 +55,7 @@ class UpdateProxyPortRequestBody:
55
55
  def port(self, port):
56
56
  """Sets the port of this UpdateProxyPortRequestBody.
57
57
 
58
- 修改后的读写分离端口。 GaussDB(for MySQL) Proxy端口号范围:大于等于1025,小于等于65534,不包含端口1033、5342-5345、12017、20000、20201、20202、33062、33071。
58
+ 修改后的读写分离端口。 TaurusDB Proxy端口号范围:大于等于1025,小于等于65534,不包含端口1033、5342-5345、12017、20000、20201、20202、33062、33071。
59
59
 
60
60
  :param port: The port of this UpdateProxyPortRequestBody.
61
61
  :type port: int
@@ -0,0 +1,167 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpgradeSrKernelVersionRequest:
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
+ 'x_language': 'str',
21
+ 'instance_id': 'str',
22
+ 'body': 'UpgradeSrKernelVersionRequestV3'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'instance_id': 'instance_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, x_language=None, instance_id=None, body=None):
32
+ """UpgradeSrKernelVersionRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
37
+ :type x_language: str
38
+ :param instance_id: **参数解释**: StarRocks实例ID,严格匹配UUID规则。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in17,且长度为36个字符。 **默认值**: 不涉及。
39
+ :type instance_id: str
40
+ :param body: Body of the UpgradeSrKernelVersionRequest
41
+ :type body: :class:`huaweicloudsdkgaussdb.v3.UpgradeSrKernelVersionRequestV3`
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._instance_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ self.x_language = x_language
52
+ self.instance_id = instance_id
53
+ if body is not None:
54
+ self.body = body
55
+
56
+ @property
57
+ def x_language(self):
58
+ """Gets the x_language of this UpgradeSrKernelVersionRequest.
59
+
60
+ **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
61
+
62
+ :return: The x_language of this UpgradeSrKernelVersionRequest.
63
+ :rtype: str
64
+ """
65
+ return self._x_language
66
+
67
+ @x_language.setter
68
+ def x_language(self, x_language):
69
+ """Sets the x_language of this UpgradeSrKernelVersionRequest.
70
+
71
+ **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
72
+
73
+ :param x_language: The x_language of this UpgradeSrKernelVersionRequest.
74
+ :type x_language: str
75
+ """
76
+ self._x_language = x_language
77
+
78
+ @property
79
+ def instance_id(self):
80
+ """Gets the instance_id of this UpgradeSrKernelVersionRequest.
81
+
82
+ **参数解释**: StarRocks实例ID,严格匹配UUID规则。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in17,且长度为36个字符。 **默认值**: 不涉及。
83
+
84
+ :return: The instance_id of this UpgradeSrKernelVersionRequest.
85
+ :rtype: str
86
+ """
87
+ return self._instance_id
88
+
89
+ @instance_id.setter
90
+ def instance_id(self, instance_id):
91
+ """Sets the instance_id of this UpgradeSrKernelVersionRequest.
92
+
93
+ **参数解释**: StarRocks实例ID,严格匹配UUID规则。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in17,且长度为36个字符。 **默认值**: 不涉及。
94
+
95
+ :param instance_id: The instance_id of this UpgradeSrKernelVersionRequest.
96
+ :type instance_id: str
97
+ """
98
+ self._instance_id = instance_id
99
+
100
+ @property
101
+ def body(self):
102
+ """Gets the body of this UpgradeSrKernelVersionRequest.
103
+
104
+ :return: The body of this UpgradeSrKernelVersionRequest.
105
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpgradeSrKernelVersionRequestV3`
106
+ """
107
+ return self._body
108
+
109
+ @body.setter
110
+ def body(self, body):
111
+ """Sets the body of this UpgradeSrKernelVersionRequest.
112
+
113
+ :param body: The body of this UpgradeSrKernelVersionRequest.
114
+ :type body: :class:`huaweicloudsdkgaussdb.v3.UpgradeSrKernelVersionRequestV3`
115
+ """
116
+ self._body = body
117
+
118
+ def to_dict(self):
119
+ """Returns the model properties as a dict"""
120
+ result = {}
121
+
122
+ for attr, _ in six.iteritems(self.openapi_types):
123
+ value = getattr(self, attr)
124
+ if isinstance(value, list):
125
+ result[attr] = list(map(
126
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
127
+ value
128
+ ))
129
+ elif hasattr(value, "to_dict"):
130
+ result[attr] = value.to_dict()
131
+ elif isinstance(value, dict):
132
+ result[attr] = dict(map(
133
+ lambda item: (item[0], item[1].to_dict())
134
+ if hasattr(item[1], "to_dict") else item,
135
+ value.items()
136
+ ))
137
+ else:
138
+ if attr in self.sensitive_list:
139
+ result[attr] = "****"
140
+ else:
141
+ result[attr] = value
142
+
143
+ return result
144
+
145
+ def to_str(self):
146
+ """Returns the string representation of the model"""
147
+ import simplejson as json
148
+ if six.PY2:
149
+ import sys
150
+ reload(sys)
151
+ sys.setdefaultencoding("utf-8")
152
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
153
+
154
+ def __repr__(self):
155
+ """For `print`"""
156
+ return self.to_str()
157
+
158
+ def __eq__(self, other):
159
+ """Returns true if both objects are equal"""
160
+ if not isinstance(other, UpgradeSrKernelVersionRequest):
161
+ return False
162
+
163
+ return self.__dict__ == other.__dict__
164
+
165
+ def __ne__(self, other):
166
+ """Returns true if both objects are not equal"""
167
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpgradeSrKernelVersionRequestV3:
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
+ 'delay': 'str',
21
+ 'is_skip_validate': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'delay': 'delay',
26
+ 'is_skip_validate': 'is_skip_validate'
27
+ }
28
+
29
+ def __init__(self, delay=None, is_skip_validate=None):
30
+ """UpgradeSrKernelVersionRequestV3
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param delay: **参数解释**: 是否延时升级。 **约束限制**: 不涉及 **取值范围**: - true - false **默认取值**: false。
35
+ :type delay: str
36
+ :param is_skip_validate: **参数解释**: 是否跳过升级校验。 **约束限制**: 不涉及 **取值范围**: - true - false **默认取值**: false。
37
+ :type is_skip_validate: str
38
+ """
39
+
40
+
41
+
42
+ self._delay = None
43
+ self._is_skip_validate = None
44
+ self.discriminator = None
45
+
46
+ if delay is not None:
47
+ self.delay = delay
48
+ if is_skip_validate is not None:
49
+ self.is_skip_validate = is_skip_validate
50
+
51
+ @property
52
+ def delay(self):
53
+ """Gets the delay of this UpgradeSrKernelVersionRequestV3.
54
+
55
+ **参数解释**: 是否延时升级。 **约束限制**: 不涉及 **取值范围**: - true - false **默认取值**: false。
56
+
57
+ :return: The delay of this UpgradeSrKernelVersionRequestV3.
58
+ :rtype: str
59
+ """
60
+ return self._delay
61
+
62
+ @delay.setter
63
+ def delay(self, delay):
64
+ """Sets the delay of this UpgradeSrKernelVersionRequestV3.
65
+
66
+ **参数解释**: 是否延时升级。 **约束限制**: 不涉及 **取值范围**: - true - false **默认取值**: false。
67
+
68
+ :param delay: The delay of this UpgradeSrKernelVersionRequestV3.
69
+ :type delay: str
70
+ """
71
+ self._delay = delay
72
+
73
+ @property
74
+ def is_skip_validate(self):
75
+ """Gets the is_skip_validate of this UpgradeSrKernelVersionRequestV3.
76
+
77
+ **参数解释**: 是否跳过升级校验。 **约束限制**: 不涉及 **取值范围**: - true - false **默认取值**: false。
78
+
79
+ :return: The is_skip_validate of this UpgradeSrKernelVersionRequestV3.
80
+ :rtype: str
81
+ """
82
+ return self._is_skip_validate
83
+
84
+ @is_skip_validate.setter
85
+ def is_skip_validate(self, is_skip_validate):
86
+ """Sets the is_skip_validate of this UpgradeSrKernelVersionRequestV3.
87
+
88
+ **参数解释**: 是否跳过升级校验。 **约束限制**: 不涉及 **取值范围**: - true - false **默认取值**: false。
89
+
90
+ :param is_skip_validate: The is_skip_validate of this UpgradeSrKernelVersionRequestV3.
91
+ :type is_skip_validate: str
92
+ """
93
+ self._is_skip_validate = is_skip_validate
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, UpgradeSrKernelVersionRequestV3):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class UpgradeSrKernelVersionResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'job_id': 'job_id'
26
+ }
27
+
28
+ def __init__(self, job_id=None):
29
+ """UpgradeSrKernelVersionResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: **参数解释**: 升级工作流ID。 **取值范围**: 不涉及。
34
+ :type job_id: str
35
+ """
36
+
37
+ super(UpgradeSrKernelVersionResponse, self).__init__()
38
+
39
+ self._job_id = None
40
+ self.discriminator = None
41
+
42
+ if job_id is not None:
43
+ self.job_id = job_id
44
+
45
+ @property
46
+ def job_id(self):
47
+ """Gets the job_id of this UpgradeSrKernelVersionResponse.
48
+
49
+ **参数解释**: 升级工作流ID。 **取值范围**: 不涉及。
50
+
51
+ :return: The job_id of this UpgradeSrKernelVersionResponse.
52
+ :rtype: str
53
+ """
54
+ return self._job_id
55
+
56
+ @job_id.setter
57
+ def job_id(self, job_id):
58
+ """Sets the job_id of this UpgradeSrKernelVersionResponse.
59
+
60
+ **参数解释**: 升级工作流ID。 **取值范围**: 不涉及。
61
+
62
+ :param job_id: The job_id of this UpgradeSrKernelVersionResponse.
63
+ :type job_id: str
64
+ """
65
+ self._job_id = job_id
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, UpgradeSrKernelVersionResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkgaussdb
3
- Version: 3.1.131
3
+ Version: 3.1.133
4
4
  Summary: GaussDB
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore>=3.1.131
25
+ Requires-Dist: huaweicloudsdkcore>=3.1.133
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).