huaweicloudsdkgaussdb 3.1.98__py2.py3-none-any.whl → 3.1.99__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 (63) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +52 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1151 -45
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1151 -45
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +52 -0
  5. huaweicloudsdkgaussdb/v3/model/auto_scaling_record_info.py +318 -0
  6. huaweicloudsdkgaussdb/v3/model/create_lts_configs.py +114 -0
  7. huaweicloudsdkgaussdb/v3/model/create_lts_configs_request.py +140 -0
  8. huaweicloudsdkgaussdb/v3/model/create_lts_configs_response.py +85 -0
  9. huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request.py +140 -0
  10. huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request_body.py +114 -0
  11. huaweicloudsdkgaussdb/v3/model/delete_lts_configs_response.py +85 -0
  12. huaweicloudsdkgaussdb/v3/model/instance_delete_lts_config.py +142 -0
  13. huaweicloudsdkgaussdb/v3/model/instance_lts_basic_info.py +318 -0
  14. huaweicloudsdkgaussdb/v3/model/instance_save_lts_config.py +198 -0
  15. huaweicloudsdkgaussdb/v3/model/ip_group_item.py +142 -0
  16. huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_request.py +172 -0
  17. huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_response.py +145 -0
  18. huaweicloudsdkgaussdb/v3/model/list_recycle_instances_request.py +173 -0
  19. huaweicloudsdkgaussdb/v3/model/list_recycle_instances_response.py +145 -0
  20. huaweicloudsdkgaussdb/v3/model/lts_config.py +202 -0
  21. huaweicloudsdkgaussdb/v3/model/lts_configs_v3.py +140 -0
  22. huaweicloudsdkgaussdb/v3/model/modify_node_priority_request.py +196 -0
  23. huaweicloudsdkgaussdb/v3/model/modify_node_priority_request_body.py +114 -0
  24. huaweicloudsdkgaussdb/v3/model/modify_node_priority_response.py +116 -0
  25. huaweicloudsdkgaussdb/v3/model/mysql_update_instance_name_request.py +32 -3
  26. huaweicloudsdkgaussdb/v3/model/proxy_configuration.py +260 -0
  27. huaweicloudsdkgaussdb/v3/model/proxy_ip_group_detail.py +170 -0
  28. huaweicloudsdkgaussdb/v3/model/recycle_instance_v3.py +579 -0
  29. huaweicloudsdkgaussdb/v3/model/recycle_policy.py +114 -0
  30. huaweicloudsdkgaussdb/v3/model/rename_instance_node_request.py +168 -0
  31. huaweicloudsdkgaussdb/v3/model/rename_instance_node_request_body.py +114 -0
  32. huaweicloudsdkgaussdb/v3/model/rename_instance_node_response.py +116 -0
  33. huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_request.py +171 -0
  34. huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_response.py +116 -0
  35. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request.py +140 -0
  36. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request_body.py +111 -0
  37. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_response.py +85 -0
  38. huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_request.py +201 -0
  39. huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_response.py +145 -0
  40. huaweicloudsdkgaussdb/v3/model/show_instance_eip_request.py +143 -0
  41. huaweicloudsdkgaussdb/v3/model/show_instance_eip_response.py +493 -0
  42. huaweicloudsdkgaussdb/v3/model/show_lts_configs_request.py +260 -0
  43. huaweicloudsdkgaussdb/v3/model/show_lts_configs_response.py +145 -0
  44. huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_request.py +258 -0
  45. huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_response.py +145 -0
  46. huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_response.py +5 -9
  47. huaweicloudsdkgaussdb/v3/model/show_recycle_policy_request.py +115 -0
  48. huaweicloudsdkgaussdb/v3/model/show_recycle_policy_response.py +112 -0
  49. huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_request.py +143 -0
  50. huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_response.py +116 -0
  51. huaweicloudsdkgaussdb/v3/model/single_node_info.py +142 -0
  52. huaweicloudsdkgaussdb/v3/model/template_apply_history.py +231 -0
  53. huaweicloudsdkgaussdb/v3/model/update_serverless_policy.py +142 -0
  54. huaweicloudsdkgaussdb/v3/model/update_serverless_policy_request.py +168 -0
  55. huaweicloudsdkgaussdb/v3/model/update_serverless_policy_response.py +85 -0
  56. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request.py +168 -0
  57. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request_body.py +114 -0
  58. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_response.py +85 -0
  59. {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/METADATA +2 -2
  60. {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/RECORD +63 -11
  61. {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/LICENSE +0 -0
  62. {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/WHEEL +0 -0
  63. {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateLtsConfigsRequest:
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
+ 'body': 'CreateLtsConfigs'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'x_language': 'X-Language',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, x_language=None, body=None):
30
+ """CreateLtsConfigsRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: 语言。
35
+ :type x_language: str
36
+ :param body: Body of the CreateLtsConfigsRequest
37
+ :type body: :class:`huaweicloudsdkgaussdb.v3.CreateLtsConfigs`
38
+ """
39
+
40
+
41
+
42
+ self._x_language = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ if x_language is not None:
47
+ self.x_language = x_language
48
+ if body is not None:
49
+ self.body = body
50
+
51
+ @property
52
+ def x_language(self):
53
+ """Gets the x_language of this CreateLtsConfigsRequest.
54
+
55
+ 语言。
56
+
57
+ :return: The x_language of this CreateLtsConfigsRequest.
58
+ :rtype: str
59
+ """
60
+ return self._x_language
61
+
62
+ @x_language.setter
63
+ def x_language(self, x_language):
64
+ """Sets the x_language of this CreateLtsConfigsRequest.
65
+
66
+ 语言。
67
+
68
+ :param x_language: The x_language of this CreateLtsConfigsRequest.
69
+ :type x_language: str
70
+ """
71
+ self._x_language = x_language
72
+
73
+ @property
74
+ def body(self):
75
+ """Gets the body of this CreateLtsConfigsRequest.
76
+
77
+ :return: The body of this CreateLtsConfigsRequest.
78
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateLtsConfigs`
79
+ """
80
+ return self._body
81
+
82
+ @body.setter
83
+ def body(self, body):
84
+ """Sets the body of this CreateLtsConfigsRequest.
85
+
86
+ :param body: The body of this CreateLtsConfigsRequest.
87
+ :type body: :class:`huaweicloudsdkgaussdb.v3.CreateLtsConfigs`
88
+ """
89
+ self._body = body
90
+
91
+ def to_dict(self):
92
+ """Returns the model properties as a dict"""
93
+ result = {}
94
+
95
+ for attr, _ in six.iteritems(self.openapi_types):
96
+ value = getattr(self, attr)
97
+ if isinstance(value, list):
98
+ result[attr] = list(map(
99
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
100
+ value
101
+ ))
102
+ elif hasattr(value, "to_dict"):
103
+ result[attr] = value.to_dict()
104
+ elif isinstance(value, dict):
105
+ result[attr] = dict(map(
106
+ lambda item: (item[0], item[1].to_dict())
107
+ if hasattr(item[1], "to_dict") else item,
108
+ value.items()
109
+ ))
110
+ else:
111
+ if attr in self.sensitive_list:
112
+ result[attr] = "****"
113
+ else:
114
+ result[attr] = value
115
+
116
+ return result
117
+
118
+ def to_str(self):
119
+ """Returns the string representation of the model"""
120
+ import simplejson as json
121
+ if six.PY2:
122
+ import sys
123
+ reload(sys)
124
+ sys.setdefaultencoding("utf-8")
125
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
126
+
127
+ def __repr__(self):
128
+ """For `print`"""
129
+ return self.to_str()
130
+
131
+ def __eq__(self, other):
132
+ """Returns true if both objects are equal"""
133
+ if not isinstance(other, CreateLtsConfigsRequest):
134
+ return False
135
+
136
+ return self.__dict__ == other.__dict__
137
+
138
+ def __ne__(self, other):
139
+ """Returns true if both objects are not equal"""
140
+ return not self == other
@@ -0,0 +1,85 @@
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 CreateLtsConfigsResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ """CreateLtsConfigsResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(CreateLtsConfigsResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, CreateLtsConfigsResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteLtsConfigsRequest:
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
+ 'body': 'DeleteLtsConfigsRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'x_language': 'X-Language',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, x_language=None, body=None):
30
+ """DeleteLtsConfigsRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: 语言。
35
+ :type x_language: str
36
+ :param body: Body of the DeleteLtsConfigsRequest
37
+ :type body: :class:`huaweicloudsdkgaussdb.v3.DeleteLtsConfigsRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._x_language = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ if x_language is not None:
47
+ self.x_language = x_language
48
+ if body is not None:
49
+ self.body = body
50
+
51
+ @property
52
+ def x_language(self):
53
+ """Gets the x_language of this DeleteLtsConfigsRequest.
54
+
55
+ 语言。
56
+
57
+ :return: The x_language of this DeleteLtsConfigsRequest.
58
+ :rtype: str
59
+ """
60
+ return self._x_language
61
+
62
+ @x_language.setter
63
+ def x_language(self, x_language):
64
+ """Sets the x_language of this DeleteLtsConfigsRequest.
65
+
66
+ 语言。
67
+
68
+ :param x_language: The x_language of this DeleteLtsConfigsRequest.
69
+ :type x_language: str
70
+ """
71
+ self._x_language = x_language
72
+
73
+ @property
74
+ def body(self):
75
+ """Gets the body of this DeleteLtsConfigsRequest.
76
+
77
+ :return: The body of this DeleteLtsConfigsRequest.
78
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteLtsConfigsRequestBody`
79
+ """
80
+ return self._body
81
+
82
+ @body.setter
83
+ def body(self, body):
84
+ """Sets the body of this DeleteLtsConfigsRequest.
85
+
86
+ :param body: The body of this DeleteLtsConfigsRequest.
87
+ :type body: :class:`huaweicloudsdkgaussdb.v3.DeleteLtsConfigsRequestBody`
88
+ """
89
+ self._body = body
90
+
91
+ def to_dict(self):
92
+ """Returns the model properties as a dict"""
93
+ result = {}
94
+
95
+ for attr, _ in six.iteritems(self.openapi_types):
96
+ value = getattr(self, attr)
97
+ if isinstance(value, list):
98
+ result[attr] = list(map(
99
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
100
+ value
101
+ ))
102
+ elif hasattr(value, "to_dict"):
103
+ result[attr] = value.to_dict()
104
+ elif isinstance(value, dict):
105
+ result[attr] = dict(map(
106
+ lambda item: (item[0], item[1].to_dict())
107
+ if hasattr(item[1], "to_dict") else item,
108
+ value.items()
109
+ ))
110
+ else:
111
+ if attr in self.sensitive_list:
112
+ result[attr] = "****"
113
+ else:
114
+ result[attr] = value
115
+
116
+ return result
117
+
118
+ def to_str(self):
119
+ """Returns the string representation of the model"""
120
+ import simplejson as json
121
+ if six.PY2:
122
+ import sys
123
+ reload(sys)
124
+ sys.setdefaultencoding("utf-8")
125
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
126
+
127
+ def __repr__(self):
128
+ """For `print`"""
129
+ return self.to_str()
130
+
131
+ def __eq__(self, other):
132
+ """Returns true if both objects are equal"""
133
+ if not isinstance(other, DeleteLtsConfigsRequest):
134
+ return False
135
+
136
+ return self.__dict__ == other.__dict__
137
+
138
+ def __ne__(self, other):
139
+ """Returns true if both objects are not equal"""
140
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteLtsConfigsRequestBody:
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
+ 'log_configs': 'list[InstanceDeleteLtsConfig]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'log_configs': 'log_configs'
25
+ }
26
+
27
+ def __init__(self, log_configs=None):
28
+ """DeleteLtsConfigsRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param log_configs: 日志配置列表
33
+ :type log_configs: list[:class:`huaweicloudsdkgaussdb.v3.InstanceDeleteLtsConfig`]
34
+ """
35
+
36
+
37
+
38
+ self._log_configs = None
39
+ self.discriminator = None
40
+
41
+ self.log_configs = log_configs
42
+
43
+ @property
44
+ def log_configs(self):
45
+ """Gets the log_configs of this DeleteLtsConfigsRequestBody.
46
+
47
+ 日志配置列表
48
+
49
+ :return: The log_configs of this DeleteLtsConfigsRequestBody.
50
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.InstanceDeleteLtsConfig`]
51
+ """
52
+ return self._log_configs
53
+
54
+ @log_configs.setter
55
+ def log_configs(self, log_configs):
56
+ """Sets the log_configs of this DeleteLtsConfigsRequestBody.
57
+
58
+ 日志配置列表
59
+
60
+ :param log_configs: The log_configs of this DeleteLtsConfigsRequestBody.
61
+ :type log_configs: list[:class:`huaweicloudsdkgaussdb.v3.InstanceDeleteLtsConfig`]
62
+ """
63
+ self._log_configs = log_configs
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, DeleteLtsConfigsRequestBody):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,85 @@
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 DeleteLtsConfigsResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ """DeleteLtsConfigsResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(DeleteLtsConfigsResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, DeleteLtsConfigsResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ 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 InstanceDeleteLtsConfig:
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
+ 'log_type': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'instance_id': 'instance_id',
26
+ 'log_type': 'log_type'
27
+ }
28
+
29
+ def __init__(self, instance_id=None, log_type=None):
30
+ """InstanceDeleteLtsConfig
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param instance_id: 实例ID。
35
+ :type instance_id: str
36
+ :param log_type: 日志类型
37
+ :type log_type: str
38
+ """
39
+
40
+
41
+
42
+ self._instance_id = None
43
+ self._log_type = None
44
+ self.discriminator = None
45
+
46
+ self.instance_id = instance_id
47
+ self.log_type = log_type
48
+
49
+ @property
50
+ def instance_id(self):
51
+ """Gets the instance_id of this InstanceDeleteLtsConfig.
52
+
53
+ 实例ID。
54
+
55
+ :return: The instance_id of this InstanceDeleteLtsConfig.
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 InstanceDeleteLtsConfig.
63
+
64
+ 实例ID。
65
+
66
+ :param instance_id: The instance_id of this InstanceDeleteLtsConfig.
67
+ :type instance_id: str
68
+ """
69
+ self._instance_id = instance_id
70
+
71
+ @property
72
+ def log_type(self):
73
+ """Gets the log_type of this InstanceDeleteLtsConfig.
74
+
75
+ 日志类型
76
+
77
+ :return: The log_type of this InstanceDeleteLtsConfig.
78
+ :rtype: str
79
+ """
80
+ return self._log_type
81
+
82
+ @log_type.setter
83
+ def log_type(self, log_type):
84
+ """Sets the log_type of this InstanceDeleteLtsConfig.
85
+
86
+ 日志类型
87
+
88
+ :param log_type: The log_type of this InstanceDeleteLtsConfig.
89
+ :type log_type: str
90
+ """
91
+ self._log_type = log_type
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, InstanceDeleteLtsConfig):
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