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