huaweicloudsdkgaussdb 3.1.94__py2.py3-none-any.whl → 3.1.96__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 (106) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +97 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1591 -0
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1591 -0
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +97 -0
  5. huaweicloudsdkgaussdb/v3/model/check_data_base_config_request.py +167 -0
  6. huaweicloudsdkgaussdb/v3/model/check_data_base_config_response.py +232 -0
  7. huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_request.py +140 -0
  8. huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_response.py +116 -0
  9. huaweicloudsdkgaussdb/v3/model/check_table_config_request.py +167 -0
  10. huaweicloudsdkgaussdb/v3/model/check_table_config_response.py +203 -0
  11. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication.py +227 -0
  12. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_request.py +167 -0
  13. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_response.py +116 -0
  14. huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_request.py +168 -0
  15. huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_response.py +116 -0
  16. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_request.py +168 -0
  17. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_response.py +141 -0
  18. huaweicloudsdkgaussdb/v3/model/data_base_info.py +144 -0
  19. huaweicloudsdkgaussdb/v3/model/db_config.py +144 -0
  20. huaweicloudsdkgaussdb/v3/model/db_config_check_request_v3.py +285 -0
  21. huaweicloudsdkgaussdb/v3/model/db_config_check_result.py +173 -0
  22. huaweicloudsdkgaussdb/v3/model/db_parameter.py +231 -0
  23. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication.py +115 -0
  24. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_request.py +167 -0
  25. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_response.py +116 -0
  26. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_request.py +171 -0
  27. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_response.py +116 -0
  28. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_request.py +171 -0
  29. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_response.py +116 -0
  30. huaweicloudsdkgaussdb/v3/model/htap_flavor_info_flavors.py +318 -0
  31. huaweicloudsdkgaussdb/v3/model/htap_instance_list_available_zones.py +173 -0
  32. huaweicloudsdkgaussdb/v3/model/htap_instance_list_instance_state.py +202 -0
  33. huaweicloudsdkgaussdb/v3/model/htap_instance_list_instances.py +832 -0
  34. huaweicloudsdkgaussdb/v3/model/htap_instance_list_network.py +173 -0
  35. huaweicloudsdkgaussdb/v3/model/htap_storage_type_storage_type.py +173 -0
  36. huaweicloudsdkgaussdb/v3/model/list_htap_data_store_request.py +143 -0
  37. huaweicloudsdkgaussdb/v3/model/list_htap_data_store_response.py +116 -0
  38. huaweicloudsdkgaussdb/v3/model/list_htap_flavor_request.py +230 -0
  39. huaweicloudsdkgaussdb/v3/model/list_htap_flavor_response.py +116 -0
  40. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_request.py +143 -0
  41. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_response.py +174 -0
  42. huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_request.py +171 -0
  43. huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_response.py +116 -0
  44. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_request.py +229 -0
  45. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_response.py +174 -0
  46. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_request.py +170 -0
  47. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_response.py +336 -0
  48. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_request.py +200 -0
  49. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_response.py +174 -0
  50. huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_request.py +142 -0
  51. huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_response.py +116 -0
  52. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_request.py +171 -0
  53. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_response.py +116 -0
  54. huaweicloudsdkgaussdb/v3/model/param_group.py +144 -0
  55. huaweicloudsdkgaussdb/v3/model/query_action.py +318 -0
  56. huaweicloudsdkgaussdb/v3/model/readable_node_infos.py +173 -0
  57. huaweicloudsdkgaussdb/v3/model/resource_check.py +138 -0
  58. huaweicloudsdkgaussdb/v3/model/resource_check_resource.py +367 -0
  59. huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_request.py +143 -0
  60. huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_response.py +116 -0
  61. huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_request.py +171 -0
  62. huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_response.py +116 -0
  63. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_request.py +228 -0
  64. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_response.py +145 -0
  65. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_users_user_details.py +198 -0
  66. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance.py +538 -0
  67. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_engine.py +144 -0
  68. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_pay_info.py +231 -0
  69. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +144 -0
  70. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_sys_tags.py +144 -0
  71. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_tags.py +144 -0
  72. huaweicloudsdkgaussdb/v3/model/sr_data_stores_datastores.py +173 -0
  73. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py +459 -0
  74. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_be_volume.py +142 -0
  75. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_engine.py +142 -0
  76. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_fe_volume.py +142 -0
  77. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_ha.py +114 -0
  78. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info.py +114 -0
  79. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info_sys_tags.py +142 -0
  80. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_info.py +228 -0
  81. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_sinfo.py +201 -0
  82. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_winfo.py +142 -0
  83. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_datastore.py +173 -0
  84. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_groups.py +231 -0
  85. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_instances.py +1292 -0
  86. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_nodes.py +1006 -0
  87. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_ops_window.py +173 -0
  88. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_port_info.py +115 -0
  89. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info.py +144 -0
  90. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_sys_tags.py +144 -0
  91. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_tags.py +144 -0
  92. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_volume.py +144 -0
  93. huaweicloudsdkgaussdb/v3/model/star_rocks_replication_info.py +318 -0
  94. huaweicloudsdkgaussdb/v3/model/table_config_check_request_v3.py +285 -0
  95. huaweicloudsdkgaussdb/v3/model/table_config_check_result.py +173 -0
  96. huaweicloudsdkgaussdb/v3/model/table_repl_config.py +173 -0
  97. huaweicloudsdkgaussdb/v3/model/tables_config.py +144 -0
  98. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_request.py +168 -0
  99. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_response.py +116 -0
  100. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_request.py +168 -0
  101. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_response.py +116 -0
  102. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/METADATA +2 -2
  103. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/RECORD +106 -9
  104. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/LICENSE +0 -0
  105. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/WHEEL +0 -0
  106. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,174 @@
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 ListStarRocksDataReplicationsResponse(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
+ 'total_count': 'str',
22
+ 'replications': 'list[StarRocksReplicationInfo]',
23
+ 'ext_text': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'total_count': 'total_count',
28
+ 'replications': 'replications',
29
+ 'ext_text': 'ext_text'
30
+ }
31
+
32
+ def __init__(self, total_count=None, replications=None, ext_text=None):
33
+ """ListStarRocksDataReplicationsResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param total_count: 查询数据同步任务数。
38
+ :type total_count: str
39
+ :param replications: 数据同步任务信息。
40
+ :type replications: list[:class:`huaweicloudsdkgaussdb.v3.StarRocksReplicationInfo`]
41
+ :param ext_text: 扩展字段。
42
+ :type ext_text: str
43
+ """
44
+
45
+ super(ListStarRocksDataReplicationsResponse, self).__init__()
46
+
47
+ self._total_count = None
48
+ self._replications = None
49
+ self._ext_text = None
50
+ self.discriminator = None
51
+
52
+ if total_count is not None:
53
+ self.total_count = total_count
54
+ if replications is not None:
55
+ self.replications = replications
56
+ if ext_text is not None:
57
+ self.ext_text = ext_text
58
+
59
+ @property
60
+ def total_count(self):
61
+ """Gets the total_count of this ListStarRocksDataReplicationsResponse.
62
+
63
+ 查询数据同步任务数。
64
+
65
+ :return: The total_count of this ListStarRocksDataReplicationsResponse.
66
+ :rtype: str
67
+ """
68
+ return self._total_count
69
+
70
+ @total_count.setter
71
+ def total_count(self, total_count):
72
+ """Sets the total_count of this ListStarRocksDataReplicationsResponse.
73
+
74
+ 查询数据同步任务数。
75
+
76
+ :param total_count: The total_count of this ListStarRocksDataReplicationsResponse.
77
+ :type total_count: str
78
+ """
79
+ self._total_count = total_count
80
+
81
+ @property
82
+ def replications(self):
83
+ """Gets the replications of this ListStarRocksDataReplicationsResponse.
84
+
85
+ 数据同步任务信息。
86
+
87
+ :return: The replications of this ListStarRocksDataReplicationsResponse.
88
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.StarRocksReplicationInfo`]
89
+ """
90
+ return self._replications
91
+
92
+ @replications.setter
93
+ def replications(self, replications):
94
+ """Sets the replications of this ListStarRocksDataReplicationsResponse.
95
+
96
+ 数据同步任务信息。
97
+
98
+ :param replications: The replications of this ListStarRocksDataReplicationsResponse.
99
+ :type replications: list[:class:`huaweicloudsdkgaussdb.v3.StarRocksReplicationInfo`]
100
+ """
101
+ self._replications = replications
102
+
103
+ @property
104
+ def ext_text(self):
105
+ """Gets the ext_text of this ListStarRocksDataReplicationsResponse.
106
+
107
+ 扩展字段。
108
+
109
+ :return: The ext_text of this ListStarRocksDataReplicationsResponse.
110
+ :rtype: str
111
+ """
112
+ return self._ext_text
113
+
114
+ @ext_text.setter
115
+ def ext_text(self, ext_text):
116
+ """Sets the ext_text of this ListStarRocksDataReplicationsResponse.
117
+
118
+ 扩展字段。
119
+
120
+ :param ext_text: The ext_text of this ListStarRocksDataReplicationsResponse.
121
+ :type ext_text: str
122
+ """
123
+ self._ext_text = ext_text
124
+
125
+ def to_dict(self):
126
+ """Returns the model properties as a dict"""
127
+ result = {}
128
+
129
+ for attr, _ in six.iteritems(self.openapi_types):
130
+ value = getattr(self, attr)
131
+ if isinstance(value, list):
132
+ result[attr] = list(map(
133
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
+ value
135
+ ))
136
+ elif hasattr(value, "to_dict"):
137
+ result[attr] = value.to_dict()
138
+ elif isinstance(value, dict):
139
+ result[attr] = dict(map(
140
+ lambda item: (item[0], item[1].to_dict())
141
+ if hasattr(item[1], "to_dict") else item,
142
+ value.items()
143
+ ))
144
+ else:
145
+ if attr in self.sensitive_list:
146
+ result[attr] = "****"
147
+ else:
148
+ result[attr] = value
149
+
150
+ return result
151
+
152
+ def to_str(self):
153
+ """Returns the string representation of the model"""
154
+ import simplejson as json
155
+ if six.PY2:
156
+ import sys
157
+ reload(sys)
158
+ sys.setdefaultencoding("utf-8")
159
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
+
161
+ def __repr__(self):
162
+ """For `print`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, ListStarRocksDataReplicationsResponse):
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListStarRocksDbParametersRequest:
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
+ 'instance_id': 'str',
21
+ 'x_language': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'instance_id': 'instance_id',
26
+ 'x_language': 'X-Language'
27
+ }
28
+
29
+ def __init__(self, instance_id=None, x_language=None):
30
+ """ListStarRocksDbParametersRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param instance_id: StarRocks实例ID,严格匹配UUID规则。
35
+ :type instance_id: str
36
+ :param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
37
+ :type x_language: str
38
+ """
39
+
40
+
41
+
42
+ self._instance_id = None
43
+ self._x_language = None
44
+ self.discriminator = None
45
+
46
+ self.instance_id = instance_id
47
+ self.x_language = x_language
48
+
49
+ @property
50
+ def instance_id(self):
51
+ """Gets the instance_id of this ListStarRocksDbParametersRequest.
52
+
53
+ StarRocks实例ID,严格匹配UUID规则。
54
+
55
+ :return: The instance_id of this ListStarRocksDbParametersRequest.
56
+ :rtype: str
57
+ """
58
+ return self._instance_id
59
+
60
+ @instance_id.setter
61
+ def instance_id(self, instance_id):
62
+ """Sets the instance_id of this ListStarRocksDbParametersRequest.
63
+
64
+ StarRocks实例ID,严格匹配UUID规则。
65
+
66
+ :param instance_id: The instance_id of this ListStarRocksDbParametersRequest.
67
+ :type instance_id: str
68
+ """
69
+ self._instance_id = instance_id
70
+
71
+ @property
72
+ def x_language(self):
73
+ """Gets the x_language of this ListStarRocksDbParametersRequest.
74
+
75
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
76
+
77
+ :return: The x_language of this ListStarRocksDbParametersRequest.
78
+ :rtype: str
79
+ """
80
+ return self._x_language
81
+
82
+ @x_language.setter
83
+ def x_language(self, x_language):
84
+ """Sets the x_language of this ListStarRocksDbParametersRequest.
85
+
86
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
87
+
88
+ :param x_language: The x_language of this ListStarRocksDbParametersRequest.
89
+ :type x_language: str
90
+ """
91
+ self._x_language = x_language
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, ListStarRocksDbParametersRequest):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ 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 ListStarRocksDbParametersResponse(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
+ 'db_parameters': 'list[DbParameter]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'db_parameters': 'db_parameters'
26
+ }
27
+
28
+ def __init__(self, db_parameters=None):
29
+ """ListStarRocksDbParametersResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param db_parameters: 库参数信息。
34
+ :type db_parameters: list[:class:`huaweicloudsdkgaussdb.v3.DbParameter`]
35
+ """
36
+
37
+ super(ListStarRocksDbParametersResponse, self).__init__()
38
+
39
+ self._db_parameters = None
40
+ self.discriminator = None
41
+
42
+ if db_parameters is not None:
43
+ self.db_parameters = db_parameters
44
+
45
+ @property
46
+ def db_parameters(self):
47
+ """Gets the db_parameters of this ListStarRocksDbParametersResponse.
48
+
49
+ 库参数信息。
50
+
51
+ :return: The db_parameters of this ListStarRocksDbParametersResponse.
52
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.DbParameter`]
53
+ """
54
+ return self._db_parameters
55
+
56
+ @db_parameters.setter
57
+ def db_parameters(self, db_parameters):
58
+ """Sets the db_parameters of this ListStarRocksDbParametersResponse.
59
+
60
+ 库参数信息。
61
+
62
+ :param db_parameters: The db_parameters of this ListStarRocksDbParametersResponse.
63
+ :type db_parameters: list[:class:`huaweicloudsdkgaussdb.v3.DbParameter`]
64
+ """
65
+ self._db_parameters = db_parameters
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, ListStarRocksDbParametersResponse):
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
@@ -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 ListStarrocksInstanceInfoRequest:
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
+ 'instance_id': 'str',
21
+ 'starrocks_instance_id': 'str',
22
+ 'x_language': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'instance_id': 'instance_id',
27
+ 'starrocks_instance_id': 'starrocks_instance_id',
28
+ 'x_language': 'X-Language'
29
+ }
30
+
31
+ def __init__(self, instance_id=None, starrocks_instance_id=None, x_language=None):
32
+ """ListStarrocksInstanceInfoRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param instance_id: GaussDBforMySQL实例ID,严格匹配UUID规则。
37
+ :type instance_id: str
38
+ :param starrocks_instance_id: StarRocks实例ID,严格匹配UUID规则。
39
+ :type starrocks_instance_id: str
40
+ :param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
41
+ :type x_language: str
42
+ """
43
+
44
+
45
+
46
+ self._instance_id = None
47
+ self._starrocks_instance_id = None
48
+ self._x_language = None
49
+ self.discriminator = None
50
+
51
+ self.instance_id = instance_id
52
+ self.starrocks_instance_id = starrocks_instance_id
53
+ if x_language is not None:
54
+ self.x_language = x_language
55
+
56
+ @property
57
+ def instance_id(self):
58
+ """Gets the instance_id of this ListStarrocksInstanceInfoRequest.
59
+
60
+ GaussDBforMySQL实例ID,严格匹配UUID规则。
61
+
62
+ :return: The instance_id of this ListStarrocksInstanceInfoRequest.
63
+ :rtype: str
64
+ """
65
+ return self._instance_id
66
+
67
+ @instance_id.setter
68
+ def instance_id(self, instance_id):
69
+ """Sets the instance_id of this ListStarrocksInstanceInfoRequest.
70
+
71
+ GaussDBforMySQL实例ID,严格匹配UUID规则。
72
+
73
+ :param instance_id: The instance_id of this ListStarrocksInstanceInfoRequest.
74
+ :type instance_id: str
75
+ """
76
+ self._instance_id = instance_id
77
+
78
+ @property
79
+ def starrocks_instance_id(self):
80
+ """Gets the starrocks_instance_id of this ListStarrocksInstanceInfoRequest.
81
+
82
+ StarRocks实例ID,严格匹配UUID规则。
83
+
84
+ :return: The starrocks_instance_id of this ListStarrocksInstanceInfoRequest.
85
+ :rtype: str
86
+ """
87
+ return self._starrocks_instance_id
88
+
89
+ @starrocks_instance_id.setter
90
+ def starrocks_instance_id(self, starrocks_instance_id):
91
+ """Sets the starrocks_instance_id of this ListStarrocksInstanceInfoRequest.
92
+
93
+ StarRocks实例ID,严格匹配UUID规则。
94
+
95
+ :param starrocks_instance_id: The starrocks_instance_id of this ListStarrocksInstanceInfoRequest.
96
+ :type starrocks_instance_id: str
97
+ """
98
+ self._starrocks_instance_id = starrocks_instance_id
99
+
100
+ @property
101
+ def x_language(self):
102
+ """Gets the x_language of this ListStarrocksInstanceInfoRequest.
103
+
104
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
105
+
106
+ :return: The x_language of this ListStarrocksInstanceInfoRequest.
107
+ :rtype: str
108
+ """
109
+ return self._x_language
110
+
111
+ @x_language.setter
112
+ def x_language(self, x_language):
113
+ """Sets the x_language of this ListStarrocksInstanceInfoRequest.
114
+
115
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
116
+
117
+ :param x_language: The x_language of this ListStarrocksInstanceInfoRequest.
118
+ :type x_language: str
119
+ """
120
+ self._x_language = x_language
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, ListStarrocksInstanceInfoRequest):
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