huaweicloudsdkgaussdb 3.1.102__py2.py3-none-any.whl → 3.1.103__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 (121) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +111 -1
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +2346 -272
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +2346 -272
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +111 -1
  5. huaweicloudsdkgaussdb/v3/model/ch_database_config_check_result.py +170 -0
  6. huaweicloudsdkgaussdb/v3/model/ch_database_config_response.py +142 -0
  7. huaweicloudsdkgaussdb/v3/model/ch_database_configs_info.py +142 -0
  8. huaweicloudsdkgaussdb/v3/model/ch_database_parameter_info.py +226 -0
  9. huaweicloudsdkgaussdb/v3/model/ch_database_replication_info.py +254 -0
  10. huaweicloudsdkgaussdb/v3/model/ch_database_table_config_check_result.py +170 -0
  11. huaweicloudsdkgaussdb/v3/model/ch_database_table_repl_config_info.py +142 -0
  12. huaweicloudsdkgaussdb/v3/model/ch_database_tables_configs_info.py +142 -0
  13. huaweicloudsdkgaussdb/v3/model/ch_enlarge_volume_request_body.py +114 -0
  14. huaweicloudsdkgaussdb/v3/model/ch_instance_lts_configs.py +140 -0
  15. huaweicloudsdkgaussdb/v3/model/ch_instance_lts_configs_instance.py +318 -0
  16. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance.py +1179 -0
  17. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_groups.py +198 -0
  18. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_ops_window.py +171 -0
  19. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_param_group.py +144 -0
  20. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_port_info.py +226 -0
  21. huaweicloudsdkgaussdb/v3/model/ch_lts_configs.py +202 -0
  22. huaweicloudsdkgaussdb/v3/model/ch_query_action_info.py +318 -0
  23. huaweicloudsdkgaussdb/v3/model/ch_slow_log_detail_response_slow_log_list.py +450 -0
  24. huaweicloudsdkgaussdb/v3/model/ch_slow_log_query_request_body.py +285 -0
  25. huaweicloudsdkgaussdb/v3/model/ch_slowlog_sensitive_response.py +114 -0
  26. huaweicloudsdkgaussdb/v3/model/check_ch_database_config_request_body.py +223 -0
  27. huaweicloudsdkgaussdb/v3/model/check_ch_database_table_config_request_body.py +251 -0
  28. huaweicloudsdkgaussdb/v3/model/check_click_house_data_base_config_request.py +168 -0
  29. huaweicloudsdkgaussdb/v3/model/check_click_house_data_base_config_response.py +145 -0
  30. huaweicloudsdkgaussdb/v3/model/check_click_house_table_config_request.py +168 -0
  31. huaweicloudsdkgaussdb/v3/model/check_click_house_table_config_response.py +145 -0
  32. huaweicloudsdkgaussdb/v3/model/click_house_database_user_info.py +199 -0
  33. huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_sinfo.py +170 -0
  34. huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_winfo.py +142 -0
  35. huaweicloudsdkgaussdb/v3/model/click_house_engine_info.py +142 -0
  36. huaweicloudsdkgaussdb/v3/model/click_house_node_info.py +979 -0
  37. huaweicloudsdkgaussdb/v3/model/click_house_node_info_datastore.py +170 -0
  38. huaweicloudsdkgaussdb/v3/model/click_house_node_info_response_body_node_list.py +170 -0
  39. huaweicloudsdkgaussdb/v3/model/click_house_node_info_volume.py +200 -0
  40. huaweicloudsdkgaussdb/v3/model/click_house_resize_flavor_request_body.py +171 -0
  41. huaweicloudsdkgaussdb/v3/model/create_ch_database_replication_request_body.py +171 -0
  42. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info.py +522 -0
  43. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_pay_info.py +226 -0
  44. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_tags_info.py +144 -0
  45. huaweicloudsdkgaussdb/v3/model/{sr_create_instance_rsp_instance_tags_info_tags.py → create_ch_instance_info_tags_info_tags.py} +11 -11
  46. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body.py +376 -0
  47. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_ha.py +114 -0
  48. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_pay_info.py +231 -0
  49. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info.py +114 -0
  50. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info_sys_tags.py +142 -0
  51. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_volume.py +142 -0
  52. huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body.py +114 -0
  53. huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body_log_configs.py +198 -0
  54. huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_request.py +168 -0
  55. huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_response.py +116 -0
  56. huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_request.py +168 -0
  57. huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_response.py +116 -0
  58. huaweicloudsdkgaussdb/v3/model/create_click_house_instance_request.py +168 -0
  59. huaweicloudsdkgaussdb/v3/model/create_click_house_instance_response.py +141 -0
  60. huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body.py +114 -0
  61. huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body_log_configs.py +142 -0
  62. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_request.py +171 -0
  63. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_response.py +116 -0
  64. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_request.py +171 -0
  65. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_response.py +116 -0
  66. huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_request.py +171 -0
  67. huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_response.py +116 -0
  68. huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_request.py +171 -0
  69. huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_response.py +116 -0
  70. huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_request.py +140 -0
  71. huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_response.py +85 -0
  72. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_request.py +143 -0
  73. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_response.py +116 -0
  74. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_request.py +171 -0
  75. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_response.py +307 -0
  76. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_request.py +201 -0
  77. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_response.py +174 -0
  78. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_request.py +230 -0
  79. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_response.py +145 -0
  80. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_request.py +143 -0
  81. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_response.py +116 -0
  82. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_request.py +171 -0
  83. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_response.py +112 -0
  84. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication.py +114 -0
  85. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_request.py +167 -0
  86. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_response.py +116 -0
  87. huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_request.py +143 -0
  88. huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_response.py +116 -0
  89. huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_request.py +168 -0
  90. huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_response.py +116 -0
  91. huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_request.py +168 -0
  92. huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_response.py +116 -0
  93. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication.py +114 -0
  94. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_request.py +167 -0
  95. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_response.py +116 -0
  96. huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_request.py +230 -0
  97. huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_response.py +145 -0
  98. huaweicloudsdkgaussdb/v3/model/show_click_house_database_users_user_details.py +198 -0
  99. huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_request.py +260 -0
  100. huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_response.py +145 -0
  101. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_request.py +168 -0
  102. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_response.py +116 -0
  103. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_request.py +143 -0
  104. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_response.py +116 -0
  105. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +4 -4
  106. huaweicloudsdkgaussdb/v3/model/update_ch_database_config_request_body.py +199 -0
  107. huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_request.py +168 -0
  108. huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_response.py +116 -0
  109. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_request.py +168 -0
  110. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_response.py +116 -0
  111. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_request.py +168 -0
  112. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_response.py +116 -0
  113. huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_request.py +140 -0
  114. huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_response.py +85 -0
  115. huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_request.py +168 -0
  116. huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_response.py +116 -0
  117. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/METADATA +2 -2
  118. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/RECORD +121 -11
  119. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/LICENSE +0 -0
  120. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/WHEEL +0 -0
  121. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,198 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ChInstancesInfoRsponseInstanceGroups:
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
+ 'id': 'str',
21
+ 'name': 'str',
22
+ 'group_type_name': 'str',
23
+ 'nodes': 'list[ClickHouseNodeInfo]'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'id': 'id',
28
+ 'name': 'name',
29
+ 'group_type_name': 'group_type_name',
30
+ 'nodes': 'nodes'
31
+ }
32
+
33
+ def __init__(self, id=None, name=None, group_type_name=None, nodes=None):
34
+ """ChInstancesInfoRsponseInstanceGroups
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param id: 分组ID。
39
+ :type id: str
40
+ :param name: 分组名。
41
+ :type name: str
42
+ :param group_type_name: 实例分组类型名,现在只支持clickhouse。
43
+ :type group_type_name: str
44
+ :param nodes: 实例节点信息。
45
+ :type nodes: list[:class:`huaweicloudsdkgaussdb.v3.ClickHouseNodeInfo`]
46
+ """
47
+
48
+
49
+
50
+ self._id = None
51
+ self._name = None
52
+ self._group_type_name = None
53
+ self._nodes = None
54
+ self.discriminator = None
55
+
56
+ self.id = id
57
+ self.name = name
58
+ self.group_type_name = group_type_name
59
+ self.nodes = nodes
60
+
61
+ @property
62
+ def id(self):
63
+ """Gets the id of this ChInstancesInfoRsponseInstanceGroups.
64
+
65
+ 分组ID。
66
+
67
+ :return: The id of this ChInstancesInfoRsponseInstanceGroups.
68
+ :rtype: str
69
+ """
70
+ return self._id
71
+
72
+ @id.setter
73
+ def id(self, id):
74
+ """Sets the id of this ChInstancesInfoRsponseInstanceGroups.
75
+
76
+ 分组ID。
77
+
78
+ :param id: The id of this ChInstancesInfoRsponseInstanceGroups.
79
+ :type id: str
80
+ """
81
+ self._id = id
82
+
83
+ @property
84
+ def name(self):
85
+ """Gets the name of this ChInstancesInfoRsponseInstanceGroups.
86
+
87
+ 分组名。
88
+
89
+ :return: The name of this ChInstancesInfoRsponseInstanceGroups.
90
+ :rtype: str
91
+ """
92
+ return self._name
93
+
94
+ @name.setter
95
+ def name(self, name):
96
+ """Sets the name of this ChInstancesInfoRsponseInstanceGroups.
97
+
98
+ 分组名。
99
+
100
+ :param name: The name of this ChInstancesInfoRsponseInstanceGroups.
101
+ :type name: str
102
+ """
103
+ self._name = name
104
+
105
+ @property
106
+ def group_type_name(self):
107
+ """Gets the group_type_name of this ChInstancesInfoRsponseInstanceGroups.
108
+
109
+ 实例分组类型名,现在只支持clickhouse。
110
+
111
+ :return: The group_type_name of this ChInstancesInfoRsponseInstanceGroups.
112
+ :rtype: str
113
+ """
114
+ return self._group_type_name
115
+
116
+ @group_type_name.setter
117
+ def group_type_name(self, group_type_name):
118
+ """Sets the group_type_name of this ChInstancesInfoRsponseInstanceGroups.
119
+
120
+ 实例分组类型名,现在只支持clickhouse。
121
+
122
+ :param group_type_name: The group_type_name of this ChInstancesInfoRsponseInstanceGroups.
123
+ :type group_type_name: str
124
+ """
125
+ self._group_type_name = group_type_name
126
+
127
+ @property
128
+ def nodes(self):
129
+ """Gets the nodes of this ChInstancesInfoRsponseInstanceGroups.
130
+
131
+ 实例节点信息。
132
+
133
+ :return: The nodes of this ChInstancesInfoRsponseInstanceGroups.
134
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.ClickHouseNodeInfo`]
135
+ """
136
+ return self._nodes
137
+
138
+ @nodes.setter
139
+ def nodes(self, nodes):
140
+ """Sets the nodes of this ChInstancesInfoRsponseInstanceGroups.
141
+
142
+ 实例节点信息。
143
+
144
+ :param nodes: The nodes of this ChInstancesInfoRsponseInstanceGroups.
145
+ :type nodes: list[:class:`huaweicloudsdkgaussdb.v3.ClickHouseNodeInfo`]
146
+ """
147
+ self._nodes = nodes
148
+
149
+ def to_dict(self):
150
+ """Returns the model properties as a dict"""
151
+ result = {}
152
+
153
+ for attr, _ in six.iteritems(self.openapi_types):
154
+ value = getattr(self, attr)
155
+ if isinstance(value, list):
156
+ result[attr] = list(map(
157
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
158
+ value
159
+ ))
160
+ elif hasattr(value, "to_dict"):
161
+ result[attr] = value.to_dict()
162
+ elif isinstance(value, dict):
163
+ result[attr] = dict(map(
164
+ lambda item: (item[0], item[1].to_dict())
165
+ if hasattr(item[1], "to_dict") else item,
166
+ value.items()
167
+ ))
168
+ else:
169
+ if attr in self.sensitive_list:
170
+ result[attr] = "****"
171
+ else:
172
+ result[attr] = value
173
+
174
+ return result
175
+
176
+ def to_str(self):
177
+ """Returns the string representation of the model"""
178
+ import simplejson as json
179
+ if six.PY2:
180
+ import sys
181
+ reload(sys)
182
+ sys.setdefaultencoding("utf-8")
183
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
184
+
185
+ def __repr__(self):
186
+ """For `print`"""
187
+ return self.to_str()
188
+
189
+ def __eq__(self, other):
190
+ """Returns true if both objects are equal"""
191
+ if not isinstance(other, ChInstancesInfoRsponseInstanceGroups):
192
+ return False
193
+
194
+ return self.__dict__ == other.__dict__
195
+
196
+ def __ne__(self, other):
197
+ """Returns true if both objects are not equal"""
198
+ return not self == other
@@ -0,0 +1,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ChInstancesInfoRsponseInstanceOpsWindow:
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
+ 'period': 'str',
21
+ 'start_time': 'str',
22
+ 'end_time': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'period': 'period',
27
+ 'start_time': 'start_time',
28
+ 'end_time': 'end_time'
29
+ }
30
+
31
+ def __init__(self, period=None, start_time=None, end_time=None):
32
+ """ChInstancesInfoRsponseInstanceOpsWindow
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param period: 时间窗周期。
37
+ :type period: str
38
+ :param start_time: 时间窗开始时间。
39
+ :type start_time: str
40
+ :param end_time: 时间窗结束时间。
41
+ :type end_time: str
42
+ """
43
+
44
+
45
+
46
+ self._period = None
47
+ self._start_time = None
48
+ self._end_time = None
49
+ self.discriminator = None
50
+
51
+ if period is not None:
52
+ self.period = period
53
+ self.start_time = start_time
54
+ self.end_time = end_time
55
+
56
+ @property
57
+ def period(self):
58
+ """Gets the period of this ChInstancesInfoRsponseInstanceOpsWindow.
59
+
60
+ 时间窗周期。
61
+
62
+ :return: The period of this ChInstancesInfoRsponseInstanceOpsWindow.
63
+ :rtype: str
64
+ """
65
+ return self._period
66
+
67
+ @period.setter
68
+ def period(self, period):
69
+ """Sets the period of this ChInstancesInfoRsponseInstanceOpsWindow.
70
+
71
+ 时间窗周期。
72
+
73
+ :param period: The period of this ChInstancesInfoRsponseInstanceOpsWindow.
74
+ :type period: str
75
+ """
76
+ self._period = period
77
+
78
+ @property
79
+ def start_time(self):
80
+ """Gets the start_time of this ChInstancesInfoRsponseInstanceOpsWindow.
81
+
82
+ 时间窗开始时间。
83
+
84
+ :return: The start_time of this ChInstancesInfoRsponseInstanceOpsWindow.
85
+ :rtype: str
86
+ """
87
+ return self._start_time
88
+
89
+ @start_time.setter
90
+ def start_time(self, start_time):
91
+ """Sets the start_time of this ChInstancesInfoRsponseInstanceOpsWindow.
92
+
93
+ 时间窗开始时间。
94
+
95
+ :param start_time: The start_time of this ChInstancesInfoRsponseInstanceOpsWindow.
96
+ :type start_time: str
97
+ """
98
+ self._start_time = start_time
99
+
100
+ @property
101
+ def end_time(self):
102
+ """Gets the end_time of this ChInstancesInfoRsponseInstanceOpsWindow.
103
+
104
+ 时间窗结束时间。
105
+
106
+ :return: The end_time of this ChInstancesInfoRsponseInstanceOpsWindow.
107
+ :rtype: str
108
+ """
109
+ return self._end_time
110
+
111
+ @end_time.setter
112
+ def end_time(self, end_time):
113
+ """Sets the end_time of this ChInstancesInfoRsponseInstanceOpsWindow.
114
+
115
+ 时间窗结束时间。
116
+
117
+ :param end_time: The end_time of this ChInstancesInfoRsponseInstanceOpsWindow.
118
+ :type end_time: str
119
+ """
120
+ self._end_time = end_time
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, ChInstancesInfoRsponseInstanceOpsWindow):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ 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 ChInstancesInfoRsponseInstanceParamGroup:
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
+ 'id': 'str',
21
+ 'name': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'id': 'id',
26
+ 'name': 'name'
27
+ }
28
+
29
+ def __init__(self, id=None, name=None):
30
+ """ChInstancesInfoRsponseInstanceParamGroup
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param id: 参数ID。
35
+ :type id: str
36
+ :param name: 参数名。
37
+ :type name: str
38
+ """
39
+
40
+
41
+
42
+ self._id = None
43
+ self._name = None
44
+ self.discriminator = None
45
+
46
+ if id is not None:
47
+ self.id = id
48
+ if name is not None:
49
+ self.name = name
50
+
51
+ @property
52
+ def id(self):
53
+ """Gets the id of this ChInstancesInfoRsponseInstanceParamGroup.
54
+
55
+ 参数ID。
56
+
57
+ :return: The id of this ChInstancesInfoRsponseInstanceParamGroup.
58
+ :rtype: str
59
+ """
60
+ return self._id
61
+
62
+ @id.setter
63
+ def id(self, id):
64
+ """Sets the id of this ChInstancesInfoRsponseInstanceParamGroup.
65
+
66
+ 参数ID。
67
+
68
+ :param id: The id of this ChInstancesInfoRsponseInstanceParamGroup.
69
+ :type id: str
70
+ """
71
+ self._id = id
72
+
73
+ @property
74
+ def name(self):
75
+ """Gets the name of this ChInstancesInfoRsponseInstanceParamGroup.
76
+
77
+ 参数名。
78
+
79
+ :return: The name of this ChInstancesInfoRsponseInstanceParamGroup.
80
+ :rtype: str
81
+ """
82
+ return self._name
83
+
84
+ @name.setter
85
+ def name(self, name):
86
+ """Sets the name of this ChInstancesInfoRsponseInstanceParamGroup.
87
+
88
+ 参数名。
89
+
90
+ :param name: The name of this ChInstancesInfoRsponseInstanceParamGroup.
91
+ :type name: str
92
+ """
93
+ self._name = name
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, ChInstancesInfoRsponseInstanceParamGroup):
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